1 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
4 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
6 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
8 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
9 * utils2.c (build_unary_op): Likewise.
11 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
15 2004-12-19 Richard Henderson <rth@redhat.com>
17 * trans.c (gigi): Update gimplify_body call.
19 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
21 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
23 2004-12-07 Ed Falis <falis@adacore.com>
25 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
26 current task being suspended.
28 * init.c (__gnat_clear_exception): added to reset VxWorks exception
30 (__gnat_map_signal): removed test for current task being suspended.
32 2004-12-07 Gary Dismukes <dismukes@adacore.com>
34 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
35 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
36 targets (such as AAMP).
38 2004-12-07 Ed Schonberg <schonberg@adacore.com>
40 * atree.adb (Visit_Itype): Create a new name for the generated itype,
41 because the back-end may otherwise treat it as a redefinition of the
44 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
46 * back_end.adb (Scan_Back_End_Switches): Accept --param.
48 * lang-specs.h: Accept --param.
50 2004-12-07 Vincent Celier <celier@adacore.com>
52 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
53 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
54 Current_Body_Suffix => Ada_Body_Suffix).
55 Take into account Externally_Built attribute.
57 * clean.adb (In_Extension_Chain): Always return False when one of the
58 parameter is No_Project.
59 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
61 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
62 Process_Languages for procedure Parse).
64 * gnatcmd.adb (Carg_Switches): New table.
65 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
66 Adapt to name changes in package Prj (Current_Spec_Suffix =>
67 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
69 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
70 Header_Num and function Hash are now declared in package Prj,
73 * prj.adb (Suffix_Of): New function.
74 (Set (Suffix)): New procedure.
75 (Hash): One function moved from Prj.Com
76 (Is_Present, Language_Processing_Data_Of): New functions
77 (Set): Two new procedures
78 (Add_Language_Name, Display_Language_Name): New procedures
80 * prj.ads: (Suffix_Of): New function
81 (Set (Suffix)): New procedure
82 Add several types and tables for multi-language support.
83 (Header_Num): Type moved from Prj.Com
84 (Hash): Two functions moved from Prj.Com
85 (Is_Present, Language_Processing_Data_Of): New functions
86 (Set): Two new procedures
87 (Add_Language_Name, Display_Language_Name): New procedures
88 (Naming): Component name changes:
89 Current_Spec_Suffix => Ada_Spec_Suffix,
90 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
91 Impl_Suffixes, Supp_Suffixes.
92 (Project_Data): New components: Externally_Built, Supp_Languages,
93 First_Language_Processing, Supp_Language_Processing, Default_Linker,
96 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
97 new package Language_Processing with its attributes (Compiler_Driver,
98 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
99 Binder_Driver, Default_Linker).
101 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
102 (Header_Num): Type moved to package Prj
104 * prj-env.adb: Adapt to name changes in package Prj
105 (Current_Spec_Suffix => Ada_Spec_Suffix,
106 Current_Body_Suffix => Ada_Body_Suffix).
108 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
109 default to the project path, except the "-" is one of the directories
110 in env var ADA_PROJECT_PATH.
111 (Current_Project_Path): Global variable, replacing Project_Path
112 that was in the body of Prj.Part.
113 (Project_Path): New function
114 (Set_Project_Path): New procedure
115 Initialize Current_Project_Path during elaboration of the package
116 Remove dependency on Prj.Com, no longer needed
118 * prj-ext.ads (Project_Path): New function
119 (Set_Project_Path): New procedure
121 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
122 suffix is defined for language <lang>.
123 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
124 accessing directly the components of Naming.
125 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
126 Reorganise of this package.
127 Break procedure Check in several procedures.
129 * prj-nmsc.ads: Replace all procedures (Ada_Check,
130 Other_Languages_Check and Language_Independent_Check) with a single
133 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
134 Process_Languages, no longer needed.
136 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
137 Current_Project_Path.
138 Remove elaboration code, moved to the body of Prj.Ext
139 Use new function Prj.Ext.Project_Path instead of old variable
141 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
142 When comparing with project paths on the stack, first put the resolved
143 path in canonical case.
144 (Parse_Single_Project): Set the path name of the project file in the
145 tree to the normalized path.
147 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
148 parameter Process_Languages, no longer needed.
149 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
150 Other_Languages_Check.
152 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
153 to store the resolved canonical path of the project file.
154 Remove dependency to Prj.Com, no longer needed
156 * prj-util.adb: Adapt to name changes in package Prj
157 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
160 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
161 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
162 Externally_Built, Include_Option, Language_Processing.
164 * makegpr.adb: Numerous changes due to changes in packages
167 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
168 default to the project path, except whe "-" is one of the directories
169 in env var ADA_PROJECT_PATH.
170 (Gnatls): In verbose mode, add the new section "Project Search Path:"
172 2004-12-07 Robert Dewar <dewar@adacore.com>
174 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
176 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
179 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
180 flag. No longer needed now that we handle this in gnat1drv.adb.
182 * repinfo.ads: Minor reformatting
184 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
185 Olivier Hainque <hainque@adacore.com>
186 Eric Botcazou <ebotcazou@adacore.com>
188 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
189 TYPE_SIZE_UNIT of result type if SIZE is not specified.
190 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
191 of a bitfield, which we know is useless and causes trouble because of
192 alignment implications.
194 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
196 (process_attributes): Clear DECL_COMMON again when a section attribute
198 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
199 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
200 (create_field_decl): Special case ADDRESSABLE negative to mean
201 "no bitfield creation", to be used by make_aligning_type. Don't
202 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
203 fields claimed addressable still have to be bitfields. Use
204 value_factor_p instead of a raw binop construction to check for the
205 position's alignment.
207 2004-12-07 Geert Bosch <bosch@adacore.com>
209 * eval_fat.adb: Revert previous change.
211 2004-12-07 Thomas Quinot <quinot@adacore.com>
212 Ed Schonberg <schonberg@adacore.com>
214 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
215 with an implicit dereference as its prefix, use
216 Insert_Explicit_Dereference instead of merely rewriting the prefix into
217 an explicit dereference. This ensures that a reference to the original
218 prefix is generated, if appropriate.
220 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
221 dereference is rewritten to an explicit one, generate a reference to
222 the entity denoted by its prefix using the original prefix node, so
223 the dereference can be properly recorded as a read of the denoted
224 access value, if appropriate.
226 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
227 emitting 'assigned but never read' warning on a variable on the basis
228 that it has an access type.
229 (Check_References): Emit unreferenced warning when the scope is a
232 2004-12-07 Robert Dewar <dewar@adacore.com>
233 Ed Schonberg <schonberg@adacore.com>
235 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
238 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
239 leaving call unchanged.
240 This deals with the case where the pragma Import specified
241 an external name, to be handled by the back end.
243 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
244 subprogram which is Imported with convention Intrinsic if an
245 External_Name argument is specified.
246 (Process_Import_Or_Interface): Properly diagnose link name argument.
247 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
248 with Sem_Ch6.Cannot_Inline.
249 (Process_Inline): Provide separate warning for inapplicable inline
251 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
252 treatment is uniform on different targets.
254 2004-12-07 Ed Schonberg <schonberg@adacore.com>
256 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
257 construct is rewritten, preserve end label to permit source navigation.
259 2004-12-07 Thomas Quinot <quinot@adacore.com>
261 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
262 Specific_Build_Stub_Target): New subprograms.
263 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
264 the PCS implementation used, using the above PCS-customized subprograms.
266 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
267 for generation of DSA code targeted to the PolyORB PCS.
268 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
269 implementation of the partition communication subsystem in ancillary
271 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
272 PolyORB_Support.Build_Stub_Type): New subrograms containing the
273 PCS-specific part of Add_Stub_Type.
274 (Insert_Partition_Check): Use runtime library function to perform
277 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
278 (RE_Same_Partition): New entity, from s-parint.
280 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
282 2004-12-07 Gary Dismukes <dismukes@adacore.com>
284 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
285 Output the copyright message on a separate line from the version
288 2004-12-07 Joel Brobecker <brobecker@adacore.com>
290 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
291 compile-time warning.
293 2004-12-07 Robert Dewar <dewar@adacore.com>
295 * g-regpat.adb: (Match): Change a misuse of or to or else
297 2004-12-07 Ed Schonberg <schonberg@adacore.com>
300 (Generate_Reference): Handle properly a reference to an entry formal,
301 when an accept statement has a pragma Unreferenced for it.
303 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
304 and the Has_Pragma_Unreferenced flag for each formal before analyzing
305 the body, to ensure that warnings are properly emitted for each accept
306 statement of a given task entry.
308 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
310 * Makefile.in: Add support for foreign threads on VMS.
312 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
314 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
316 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
318 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
320 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
322 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
324 2004-12-07 Robert Dewar <dewar@adacore.com>
326 * nlists.adb (Prepend_Debug): Remove parameters and nest within
328 (Remove_Next_Debug): Same fix
330 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
331 maintain back pointers now, though we did not used to, and comments
333 (Prepend): Remove pragma Inline.
334 (Remove_Next): Same cleanup
336 2004-12-07 Thomas Quinot <quinot@adacore.com>
338 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
339 used to record an implicit dereference as a read operation on its
340 prefix when operating under -gnatc. Necessary to avoid spurious
341 'variable assigned but never read' warnings in that mode.
342 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
343 is a non-overloaded implicit dereference, call the above subprogram to
344 ensure proper recording of references.
346 2004-12-07 Gary Dismukes <dismukes@adacore.com>
348 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
349 to be resolved later as part of Analyze_Iteration_Scheme's call to
352 2004-12-07 Ed Schonberg <schonberg@adacore.com>
354 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
355 prefix is not a scalar type, place error message on prefix, not on
358 2004-12-07 Bernard Banner <banner@adacore.com>
360 * vxaddr2line.adb: Add support for x86 vxworks
362 2004-12-07 Thomas Quinot <quinot@adacore.com>
364 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
365 documentation of the behaviour of these functions when passed an IP
366 address that has no record in the system hosts database and no reverse
369 * cstand.adb, a-tags.ads: Fix typos in comment.
371 2004-12-07 Robert Dewar <dewar@adacore.com>
373 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
374 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
375 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
376 s-poosiz.ads: Minor reformatting
378 * make.adb: Minor reformatting
379 Add some ??? comments asking for more comments
381 * s-poosiz.adb: Minor reformatting
382 Add comments on alignment requirement
384 * sinfo.ads: Remove obsolete comment and fix typo.
386 2004-12-07 Vincent Celier <celier@adacore.com>
387 Sergey Rybin <rybin@adacore.com>
389 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
390 Files" with the new tool and package names.
391 Reformatting to suppress most of the warnings for line too long
392 Document the new section "Project Search Path:" in the output of
394 Add gnatmetric section
396 2004-12-07 Vincent Celier <celier@adacore.com>
398 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
399 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
400 and -eit to -ept. Added qualifier
401 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
403 2004-11-27 Andreas Schwab <schwab@suse.de>
405 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
407 2004-11-25 Arnaud Charlet <charlet@adacore.com>
409 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
410 internal implementation unit GNAT.Sockets.Thin,
411 as their usage for sockets is non-portable (using the read and write
412 functions from the system runtime library is fine on UNIX but won't
415 * mingw32.h: Update copyright notice.
417 2004-11-25 Arnaud Charlet <charlet@adacore.com>
419 * ada-tree.h: Minor reformatting of previous change to avoid lines
420 longer than 79 characters.
422 2004-11-25 Olivier Hainque <hainque@adacore.com>
424 * tb-gcc.c: GCC infrastructure based implementation of
427 2004-11-24 Steven Bosscher <stevenb@suse.de>
429 * misc.c (gnat_post_options): Don't clear
430 flag_inline_functions.
432 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
435 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
438 2004-11-21 Andreas Jaeger <aj@suse.de>
440 * stylesw.adb: Change Style_Check_Subprogram_Order to
441 Style_Check_Order_Subprograms.
443 2004-11-18 Arnaud Charlet <charlet@adacore.com>
446 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
448 Add also a cast to kill another warning.
449 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
450 parameter with the priority class of the parent process instead of
451 always using the NORMAL_PRIORITY_CLASS.
452 (__gnat_dup): New function.
453 (__gnat_dup2): New function.
454 (__gnat_is_symbolic_link): Enable the effective body of this
455 function when __APPLE__ is defined.
457 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
460 2004-11-18 Olivier Hainque <hainque@adacore.com>
462 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
463 address of which may be used to represent "others" and "all others"
464 choices in exception tables, instead of the current harcoded
465 (void *)0 and (void *)1.
466 (Setup_Exception): Do nothing in the GNAT SJLJ case.
468 * gigi.h (others_decl, all_others_decl): New decls representing the
469 new Others_Value and All_Others_Value objects.
470 (struct attrib): Rename "arg" component as "args", since GCC expects a
471 list of arguments in there.
473 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
474 corresponding objects exported by a-exexpr, instead of hardcoded dummy
477 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
478 others_decl and all_others_decl instead of hardcoded dummy addresses
479 to represent "others" and "all others" choices, which is cleaner and
480 more flexible with respect to the possible eh pointer encoding policies.
482 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
483 (process_attributes): Account for the naming change of the "args"
484 attribute list entry component.
486 * decl.c (build_attr_list): Rename into prepend_attributes to allow
487 cumulating attributes for different entities into a single list.
488 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
489 attributes for the current entity and propagate first subtype
490 attributes to other subtypes.
491 <E_Procedure>: Attribute arguments are attr->args and not
493 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
494 argument provided, as this is what GCC expects. Use NULL_TREE instead
497 2004-11-18 Robert Dewar <dewar@adacore.com>
499 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
500 Minor reformatting througout (including new function specs)
501 Add ??? comments asking for clarification.
503 2004-11-18 Thomas Quinot <quinot@adacore.com>
505 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
506 incomplete duplicate implementation of this subprogram from butil.
508 2004-11-18 Thomas Quinot <quinot@adacore.com>
510 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
511 procedures factors the common processing for building an RPC receiver
512 for an RCI package or an RACW type.
513 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
514 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
515 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
517 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
519 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
521 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
522 distribution subprogram identifiers that are either subprogram numbers
524 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
525 string distribution identifiers assigned to a given subprogram.
526 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
527 (Add_RAS_Dereference_TSS): Add comments.
528 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
529 is not referenced yet because it will be used by the PolyORB DSA
531 (Insert_Partition_Check): Remove fossile code.
532 (First_RCI_Subprogram_Id): Document this constant.
533 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
535 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
536 replaced with calls to Get_Library_Unit_Name_String. Previously there
537 were several instances of the same code in different locations in the
538 compiler; this checkin completes the replacement of all of these
539 instances with calls to a common subprogram.
542 * sem_dist.adb: Remove comment noting that RPC receiver generation
543 should be disabled for RACWs that implement RASs.
544 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
546 * sem_util.ads, sem_util.adb (Has_Stream): New function
547 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
548 qualified name of a library unit into the name buffer.
549 (Note_Possible_Modification): Generate a reference only
550 if the context comes from source.
552 * snames.ads (PCS_Names): New subtype corresponding to names of
553 supported implementations of the Partition Communication Subsystem
554 (PCS) (i.e. the runtime library support modules for the distributed
557 2004-11-18 Robert Dewar <dewar@adacore.com>
558 Ed Schonberg <schonberg@adacore.com>
560 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
561 (Has_Rep_Pragma): New function
562 (Has_Attribute_Definition_Clause): New function
563 (Record_Rep_Pragma): Moved here from sem_ch13.adb
564 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
566 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
568 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
569 (Expand_Pragma_Psect_Object): New procedure
570 These procedures contain the revised and cleaned up processing for
571 these two pragmas. This processing was formerly in Sem_Prag, but
572 is more appropriately moved here. The cleanup involves making sure
573 that the pragmas are properly attached to the tree, and that no
574 nodes are improperly shared.
576 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
577 pragmas to Exp_Prag, which is more appropriate.
578 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
579 check for duplicates Remove use of Is_Psected flag, no longer needed.
580 Use new Make_String_Literal function with string.
582 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
583 that are functions return universal values, that have to be converted
585 Use new Make_String_Literal function with string.
586 (Get_Stream_Convert_Pragma): New function, replaces the use of
587 Get_Rep_Pragma, which had to be kludged to work in this case.
589 * freeze.adb: Use new Has_Rep_Pragma function
591 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
592 function with string.
593 Use new Has_Rep_Pragma function.
595 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
598 2004-11-18 Robert Dewar <dewar@adacore.com>
600 * errout.ads, errout.adb: (First_Sloc): New function
602 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
603 check (-gnatyx) instead of being included as a redundant construct
606 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
607 Style_Check_Order_Subprograms.
609 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
610 stylesw.adb: Add Style_Check_Xtra_Parens
612 * usage.adb: Add line for -gnatyx (check extra parens)
614 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
616 2004-11-18 Ed Schonberg <schonberg@adacore.com>
617 Robert Dewar <dewar@adacore.com>
619 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
620 discriminant of a constrained subtype, analyze the copy of the
621 corresponding constraint, because in some cases it may be only
623 Removes long-lived ??? comments.
625 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
626 handled controlled or secondary-stack expressions within the
627 iteration_scheme of a loop.
629 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
630 bounds that may contain functions calls, to prevent memory leaks when
631 the bound contains a call to a function that uses the secondary stack.
632 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
633 generate temporaries for loop bounds that might contain function calls
634 that require secondary stack and/or finalization actions.
636 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
637 selected component and the selector is overloadable (not just a
638 function) treat as function call, Analyze_Call will disambiguate if
640 (Analyze_Selected_Component): Do not generate an actual subtype for the
641 selected component if expansion is disabled. The actual subtype is only
642 needed for constraint checks.
643 (Analyze_Allocator): If restriction No_Streams is set, then do
644 not permit objects to be declared of a stream type, or of a
645 composite type containing a stream.
647 * restrict.ads: Remove the a-stream entry from Unit_Array, since
648 No_Streams no longer prohibits with'ing this package.
650 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
651 discriminants, but the parent base has unknown discriminants, there is
652 no discriminant constraint to inherit. Such a discrepancy can arise
653 when the actual for a formal type with unknown discriminants is a
654 similar private type whose full view has discriminants.
655 (Analyze_Object_Declaration): If restriction No_Streams is set, then
656 do not permit objects to be declared of a stream type, or of a
657 composite type containing a stream.
659 2004-11-18 Ed Schonberg <schonberg@adacore.com>
661 * exp_dbug.ads: Update documentation to reflect simpler encoding for
662 protected operations.
664 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
665 generated name, it complicates decoding in gdb and hinders debugging
666 of protected operations.
667 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
668 flag for the protected entry barrier function.
669 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
670 flag for the protected entry function.
672 2004-11-18 Nicolas Setton <setton@adacore.com>
674 * expect.c: Define __unix__ when __APPLE__ is defined.
676 * Makefile.in: Inform the value of the variable GMEM_LIB in the
677 Darwin-specific section.
679 * lang-specs.h: Change the placement of the %1 marker.
680 Works around the fact that gcc adds -fPIC by default under Darwin.
682 2004-11-18 Ed Schonberg <schonberg@adacore.com>
684 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
685 type of the object with the packed array type, set the Analyzed flag
686 on the object if it is an entity or simple indexed component, to avoid
687 spurious type errors.
689 2004-11-18 Gary Dismukes <dismukes@adacore.com>
691 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
692 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
693 separate line from the version message.
695 2004-11-18 Ed Falis <falis@adacore.com>
697 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
699 (init_float): Eliminate initialization of floating point status for
700 AE653. The instructions have no effect for vThreads.
702 2004-11-18 Vincent Celier <celier@adacore.com>
704 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
705 gnatbind is invoked with -shared.
707 2004-11-18 Jose Ruiz <ruiz@adacore.com>
709 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
710 for Detect_Blocking which is redundant with the check done within the
711 procedure Protected_Single_Entry_Call.
712 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
713 Detect_Blocking which is redundant with the check done within the
714 procedure Protected_Single_Entry_Call.
716 2004-11-18 Vincent Celier <celier@adacore.com>
718 * makegpr.adb (Compile): Put the compiling switches (in package
719 Compiler and on the command line) immediately after "-c", instead of
720 at the end of the command line invocation of the compiler, when
721 compiling a non-Ada file.
722 (Build_Global_Archive): When there is no need to rebuild the archive,
723 set Global_Archive_Exists, so that the archive is passed to the linker
726 2004-11-18 Robert Dewar <dewar@adacore.com>
727 Sergey Rybin <rybin@adacore.com>
730 Remove extra paren check from list of checks for redundant constructs
731 Add documentation of new -gnatyx style check (check extra parens)
732 Remove paragraph about gnatelim debug options.
734 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
735 objects rather than forbidding dependencies on the package Ada.Streams.
737 * sinfo.ads: Add ??? note that we should document pragmas passed to
740 * g-expect.ads: Fix a few typos in the comments.
742 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
744 * misc.c (gnat_handle_option): Use %< and %> for quoting in
747 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
749 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
751 2004-11-07 Andreas Schwab <schwab@suse.de>
753 * Makefile.in (install-gnatlib): Remove spurious hyphen.
755 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
758 * Makefile.in (darwin): Set soext to .dylib.
760 2004-10-26 Vincent Celier <celier@gnat.com>
761 Thomas Quinot <quinot@act-europe.fr>
763 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
764 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
765 there is no use of GNAT.Sockets.Constants.
766 Remove remaining pragma Import for C_Write
767 Remove C_Read and C_Write from internal implementation unit
768 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
769 the read and write functions from the system runtime library is fine
770 on UNIX but won't work under Windows).
772 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
773 (Check_Selector): Use C_Recv instead of C_Read.
774 Selectors are the GNAT.Sockets abstraction to perform a select()
775 call on a set of descriptors. To allow abortion of an ongoing
776 select operation, some data is written to a dedicated socket that
778 Under Windows, the write and read library functions cannot operate
779 on sockets, so we need to use send and recv instead, which is portable
780 across all supported platforms.
782 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
783 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
784 (using the read and write functions from the system runtime library is
785 fine on UNIX but won't work under Windows).
787 2004-10-26 Nicolas Setton <setton@act-europe.fr>
789 * mlib-tgt-darwin.adb: New file.
791 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
792 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
793 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
794 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
797 * Makefile.in: Add support for building shared libraries under Darwin.
798 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
799 the low level EH init subprogram to be called from __gnat_initialize.
801 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
802 indicates which options to pass to the archive indexer.
804 * mlib-utl.adb: Add support for calling ranlib with additional
805 options. This is needed for instance under Mac OS X.
806 (Ranlib_Options): New global variable, used to store the potential
807 options to pass to ranlib.
808 (Ar): Use Ranlib_Options when spawning ranlib.
809 (Initialize): Set the value of ranlib option.
811 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
813 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
814 instead of 8K, to reflect the real potential needs for stack-checking
817 2004-10-26 Pascal Obry <obry@gnat.com>
819 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
821 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
822 Windows only the initial thread stack size can be set so it is good to
823 start we a low stack size.
824 The OS will adjust the size as needed.
826 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
827 Nicolas Setton <setton@act-europe.fr>
829 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
830 "__unix__" instead of "unix".
831 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
832 sections were just mistakenly ignored. The former is
833 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
834 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
835 of hpux. This prevents an unwanted definition of the symbol
836 convert_addresses in adaint.o.
838 2004-10-26 Gary Dismukes <dismukes@gnat.com>
840 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
841 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
843 2004-10-26 Cyrille Comar <comar@act-europe.fr>
845 * a-filico.ads, a-filico.adb: fix incorrect header.
847 2004-10-26 Javier Miranda <miranda@gnat.com>
849 * a-ststio.ads: Fix typo in identifier
851 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
853 * sem_ch4.adb: Minor reformatting.
855 2004-10-26 Ed Schonberg <schonberg@gnat.com>
857 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
858 enabled, check the result of unary and binary operations when the
859 expression is the right-hand side of an assignment.
861 2004-10-26 Vincent Celier <celier@gnat.com>
863 * clean.adb (Delete): Do not output warnings when in quiet output and
865 (Force_Deletions): New Boolean flag, defaulted to False
866 (Delete): Only delete a file if it is writable, and when
867 Force_Deletions is True.
868 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
869 (Usage): Line for new switch -f
870 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
873 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
875 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
876 JM type only if its size matches that of the wrapper. When a size is
877 prescribed and the field is not aliased, remove the wrapper of a JM
878 type only if the size is not greater than that of the packed array.
879 (gnat_to_gnu_entity): Change the extension of packed array wrappers
882 2004-10-26 Geert Bosch <bosch@gnat.com>
884 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
885 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
886 (Pred): Implement in terms of Succ.
888 2004-10-26 Ed Schonberg <schonberg@gnat.com>
890 * exp_aggr.adb (Safe_Component): An aggregate component that is an
891 unchecked conversion is safe for in-place use if the expression of the
893 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
894 be expandable in place even if the aggregate does not come from source.
895 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
896 designated object of an allocator in place, rather than building it
897 first on the stack. The previous scheme forces a full copy of the array,
898 and may be altogether unsusable if the size of the array is too large
899 for stack allocation.
901 2004-10-26 Robert Dewar <dewar@gnat.com>
903 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
904 compares if the component is atomic.
906 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
907 array assignment if the component type is atomic.
909 2004-10-26 Ed Schonberg <schonberg@gnat.com>
910 Eric Botcazou <ebotcazou@act-europe.fr>
912 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
913 is aliased and is a by_reference type, do not pass by copy.
914 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
915 detect whether the call is in the right side of an assignment or
916 the expression of an object declaration. Recurse on component
917 association within aggregates.
918 Call it in the condition that determines whether the temporary is
919 necessary for correct stack-checking.
921 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
923 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
924 RACW_Type, used in the PolyORB version.
925 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
926 version and the GARLIC version.
928 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
929 Rename RCI_Info to RCI_Locator for better consistency between the
930 GARLIC and PolyORB versions of the distributed systems annex.
931 (DSA_Implementation_Name): This enumeration lists the possible
932 implementations of the Partition Communication Subsystem for the
933 Distributed Systems Annex (DSA). The three available implementations
934 are the dummy stub implementation (No_DSA), and two versions based on
935 two different distribution runtime libraries: GARLIC and PolyORB. Both
936 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
938 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
941 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
942 between the GARLIC and PolyORB versions of the distributed systems
944 Remove RE_Unbounded_Reclaim_Pool since it is unused.
946 2004-10-26 Gary Dismukes <dismukes@gnat.com>
948 * gnat1drv.adb: Suppress calling the back end when
949 Frontend_Layout_On_Target is true.
951 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
953 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
954 Set_Read_Only): New subprograms.
955 These new routines allow the user to set or unset the Owner execute
956 and Owner write permission flags on a file.
958 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
959 GNAT.OS_Lib.Set_Executable instead of rolling our own.
961 2004-10-26 Matthew Gingell <gingell@gnat.com>
963 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
965 2004-10-26 Pascal Obry <obry@gnat.com>
967 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
968 memory before the faulting page we properly test the process read
969 access for this address using appropriate Win32 routine.
970 (HPUX sections): guard with "__hpux__" instead of "hpux".
972 2004-10-26 Robert Dewar <dewar@gnat.com>
974 * lib-xref.adb (Generate_Reference): Don't complain about reference to
975 entry parameter if pragma Unreferenced set, since we do not properly
976 handle the case of multiple parameters.
978 2004-10-26 Vincent Celier <celier@gnat.com>
980 * prj-env.adb: (Contains_ALI_Files): New Boolean function
981 (Ada_Objects_Path.Add): For a library project, add to the object path
982 the library directory only if there is no object directory or if the
983 library directory contains ALI files.
984 (Set_Ada_Paths.Add.Recursive_Add): Ditto
986 2004-10-26 Vincent Celier <celier@gnat.com>
988 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
989 extension of library projects.
991 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
992 path defaults to ".:<prefix>/lib/gnat".
993 (Parse): For an extending all project, allow direct import of a project
994 that is virtually extended.
996 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
997 the specified name is directly imported, return its ID. Otherwise, if
998 an extension of this project is imported, return the ID of the
1001 2004-10-26 Robert Dewar <dewar@gnat.com>
1003 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
1004 (Sub3): New procedure, used by Scaled_Divide
1005 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
1006 correct more than one instance of failure to propagate carries
1008 (Double_Divide): Handle overflow case of largest negative number
1009 divided by minus one.
1011 * s-arit64.ads (Double_Divide): Document that overflow can occur in
1012 the case of a quotient value out of range.
1015 2004-10-26 Robert Dewar <dewar@gnat.com>
1017 * s-bitops.adb (Bit_Eq): Remove redundant check.
1019 * s-bitops.ads: Minor comment updates
1020 Change some occurrences of Address to System.Address
1022 * s-carsi8.ads: Fix minor cut-and-paste error in comments
1024 2004-10-26 Ed Schonberg <schonberg@gnat.com>
1026 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
1027 accessibility check to prefix that is a protected operation.
1029 2004-10-26 Ed Schonberg <schonberg@gnat.com>
1031 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
1032 empty, post message on stub.
1034 2004-10-26 Ed Schonberg <schonberg@gnat.com>
1035 Javier Miranda <miranda@gnat.com>
1037 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
1038 current instance appears within a unit that is directly in the context
1040 Used to determine whether the body of the instance should be analyzed
1041 immediately after its spec, to make its subprogram bodies available
1042 for front-end inlining.
1043 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
1044 constraint is not allowed on the component type (AARM 12.5.3(3))
1046 2004-10-26 Cyrille Comar <comar@act-europe.fr>
1048 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1049 'Storage_Pool): enhance, document & limit detection of non-sharable
1052 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
1054 * s-pooglo.ads: Add more documentation now that this pool is properly
1057 2004-10-26 Ed Schonberg <schonberg@gnat.com>
1059 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
1060 or protected type with discriminants, do not constrain the
1061 corresponding record type if the subtype declaration has no
1062 discriminant constraints. This can be the case in source code, or in
1063 the subtype declaration created to rename an actual type within an
1066 2004-10-26 Ed Schonberg <schonberg@gnat.com>
1068 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
1069 different kind of stub (possibly wrong name for file), do not check
1071 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
1072 includes call to some function that returns an unconstrained type, do
1075 2004-10-26 Ed Schonberg <schonberg@gnat.com>
1077 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
1078 appear in the code for the main unit. Dependencies among units in the
1079 context of the main unit are established when those other units are
1080 compiled. Otherwise spurious elaboration constraints can generate
1081 incorrect elaboration circularities.
1083 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
1084 Ed Schonberg <schonberg@gnat.com>
1086 * sem_util.adb (Is_Aliased_View): Defend against the case where this
1087 subprogram is called with a parameter that is not an object name. This
1088 situation arises for some cases of illegal code, which is diagnosed
1089 later, and in this case it is wrong to call Is_Aliased, as that might
1090 cause a compiler crash.
1091 (Explain_Limited_Type): Refine previous fix to include
1092 inherited components of derived types, to provide complete information.
1094 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
1095 is the prival for a protected object.
1096 It is necessary to mark this entity as a variable, in addition to
1097 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
1098 modified to avoid checking the Aliased flag on entities that are not
1099 objects. (Checking that flag for non-objects is erroneous and could
1100 lead to a compiler crash).
1102 2004-10-26 Robert Dewar <dewar@gnat.com>
1104 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
1105 X_Frac = 0.5, then we know that the number X must be positive.
1106 (Succ): Remove the same redundant test, and also fix the primary test
1107 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
1109 (Decompose): Add fuller comments to spec
1111 2004-10-26 Pascal Obry <obry@gnat.com>
1113 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
1114 validity (process must have read access). Set to 0 in all other cases.
1115 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
1117 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
1118 segmentation violation.
1120 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
1122 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
1123 whose type is a constructed subtype of an aliased object with an
1124 unconstrained nominal subtype, convert the actual to the constructed
1125 subtype before taking its address.
1127 2004-10-26 Vincent Celier <celier@gnat.com>
1129 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
1130 (Is_Path_Name_Case_Sensitive): New function
1132 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
1133 (Base_Name, Simple_Name, Current_Directory, Compose,
1134 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
1137 2004-10-26 Cyrille Comar <comar@act-europe.fr>
1138 Vasiliy Fofanov <fofanov@act-europe.fr>
1139 Vincent Celier <celier@gnat.com>
1141 * gnat_ugn.texi: Generalize "finding memory problems" section into a
1142 "memory management issues" section and document some of the useful
1143 memory pools provided as part of the GNAT library.
1144 Remove "virtual" from declaration of A::method2 in
1145 the simple example of Ada/C++ mixed system.
1146 Library Projects may be virtually extended: their virtual extensions
1147 are not Library Projects.
1148 Added section on extending project hierarchies.
1150 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1152 * adaint.c (__gnat_get_libraries_from_registry): Cast value
1154 (__gnat_portable_spawn): Remove const.
1156 * mingw32.h (MAXPATHLEN): Check for previous definition.
1158 2004-10-17 Matthias Klose <doko@debian.org>
1160 * gnatvsn.ads: Set gnat library version to 4.0.
1162 2004-10-05 Vincent Celier <celier@gnat.com>
1164 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
1166 2004-10-04 Laurent GUERBY <laurent@guerby.net>
1169 * Makefile.in: Define and use RANLIB_FLAGS.
1171 2004-10-04 Pascal Obry <obry@gnat.com>
1173 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
1174 other x86 platforms).
1176 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
1178 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
1179 in general and triggers stack alignment adjustment for thread entry
1180 points on targets where this is necessary.
1182 2004-10-04 Bernard Banner <banner@gnat.com>
1186 * Makefile.in: Add section for powerpc linux
1187 Add variant i-vxwork-x86.ads
1189 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
1191 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
1193 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
1194 table registration calls when need be. Ensures no reference to the crt
1195 ctors symbol are issued in the SJLJ case, which avoids possible
1196 undefined symbol errors in the case of modules to be statically linked
1199 2004-10-04 Javier Miranda <miranda@gnat.com>
1201 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
1202 in-line the code corresponding to subprogram Analyze_Actuals. In
1203 addition, analyze the actuals only in case of subprogram call.
1205 2004-10-04 Ed Falis <falis@gnat.com>
1207 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
1209 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
1211 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
1212 in the documentation.
1214 2004-10-04 Robert Dewar <dewar@gnat.com>
1216 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
1218 (Analyze_Block_Statement): Add circuitry to detect following dead code
1219 (Check_Unreachable_Code): Handle case of block exit
1221 2004-10-04 Robert Dewar <dewar@gnat.com>
1223 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
1224 (XMatchD): Avoid warning for Logic_Error call
1226 2004-10-04 Robert Dewar <dewar@gnat.com>
1228 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
1229 consider expressions buried within a procedure actual to be an actual.
1230 This caused some blowups with uses of packed slices within a procedure
1233 2004-10-04 Robert Dewar <dewar@gnat.com>
1235 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
1236 longer need to be initialized to zero.
1237 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
1238 initialized to zero.
1240 * checks.adb (Expr_Known_Valid): Packed arrays are now always
1241 considered valid, even if the representation is modular. That's correct
1242 now that we no longer initialize packed modular arrays to zero.
1244 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
1245 suffixes. These are now documented as the only cases in which the
1246 debugger ignores outer records.
1247 Previously, the spec allowed arbitrary suffixes for this purpose.
1248 Change name of LJM to JM for packed array pad records
1249 Create separate section on packed array handling, and add a whole new
1250 set of comments to this section describing the situation with packed
1251 modular types and justification requirements depending on endianness.
1253 2004-10-04 Robert Dewar <dewar@gnat.com>
1255 * a-except.adb: Add a comment for last change
1257 * einfo.ads: Minor spelling correction in comment
1259 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
1261 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
1264 * sem_util.ads: Minor comment update
1266 2004-10-04 Ed Schonberg <schonberg@gnat.com>
1268 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
1269 Inline_Always when in Configurable_Run_Time mode.
1271 * sem_prag.adb (Process_Convention): If entity is an inherited
1272 subprogram, apply convention to parent subprogram if in same scope.
1273 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
1274 when in Configurable_Run_Time mode.
1276 2004-10-04 Ed Schonberg <schonberg@gnat.com>
1278 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
1279 class_wide type after component list has been inherited.
1281 2004-10-04 Ed Schonberg <schonberg@gnat.com>
1283 * sem_ch12.adb (Check_Generic_Actuals): New predicate
1284 Denotes_Previous_Actual, to handle properly the case of a private
1285 actual that is also the component type of a subsequent array actual.
1286 The visibility status of the first actual is not affected when the
1287 second is installed.
1288 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
1289 make fully recursive the treatment of formals of packages declared
1291 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
1292 the above on exit from an instantiation.
1293 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
1294 current instantiation which is now complete.
1295 (Analyze_Package_Instantiation): No instantiated body is needed if the
1296 main unit is generic. Efficient, and avoid anomalies when a instance
1297 appears in a package accessed through rtsfind.
1299 2004-10-04 Ed Schonberg <schonberg@gnat.com>
1301 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
1302 do not generate a declaration for a temporary if the call is part of a
1303 library-level instantiation.
1305 2004-10-04 Ed Schonberg <schonberg@gnat.com>
1307 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
1308 searching for a limited component to flag.
1310 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
1311 expansion of Input, to account for the fact that the implicit call
1312 generated by the attribute reference must freeze the user-defined
1313 stream subprogram. This is only relevant to 'Input, because it can
1314 appear in an object declaration, prior to the body of the subprogram.
1316 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
1317 expansion can proceed and further errors uncovered.
1318 (Minor clean up): Fix cases of using | instead of \ for continuation
1321 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1323 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
1325 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
1326 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
1327 Use gcc_assert and gcc_unreachable.
1329 * decl.c (gnat_to_gnu_entity, case object): Check and process a
1330 specified alignment before validating size.
1331 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
1332 stripped-down declaration for the type of the inner field when making
1335 * utils.c (finish_record_type): Do not compute the size in units
1336 incrementally. Instead compute it once for the rep clause case.
1337 Use gcc_assert and gcc_unreachable.
1339 2004-10-04 Vincent Celier <celier@gnat.com>
1341 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
1343 (Is_Valid_Path_Name): Take '/' as a directory separator.
1345 2004-10-04 Vincent Celier <celier@gnat.com>
1347 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
1348 (Extended_Project) only if Extended_Project is defined, to avoid
1350 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
1352 (Parse_Single_Project): Ditto.
1354 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
1355 Add_To_Project_Path for virtual projects.
1357 2004-10-04 Vincent Celier <celier@gnat.com>
1359 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1360 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1361 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
1362 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
1363 parameter Options_2.
1365 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
1366 Build_Dynamic_Library with an empty Options_2.
1368 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
1371 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
1372 directory separator, if any.
1373 (Gprmake): Do not allow mains on the command line for library projects.
1374 Do not attempt to link when the project is a library project.
1375 (Library_Opts): New table to store Library_Options.
1376 (Build_Library): If Library_Options is specified, pass these options
1377 when building a shared library.
1379 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
1381 * s-tposen.adb (Service_Entry): The object must be always unlocked at
1382 the end of this procedure now that the unlock operation was inserted
1385 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
1387 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
1388 corresponding to the Preallocated_Stacks flags in System.
1389 (Get_Target_Parameters): Including the processing for
1390 Preallocated_Stacks.
1392 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
1393 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
1394 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
1395 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
1396 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
1397 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
1398 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
1399 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
1400 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
1401 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
1402 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
1403 used to signal whether the compiler creates the required stacks and
1404 descriptors for the different tasks (when True) or it is done by the
1405 underlying operating system at run time (when False).
1406 It is initially set to False in all targets.
1408 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
1409 if it is supported by the target.
1410 (Make_Task_Create_Call): Pass the stack address if it has been
1411 previously created. Otherwise pass a Null_Address.
1413 * snames.adb: Add _stack.
1415 * snames.ads: Add Name_uStack. Required to allow the expander to
1416 statically allocated task stacks.
1418 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
1419 Stack_Address argument.
1420 Check that its value is equal to Null_Address because this target does
1421 not support the static stack allocation.
1423 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
1425 * usage.adb: Change "pragma inline" to "pragma Inline" in information
1428 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
1430 * exp_dist.adb: Split declaration of asynchronous flag out of
1431 Add_RACW_Read_Attribute.
1432 Minor reformatting for better alignment with PolyORB version.
1433 Store the entity for the asynchronous flag of an RACW, rather than the
1434 expression, in the asynchronous flags table. This will allow this flag
1435 to be used in other subprograms beside Add_RACW_Read_Attribute.
1437 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
1439 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
1440 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1441 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
1442 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
1443 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
1444 sockets constant MSG_NOSIGNAL (Linux-specific).
1445 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
1446 all Send operations.
1447 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
1448 from trigerring SIGPIPE.
1449 Rename components to avoid clash with Ada 2005 possible reserved
1451 (Check_Selector): When the select system call returns with an error
1452 condition, propagate Socket_Error to the caller.
1454 2004-10-01 Jan Hubicka <jh@suse.cz>
1456 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
1458 2004-09-23 Robert Dewar <dewar@gnat.com>
1462 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
1463 instead do this at freeze time (we won't do it if there is an address
1465 Change "pragma inline" to "pragma Inline" in information and error
1469 * freeze.adb (Check_Address_Clause): Remove previous change, not the
1470 right way of doing things after all.
1471 (Freeze_Entity): For object, set Is_Public for imported entities
1472 unless there is an address clause present.
1474 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
1476 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
1477 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
1478 ensures proper handling of types with rep clauses, which might have
1479 their TYPE_SIZE set already.
1481 2004-09-21 Robert Dewar <dewar@gnat.com>
1483 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
1484 packed array types in both little- and big-endian cases. This change
1485 ensures that we no longer count on the unused bits being initialized
1486 for such types (and in particular ensures that equality testing will
1487 only read the relevant bits).
1488 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1489 These changes mean that we no longer need to initialize small packed
1491 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
1492 optimization to an LJM field as to its parent field.
1494 * ada-tree.h, trans.c, utils.c, utils2.c:
1495 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1497 2004-09-20 Jan Hubicka <jh@suse.cz>
1499 * utils.c (gnat_finalize): Remove.
1500 (end_subprog_body): Directly call cgraph_finalize_function;
1501 do not lower the nested functions.
1503 2004-09-20 Robert Dewar <dewar@gnat.com>
1507 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
1508 if an address clause is present, since that means that the Import
1511 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
1513 * 5tsystem.ads: Removed, no longer used.
1515 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
1516 Zack Weinberg <zack@codesourcery.com>
1518 * ada-tree.def: Use tree_code_class enumeration constants
1519 instead of code letters.
1520 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
1521 Update for new tree-class enumeration constants.
1523 2004-09-17 Vincent Celier <celier@gnat.com>
1525 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
1526 capabilities of the general project manager.
1528 2004-09-09 Vincent Celier <celier@gnat.com>
1530 * a-direct.ads: Add pragma Ada_05
1531 (Directory_Entry_Type): Give default value to component Kind to avoid
1532 not initialized warnings.
1534 * a-direct.adb (Current_Directory): Remove directory separator at the
1536 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
1537 an existing directory.
1538 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
1539 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
1540 Convert the result to File_Size.
1542 * prj.ads: (Project_Error): New exception
1544 * prj-attr.adb: Except in procedure Initialize, Fail comes from
1545 Prj.Com, not from Osint.
1546 (Attrs, Package_Attributes): Tables moved to private part of spec
1547 (Add_Attribute, Add_Unknown_Package): Moved to new child package
1549 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
1550 Prj.Project_Error after call to Fail.
1551 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
1552 Fail. Check that package name is not already in use.
1554 * prj-attr.ads: Comment updates to indicate that all subprograms may be
1555 used by tools, not only by the project manager, and to indicate that
1556 exception Prj.Prj_Error may be raised in case of problem.
1557 (Add_Unknown_Package, Add_Attribute): Moved to new child package
1559 (Attrs, Package_Attributes): Table instantiations moved from the body to
1560 the private part to be accessible from Prj.Attr.PM body.
1562 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
1563 from new package Prj.Attr.PM.
1564 (Parse_Attribute_Declaration): Call Add_Attribute from new package
1567 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
1569 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
1570 instead of Elaboration_Checks).
1572 * a-calend.adb: Minor reformatting
1574 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1576 * gigi.h (maybe_pad_type): New declaration.
1577 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
1579 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
1581 * cuintp.c: Convert to use buildN.
1583 * decl.c (maybe_pad_type): No longer static.
1584 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
1586 Convert to use buildN.
1588 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
1589 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
1590 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
1592 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
1593 (gnat_gimplify_expr, case ADDR_EXPR): New case.
1594 Convert to use buildN.
1596 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
1597 TREE_READONLY for const.
1598 Convert to use buildN.
1600 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
1601 (create_var_decl): Refine when TREE_STATIC is set.
1602 Convert to use buildN.
1604 2004-09-09 Gary Dismukes <dismukes@gnat.com>
1606 * gnat_ugn.texi: Delete text relating to checking of ali and object
1609 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
1612 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
1614 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
1615 pragmas recognized by GNAT.
1617 * gnat_rm.texi: Document pragma Detect_Blocking.
1619 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
1620 raise Program_Error if called from a protected operation.
1622 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
1623 the protected action nesting level.
1624 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
1625 protected action nesting level.
1626 (Unlock): When pragma Detect_Blocking is active decrease the protected
1627 action nesting level.
1629 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
1630 Protected_Action_Nesting.
1632 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
1633 Common_ATCB record. It contains the dynamic level of protected action
1634 nesting for each task. It is needed for checking whether potentially
1635 blocking operations are called from protected operations.
1636 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
1637 Detect_Blocking is active or not in the partition.
1639 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
1640 raise Program_Error if called from a protected operation.
1641 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
1642 Program_Error if called from a protected operation.
1643 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
1644 Program_Error if called from a protected operation.
1646 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
1647 raise Program_Error if called from a protected operation.
1649 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
1650 raise Program_Error if called from a protected operation, and increase
1651 the protected action nesting level.
1652 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
1653 Program_Error if called from a protected operation, and increase the
1654 protected action nesting level.
1655 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
1656 protected action nesting level.
1658 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
1659 raise Program_Error if called from a protected operation, and increase
1660 the protected action nesting level.
1661 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
1662 Program_Error if called from a protected operation, and increase the
1663 protected action nesting level.
1664 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
1665 raise Program_Error if called from a protected operation.
1666 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
1667 active, raise Program_Error if called from a protected operation.
1668 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
1669 protected action nesting level.
1671 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
1672 insertion of the statement raising Program_Error. The run time
1673 contains the required machinery for handling that.
1675 * sem_util.ads: Change comment associated to procedure
1676 Check_Potentially_Blocking_Operation.
1677 This procedure does not insert a call for raising the exception because
1678 that is currently done by the run time.
1680 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
1682 * init.c: Add the global variable __gl_detect_blocking that indicates
1683 whether pragma Detect_Blocking is active (1) or not (0). Needed for
1684 making the pragma available at run time.
1685 (__gnat_set_globals): Pass and update the detect_blocking parameter.
1687 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
1688 pragma Detect_Blocking is active.
1690 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
1692 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
1693 DB is found in the ali file. Any unit compiled with pragma
1694 Detect_Blocking active forces its effect in the whole partition.
1696 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
1697 Detect_Blocking is active and delay is called from a protected
1700 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
1701 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
1702 Detect_Blocking is active (0 otherwise).
1703 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
1704 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
1707 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
1709 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
1710 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
1713 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
1714 (Register_Receiving_Stub): Add Subp_Info formal parameter.
1715 Update API in placeholder implemetation of s-parint to reflect changes
1716 in distribution runtime library.
1718 * sem_ch3.adb (Expand_Derived_Record): Rename to
1719 Expand_Record_Extension.
1721 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
1722 primitive operations of potentially distributed object types that have
1723 non-controlling anonymous access formals.
1725 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
1727 New implementation of expansion for remote access-to-subprogram types,
1728 based on the RACW infrastructure.
1729 This version of sem_dist is compatible with PolyORB/DSA as well as
1732 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
1733 Asynchrronous that applies to a remote access-to-subprogram type, mark
1734 the underlying RACW type as asynchronous.
1736 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
1737 __gnat_using_gnu_linker to 1.
1739 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
1740 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
1741 GNAT.Perfect_Hash_Generators, and remove the empty
1742 GNAT.Perfect_Hash package.
1744 * atree.adb: Minor reformatting
1746 * exp_ch3.adb (Expand_Derived_Record): Rename to
1747 Expand_Record_Extension.
1748 (Build_Record_Init_Proc.Build_Assignment): The default expression in
1749 a component declaration must remain attached at that point in the
1750 tree so New_Copy_Tree copies it if the enclosing record type is derived.
1751 It is therefore necessary to take a copy of the expression when building
1752 the corresponding assignment statement in the init proc.
1753 As a side effect, in the case of a derived record type, we now see the
1754 original expression, without any rewriting that could have occurred
1755 during expansion of the ancestor type's init proc, and we do not need
1756 to go back to Original_Node.
1758 * exp_ch3.ads (Expand_Derived_Record): Rename to
1759 Expand_Record_Extension.
1761 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
1762 Returns the RACW type used to implement a remote access-to-subprogram
1764 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
1765 New subprograms. Used to create a proxy tagged object for a remote
1766 subprogram. The proxy object is used as the designated object
1767 for RAS values on the same partition (unless All_Calls_Remote applies).
1768 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
1769 System.Partition_Interface.Get_Unique_Remote_Pointer.
1770 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
1771 Renamed from Add_RAS_*_Attribute.
1772 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
1774 New implementation of expansion for remote access-to-subprogram types,
1775 based on the RACW infrastructure.
1777 * exp_dist.ads (Copy_Specification): Update comment to note that this
1778 function can copy the specification from either a subprogram
1779 specification or an access-to-subprogram type definition.
1781 2004-09-09 Ed Schonberg <schonberg@gnat.com>
1783 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
1784 in an instance, between an explicit subprogram an one inherited from a
1785 type derived from an actual.
1787 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
1788 add a polling call if the subprogram is to be inlined by the back-end,
1789 to avoid repeated calls with multiple inlinings.
1791 * checks.adb (Apply_Alignment_Check): If the expression in the address
1792 clause is a call whose name is not a static entity (e.g. a dispatching
1793 call), treat as dynamic.
1795 2004-09-09 Robert Dewar <dewar@gnat.com>
1797 * g-trasym.ads: Minor reformatting
1799 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
1800 packed arrays, since unused bits are expected to be zero for a
1803 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
1805 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
1808 2004-09-09 Pascal Obry <obry@gnat.com>
1810 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
1811 enable map file generation. Add the right option to generate the map
1812 file if Map_File is set to True.
1814 * gnatdll.adb (Gen_Map_File): New variable.
1815 (Syntax): Add info about new -m (Map_File) option.
1816 (Parse_Command_Line): Add support for -m option.
1817 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
1820 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
1822 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
1823 new gnatdist implementation.
1824 Define a subpackage isolating the output routines specific to this
1827 2004-09-09 Joel Brobecker <brobecker@gnat.com>
1829 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
1831 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
1833 2004-09-09 Cyrille Comar <comar@act-europe.fr>
1835 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
1838 * opt.ads: Add Ada_Version_Runtime constant used to decide which
1839 version of the language is used to compile the run time.
1841 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
1843 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
1844 of variable length temporaries for function return now that the
1845 back-end and gigi support it.
1847 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1849 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
1851 * trans.c (struct stmt_group): Delete field GLOBAL.
1852 (gnat_init_stmt_group): Do not initialize it.
1853 (call_to_gnu): Use save_expr, not protect_multiple_eval.
1854 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
1855 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
1856 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
1857 (start_stmt_group): Likewise.
1858 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
1860 * utils2.c (ggc.h): Include.
1861 (build_call_raise): Call build_int_cst, not build_int_2.
1863 * utils.c (gnat_init_decl_processing): Fix arg to
1864 build_common_tree_nodes.
1865 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
1866 (gnat_define_builtin): Set built_in_decls.
1867 (init_gigi_decls): Call build_int_cst, not build_int_2.
1869 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
1870 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
1871 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
1872 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
1873 SET_TYPE_MODULE): Use them.
1874 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
1875 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
1876 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
1877 SET_TYPE_ADA_SIZE): Likewise.
1878 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
1879 (DECL_CONST_CORRESPONDING_VAR,
1880 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
1881 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
1882 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
1883 (TYPE_RM_SIZE_NUM): New macro.
1884 (TYPE_RM_SIZE): Modified to use above.
1886 * cuintp.c: (build_cst_from_int): New function.
1887 (UI_To_gnu): Use it.
1889 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
1890 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
1891 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
1892 MIN_EXPR for the size, copy it into new.
1894 2004-09-01 Robert Dewar <dewar@gnat.com>
1896 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
1897 packed indexed component where array is an IN OUT formal. This
1898 generated garbage code previously.
1900 * gnat_ugn.texi: Document -fverbose-asm
1902 * gnat-style.texi: Minor updates (note that boolean constants and
1903 variables are joined with AND/OR rather than short circuit forms).
1905 2004-09-01 Ed Schonberg <schonberg@gnat.com>
1907 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
1908 it is an upward conversion of an untagged type with no representation
1911 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
1913 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
1914 System.Partition_Interface.
1916 * checks.adb (Apply_Access_Checks): Do not generate checks when
1917 expander is not active (but check for unset reference to prefix of
1920 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
1921 pragma Debug as an if statement with a constant condition, for
1922 consistent treatment of entity references contained within the
1923 enclosed procedure call.
1925 2004-09-01 Vincent Celier <celier@gnat.com>
1927 * bindgen.adb: (Set_EA_Last): New procedure
1928 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
1930 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
1931 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
1932 linked without errors.
1933 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
1935 (Gen_Exception_Table_C): Correct same bugs
1937 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
1939 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
1940 on Windows, make sure that the drive letter is in upper case.
1942 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
1943 Windows, when the drive letter is added and Case_Sensitive is True, the
1944 drive letter is forced to upper case.
1946 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
1947 to Options_2 for the call to MLib.Utl.Gcc.
1949 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
1950 directory separator when defining BASE_DIR.
1952 2004-09-01 Pascal Obry <obry@gnat.com>
1954 * gprcmd.adb (Extend): Do not output trailing directory separator. This
1955 is not needed and it confuses Windows GNU/make which does not report
1956 directory terminated by a slash as a directory.
1957 (gprcmd): Idem for "pwd" internal command.
1959 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
1960 target names rewrite to fix regressions with recent version of
1961 GNU/make. Starting with GNU/make 3.80 the pipe character was not
1962 handled properly anymore.
1964 2004-09-01 Andreas Schwab <schwab@suse.de>
1966 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
1967 * raise.c [!IN_RTS]: Undef abort.
1969 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1971 * utils2.c (build_allocator): Use ssize_int.
1973 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
1975 2004-08-27 Andreas Schwab <schwab@suse.de>
1977 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
1979 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1980 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1982 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
1984 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1986 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
1987 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
1988 * utils.c (init_gigi_decls): Likewise.
1989 * utils2.c (build_call_raise, build_allocator): Likewise.
1991 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1993 * utils.c (gnat_init_decl_processing): Adjust
1994 build_common_tree_nodes call.
1996 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
1998 * utils2.c (build_allocator): Use build_int_cst for negative
2001 2004-08-18 Richard Henderson <rth@redhat.com>
2003 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
2005 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
2007 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
2009 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
2010 (gnat_to_gnu): Likewise.
2012 2004-08-16 Pascal Obry <obry@gnat.com>
2014 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
2015 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
2016 option and not mdll anymore. Update comment.
2018 2004-08-16 Pascal Obry <obry@gnat.com>
2020 * bld.adb (Put_Include_Project): Properly handle directory separators
2023 2004-08-16 Ed Schonberg <schonberg@gnat.com>
2025 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
2026 decreasing the number of allocated junk nodes while searching for the
2027 appropriate subprogram.
2029 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
2031 * cuintp.c (UI_To_gnu): Use build_int_cst..
2032 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
2033 * utils.c (init_gigi_decls): Likewise.
2034 * utils2.c (build_call_raise): Likewise.
2036 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
2038 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
2039 for a global aliased object with a variable size and an unconstrained
2040 nominal subtype, pretend there is no initializer if the one we have is
2041 incomplete, and avoid referencing an inexistant component in there. The
2042 part we have will be rebuilt anyway and the reference may confuse
2045 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
2047 * einfo.ads: Minor reformatting
2049 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
2050 restrictions in the ALI if we only want to warn about violations.
2052 2004-08-13 Vincent Celier <celier@gnat.com>
2054 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
2055 when creating a new Unit_Record in table Units.
2057 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
2058 that are violated, if any.
2060 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
2061 add directory separator if path already ends with a directory separator.
2063 2004-08-13 Ed Schonberg <schonberg@gnat.com>
2065 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
2066 unit, this is an attempt to inline a construct that is not available in
2067 the current restricted mode, so abort rather than trying to continue.
2069 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
2070 discriminants that rename those of the parent, recover names of
2071 original discriminants for the constraint on the full view of the
2073 (Complete_Private_Subtype): Do not create a subtype declaration if the
2074 subtype is an itype.
2076 * gnat_rm.texi: Added section on implementation of discriminated
2077 records with default values for discriminants.
2079 2004-08-13 Ed Schonberg <schonberg@gnat.com>
2082 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
2083 the second operand is overloaded.
2085 2004-08-10 Richard Henderson <rth@redhat.com>
2087 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
2088 add __builtin_alloca.
2090 2004-08-10 Richard Henderson <rth@redhat.com>
2092 * config-lang.in (boot_language): Yes.
2094 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
2096 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
2097 from complaining on potential uninitialized reference.
2098 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
2099 new specification and test explicitly for non-zero return value.
2101 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
2102 returning C.int, to avoid using a derived boolean type.
2104 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
2105 Duplicate_Subexpr_No_Checks in preference to direct use of
2106 Remove_Side_Effects and New_Copy_Tree.
2107 Clear Comes_From_Source on prefix of 'Size attribute reference.
2109 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
2110 g-socthi-vxworks.adb: Change calls to
2111 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
2112 and test explicitly for non-zero return value.
2114 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
2115 (Is_Socket_In_Set): Declare imported function as returning C.int, to
2116 avoid using a derived boolean type.
2118 2004-08-09 Albert Lee <lee@gnat.com>
2120 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
2122 2004-08-09 Pascal Obry <obry@gnat.com>
2124 * gnat_ugn.texi: Document new way to build DLLs on Windows using
2125 GCC's -shared option.
2127 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
2128 Options_2 parameter (options put after object files).
2130 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
2132 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
2133 ignore overflows on low and high bounds of an index to also account for
2134 differences in signedness between sizetype and gnu_index_subtype.
2135 These are as legitimate as the ones caused by a lower TYPE_PRECISION
2138 2004-08-09 Robert Dewar <dewar@gnat.com>
2140 * s-solita.ads, s-solita.adb: Minor reformatting
2142 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
2143 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
2145 Add note that No_Implicit_Conditionals does not suppress
2146 run time constraint checks.
2148 * vms_conv.ads: Minor reformatting
2150 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
2151 and necessary for following change).
2152 (Mark): Return new format Mark_Id containing sec stack address
2153 (Release): Use sec stack address from Mark_Id avoiding Self call
2155 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
2156 pointer (cleanup and necessary for following change).
2157 Define Mark_Id as record containing address of secondary stack, that way
2158 Release does not need to find the stack again, decreasing the number of
2159 calls to Self and improving efficiency.
2161 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
2163 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
2164 case variable into the individual case branches when possible.
2166 * sem_ch11.adb: Minor reformatting
2168 * prj.ads: Correct spelling of suffixs
2170 * prj-nmsc.adb: Minor reformatting
2171 Correct spelling suffixs throughout (also in identifiers)
2173 * freeze.adb: Minor spelling correction
2175 * exp_ch2.adb: Cleanups to handling of Current_Value
2176 (no functional effect).
2178 * bld.adb: Correct spelling of suffixs
2180 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
2182 2004-08-09 Ed Schonberg <schonberg@gnat.com>
2186 * sem_ch7.adb (Install_Private_Declarations): In the body of the
2187 package or of a child, private entities are both immediately_visible
2190 2004-08-09 Ed Schonberg <schonberg@gnat.com>
2192 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
2193 there are no range checks on the value of the literal.
2195 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
2196 wrapped is the triggering alternative of an asynchronous select, action
2197 statements mustbe inserted before the select itself.
2199 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
2200 case where the prefix is a protected function call.
2201 (Resolve_Attribute, case 'Access): The attribute reference on a
2202 subprogram is legal in a generic body if the subprogram is declared
2205 2004-08-09 Vincent Celier <celier@gnat.com>
2207 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
2208 languages, otherwise building the library may fail with unresolved
2210 (Compile_Sources): Do not build libraries if -c switch is used
2212 * gnatlink.adb (Process_Args): New switches -M and -Mmap
2213 (Write_Usage): If map file creation is supported, output new switches
2215 (Gnatlink): When -M is specified, add the necessary switch(es) to the
2216 gcc call, when supported.
2218 * Makefile.in: Added indepsw.o to the object list for gnatlink
2219 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
2221 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
2222 indepsw.adb, indepsw.ads: New files.
2224 2004-08-09 Bernard Banner <banner@gnat.com>
2226 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
2228 * Makefile.in: add section for vxworks x86
2230 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
2232 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
2233 per-object constrained components where the discriminant is of an
2235 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
2236 the parent initialization procedure for derived Unchecked_Unions.
2237 Instead, derived Unchecked_Unions build their own initialization
2239 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
2240 Check the body of the subprogram for details.
2241 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
2242 functions for derived Unchecked_Union types by introducing a condition.
2243 Allow the creation of TSS equality functions for Unchecked_Unions.
2244 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
2245 Add formal parameter Discr to function signature. Discr is used to
2246 control the generated case statement for Unchecked_Union types.
2247 (Make_Eq_If): Rename formal parameter Node to E in function signature.
2249 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
2251 Check the body of the subprogram for details.
2252 (Expand_Composite_Equality): Augment composite type equality to include
2253 correct handling of Unchecked_Union components.
2254 (Expand_N_In): Add condition to detect illegal membership tests when the
2255 subtype mark is a constrained Unchecked_Union and the expression lacks
2256 inferable discriminants, and build a Raise_Program_Error node.
2257 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
2258 to detect types that contain components of unconstrained Unchecked_Union
2259 subtype. Add condition to detect equality between types that have an
2260 unconstrained Unchecked_Union component, and build a Raise_Program_Error
2261 node. Add condition to detect equality between Unchecked_Union types
2262 that lack inferable discriminants, and build a Raise_Program_Error node.
2263 Otherwise build a TSS equality function call.
2264 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
2265 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
2266 with the operand lacking inferable discriminants, and build a Raise_
2268 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
2270 (Has_Inferable_Discriminants): Implement new predicate for objects and
2271 expressions of Unchecked_Union type. Check the body of subprogram for
2273 (Has_Unconstrained_UU_Components): Add function
2274 Component_Is_Unconstrained_UU. It is used to detect whether a single
2275 component is of an unconstrained Unchecked_Union subtype. Add function
2276 Variant_Is_Unconstrained_UU. It is used to detect whether a single
2277 component inside a variant is of an unconstrained Unchecked_Union type.
2279 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
2280 inferred discriminant values. Add condition to generate a case
2281 statement with an inferred discriminant as the switch.
2282 (Make_Component_List_Assign): Introduce a Boolean flag that determines
2283 the behaviour of the subprogram in the presence of an Unchecked_Union.
2284 Add condition to trigger the usage of the inferred discriminant value
2285 as the generated case statement switch.
2286 (Make_Field_Assign): Introduce a Boolean flag that determines the
2287 behaviour of the subprogram in the presence of an Unchecked_Union. Add
2288 condition to trigger the usage of the inferred discriminant value as
2289 the right-hand side of the generated assignment.
2291 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
2292 parameter generation when dealing with Unchecked_Unions.
2294 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
2295 checks for Unchecked_Unions.
2297 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
2299 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
2300 Raise_Program_Error nodes for the execution of Read and Write
2301 attributes of Unchecked_Union types and the execution of Input and
2302 Output attributes of Unchecked_Union types that lack default
2303 discriminant values.
2305 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
2306 Unchecked_Union. Add procedure Check_Component. It is used to inspect
2307 per-object constrained components of Unchecked_Unions for being
2308 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
2309 check individual components withing a variant.
2311 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
2312 comparison of Unchecked_Unions.
2313 (Resolve_Equality_OP): Remove guard that prevents equality between
2316 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
2317 of component subtypes for Unchecked_Union components.
2318 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
2319 since it is the actual subtype.
2321 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
2322 pass of Unchecked_Union subtypes as generic actuals to formal types
2323 that lack known_discriminant_parts or that are derived Unchecked_Union
2324 types, and do nothing. In any other case, produce an error message.
2326 * sem_ch3.adb (Analyze_Component_Declaration): Add function
2327 Contains_POC. It determines whether a constraint uses the discriminant
2328 of an enclosing record type.
2329 Add condition to detect per-object constrained component and set the
2331 (Derived_Type_Declaration): Remove guard that prevents derivation from
2332 Unchecked_Union types.
2333 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
2336 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
2337 references to Unchecked_Union discriminants.
2339 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
2340 formal generation when dealing with Unchecked_Unions.
2341 (Set_Actual_Subtypes): Add condition to prevent generation of actual
2342 subtypes for Unchecked_Unions.
2344 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
2345 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
2346 completions of discriminated partial views by Unchecked_Unions and
2347 produce an error message.
2349 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2351 * trans.c (struct stmt_group): New field, GLOBAL.
2352 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
2353 (struct elab_info): New struct.
2354 (elab_info_list, gnu_elab_proc_stack): New variables.
2355 (Compilation_Unit_to_gnu): New procedure.
2356 (gigi): Call it and also handle elaboration procs we've saved.
2357 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
2358 global field from parent.
2359 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
2360 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
2361 (start_stmt_group): Initialize global field from parent.
2362 (add_decl_expr): Set to global for current statement group.
2363 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
2366 * utils.c (global_bindings_p): True when no current_function_decl; no
2367 longer check current_binding_level.
2369 2004-08-09 Ben Brosgol <brosgol@gnat.com>
2371 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
2374 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
2376 2004-08-06 Andreas Schwab <schwab@suse.de>
2378 * utils.c (gnat_define_builtin): Remove second parameter of
2380 (begin_subprog_body): Likewise.
2382 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
2384 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
2385 optimization, not supported by the tree-ssa back-end.
2387 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
2389 * s-mastop-irix.adb: Update comments.
2391 * a-except.adb (Exception_Information): Raise Constraint_Error if
2392 exception Id is Null_Id.
2393 This is required behavior, which is more reliably and clearly checked
2394 at the top level interface level.
2396 2004-07-26 Javier Miranda <miranda@gnat.com>
2398 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
2399 call if a component has no default_expression and the box is used.
2401 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
2402 default_expression and you use box, it behaves as if you had declared a
2404 (Resolve_Record_Aggregate): If a component has no default_expression and
2405 you use box, it behaves as if you had declared a stand-alone object.
2407 * sem_ch10.adb (Install_Siblings): Do not make visible the private
2408 entities of private-with siblings.
2410 2004-07-26 Ed Schonberg <schonberg@gnat.com>
2412 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
2413 for a component of an itype, set the parent pointer for analysis,
2414 there is no list in which to insert it.
2416 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
2417 bona-fide renamings, not for inherited operations.
2419 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
2420 actual for a formal that is an access parameter, create local
2421 finalization list even if the expression is not an aggregate.
2423 2004-07-26 Ed Schonberg <schonberg@gnat.com>
2426 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
2427 Diagnose properly illegal subprogram renamings that are library units.
2429 2004-07-26 Ed Schonberg <schonberg@gnat.com>
2432 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
2433 conversion rewritten as an unchecked conversion, check that original
2434 expression is a variable.
2436 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
2437 unchecked_conversion, create new node rather than rewriting in place,
2438 to preserve original construct.
2440 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2442 * gigi.h (gnat_expand_body): Deleted.
2444 * Make-lang.in: (trans.o): Depends on function.h.
2446 * misc.c: (gnat_expand_body): Moved to here.
2448 * trans.c (gnat_expand_body_1): Deleted.
2449 (gnat_expand_body): Moved from here.
2450 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
2451 (add_stmt): Check for marked visited with global_bindings_p.
2452 (gnat_gimplify_expr, case COMPONENT_REF): New case.
2453 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
2455 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
2456 VIEW_CONVERT_EXPR if not operation type.
2458 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
2461 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
2462 changes: reformatting of negation operators, removing unneeded
2463 inequality comparison with zero, converting equality comparisons with
2464 zero to negations, changing int/0/1 to bool/false/true, replace calls
2465 to gigi_abort with abort, and various other similar changes.
2467 2004-07-26 Vincent Celier <celier@gnat.com>
2469 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
2472 * make.adb (Gnatmake): Fail when a library is not present and there is
2473 no object directory.
2475 * mlib-prj.adb (Check_Library): No need to check if the library needs
2476 to be rebuilt if there is no object directory, hence no object files
2477 to build the library.
2479 * opt.ads (Setup_Projects): New Boolean flag.
2481 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
2483 Create directory when Kind /= "" and in "gnat setup". Report error if
2484 directory cannot be created.
2485 (Ada_Check): Create library interface copy dir if it does not exist
2486 and we are in "gnat setup".
2487 (Find_Sources): No error if in "gnat setup" and no Ada sources were
2489 (Language_Independent_Check): Create object directory, exec directory
2490 and/or library directory if they do not exist and we are in
2493 * vms_conv.ads: (Command_Type): New command Setup.
2495 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
2497 * vms_data.ads: Add qualifiers/switches for new built-in command
2500 2004-07-25 Richard Henderson <rth@redhat.com>
2502 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
2503 DECL_IGNORED_P on RESULT_DECL.
2505 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
2507 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
2508 allocation and potentially overflowing update with
2509 Tailored_Exception_Information. Use the sec-stack free procedural
2510 interface to output Exception_Information instead.
2512 * a-except.adb (To_Stderr): New subprogram for character, and string
2513 version moved from a-exextr to be visible from other separate units.
2514 (Tailored_Exception_Information): Remove the procedural version,
2515 previously used by the default Last_Chance_Handler and not any more.
2516 Adjust various comments.
2518 * a-exexda.adb: Generalize the exception information procedural
2519 interface, to minimize the use of secondary stack and the need for
2520 local buffers when the info is to be output to stderr:
2521 (Address_Image): Removed.
2522 (Append_Info_Character): New subprogram, checking for overflows and
2523 outputing to stderr if buffer to fill is of length 0.
2524 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
2525 (Append_Info_Address, Append_Info_Exception_Name,
2526 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
2527 Append_Info_Basic_Exception_Traceback,
2528 Append_Info_Exception_Information): New subprograms.
2529 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
2530 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
2531 Exception_Info_Maxlength, Exception_Name_Length,
2532 Exception_Message_Length): New subprograms.
2533 (Exception_Information): Use Append_Info_Exception_Information.
2534 (Tailored_Exception_Information): Use
2535 Append_Info_Basic_Exception_Information.
2536 Export services for the default Last_Chance_Handler.
2538 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
2539 other separate units.
2541 2004-07-20 Vincent Celier <celier@gnat.com>
2543 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
2545 2004-07-20 Ed Schonberg <schonberg@gnat.com>
2547 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
2548 emit itype references for the designated types of component types that
2549 are declared outside of the full record declaration, and that may
2550 denote a partial view of that record type.
2552 2004-07-20 Ed Schonberg <schonberg@gnat.com>
2555 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
2556 which is the designated type in an access component declaration, to the
2557 list of incomplete dependents of the parent type, to avoid elaboration
2558 issues with out-of-scope subtypes.
2559 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
2560 full view of the parent.
2562 2004-07-20 Ed Schonberg <schonberg@gnat.com>
2565 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
2566 entities that are hidden, such as references to generic actuals
2567 outside an instance.
2569 2004-07-20 Javier Miranda <miranda@gnat.com>
2571 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
2572 support to the new notation.
2573 (Analyze_Selected_Component): Add call to Try_Object_Operation.
2575 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
2577 * s-taprob.adb: Adding the elaboration code required for initializing
2578 the tasking soft links that are common to the full and the restricted
2581 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
2582 restricted run time has been moved to the package
2583 System.Soft_Links.Tasking.
2585 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
2586 restricted run time has been moved to the package
2587 System.Soft_Links.Tasking.
2589 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
2591 * s-solita.ads, s-solita.adb: New files.
2593 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2595 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
2596 Case_Statement_to_gnu): Split off from gnat_to_gnu.
2597 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
2598 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
2599 Exception_Handler_to_gnu_zcx): Likewise.
2601 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
2603 * gigi.h (builtin_function): Declare.
2605 2004-07-15 Robert Dewar <dewar@gnat.com>
2607 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
2610 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
2611 access values as an example of a warning.
2613 * gnat_rm.texi: Document new attribute Has_Access_Values
2615 * gnat-style.texi: Document that box comments belong on nested
2618 * sem_util.ads (Has_Access_Values): Improved documentation
2620 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
2622 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
2623 (Process_Interface_Name): Call to this new procedure
2624 (Set_Extended_Import_Export_External_Name): Call to this new procedure
2626 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
2628 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
2630 * einfo.ads: Minor comment typo fixed
2632 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
2634 * snames.adb: Add _atcb.
2636 * snames.ads: Add Name_uATCB.
2638 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
2639 (in the expanded code) when using the restricted run time.
2641 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
2642 a in parameter in order to allow ATCBs to be preallocated (in the
2645 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
2646 order to allow ATCBs to be preallocated. In case of error, the ATCB is
2647 deallocated in System.Tasking.Stages.
2649 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
2650 order to allow ATCBs to be preallocated.
2652 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
2653 here. It was previously done in Initialize_ATCB.
2655 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
2657 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
2658 Restricted run time.
2660 * exp_ch3.adb: When using the Restricted run time, pass the
2661 preallocated Ada_Task_Control_Block when creating a task.
2663 2004-07-15 Ed Schonberg <schonberg@gnat.com>
2665 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
2666 function call that is itself an actual in an enclosing call, diagnose
2667 problem here rather than assuming that resolution will catch it.
2669 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
2670 the local copy of a generic unit for a formal package, and the generic
2671 is a child unit, install private part of ancestors before compiling
2672 private part of spec.
2674 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
2675 use scope entities rather than tree structures, to handle properly
2676 parent units that are instances rewritten as bodies for inlining
2679 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
2680 Remove_Parents): Handle properly a parent unit that is an
2681 instantiation, when the unit has been rewritten as a body for inlining
2684 * par.adb (Goto_List): Global variable to collect goto statements in a
2685 given unit, for use in detecting natural loops.
2687 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
2688 use in detecting natural loops.
2690 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
2691 backwards goto's, and rewrite as a infinite loop, to improve locality
2694 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
2695 subcomponent that includes an indexed reference, to prevent the
2696 generation of copies that would miscompile the desired assignment
2698 (Build_Task_Image_Decls): Add a numeric suffix to
2699 generated name for string variable, to avoid spurious conflicts with
2700 the name of the type of a single protected object.
2702 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
2703 loop with an explicit exit statement, to avoid generating an
2704 out-of-range value with 'Succ leading to spurious constraint_errors
2705 when compiling with -gnatVo.
2707 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
2709 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
2710 might not be analyzed yet, even if its Etype is already set (case of an
2711 unchecked conversion built using Unchecked_Convert_To, for example).
2712 If the prefix has already been analyzed, this will be a nop anyway.
2714 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
2715 controller type, or an assignment of a record type with controlled
2716 components, copy only user data, and leave the finalization chain
2719 2004-07-15 Vincent Celier <celier@gnat.com>
2721 * make.adb (Collect_Arguments): Improve error message when attempting
2722 to compile a source not part of any project, when -x is not used.
2724 * prj.ads: (Defined_Variable_Kind): New subtype
2726 * prj-attr.adb (Register_New_Package): Two new procedures to register
2727 a package with or without its attributes.
2728 (Register_New_Attribute): Mew procedure to register a new attribute in a
2730 New attribute oriented subprograms: Attribute_Node_Id_Of,
2731 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
2732 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
2734 New package oriented subprograms: Package_Node_Id_Of,
2735 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
2737 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
2739 (Package_Node_Id): Now a private, self initialized type
2740 (Register_New_Package): New procedure to register a package with its
2742 New attribute oriented subprograms: Attribute_Node_Id_Of,
2743 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
2744 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
2746 New package oriented subprograms: Package_Node_Id_Of,
2747 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
2749 * prj-dect.adb (Parse_Attribute_Declaration,
2750 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
2752 * prj-makr.adb (Make): Parse existing project file before creating
2753 other files. Fail if there was an error during parsing.
2755 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
2756 new spec of Prj.Attr.
2758 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
2759 to new spec of Prj.Attr.
2761 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2763 * utils2.c: Fix typo in comment.
2765 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2767 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
2768 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
2770 2004-07-14 Andreas Schwab <schwab@suse.de>
2772 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
2774 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2776 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
2778 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
2781 * misc.c (gnat_types_compatible_p): New function.
2782 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
2783 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
2785 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
2786 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
2787 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
2788 (mark_visited): Don't mark dummy type.
2789 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
2790 parameter, we must remove any LJM building from GNU_NAME.
2791 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
2792 (pos_to_constructor): Use int_const_binop.
2793 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
2796 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
2797 (gnat_pushlevel): Set TREE_USE on BLOCK node.
2798 (gnat_install_builtins): Add __builtin_memset.
2800 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
2802 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
2803 for a renaming, stabilize the initialization expression if we are at a
2804 local level. At the local level, uses of the renaming may be performed
2805 by a direct dereference of the initializing expression, and we don't
2806 want possible variables there to be evaluated for every use.
2808 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
2809 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
2810 them on the way. Account for the fact that we may introduce side
2811 effects in the process.
2813 2004-07-13 Richard Henderson <rth@redhat.com>
2815 * misc.c (default_pass_by_ref): Use pass_by_reference.
2817 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
2819 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
2820 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
2822 2004-07-08 Richard Henderson <rth@redhat.com>
2824 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
2827 2004-07-06 Vincent Celier <celier@gnat.com>
2829 * vms_conv.ads: Minor reformatting.
2830 Alphabetical order for enumerated values of type Command_Type, to have
2831 the command in alphabetical order for the usage.
2833 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
2834 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
2836 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
2838 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
2839 (Add_Archive_Path): Only add the global archive if there is one.
2840 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
2841 or not any object file to put in the global archive, and don't build
2842 a global archive if there is none.
2843 (X_Switches): New table
2844 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
2845 in the X_Switches table, if any.
2846 (Initialize): Make sure the X_Switches table is empty
2847 (Scan_Arg): Record -X switches in table X_Switches
2849 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
2851 * make.adb: Minor comment fix
2853 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
2854 invoked with directory information, add the directory in front of the
2857 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
2858 invoked with directory information, add the directory in front of the
2861 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
2862 when Keep_Temporary_Files is False.
2863 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
2864 directory information, add the directory in front of the path.
2865 When not on VMS, handle new switch -dn before the command to set
2866 Keep_Temporary_Files to True.
2867 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
2870 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
2871 invoked with directory information, add the directory in front of the
2874 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
2876 * snames.ads, snames.adb (Name_Stub): New name for the distributed
2879 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
2880 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
2882 * g-socket.adb (To_Timeval): Fix incorrect conversion of
2883 Selector_Duration to Timeval for the case of 0.0.
2885 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
2886 documentation from Evolve_And_Then.
2888 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
2890 * s-taprop-tru64.adb, s-taprop-os2.adb,
2891 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
2893 2004-07-06 Robert Dewar <dewar@gnat.com>
2895 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
2896 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
2897 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
2898 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
2899 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
2900 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
2901 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
2902 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
2903 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
2904 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
2905 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
2906 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
2907 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
2908 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
2909 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
2910 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
2911 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
2912 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
2913 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
2914 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
2915 vms_data.ads: Minor reformatting,
2916 Fix bad box comment format.
2918 * gnat_rm.texi: Fix minor grammatical error
2920 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
2922 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
2923 more cases of discriminated records to be recognized as not needing a
2925 (Has_Access_Values): New function.
2927 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
2929 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
2930 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
2931 with LRM terminology).
2932 Change terminology in comments primitive type => elementary type.
2934 2004-07-06 Ed Schonberg <schonberg@gnat.com>
2937 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
2938 parameters do not impose any requirements on the presence of a body.
2940 2004-07-06 Ed Schonberg <schonberg@gnat.com>
2943 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
2944 compilation unit and is in an open scope at the point of instantiation,
2945 assume that a body may be present later.
2947 2004-07-06 Ed Schonberg <schonberg@gnat.com>
2949 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
2950 Improve error message when specified size is not supported.
2952 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
2953 is never a primitive operation.
2955 2004-07-05 Andreas Schwab <schwab@suse.de>
2957 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
2958 RECORD_OR_UNION_CHECK.
2959 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
2961 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
2963 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
2964 dependency on xgnatugn, instead build it via a submake.
2965 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
2967 2004-07-04 Richard Henderson <rth@redhat.com>
2969 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
2971 2004-07-01 Richard Henderson <rth@redhat.com>
2973 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
2974 * utils.c (max_size): Likewise.
2976 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2978 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
2979 and rest_of_type_compilation; add arg to create_*_decl.
2980 (annotate_decl_with_node): Deleted.
2981 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
2982 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
2983 (get_current_block_context, gnat_pushdecl): New declarations.
2984 (gnat_init_stmt_group): Likewise.
2985 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
2986 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
2987 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
2988 (gnat_init): Call gnat_init_stmt_group.
2989 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
2990 (gnu_pending_elaboration_list): Deleted.
2991 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
2992 (gigi): Rearrange initialization calls and move some to last above.
2993 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
2994 Delete calls to add_decl_expr; add arg to create_*_decl.
2995 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
2996 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
2997 begin_subprog_body and call it.
2998 Don't push and pop ggc context.
2999 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
3000 (add_stmt): Remove handling of DECL_EXPR from here.
3001 If not in function, mark visited.
3002 (add_decl_expr): Put global at top level.
3003 Check for cases of DECL_INITIAL we have to handle here.
3004 (process_type): Add extra arg to create_type_decl.
3005 (build_unit_elab): Rework to just gimplify.
3006 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
3007 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
3008 (get_pending_elaborations, pending_elaborations_p): Likewise.
3009 (push_pending_elaborations, pop_pending_elaborations): Likewise.
3010 (get_elaboration_location, insert_elaboration_list): Likewise.
3011 (gnat_binding_level): Renamed from ada_binding_level.
3012 (init_gnat_to_gnu): Don't clear pending_elaborations.
3013 (global_bindings_p): Treat as global if no current_binding_level.
3014 (set_current_block_context): New function.
3015 (gnat_pushdecl): Renamed from pushdecl; major rework.
3016 All callers changed.
3017 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
3018 (finish_record_type): Call call pushdecl for stub decl.
3019 (function_nesting_depth): Deleted.
3020 (begin_subprog_body): Delete obsolete code.
3021 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
3023 2004-06-28 Robert Dewar <dewar@gnat.com>
3025 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3026 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
3027 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
3028 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3029 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
3031 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
3032 deal with problem of inefficient slices on machines with strict
3033 alignment, when the slice is a component of a composite.
3035 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
3036 machines, we need the check there as well.
3038 2004-06-28 Ed Schonberg <schonberg@gnat.com>
3040 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
3041 determine safe copying direction for overlapping slice assignments
3042 when component is controlled.
3044 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
3045 formal derived type in the actual for a formal package are visible in
3046 the enclosing instance.
3048 2004-06-28 Ed Schonberg <schonberg@gnat.com>
3051 * sem_util.adb (Trace_Components): Diagnose properly an illegal
3052 circularity involving a private type whose completion includes a
3053 self-referential component.
3054 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
3055 renaming or an instantiation from an implicit derived operation.
3057 2004-06-28 Pascal Obry <obry@gnat.com>
3059 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
3061 (Library_File_Name_For): Idem.
3063 2004-06-28 Matthew Gingell <gingell@gnat.com>
3065 * g-traceb.ads: Add explanatory note on the format of addresses
3066 expected by addr2line.
3068 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
3070 * Makefile.in: Force debugging information on s-tasdeb.adb,
3071 a-except.adb and s-assert.adb needed by the debugger.
3073 2004-06-28 Vincent Celier <celier@gnat.com>
3075 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
3079 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
3081 * prj.adb: Minor reformatting
3082 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
3084 * prj.ads: Comment updates
3086 (Project_Data): Change Flag1 to Need_To_Build_Lib.
3087 Remove Flag2: not used.
3089 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
3092 * gnat_ugn.texi: Put a "null;" declaration in one project file example
3094 * gnat_rm.texi: Document Empty declarations "null;".
3096 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
3097 front of the linker options.
3098 (Link_Foreign): Put the global archives and the libraries in front of
3101 2004-06-28 Javier Miranda <miranda@gnat.com>
3103 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
3104 (RTU_Loaded): Code cleanup
3105 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
3106 withed predefined units.
3108 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
3109 explicitly withed predefined units.
3112 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
3113 explicitly withed predefined units.
3115 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3117 * ada-tree.def (DECL_STMT): Deleted.
3118 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
3119 (DECL_STMT_VAR): Deleted.
3120 * decl.c: add_decl_stmt now add_decl_expr.
3122 * trans.c: Likewise.
3123 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3124 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
3125 (add_stmt): Only handle padded type here.
3126 (add_stmt_with_node): Allow gnat_node to not be present.
3127 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
3128 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
3129 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
3130 make a SAVE_EXPR for the entire fat pointer.
3131 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
3132 (create_index_type): Make a DECL_EXPR.
3133 (end_subprog_body): Don't call allocate_struct_function here but
3136 2004-06-25 Pascal Obry <obry@gnat.com>
3138 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
3139 Relocatable from Build_Dynamic_Library call.
3141 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
3142 Relocatable are now synonym.
3144 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
3146 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
3147 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
3150 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
3151 Lib_Address and Relocatable.
3152 (Default_DLL_Address): Removed.
3154 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3155 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3156 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
3157 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
3158 (Default_DLL_Address): Removed.
3160 * mlib-tgt-mingw.adb: Ditto.
3161 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
3163 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
3164 the initial thread stack size.
3166 * a-strmap.ads: Move package L to private part as it is not used in
3167 the spec. Found while reading code.
3169 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
3171 * tracebak.c: Introduce support for a GCC infrastructure based
3172 implementation of __gnat_backtrace.
3174 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
3175 any more. Use accessors instead. This eases maintenance and relaxes
3176 some alignment constraints.
3177 (_GNAT_Exception structure): Remove the Ada specific fields
3178 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
3180 (is_handled_by, __gnat_eh_personality): Replace component references to
3181 exception structure by use of the new accessors.
3183 * init.c (__gnat_initialize): Adjust comments to match the just
3184 reverted meaning of the -static link-time option.
3186 * adaint.c (convert_addresses): Arrange not to define a stub for
3187 mips-irix any more, as we now want to rely on a real version from a
3188 recent libaddr2line.
3190 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
3191 the personality routine can use them and not have to rely on a C
3192 counterpart of the record anymore. This simplifies maintenance and
3193 relaxes the constraint of having Standard'Maximum_Alignment match
3195 Update comments, and add a section on the common header alignment issue.
3197 2004-06-25 Geert Bosch <bosch@gnat.com>
3199 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
3200 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
3202 2004-06-25 Robert Dewar <dewar@gnat.com>
3204 * gnat_rm.texi: Fix section on component clauses to indicate that the
3205 restriction on byte boundary placement still applies for bit packed
3207 Add comment on stack usage from Initialize_Scalars
3209 * gnat_ugn.texi: Add documentation for -gnatyLnnn
3211 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
3212 limiting nesting level.
3214 * usage.adb: Add line for -gnatyLnnn switch
3216 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
3217 sem_ch13.adb, exp_aggr.adb: Minor reformatting
3219 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
3220 type as well as on the subtype. This corrects a problem in freeze in
3221 setting alignments of atomic types.
3223 * sem_eval.ads: Minor comment typo fixed
3225 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
3226 level. Minor reformatting.
3228 * fname.adb (Is_Predefined_File_Name): Require a letter after the
3229 minus sign. This means that file names like a--b.adb will not be
3230 considered predefined.
3232 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
3233 record Test new flag and give diagnostic for bad component clause.
3234 (Freeze_Entity): Set alignment of array from component alignment in
3235 cases where this is safe to do.
3237 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
3240 * cstand.adb: (Create_Standard): Set alignment of String to 1
3242 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
3244 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
3245 code in the common constrained array cases.
3247 * a-storio.adb: Change implementation to avoid possible alignment
3248 problems on machines requiring strict alignment (data should be moved
3249 as type Buffer, not type Elmt).
3251 * checks.adb (Apply_Array_Size_Check): Improve these checks by
3252 killing the overflow checks which we really do not need (64-bits is
3255 2004-06-25 Vincent Celier <celier@gnat.com>
3257 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
3258 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
3259 inconditionally for the main project.
3260 (Recursive_Add_Archives.Add_Archive_Path): New procedure
3261 (Link_Executables.Check_Time_Stamps): New procedure
3262 (Link_Executables.Link_Foreign): New procedure
3263 Changes made to reduce nesting level of this package
3264 (Check): New procedure
3265 (Add_Switches): When not in quiet output, check that a switch is not
3266 the concatenation of several valid switches. If it is, issue a warning.
3267 (Build_Global_Archive): If the global archive is rebuilt, linking need
3269 (Compile_Sources): Rebuilding a library archive does not imply
3270 rebuilding the global archive.
3271 (Build_Global_Archive): New procedure
3272 (Build_Library): New name for Build_Archive, now only for library
3274 (Check_Archive_Builder): New procedure
3275 (Create_Global_Archive_Dependency_File): New procedure
3276 (Gprmake): Call Build_Global_Archive before linking
3277 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
3279 (Scan_Arg): Display the Copyright notice when -v is used
3281 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
3284 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
3286 Add new GNAT LIST qualifier /FILES=
3287 Added qualifier /DIRECTORY= to GNAT METRIC
3288 Added qualifier /FILES= to GNAT METRIC
3289 Added qualifier /FILES to GNAT PRETTY
3291 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
3292 to take into account both versions of the switch.
3294 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
3295 always be the last switch to the gcc driver. Disable switch storing so
3296 that switches automatically added by the gcc driver are not put in the
3299 * prj.adb (Project_Empty): Take into account changes in components of
3302 * prj.ads (Languages_Processed): New enumaration value All_Languages.
3304 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
3305 used. Split Boolean component Ada_Sources_Present in two Boolean
3306 components Ada_Sources_Present and Other_Sources_Present.
3309 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
3310 instead of Sources_Present.
3311 (Set_Ada_Paths.Add.Recursive_Add): Ditto
3313 * prj-nmsc.adb: Minor reformatting
3314 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
3315 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
3316 Check_Ada_Naming_Scheme.
3317 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
3320 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
3322 Make sure that all cycles where there is at least one "limited with"
3324 (Parse_Single_Project): New Boolean parameter In_Limited
3326 * prj-proc.adb (Recursive_Check): When Process_Languages is
3327 All_Languages, call first Prj.Nmsc.Ada_Check, then
3328 Prj.Nmsc.Other_Languages_Check.
3330 * prj-proc.adb (Process): Use Ada_Sources_Present or
3331 Other_Sources_Present (instead of Sources_Present) depending on
3334 * lang-specs.h: Keep -g and -m switches in the same order, and as the
3337 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
3338 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
3340 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
3343 * lib.ads (Disable_Switch_Storing): New procedure.
3345 * make.adb: Modifications to reduce nesting level of this package.
3346 (Check_Standard_Library): New procedure
3347 (Gnatmake.Check_Mains): New procedure
3348 (Gnatmake.Create_Binder_Mapping_File): New procedure
3349 (Compile_Sources.Compile): Add switch -gnatez as the last option
3350 (Display): Never display -gnatez
3353 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
3355 * gnatcmd.adb (Check_Project): New function
3356 (Process_Link): New procedure to reduce nesting depth
3357 (Check_Files): New procedure to reduce the nesting depth.
3358 For GNAT METRIC, include the inherited sources in extending projects.
3359 (GNATCmd): When GNAT LS is invoked with a project file and no files,
3360 add the list of files from the sources of the project file. If this list
3361 is too long, put it in a temp text files and use switch -files=
3362 (Delete_Temp_Config_Files): Delete the temp text file that contains
3363 a list of source for gnatpp or gnatmetric, if one has been created.
3364 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
3365 in the project file is too large, create a temporary text file that
3366 list them and pass it to the tool with "-files=<temp text file>".
3367 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
3369 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
3370 generated file is in not in Ada.
3372 * gnatls.adb: Remove all parameters And_Save that are no longer used.
3373 (Scan_Ls_Arg): Add processing for -files=
3374 (Usage): Add line for -files=
3376 * g-os_lib.adb (On_Windows): New global constant Boolean flag
3377 (Normalize_Pathname): When on Windows and the path starts with a
3378 directory separator, make sure that the resulting path will start with
3381 * clean.adb (Clean_Archive): New procedure
3382 (Clean_Project): When there is non-Ada code, delete the global archive,
3383 the archive dependency files, the object files and their dependency
3384 files, if they exist.
3385 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
3387 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
3389 * sinfo.ads: Fix typo in comment.
3391 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
3392 the TSS for remote access-to-subprogram types, since these TSS are
3393 always present once the type has been analyzed.
3394 (RAS_E_Dereference): Same.
3396 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
3397 reference raises Bad_Attribute, mark the reference as analyzed so the
3398 node (and any children resulting from rewrites that could have occurred
3399 during the analysis that ultimately failed) is not analyzed again.
3401 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
3403 * exp_dist.adb: Minor comment fix.
3405 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
3406 type is an anonymous access type, no unchecked deallocation of the
3407 allocated object can occur. If the object is controlled, attach it with
3408 a count of 1. This allows attachment to the Global_Final_List, if
3409 no other relevant list is available.
3410 (Get_Allocator_Final_List): For an anonymous access type that is
3411 the type of a discriminant or record component, the corresponding
3412 finalisation list is the one of the scope of the type.
3414 2004-06-25 Ed Schonberg <schonberg@gnat.com>
3416 * sem_ch3.adb (Replace_Type): When computing the signature of an
3417 inherited subprogram, use the first subtype if the derived type
3418 declaration has no constraint.
3420 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
3421 before applying previous optimization. Minor code cleanup.
3423 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
3424 placed at the beginning of an unpacked record without explicit
3425 alignment, a slice of it will be aligned and does not need a copy when
3428 2004-06-25 Ed Schonberg <schonberg@gnat.com>
3432 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
3433 reference is written with expressions mimicking parameters.
3435 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
3438 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
3439 STEP 2a. The constraints of a full type declaration of a derived record
3440 type are checked for conformance with those declared in the
3441 corresponding private extension declaration. The message
3442 "not conformant with previous declaration" is emitted if an error is
3445 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
3447 * g-traceb.ads: Document the need for -E binder switch in the spec.
3449 * g-trasym.ads: Document the need for -E binder switch in the spec.
3451 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
3453 * sem_prag.adb: Add handling of pragma Detect_Blocking.
3455 * snames.h, snames.ads, snames.adb: Add entry for pragma
3458 * s-rident.ads: Change reference to pragma Detect_Blocking.
3460 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
3463 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
3464 to indicate whether pragma Detect_Blocking is active.
3466 * par-prag.adb: Add entry for pragma Detect_Blocking.
3468 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
3469 of not handling WITH.
3470 Note that this replaces the previous update which was incorrect.
3472 2004-06-25 Javier Miranda <miranda@gnat.com>
3474 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
3475 use-clauses to have a clean environment.
3477 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
3478 the installation of the use-clauses to stablish a clean environment in
3479 case of compilation of a separate unit; otherwise the call to
3480 use_one_package is protected by the barrier Applicable_Use.
3482 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
3483 the installation of the use-clauses to stablish a clean environment in
3484 case of compilation of a separate unit.
3485 (End_Use_Clauses): Minor comment cleanup.
3487 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
3489 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
3491 2004-06-23 Richard Henderson <rth@redhat.com>
3493 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
3495 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3497 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
3498 now bool instead of int.
3499 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
3500 * trans.c (gnu_switch_label_stack): New function.
3501 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
3502 elaboration of renamed entity returns.
3503 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
3504 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
3505 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
3506 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
3507 DECL_SIZE_UNIT and simplify variable-sized case.
3508 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3509 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
3510 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
3511 (build_unit_elab): Disable for now.
3512 * utils.c (mark_visited): New function.
3513 (pushdecl): Walk tree to call it for global decl.
3514 (update_pointer_to): Update all variants of pointer and ref types.
3515 Add arg to COMPONENT_REF.
3516 (convert): Likewise.
3517 Move check for converting between variants lower down.
3518 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
3519 (build_allocator): Don't force type of MODIFY_EXPR.
3520 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
3523 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3525 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
3526 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
3527 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
3529 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
3530 all callers changed.
3531 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
3532 the way that EXIT_STMT finds the loop label.
3533 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
3534 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
3535 (add_stmt): Use annotate_with_locus insted of setting directly.
3536 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
3537 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
3538 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
3539 (build_vms_descriptor): Add extra args to ARRAY_REF.
3540 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
3541 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
3543 (build_binary_op): Don't make explicit CONVERT_EXPR.
3544 Add extra rgs to ARRAY_REF.
3546 2004-06-14 Pascal Obry <obry@gnat.com>
3548 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
3549 Windows. Fix minor typo.
3551 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
3552 which is now supported on Windows. With this implementation using the
3553 Library Project feature is no different on Windows than on UNIX.
3555 2004-06-14 Vincent Celier <celier@gnat.com>
3557 * makegpr.adb (Compile_Sources): Nothing to do when there are no
3560 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
3562 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
3563 found, show the project name and the path of the previously parsed
3566 2004-06-14 Ed Schonberg <schonberg@gnat.com>
3568 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
3569 array, avoid copying the actual before the call.
3571 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
3573 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
3574 Instead, allocate memory on worst-case alignment assumptions, and then
3575 return an aligned address within the allocated zone.
3577 2004-06-14 Robert Dewar <dewar@gnat.com>
3579 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
3580 elab entities in predefined units in No_Run_Time_Mode.
3581 (Gen_Adainit_C): Same fix
3582 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
3583 units in No_Run_Time_Mode
3584 (Gen_Elab_Calls_C): Same fix
3586 * symbols-vms-alpha.adb: Minor reformatting
3588 * g-debpoo.ads: Minor reformatting
3590 * lib.adb (In_Same_Extended_Unit): Version working on node id's
3592 * lib.ads (In_Same_Extended_Unit): Version working on node id's
3594 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
3597 * make.adb: Minor reformatting
3599 * par-ch12.adb: Minor reformatting
3601 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
3603 * prj-strt.adb: Minor reformatting
3605 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
3608 * sem_attr.adb: Minor reformatting
3610 * sem_ch7.adb: Minor reformatting
3612 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
3613 for type in the same unit as the object declaration.
3615 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
3616 static string expressions and not just string literals.
3618 (Set_Warning): Reset restriction warning flag for restriction pragma
3619 Implement pragma Profile_Warnings
3620 Implement pragma Profile (Restricted)
3621 Give obolescent messages for old restrictions and pragmas
3623 * snames.h, snames.ads, snames.adb: Add new entry for pragma
3626 * s-rident.ads: Add declarations for restrictions required by profile
3627 Restricted and profile Ravenscar.
3629 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
3631 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
3632 configuration pragmas.
3634 2004-06-11 Vincent Celier <celier@gnat.com>
3636 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
3637 gnatsym, when symbol policy is Restricted.
3639 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
3640 gnatsym, when symbol policy is Restricted.
3642 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
3643 read the symbol file.
3644 (Finalize): Fail in symbol policy Restricted if a symbol in the original
3645 symbol file is not in the object files. Do not create a new symbol file
3646 when symbol policy is Restricted.
3648 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
3651 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
3653 (Usage): Line for new switch -R
3655 * make.adb (Initialize): When the platform is not VMS, add the
3656 directory where gnatmake is invoked in the front of the path, if
3657 gnatmake is invoked with directory information. Change the Scan_Args
3658 while loop to a for loop.
3659 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
3660 if Depth is equal or greater than the proposed depth, there is nothing
3662 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
3665 * prj.ads: Add new symbol policy Restricted.
3667 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
3668 with the new parameters Check_All_Labels and Case_Location.
3670 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
3671 (Library_Symbol_File needs to be defined).
3673 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
3674 and Case_Location If Check_All_Labels is True, check that all values of
3675 the string type are used, and output warning(s) if they are not.
3677 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
3680 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
3682 * gnat_ugn.texi: Update documentation about the library directory in
3685 * makegpr.adb (Display_Command): In verbose mode, also display the
3686 value of the CPATH env var, when the compiler is gcc.
3687 (Initialize): Change the Scan_Args while loop to a for loop
3688 (Compile_Individual_Sources): Change directory to object directory
3689 before compilations.
3691 * symbols.ads: New symbol policy Restricted.
3693 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
3695 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
3696 is now taken care of internally in the Exception_Propagation package
3697 and does not require clients assistance any more.
3699 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
3700 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
3701 functions. Helpers to maintain a predicate required in the handling of
3702 occurrence transfer between tasks.
3703 This is now handled internally and does not require clients assistance
3704 for the setup/propagate separation anymore.
3705 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
3706 allocation strategy, handle the Setup_And_Not_Propagated predicate and
3709 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
3710 raise_after_setup, now that everything is handled internally within the
3711 setup/propagation engine.
3713 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
3715 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
3716 Add additional conditions for the case of an actual being a simple
3717 name or literal. Improve inlining by preventing the generation
3718 of temporaries with a short lifetime (one use).
3720 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
3724 * einfo.ads: Minor comment updates for Has_Completion and
3725 E_Constant list of flags.
3727 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
3728 and constant redeclarations now set the Has_Completion flag of their
3729 defining identifiers.
3731 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
3732 Inspect_Deferred_Constant_Completion.
3733 Used to detect private deferred constants that have not been completed
3734 either by a constant redeclaration or pragma Import. Emits error message
3735 "constant declaration requires initialization expression".
3737 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
3738 completes a deferred constant.
3740 2004-06-11 Geert Bosch <bosch@gnat.com>
3742 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
3744 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
3745 calculating exponent for scaling denormal numbers.
3746 (Leading_Part): Properly raise Constraint_Error for zero or negative
3748 (Remainder): Properly raise Constraint_Error for zero divisor.
3750 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
3752 * sem_util.adb: Minor reformatting.
3754 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
3755 dereference when accessing the entry parameter record.
3756 (Check_Array_Type): Always check for possible implicit dereference.
3757 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
3758 Abort if a pointer is still present (denoting that an implicit
3759 dereference was left in the tree by the front-end).
3761 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
3762 dereference when accessing the entry parameter record.
3763 (Check_Array_Type): Always check for possible implicit dereference.
3764 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
3765 Abort if a pointer is still present (denoting that an implicit
3766 dereference was left in the tree by the front-end).
3768 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
3770 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
3771 message, like the compiler itself does. Easier to parse the output.
3773 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
3775 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
3776 be base names, and not includes directories.
3778 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
3780 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
3781 so that dependencies are properly taken into account by make.
3783 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
3786 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
3787 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
3789 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
3791 * Makefile.in (install-gnatlib): install target-specific run-time files.
3793 * Make-lang.in: Remove obsolete targets.
3795 2004-06-11 Ed Schonberg <schonberg@gnat.com>
3797 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
3798 specification, to catch misuses of program unit names.
3800 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
3801 superfluous conversions in an instance.
3803 2004-06-11 Ed Schonberg <schonberg@gnat.com>
3807 * sem_ch12.adb (Save_References): If operator node has been folded to
3808 enumeration literal, associated_node must be discarded.
3810 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
3812 * s-stchop-vxworks.adb: Add required pragma Convention to
3813 Task_Descriptor because it is updated by a C function.
3815 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
3819 * Makefile.in: Remove target specific SO_OPT on IRIX
3821 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3823 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
3824 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
3825 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
3826 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
3827 (STMT_STMT, USE_STMT): New statement codes.
3828 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
3829 * ada-tree.h: Reflect above changes.
3830 (struct tree_loop_id): Deleted.
3831 (union lang_tree_node, struct lang_decl, struct lang_type):
3832 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
3833 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
3834 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
3835 (IS_ADA_STMT): New macro.
3836 * decl.c (annotate_decl_with_node): New function.
3837 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
3838 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
3839 Call add_stmt_with_node to do needed assignments.
3840 Add call to update setjmp buffer directly, not via EXPR_STMT.
3841 (maybe_variable): Argment GNAT_NODE deleted.
3842 * gigi.h (maybe_variable): Likewise.
3843 (make_transform, add_stmt_with_node, set_block_for_group): New.
3844 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
3845 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
3846 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
3847 (set_lineno, set_lineno_from_sloc): Likewise.
3848 (record_code_position, insert_code_for): Likewise.
3849 (gnat_poplevel): Now returns void.
3850 (end_subprog_body): Now takes argument.
3851 * misc.c (cgraph.h, tree-inline.h): New includes.
3852 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
3853 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
3854 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
3855 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
3856 (gnat_parse_file): Don't set immediate_size_expand.
3857 Call cgraph functions.
3858 (gnat_expand_expr): Remove most cases.
3859 (record_code_position, insert_code_for): Remove from here.
3860 * trans.c (toplev.h, tree-gimple.h): Now included.
3861 (discard_file_names): Deleted.
3862 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
3863 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
3864 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
3865 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
3866 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
3867 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
3868 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
3869 (set_block_for_group, add_stmt_list): Likewise.
3870 (start_stmt_group): Renamed from start_block_stmt.
3871 (end_stmt_group): Likewise, from end_block_stmt.
3872 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
3873 (gigi): Don't set discard_file_names or call set_lineno.
3874 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
3875 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
3876 Numerous changes throughout to reflect new names and complete
3877 function-at-a-time implementation.
3878 (gnat_expand_stmt): Delete or comment out all cases.
3879 (process_inlined_subprograms): Use add_stmt.
3880 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
3881 call set_lineno; also remove unneeded block handling.
3882 (process_type): Remove unneeded block handling.
3883 (build_unit_elab): Remove calls to deleted functions.
3884 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
3885 (tree-dump.h): Likewise.
3886 (struct ada_binding_level): Add field jmpbuf_decl.
3887 (gnat_define_builtin, gnat_install_builtins): New.
3888 (gnat_gimplify_function, gnat_finalize): Likewise.
3889 (gnat_poplevel): No longer return BLOCK, set it instead.
3890 Remove code dealing with nested functions.
3891 (gnat_init_decl_processing): Also set size_type_node.
3892 Call gnat_install_builtins.
3893 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
3894 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
3895 Remove special-case for "main".
3896 (end_subprog_body): Add arg and rework for tree-ssa.
3897 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
3898 Add case for BOOLEAN_TYPE.
3899 * utils2.c (rtl.h): Now include.
3900 (build_call_raise): Test Debug_Flag_NN directly.
3901 (build_call_alloc_dealloc): Don't use local stack allocation for now.
3902 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
3903 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
3905 2004-06-07 Robert Dewar <dewar@gnat.com>
3907 * a-direct.ads, einfo.ads: Minor comment updates
3909 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
3910 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3911 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
3912 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
3913 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
3915 * s-interr-sigaction.adb: Remove unreferenced variable
3916 (Attached_Interrupts). Minor reformatting.
3917 Avoid use of variable I (replace by J).
3919 * par-ch10.adb: Fix text of one error message
3921 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
3922 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
3923 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
3924 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
3925 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
3926 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
3927 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
3928 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3929 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
3930 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
3931 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
3934 2004-06-07 Doug Rupp <rupp@gnat.com>
3936 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
3938 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
3940 * mlib-tgt-vms-ia64.adb: New file.
3942 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
3943 Add mlib-tgt-vms-ia64.adb
3944 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
3945 Move to alpha specific ifeq section.
3946 Add VMS specific versions of symbols.adb
3947 Renaming of 5q vms files.
3949 * 5qsystem.ads renamed to system-vms_64.ads.
3951 2004-06-07 Vincent Celier <celier@gnat.com>
3953 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
3954 explain that when a time of day corresponding to the non existing hour
3955 on the day switching to DST is specified, Split may return a different
3958 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
3961 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
3962 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
3964 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
3966 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
3967 the linking options.
3968 (Build_Library.Check_Libs): On VMS, if there is a dependency on
3969 g-trasym.ads, set Gtrasymobj_Needed to True.
3971 * prj-attr.adb: Add new package Metrics for gnatmetric
3973 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
3974 canonical case to take into account files with upper case characters on
3976 (Ada_Check): Load the reference symbol file name in the name buffer to
3977 check it, not the symbol file name.
3979 * snames.ads, snames.adb: Add standard name Metrics (name of project
3980 file package for gnatmetric).
3982 * vms_conv.ads: Add Metric to Comment_Type
3984 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
3986 * vms_data.ads: Add qualifiers for GNAT METRIC
3988 * makegpr.adb (Link_Executables): Take into account the switches
3989 specified in package Linker of the main project.
3991 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
3993 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
3994 the index of the last element is Units.Last, not Units.Table'Last
3995 (which is usually not a valid index within the actually allocated
3996 storage for the table).
3998 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
3999 determines whether to generate a call to a checked storage pool
4001 Generate such a call only for a dereference that either comes from
4002 source, or is the result of rewriting a dereference that comes from
4005 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
4007 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
4009 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
4011 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
4012 file level, elaborate the stride for inner dimensions in alignment
4015 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
4018 2004-06-07 Javier Miranda <miranda@gnat.com>
4020 * exp_ch6.adb: Correct wrong modification in previous patch
4022 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
4024 * g-trasym.ads: Corrected comment to properly reflect level of support
4027 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
4029 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
4030 includes case of a variable referenced on the left hand side of an
4031 assignment, therefore remove redundant code. Variables and prefixes of
4032 indexed or selected components are now marked as referenced on left
4033 hand side. Warnings are now properly emitted when variables or prefixes
4034 are assigned but not read.
4036 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
4037 left hand side referenced variables. Private access types do not
4038 produce the warning "variable ... is assigned but never read".
4039 Add also additional checks to left hand side referenced variables.
4040 Aliased, renamed objects and access types do not produce the warning
4041 "variable ... is assigned but never read" since other entities may read
4042 the memory location.
4044 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
4046 * Makefile.in: In the powerpc/vxworks-specific section, restore
4047 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
4050 2004-06-07 Ed Schonberg <schonberg@gnat.com>
4052 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
4053 predefined operators.
4054 Removes spurious type errors from g-trasym-vms.adb.
4056 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
4057 distinct from the operator appearing in the source, call appropriate
4058 routine to insert conversions when needed, and complete resolution of
4060 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
4061 interpretations for rewritten right operand.
4062 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
4063 the other operand is overloaded and the context is a type conversion.
4065 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4067 * ada-tree.def (BLOCK_STMT): Now has two operands.
4070 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
4072 * gigi.h: (gnat_poplevel): Now returns a tree.
4074 * trans.c (end_block_stmt): Add arg; all callers changed.
4075 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
4076 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
4077 (add_stmt): Set TREE_TYPE.
4078 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
4079 (gnat_expand_stmt, case BREAK_STMT): New case.
4081 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
4083 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
4085 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
4086 procedure Set_Stack_Size that is not needed.
4088 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
4090 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
4091 used for gnatpp input file and for the files upon which it depends
4093 2004-06-07 Ben Brosgol <brosgol@gnat.com>
4095 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
4097 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
4099 * gnatvsn.ads: Bump version numbers appropriately.
4102 2004-06-07 Pascal Obry <obry@gnat.com>
4104 * gnat_ugn.texi: Improve comments about imported names and link names
4105 on Windows. Add a note about the requirement to use -k gnatdll's option
4106 when working with a DLL which has stripped stdcall symbols (no @nn
4109 2004-05-27 Vincent Celier <celier@gnat.com>
4111 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
4112 COMMENTS_LAYOUT=UNTOUCHED
4114 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
4115 symbols-vms-alpha.adb
4117 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
4119 * sem.ads: Clarify documentation on checks suppression.
4121 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
4123 2004-05-27 Ed Schonberg <schonberg@gnat.com>
4125 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
4126 the case of multiple derivations.
4127 (Is_Object_Reference): For a selected component, verify that the prefix
4128 is itself an object and not a value.
4130 * sem_ch12.adb (Same_Instantiated_Constant): New name for
4131 Same_Instantiated_Entity.
4132 (Same_Instantiated_Variable): Subsidiary to
4133 Check_Formal_Package_Instance, to recognize actuals for in-out generic
4134 formals that are obtained from a previous formal package.
4135 (Instantiate_Subprogram_Body): Emit proper error when
4136 generating code and the proper body of a stub is missing.
4138 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
4139 has a universal interpretation, do the disambiguation here.
4141 * exp_ch4.adb (Expand_N_Type_Conversion,
4142 Expand_N_Unchecked_Type_Conversion): Special handling when target type
4143 is Address, to avoid typing anomalies when Address is a visible integer
4146 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
4147 to determine whether a subprogram should not be marked Pure, even when
4148 declared in a pure package.
4150 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
4152 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
4154 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
4155 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
4156 Update the documentation about the Ravenscar profile, following the
4157 definition found in AI-249.
4159 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
4160 setting the Profile (Ravenscar). This must be done in addition to
4161 setting the required restrictions.
4163 * rtsfind.ads: Add the set of operations defined in package
4166 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
4169 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
4171 lang-specs.h: Always require -c or -S and always redirect to /dev/null
4172 if -gnatc or -gnats is passed.
4174 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
4176 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
4177 a significant reference. Warnings are now properly emitted when a
4178 discriminated type is not referenced.
4180 * lib-xref.adb (Generate_Reference): A deferred constant completion,
4181 record representation clause or record type discriminant does not
4182 produce a reference to its corresponding entity. Warnings are now
4183 properly emitted when deferred constants and record types are not
4186 2004-05-27 Geert Bosch <bosch@gnat.com>
4188 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
4189 Fixes ACATS Annex G tests.
4191 2004-05-27 Robert Dewar <dewar@gnat.com>
4193 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
4196 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
4198 * s-interr.adb (Server_Task): Take into account case of early return
4199 from sigwait under e.g. linux.
4201 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
4203 * gnat_ugn.texi: Add description for the new gnatpp options:
4204 -rnb - replace the original source without creating its backup copy
4205 -c0 - do not format comments
4207 2004-05-24 Geert Bosch <bosch@gnat.com>
4209 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
4210 with 192 bits of precision, sufficient to reduce a double-extended
4211 arguments X with a maximum relative error of T'Machine_Epsilon, for X
4212 in -2.0**32 .. 2.0**32.
4213 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
4214 reduction by the processor, which only uses a 68-bit approximation of
4216 (Tan): Always reduce arguments and compute function either using
4217 the processor's fptan instruction, or by dividing sin and cos as needed.
4219 2004-05-24 Doug Rupp <rupp@gnat.com>
4221 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
4222 gcc error on 32/64 bit VMS.
4224 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
4226 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
4227 since this is what we get for stack overflows although not documented
4229 Document the issues which may require adjustments to our signal
4232 2004-05-24 Ed Schonberg <schonberg@gnat.com>
4234 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
4235 enclosing dynamic scope if the instantiation is within a generic unit.
4237 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
4239 * exp_dbug.ads: Fix typo.
4241 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
4242 Rename it to its proper name: system-linux-ia64.ads
4243 (stamp-gnatlib1): Remove extra target specific run time files when
4244 setting up the rts directory.
4246 2004-05-24 Javier Miranda <miranda@gnat.com>
4248 * einfo.ads, einfo.adb (Limited_Views): Removed.
4249 (Limited_View): New attribute that replaces the previous one. It is
4250 now a bona fide package with the limited-view list through the
4251 first_entity and first_private attributes.
4253 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
4254 limited-private-with clause.
4255 (Install_Limited_Withed_Unit): Install the private declarations of a
4256 limited-private-withed package. Update the installation of the shadow
4257 entities according to the new structure (see Build_Limited_Views)
4258 (Build_Limited_Views): Replace the previous implementation of the
4259 limited view by a package entity that references the first shadow
4260 entity plus the first shadow private entity (required for limited-
4261 private-with clause)
4262 (New_Internal_Shadow_Entity): Code cleanup.
4263 (Remove_Limited_With_Clause): Update the implementation to undo the
4264 new work carried out by Build_Limited_Views.
4265 (Build_Chain): Complete documentation.
4266 Replace Ada0Y by Ada 0Y in comments
4269 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
4270 types the level of accessibility depends on the enclosing type
4273 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
4274 entities. Complete documentation of previous change.
4276 2004-05-24 Robert Dewar <dewar@gnat.com>
4278 * namet.adb: Minor reformatting
4279 Avoid use of name I (replace by J)
4280 Minor code restructuring
4282 * sem_ch6.adb: Minor reformatting
4284 * lib-writ.adb: Do not set restriction as active if this is a
4285 Restriction_Warning case.
4287 * sem_prag.adb: Reset restriction warning flag if real pragma
4288 restriction encountered.
4290 * s-htable.adb: Minor reformatting
4291 Change rotate count to 3 in Hash (improves hash for small strings)
4293 * 5qsystem.ads: Add comments for type Address (no literals allowed).
4295 * gnat_ugn.texi: Add new section of documentation "Code Generation
4296 Control", which describes the use of -m switches.
4298 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
4300 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
4301 through the DECL_INITIAL for renamed variables.
4303 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
4305 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
4307 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4309 * exp_dbug.ads: Correct comments concerning handling of overloading,
4310 since we no longer use $ anymore.
4312 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
4314 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
4315 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
4316 with illegal subunits.
4318 2004-05-19 Ed Schonberg <schonberg@gnat.com>
4320 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
4321 body with front-end inlining enabled, check whether an inline pragma
4322 appears immediately after the body and applies to it.
4324 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
4325 enabled and the pragma appears after the body of the subprogram.
4327 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4329 Part of function-at-a-time conversion
4331 * misc.c (adjust_decl_rtl): Deleted.
4332 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
4335 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
4336 (add_decl_stmt, add_stmt, block_has_vars): New functions.
4337 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
4339 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
4341 (gnat_to_gnu_entity): Likewise.
4342 Use add_stmt to update setjmp buffer.
4343 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
4345 No longer call adjust_decl_rtl.
4346 (DECL_INIT_BY_ASSIGN_P): New macro.
4347 (DECL_STMT_VAR): Likewise.
4349 * trans.c (gigi): Call start_block_stmt to make the outermost
4351 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
4352 Call start_block_stmt and end_block_stmt temporarily.
4353 Use gnat_expand_stmt instead of expand_expr_stmt.
4354 (add_decl_stmt): New function.
4355 (tree_transform): Call it.
4356 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
4357 (end_block_stmt): Set type and NULL_STMT.
4358 (gnat_expand_stmt): Make recursize call instead of calling
4360 (gnat_expand_stmt, case DECL_STMT): New case.
4361 (set_lineno_from_sloc): Do nothing if global.
4362 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
4363 (start_block_stmt, add_stmt, end_block_stmt): New functions.
4364 (build_block_stmt): Call them.
4365 (gnat_to_code): Don't expand NULL_STMT.
4366 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
4368 (tree_transform): Likewise.
4369 (tree_transform, case N_Null_Statement): Return NULL_STMT.
4370 (gnat_expand_stmt, case NULL_STMT): New case.
4371 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
4374 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
4377 * utils.c (create_var_decl): Do not call expand_decl or
4379 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
4380 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
4382 (struct e_stack): Add chain_next to GTY.
4383 (struct binding_level): Deleted.
4384 (struct ada_binding_level): New struct.
4385 (free_block_chain): New.
4386 (global_binding_level, clear_binding_level): Deleted.
4387 (global_bindings_p): Rework to see if no chain.
4388 (kept_level_p, set_block): Deleted.
4389 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
4390 new data structure and work directly on BLOCK node.
4391 (gnat_poplevel): Similarly.
4392 (get_decls): Look at BLOCK_VARS.
4393 (insert_block): Work directly on BLOCK node.
4394 (block_has_var): New function.
4395 (pushdecl): Rework for new binding structures.
4396 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
4398 (build_subprog_body): Likewise.
4399 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
4401 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
4403 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
4404 (DECL_STMT_VAR): Likewise.
4406 2004-05-17 Robert Dewar <dewar@gnat.com>
4408 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
4411 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
4412 of restriction synonyums by using
4413 Restrict.Process_Restriction_Synonyms.
4415 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
4417 * s-restri.ads (Tasking_Allowed): Correct missing comment
4419 * s-rident.ads: Add entries for restriction synonyms
4421 * ali.adb: Fix some problems with badly formatted ALI files that can
4422 result in infinite loops.
4424 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
4425 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
4426 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
4427 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
4428 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
4429 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
4430 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
4431 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
4432 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
4433 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
4434 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
4435 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
4436 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
4437 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
4438 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
4439 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
4440 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
4441 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
4442 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
4443 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
4444 to Task_Id (minor cleanup).
4446 2004-05-17 Vincent Celier <celier@gnat.com>
4448 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
4449 directory separator.
4451 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
4452 project being extended, if Languages is not declared in extending
4455 2004-05-17 Javier Miranda <miranda@gnat.com>
4457 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
4458 limited view of a visible sibling.
4460 2004-05-14 Robert Dewar <dewar@gnat.com>
4462 * gnat_ugn.texi: Minor change to -gnatS documentation
4464 * sprint.adb: Remove some instances of Assert (False) and for this
4465 purpose replace them by output of a ??? string.
4467 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
4470 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
4471 flag processing. This was suppressing required dependencies in
4472 No_Run_Time mode and is not needed since the binder does not generate
4473 references for things in libgnat anyway.
4475 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
4478 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
4480 * gnat_ugn.texi: Document AIX-specific issue with initialization of
4483 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
4484 action for the case of an actual parameter in an init proc call.
4486 2004-05-14 Ed Schonberg <schonberg@gnat.com>
4488 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
4489 subtype, check visible entities in base type.
4491 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
4492 actions if the object is a renaming.
4494 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
4495 Check_Formal_Package_Instance, to determine more precisely when the
4496 formal and the actual denote the same entity.
4498 2004-05-14 Javier Miranda <miranda@gnat.com>
4500 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
4502 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
4503 corresponding to a private_with must be removed from visibility; it
4504 will be made visible later, just before we analyze the private part of
4506 (Check_Private_Child_Unit): Allow private_with clauses in public
4508 (Install_Siblings): Make visible the private entities of private-withed
4510 (Install_Withed_Unit): Do not install the private withed unit if we
4511 are compiling a package declaration and the Private_With_OK flag was
4512 not set by the caller. These declarations will be installed later,
4513 just before we analyze the private part of the package.
4515 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
4516 during the evaluation of the expression that initializes the object,
4517 decorate it with the expected type to avoid cascade errors.
4520 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
4521 subprogram we have to install the private_with clauses after its
4522 specification has been analyzed (as documented in AI-262.TXT).
4524 * sem_ch8.adb (Has_Private_With): New function. Determines if the
4525 current compilation unit has a private with on a given entity.
4526 (Find_Direct_Name): Detect the Beaujolais problem described in
4529 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
4530 provides the functionality of the function Is_Ancestor that was
4531 previously available in sem_ch10. It has been renamed to avoid
4534 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
4536 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4538 * utils.c (build_vms_descriptor): Use SImode pointers.
4540 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
4542 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
4544 2004-05-14 GNAT Script <nobody@gnat.com>
4546 * Make-lang.in: Makefile automatically updated
4548 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
4550 Renaming of target specific files for clarity
4552 * Makefile.in: Rename GNAT target specific files.
4554 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
4555 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
4556 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
4557 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
4558 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
4559 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
4560 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
4561 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
4562 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
4563 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
4564 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
4565 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
4566 51osinte.adb, 51osinte.ads, 51system.ads,
4567 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
4568 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
4569 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
4570 56tpopsp.adb, 57system.ads, 58system.ads,
4571 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
4572 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
4573 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
4574 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
4575 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
4576 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
4577 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
4578 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
4579 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
4580 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
4581 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
4582 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
4583 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
4584 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
4585 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
4586 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
4587 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
4588 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
4589 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
4590 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
4591 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
4592 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
4593 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
4594 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
4595 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
4596 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
4597 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
4598 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
4599 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
4600 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
4601 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
4602 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
4603 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
4604 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
4605 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
4606 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
4607 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
4608 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
4609 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
4610 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
4612 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
4613 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
4614 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
4615 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
4616 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
4617 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
4618 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
4619 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
4620 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
4621 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
4622 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
4623 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
4624 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
4625 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
4626 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
4627 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
4628 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
4629 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
4630 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
4631 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
4632 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4633 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
4634 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
4635 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
4636 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
4637 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
4638 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
4639 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
4640 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
4641 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
4642 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
4643 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
4644 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
4645 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
4646 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
4647 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
4648 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
4649 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
4650 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
4651 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
4652 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
4653 s-osinte-vms.ads, s-osinte-vxworks.adb,
4654 s-osinte-vxworks.ads, s-osprim-mingw.adb,
4655 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
4656 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
4657 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
4658 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
4659 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
4660 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
4661 s-stchop-vxworks.adb, s-taprop-dummy.adb,
4662 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4663 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
4664 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
4665 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4666 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
4667 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
4668 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
4669 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
4670 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
4671 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
4672 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
4673 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
4674 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
4675 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
4676 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
4677 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
4678 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
4679 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
4680 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
4681 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
4682 system-irix-o32.ads, system-linux-x86_64.ads,
4683 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
4684 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
4685 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
4686 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
4687 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
4688 system-vxworks-mips.ads, system-vxworks-ppc.ads,
4689 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
4692 2004-05-13 Zack Weinberg <zack@codesourcery.com>
4694 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
4696 2004-05-13 Diego Novillo <dnovillo@redhat.com>
4698 Merge from tree-ssa-20020619-branch.
4700 * config-lang.in (boot_language, build_by_default): Set
4702 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
4703 (max_size): Add static chain op for call_expr.
4705 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
4708 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
4710 2004-05-11 Roger Sayle <roger@eyesopen.com>
4712 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
4715 2004-05-10 Doug Rupp <rupp@gnat.com>
4717 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
4720 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
4722 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
4724 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
4725 Fixes undefined symbols in IA64 gnatlib.
4727 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
4729 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
4730 Short_Address). This will be moved to system.auxdec.
4732 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
4734 * sem_util.adb: Replace test for presence of a node that is always
4735 present with a call to Discard_Node.
4737 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
4738 Analyze on the library unit node after generation of distribution stub
4739 constructs. The call was a no-op because Unit_Node has already been
4740 Analyzed, and the tree fragments for the distribution stubs are
4741 analyzed as they are inserted in Exp_Dist.
4742 Update comment regarding to distribution stubs to reflect that we
4743 do not generate stub in separate files anymore.
4745 * einfo.ads: Clarify the fact that a tagged private type has the
4746 E_Record_Type_With_Private Ekind.
4748 * erroutc.adb: Minor reformatting
4750 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
4751 values if line length is increased using -gnatyM (noticed during code
4754 * eval_fat.adb: Minor reformatting
4755 Put spaces around exponentiation operator
4757 2004-05-10 Ed Schonberg <schonberg@gnat.com>
4760 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
4761 has been rewritten as an explicit dereference, retrieve type of
4762 original node to check for possibly unconstrained record type.
4764 2004-05-10 Ed Schonberg <schonberg@gnat.com>
4766 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
4767 overriding, use the operation of the parent unconditionally.
4769 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
4770 operation when either operand is a literal, to avoid further
4773 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
4774 overridden by a previous explicit declaration, mark the previous entity
4777 * sem_disp.adb (Check_Dispatching_Operation): New predicate
4778 Is_Visibly_Controlled, to determine whether a declaration of a
4779 primitive control operation for a derived type overrides an inherited
4780 one. Add warning if the explicit declaration does not override.
4782 2004-05-10 Vincent Celier <celier@gnat.com>
4784 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
4785 some cases when the sources are no longer present.
4787 * make.adb (Collect_Arguments): Fail if an external source, not part
4788 of any project need to be compiled, when switch -x has not been
4791 * makeusg.adb: Document new switch -x
4793 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
4796 * switch-m.adb (Scan_Make_Switches): New switch -x
4798 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
4801 * gnat_ugn.texi: Document new gnatmake switch -x
4803 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
4805 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
4807 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
4808 (process_attributes): Likewise.
4810 2004-05-10 Joel Brobecker <brobecker@gnat.com>
4812 * s-inmaop.ads: Fix spelling mistake in one of the comments.
4814 2004-05-10 Robert Dewar <dewar@gnat.com>
4816 * gnat_ugn.texi: Document that for config pragma files, the maximum
4817 line length is always 32767.
4819 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
4820 literals is now allowed.
4822 * gnat-style.texi: Remove statement about splitting long lines before
4823 an operator rather than after, since we do not follow this rule at all.
4824 Clarify rule (really lack of rule) for spaces around exponentiation
4826 * sem_elim.adb: Allow concatenation of string literals as well as a
4827 single string literal for pragma arguments.
4829 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
4831 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
4832 written for append case.
4834 * frontend.adb: Changes to avoid checking max line length in config
4837 * g-os_lib.ads: Minor reformatting
4839 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
4840 wrong in any case. Instead use standard value. Noticed during code
4843 * opt.ads (Max_Line_Length): New field, used to implement removal of
4844 limitation on length of lines when scanning config pragma files.
4846 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
4847 makeutl.ads, makeutl.adb: Minor reformatting
4849 * scn.adb: Do not check line length while scanning config pragma files
4850 Do not check line length while scanning out license information
4852 * scng.adb: Changes to avoid line length checks while parsing config
4855 2004-05-10 GNAT Script <nobody@gnat.com>
4857 * Make-lang.in: Makefile automatically updated
4859 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
4861 * osint.adb (Find_Program_Name): Fix handling of VMS version
4864 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
4866 * g-os_lib.ads (Invalid_Time): New constant
4868 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
4869 return OS_Time instead of time_t to match what is imported by Ada.
4870 Now return -1 if the file doesn't exist, instead of a random value
4872 2004-05-05 Robert Dewar <dewar@gnat.com>
4874 * usage.adb: Add line for -gnatR?s switch
4876 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
4878 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
4879 and for Match (Data_First, Data_last)
4881 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
4882 written when we are dealing with multi-unit files.
4884 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
4886 * Makefile.in: Remove unused targets and variables.
4888 2004-05-05 Vincent Celier <celier@gnat.com>
4890 * switch-m.adb: New gnatmake switch -eI
4892 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
4893 of new gnatmake switch -eInnn.
4895 * makegpr.adb: Take into account new parameters Index and Src_Index in
4898 * clean.adb: Implement support for multi-unit sources, including new
4901 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
4904 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
4905 (Extract_From_Q): New out parameter Index
4906 (Mark, Is_Marked): Subprograms moved to Makeutl
4907 (Switches_Of): New parameter Source_Index
4908 (Add_Switch): New parameter Index
4909 (Check): New parameter Source_Index
4910 (Collect_Arguments): New parameter Source_Index
4911 (Collect_Arguments_And_Compile): New parameter Source_Index
4912 (Compile): New parameter Source_Index
4913 Put subprograms in alphabetical order
4914 Add support for multi-source sources, including in project files.
4916 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
4917 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
4920 * makeusg.adb: New gnatmake switch -eInnn
4922 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
4925 * opt.ads (Main_Index): New variable, defaulted to 0.
4927 * osint.ads, osinte.adb (Add_File): New parameter Index
4928 (Current_Source_Index): New function
4930 * prj.adb: Take into account new components Index and Src_Index
4932 * prj.ads (String_Element): New component Index
4933 (Variable_Value): New component Index
4934 (Array_Element): New component Src_Index
4936 * prj-attr.adb: Indicate that optional index may be specified for
4937 attributes Main, Executable, Spec, Body and some of Switches.
4939 * prj-attr.ads (Attribute_Kind): New values for optional indexes
4940 (Attribute_Record): New component Optional_Index
4942 * prj-com.ads (File_Name_Data): New component Index
4944 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
4946 * prj-env.adb (Put): Output optional index
4948 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
4949 attributes Spec and Body.
4951 * prj-nmsc.adb: Process optional indexes
4953 * prj-pp.adb: Ouput "at" for optional indexes
4955 * prj-proc.adb: Take into account optional indexes
4957 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
4958 Optional_Index. For string literal,
4959 process optional index when Optional_Index is True.
4960 (Parse_Expresion): New Boolean parameter Optional_Index
4962 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
4963 (Set_Source_Index_Of): New procedure
4965 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
4968 * prj-util.ads (Executable_Of): New parameter Index
4969 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
4970 New parameter Src_Index, defaulted to 0.
4972 2004-05-05 Ed Schonberg <schonberg@gnat.com>
4975 * sem_ch3.adb (Access_Definition): If this is an access parameter
4976 whose designated type is imported through a limited_with clause, do
4977 not add the enclosing subprogram to the list of private dependents of
4980 2004-05-05 Ed Schonberg <schonberg@gnat.com>
4983 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
4984 a limited_with clause, and the other is its non-limited view.
4986 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
4988 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
4990 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
4991 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
4992 Stand.Boolean_Literals to produce references to entities
4993 Standard_False and Standard_True from compile-time computed boolean
4996 * stand.ads (Boolean_Literals): New variable, provides the entity
4997 values for False and True, for use by the expander.
4999 2004-05-05 Doug Rupp <rupp@gnat.com>
5001 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
5002 5vinmaop.adb: Unchecked convert Short_Address vice Address
5004 * adaint.c, raise.c: Caste CRTL function return value
5005 to avoid gcc error on 32/64 bit IVMS.
5007 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
5010 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
5012 * 5qsystem.ads (Address): Declare as Long_Integer
5013 (Short_Address): Declare as 32 bit subtype of Address
5014 Declare abstract address operations to avoid gratuitous ambiguities.
5016 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
5018 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
5019 instead of the old Boolean_Entry_Barriers.
5020 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
5022 2004-05-05 GNAT Script <nobody@gnat.com>
5024 * Make-lang.in: Makefile automatically updated
5026 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
5028 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
5030 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
5034 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
5035 alone. Replacing object references by literals is inappropriate in a
5036 so low level context.
5038 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
5040 * a-exexpr.adb: Add comments
5042 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5044 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
5045 declare the Ancestor_Tags array in Type_Specific_Data with a small size
5046 without risking a bounds check error when accessing one of its
5048 (Type_Specific_Data): Define Ancestor_Tags as a small array.
5049 This prevents us from hitting a limitation during the debug info
5050 generation when using stabs.
5052 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
5054 This prevents us from hitting a limitation during the debug info
5055 generation when using stabs.
5057 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
5059 lang-specs.h: Remove -gnatz* from specs.
5061 2004-05-03 Vincent Celier <celier@gnat.com>
5063 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
5065 * Make-lang.in, Makefile.in: Add gprmake
5067 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
5069 * sem_aggr.adb: Fix typo in comment.
5071 2004-05-03 Robert Dewar <dewar@gnat.com>
5073 * make.adb: Minor reformatting
5075 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
5077 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
5078 so that it works when address is not a private type.
5080 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
5081 properly with rewritten unchecked conversions. This prevents
5082 order-of-elaboration issues that can otherwise arise.
5083 (Minimum_Size): Don't check size of access types under VMS
5085 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
5086 interpretations of integer literals as type System.Address.
5088 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
5089 (Is_Descendent_Of): New function
5091 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
5093 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
5094 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
5095 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
5097 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
5098 of the old Max_Entry_Queue_Depth.
5100 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
5101 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
5102 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
5104 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
5105 New entry for proper handling of Max_Entry_Queue_Depth.
5106 New entry for proper handling of No_Dynamic_Interrupts.
5108 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
5109 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
5110 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
5111 the GNAT specific restriction Max_Entry_Queue_Depth.
5112 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
5113 the GNAT specific restriction No_Dynamic_Interrupts.
5115 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
5116 instead of the old Boolean_Entry_Barriers.
5117 Use the new restriction No_Dynamic_Attachment instead of the old
5118 No_Dynamic_Interrupts.
5120 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
5121 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
5123 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
5124 of the old Max_Entry_Queue_Depth.
5126 2004-05-03 GNAT Script <nobody@gnat.com>
5128 * Make-lang.in: Makefile automatically updated
5130 2004-04-29 Ed Schonberg <schonberg@gnat.com>
5132 * checks.adb (Enable_Range_Check): If the prefix of an index component
5133 is an access to an unconstrained array, perform check unconditionally.
5135 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5137 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
5140 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
5142 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
5143 alternate stack setting. There was no support for the tasking cases
5144 and the changes eventually caused a number of side-effect failures in
5145 the non-tasking case too.
5147 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
5149 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
5152 2004-04-29 Vincent Celier <celier@gnat.com>
5154 * make.adb (Gnatmake): Increase max size of argument array for
5155 gnatbind for the potential addition of -F.
5156 If there are Stand-Alone Library projects, invoke gnatbind with -F to
5157 be sure that elaboration flags will be checked.
5159 * switch-c.adb: Correct call to Scan_Pos for -gnateI
5161 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
5163 * sem_warn.adb (Check_References): Move '<access-variable> may be
5164 null' warning out of under Warn_On_No_Value_Assigned.
5166 2004-04-29 Ed Falis <falis@gnat.com>
5168 * gnat_ugn.texi: Fixed texi error
5170 2004-04-29 Robert Dewar <dewar@gnat.com>
5172 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
5173 abstract operations if they come from predefined files.
5175 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
5178 * s-addope.adb: Correct obvious error in mod function
5180 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
5182 * Makefile.in: Add target pairs for powerpc darwin*
5185 * a-intnam-darwin.ads, s-osinte-darwin.adb,
5186 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
5188 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5190 * Makefile.in: Add target macro definitions for s390*-linux*.
5191 * system-linux-s390.ads: New file.
5192 * system-linux-s390x.ads: New file.
5194 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
5196 * gnat_ugn.texi: Correct argument to @setfilename.
5198 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5200 * a-exexpr.adb (Unwind_Word): New data type.
5201 (Unwind_Exception): Use it as type of Private1 and Private2.
5203 * raise.c (db_action_for): Fix debug printf.
5205 2004-04-27 Ed Schonberg <schonberg@gnat.com>
5207 * a-wtmoio.ads: Formal type must be a modular type, not a signed
5210 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5212 * decl.c (gnat_to_gnu_entity, case object): Call
5213 __builtin_update_setjmp_buf.
5215 * gigi.h (update_setjmp_buf): Deleted.
5216 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
5218 * misc.c: (update_setjmp_buf): Deleted.
5220 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
5221 around block of RTL.
5223 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
5225 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
5227 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
5228 subprogram for which no pragma All_Calls_Remote applies, store the
5229 address of the real subprogram in the underlying record type, so local
5230 dereferences do not go through the PCS.
5232 2004-04-26 Robert Dewar <dewar@gnat.com>
5234 * i-c.ads: Add some type qualifications to avoid ambiguities when
5235 compiling with s-auxdec.ads and a non-private address type.
5237 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
5239 * Makefile.rtl: Fix error in previous check-in:
5240 Add s-addope.o to non tasking object list (rather than tasking object
5243 2004-04-26 Javier Miranda <miranda@gnat.com>
5245 * sem_aggr.adb: Fix typo in comments
5246 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
5247 Required to check the null-exclusion attribute.
5249 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
5250 case of anonymous access types in record and array components. For a
5251 component definition the level is the same of the enclosing composite
5254 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
5255 that are anonymous access types the level of accessibility depends on
5256 the enclosing type declaration. In order to have this information, set
5257 the scope of the anonymous access type to the enclosing record type
5259 (Array_Type_Declaration): In case of components that are anonymous
5260 access types the level of accessibility depends on the enclosing type
5261 declaration. In order to have this information, set the scope of the
5262 anonymous access type to the enclosing array type declaration.
5264 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
5267 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
5268 renaming of anonymous access-to-constant types allowed if and only if
5269 the renamed object is access-to-constant.
5271 * sem_util.adb (Type_Access_Level): In case of anonymous access types
5272 that are component_definition or discriminants of a nonlimited type,
5273 the level is the same as that of the enclosing component type.
5275 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
5277 * sem_elim.adb: Some minor code reorganization from code reading. Fix
5278 misprint in the function name (File_Name_Match).
5280 2004-04-23 Laurent GUERBY <laurent@guerby.net>
5282 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5285 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5287 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
5289 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
5291 * adaint.c (__gnat_try_lock): No longer requires that the parent
5292 directory be writable, the directory itself is enough.
5293 (gnat_is_absolute_path): Change profile, so that the call from
5294 GNAT.OS_Lib can be made more efficient.
5296 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
5297 from GNAT.OS_Lib can be made more efficient.
5299 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
5300 one copy of the file name. Found by code reading.
5302 2004-04-23 Vincent Celier <celier@gnat.com>
5304 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
5305 Correct documentation on gnatmake switches transmitted to the compiler
5307 * ali.ads: Minor comment fix
5309 2004-04-23 Javier Miranda <miranda@gnat.com>
5311 * sem_ch6.adb: (Confirming Types): Code cleanup
5313 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
5314 subprogram types: E_Anonymous_Access_Subprogram_Type and
5315 E_Anonymous_Access_Protected_Subprogram_Type.
5317 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
5319 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
5320 whether a pragma All_Calls_Remote applies to the subprogram on which
5322 No functional change is introduced by this revision; the new parameter
5323 will be used to allow calls to local RCI subprograms to be optimized
5324 to not use the PCS in the case where no pragma All_Calls_Remote applies,
5325 as is already done in the PolyORB implementation of the DSA.
5327 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
5328 whether a pragma All_Calls_Remote applies to the subprogram on which
5330 No functional change is introduced by this revision; the new parameter
5331 will be used to allow calls to local RCI subprograms to be optimized
5332 to not use the PCS in the case where no pragma All_Calls_Remote applies,
5333 as is already done in the PolyORB implementation of the DSA.
5335 2004-04-23 Robert Dewar <dewar@gnat.com>
5337 * Makefile.rtl: Add entry for s-addope.o in run time library list
5338 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
5339 * s-addope.ads, s-addope.adb: New files.
5341 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
5342 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
5343 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
5344 System.Address to be non-private and signed.
5346 * sem_elim.adb: Minor reformatting (fairly extensive)
5347 Some minor code reorganization from code reading
5348 Add a couple of ??? comments
5350 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5352 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
5353 (tree_transform, case N_If_Statement): Remove non-determinism.
5355 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
5357 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
5359 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
5362 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
5363 no longer used as a parameter name for Eliminate pragma).
5365 2004-04-22 Laurent GUERBY <laurent@guerby.net>
5367 PR optimization/14984
5368 PR optimization/14985
5369 * trans.c (gigi): Fix non determinism leading to bootstrap
5370 comparison failures.
5372 2004-04-21 Pascal Obry <obry@gnat.com>
5374 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
5375 passed to spawnvp() to properly handle program pathname with spaces on
5378 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
5380 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
5381 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
5382 unlocked in case of exceptions.
5384 2004-04-21 Joel Brobecker <brobecker@gnat.com>
5386 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
5387 This function does not exist anymore.
5389 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
5391 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
5393 * link.c: Move variables to the __gnat name space.
5395 * Makefile.in: list link.o explicitly when needed.
5397 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
5399 2004-04-21 Javier Miranda <miranda@gnat.com>
5401 * einfo.adb (Original_Access_Type): New subprogram
5402 (Set_Original_Access_Type): New subprogram
5403 (Write_Field21_Name): Write the name of the new field
5405 * einfo.ads (Original_Access_Type): New field present in access to
5407 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
5408 E_Anonymous_Access_Protected_Subprogram_Type.
5410 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
5413 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
5414 to anonymous access to subprogram types.
5416 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
5417 to subprogram types.
5419 * sem_ch3.adb (Access_Definition): Complete decoration of entities
5420 corresponding to anonymous access to subprogram types.
5421 (Analyze_Component_Declaration): Add new actual to the call to
5422 subprogram replace_anonymous_access_to_protected_subprogram.
5423 (Array_Type_Declaration): Add new actual to the call to subprogram
5424 replace_anonymous_access_to_protected_subprogram.
5425 (Process_Discriminants): Add new actual to the call to subprogram
5426 replace_anonymous_access_to_protected_subprogram.
5427 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
5429 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
5432 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
5433 access to subprogram types.
5435 * sem_util.adb (Has_Declarations): Addition of package_specification
5438 2004-04-21 Ed Schonberg <schonberg@gnat.com>
5440 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
5441 inlined flags to renamed entity only if in current unit.
5443 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
5445 * s-parint.ads: Add DSA implementation marker.
5447 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
5448 value of System.Partition_Interface.DSA_Implementation to determine
5449 what version of the distributed systems annex is available (no
5450 implementation, GLADE, or PolyORB).
5452 2004-04-21 Joel Brobecker <brobecker@gnat.com>
5454 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
5456 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5458 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
5459 with new type if alias sets differ.
5460 Fixes ACATS c41103b.
5462 2004-04-21 Vincent Celier <celier@gnat.com>
5464 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
5465 Add array Lang_Args for the language specific compiling argument
5468 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
5470 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
5472 * gnat_rm.texi: Update the descripton of the Eliminate pragma
5473 according to the recent changes in the format of the parameters of the
5474 pragma (replacing Homonym_Number with Source_Location).
5476 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
5478 * 5isystem.ads: Removed, unused.
5480 * gnat_rm.texi: Redo 1.13 change.
5482 2004-04-19 Robert Dewar <dewar@gnat.com>
5484 * s-stoele.ads: Clean up definition of Storage_Offset (the new
5485 definition is cleaner, avoids the kludge of explicit Standard operator
5486 references, and also is consistent with a visible System.Address with
5487 no visible operations.
5489 * s-geveop.adb: Add declarations to avoid assumption of visible
5490 operations on type System.Address (since these might not be available
5491 if Address is a non-private type for which the operations
5494 * sem_eval.adb: Minor reformatting
5496 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
5497 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
5498 reformatting (new function spec format).
5500 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
5501 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
5502 s-caun64.adb: Add declarations to avoid assumption of visible
5503 operations on type System.Address (since these might not be available
5504 if Address is a non-private type for which the operations are made
5507 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
5509 * exp_intr.adb: Minor comment update
5511 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
5513 * 5omastop.adb: Add declarations to avoid assumption of visible
5514 operations on type System.Address (since these might not be available
5515 if Address is a non-private type for which the operations
5518 2004-04-19 Vincent Celier <celier@gnat.com>
5520 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
5522 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
5525 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
5527 Call Check with Process_Languages.
5528 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
5529 with Process_Languages.
5530 (Recursive_Check): New Boolean parameter Process_Languages. Call
5531 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
5534 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
5536 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
5537 parameter Ada_Main, defaulted to True.
5538 Check for Ada specific characteristics only when Ada_Main is True.
5540 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
5542 * prj.adb: (Project_Empty): Add new Project_Data components.
5544 * prj.ads: New types and tables for non Ada languages.
5545 (Project_Data): New components Languages, Impl_Suffixes,
5546 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
5547 Include_Path, Include_Data_Set.
5549 * prj-env.ads, prj-env.adb: Minor reformatting
5551 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
5552 Put subprograms in alphabetical order
5554 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
5555 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
5558 * mlib-prj.adb: Back out modification in last version, as they are
5560 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
5562 * make.adb: (Mains): Moved to package Makeutl
5563 (Linker_Opts): Moved to package Makeutl
5564 (Is_External_Assignment): Moved to package Makeutl
5565 (Test_If_Relative_Path): Moved to package Makeutl
5566 (Gnatmake): Move sorting of linker options to function
5567 Makeutl.Linker_Options_Switches.
5569 * makeutl.ads, makeutl.adb: New files.
5571 * Makefile.in: Add makeutl.o to the object files for gnatmake
5573 * makeusg.adb: Add line for new switch -eL.
5575 * gnatls.adb (Image): New function.
5576 (Output_Unit): If in verbose mode, output the list of restrictions
5577 specified by pragmas Restrictions.
5579 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
5582 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
5583 needed, to put it in the range 1970 (included) - 2026 (excluded).
5584 (Time_Of): Do not shift Unix_Min_Year (1970).
5585 Shift the date by multiple of 56 years, if needed, to put it in the
5586 range 1970 (included) - 2026 (excluded).
5588 * adaint.h, adaint.c (__gnat_set_executable): New function.
5590 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5592 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
5594 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
5595 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
5596 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
5597 (tree_transform, case N_Code_Statement): Likewise.
5598 (gnat_expand_stmt, case LABEL_STMT): Don't look at
5599 LABEL_STMT_FIRST_IN_EH.
5600 (gnat_expand_stmt, case ASM_STMT): New case.
5602 * utils2.c (build_unary_op): Properly set TREE_READONLY of
5603 UNCONSTRAINED_ARRAY_REF.
5605 * utils.c (poplevel): Temporarily push/pop GC context around inline
5608 * decl.c (maybe_variable): Properly set TREE_READONLY of
5609 UNCONSTRAINED_ARRAY_REF.
5610 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
5612 * ada-tree.def: (ASM_STMT): New.
5614 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
5615 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
5616 ASM_STMT_INPUT): New.
5617 (ASM_STMT_CLOBBER): Likewise.
5619 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
5621 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
5622 general rcheck mechanism to raise Program_Error for E.4(18), instead
5623 of a custom raiser in System.Partition_Interface.
5624 Part of general cleanup work before PolyORB integration.
5626 * snames.ads, snames.adb: Add new runtime library entities and names
5629 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5631 (Build_Subprogram_Id): New subprogram provided by exp_dist
5632 Code reorganisation in preparation for PolyORB integration.
5634 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5636 (Build_Subprogram_Id): New subprogram provided by exp_dist
5638 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
5639 actual parameter types for call to dereference of an
5640 access-to-subprogram type.
5642 * rtsfind.ads: Add new runtime library entities and names for PolyORB
5645 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
5646 instead, which has the same behaviour here since we never pass it a
5649 * link.c (run_path_option, Solaris case): Use -Wl, as for other
5652 * Makefile.in: adjust object file lists for gnatlink and gnatmake
5653 to account for new dependency upon Interfaces.C.Strings + link.o
5654 For x86 FreeBSD, use 86numaux.
5656 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
5657 from Mlib.Tgt to Mlib.
5659 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
5662 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
5663 target-specific versions of this subprogram, now implemented as a
5664 target-independent function in Mlib.
5666 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
5667 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
5668 (Linker_Library_Path_Option): Remove target-specific versions of this
5669 subprogram, now implemented as a target-independent function in Mlib.
5671 * atree.adb: (Allocate_Initialize_Node): New subprogram.
5672 Factors out node table slots allocation.
5673 (Fix_Parents): New subprogram.
5674 Encapsulate the pattern of fixing up parent pointers for syntactic
5675 children of a rewritten node.
5676 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
5677 (Rewrite): Use New_Copy when creating saved copy of original node.
5678 (Replace): Use Copy_Node to copy nodes.
5680 2004-04-19 Javier Miranda <miranda@gnat.com>
5682 * sprint.adb (Sprint_Node_Actual): Give support to the new
5683 Access_To_Subprogram node available in Access_Definition nodes. In
5684 addition, give support to the AI-231 node fields: null-exclusion,
5685 all-present, constant-present.
5687 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
5689 * sinfo.ads, sinfo.adb:
5690 New field Access_To_Subprogram_Definition in Access_Definition nodes
5692 * sem_ch6.adb (Process_Formals): Move here the code that creates and
5693 decorates internal subtype declaration corresponding to the
5694 null-excluding formal. This code was previously in Set_Actual_Subtypes.
5695 In addition, carry out some code cleanup on this code. In case of
5696 access to protected subprogram call
5697 Replace_Anonymous_Access_To_Protected_Subprogram.
5698 (Set_Actual_Subtypes): Code cleanup.
5700 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
5701 Find_Type in case of anonymous access renamings. Add warning in case of
5702 null-excluding attribute used in anonymous access renaming.
5704 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
5707 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
5709 (Access_Definition): In case of anonymous access to subprograms call
5710 the corresponding semantic routine to decorate the node.
5711 (Access_Subprogram_Declaration): Addition of some comments indicating
5712 some code that probably should be added here. Detected by comparison
5713 with the access_definition subprogram.
5714 (Analyze_Component_Declaration): In case of access to protected
5715 subprogram call Replace_Anonymous_Access_To_Protected.
5716 (Array_Type_Declaration): In case of access to protected subprogram call
5717 Replace_Anonymous_Access_To_Protected_Subprogram.
5718 (Process_Discriminants): In case of access to protected subprogram call
5719 Replace_Anonymous_Access_To_Protected_Subprogram.
5721 * par.adb (P_Access_Definition): New formal that indicates if the
5722 null-exclusion part was present.
5723 (P_Access_Type_Definition): New formal that indicates if the caller has
5724 already parsed the null-excluding part.
5726 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
5727 (P_Identifier_Declarations): Code cleanup and give support to renamings
5728 of anonymous access to subprogram types.
5729 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
5730 (P_Array_Type_Definition): Give support to AI-254.
5731 (P_Component_Items): Give support to AI-254.
5732 (P_Access_Definition): New formal that indicates if the header was
5733 already parsed by the caller.
5734 (P_Access_Type_Definition): New formal that indicates if the caller has
5735 already parsed the null-excluding part.
5737 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
5738 call to P_Access_Definition.
5740 2004-04-19 Geert Bosch <bosch@gnat.com>
5742 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
5743 the delicate semantics of floating-point to integer conversion.
5744 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
5746 * eval_fat.adb (Machine_Mantissa): Moved to spec.
5747 (Machine_Radix): New function.
5749 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
5751 (Machine_Radix): New function also for use in conversion checks.
5753 2004-04-19 Ed Schonberg <schonberg@gnat.com>
5755 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
5757 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
5758 to decorate the access-to-protected subprogram and the equivalent type.
5760 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
5761 to anonymous access to subprogram types.
5763 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
5764 constant-folding, for legality checks in contexts that require an RM
5767 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
5768 temporary but stack checking is not enabled, increment serial number
5769 to so that symbol generation is consistent with and without stack
5772 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
5773 independent on whether stack checking is enabled, caller must check
5774 the corresponding flag.
5776 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
5778 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
5779 parent if it has discriminants.
5780 (Build_Derived_Private_Type): Constructed full view does
5781 not come from source.
5782 (Process_Discriminants): Default discriminants on a tagged type are
5783 legal if this is the internal completion of a private untagged
5786 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
5787 no constraint checks, because it corresponds to an existing object.
5789 * sem_prag.adb (Process_Convention): Pragma applies
5790 only to subprograms in the same declarative part, i.e. the same unit,
5793 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
5794 ignore type mismatch on a numeric conversion if expression comes from
5797 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
5799 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
5800 Homonym_Number parameter, add processing for Source_Location parameter
5802 (Check_Eliminated): Remove the check for homonym numbers, add the check
5803 for source location traces.
5805 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
5806 with Arg_Source_Location corresponding to the changes in the format of
5809 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
5810 Eliminate pragma corresponding to the changes in the format of the
5811 pragma: Homonym_Number is replaced with Source_Location, two ways of
5812 distinguishing homonyms are mutially-exclusive.
5814 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5816 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
5818 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
5819 No_Dollar_In_Label, no longer necessary, as it is always True.
5820 (Strip_Suffixes): Likewise.
5822 2004-04-19 Gary Dismukes <dismukes@gnat.com>
5824 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
5825 modulus for compatibility with size clause on targets with 16-bit
5828 * layout.adb (Discrimify): In the case of private types, set Vtyp to
5829 full type to fix type mismatches on calls to size functions for
5830 discriminant-dependent array components.
5832 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
5834 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
5837 2004-04-19 Pascal Obry <obry@gnat.com>
5839 * mdll-utl.adb (Locate): New version is idempotent.
5841 2004-04-17 Laurent Guerby <laurent@guerby.net>
5843 PR ada/14988 (partial)
5844 * impunit.adb: Fix typo.
5846 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
5848 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
5849 and install-rts-cert targets. Remove all gnatlib and gnattools
5850 targets and all other rts-* targets (moved to libada). Remove (now)
5851 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
5852 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
5854 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5856 * trans.c (tree_transform): Shortcut returning error_mark_node for
5857 statements in annotate_only_mode.
5858 (tree_transform, case N_Label, case N_Return_Statement,
5859 N_Goto_Statement): Make statement tree instead of generating code.
5860 (tree_transform, case N_Assignment_Statement): No longer check
5862 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
5864 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
5866 (gnat_to_gnu): Collect any RTL generated and deal with it.
5867 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
5868 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
5869 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
5871 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
5873 * ada-tree.def (EXPR_STMT): Fix typo in name.
5874 (BLOCK_STMT, IF_STMT): New nodes.
5876 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
5877 LABEL_STMT_FIRST_IN_EH): New macros.
5878 (RETURN_STMT_EXPR): Likewise.
5880 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
5881 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
5883 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
5885 * atree.ads: Correct documentation on extended nodes.
5887 * link.c: Set run_path_option for FreeBSD.
5889 2004-04-08 Vincent Celier <celier@gnat.com>
5891 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
5892 one of the ALI file, do not link with DEC lib.
5894 * par.adb Remove the last two characters ("%s" or "%b") when checking
5895 if a language defined unit may be recompiled.
5897 2004-04-08 Ed Schonberg <schonberg@gnat.com>
5899 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
5900 removal of abstract operation leaves no possible interpretation for
5903 * sem_eval.adb (Eval_Qualified_Expression): Use
5904 Set_Raises_Constraint_Error on node when needed, so that it does not
5905 get optimized away by subsequent optimizations.
5907 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
5908 operands even when they are not wrapped in a type conversion.
5910 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
5912 * sem_prag.adb (Set_Exported): Warn about making static as result of
5913 export only when the export is coming from source. This may be not
5914 be true e.g. on VMS where we expand export pragmas for exception codes
5915 together with imported or exported exceptions, and we don't want the
5916 user to be warned about something he didn't write.
5918 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
5920 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
5921 duplication between normal entities and those declared as renamings.
5922 No functional change.
5924 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
5925 inline functions returning an unconstrained result.
5927 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
5929 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
5930 conform to what other front-ends do.
5932 2004-04-08 Doug Rupp <rupp@gnat.com>
5934 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
5937 2004-04-06 Pascal Obry <obry@gnat.com>
5939 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
5941 * osint.adb (Program_Name): Do not look past a directory separator.
5943 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
5945 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
5947 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
5948 requirement for preserving a copy of the original assignment node.
5950 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
5952 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
5954 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
5957 2004-04-06 Ed Schonberg <schonberg@gnat.com>
5959 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
5960 operator calls in functional notation, and apply
5961 Universal_Interpretation to operands, not to their type.
5963 2004-04-06 Robert Dewar <dewar@gnat.com>
5965 * 5wdirval.adb: Minor reformatting
5967 2004-04-06 Ed Falis <falis@gnat.com>
5969 * gnat_rm.texi: Improve a reference to the GCC manual
5971 2004-04-05 Vincent Celier <celier@gnat.com>
5973 * adaint.h, adaint.c: Add function __gnat_named_file_length
5975 * impunit.adb: Add Ada.Directories to the list
5977 * Makefile.in: Add VMS and Windows versions of
5978 Ada.Directories.Validity package body.
5980 * Makefile.rtl: Add a-direct and a-dirval
5982 * mlib-tgt.ads: Minor comment update.
5984 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
5985 a-direct.ads, a-direct.adb: New files.
5987 2004-04-05 Vincent Celier <celier@gnat.com>
5990 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
5991 just to the compiler.
5993 2004-04-05 Robert Dewar <dewar@gnat.com>
5995 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
5996 returned string is 1.
5998 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
6000 * eval_fat.ads: Minor reformatting
6002 * g-curexc.ads: Document that lower bound of returned string values
6005 * gnatlink.adb: Add ??? comment for previous change
6006 (need to document why this is VMS specific)
6008 * s-stoele.ads: Minor reformatting
6010 * tbuild.ads: Minor reformatting throughout (new function specs)
6012 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
6015 * scng.adb: Minor reformatting
6017 2004-04-05 Geert Bosch <bosch@gnat.com>
6019 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
6020 (Leading_Part): Still perform truncation to machine number if the
6021 specified radix_digits is greater or equal to machine_mantissa.
6023 2004-04-05 Javier Miranda <miranda@gnat.com>
6025 * par-ch3.adb: Complete documentation of previous change
6026 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
6027 (aliased must appear before constant).
6029 * par-ch4.adb: Complete documentation of previous change.
6031 * par-ch6.adb: Complete documentation of previous change.
6033 * sinfo.ads: Fix typo in commment.
6035 2004-04-05 Ed Schonberg <schonberg@gnat.com>
6037 * sem_ch3.adb (Inherit_Components): If derived type is private and has
6038 stored discriminants, use its discriminants to constrain parent type,
6039 as is done for non-private derived record types.
6041 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
6042 Ada 2005 AI-310: an abstract non-dispatching operation is not a
6043 candidate interpretation in an overloaded call.
6045 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
6046 expression is Null and target type is not an access type (e.g. a
6047 non-private address type).
6049 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
6051 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
6052 statement whose right-hand side is an inlined call, save a copy of the
6053 original assignment subtree to preserve enough consistency for
6054 Analyze_Assignment to proceed.
6056 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
6057 complete assignment subtree which is now unnecessary, as the expansion
6058 of inlined call has been improved to preserve a consistent assignment
6059 tree. Note_Possible_Modification must be called only
6060 after checks have been applied, or else unnecessary checks will
6063 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
6064 of explicit dereferences that do not Come_From_Source:
6065 - be selective on cases where we must go back to the dereferenced
6066 pointer (an assignment to an implicit dereference must not be
6067 recorded as modifying the pointer);
6068 - do not rely on Original_Node being present (Analyze_Assignment
6069 calls Note_Possible_Modification on a copied tree).
6071 * sem_warn.adb (Check_References): When an unset reference to a pointer
6072 that is never assigned is encountered, prefer '<pointer> may be null'
6073 warning over '<pointer> is never assigned a value'.
6075 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
6077 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
6080 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
6082 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
6083 libexc. We currently don't reference anything in this library and
6084 linking it in triggers linker warnings we don't want to see.
6086 * init.c: Update comments.
6088 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6090 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
6091 * utils.c (create_field_decl): Likewise.
6092 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
6094 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
6096 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
6097 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
6098 Add info directory entry and category.
6100 2004-04-02 Jan Hubicka <jh@suse.cz>
6102 * utils.c: Include function.h
6103 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
6105 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
6108 * Make-lang.in: Clean up generation of documentation
6110 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
6112 * xgnatug.adb: Removed, replaced by xgnatugn.adb
6114 * xgnatugn.adb: Replaces xgnatug.adb
6116 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
6118 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
6120 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6121 gnat_ug_wnt.texi: Removed.
6123 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
6125 * utils2.c: Update copyright notice.
6127 2004-04-01 Robert Dewar <dewar@gnat.com>
6129 * checks.adb: Minor reformatting throughout
6130 Note that prev checkin added RM reference to alignment warning
6132 2004-04-01 Ed Schonberg <schonberg@gnat.com>
6134 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
6135 non-static when building aggregate for bit-packed array.
6137 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
6138 function call that is itself the actual in a procedure call, build
6141 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
6142 a string literal, create a temporary for it, constant folding only
6143 handles scalars here.
6145 2004-04-01 Vincent Celier <celier@gnat.com>
6147 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
6148 Error_Msg_SP): New empty procedures to instantiate the Scanner.
6149 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
6151 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
6152 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
6153 and get the checksum.
6155 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
6157 Increase the Marking_Label at the end of the Multiple_Main_Loop,
6158 instead of at the beginning.
6160 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
6162 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
6165 * osint.ads (Multi_Unit_Index_Character): New Character global variable
6167 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
6170 * par.adb: Remove test on file name to detect language defined units.
6171 Add test on unit name, after parsing, to detect language defined units
6172 that are not compiled with -gnatg (except System.RPC and its children)
6174 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
6175 following units without style checking.
6177 * switch-c.adb: Change -gnatC to -gnateI
6179 * usage.adb: Document new switch -gnateInnn
6181 * scng.adb (Accumulate_Token_Checksum): New procedure
6182 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
6183 word or literal number.
6184 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
6187 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
6190 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
6191 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
6192 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
6193 5vtpopde.adb: Add missing 'constant' keywords.
6195 2004-04-01 Javier Miranda <miranda@gnat.com>
6197 * par-ch4.adb: (P_Allocator): Code cleanup
6199 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
6202 * sinfo.ads: Complete documentation of previous change
6204 2004-04-01 Pascal Obry <obry@gnat.com>
6206 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
6207 only on VMS. This special handling was done because an old GNU/ld bug
6208 on Windows which has been fixed.
6210 2004-04-01 GNAT Script <nobody@gnat.com>
6212 * Make-lang.in: Makefile automatically updated
6214 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6216 * decl.c (gnat_to_gnu_entity, make_type_from_size):
6217 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
6218 * trans.c (tree_transform, convert_with_check): Likewise.
6219 * utils.c (gnat_signed_or_unsigned_type): Likewise.
6220 (build_vms_descriptor, unchecked_convert): Likewise.
6221 * utils2.c (nonbinary_modular_operation): Likewise.
6223 2004-03-29 Javier Miranda <miranda@gnat.com>
6225 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
6226 (Install_Null_Excluding_Check): Local subprogram that determines whether
6227 an access node requires a runtime access check and if so inserts the
6228 appropriate run-time check.
6229 (Apply_Access_Check): Call Install_Null_Excluding check if required
6230 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
6232 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
6234 * einfo.ads: Fix typo in comment
6236 * exp_ch3.adb (Build_Assignment): Generate conversion to the
6237 null-excluding type to force the corresponding run-time check.
6238 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
6239 type to force the corresponding run-time check.
6241 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
6242 the null-excluding type to force the corresponding run-time check.
6244 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
6245 case of access types unless they have the null-excluding attribute.
6247 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
6250 * exp_util.ads: Fix typo in comment
6252 * par.adb (P_Null_Exclusion): New subprogram
6253 (P_Subtype_Indication): New formal that indicates if the null-excluding
6254 part has been scanned-out and it was present
6256 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
6258 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
6259 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
6260 type to force the corresponding run-time check
6261 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
6263 (Resolve_Array_Aggregate): Carry out some static checks
6264 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
6266 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
6267 attribute must be set only if specified by means of the null-excluding
6268 part. In addition, we must also propagate the access-constant attribute
6270 (Access_Subprogram_Declaration, Access_Type_Declaration,
6271 Analyze_Component_Declaration, Analyze_Object_Declaration,
6272 Array_Type_Declaration, Process_Discriminants,
6273 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
6274 and carry out some static checks.
6275 (Build_Derived_Access_Type): Set the null-excluding attribute
6276 (Derived_Type_Declaration, Process_Subtype): Carry out some static
6279 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
6281 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
6283 * sem_ch6.adb (Process_Formals): Carry out some static checks.
6284 (Set_Actual_Subtypes): Generate null-excluding subtype if the
6285 null-excluding part was present; it is not required to be done here in
6286 case of anonymous access types.
6287 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
6290 * sem_res.adb (Resolve_Actuals): Carry out some static check
6291 (Resolve_Null): Allow null in anonymous access
6293 * sinfo.adb: New subprogram Null_Exclusion_Present
6294 All_Present and Constant_Present available on access_definition nodes
6296 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
6297 object_declaration, derived_type_definition, component_definition,
6298 discriminant_specification, access_to_object_definition,
6299 access_function_definition, allocator, access_procedure_definition,
6300 access_definition, parameter_specification, All_Present and
6301 Constant_Present flags available on access_definition nodes.
6303 2004-03-29 Robert Dewar <dewar@gnat.com>
6305 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
6306 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
6307 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
6308 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
6309 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
6310 sem_prag.adb: Updates to handle multiple units/file
6312 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
6314 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
6315 sem_util.adb: Minor reformatting
6317 * sem_ch12.adb: Add comment for previous change
6319 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
6321 * osint.adb (Executable_Prefix): Set Exec_Name to the current
6322 executable name when not initialized. Otherwise, use its current value.
6324 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
6325 initialize it to another executable name than the current one. This
6326 allows to configure paths for an executable name (gnatmake) different
6327 from the current one (gnatdist).
6329 2004-03-29 Ed Schonberg <schonberg@gnat.com>
6331 * exp_ch6.adb (Expand_Call): A call to a function declared in the
6332 current unit cannot be inlined if it appears in the body of a withed
6333 unit, to avoid order of elaboration problems in gigi.
6335 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
6336 information for protected (wrapper) operation as well, to simplify gdb
6339 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
6340 protected body, indicate that the entity for the generated spec comes
6341 from source, to ensure that references are properly generated for it.
6342 (Build_Body_To_Inline): Do not inline a function that returns a
6345 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
6346 apply convention to homonyms that are declared explicitly.
6348 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
6349 that renames an equality operator and the operands are overloaded,
6350 resolve them with the declared formal types, before rewriting as an
6353 2004-03-29 GNAT Script <nobody@gnat.com>
6355 * Make-lang.in: Makefile automatically updated
6357 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
6359 * memtrack.adb: Log realloc calls, which are treated as free followed
6362 2004-03-25 Vincent Celier <celier@gnat.com>
6364 * prj-makr.adb (Process_Directories): Detect when a file contains
6365 several units. Do not include such files in the config pragmas or
6366 in the naming scheme.
6368 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
6369 Resolve links only when not in Trusted_Mode.
6370 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
6371 Do not resolve links for the display names.
6373 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
6374 resolve links when computing the display names.
6376 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
6378 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
6379 attribute reference does not denote a subtype, it can be any
6380 expression that has a classwide type, potentially after an implicit
6381 dereference. In particular, the prefix can be a view conversion for
6382 a classwide type (for which Is_Object_Reference holds), but it can
6383 also be a value conversion for an access-to-classwide type. In the
6384 latter case, there is an implicit dereference, and the original node
6385 for the prefix does not verify Is_Object_Reference.
6387 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
6388 conversion of a discriminant-dependent component of a mutable object
6391 2004-03-25 Ed Schonberg <schonberg@gnat.com>
6393 * freeze.adb (Freeze_Entity): When an inherited subprogram is
6394 inherited, has convention C, and has unconstrained array parameters,
6395 place the corresponding warning on the derived type declaration rather
6396 than the original subprogram.
6398 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
6399 indication on renaming declaration, if formal has a box and actual
6402 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
6403 determine whether to generate an implicit or explicit reference to
6406 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
6407 subprogram renaming comes from a defaulted formal subprogram in an
6410 2004-03-25 Gary Dismukes <dismukes@gnat.com>
6412 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
6413 value expressions to ensure that calls within a component definition
6414 will be checked (since those are evaluated during the record type's
6417 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
6419 * s-tpobop.adb: Code clean up:
6420 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
6422 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
6424 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
6426 * Makefile.in: Clean up in the ravenscar run time.
6428 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6430 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
6431 of No_Strict_Aliasing to build_pointer_type_for_mode.
6432 * utils.c (update_pointer_to): Walk pointer and ref chains.
6434 2004-03-22 Cyrille Comar <comar@act-europe.fr>
6436 * ali.ads: Fix Comment about Dynamic_Elab.
6438 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
6439 Has_RACW, Is_Generic, etc.)
6440 (Output_Object, Gnatls): Take into account ALI files not attached to
6443 2004-03-22 Vincent Celier <celier@gnat.com>
6445 * gprep.adb: Change all String_Access to Name_Id
6446 (Is_ASCII_Letter): new function
6447 (Double_File_Name_Buffer): New procedure
6448 (Preprocess_Infile_Name): New procedure
6449 (Process_Files): New procedure
6450 (Gnatprep): Check if output and input are existing directories.
6451 Call Process_Files to do the real job.
6453 2004-03-22 Robert Dewar <dewar@gnat.com>
6455 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
6456 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
6458 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
6460 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
6461 case when the source contains only comments.
6463 2004-03-22 Ed Schonberg <schonberg@gnat.com>
6465 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
6466 declaration for a child subprogram body that acts as a spec, indicate
6467 that the entity in the declaration needs debugging information.
6469 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
6470 full view if the subtype is created for a constrained record component;
6471 gigi has enough information to construct the record, and there is no
6472 place in the tree for the declaration.
6474 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
6475 serial number for the dummy body that is built for analysis, to avoid
6476 inconsistencies in the generation of internal names when compiling
6479 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
6481 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
6484 2004-03-22 GNAT Script <nobody@gnat.com>
6486 * Make-lang.in: Makefile automatically updated
6488 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6490 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6491 * trans.c (tree_transform, emit_index_check): Likewise.
6492 * utils.c (build_template): Likewise.
6493 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
6494 (maybe_unconstrained_array, unchecked_convert): Likewise.
6495 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
6496 (build_unary_op): Likewise.
6497 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6498 (fill_vms_descriptor): Likewise.
6499 (build_call_alloc_dealloc): Likewise.
6501 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
6503 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
6506 * gnat_ug.texi: Add info directory category and entry.
6507 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6508 gnat_ug_wnt.texi: Regenerate.
6510 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
6512 * ada-tree.h: Update copyright notice.
6515 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
6517 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
6518 as regular exception objects and not as mere integers representing the
6519 condition code. The latter approach required some dynamics to mask off
6520 severity bits, which did not fit well into the GCC table based model.
6521 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
6522 exception data objects. We don't it and it would conflict with the other
6523 external symbol we have to generate for such exceptions.
6525 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
6526 the special code for VMS exceptions, since these are now represented
6527 as regular exceptions objects.
6529 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6531 * decl.c (debug_no_type_hash): Remove.
6532 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
6533 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
6535 2004-03-19 Laurent Guerby <laurent@guerby.net>
6537 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
6538 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
6540 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6542 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
6543 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
6544 (TYPE_RM_SIZE_INT): Directly use type.values.
6545 (TREE_LOOP_ID): Clean up check.
6546 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
6547 TYPE_VALUES, not TYPE_FIELDS.
6548 * trans.c (convert_with_check): Delay access of bounds of basetype
6549 until sure is numeric.
6551 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
6553 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
6556 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
6557 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
6558 Specific.Set instead of direct call to e.g pthread_setspecific.
6560 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
6562 * adaint.c: Update comments.
6564 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
6565 GNATLIB_SHARED for FreeBSD.
6567 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
6569 * init.c [VxWorks]: Do not fix the stack size for the environment task.
6570 When needed (stack checking) the stack size is retrieved
6571 from the VxWorks kernel.
6573 * Makefile.in: Flag -nostdinc is required when building the run time
6574 for avoiding looking for files in the base compiler.
6575 Add the VxWorks specific version of the package body for
6576 System.Stack_checking.Operations (5zstchop.adb).
6578 * Make-lang.in: Add the object file for
6579 System.Stack_Checking.Operations.
6581 * Makefile.rtl: Add object file for the package
6582 System.Stack_Checking.Operations.
6584 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
6586 * s-stache.ads, s-stache.adb: Move the operations related to stack
6587 checking from this package to package System.Stack_Checking.Operations.
6588 This way, stack checking operations are only linked in the final
6589 executable when using the -fstack-check flag.
6591 2004-03-18 Doug Rupp <rupp@gnat.com>
6593 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
6596 * 5qsystem.ads, 5xcrtl.ads: New files.
6598 2004-03-18 Vincent Celier <celier@gnat.com>
6600 * prj.adb (Reset): Reset hash table Files_Htable
6602 * prj-env.adb (Source_Paths, Object_Paths): New tables.
6603 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
6604 the procedures Add_To_Path_File.
6605 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
6606 making sure that each directory is present only once and, for object
6607 dirs, when a directory already present is added, the duplicate is
6608 removed and the directory is always put as the last in the table.
6609 Write the path files at the end of these accumulations.
6611 * prj-nmsc.adb (Record_Source): Add source file name in hash table
6612 Files_Htable for all sources.
6614 * prj-proc.adb (Process): Remove restrictions between not directly
6615 related extending projects.
6617 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
6619 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
6620 (Find_Sources): Minor speed optimization.
6622 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
6623 parameter Trusted_Mode.
6625 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
6627 * scn.adb (Determine_License): Take into account a degenerated case
6628 when the source contains only comments.
6630 2004-03-18 Ed Schonberg <schonberg@gnat.com>
6632 * sem_warn.adb (Check_References): For a warning on a selected
6633 component that does not come from source, locate an uninitialized
6634 component of the record type to produce a more precise error message.
6636 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
6638 * 3zsoccon.ads: Fix multicast options.
6640 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
6643 2004-03-15 Robert Dewar <dewar@gnat.com>
6645 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
6646 pragma used for a private type.
6648 * lib-xref.adb (Generate_Reference): Do not generate warning if
6649 reference is in a different unit from the pragma Unreferenced.
6651 * 5vtpopde.adb: Minor reformatting
6652 Fix casing of To_Task_ID
6654 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
6655 flag if we have an unchecked conversion to an access type in the same
6658 2004-03-15 Geert Bosch <bosch@gnat.com>
6660 * a-ngcoty.adb (Modulus): In alternate formula for large real or
6661 imaginary parts, use Double precision throughout.
6663 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
6664 we want to be able to compile run-time with -gnata for testing, but
6665 this may also be instantiated in user code that is compiled with -gnata.
6667 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
6669 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
6670 codes. Having a separate type for this is useful to enforce consistency
6671 throughout the various run-time units.
6672 (Exception_Data): Use Exception_Code for Import_Code.
6674 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
6675 Natural and Integer in various places.
6676 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
6677 with the severity bits masked off.
6678 (Register_VMS_Exception): Handle the additional exception data pointer
6681 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
6682 component, now reflected by an exported accessor.
6683 (is_handled_by): New routine to compute whether the propagated
6684 occurrence matches some handler choice specification. Extracted out of
6685 get_action_description_for, and expanded to take care of the VMS
6687 (get_action_description_for): Use is_handled_by instead of an explicit
6688 complex condition to decide if the current choice at hand catches the
6689 propagated occurrence.
6691 * raise.h (Exception_Code): New type for C.
6693 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
6694 System.Standard_Library.Exception_Code, to allow references from the
6695 pragma import/export expander.
6697 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
6698 New accessors to allow easy access to GNAT exception data
6700 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
6701 redundant Handled_By_Others component, helper for the personality
6702 routine which will now be able to call the appropriate exception data
6705 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
6706 component of Standard_Exception_Type to be the closest possible to
6707 Exception_Code in System.Standard_Library, that we cannot get at this
6708 point. Expand a ??? comment to notify that this type node should
6709 probably be rewritten later on.
6711 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
6712 registration call to include a pointer to the exception object in the
6715 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
6716 instead of int and explicit bitmasks.
6718 2004-03-15 Vincent Celier <celier@gnat.com>
6720 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
6721 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
6723 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
6724 longer needed now that it is in the spec of
6725 System.Tasking.Task_Attributes.
6727 * adaint.h, adaint.c: (__gnat_create_output_file): New function
6729 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
6731 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
6733 * make.adb (Gnatmake): Do not check the executable suffix; it is being
6734 taken care of in Scan_Make_Arg.
6735 (Scan_Make_Arg): Add the executable suffix only if the argument
6736 following -o, in canonical case, does not end with the executable
6737 suffix. When in verbose mode and executable file name does not end
6738 with executable suffix, output the executable name, in canonical case.
6740 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
6741 to avoid warnings when instantiating Ada.Task_Attributes.
6744 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
6745 in the correct order.
6747 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
6748 redirect standard output and error to a file for the invocation of the
6749 compiler, then read the file.
6751 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
6752 directory, instead of the Value.
6753 (Find_Source_Dirs): Remove useless code & comments.
6755 2004-03-15 Ed Schonberg <schonberg@gnat.com>
6757 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
6758 tagged type is inherited, and the parent operation is not frozen yet,
6759 force generation of a freeze node for the inherited operation, so the
6760 corresponding dispatch entry is properly initialized.
6761 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
6762 when looking for user-defined equality operation.
6764 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
6765 boolean when locating primitive equality of tagged component.
6767 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
6768 bit-aligned field and the right-hand side a string literal, introduce
6769 a temporary before expanding assignment into a loop.
6771 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
6772 priority in full, to ensure that any expanded subepxressions of it are
6773 elaborated in the scope of the init_proc.
6775 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
6776 after object declaration, skipping over code that may have been
6777 generated for validity checks.
6779 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
6780 discriminants, ignore the known discriminants of its full view, if
6781 any, to check legality.
6783 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
6784 component if type has unknown discriminants.
6785 (Analyze_Private_Extension_Declaration): Discriminant constraint is
6786 null if type has unknown discriminants.
6788 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
6789 for end label when present.
6791 * s-fileio.adb (Open): When called with a C_Stream, use given name for
6792 temporary file, rather than an empty string.
6794 2004-03-15 Ed Falis <falis@gnat.com>
6796 * s-thread.adb: Removed, no longer used.
6798 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6800 * decl.c (target.h): Now include.
6801 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
6802 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
6803 (validate_size): For POINTER_TYPE, get smallest size permitted on
6806 * fe.h: Sort Einfo decls and add Set_Mechanism.
6808 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
6809 (ada/decl.o): Depends on target.h.
6811 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
6812 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
6814 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
6816 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
6818 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
6819 Insert_Dereference_Action when rewriting an implicit dereference into
6820 an explicit one, this will be taken care of during expansion of the
6821 explicit dereference.
6822 (Expand_N_Slice): Same. Always do the rewriting, even for the case
6823 of non-packed slices, since the dereference action generated by
6824 expansion of the explicit dereference is needed in any case.
6825 (Expand_N_Selected_Component): When rewriting an implicit dereference,
6826 analyze and resolve the rewritten explicit dereference so it is seen
6828 (Insert_Dereference_Action): This procedure is now called only for the
6829 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
6830 dereferences that do not come from source (including explicit
6831 dereferences resulting from rewriting implicit ones), but do not
6832 recursively insert a check for the dereference nodes contained within
6834 (Insert_Dereference_Action): Clarify and correct comment.
6836 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
6839 Move language detection to the top level.
6840 * config-lang.in: Build by default.
6842 2004-03-05 Robert Dewar <dewar@gnat.com>
6844 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
6846 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
6847 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
6848 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
6849 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
6850 unchecked conversion to spec to avoid warnings.
6852 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
6855 * 7stpopsp.adb: Correct casing in To_Task_ID call
6857 * a-strsea.ads, a-strsea.adb: Minor reformatting
6859 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
6861 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
6862 Adjust Max_Msg_Length to be clearly large enough.
6864 * fe.h: Define In_Same_Source_Unit
6866 * osint.adb: Add pragma Warnings Off to suppress warnings
6867 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
6870 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
6872 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
6874 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
6876 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
6878 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
6880 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
6881 node. We now do generate them for gcc back end.
6883 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
6886 * sinput-c.adb: Fix bad name in header.
6887 Add pragma Warnings Off to suppress aliasing warning.
6889 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
6891 * snames.h, snames.ads, snames.adb: Add entry for pragma
6894 2004-03-05 Vincent Celier <celier@gnat.com>
6896 * prj-com.ads: Add hash table Files_Htable to check when a file name
6897 is already a source of another project.
6899 * prj-nmsc.adb (Record_Source): Before recording a new source, check
6900 if its file name is not already a source of another project. Report an
6903 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
6904 source file name, call gnatpp with all the sources of the main project.
6906 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
6909 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
6910 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
6911 /RUNTIME_SYSTEM=, converted to --RTS=
6912 /NOTABS, converted to -notabs
6914 2004-03-05 Pascal Obry <obry@gnat.com>
6916 * make.adb: Minor reformatting.
6918 2004-03-05 Ed Schonberg <schonberg@gnat.com>
6920 Part of implemention of AI-262.
6921 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
6923 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
6926 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
6927 when component type is a partially constrained class-wide subtype.
6928 (Constrain_Discriminated_Type): If parent type has unknown
6929 discriminants, a constraint is illegal, even if full view has
6931 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
6932 with unknown discriminants whose full view is a discriminated record.
6934 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
6935 flag, to handle properly derivations of tagged types with unknown
6937 (Analyze_Package_Spec, Analyze_Package_Body): Install
6938 Private_With_Clauses before analyzing private part or body.
6940 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
6941 Has_Discriminants can be true for a given type (documentation).
6943 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
6945 * s-restri.ads: Fix license (GPL->GMGPL).
6947 * s-tassta.adb: Minor reformatting.
6949 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
6950 by calls to Exit_One_ATC_Level, since additional clean up is performed
6953 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
6954 by calls to Exit_One_ATC_Level, since additional clean up is performed
6957 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6959 * trans.c: Reflect GCC changes to fix bootstrap problem.
6960 Add warning for suspicious aliasing unchecked conversion.
6962 2004-03-05 GNAT Script <nobody@gnat.com>
6964 * Make-lang.in: Makefile automatically updated
6966 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
6968 * ali.adb (Read_Instantiation_Instance): Do not modify the
6969 current_file_num when reading information about instantiations, since
6970 this corrupts files in later references.
6972 2004-03-02 Vincent Celier <celier@gnat.com>
6974 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
6975 before checking if it is read-only.
6977 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
6978 of SRC_DIRS and eliminate duplicates.
6980 * gprcmd.adb: Replace command "path" with command "path_sep" to return
6982 (Usage): Document path_sep
6984 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
6985 C++ compiler. No need for a script.
6986 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
6987 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
6990 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
6991 where there are Ada sources.
6992 (Set_Ada_Paths): Only add to the include path the source dirs of project
6994 (Add_To_Path): Add the Display_Values of the directories, not their
6997 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
7000 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
7002 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
7003 Value is canonicalized.
7004 (Language_Independent_Check): Do not copy Value to Display_Value when
7005 canonicalizing Value.
7007 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
7008 path to find limited with cycles.
7009 (Parse_Single_Project): Use canonical cased path to find the end of a
7012 2004-03-02 Ed Schonberg <schonberg@gnat.com>
7014 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
7015 and not a child unit.
7017 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
7018 appear in a with_clause.
7020 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
7021 only happen in type_annotate mode, do not try to elaborate it.
7023 * exp_util.adb (Force_Evaluation): If expression is a selected
7024 component on the left of an assignment, use a renaming rather than a
7025 temporary to remove side effects.
7027 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
7028 inlined instance body, which is analyzed before the end of the
7031 2004-03-02 Robert Dewar <dewar@gnat.com>
7033 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
7034 sem_ch4.adb: Use new feature for substitution of keywords in VMS
7036 * errout.ads, errout.adb: Implement new circuit for substitution of
7039 * sem_case.adb (Analyze_Choices): Place message properly when case is
7040 a subtype reference rather than an explicit range.
7042 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
7044 2004-03-02 Doug Rupp <rupp@gnat.com>
7046 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
7048 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
7050 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
7052 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7054 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
7057 2004-02-25 Robert Dewar <dewar@gnat.com>
7059 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
7060 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
7061 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
7062 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
7063 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
7064 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
7065 the defining instance of the type to avoid aliasing problems.
7066 Fix copyright header. Fix bad comments in package header.
7068 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
7070 2004-02-25 Ed Schonberg <schonberg@gnat.com>
7072 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
7073 rewritten as references when aliased through an address clause.
7075 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
7076 whether call can be interpreted as an indirect call to the result of a
7077 parameterless function call returning an access subprogram.
7079 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
7082 * exp_ch7.adb (Make_Clean): Remove generation of calls to
7083 Unlock[_Entries], since this is now done by Service_Entries directly.
7085 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
7087 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
7088 Requeue_Call for better code readability. Change spec and update calls:
7089 PO_Service_Entries now unlock the PO on exit.
7090 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
7093 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
7095 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
7097 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
7099 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
7100 protected subprogram call and analyzing the result of such expanding
7101 in case when the called protected subprogram is eliminated.
7103 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
7106 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
7108 * Makefile.in: Clean ups.
7110 2004-02-23 Ed Schonberg <schonberg@gnat.com>
7112 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
7113 protected operations if original subprogram is flagged as eliminated.
7114 (Expand_N_Subprogram_Body): For a protected operation, create
7115 discriminals for next operation before checking whether the operation
7118 * exp_ch9.adb (Expand_N_Protected_Body,
7119 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
7120 for internal protected operations if the original subprogram is
7123 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
7124 declared in a single protected object.
7126 2004-02-23 Vincent Celier <celier@gnat.com>
7128 * prj-attr.adb: Make attribute Builder'Executable an associative array,
7129 case insensitive if file names are case insensitive, instead of a
7130 standard associative array.
7132 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
7133 them as case insensitive on platforms where the file names are case
7136 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
7137 project file has already been parsed that canonical path are compared.
7139 2004-02-23 Robert Dewar <dewar@gnat.com>
7141 * sinput-c.ads: Correct bad unit title in header
7143 * freeze.adb: Minor reformatting
7145 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7147 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
7148 nonaddressable COMPONENT_REF that is removing padding that we are
7149 taking the address of, take the address of the padded record instead
7150 if item is variable size.
7152 2004-02-20 Robert Dewar <dewar@gnat.com>
7154 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
7156 2004-02-20 Ed Schonberg <schonberg@gnat.com>
7158 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
7159 itype references for the constrained designated type of a component
7160 whose base type is already frozen.
7162 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
7164 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
7167 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
7169 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
7170 identifier for a phantom package that rewrites the formal package
7171 declaration with a box. The Add semantic decorations for the defining
7172 identifier from the original node (that represents the formal package).
7174 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
7176 * Make-lang.in (ada/stamp-sdefault): Use the top level
7179 2004-02-19 Richard Henderson <rth@redhat.com>
7181 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
7183 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
7185 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
7186 Scan_ALI can be used for multiple ALI files without reinitializing
7189 2004-02-18 Robert Dewar <dewar@gnat.com>
7191 * debug.adb: Minor reformatting.
7193 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7195 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
7196 to zero if there is an address clause.
7198 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
7200 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
7202 2004-02-18 Gary Dismukes <dismukes@gnat.com>
7204 * layout.adb (Layout_Component_List): Revise generation of call to
7205 discriminant-checking function to pass selections of all of the type's
7206 discriminants rather than just the variant-controlling discriminant.
7208 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
7210 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
7211 fail in the current setup and triggers spurious system error messages.
7212 Pretend it occurred and failed instead.
7214 2004-02-18 Vincent Celier <celier@gnat.com>
7216 * bld.adb: Mark FLDFLAGS as saved
7217 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
7218 it is not the root project. Put each directory to be
7219 extended between double quotes to prevent it to be expanded on Windows.
7220 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
7221 the project file. Set them back to their initial values if they have not
7222 been set in the project file.
7224 * gprcmd.adb: (Gprdebug, Debug): New global variables
7225 (Display_Command): New procedure
7226 (Usage): Document new command "linkopts"
7227 Call Display_Command when env var GPRDEBUG has the value "TRUE"
7228 Implement new command "linkopts"
7229 Remove quotes that may be around arguments for "extend"
7230 Always call Normalize_Pathname with arguments formatted for the platform
7232 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
7233 Change @echo to @$(display) in target clean to be able to clean silently
7235 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
7237 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
7240 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
7241 = Extending_All when current project is an extending all project.
7243 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
7244 set to True only for LINK command, after Unix switch -o.
7245 (Process_Arguments): Set Output_File_Expected to True for LINK command
7246 after Unix switch -o. When Output_File_Expected is True, never add an
7247 extension to a file name.
7249 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
7250 option file name, only to the --for-linker= switch.
7251 (Option_File_Name): If option file name do not end with ".opt", append
7254 2004-02-18 GNAT Script <nobody@gnat.com>
7256 * Make-lang.in: Makefile automatically updated
7258 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
7260 * Make-lang.in (stamp-sdefault): Do not depend on
7263 2004-02-12 Zack Weinberg <zack@codesourcery.com>
7265 * config-lang.in: Disable Ada by default until probe logic for
7266 a bootstrap Ada compiler can be moved to the top level configure
7269 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
7271 * decl.c (components_to_record): Don't claim that the internal fields
7272 we make to hold the variant parts are semantically addressable, because
7275 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
7276 adjust the comment describing the modular type form when we can use it.
7277 (Install_PAT): Account for the Esiz renaming.
7279 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
7280 sc_onstack context indication before raising the exception to which
7281 the signal is mapped. Allows better handling of later signals possibly
7282 triggered by the resumed user code if the exception is handled.
7284 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
7286 * 5zinit.adb: Removed, no longer used.
7288 2004-02-12 Robert Dewar <dewar@gnat.com>
7290 * ali.adb: Remove separating space between parameters on R line. Makes
7291 format consistent with format used by the binder for Set_Globals call.
7293 * atree.ads, atree.adb: Minor reformatting (new function header format)
7295 * bindgen.adb: Add Run-Time Globals documentation section containing
7296 detailed documentation of the globals passed from the binder file to
7299 * gnatls.adb: Minor reformatting
7301 * init.c (__gnat_set_globals): Add note pointing to documentation in
7304 * lib-writ.ads, lib-writ.adb: Remove separating space between
7305 parameters on R line.
7306 Makes format consistent with format used by the binder for Set_Globals
7309 * osint.ads: Add 2004 to copyright notice
7312 * snames.ads: Correct capitalization of FIFO_Within_Priorities
7313 Noticed during code reading, documentation issue only
7315 * usage.adb: Remove junk line for obsolete C switch
7316 Noticed during code reading
7318 2004-02-12 Vincent Celier <celier@gnat.com>
7320 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
7321 extend for each directory, so that multiple /** directories are
7322 extended individually.
7323 (Recursive_Process): Set the default for LANGUAGES to ada
7325 * gprcmd.adb: Define new command "ignore", to do nothing.
7326 Implement new comment "path".
7328 * Makefile.generic: Suppress output when SILENT is set
7329 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
7330 used, so that the correct compiler is invoked.
7331 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
7332 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
7334 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
7336 * Makefile.in: Clean ups and remove obsolete targets.
7338 2004-02-12 Ed Schonberg <schonberg@gnat.com>
7340 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
7341 predicate declared in exp_util.
7343 * exp_util.adb: Add comments.
7345 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
7346 visibility before compiling context of the subunit.
7348 * sem_res.adb (Check_Parameterless_Call): If the context expects a
7349 value but the name is a procedure, do not attempt to analyze as a call,
7350 in order to obtain more telling diagnostics.
7352 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
7353 'Access on parameterless function calls.
7354 (Normalize_Actuals): For a parameterless function call with missing
7355 actuals, defer diagnostic until resolution of enclosing call.
7357 * sem_util.adb (Wrong_Type): If the context type is an access to
7358 subprogram and the expression is a procedure name, suggest a missing
7361 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
7362 Nathanael Nerode <neroden@gcc.gnu.org>
7364 PR ada/6637, PR ada/5911
7365 Merge with libada-branch:
7366 * config-lang.in: Build libada only when ada is built.
7368 2004-02-09 Ed Schonberg <schonberg@gnat.com>
7370 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
7371 for a tagged type, verify that both formals have the same type.
7373 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
7374 temporary when the formal is an in-parameter and the actual a possibly
7377 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
7378 when expansion is disabled, to ensure proper name capture with
7379 overloaded literals. Condition can be of any boolean type, resolve
7382 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
7383 renaming is for a formal subprogram with a default operator name, and
7384 there is a usable operator that is visible at the point of
7387 2004-02-09 Robert Dewar <dewar@gnat.com>
7389 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
7390 rewrite to ignore errors in ali files, intended to allow tools downward
7391 compatibility with new versions of ali files.
7393 * ali.ads: Add new parameter Ignore_Errors
7395 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
7396 duplicating the error message giving the file with restrictions.
7398 * debug.adb: Add debug flag I for gnatbind
7400 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
7401 operators for the case where the operator is a defining operator.
7403 * exp_ch3.adb: Minor reformatting (new function spec format).
7405 * exp_ch4.adb: Add comment for previous change, and make minor
7406 adjustment to loop to always check for improper loop termination.
7407 Minor reformatting throughout (new function spec format).
7409 * gnatbind.adb: Implement -di debug flag for gnatbind
7411 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
7413 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
7415 * lib-load.adb: Fix bad assertion.
7416 Found by testing and code reading.
7419 * lib-load.ads: Minor reformatting.
7421 * lib-writ.adb: There is only one R line now.
7423 * lib-writ.ads: Add documentation on making downward compatible changes
7424 to ali files so old tools work with new ali files.
7425 There is only one R line now.
7426 Add documentation on format incompatibilities (with special GPS note)
7428 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
7430 * par-load.adb: Minor reformatting
7432 * sem_ch8.adb: Fix to error message from last update
7433 Minor reformatting and restructuring of code from last update
7435 * par-prag.adb, snames.adb, snames.ads, snames.h,
7436 sem_prag.adb: Implement pragma Profile.
7438 * stylesw.adb: Implement -gnatyN switch to turn off all style check
7441 * usage.adb: Add line for -gnatyN switch
7443 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
7445 2004-02-09 Albert Lee <lee@gnat.com>
7447 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
7449 2004-02-09 Ed Schonberg <schonberg@gnat.com>
7451 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
7454 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
7455 is nested in an instance that is not frozen yet, to avoid
7456 order-of-elaboration problems in gigi.
7458 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
7459 body the attribute is legal.
7461 2004-02-09 Robert Dewar <dewar@gnat.com>
7463 * s-rident.ads: Minor comment correction
7465 * targparm.adb: Remove dependence on uintp completely. There was
7466 always a bug in Make in that it called Targparm before initializing
7467 the Uint package. The old code appeared to get away with this, but
7468 the new code did not! This caused an assertion error in gnatmake.
7470 * targparm.ads: Fix bad comment, restriction pragmas with parameters
7471 are indeed fully supported.
7473 2004-02-06 Alan Modra <amodra@bigpond.net.au>
7475 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
7477 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7479 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
7480 with targetm.calls.promote_prototypes.
7482 2004-02-04 Robert Dewar <dewar@gnat.com>
7484 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
7485 ali.ads, gprcmd.adb: Minor reformatting
7487 * bindgen.adb: Output restrictions string for new style restrictions
7490 * impunit.adb: Add s-rident.ads (System.Rident) and
7491 s-restri (System.Restrictions)
7493 * lib-writ.adb: Fix bug in writing restrictions string (last few
7496 * s-restri.ads, s-restri.adb: Change name Restrictions to
7497 Run_Time_Restrictions to avoid conflict with package name.
7498 Add circuit to read and acquire run time restrictions.
7500 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
7502 * restrict.ads, restrict.adb: Use the new restriction
7503 No_Task_Attributes_Package instead of the old No_Task_Attributes.
7505 * sem_prag.adb: No_Task_Attributes is a synonym of
7506 No_Task_Attributes_Package.
7508 * snames.ads, snames.adb: New entry for proper handling of
7511 * s-rident.ads: Adding restriction No_Task_Attributes_Package
7512 (AI-00249) that supersedes the GNAT specific restriction
7515 2004-02-04 Ed Schonberg <schonberg@gnat.com>
7518 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
7519 body, an identifier may be wrapped in an unchecked conversion.
7521 2004-02-04 Vincent Celier <celier@gnat.com>
7523 * lib-writ.ads: Comment update for the W lines
7525 * bld.adb: (Expression): An empty string list is static
7527 * fname-uf.adb: Minor comment update
7529 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
7531 * gnatbind.adb: Initialize Cumulative_Restrictions with the
7532 restrictions on the target.
7534 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7536 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
7539 2004-02-02 Arnaud Charlet <charlet@gnat.com>
7541 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
7543 2004-02-02 Vincent Celier <celier@gnat.com>
7545 * gprcmd.adb (Check_Args): If condition is false, print the invoked
7546 comment before the usage.
7547 Gprcmd: Fail when command is not recognized.
7548 (Usage): Document command "prefix"
7550 * g-md5.adb (Digest): Process last block.
7551 (Update): Do not process last block. Store remaining characters and
7554 * g-md5.ads (Update): Document that several call to update are
7555 equivalent to one call with the concatenated string.
7556 (Context): Add fields to allow new Update behaviour.
7558 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
7560 When May_Fail is True and no existing file can be found, return No_File.
7562 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
7565 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
7566 spec file name instead on the W line.
7568 2004-02-02 Robert Dewar <dewar@gnat.com>
7570 * ali.adb: Read and acquire info from new format restrictions lines
7572 * bcheck.adb: Add circuits for checking restrictions with parameters
7574 * bindgen.adb: Output dummy restrictions data
7577 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
7578 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
7579 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
7580 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
7581 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
7583 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
7584 the warning message on access to possibly uninitialized variable S)
7585 Minor changes for new restrictions handling.
7587 * gnatbind.adb: Minor reformatting
7588 Minor changes for new restrictions handling
7589 Move circuit for -r processing here from bcheck (cleaner)
7591 * gnatcmd.adb, gnatlink.adb: Minor reformatting
7593 * lib-writ.adb: Output new format restrictions lines
7595 * lib-writ.ads: Document new R format lines for new restrictions
7598 * s-restri.ads/adb: New files
7600 * Makefile.rtl: Add entry for s-restri.ads/adb
7602 * par-ch3.adb: Fix bad error messages starting with upper case letter
7605 * restrict.adb: Major rewrite throughout for new restrictions handling
7606 Major point is to handle restrictions with parameters
7608 * restrict.ads: Major changes in interface to handle restrictions with
7609 parameters. Also generally simplifies setting of restrictions.
7611 * snames.ads/adb: New entry for proper handling of No_Requeue
7613 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
7614 restriction counting.
7615 Other minor changes for new restrictions handling
7617 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
7618 Restriction_Warnings now allows full parameter notation
7619 Major rewrite of Restrictions for new restrictions handling
7621 2004-02-02 Javier Miranda <miranda@gnat.com>
7623 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
7624 syntax rule for object renaming declarations.
7625 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
7626 component definitions.
7628 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
7630 (Array_Type_Declaration): Give support to access components. In addition
7631 it was also modified to reflect the name of the object in anonymous
7632 array types. The old code did not take into account that it is possible
7633 to have an unconstrained anonymous array with an initial value.
7634 (Check_Or_Process_Discriminants): Allow access discriminant in
7636 (Process_Discriminants): Allow access discriminant in non-limited types
7637 Initialize the new Access_Definition field in N_Object_Renaming_Decl
7638 node. Change Ada0Y to Ada 0Y in comments
7640 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
7642 Change Ada0Y to Ada 0Y in comments
7644 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
7645 renamings Change Ada0Y to Ada 0Y in comments
7647 * sem_type.adb (Find_Unique_Type): Give support to the equality
7648 operators for universal access types
7649 Change Ada0Y to Ada 0Y in comments
7651 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
7653 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
7655 (N_Object_Renaming_Declaration): Addition of Access_Definition field
7656 Change Ada0Y to Ada 0Y in comments
7658 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
7659 component definition and object renaming nodes
7660 Change Ada0Y to Ada 0Y in comments
7662 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
7664 * restrict.adb: Use the new restriction identifier
7665 No_Requeue_Statements instead of the old No_Requeue for defining the
7668 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
7669 No_Requeue_Statements.
7671 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
7672 that supersedes the GNAT specific restriction No_Requeue. The later is
7673 kept for backward compatibility.
7675 2004-02-02 Ed Schonberg <schonberg@gnat.com>
7677 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
7678 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
7679 pragma and fix incorrect ones.
7681 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
7682 warning if the pragma is redundant.
7684 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
7686 * 5staprop.adb: Add missing 'constant' keywords.
7688 * Makefile.in: use consistent value for SYMLIB on
7689 platforms where libaddr2line is supported.
7691 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7693 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
7696 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
7698 * init.c (__gnat_install_handler): Setup an alternate stack for signal
7699 handlers in the environment thread. This allows proper propagation of
7700 an exception on stack overflows in this thread even when the builtin
7701 ABI stack-checking scheme is used without support for a stack reserve
7704 * utils.c (create_field_decl): Augment the head comment about bitfield
7705 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
7706 here, because the former is not accurate enough at this point.
7707 Let finish_record_type decide instead.
7708 Don't make a bitfield if the field is to be addressable.
7709 Always set a size for the field if the record is packed, to ensure the
7710 checks for bitfield creation are triggered.
7711 (finish_record_type): During last pass over the fields, clear
7712 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
7713 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
7714 from DECL_BIT_FIELD.
7716 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
7718 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
7719 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
7720 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
7722 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7724 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
7726 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
7727 (ZCX_By_Default): Likewise.
7728 (Front_End_ZCX_Support): Likewise.
7730 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
7731 (Initialize_Lock): Mark Level unreferenced.
7732 (Sleep): Mark Reason unreferenced.
7733 (Timed_Sleep): Likewise.
7735 (Exit_Task): Use Result.
7736 (Check_No_Locks): Mark Self_ID unreferenced.
7738 * 5gtasinf.adb (New_Sproc): Make Attr constant.
7739 (Bound_Thread_Attributes): Make Sproc constant.
7740 (New_Bound_Thread_Attributes): Likewise.
7742 2004-01-26 Ed Schonberg <schonberg@gnat.com>
7744 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
7745 one-dimensional array an slice assignments, when component type is
7748 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
7749 component type is controlled, and control_actions are in effect, use
7750 TSS procedure rather than generating inline code.
7752 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
7753 arrays with controlled components.
7755 2004-01-26 Vincent Celier <celier@gnat.com>
7757 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
7758 command line for the non VMS case.
7760 * gnatlink.adb (Process_Binder_File): When building object file, if
7761 GNU linker is used, put all object paths between quotes, to prevent ld
7762 error when there are unusual characters (such as '!') in the paths.
7764 * Makefile.generic: When there are sources in Ada and the main is in
7765 C/C++, invoke gnatmake with -B, instead of -z.
7767 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
7768 from VMS_Conversion.
7769 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
7770 specification of argument file on the command line.
7772 2004-01-26 Bernard Banner <banner@gnat.com>
7774 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
7776 2004-01-26 Ed Schonberg <schonberg@gnat.com>
7778 * snames.adb: Update copyright notice.
7779 Add info on slice assignment for controlled arrays.
7781 2004-01-23 Robert Dewar <dewar@gnat.com>
7783 * exp_aggr.adb: Minor reformatting
7785 * exp_ch9.adb: Minor code clean up
7787 Fix bad character in comment
7790 * targparm.adb (Get_Target_Parameters): Give clean abort error on
7791 unexpected end of file, along with more detailed message.
7793 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7795 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
7798 * decl.c (copy_alias_set): New function.
7799 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
7801 2004-01-23 Doug Rupp <rupp@gnat.com>
7803 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
7804 lib$${file} in case subsequent character is not a separator.
7806 2004-01-23 Vincent Celier <celier@gnat.com>
7808 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
7809 when the GCC version is at least 3.
7811 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
7812 Remove all "Opt.", to prepare for opt split
7814 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
7815 Extends_All. Set to True when the project parsed is an extending all
7816 project. Fails for importing an extending all project only when the
7817 imported project is an extending all project.
7818 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
7819 depending on the value of Extends_All returned.
7821 * prj-proc.adb (Process): Check that no project shares its object
7822 directory with a project that extends it, directly or indirectly,
7823 including a virtual project.
7824 Check that no project extended by another project shares its object
7825 directory with another also extended project.
7827 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
7828 Kind = N_With_Clause
7830 * prj-tree.ads: Minor reformatting
7831 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
7833 2004-01-23 Ed Schonberg <schonberg@gnat.com>
7835 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
7836 applies to a type with an incomplete view, use full view in Name of
7837 clause, for consistency with uses of Get_Attribute_Definition_Clause.
7839 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
7841 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
7842 SCHED_RR, since other values are not supported by this policy.
7843 (Initialize): Move initialization of mutex attribute to package
7844 elaboration, to prevent early access to this variable.
7846 * Makefile.in: Remove mention of Makefile.adalib, unused.
7848 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
7849 1ssecsta.ads: Removed, unused.
7851 2004-01-21 Javier Miranda <miranda@gnat.com>
7853 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
7854 entity if already built in the current scope.
7856 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
7857 reminder in internal scopes. Required for nested limited aggregates.
7859 2004-01-21 Doug Rupp <rupp@gnat.com>
7861 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
7862 VMS. Replace all occurences of libgnat- and libgnarl- with
7863 libgnat$(hyphen) and libgnarl$(hyphen).
7864 Fixed shared library build problem on VMS.
7866 2004-01-21 Robert Dewar <dewar@gnat.com>
7868 * mlib-prj.adb: Minor reformatting
7870 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
7872 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
7873 'constant' keywords for declaration of pointers that are not modified.
7875 * exp_pakd.adb: Fix English in comment.
7877 2004-01-21 Ed Schonberg <schonberg@gnat.com>
7880 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
7881 copy all attributes of the parent, including the foreign language
7884 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
7887 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
7888 for 'delay until' statement.
7890 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
7892 * Make-lang.in: Replace $(docdir) with doc.
7893 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
7894 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
7895 to use consistent MAKEINFO rule.
7896 (ada.man, ada.srcman): Dummy entry.
7897 (ADA_INFOFILES): Define.
7898 (ada.info, ada.srcinfo): New rules.
7900 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
7902 * utils.c: Update copyright notice, missed in previous change.
7904 2004-01-19 Vincent Celier <celier@gnat.com>
7906 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
7907 args if Bind is True. Set First_ALI, if not already done.
7908 (Build_Library): For Stand Alone Libraries, extract from one ALI file
7909 an eventual --RTS switch, for gnatbind, and all backend switches +
7912 2004-01-19 Robert Dewar <dewar@gnat.com>
7914 * sem_attr.adb, memtrack.adb: Minor reformatting
7916 2004-01-19 Ed Schonberg <schonberg@gnat.com>
7918 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
7919 that rename enumeration literals. This is properly done in sem_eval.
7921 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
7922 to functions that rename enumeration literals.
7924 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
7925 functions that rename enumeration literals.
7927 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
7929 * Make-lang.in (utils.o): Depend on target.h.
7930 * utils.c: Include target.h.
7931 (process_attributes): Use targetm.have_named_sections instead
7932 of ASM_OUTPUT_SECTION_NAME.
7934 2004-01-16 Andreas Jaeger <aj@suse.de>
7936 * Makefile.in: Add $(DESTDIR).
7938 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
7940 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
7941 also when not defining if a Size clause applies. That information is
7944 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
7946 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
7947 symbolic links for the shared gnat run time when needed.
7949 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
7951 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
7952 for writing, and terminate with an error message if not.
7954 2004-01-15 Ed Schonberg <schonberg@gnat.com>
7956 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
7957 warning on an access to subprogram in an instance, when the target
7958 type is declared in the same generic unit.
7959 (Eval_Attribute): If 'access is known to fail accessibility check,
7960 rewrite as a raise statement.
7962 2004-01-15 GNAT Script <nobody@gnat.com>
7964 * Make-lang.in: Makefile automatically updated
7966 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
7968 * Make-lang.in (ada.srcextra): Dummy entry.
7970 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
7972 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
7974 2004-01-13 Ed Schonberg <schonberg@gnat.com>
7976 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
7977 components that are initialized with aggregates.
7979 2004-01-13 Vincent Celier <celier@gnat.com>
7981 * gnatlink.adb (Process_Binder_File): To find directory of shared
7982 libgcc, if "gcc-lib" is not a subdirectory, look for the last
7983 subdirectory "lib" in the path of the shared libgnat or libgnarl.
7985 * make.adb (Gnatmake): If GCC version is at least 3, link with
7986 -shared-libgcc, when there is at least one shared library project.
7988 * opt.ads (GCC_Version): New integer constant.
7990 * adaint.c (get_gcc_version): New function.
7992 2004-01-13 Robert Dewar <dewar@gnat.com>
7994 * sem_dist.adb, sem_res.adb, sem_util.adb,
7995 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
7996 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
7998 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
8000 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
8001 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
8004 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
8006 * misc.c: Remove trailing spaces.
8007 Update copyright notice missed in previous change.
8010 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
8013 * Makefile.generic: Update copyright.
8016 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
8017 of prefix/share/make.
8019 * Makefile.prolog: Update copyright.
8022 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
8024 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
8025 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
8026 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
8029 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
8032 2004-01-12 Javier Miranda <miranda@gnat.com>
8034 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
8035 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
8036 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
8037 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
8038 Component_Definition node.
8040 2004-01-12 Ed Falis <falis@gnat.com>
8042 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
8044 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
8046 * link.c: Change default libgnat kind to STATIC for FreeBSD.
8048 2004-01-12 Bernard Banner <banner@gnat.com>
8050 * Makefile.in: map 86numaux to a-numaux for x86_64
8052 2004-01-12 Ed Schonberg <schonberg@gnat.com>
8054 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
8055 generated to rename a generic actual, go to the actual itself, the
8056 subtype is not a user-visible entity.
8058 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
8059 part is a private subtype, reset the visibility of its full view, if
8060 any, to be consistent.
8063 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
8064 to use a generic package G as a formal package for another generic
8067 2004-01-12 Robert Dewar <dewar@gnat.com>
8069 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
8071 * usage.adb: Remove mention of obsolete -gnatwb switch
8072 Noticed during code reading
8074 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
8076 * 1ssecsta.adb: Minor changes for -gnatwa warnings
8078 2004-01-12 GNAT Script <nobody@gnat.com>
8080 * Make-lang.in: Makefile automatically updated
8082 2004-01-09 Mark Mitchell <mark@codesourcery.com>
8084 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
8086 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8088 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
8090 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
8092 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
8093 Update comment and copyright date.
8094 * stamp-xgnatug: Delete.
8096 2004-01-05 Robert Dewar <dewar@gnat.com>
8098 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
8099 be modified by the binder generated main program if the -D switch is
8102 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
8103 imported functions (since now we expect this to be done for imported
8106 * 5vtaprop.adb: Add several ??? for sections requiring more comments
8107 Minor reformatting throughout
8109 * 5zinit.adb: Minor reformatting
8110 Add 2004 to copyright date
8111 Minor changes to avoid -gnatwa warnings
8112 Correct some instances of using OR instead of OR ELSE (noted while
8115 * sprint.adb: Minor updates to avoid -gnatwa warnings
8117 * s-secsta.ads, s-secsta.adb:
8118 (SS_Get_Max): New function to obtain high water mark for ss stack
8119 Default_Secondary_Stack is not a constant since it may be modified by
8120 the binder generated main program if the -D switch is used.
8122 * switch-b.adb: New -Dnnn switch for binder
8125 Make -gnatg imply all warnings currently in -gnatwa
8127 * vms_conv.adb: Minor reformatting
8128 Add 2004 to copyright notice
8129 Add 2004 to printed copyright notice
8131 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
8132 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
8133 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
8134 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
8135 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
8136 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
8137 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
8138 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
8139 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
8140 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
8141 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
8142 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
8143 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
8144 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
8145 checks.adb, clean.adb, cstand.adb, einfo.ads,
8146 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
8147 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
8148 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
8149 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
8150 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
8151 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
8152 Minor reformatting and code clean ups.
8153 Minor changes to prevent -gnatwa warnings
8155 * ali.adb: Minor reformatting and cleanup of code
8156 Acquire new SS indication of secondary stack use from ali files
8158 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
8159 (since now we expect this to be done for imported functions)
8161 * bindgen.adb: Generate call to modify default secondary stack size if
8164 * bindusg.adb: Add line for new -D switch
8166 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
8167 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
8168 Add circuitry for both records and arrays to avoid gigi
8169 processing if the type involved has non-bit-aligned components
8171 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
8172 N_String_Literal node always references an E_String_Literal_Subtype
8173 entity. This may not be true in the future.
8174 (Possible_Bit_Aligned_Component): Move processing of
8175 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
8177 * exp_ch6.adb (Expand_Thread_Body): Pick up
8178 Default_Secondary_Stack_Size as variable so that we get value modified
8179 by possible -Dnnn binder parameter.
8181 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
8182 (Type_May_Have_Bit_Aligned_Components): New function.
8184 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
8185 (Type_May_Have_Bit_Aligned_Components): New function.
8187 * fe.h: (Set_Identifier_Casing): Fix prototype.
8188 Add declaration for Sem_Elim.Eliminate_Error_Msg.
8191 * freeze.adb (Freeze_Entity): Add RM reference to error message about
8192 importing constant atomic/volatile objects.
8193 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
8194 unless explicit Pure_Function pragma given, to avoid insidious bug of
8195 call to non-pure imported function getting eliminated.
8197 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
8198 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
8199 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
8200 Add 2004 to printed copyright notice
8202 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
8205 * Makefile.rtl: Add entry for g-sestin.o
8206 g-sestin.ads: New file.
8208 * mdll.adb: Minor changes to avoid -gnatwa warnings
8210 * mlib-tgt.adb: Minor reformatting
8212 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
8213 New switch Sec_Stack_Used (GNAT, GNATBIND)
8214 Make Default_Secondary_Stack_Size a variable instead of a constant,
8215 so that it can be modified by the new -Dnnn bind switch.
8217 * rtsfind.adb (Load_Fail): Give full error message in configurable
8218 run-time mode if all_errors mode is set. This was not done in the case
8219 of a file not found, which was an oversight.
8220 Note if secondary stack unit is used by compiler.
8222 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
8223 ineffective elaborate all pragmas on non-visible packages (this
8224 happened when a renamed subprogram was called). Now the elaborate all
8225 always goes on the package containing the renaming rather than the one
8226 containing the renamed subprogram.
8228 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
8229 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
8231 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
8232 has an Etype that references an E_String_Literal.
8233 (Eval_String_Literal): Avoid assumption that N_String_Literal node
8234 always references an E_String_Literal_Subtype entity. This may not
8235 be true in the future.
8237 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
8240 * sem_res.adb (Resolve): Specialize msg for function name used in proc
8243 2004-01-05 Ed Falis <falis@gnat.com>
8245 * g-debuti.adb: Replaced direct boolean operator with short-circuit
8248 2004-01-05 Vincent Celier <celier@gnat.com>
8250 * bld.adb: Minor comment updates
8251 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
8254 * make.adb (Gnatmake): Special process for files to compile/check when
8255 -B is specified. Fail when there are only foreign mains in attribute
8256 Main of the project file and -B is not specified. Do not skip bind/link
8257 steps when -B is specified.
8259 * makeusg.adb: Document new switch -B
8261 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
8263 * switch-m.adb: (Scan_Make_Switches): Process -B switch
8265 * vms_data.ads: Add new GNAT PRETTY qualifier
8266 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
8268 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8270 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
8273 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
8274 Set_Identifier_Casing.
8276 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
8277 has size that overflows.
8279 2004-01-05 Gary Dismukes <dismukes@gnat.com>
8281 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
8282 -gnatwa warning on static condition.
8284 2004-01-05 Doug Rupp <rupp@gnat.com>
8286 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
8288 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
8290 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
8291 all attributes, including read-only attribute.
8293 2004-01-05 Pascal Obry <obry@gnat.com>
8295 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
8296 library naming scheme.
8298 * mlib-prj.adb (Build_Library): Generate different names for the static
8299 or dynamic version of the GNAT runtime. This is needed to support the
8300 new shared library naming scheme.
8301 (Process_Binder_File): Add detection of shared library in binder file
8302 based on the new naming scheme.
8304 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
8305 scheme for the shared runtime libraries.
8308 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
8310 (install-gnatlib): Do not create symlinks for shared libraries.
8311 (gnatlib-shared-default): Idem.
8312 (gnatlib-shared-dual-win32): New target. Not used for now as the
8313 auto-import feature does not support arrays/records.
8314 (gnatlib-shared-win32): Do not create copy for the shared libraries.
8315 (gnatlib-shared-vms): Fix shared runtime libraries names.
8317 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
8318 dependent runtime shared library name.
8320 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
8322 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
8325 2004-01-05 Ed Schonberg <schonberg@gnat.com>
8327 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
8328 protected objects when allocator has a subtype indication, not a
8329 qualified expression. Note that qualified expressions may have to be
8330 checked when limited aggregates are implemented.
8332 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
8334 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
8335 subprogram is imported, remove warning.
8337 2004-01-05 Geert Bosch <bosch@gnat.com>
8339 * s-poosiz.adb: Update copyright notice.
8340 (Allocate): Use Task_Lock to protect against concurrent access.
8341 (Deallocate): Likewise.
8343 2004-01-05 Joel Brobecker <brobecker@gnat.com>
8345 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
8348 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
8350 * gnat_ug.texi: Force a CVS commit by updating copyright.
8351 * gnat_ug_vxw.texi: Regenerate.
8352 * gnat_ug_wnt.texi: Regenerate.
8353 * gnat_ug_vms.texi: Regenerate.
8354 * gnat_ug_unx.texi: Regenerate.
8356 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
8358 * trans.c: Remove uses of "register" specifier in
8359 declarations of local variables.
8361 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
8363 * stamp-xgnatug: New stamp file.
8364 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
8365 (ada/doctools/xgnatug): Add $(build_exeext).
8366 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
8367 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
8369 2003-12-17 Ed Falis <falis@gnat.com>
8371 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
8374 * a-exextr.adb: Add context clause for
8375 Ada.Exceptions.Last_Chance_Handler.
8377 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
8379 * cstand.adb (Create_Standard): Change the way how the declaration of
8380 the Duration type is created (making it the same way as it is for all
8381 the other standard types).
8383 2003-12-17 Robert Dewar <dewar@gnat.com>
8385 * s-crtl.ads: Fix header format
8386 Change Pure to Preelaborate
8388 2003-12-17 Ed Schonberg <schonberg@gnat.com>
8390 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
8391 the expression type only if it is declared in the current unit.
8393 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
8394 are universal and already analyzed, as can occur in constrained
8395 subcomponents that depend on discriminants, when one constraint is a
8398 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
8399 type Any_Fixed is legal as the argument of a conversion, if only one
8400 fixed-point type is in context.
8402 2003-12-17 GNAT Script <nobody@gnat.com>
8404 * Make-lang.in: Makefile automatically updated
8406 2003-12-15 Robert Dewar <dewar@gnat.com>
8408 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
8411 2003-12-15 Vincent Celier <celier@gnat.com>
8413 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
8414 (Gnatchop): Do not set failure status when reporting the number of
8417 2003-12-15 Doug Rupp <rupp@gnat.com>
8419 * s-ctrl.ads: New file.
8421 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
8423 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
8424 (GNATBIND_OBJS): Add ada/s-crtl.o.
8426 * Makefile.in [VMS]: Clean up ifeq rules.
8428 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
8429 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
8430 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
8431 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
8432 s-tasdeb.adb: Update copyright.
8434 Make minor modifications to use System.CRTL declared functions instead
8435 of importing locally.
8437 2003-12-15 GNAT Script <nobody@gnat.com>
8439 * Make-lang.in: Makefile automatically updated
8441 2003-12-11 Ed Falis <falis@gnat.com>
8443 * 5zinit.adb: Clean up.
8445 * 5zintman.adb (Notify_Exception): replaced case statement with a call
8446 to __gnat_map_signal, imported from init.c to support
8447 signal -> exception mappings that depend on the vxWorks version.
8450 Created and exported __gnat_map_signal to support signal -> exception
8451 mapping that is dependent on the VxWorks version.
8452 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
8454 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
8456 * 5wosinte.ads: Link with -mthreads switch.
8458 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
8460 * init.c (__gnat_install_handler [NetBSD]): Set
8461 __gnat_handler_installed, as done on all other platforms.
8462 Remove duplicated code.
8464 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
8466 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
8468 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
8470 * sinfo.ads: Fix inconsistent example code in comment.
8472 2003-12-11 Robert Dewar <dewar@gnat.com>
8474 * a-tiinau.adb: Add a couple of comments
8476 * sem_ch3.adb: Minor reformatting
8479 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
8480 Minor reformatting throughout
8482 2003-12-11 Ed Schonberg <schonberg@gnat.com>
8484 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
8485 bounds of a loop, create a separate block in order to generate proper
8486 cleanup actions to prevent memory leaks.
8488 * sem_res.adb (Resolve_Call): After a call to
8489 Establish_Transient_Scope, the call may be rewritten and relocated, in
8490 which case no further processing is needed.
8492 * sem_util.adb: (Wrong_Type): Refine previous fix.
8493 Fixes ACATS regressions.
8497 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
8500 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
8502 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
8503 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
8506 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
8509 2003-12-08 Robert Dewar <dewar@gnat.com>
8511 * 7sintman.adb: Minor reformatting
8513 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
8514 standard linker options to get standard libraries linked. We now plan
8515 to provide dummy versions of these libraries to match the appropriate
8516 configurable run-time (e.g. if a library is not needed at all, provide
8517 a dummy empty library).
8519 * targparm.ads: Configurable_Run_Time mode no longer affects linker
8520 options (-L parameters and standard libraries). What we plan to do is
8521 to provide dummy libraries where the libraries are not required.
8523 * gnatbind.adb: Minor comment improvement
8525 2003-12-08 Javier Miranda <miranda@gnat.com>
8527 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
8528 aggregate in the parent. Otherwise constants with limited aggregates
8529 are not supported. Add new formal to pass the component type (Ctype).
8530 It is required to call the corresponding IP subprogram in case of
8531 default initialized components.
8532 (Gen_Assign): In case of default-initialized component, generate a
8533 call to the IP subprogram associated with the component.
8534 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
8535 of aggregate with default initialized components.
8536 (Has_Default_Init_Comps): Improve implementation to recursively check
8537 all the present expressions.
8539 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
8540 to indicate that the initialization call corresponds to a
8541 default-initialized component of an aggregate.
8542 In case of default initialized aggregate with tasks this parameter is
8543 used to generate a null string (this is just a workaround that must be
8544 improved later). In case of discriminants, this parameter is used to
8545 generate a selected component node that gives access to the discriminant
8548 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
8549 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
8550 allocated aggregates with default-initialized components.
8552 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
8553 the box notation is used in positional aggregates.
8555 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
8557 * lib.ads: Fix typo in comment
8559 2003-12-08 Vincent Celier <celier@gnat.com>
8561 * prj.adb (Project_Empty): New component Unkept_Comments
8562 (Scan): Remove procedure; moved to Prj.Err.
8564 * prj.ads (Project_Data): New Boolean component Unkept_Comments
8565 (Scan): Remove procedure; moved to Prj.Err.
8567 * prj-dect.adb: Manage comments for the different declarations.
8569 * prj-part.adb (With_Record): New component Node
8570 (Parse): New Boolean parameter Store_Comments, defaulted to False.
8571 Set the scanner to return ends of line and comments as tokens, if
8572 Store_Comments is True.
8573 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
8574 comments are associated with these nodes. Store the node IDs in the
8576 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
8578 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
8579 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
8580 current project. Call Tree.Restore afterwards. Set the various nodes
8581 for comment storage (Next_End, End_Of_Line, Previous_Line,
8584 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
8587 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
8588 to False. When Truncated is True, truncate the string, never go to the
8590 (Write_End_Of_Line_Comment): New procedure
8591 (Print): Process comments for nodes N_With_Clause,
8592 N_Package_Declaration, N_String_Type_Declaration,
8593 N_Attribute_Declaration, N_Typed_Variable_Declaration,
8594 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
8595 Process nodes N_Comment.
8597 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
8598 without comments and there are some comments, set the flag
8599 Unkept_Comments to True.
8600 (Scan): If there are comments, set the flag Unkept_Comments to True and
8602 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
8603 (Next_End_Nodes: New table
8604 (Comment_Zones_Of): New function
8605 (Scan): New procedure; moved from Prj. Accumulate comments in the
8606 Comments table and set end of line comments, comments after, after end
8608 (Add_Comments): New procedure
8609 (Save, Restore, Seset_State): New procedures
8610 (There_Are_Unkept_Comments): New function
8611 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
8612 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
8614 (First_Comment_After, First_Comment_After_End): New functions
8615 (First_Comment_Before, First_Comment_Before_End): New functions
8616 (Next_Comment): New function
8617 (End_Of_Line_Comment, Follows_Empty_Line,
8618 Is_Followed_By_Empty_Line): New functions
8619 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
8620 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
8621 (Set_Next_Comment): New procedure
8622 (Default_Project_Node): Associate comment before if the node can store
8625 * scans.ads (Token_Type): New enumeration value Tok_Comment
8626 (Comment_Id): New global variable
8628 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
8630 (Scan): Store position of start of comment. If comments are tokens, set
8631 Comment_Id and set Token to Tok_Comment when scanning a comment.
8632 (Set_Comment_As_Token): New procedure
8634 * sinput-p.adb: Update Copyright notice
8635 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
8636 that no longer exists.
8638 2003-12-08 Javier Miranda <miranda@gnat.com>
8640 * sem_aggr.adb: Add dependence on Exp_Tss package
8641 Correct typo in comment
8642 (Resolve_Aggregate): In case of array aggregates set the estimated
8643 type of the aggregate before calling resolve. This is needed to know
8644 the name of the corresponding IP in case of limited array aggregates.
8645 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
8646 in case of default initialized array components.
8648 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
8649 types. Required to give support to limited aggregates in generic
8652 2003-12-08 Ed Schonberg <schonberg@gnat.com>
8654 * sem_ch3.adb (Check_Initialization): For legality purposes, an
8655 inlined body functions like an instantiation.
8656 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
8657 until bounds are analyzed, to diagnose premature use of type.
8659 * sem_util.adb (Wrong_Type): Improve error message when the type of
8660 the expression is used prematurely.
8662 2003-12-08 GNAT Script <nobody@gnat.com>
8664 * Make-lang.in: Makefile automatically updated
8666 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
8668 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
8669 they are automatically generated by Make-lang.in and cause nothing but
8670 maintenance troubles.
8672 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
8674 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
8675 version of this unit).
8677 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
8679 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
8680 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
8681 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
8682 the body of System.Interrupt_Management common to several targets.
8683 Update copyright notice when appropriate.
8685 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
8688 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
8689 to ensure that the kernel fills in the interrupted context structure
8690 before calling a signal handler, which is necessary to be able to
8691 unwind past it. Update the copyright notice.
8693 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
8695 * a-elchha.ads: New file.
8697 * a-elchha.adb: New default last chance handler. Contents taken from
8698 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
8700 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
8701 is moved to a-elchha.adb to provide a target-independent default last
8704 * Makefile.rtl: Add a-elchha.o
8706 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
8708 2003-12-05 Ed Schonberg <schonberg@gnat.com>
8710 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
8711 declared in an instance, do not inline the call if the instance is not
8712 frozen yet, to prevent order of elaboration problems.
8714 * sem_prag.adb: Add comments for previous fix.
8716 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
8718 * g-table.adb: Use the right variable in Set_Item.
8719 Update copyright notice.
8721 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
8723 * Makefile.in: Remove unused rules.
8725 2003-12-05 Vincent Celier <celier@gnat.com>
8727 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
8728 -nostdlib. Not needed here after all.
8730 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
8734 * adaint.h, adaint.c, g-os_lib.ads:
8735 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
8736 on some platforms (including FreeBSD), it is a 64 bit value.
8737 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
8739 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
8741 * gnatvsn.ads (Library_Version): Now contain only the relevant
8743 (Verbose_Library_Version): New constant.
8745 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
8746 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
8747 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
8749 * gnatlbr.adb: Clean up: replace Library_Version by
8750 Verbose_Library_Version.
8752 * make.adb, lib-writ.adb, exp_attr.adb:
8753 Clean up: replace Library_Version by Verbose_Library_Version.
8755 * 5lintman.adb: Removed.
8758 Update and simplify computation of LIBRARY_VERSION.
8759 Fix computation of GSMATCH_VERSION.
8760 5lintman.adb is no longer used: replaced by 7sintman.adb.
8762 2003-12-03 Robert Dewar <dewar@gnat.com>
8765 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
8766 name. Modified to consider small non-bit-packed arrays as troublesome
8767 and in need of component-by-component assigment expansion.
8769 2003-12-03 Vincent Celier <celier@gnat.com>
8771 * lang-specs.h: Process nostdlib as nostdinc
8773 * back_end.adb: Update Copyright notice
8774 (Scan_Compiler_Arguments): Process -nostdlib directly.
8776 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
8779 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
8780 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
8781 included in HIE_NONE_TARGET_PAIRS.
8783 2003-12-03 Ed Schonberg <schonberg@gnat.com>
8786 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
8787 is legal in an instance, because legality is cheched in the template.
8790 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
8791 appplied to an unchecked conversion of a formal parameter.
8794 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
8797 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
8799 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
8800 routines. The second one is new functionality to deal with backtracing
8801 through signal handlers.
8802 (unwind): Split into the two separate subroutines above.
8803 Update the documentation, and deal properly with sizeof (REG) different
8804 from sizeof (void*).
8806 2003-12-01 Nicolas Setton <setton@act-europe.fr>
8808 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
8809 so that the debugger can reliably access the value of the parameter,
8810 and therefore is able to display the exception name when an exception
8811 breakpoint is reached.
8813 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
8815 * fmap.adb: Fix typo in warning message.
8817 * g-socket.ads, g-socket.adb: Make Free a visible instance of
8818 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
8820 2003-12-01 Vincent Celier <celier@gnat.com>
8822 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
8824 (Build_Library): Get the switches only if Default_Switches is declared
8827 2003-12-01 Ed Schonberg <schonberg@gnat.com>
8829 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
8830 actuals that are indexed components, reanalyze actual to ensure that
8831 packed array references are properly expanded.
8833 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
8834 attempted assignment to a discriminant.
8836 2003-12-01 Robert Dewar <dewar@gnat.com>
8838 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
8841 * switch-c.adb: Minor reformatting of comments
8843 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
8845 * Makefile.in: Clean ups.
8847 2003-12-01 GNAT Script <nobody@gnat.com>
8849 * Make-lang.in: Makefile automatically updated
8851 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
8853 * 5wsystem.ads: Disable zero cost exception, not ready yet.
8855 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
8857 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
8858 to force serialization.
8860 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
8862 * g-socket.ads, g-socket.adb:
8863 Clarify documentation of function Stream. Introduce a Free procedure
8864 to release the returned Stream once it becomes unused.
8866 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
8868 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
8870 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
8871 since NT 4 cannot handle timeout values that are too large,
8872 e.g. DWORD'Last - 1.
8874 2003-11-26 Ed Schonberg <schonberg@gnat.com>
8877 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
8878 in procedure calls and whose expansion must be deferred.
8880 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
8884 (Build_Derived_Array_Type): Create operator for unconstrained type
8885 if ancestor is unconstrained.
8887 2003-11-26 Vincent Celier <celier@gnat.com>
8889 * make.adb (Project_Object_Directory): New global variable
8890 (Change_To_Object_Directory): New procedure
8891 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
8892 of Change_Dir directly. Do not change working directory to object
8893 directory of main project after each compilation.
8894 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
8896 Change to object directory of main project before binding step.
8897 (Initialize): Initialize Project_Object_Directory to No_Project
8900 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
8901 binding a Stand-Alone Library.
8903 * output.adb: Update Copyright notice
8904 (Write_Char): Output buffer when full
8906 2003-11-26 Robert Dewar <dewar@gnat.com>
8908 * sem_ch13.adb: (Check_Size): Reset size if size is too small
8911 (Check_Size): Fix documentation to include bit-packed array case
8913 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
8915 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
8917 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
8919 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
8922 * utils.c (init_gigi_decls): Change name of built-in setjmp to
8923 __builtin_setjmp, since this is apparently needed by recent
8926 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8928 * adadecode.c: Only include ctype.h if not IN_GCC.
8929 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
8931 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
8934 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
8935 signals and interrupts.
8937 * 5zintman.ads: New File.
8939 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
8940 add exception signals to the set of unmasked signals.
8943 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
8944 between signals and interrupts.
8945 Add to Unblocked_Signal_Mask the set of signals that are in
8949 Adding a check to see whether the Interrupt_ID we want to unmask is in
8950 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
8951 reason is that the index type of the Keep_Unmasked array is not always
8952 Interrupt_ID; it may be a subtype of Interrupt_ID.
8954 2003-11-24 Gary Dismukes <dismukes@gnat.com>
8957 (Remove_Side_Effects): Condition constantness of object created for a
8958 an unchecked type conversion on the constantness of the expression
8959 to ensure the correct value for 'Constrained when passing components
8960 of view-converted class-wide objects.
8962 2003-11-24 Robert Dewar <dewar@gnat.com>
8964 * par-load.adb (Load): Improve handling of misspelled and missing units
8965 Removes several cases of compilation abandoned messages
8967 * lib.adb: (Remove_Unit): New procedure
8969 * lib.ads: (Remove_Unit): New procedure
8971 * lib-load.adb: Minor reformatting
8973 2003-11-24 Vincent Celier <celier@gnat.com>
8976 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
8977 (Marking_Label): Label to mark processed source files. Incremented for
8979 (Gnatmake): Increase Marking_Labet for each executable
8980 (Is_Marked): Compare against marking label
8981 (Mark): Mark with marking label
8983 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
8986 Move the declaration of the TSD for System.Threads to System.Soft_Links.
8989 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
8990 (rts-cert): build a single relocatable object for the run-time lib.
8993 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
8996 Use gnatls rather than gcc to obtain the location of GNAT RTL for
8999 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
9001 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
9002 can not use it as before (that is, as a variable) when dumping it into
9003 the tree file. Add a local variable to store the result of this
9004 function and to be used as the string to be written into the tree.
9006 * scn.adb (Initialize_Scanner): Add comments explaining the recent
9009 * sinput.adb (Source_First, Source_Last): In case of
9010 Internal_Source_File, replace returning attributes of
9011 Internal_Source_Ptr (which is wrong) with returning attributes of
9014 2003-11-24 Ed Schonberg <schonberg@gnat.com>
9017 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
9018 used for implicit concatenation operators.
9022 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
9023 task bodies that are in the scope of a Suppress pragma.
9024 (Check_A Call): Use the flag to prevent spurious elaboration checks.
9026 * sinfo.ads, sinfo.adb:
9027 New flag No_Elaboration_Check on function/procedure calls, to properly
9028 suppress checks on calls in task bodies that are within a local suppress
9032 (Expand_Concatenate_Other): Use the proper integer type for the
9033 expression for the upper bound, to avoid universal_integer computations
9036 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
9038 * .cvsignore: Delete.
9040 2003-11-21 Andreas Schwab <schwab@suse.de>
9042 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
9044 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
9046 * 5wsystem.ads: Enable zero cost exception.
9048 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
9050 * 5ztiitho.adb: Remove an unreferenced variable.
9052 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
9054 * adaint.c: For FreeBSD, use mkstemp.
9056 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
9058 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
9060 2003-11-21 Robert Dewar <dewar@gnat.com>
9062 * bld.adb: Remove useless USE of gnatvsn
9064 * gnatchop.adb: Minor reformatting
9065 Clean up version handling to be more consistent
9067 * gnatxref.adb: Minor reformatting
9069 * gprcmd.adb: Minor reformatting
9070 Fix output of copyright to be more consistent with other tools
9072 2003-11-21 Vincent Celier <celier@gnat.com>
9074 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
9076 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
9078 * atree.adb (Initialize): Add initializations for global variables
9079 used in New_Copy_Tree.
9081 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
9082 Internal_Source_File as the actual).
9083 Put the set of statements creating Any_Character before the set of
9084 statements creating Any_Array to have Any_Character fully initialized
9085 when it is used in creating Any_Array.
9087 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
9088 not call Scan in case if the actual is Internal_Source_File
9089 Add 2003 to copyright note.
9091 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
9092 processing Internal_Source_File.
9094 * types.ads: Add the constant Internal_Source_File representing the
9095 source buffer for artificial source-code-like strings created within
9096 the compiler (the definition of Source_File_Index is changed).
9098 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
9100 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
9101 56system.ads: New file, FreeBSD version.
9103 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
9105 * Make-lang.in (ada.extraclean): Delete.
9107 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
9109 * gnatmem.adb: Clean up verbose output.
9111 * gprcmd.adb: Change copyright to FSF.
9113 2003-11-19 Vincent Celier <celier@gnat.com>
9115 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
9116 and Version (ignored).
9118 * symbols.ads: (Policy): New type
9119 (Initialize): New parameter Reference, Symbol_Policy and
9121 Remove parameter Force.
9124 * snames.ads, snames.adbadb: New standard names
9125 Library_Reference_Symbol_File and Library_Symbol_Policy
9128 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
9132 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
9134 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
9136 * prj.adb: (Project_Empty): New component Symbol_Data
9138 * prj.ads: (Policy, Symbol_Record): New types
9139 (Project_Data): New component Symbol_Data
9142 New attributes Library_Symbol_File, Library_Symbol_Policy and
9143 Library_Reference_Symbol_File.
9146 (Ada_Check): When project is a Stand-Alone library project, process
9147 attribute Library_Symbol_File, Library_Symbol_Policy and
9148 Library_Reference_Symbol_File.
9150 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9151 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
9152 5sml-tgt.adb (Build_Dynamic_Library): New parameter
9153 Symbol_Data (ignored).
9155 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
9156 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
9157 functions Option_File_Name and Version_String. Set new options of
9158 gnatsym related to symbol file, symbol policy and reference symbol
9162 Extensive modifications to take into account the reference symbol file,
9163 the symbol policy, the library version and to put in the symbol file the
9164 minor and major IDs.
9166 * bld.adb (Process_Declarative_Items): Put second argument of
9167 gprcmd to_absolute between single quotes, to avoid problems with
9170 * bld-io.adb: Update Copyright notice.
9171 (Flush): Remove last character of a line, if it is a back slash, to
9172 avoid make problems.
9175 Implement new scheme with reference symbol file and symbol policy.
9177 * g-os_lib.ads: (Is_Directory): Clarify comment
9179 2003-11-19 Robert Dewar <dewar@gnat.com>
9181 * atree.adb: Move New_Copy_Tree global variables to head of package
9183 * errout.adb: Minor reformatting
9185 2003-11-19 Javier Miranda <miranda@gnat.com>
9187 * sem_ch4.adb: (Diagnose_Call): Improve error message.
9188 Add reference to Ada0Y (AI-50217)
9190 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
9191 sem_util.adb: Add reference to AI-50217
9193 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
9195 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
9197 * sem_aggr.adb: Complete documentation of AI-287 changes
9199 * par-ch4.adb: Document previous changes.
9201 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
9202 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
9205 * exp_aggr.adb: Add references to AI-287 in previous changes
9207 2003-11-19 Ed Schonberg <schonberg@gnat.com>
9210 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
9211 in the rewriting is the result of an inlined call.
9213 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
9214 parameter is a type conversion, use original node to construct the
9215 post-call assignment, because expression may have been rewritten, e.g.
9216 if it is a packed array.
9219 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
9220 body, just as it is in an instance.
9221 Categorization routines
9223 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
9224 Instantiate_Object): Set proper sloc reference for message on missing
9227 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
9229 * Makefile.in: Add FreeBSD libgnat pairs.
9231 * usage.adb: Fix typo in usage message.
9233 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
9235 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
9236 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
9238 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
9240 * s-thread.adb: This file is now a dummy implementation of
9243 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
9245 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
9247 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
9249 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
9250 instanciation references in the parent type description.
9252 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9254 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
9256 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
9257 TYPE_PRECISION directly from esize.
9259 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
9262 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
9264 * init.c: Initialization routines for FreeBSD
9266 * link.c: Link info for FreeBSD
9268 * sysdep.c: Add the case of FreeBSD
9270 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
9272 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
9273 already called in System.Threads.
9275 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
9276 environment task, as it has been moved to System.Threads.Initialization.
9278 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
9280 * adaint.c (__gnatlib_install_locks): Only reference
9281 __gnat_install_locks on VMS, since other platforms can avoid using
9282 --enable-threads=gnat
9284 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9286 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
9288 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
9289 TYPE_PACKED_ARRAY_TYPE_P.
9290 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
9292 Part of PR ada/12806
9293 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
9294 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
9296 2003-11-17 Vincent Celier <celier@gnat.com>
9298 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
9300 Do not set exit status to Failure when Warning is True.
9301 (Gnatchop): Make errors "no compilation units found" and
9302 "no source files written" warnings only.
9304 * make.adb (Gnatmake): When using a project file, set
9305 Look_In_Primary_Dir to False.
9306 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
9307 and Local_Configuration_Pragmas in the project where they are declared
9308 not an extending project which might have inherited them.
9310 * osint.adb (Locate_File): If Name is already an absolute path, do not
9311 look for a directory.
9313 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
9314 -gnats (Check_Syntax) is used, issue only a warning, not an error.
9316 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
9317 in objects of type Variable_Value.
9319 * prj.ads: (Variable_Value): New component Project
9321 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
9322 is in a project extended by Project.
9324 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
9325 Project of Variable_Values to this new parameter value.
9326 (Expression): Set component Project of Variable_Values.
9327 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
9328 Set the component Project in array elements.
9330 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
9332 * errout.adb: (Initialize): Add initialization for error nodes.
9334 * sem_ch12.adb (Initialize): Add missing initializations for
9335 Exchanged_Views and Hidden_Entities.
9337 2003-11-17 Ed Schonberg <schonberg@gnat.com>
9339 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
9340 already instantiated tree for use in subsequent inlining.
9341 (Analyze_Associations, Instantiate_Formal_Subprogram,
9342 Instantiate_Object): improve error message for mismatch in
9345 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
9346 instantiations of subprograms declared in instances.
9348 2003-11-17 Javier Miranda <miranda@gnat.com>
9350 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
9351 executed only under the Extensions_Allowed flag.
9353 2003-11-17 Robert Dewar <dewar@gnat.com>
9355 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
9357 (Address_Image): Fix bug of returning 0x instead of 0x0
9358 Minor reformatting (function specs).
9360 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
9361 (missed case of 33-63)
9363 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
9365 * s-thread.adb: Add comments for pragma Restriction
9367 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
9368 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
9370 2003-11-17 Ed Falis <falis@gnat.com>
9372 * s-thread.adb: Added No_Tasking restriction for this implementation.
9374 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
9376 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
9377 instanciation references in the parent type description.
9379 2003-11-17 GNAT Script <nobody@gnat.com>
9381 * Make-lang.in: Makefile automatically updated
9383 2003-11-16 Jason Merrill <jason@redhat.com>
9385 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
9386 and TAGS files that include them for each front end.
9388 2003-11-14 Andreas Jaeger <aj@suse.de>
9390 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
9391 is the canonical version.
9392 * misc.c (gnat_handle_option): Likewise.
9394 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
9396 * 5nsystem.ads: New file for x86_64-linux-gnu.
9398 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
9400 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
9402 * comperr.adb: Fix logic in previous change.
9404 2003-11-13 Vincent Celier <celier@gnat.com>
9406 * 5bml-tgt.adb (Build_Dynamic_Library): Use
9407 Osint.Include_Dir_Default_Prefix instead of
9408 Sdefault.Include_Dir_Default_Name.
9410 * gnatlbr.adb: Update Copyright notice
9411 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
9412 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
9413 instead of Sdefault.Object_Dir_Default_Name
9416 (Process_Binder_File): Never suppress the option following -Xlinker
9419 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
9420 Sdefault.Object_Dir_Default_Name.
9422 * osint.ads, osint.adb:
9423 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
9426 * vms_conv.ads: Minor reformating
9427 Remove GNAT STANDARD and GNAT PSTA
9430 Allow GNAT MAKE to have several files on the command line.
9431 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
9432 Sdefault.Object_Dir_Default_Name.
9434 Remove data for GNAT STANDARD
9437 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
9438 Remove data for GNAT STANDARD
9439 Remove options and documentation for -gnatwb/-gnatwB: these warning
9440 options no longer exist.
9442 2003-11-13 Ed Falis <falis@gnat.com>
9444 * 5zthrini.adb: (Init_RTS): Made visible
9447 (Register): Removed unnecessary call to taskVarGet that checked whether
9448 an ATSD was already set as a task var for the argument thread.
9451 Updated comment to reflect that this is a VxWorks version
9452 Added context clause for System.Threads.Initialization
9453 Added call to System.Threads.Initialization.Init_RTS
9455 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
9458 (Init_RTS): New procedure, for the initialization of the run-time lib.
9461 Remove dependancy on System.Init, so that this file can be used in the
9462 AE653 sequential run-time lib.
9464 2003-11-13 Robert Dewar <dewar@gnat.com>
9466 * bindgen.adb: Minor reformatting
9468 2003-11-13 Ed Schonberg <schonberg@gnat.com>
9471 (Apply_Discriminant_Check): Do no apply check if target type is derived
9472 from source type with no applicable constraint.
9475 (Ensure_System_Dependency): Do not apply the style checks that may have
9476 been specified for the main unit.
9479 (Find_Selected_Component): Further improvement in error message, with
9483 (Resolve): Handle properly the case of an illegal overloaded protected
9486 2003-11-13 Javier Miranda <miranda@gnat.com>
9489 (Has_Default_Init_Comps): New function to check the presence of
9490 default initialization in an aggregate.
9491 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
9492 extension aggregate of a limited record. In addition, a new formal
9493 was added to do not initialize the record controller (if any) during
9494 this recursive expansion of ancestors.
9495 (Init_Controller): Add support for limited record components.
9496 (Expand_Record_Aggregate): In case of default initialized components
9497 convert the aggregate into a set of assignments.
9499 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
9500 describing the new syntax.
9501 Nothing else needed to be done because this subprogram delegates part of
9502 its work to P_Precord_Or_Array_Component_Association.
9503 (P_Record_Or_Array_Component_Association): Give support to the new
9504 syntax for default initialization of components.
9507 (Resolve_Aggregate): Relax the strictness of the frontend in case of
9509 (Resolve_Record_Aggregate): Give support to default initialized
9511 (Get_Value): In case of default initialized components, duplicate
9512 the corresponding default expression (from the record type
9513 declaration). In case of default initialization in the *others*
9514 choice, do not check that all components have the same type.
9515 (Resolve_Extension_Aggregate): Give support to limited extension
9519 (Check_Initialization): Relax the strictness of the front-end in case
9520 of aggregate and extension aggregates. This test is now done in
9521 Get_Value in a per-component manner.
9523 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
9524 expression corresponds to a limited aggregate. This test is now done
9527 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
9530 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
9531 present in an N_Component_Association node
9533 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
9535 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
9536 type-conformant entry only if they are homographs.
9538 2003-11-13 GNAT Script <nobody@gnat.com>
9540 * Make-lang.in: Makefile automatically updated
9542 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9544 * adadecode.c: Use <> form of include for ctype.h.
9545 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
9547 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9549 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
9550 Works around PR middle-end/6552.
9552 2003-11-10 Ed Falis <falis@gnat.com>
9554 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
9556 * 5zinit.adb: (Install_Handler): Moved back to spec
9557 (Install_Signal_Handlers): Deleted
9559 * 5zthrini.adb: Added context clause for System.Storage_Elements
9560 (Register): Only handles creation of taskVar; initialization moved to
9562 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
9563 Added declaration of environment task secondary stack and
9566 * s-thread.adb: Implement bodies for thread body processing
9569 Added comment identifying supported targets for pragma Thread_Body.
9571 2003-11-10 Pascal Obry <obry@gnat.com>
9573 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
9577 (Open): Properly check for string length before copying into the buffer.
9578 Raises Name_Error if buffer is too small. Note that this was a potential
9581 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
9583 * bindgen.adb, comperr.adb: Code clean ups.
9584 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
9586 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
9588 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
9590 2003-11-10 Vincent Celier <celier@gnat.com>
9593 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
9596 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
9598 * prj.adb: (Project_Empty): Add new boolean component Virtual
9600 * prj.ads: (Virtual_Prefix): New constant string
9601 (Project_Data): New boolean component Virtual
9603 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
9604 a library project is extended by a virtual extending project.
9607 Modifications throughout to implement extending-all project, including:
9608 (Virtual_Hash, Processed_Hash): New hash tables
9609 (Create_Virtual_Extending_Project): New procedure
9610 (Look_For_Virtual_Projects_For): New procedure
9613 (Process): After checking the projects, if main project is an
9614 extending-all project, set the object directory of all virtual extending
9615 project to the object directory of the main project.
9616 Adjust error message when a virtual extending project has the same
9617 object directory as an project being extended.
9618 (Recursive_Process): If name starts with the virtual prefix, set Virtual
9619 to True in the project data.
9622 (Default_Project_Node): Add new boolean component Extending_All
9623 (Is_Extending_All): New function
9624 (Set_Is_Extending_All): New procedure
9626 * prj-tree.ads: (Is_Extending_All): New function
9627 (Set_Is_Extending_All): New procedure
9628 (Project_Node_Record): New boolean component Extending_All
9630 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
9633 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
9635 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
9636 "gprcmd prefix" to define it.
9638 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
9640 * einfo.ads: Fix a typo and remove an extraneous word in comments.
9643 (Create_Dummy_Package_Unit): Set the scope of the entity for the
9644 created dummy package to Standard_Standard, not to itself, to
9645 defend other parts of the front-end against encoutering a cycle in
9649 (Analyze_With_Clause): When setting the entities for the successive
9650 N_Expanded_Names that constitute the name of a child unit, do not
9651 attempt to go further than Standard_Standard in the chain of scopes.
9652 This case arises from the placeholder units created by
9653 Create_Dummy_Package_Unit in the case of a with_clause for a
9654 nonexistent child unit.
9656 2003-11-10 Ed Schonberg <schonberg@gnat.com>
9659 (Expand_Thread_Body): Place subprogram on scope stack, so that new
9660 declarations are given the proper scope.
9663 (Check_Expr_Constants): Reject an expression that contains a constant
9664 created during expansion, and that appears after the object to which
9665 the address clause applies.
9667 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
9668 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
9669 that uses 'Range of a function call with controlled components, so
9670 that the function result can be finalized before starting the loop.
9673 (Find_Selected_Component): Improve error message when prefix is
9674 an implicit dereference of an incomplete type.
9676 2003-11-10 Robert Dewar <dewar@gnat.com>
9678 * opt.ads: New Print_Standard flag for -gnatS switch
9680 * sem_ch13.adb: Remove some additional checks for unaligned arrays
9682 * cstand.adb (Create_Standard): Print out package standard if -gnatS
9685 * debug.adb: Update doc for -gnatds to discuss relationship with new
9688 * sinfo.adb: Add new field Entity_Or_Associated_Node
9690 * sinfo.ads: Add new field Entity_Or_Associated_Node
9691 Update documentation for Associated_Node and Entity fields to clarify
9692 relationship and usage.
9695 (Write_Id): Properly process Associated_Node field in generic template
9698 Recognize new -gnatS switch for printing package Standard
9699 This replaces gnatpsta
9702 Add line for new -gnatS switch for printing package Standard
9703 This replaces gnatpsta
9705 2003-11-10 Andreas Jaeger <aj@suse.de>
9707 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
9710 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9712 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
9715 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9717 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
9720 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
9722 * sysdep.c: Add handling of cygwin.
9724 2003-11-10 GNAT Script <nobody@gnat.com>
9726 * Make-lang.in: Makefile automatically updated
9728 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9731 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
9732 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
9733 Replace GNAT_ROOT by GCC_ROOT.
9735 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
9737 2003-11-06 Zack Weinberg <zack@codesourcery.com>
9739 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
9740 and update for changed meaning of GET_MODE_BITSIZE.
9742 2003-11-04 Doug Rupp <rupp@gnat.com>
9744 * sysdep.c: Problem discovered during IA64 VMS port.
9745 [VMS] #include <unixio.h> to get proper prototypes.
9748 Issues discovered/problems fixed during IA64 VMS port.
9749 [VMS] #define _POSIX_EXIT for proper semantics.
9750 [VMS] #include <unixio.h> for proper prototypes.
9751 [VMS] (fork): #define IA64 version.
9752 (__gnat_os_exit): Remove unnecessary VMS specific code.
9754 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9756 Part of PR ada/12806
9758 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
9762 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
9765 * targtyps.c, decl.c, misc.c,
9766 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
9767 routines to work around change in FP sizing semantics in GCC.
9770 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
9772 * gigi.h: (enumerate_modes): New function.
9774 * Make-lang.in: (ada/misc.o): Add real.h.
9776 * misc.c: (enumerate_modes): New function.
9778 2003-11-04 Robert Dewar <dewar@gnat.com>
9780 * 3vtrasym.adb: Minor reformatting
9781 Use terminology encoded/decoded name, rather than C++ specific notion
9782 of mangling (this is the terminology used throughout GNAT).
9784 * einfo.h: Regenerated
9786 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
9789 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
9791 * par-prag.adb: Add dummy entry for Thread_Body pragma
9794 Add entries for System.Threads entities for thread body processing
9797 (Analyze_Pragma, Access attributes): Check these are not applied to a
9798 thread body, since this is not permitted
9800 * sem_prag.adb: Add processing for Thread_Body pragma.
9804 (Resolve_Call): Check for incorrect attempt to call a thread body
9805 procedure with a direct call.
9807 * snames.ads, snames.adb: Add entry for Thread_Body pragma
9808 Add names associated with thread body expansion
9810 * snames.h: Add entry for Thread_Body pragma
9812 * s-thread.adb: Add entries for thread body processing
9813 These are dummy bodies so far
9815 * s-thread.ads: Add documentation on thread body handling.
9816 Add entries for thread body processing.
9818 2003-11-04 Javier Miranda <miranda@gnat.com>
9821 (Build_Limited_Views): Return after posting an error in case of limited
9822 with_clause on subprograms, generics, instances or generic renamings
9823 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
9824 on subprograms, generics, instances or generic renamings
9826 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
9828 * raise.c (setup_to_install): Correct mistake in last revision; two
9829 arguments out of order.
9831 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
9832 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
9833 notice, missed in previous change.
9834 Remove trailing blanks and other style errors introduced in previous
9837 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
9839 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
9840 rid of the wrapper for a LJM type, ensuring we don't do that if the
9841 field is addressable. This avoids potential low level type view
9842 mismatches later on, for instance in a by-reference argument passing
9845 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9847 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
9848 aligned at byte boundary.
9850 2003-11-04 Joel Brobecker <brobecker@gnat.com>
9852 * decl.c (components_to_record): Do not delete the empty variants from
9853 the end of the union type.
9855 2003-11-04 Ed Schonberg <schonberg@gnat.com>
9857 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
9858 operation for a derived type, an explicit declaration may use a local
9861 2003-11-04 Vincent Celier <celier@gnat.com>
9863 * make.adb (Gnatmake): Allow main sources on the command line with a
9864 library project when it is only for compilation (no binding or
9867 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9869 * Makefile.in: Remove many duplicate variables.
9871 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
9873 * Make-lang.in (dvi): Move targets to $(docobjdir).
9874 (gnat_ug_vms.dvi): Simplify rule and adjust target.
9875 (gnat_ug_wnt.dvi): Likewise.
9876 (gnat_ug_unx.dvi): Likewise.
9877 (gnat_ug_vxw.dvi): Likewise.
9878 (gnat_rm.dvi): Likewise.
9879 (gnat-style.dvi): Likewise.
9881 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
9883 * gigi.h: Missed commit from update for C90.
9885 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
9887 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
9889 2003-10-31 Andreas Schwab <schwab@suse.de>
9891 * raise.c (get_action_description_for): Fix typo in last change.
9893 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
9896 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
9897 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
9899 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
9901 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
9902 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
9903 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
9904 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
9905 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
9907 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
9910 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
9911 numbers when symbol name is too long.
9913 2003-10-30 Ed Falis <falis@gnat.com>
9915 * g-signal.ads, g-signal.adb: New files
9917 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
9919 * Makefile.rtl: Introduce GNAT.Signals
9921 2003-10-30 Robert Dewar <dewar@gnat.com>
9923 * freeze.adb: Minor reformatting
9925 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
9927 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
9928 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
9929 New handling of Id_Check parameter to improve recognition of keywords
9930 used as identifiers.
9931 Update copyright notice to include 2003
9933 2003-10-29 Robert Dewar <dewar@gnat.com>
9935 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
9936 sem_ch10.adb: Minor reformatting
9938 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
9939 (Expand_Assign_Record): Test right hand side for bit unaligned as well
9941 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
9943 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
9944 Support for TBK$SYMBOLIZE-based symbolic traceback.
9946 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
9949 Revert previous change, that did not work well when pragma No_Run_Time
9950 was used in conjunction with a run-time other than ZFP.
9952 2003-10-29 Vincent Celier <celier@gnat.com>
9955 (Gnatmake): When there are no Ada mains in attribute Main, disable the
9956 bind and link steps only is switch -z is not used.
9958 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
9960 * Makefile.generic: Remove duplicated setting of CC.
9962 * Makefile.prolog: Set CC to gcc by default, to override make's
9965 * einfo.h: Regenerated.
9967 2003-10-29 Ed Schonberg <schonberg@gnat.com>
9969 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
9970 current body, after compiling subunit.
9972 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
9973 when in deleted code, because gigi needs properly ordered freeze
9974 actions to annotate types.
9976 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
9977 prevent the premature freezing of record type that contains
9978 subcomponents with a private type that does not yet have a completion.
9980 2003-10-29 Javier Miranda <miranda@gnat.com>
9983 (Analyze_Package_Instantiation): Check that instances can not be used in
9984 limited with_clauses.
9987 (Analyze_Package_Renaming): Check that limited withed packages cannot
9988 be renamed. Improve text on error messages related to limited
9991 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
9993 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
9994 Update copyright notice.
9996 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
9997 (Install_Limited_Context_Clauses): New subprogram that isolates all the
9998 checks required for limited context_clauses and installs the limited
10000 (Install_Limited_Withed_Unit): Complete its documentation.
10001 (Analyze_Context): Check that limited with_clauses are only allowed in
10003 (Install_Context): Call Install_Limited_Context_Clauses after the
10004 parents have been installed.
10005 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
10006 package as 'From_With_Type'; this mark indicates that the limited view
10007 is installed. Used to check bad usages of limited with_clauses.
10008 (Build_Limited_Views): Do not add shadow entities to the scope's list
10009 of entities. Do not add real entities to the Non_Limited_Views chain.
10010 Improve error notification.
10011 (Remove_Context_Clauses): Remove context clauses in two phases:
10012 limited views first and regular views later (to maintain the
10014 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
10015 its visible entities.
10017 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
10019 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
10020 with any type that Is_Fixed_Point_Type.
10022 * sinfo.ads: Fix documentation for Associated_Node attribute.
10024 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
10026 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
10027 both '-gnatc' and '-gnatt' are specified.
10029 * atree.adb (Initialize): Add initialization for Node_Count (set to
10032 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10034 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
10035 do not consider as Pure.
10037 Part of implementation of function-at-a-time:
10039 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
10040 (tree_transform): Add new argument to build_component_ref.
10041 (tree_transform, case N_Assignment_Statement): Make and return an
10043 (tree_transform): If result IS_STMT, set flags and return it.
10044 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
10046 * utils2.c (build_simple_component_ref, build_component_ref): Add new
10048 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
10049 (build_allocator): Likewise.
10051 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
10052 Add new arg to build_component_ref.
10053 (maybe_unconstrained_array, unchecked_convert): Likewise.
10055 * ada-tree.def (EXPR_STMT): New code.
10057 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
10059 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
10060 build_component_ref calls.
10062 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
10064 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
10065 (build_component_ref): Add new argument, NO_FOLD_P.
10067 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
10069 * Makefile.generic: Add missing substitution on object_deps handling.
10072 * Make-lang.in (check-ada): Enable ACATS test suite.
10074 2003-10-27 Robert Dewar <dewar@gnat.com>
10077 (Freeze_Array_Type): We do not need an initialization routine for types
10078 derived from String or Wide_String. They should be treated the same
10079 as String and Wide_String themselves. This caused problems with the
10080 use of Initialize_Scalars.
10083 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
10084 composites. This allows use of component clauses that are not byte
10088 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
10089 is an attempt to pack an array of atomic objects.
10091 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
10093 2003-10-27 Pascal Obry <obry@gnat.com>
10096 (Basename): Check for drive letters in a pathname only on DOS based OS.
10098 2003-10-27 Vincent Celier <celier@gnat.com>
10101 (Gnatmake): When unable to change dir to the object dir, display the
10102 content of the parent dir of the obj dir, to try to understand why this
10105 2003-10-27 GNAT Script <nobody@gnat.com>
10107 * Make-lang.in: Makefile automatically updated
10109 2003-10-27 Ed Schonberg <schonberg@gnat.com>
10112 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
10113 should not be done in Save/Restore_Scope_Stack, because it is performed
10117 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
10118 whether use clauses should be removed/restored.
10121 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
10122 whether use clauses should be removed/restored.
10124 2003-10-26 Andreas Jaeger <aj@suse.de>
10126 * Makefile.in: Remove duplicated lines.
10128 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
10130 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
10131 minimize the differences with ACT tree.
10133 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
10134 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
10135 Gnatvsn.Gnat_Static_Version_String to reduce differences between
10138 2003-10-24 Pascal Obry <obry@gnat.com>
10140 * adadecode.c (ostrcpy): New function.
10141 (__gnat_decode): Use ostrcpy of strcpy.
10142 (has_prefix): Set first parameter a const.
10143 (has_suffix): Set first parameter a const.
10144 Update copyright notice. Fix source name in header.
10145 Removes a trailing space.
10148 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
10151 Remove the test against being in No_Run_Time_Mode before generating a
10152 call to Register_Tag. It is redundant with the test against the
10153 availability of the function Register_Tag.
10155 2003-10-24 Vincent Celier <celier@gnat.com>
10157 * g-catiio.adb: (Month_Name): Correct spelling of February
10159 * make.adb: (Mains): New package
10160 (Initialize): Call Mains.Delete
10161 (Gnatmake): Check that each main on the command line is a source of a
10162 project file and, if there are several mains, each of them is a source
10163 of the same project file.
10164 (Gnatmake): When a foreign language is specified in attribute Languages,
10165 no main is specified on the command line and attribute Mains is not
10166 empty, only build the Ada main. If there is no Ada main, just compile
10167 the Ada sources and their closure.
10168 (Gnatmake): If a main is specified on the command line with directory
10169 information, check that the source exists and, if it does, that the path
10170 is the actual path of a source of a project.
10173 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
10174 Full_Path is True, return the full path instead of the simple file name.
10175 (Project_Of): New function
10178 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
10179 defaulted to False.
10180 (Project_Of): New function
10182 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
10184 * Makefile.generic:
10185 Ensure objects of main project are always checked and rebuilt if needed.
10186 Set CC to gcc by default.
10187 Prepare new handling of link by creating a global archive (not activated
10190 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
10191 stringt.h: Update copyright notice. Remove trailing blanks.
10192 Fix source name in header.
10194 2003-10-24 Robert Dewar <dewar@gnat.com>
10196 * sem_ch12.adb: Minor reformatting
10199 Minor reformatting (including new function return style throughout)
10202 Minor reformatting (including new function return style throughout)
10204 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
10206 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
10207 stringt.h: Update copyright notice. Remove trailing blanks.
10208 Fix source name in header.
10210 2003-10-24 GNAT Script <nobody@gnat.com>
10212 * Make-lang.in: Makefile automatically updated
10214 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
10216 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
10217 stringt.h: Convert to ISO C90 declarations and definitions.
10219 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
10222 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
10223 External_Tag attribute definition clauses.
10225 2003-10-23 Ed Schonberg <schonberg@gnat.com>
10228 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
10229 child unit, generate a fully qualified name to avoid spurious errors
10230 when the context contains renamings of different child units with
10231 the same simple name.
10233 * exp_dbug.ads: Add documentation on name qualification for renamings
10236 2003-10-23 Robert Dewar <dewar@gnat.com>
10238 * g-regpat.ads, g-regpat.adb: Minor reformatting
10240 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
10242 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
10244 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10246 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
10249 * urealp.h: (Machine): Update to proper definition.
10251 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
10253 * init.c, adaint.c: Minor reformatting.
10255 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
10257 * adaint.c (w32_epoch_offset): Define static const at file level.
10258 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
10259 rather than t_create, t_access in call to GetFileTime. Use union
10260 to convert between FILETIME and unsigned long long.
10261 (__gnat_file_time_name): Test for invalid file handle.
10262 (__gnat_set_filetime_name): Support win32 targets using
10263 w32api SetFileTime.
10265 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
10267 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
10269 * ctrl_c.c (__gnat_int_handler): Remove declaration.
10271 * decl.c (creat_concat_name): Const-ify prefix.
10273 * adaint.c: Include ctype.h if __MINGW32__.
10274 (__gnat_readlink): Mark arguments as possibly unused.
10275 (__gnat_symlink): Likewise.
10276 (__gnat_is_symbolic_link): Likewise.
10277 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
10279 (__gnat_file_time_name): Don't declare struct stat statbuf when
10281 (__gnat_is_absolute_path): Add parenthesis around condition of
10282 'if' statement to avoid warning.
10283 (__gnat_plist_init): Specify void as parameter.
10284 (plist_enter): Likewise.
10285 (plist_leave): Likewise.
10286 (remove_handle): Make static. Initialize prev.
10288 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
10290 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
10291 * cstreams.c (__gnat_full_name): Minor improvements and clean up
10292 of previous change.
10294 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10296 * tracebak.c (MAX): Avoid redefinition warning.
10298 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
10299 Change msg to const char *.
10300 (__gnat_install_handler): Remove ss, unused.
10301 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
10303 * cstreams.c (__gnat_full_name): Declare p only when used.
10304 (__gnat_full_name) [sgi] Return buffer.
10306 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
10308 * mingw32.h: New file.
10309 * gnat_wrapper.adb: New file.
10311 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
10313 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
10314 string match a pre compiled regular expression (the corresponding
10315 version of the function working on a raw regular expression)
10316 Fix typos in various comments
10317 Update copyright notice in spec
10319 2003-10-21 Gary Dismukes <dismukes@gnat.com>
10322 (Component_Needs_Simple_Initialization): Return False when the type is a
10323 packed bit array. Revise spec comments to document this case.
10326 (Expand_Pragma_Import): Set any expression on the imported object to
10327 empty to avoid initializing imported objects (in particular this
10328 covers the case of zero-initialization of bit arrays).
10329 Update copyright notice.
10331 2003-10-21 Ed Schonberg <schonberg@gnat.com>
10334 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
10335 a subunit is missing.
10336 (Instantiate_Subprogram_Body): If body of function is missing, set type
10337 of return expression explicitly in dummy body, to prevent cascaded
10338 errors when a subunit is missing.
10342 (Access_Subprogram_Declaration): Verify that return type is valid.
10346 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
10351 (Corresponding_Discriminant): If the scope of the discriminant is a
10352 private type without discriminant, use its full view.
10355 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
10357 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
10358 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
10359 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
10360 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
10361 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
10362 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
10363 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
10364 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
10365 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
10366 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
10367 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
10368 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
10369 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
10370 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
10371 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
10372 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
10373 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
10374 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
10375 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
10376 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
10377 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
10378 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
10379 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
10380 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
10381 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
10382 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
10383 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
10384 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
10385 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
10386 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
10387 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
10388 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10389 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
10390 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
10391 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
10392 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
10393 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
10394 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
10395 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
10396 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
10397 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
10398 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
10399 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
10400 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
10401 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
10402 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
10403 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
10404 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
10405 vms_conv.ads, vms_conv.adb, vms_data.ads,
10406 vxaddr2line.adb: Files added. Merge with ACT tree.
10408 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
10409 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
10410 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
10411 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
10412 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
10413 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
10414 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
10415 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
10416 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
10417 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
10419 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
10420 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
10421 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
10422 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
10423 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
10424 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
10425 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
10426 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
10427 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
10428 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
10429 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
10430 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
10431 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
10432 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
10433 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
10434 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
10435 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
10436 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10437 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
10438 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
10439 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
10440 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
10441 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
10442 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
10443 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
10444 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
10445 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
10446 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
10447 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
10448 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
10449 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
10450 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
10451 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
10452 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
10453 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
10454 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
10455 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
10456 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
10457 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
10458 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
10459 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
10460 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
10461 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
10462 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
10463 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
10464 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
10465 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
10466 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
10467 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
10468 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
10469 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
10470 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
10471 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
10472 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
10473 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
10474 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
10475 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
10476 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
10477 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
10478 checks.adb, checks.ads, cio.c, comperr.adb,
10479 comperr.ads, csets.adb, cstand.adb, cstreams.c,
10480 debug_a.adb, debug_a.ads, debug.adb, decl.c,
10481 einfo.adb, einfo.ads, errout.adb, errout.ads,
10482 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
10483 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
10484 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
10485 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
10486 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
10487 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
10488 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
10489 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
10490 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
10491 fe.h, fmap.adb, fmap.ads, fname.adb,
10492 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
10493 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
10494 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
10495 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10496 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10497 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10498 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
10499 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
10500 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
10501 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
10502 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
10503 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
10504 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
10505 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
10506 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
10507 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
10508 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
10509 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
10510 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
10511 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
10512 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
10513 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
10514 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
10515 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
10516 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
10517 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
10518 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
10519 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
10520 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
10521 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
10522 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
10523 layout.adb, lib.adb, lib.ads, lib-list.adb,
10524 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
10525 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
10526 link.c, live.adb, make.adb, make.ads,
10527 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
10528 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10529 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
10530 misc.c, mkdir.c, mlib.adb, mlib.ads,
10531 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
10532 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
10533 namet.adb, namet.ads, namet.h, nlists.ads,
10534 nlists.h, nmake.adt, opt.adb, opt.ads,
10535 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
10536 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
10537 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
10538 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
10539 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
10540 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
10541 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
10542 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
10543 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10544 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10545 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10546 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10547 prj-util.adb, prj-util.ads, raise.c, raise.h,
10548 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
10549 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
10550 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
10551 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
10552 scans.ads, scn.adb, scn.ads, s-crc32.adb,
10553 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
10554 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
10555 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10556 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
10557 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
10558 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10559 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10560 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
10561 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
10562 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
10563 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
10564 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
10565 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
10566 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
10567 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
10568 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
10569 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
10570 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
10571 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
10572 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
10573 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
10574 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
10575 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
10576 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
10577 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
10578 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
10579 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
10580 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
10581 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
10582 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
10583 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
10584 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
10585 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
10586 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
10587 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
10588 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
10589 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
10590 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
10591 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
10592 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
10593 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
10594 stringt.adb, stringt.ads, stringt.h, style.ads,
10595 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
10596 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
10597 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
10598 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
10599 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
10600 table.adb, table.ads, targparm.adb, targparm.ads,
10601 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
10602 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
10603 ttypes.ads, types.ads, types.h, uintp.adb,
10604 uintp.ads, uintp.h, uname.adb, urealp.adb,
10605 urealp.ads, urealp.h, usage.adb, utils2.c,
10606 utils.c, validsw.adb, validsw.ads, widechar.adb,
10607 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
10608 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
10609 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
10610 gnatvsn.ads: Merge with ACT tree.
10612 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
10614 2003-10-20 Mark Mitchell <mark@codesourcery.com>
10616 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
10617 (gnat_ug_vmx.info): Likewise.
10618 (gnat_ug_vxw.info): Likewise.
10619 (gnat_ug_wnt.info): Likewise.
10620 (gnat_rm.info): Likewise.
10621 (gnat-style.info): Likewise.
10623 * Make-lang.in (ada.install-info): Remove target.
10624 (info): New target.
10625 (install-info): Likewise.
10626 (gnat_ug_unx.info): Simplify rule.
10627 (gnat_ug_vmx.info): Likewise.
10628 (gnat_ug_vxw.info): Likewise.
10629 (gnat_ug_wnt.info): Likewise.
10630 (gnat_rm.info): Likewise.
10631 (gnat-style.info): Likewise.
10633 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
10635 * Make-lang.in: Replace uses of $(target_alias) with
10636 $(target_noncanonical).
10637 * ada/Makefile.in: Remove unused mention of $(target_alias).
10639 2003-10-06 Mark Mitchell <mark@codesourcery.com>
10641 * Make-lang.in (ada.info): Replace with ...
10643 (ada.dvi): Replace with ...
10646 2003-09-29 Zack Weinberg <zack@codesourcery.com>
10648 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
10649 initialize dconstp5 and dconstmp5.
10651 2003-09-28 Richard Henderson <rth@redhat.com>
10653 * trans.c (tree_transform): Update call to expand_asm_operands.
10655 2003-09-21 Richard Henderson <rth@redhat.com>
10657 * trans.c, utils.c: Revert.
10659 2003-09-21 Richard Henderson <rth@redhat.com>
10661 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
10664 2003-09-04 Michael Matz <matz@suse.de>
10666 * misc.c: Include "target.h".
10667 * Make-lang.in (misc.o): Add dependency on target.h.
10669 2003-09-03 DJ Delorie <dj@redhat.com>
10671 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
10674 2003-08-30 Zack Weinberg <zack@codesourcery.com>
10676 * Makefile.in: Update substitutions to match changes to
10677 configure. Use include directives instead of @-insertions
10678 to read in host and target fragments. Add a rule to
10679 regenerate ada/Makefile.
10681 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
10683 * lang-options.h: Remove.
10684 * lang.opt: Add help text.
10686 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
10688 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
10691 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
10693 * misc.c (gnat_handle_option): Don't handle filenames.
10695 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
10697 * Make-lang.in: Replace PWD with PWD_COMMAND.
10698 * Makefile.adalib: Likewise.
10699 * Makefile.in: Likewise.
10701 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
10703 * misc.c (gnat_argv): Revert last change.
10704 (gnat_handle_option, gnat_init_options): Copy arguments.
10706 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
10708 * misc.c (gnat_argv): Make const.
10710 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
10712 * misc.c (save_argc, save_argv): Keep non-static!
10714 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
10716 * misc.c (save_argc, save_argv): Make static.
10717 (gnat_init_options): New prototype.
10718 (gnat_init_options): Update.
10720 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
10722 * gnat_ug.texi: Remove unlikely characters from @vars.
10723 * gnat_ug_vms.texi: Regenerate.
10725 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
10727 * misc.c (record_code_position): Adjust emit_note call.
10729 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
10731 * misc.c (gnat_handle_option): Don't check for missing arguments.
10733 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
10735 * utils.c (end_subprog_body): Adjust expand_function_end call.
10737 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
10739 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
10742 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
10744 * lang.opt: Declare Ada.
10745 * misc.c (gnat_init_options): Update.
10747 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
10749 * utils.c (begin_subprog_body): Adjust init_function_start call.
10751 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
10753 * Make-lang.in: Update to use options.c and options.h.
10754 * misc.c: Include options.h not aoptions.h.
10755 (gnat_handle_option): Abort on unrecognized switch.
10756 (gnat_init_options): Request Ada switches.
10758 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
10760 * lang.opt: Add -Wall.
10761 * misc.c (gnat_handle_option): Handle it.
10763 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
10765 * misc.c (gnat_handle_option): Fix warnings.
10767 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
10769 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
10771 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
10773 * Make-lang.in: Update to handle command-line options.
10774 * lang.opt: New file.
10775 * misc.c: Include aoptions.h.
10776 (cl_options_count, cl_options): Remove.
10777 (gnat_handle_option): New.
10778 (gnat_decode_option): Remove.
10779 (LANG_HOOKS_DECODE_OPTION): Remove.
10780 (LANG_HOOKS_HANDLE_OPTION): Override.
10782 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
10784 * init.c, misc.c, trans.c, utils.c: Remove dead code.
10786 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
10788 * Makefile.in: Replace "host_canonical" with "host" for autoconf
10791 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
10793 * Make-lang.in: Update.
10794 * misc.c: Include opts.h. Define cl_options_count and cl_options.
10796 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
10798 * misc.c (gnat_init_options): Update.
10800 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
10802 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
10803 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
10804 __attribute__ ((__unused__)).
10806 2003-06-05 Jan Hubicka <jh@suse.cz>
10808 * Make-lang.in: Add support for stageprofile and stagefeedback
10810 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
10812 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
10813 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
10815 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
10817 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
10818 Remove non-VMS directive.
10819 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
10821 (Examples of gnatls Usage): Remove VMS alternative.
10823 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
10826 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
10827 and turn ZCX_By_Default back to False since the underlying support
10828 is not quite there yet.
10830 2003-06-01 Andreas Jaeger <aj@suse.de>
10832 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
10833 and ROUND_TYPE_SIZE_UNIT.
10835 2003-05-22 Geert Bosch <bosch@gnat.com>
10837 * gnat_rm.texi : Remove reference to Ada Core Technologies.
10839 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
10841 * trans.c (tree_transform): Use location_t and input_location
10843 (build_unit_elab): Likewise.
10844 * utils.c (create_label_decl): Likewise.
10846 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
10848 * trans.c (tree_transform, build_unit_elab,
10849 set_lineno): Rename lineno to input_line.
10850 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
10851 end_subprog_body): Likewise.
10852 * utils2.c (build_call_raise): Likewise.
10854 2003-05-01 Laurent Guerby <guerby@acm.org>
10857 * 5iosinte.ads: Increase pthread_cond_t size to match recent
10858 LinuxThread and NPTL version, merge from ACT.
10860 2003-04-28 Zack Weinberg <zack@codesourcery.com>
10862 * utils.c (convert): No need to clear TREE_CST_RTL.
10864 2003-04-23 Geert Bosch <bosch@gnat.com>
10866 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
10867 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
10868 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
10869 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
10870 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
10871 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
10872 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
10873 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
10874 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
10875 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
10876 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
10877 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
10878 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
10879 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
10880 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
10881 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
10882 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
10883 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
10884 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
10885 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
10886 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
10887 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
10888 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10889 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
10890 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
10891 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
10892 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
10893 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
10894 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
10895 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
10896 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
10897 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
10898 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
10899 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
10900 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
10901 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
10902 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
10903 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
10904 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
10905 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
10906 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
10907 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
10908 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
10909 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
10910 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
10911 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
10912 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
10913 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
10914 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
10915 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
10916 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
10917 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
10918 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
10919 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
10920 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
10921 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
10922 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
10923 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
10924 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
10925 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
10926 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
10927 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
10928 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
10929 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
10930 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
10931 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
10932 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
10933 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
10934 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
10935 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
10936 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
10937 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
10938 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
10939 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
10940 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
10941 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
10942 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
10943 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
10944 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
10945 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
10946 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
10947 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
10948 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
10949 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
10950 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
10951 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
10952 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
10953 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
10954 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
10955 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
10956 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
10957 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
10958 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
10959 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
10960 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
10961 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
10962 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
10963 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
10964 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
10965 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
10966 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
10967 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
10968 ali.adb, ali.ads, alloc.ads, argv.c,
10969 atree.adb, atree.ads, atree.h, aux-io.c,
10970 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
10971 binde.adb, binde.ads, binderr.adb, binderr.ads,
10972 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
10973 butil.adb, butil.ads, cal.c, calendar.ads,
10974 casing.adb, casing.ads, ceinfo.adb, checks.adb,
10975 checks.ads, cio.c, comperr.adb, comperr.ads,
10976 config-lang.in, csets.adb, csets.ads, csinfo.adb,
10977 cstand.adb, cstand.ads, cuintp.c, debug.adb,
10978 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
10979 dec-io.ads, dec.ads, deftarg.c, directio.ads,
10980 einfo.adb, einfo.ads, elists.adb, elists.ads,
10981 elists.h, errno.c, errout.adb, errout.ads,
10982 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
10983 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
10984 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
10985 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
10986 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
10987 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10988 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
10989 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
10990 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
10991 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10992 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
10993 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
10994 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
10995 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10996 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
10997 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
10998 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
10999 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
11000 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
11001 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
11002 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
11003 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
11004 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
11005 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
11006 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
11007 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
11008 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
11009 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
11010 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
11011 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
11012 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
11013 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
11014 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
11015 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
11016 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
11017 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
11018 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
11019 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
11020 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
11021 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
11022 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
11023 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
11024 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
11025 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
11026 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
11027 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
11028 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
11029 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
11030 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
11031 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
11032 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
11033 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
11034 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
11035 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
11036 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
11037 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
11038 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
11039 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
11040 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
11041 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
11042 lib.adb, lib.ads, live.adb, live.ads,
11043 machcode.ads, make.adb, make.ads, makeusg.adb,
11044 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
11045 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
11046 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
11047 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
11048 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
11049 mlib.ads, namet.adb, namet.ads, nlists.adb,
11050 nlists.ads, opt.adb, opt.ads, osint-b.adb,
11051 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
11052 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
11053 osint.ads, output.adb, output.ads, par-ch10.adb,
11054 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
11055 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
11056 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
11057 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
11058 par-tchk.adb, par-util.adb, par.adb, par.ads,
11059 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
11060 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
11061 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
11062 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
11063 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
11064 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
11065 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
11066 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
11067 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
11068 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
11069 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
11070 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
11071 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
11072 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
11073 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
11074 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
11075 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
11076 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
11077 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
11078 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
11079 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
11080 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
11081 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
11082 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
11083 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
11084 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
11085 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
11086 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
11087 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
11088 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
11089 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
11090 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
11091 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
11092 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
11093 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
11094 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
11095 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
11096 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
11097 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
11098 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
11099 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
11100 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
11101 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
11102 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
11103 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
11104 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
11105 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
11106 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
11107 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
11108 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
11109 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
11110 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
11111 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
11112 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
11113 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
11114 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
11115 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
11116 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
11117 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
11118 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
11119 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
11120 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
11121 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
11122 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
11123 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
11124 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
11125 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
11126 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
11127 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
11128 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
11129 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
11130 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
11131 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
11132 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
11133 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
11134 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
11135 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
11136 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
11137 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
11138 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
11139 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
11140 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
11141 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
11142 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11143 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
11144 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
11145 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
11146 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
11147 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
11148 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
11149 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
11150 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
11151 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
11152 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
11153 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
11154 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
11155 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
11156 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
11157 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
11158 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
11159 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
11160 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
11161 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
11162 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
11163 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
11164 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
11165 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
11166 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
11167 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
11168 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
11169 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
11170 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
11171 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
11172 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
11173 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
11174 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
11175 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
11176 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
11177 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
11178 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
11179 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
11180 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
11181 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
11182 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
11183 snames.ads, sprint.adb, sprint.ads, stand.adb,
11184 stand.ads, stringt.adb, stringt.ads, style.adb,
11185 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
11186 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
11187 switch-m.ads, switch.adb, switch.ads, system.ads,
11188 table.adb, table.ads, targparm.adb, targparm.ads,
11189 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
11190 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
11191 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
11192 ttypef.ads, ttypes.ads, types.adb, types.ads,
11193 uintp.adb, uintp.ads, uname.adb, uname.ads,
11194 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
11195 usage.adb, usage.ads, validsw.adb, validsw.ads,
11196 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
11197 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
11198 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
11199 formatting and other trivial changes from ACT.
11201 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11203 * gigi.h, utils2.c (build_constructor):
11204 Rename gnat_build_constructor. Use build_constructor.
11205 * decl.c (gnat_to_gnu_entity)
11206 * trans.c (tree_transform, pos_to_constructor, extract_values)
11207 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
11208 (unchecked_convert)
11209 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
11210 (fill_vms_descriptor):
11213 2003-04-06 Zack Weinberg <zack@codesourcery.com>
11215 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
11216 * misc.c (gnat_tree_size): New function.
11217 (LANG_HOOKS_TREE_SIZE): Override.
11219 2003-04-03 Jason Merrill <jason@redhat.com>
11221 * misc.c (gnat_adjust_rli): #if 0.
11223 2003-03-31 Geert Bosch <bosch@gnat.com>
11226 * link.c : Fix misspelled "const" keyword
11228 2003-03-23 Mark Mitchell <mark@codesourcery.com>
11231 * utils2.c: Adjust calls to put_var_into_stack.
11233 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
11235 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
11237 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
11239 * misc.c (gnat_init): Update for new prototype.
11241 2003-03-05 Olivier Hainque <hainque@gnat.com>
11244 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
11245 warning, and fix return type for the IN_RTS && !SJLJ case.
11247 2003-03-04 Tom Tromey <tromey@redhat.com>
11249 * Make-lang.in (ada.tags): New target.
11251 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
11254 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
11255 wrapper, which name remains constant whatever underlying GCC
11258 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
11259 the stable interface needed for a-except.
11261 2003-03-02 Andreas Jaeger <aj@suse.de>
11263 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11264 gnat_ug_wnt.texi: Regenerate.
11266 2003-03-02 Laurent Guerby <guerby@acm.org>
11268 * Makefile.in (install-gnatlib): Match previous change there
11271 2003-02-28 Andreas Schwab <schwab@suse.de>
11273 * Make-lang.in (install-gnatlib): Change to ada directory before
11274 running make instead of using ada/Makefile directly.
11276 2003-02-18 Ben Elliston <bje@redhat.com>
11278 Part of fix for PR ada/9406
11279 * gnat_ug.texi (Binder output file): Grammar fix.
11281 2003-02-18 Ben Elliston <bje@redhat.com>
11284 * 5qtaprop.adb (Sleep): Fix typo in comment.
11286 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
11288 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
11289 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11290 gnat_ug_wnt.texi: Regenerate.
11292 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
11294 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
11295 be created if necessary.
11296 (ada.install-common): Let $(DESTDIR)$(bindir) be created
11297 if necessary. Remove erroneous and redundant gnatchop
11298 installation commands. Test for gnatdll before attempting
11300 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
11301 and gnatdll from all plausible locations.
11303 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
11305 * utils2.c (build_unary_op): Don't check flag_volatile.
11306 * gnat_ug.texi: Remove -fvolatile from example.
11307 * gnat_ug_vxw.texi: Likewise.
11309 2003-01-29 Laurent Guerby <guerby@acm.org>
11312 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
11313 * Makefile.in: match previous change.
11314 * Make-lang.in: match previous change.
11316 2003-01-29 Joel Sherrill <joel@OARcorp.com>
11318 * 5rosinte.ads: Add SIGXCPU.
11319 * 5rtpopsp.adb: New file.
11320 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
11321 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
11322 specific file 5rtpopsp.adb.
11323 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
11324 is likely needed for all newlib targets.
11325 * init.c: Add RTEMS specific version of __gnat_initialize().
11327 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11329 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
11331 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11333 * init.c (__gnat_error_handler): Make msg const.
11335 * gmem.c (convert_addresses): Move declaration ...
11336 * adaint.h: ... here.
11337 * adaint.c (convert_addresses): Adapt addrs type to match
11340 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
11342 2003-01-24 Andreas Schwab <schwab@suse.de>
11344 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
11345 size_t to avoid warning.
11347 2003-01-21 Zack Weinberg <zack@codesourcery.com>
11349 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
11351 2003-01-09 Geoffrey Keating <geoffk@apple.com>
11353 * gnat_rm.texi: Remove RCS version number.
11355 * ada-tree.h (union lang_tree_node): Add chain_next option.
11357 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
11359 * Make-lang.in (ada.install-info, ada.install-common,
11360 ada.uninstall): Prepend $(DESTDIR) to the destination
11361 directory in all (un)installation commands.
11362 * Makefile.in (install-gnatlib, install-rts): Ditto.
11364 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
11366 * gnat_rm.texi, gnat_ug.texi: Use @copying.
11367 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11368 gnat_ug_wnt.texi: Regenerate.
11370 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
11372 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
11374 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
11375 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
11376 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
11377 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
11378 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
11379 $(srcdir)/doc/include/gcc-common.texi.
11381 2002-12-15 Geert Bosch <bosch@gnat.com>
11383 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
11385 2002-12-14 Geert Bosch <bosch@gnat.com>
11387 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
11388 case of a body created for a Renaming_As_Body, on which
11389 conformance checks are not performed. Fixes PR ada/5690.
11391 2002-11-30 Zack Weinberg <zack@codesourcery.com>
11393 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
11394 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
11395 not already included.
11396 * Make-lang.in: Update dependencies.
11398 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
11399 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
11400 solution to buffer overflow bug on GNU/Linux.
11402 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
11403 Closes PR ada/5856 and PR ada/6919 !
11404 * bindgen.adb: Remove all references to Public_Version.
11405 * comperr.adb: Remove all references to Public_Version and
11406 GNATPRO_Version; correct bug reporting instructions.
11407 * comperr.ads: Change to match bug box.
11408 * gnatvsn.ads: Remove all references to Public version and
11411 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
11413 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
11417 * config-lang.in: Remove diff_excludes.
11419 2002-11-05 Graham Stott <graham.stott@btinternet.com>
11421 * trans.c (gnu_pending_elaboration_lists): New GC root.
11422 (build_unit_elab): Use..
11424 2002-10-30 Geert Bosch <bosch@gnat.com>
11426 * misc.c : Include optabs.h
11428 * Make-lang.in (misc.o): Add dependency on optabs.h
11430 2002-10-29 Geert Bosch <bosch@gnat.com>
11432 * Make-lang.in (gnatbind): Depend on CONFIG_H
11434 2002-10-29 Geert bosch <bosch@gnat.com>
11436 * misc.c: Unrevert misc.c (1.13)
11438 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
11440 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
11441 maintainership comments.
11443 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
11445 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
11446 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
11447 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
11448 7staprop.adb: Correct statements in comments about
11449 maintainership of GNAT.
11452 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
11453 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
11454 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
11455 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
11456 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
11457 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
11458 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
11459 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
11460 comments about maintainership of GNAT.
11462 PR ada/6919 (forward port of patch for PR ada/5904)
11463 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
11464 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
11465 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
11466 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
11467 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
11468 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
11469 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
11470 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
11471 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
11472 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
11473 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
11474 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
11475 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
11476 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
11477 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
11478 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
11479 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
11480 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
11481 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
11482 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
11483 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
11484 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
11485 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
11486 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
11487 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
11488 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
11489 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
11490 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
11491 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
11492 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
11493 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
11494 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
11495 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
11496 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
11497 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
11498 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
11499 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
11500 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
11501 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
11502 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
11503 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
11504 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
11505 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
11506 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
11507 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
11508 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
11509 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
11510 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
11511 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
11512 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
11513 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
11514 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
11515 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
11516 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
11517 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
11518 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
11519 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
11520 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
11521 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
11522 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
11523 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
11524 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
11525 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
11526 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
11527 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
11528 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
11529 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
11530 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
11531 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
11532 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
11533 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
11534 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
11535 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
11536 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
11537 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
11538 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
11539 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
11540 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
11541 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
11542 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
11543 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
11544 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
11545 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
11546 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
11547 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
11548 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
11549 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
11550 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
11551 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
11552 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
11553 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
11554 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
11555 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
11556 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
11557 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
11558 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
11559 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
11560 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
11561 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
11562 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
11563 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
11564 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
11565 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
11566 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
11567 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
11568 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
11569 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
11570 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
11571 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
11572 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
11573 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
11574 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
11575 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
11576 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
11577 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
11578 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
11579 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
11580 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
11581 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
11582 par-endh.adb par-labl.adb par-load.adb par-prag.adb
11583 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
11584 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
11585 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
11586 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
11587 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
11588 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
11589 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
11590 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
11591 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
11592 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
11593 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
11594 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
11595 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
11596 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
11597 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
11598 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
11599 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
11600 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
11601 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
11602 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
11603 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
11604 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
11605 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
11606 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
11607 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
11608 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
11609 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
11610 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
11611 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
11612 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
11613 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
11614 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
11615 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
11616 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
11617 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
11618 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
11619 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
11620 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
11621 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
11622 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
11623 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
11624 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
11625 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
11626 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
11627 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
11628 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
11629 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
11630 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
11631 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
11632 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
11633 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
11634 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
11635 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
11636 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
11637 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
11638 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
11639 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
11640 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
11641 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
11642 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
11643 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
11644 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
11645 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
11646 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
11647 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
11648 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
11649 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
11650 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
11651 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
11652 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
11653 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
11654 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
11655 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
11656 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
11657 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
11658 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
11659 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
11660 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
11661 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
11662 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
11663 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
11664 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
11665 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
11666 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
11667 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
11668 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
11669 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
11670 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
11671 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
11672 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
11673 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
11674 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
11675 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
11676 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
11677 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
11678 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
11679 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
11680 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
11681 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
11682 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
11683 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
11684 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
11685 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
11686 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
11687 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
11688 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
11689 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
11690 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
11691 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
11692 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
11693 stringt.ads stringt.h style.adb style.ads stylesw.adb
11694 stylesw.ads switch.adb switch.ads sysdep.c system.ads
11695 table.adb table.ads targparm.adb targparm.ads targtyps.c
11696 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
11697 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
11698 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
11699 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
11700 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
11701 usage.ads utils.c utils2.c validsw.adb validsw.ads
11702 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
11703 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
11704 xtreeprs.adb: Correct statements in comments about maintainership
11707 2002-09-23 Zack Weinberg <zack@codesourcery.com>
11709 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
11710 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
11711 * gnatvsn.ads: Gnat_Version_String is now a function.
11712 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
11713 copy the C version_string into a String and return it.
11714 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
11715 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
11716 Remove pragma Ident (Gnat_Version_String). If this was the
11717 sole use of package Gnatvsn, remove the with statement too.
11718 * gnat1drv.adb: Tweak -gnatv output.
11720 2002-09-17 Richard Henderson <rth@redhat.com>
11722 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
11723 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
11724 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11725 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11726 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
11727 and real_2expN instead of a loop.
11728 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
11729 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
11731 2002-08-25 Andre Leis <a.leis@gmx.net>
11732 David Billinghurst (David.Billinghurst@riotinto.com>
11734 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
11736 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11738 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
11739 Remove $(CONFIG_H) dependency.
11741 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
11743 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
11745 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11747 * adadecode.c (ada_demangle): Use xstrdup in lieu of
11749 * misc.c (gnat_decode_option): Likewise.
11751 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
11753 * make.adb (Add_Switch): Make Generic_Position a procedure. The
11754 function approach did not work well because of a side effect (the
11755 function call could reallocate the table which was being indexed
11756 using its result). Fixes ada/4851. [RESURRECTED]
11758 2002-07-01 Roger Sayle <roger@eyesopen.com>
11760 * ada/utils.c (builtin_function): Accept an additional parameter.
11762 2002-06-28 Andreas Jaeger <aj@suse.de>
11765 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
11768 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11770 * Makefile.in (SHELL): Set to @SHELL@.
11772 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11774 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
11775 array size calculation.
11777 2002-06-04 Andreas Jaeger <aj@suse.de>
11779 * Make-lang.in (gnatbind): Readd rule that has been lost in last
11782 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
11784 Merge from pch-branch:
11786 * config-lang.in (gtfiles): Add ada-tree.h.
11787 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
11788 (SET_TYPE_MODULUS): New.
11789 (SET_TYPE_INDEX): New.
11790 (SET_TYPE_DIGITS_VALUE): New.
11791 (SET_TYPE_RM_SIZE): New.
11792 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
11793 (SET_TYPE_ADA_SIZE): New.
11794 (SET_TYPE_ACTUAL_BOUNDS): New.
11795 (SET_DECL_CONST_CORRESPONDING_VAR): New.
11796 (SET_DECL_ORIGINAL_FIELD): New.
11797 (TREE_LOOP_ID): Correct typo.
11798 * decl.c: Use new macros.
11799 * utils.c: Include debug.h, use new macros.
11800 * utils2.c: Use new macros.
11802 * ada-tree.h: Update all macros for new tree description.
11803 (struct tree_loop_id): New.
11804 (union lang_tree_node): New.
11805 (struct lang_decl): New.
11806 (struct lang_type): New.
11807 * misc.c (gnat_mark_tree): Delete.
11808 (LANG_HOOKS_MARK_TREE): Delete.
11809 * trans.c (tree_transform): No longer any need to cast
11812 * utils.c (struct language_function): New dummy structure.
11814 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
11815 (misc.o): Likewise.
11816 (utils.o): Likewise; also gtype-ada.h.
11817 * Make-lang.in (gnat1): Add dependency on s-gtype.
11818 (gnatbind): Add dependency on $(CONFIG_H).
11819 * utils.c: Correct last #include.
11820 (stuct e_stack): Remove unnecessary 'static'.
11821 (mark_e_stack): Remove unused prototype.
11823 * scn-nlit.adb: Remove whitespace after version number to
11824 keep lines under 80 chars.
11825 * snames.adb: Likewise.
11826 * treepr.ads: Likewise.
11828 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
11829 (misc.o): Likewise.
11830 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
11831 * config-lang.in (gtfiles): New.
11832 * decl.c: Use gengtype for roots.
11833 * gigi.h: Use gengtype for roots.
11834 * trans.c: Use gengtype for roots.
11835 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
11837 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
11839 * misc.c (gnat_init): Adjust setting of internal_error_function.
11841 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
11843 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
11844 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11845 gnat_ug_wnt.texi: Regenerate.
11847 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
11849 * 5ntaprop.adb (with System.OS_Primitives): Remove.
11851 * cstreams.c (max_path_len): Move from here ...
11852 * adaint.c (__gnat_max_path_len): ... to here.
11853 * adaint.c (__gnat_max_path_len): Declare.
11854 * g-dirope.adb (Max_Path): Adjust.
11855 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
11856 * i-cstrea.ads (max_path_len): Adjust.
11857 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
11858 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
11860 * Makefile.in, Make-lang.in: Documentation is now built in
11861 Make-lang.in. Store Info and generated Texinfo files in the
11863 * gnat_ug.texi: Remove CVS keywords, correct version number.
11864 Set file name correctly.
11866 * gnat_ug_*.texi: Add.
11867 * .cvsignore: Ignore generated Texinfo files.
11869 2002-05-30 Zack Weinberg <zack@codesourcery.com>
11871 * ada.h: Add MI guard macro.
11872 (SUBTYPE): Define constants with an anonymous enum, not static
11874 (IN): Cast constants to appropriate type before use.
11876 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
11878 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
11881 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11883 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
11884 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
11885 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
11886 (ALL_ADA_CFLAGS): Likewise.
11887 (ADA_INCLUDES): Likewise.
11888 Adapt for new working dir.
11889 (GNATBIND): Use Makefile.in version.
11890 (.SUFFIXES): Copy from Makefile.in.
11891 (ada-warn): Define.
11892 (.adb.o, .ads.o): Copy from Makefile.in.
11893 Added $(OUTPUT_OPTION).
11894 (GNAT1_C_OBJS): Moved from Makefile.in.
11895 Prefix with ada subdir.
11896 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
11897 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
11898 Adapt for new working dir.
11899 (EXTRA_GNATBIND_OBJS): Likewise.
11900 (ADA_BACKEND): Moved from Makefile.in.
11901 Renamed to avoid conflict with global BACKEND.
11903 (TARGET_ADA_SRCS): Moved from Makefile.in.
11904 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
11906 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
11907 (ada_extra_files): Moved from Makefile.in.
11908 Prefix with ada subdir.
11909 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
11910 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
11911 (ada/nmake.ads): Likewise.
11912 (update-sources): Moved from Makefile.in.
11913 Prefix with ada subdir.
11914 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
11915 (ADA_TREE_H): Likewise.
11916 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
11917 (ada/memtrack.o): Likewise.
11918 (ada/adadecode.o): Likewise.
11919 Update dependencies.
11920 (ada/adaint.o): New.
11921 (ada/argv.o): Moved from Makefile.in.
11922 Prefix with ada subdir.
11923 Update dependencies.
11924 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
11925 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
11926 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
11927 Prefix with ada subdir.
11928 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
11929 (GNAT DEPENDENCIES): Regenerate.
11930 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
11931 toplevel Makefile.in.
11932 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
11933 (TARGET_ADA_SRCS): Removed.
11934 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
11935 (GNATBIND_OBJS): Likewise.
11936 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
11937 (BACKEND): Removed.
11938 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
11939 (TREE_H): Likewise.
11940 (ada_extra_files): Likewise.
11941 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
11942 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
11943 (update-sources): Likewise.
11944 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
11945 (ADA_TREE_H): Likewise.
11946 (adadecoce.o): Likewise.
11947 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
11948 (GNAT DEPENDENCIES): Likewise.
11950 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11952 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
11953 * Makefile.in: Likewise.
11955 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11957 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
11958 Restore $(CONFIG_H) and prefix.o dependencies.
11959 (ada.stage[1-4]): Depend on stage?-start.
11961 * Makefile.in (b_gnatb.c): Depend on interfac.o.
11963 2002-05-02 Jim Wilson <wilson@redhat.com>
11965 * utils.c (finish_record_type): Change record_size to record_type.
11967 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11969 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
11970 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
11971 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
11973 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11975 * misc.c (gnat_parse_file): Update.
11977 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
11979 * misc.c (gnat_init): Don't set lang_attribute_common.
11981 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
11983 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
11985 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
11987 * gnat_ug.texi: New file.
11989 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
11990 instead of gfdl.texi
11992 * xgnatug.adb, ug_words: New files.
11994 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
11995 gnat_rm and gnat-style manuals.
11997 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
11999 * gigi.h (incomplete_type_error): Remove.
12000 * utils.c (incomplete_type_error): Remove.
12002 2002-04-16 Mark Mitchell <mark@codesourcery.com>
12004 * trans.c (tree_transform): Add has_scope argument to
12005 expand_start_stmt_expr.
12007 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
12009 * gigi.h (truthvalue_conversion): Rename.
12010 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
12011 * trans.c (tree_transform): Update.
12012 * utils2.c (truthvalue_conversion): Rename, update.
12013 (build_binary_op, build_unary_op): Update.
12015 2002-04-04 Laurent Guerby <guerby@acm.org>
12017 * make.adb: Implement -margs, remove restriction about file name placement.
12018 * makeusg.adb: Documentation update.
12019 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
12020 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
12022 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
12024 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
12025 (builtin_function): Similarly.
12027 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12029 * decl.c (gnat_to_gnu_entity): Update.
12030 * gigi.h (mark_addressable): Rename.
12031 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12032 * trans.c (tree_transform): Update.
12033 * utils.c (create_var_decl): Update.
12034 * util2.c (build_binary_op, build_unary_op,
12035 fill_vms_descriptor): Update.
12036 (mark_addressable): Rename, update.
12038 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12040 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
12042 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12043 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12044 * trans.c (tree_transform, convert_with_check): Update.
12045 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
12048 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
12050 * gigi.h (finish_incomplete_decl): Rename.
12051 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
12052 * utils.c (gnat_init_decl_processing): Don't set hook.
12053 (finish_incomplete_decl): Rename.
12055 2002-03-29 Andreas Schwab <schwab@suse.de>
12057 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
12060 2001-03-28 Robert Dewar <dewar@gnat.com>
12063 (Remove_Checks): New procedure
12066 (Remove_Checks): New procedure
12069 Use new Duplicate_Subexpr functions
12070 (Duplicate_Subexpr_No_Checks): New procedure
12071 (Duplicate_Subexpr_No_Checks_Orig): New procedure
12072 (Duplicate_Subexpr): Restore original form (checks duplicated)
12073 (Duplicate_Subexpr): Call Remove_Checks
12076 (Duplicate_Subexpr_No_Checks): New procedure
12077 (Duplicate_Subexpr_No_Checks_Orig): New procedure
12078 Add 2002 to copyright notice
12080 * sem_util.adb: Use new Duplicate_Subexpr functions
12083 (Eval_Indexed_Component): This is the place to call
12084 Constant_Array_Ref and to replace the value. We simply merge
12085 the code of this function in here, since it is now no longer
12086 used elsewhere. This fixes the problem of the back end not
12087 realizing we were clever enough to see that this was
12089 (Expr_Val): Remove call to Constant_Array_Ref
12090 (Expr_Rep_Val): Remove call to Constant_Array_Ref
12092 (Constant_Array_Ref): Deal with string literals (patch
12093 suggested by Zack Weinberg on the gcc list)
12095 2001-03-28 Ed Schonberg <schonber@gnat.com>
12097 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
12098 Duplicate_Subexpr_Move_Checks.
12100 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
12101 Duplicate_Subexpr_Move_Checks.
12103 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
12104 value of array exists before retrieving it (it may a private
12105 protected component in a function).
12107 2002-03-28 Geert Bosch <bosch@gnat.com>
12109 * prj-pp.adb : New file.
12111 * prj-pp.ads : New file.
12113 2002-03-28 Andreas Jaeger <aj@suse.de>
12115 * Makefile.in (stamp-sdefault): Fix path for Makefile.
12117 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
12119 * misc.c (gnat_expand_expr): Move prototype.
12121 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12123 * misc.c (insert_default_attributes): Remove.
12125 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12127 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12128 (gnat_init): Don't set hook.
12129 (gnat_expand_expr): Fix prototype.
12131 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12133 * misc.c (ggc_p): Remove.
12135 2002-03-27 Geert Bosch <bosch@gnat.com>
12137 * prj-makr.ads, prj-makr.adb : New files.
12139 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
12141 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
12142 (lang_mark_tree): Make static, rename.
12144 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
12146 * misc.c (maybe_build_cleanup): Remove.
12148 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12150 * gigi.h (yyparse): Remove.
12152 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
12154 * gnat_rm.texi: Sync with ACT version.
12155 (From Ben Brosgol <brosgol@gnat.com>)
12157 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
12159 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
12160 (gnat_init): Remove old hook.
12162 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
12164 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
12165 (yyparse): Rename gnat_parse_file.
12167 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
12169 Delete all lines containing "$Revision:".
12170 * xeinfo.adb: Don't look for revision numbers.
12171 * xnmake.adb: Likewise.
12172 * xsinfo.adb: Likewise.
12173 * xsnames.adb: Likewise.
12174 * xtreeprs.adb: Likewise.
12176 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12178 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
12179 gnat_tree_code_name): Delete.
12180 (tree_code_type, tree_code_length, tree_code_name): Define.
12181 (gnat_init): Don't try to copy into the various tree_code
12184 2002-03-11 Richard Henderson <rth@redhat.com>
12186 * Makefile.in (.NOTPARALLEL): Add fake tag.
12188 2002-03-07 Geert Bosch <bosch@gnat.com>
12190 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
12191 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
12192 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
12193 switch-m.adb, switch-m.ads : New files.
12195 2002-03-07 Geert Bosch <bosch@gnat.com>
12197 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
12198 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
12199 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
12200 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
12201 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
12202 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
12203 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
12204 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
12205 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
12206 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
12207 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
12208 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
12209 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
12210 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
12211 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
12212 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
12213 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
12214 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
12215 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
12216 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
12217 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
12218 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
12219 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
12220 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
12221 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
12222 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
12223 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
12224 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
12225 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
12226 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
12227 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
12228 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
12229 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
12230 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
12231 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
12232 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
12233 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
12234 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
12235 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
12236 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
12237 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
12238 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
12239 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
12240 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
12241 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
12242 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
12243 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
12244 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
12245 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
12246 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
12247 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
12248 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
12249 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
12250 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
12251 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
12252 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
12253 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
12254 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
12255 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
12256 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
12257 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
12258 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
12259 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
12260 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
12261 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
12262 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
12263 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
12264 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
12265 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
12266 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
12267 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
12268 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
12269 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
12270 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
12271 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
12272 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
12273 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
12274 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
12275 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
12276 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
12277 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
12278 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
12279 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
12280 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
12281 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
12282 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
12283 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
12284 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
12285 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
12286 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
12287 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
12288 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
12289 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
12290 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
12291 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
12292 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
12293 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
12295 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
12296 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
12297 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
12298 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
12300 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
12301 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
12303 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
12304 to mdll-fil.ad[bs] and mdll-util.ad[bs]
12306 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
12307 from mdllfile.ad[bs] and mdlltool.ad[bs]
12309 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12311 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
12312 lieu of explicit sizeof/sizeof.
12314 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
12316 * misc.c (copy_lang_decl): Remove.
12318 2002-02-27 Zack Weinberg <zack@codesourcery.com>
12320 * misc.c: Delete traditional-mode-related code copied from the
12321 C front end but not used, or used only to permit the compiler
12324 2002-02-07 Richard Henderson <rth@redhat.com>
12326 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
12327 * adaint.h (__gnat_to_gm_time): Update prototype.
12329 2002-01-30 Richard Henderson <rth@redhat.com>
12331 * trans.c (tree_transform) [N_Loop_Statement]: Use
12332 expand_exit_loop_top_cond.
12334 2001-12-23 Richard Henderson <rth@redhat.com>
12336 * utils.c (end_subprog_body): Push GC context around
12337 rest_of_compilation for nested functions.
12339 2001-12-23 Richard Henderson <rth@redhat.com>
12341 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
12343 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
12345 * gnat-style.texi (Declarations and Types): Remove ancient style
12346 rule which was mandated by code generation issues.
12348 * gnat-style.texi (header): Add @dircategory, @direntry.
12349 (title page): Remove date.
12350 (general) Add @./@: where approriate, and two spaces after the
12351 full stop at the end of a sentence. Use @samp markup when
12352 referring concrete lexical entities (keywords, attribute names
12353 etc.), and @syntax for ARM grammar elements. Use @r for English
12354 text in comments. Use @emph for emphasis. Change "if-statements"
12355 etc. to "if statements" (without @samp). Break long lines. Make
12356 casing of section names consistent.
12357 (Identifiers): Use @samp markup for variable names.
12358 (Comments): Use @samp markup for comment characters. Line-end
12359 comments may follow any Ada code, not just statements. Fix
12360 misspelling of "Integer" as "integer".
12361 (Loop statements): Do not use variable name "I", use "J".
12362 (Subprogram Declarations): Document alignment.
12363 (Subprogram Bodies, Block statements): Document empty line before
12366 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
12368 * make.adb (Add_Switch): Make Generic_Position a procedure. The
12369 function approach did not work well because of a side effect (the
12370 function call could reallocate the table which was being indexed
12371 using its result). Fixes ada/4851.
12373 2001-12-19 Robert Dewar <dewar@gnat.com>
12375 * bindgen.adb: Minor reformatting
12377 * cstand.adb: Minor reformatting
12379 * fmap.adb: Minor reformatting
12380 Change name from Add for Add_To_File_Map (Add is much too generic)
12381 Change Path_Name_Of to Mapped_Path_Name
12382 Change File_Name_Of to Mapped_File_Name
12383 Fix copyright dates in header
12386 Change name from Add for Add_To_File_Map (Add is much too generic)
12387 Change Path_Name_Of to Mapped_Path_Name
12388 Change File_Name_Of to Mapped_File_Name
12389 Fix copyright dates in header
12391 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
12392 Add use clause for Fmap.
12394 * make.adb: Minor reformatting
12396 * osint.adb: Minor reformatting. Change of names in Fmap.
12397 Add use clause for Fmap.
12399 * prj-env.adb: Minor reformatting
12401 * prj-env.ads: Minor reformatting
12403 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
12404 error found (there were odd exceptions to this general rule in
12405 -gnatec/-gnatem processing)
12407 2001-12-19 Olivier Hainque <hainque@gnat.com>
12409 * raise.c (__gnat_eh_personality): Exception handling personality
12410 routine for Ada. Still in rough state, inspired from the C++ version
12411 and still containing a bunch of debugging artifacts.
12412 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
12413 inspired from the C++ library.
12415 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
12416 exception handling integration.
12418 2001-12-19 Arnaud Charlet <charlet@gnat.com>
12420 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
12421 (HIE_SOURCES): Add s-secsta.ad{s,b}.
12422 (HIE_OBJS): Add s-fat*.o
12423 (RAVEN_SOURCES): Remove files that are no longer required. Add
12424 interrupt handling files.
12425 (RAVEN_MOD): Removed, no longer needed.
12427 2001-12-19 Robert Dewar <dewar@gnat.com>
12429 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
12430 Add 2001 to copyright date
12432 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
12433 need to force universal inlining for these cases.
12435 2001-12-19 Arnaud Charlet <charlet@gnat.com>
12437 * s-taprob.adb: Minor clean ups so that this unit can be used in
12440 * exp_ch7.adb: Allow use of secondary stack in HI mode.
12441 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
12443 2001-12-19 Vincent Celier <celier@gnat.com>
12445 * prj-tree.ads (Project_Node_Record): Add comments for components
12446 Pkg_Id and Case_Insensitive.
12448 2001-12-19 Pascal Obry <obry@gnat.com>
12450 * g-socket.adb: Minor reformatting. Found while reading code.
12452 2001-12-19 Robert Dewar <dewar@gnat.com>
12454 * prj-tree.ads: Minor reformatting
12456 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
12458 * config-lang.in (diff_excludes): Remove.
12460 2001-12-17 Ed Schonberg <schonber@gnat.com>
12462 * sem_res.adb (Resolve_Selected_Component): do not generate a
12463 discriminant check if the selected component is a component of
12464 the argument of an initialization procedure.
12466 * trans.c (tree_transform, case of arithmetic operators): If result
12467 type is private, the gnu_type is the base type of the full view,
12468 given that the full view itself may be a subtype.
12470 2001-12-17 Robert Dewar <dewar@gnat.com>
12472 * sem_res.adb: Minor reformatting
12474 * trans.c (tree_transform, case N_Real_Literal): Add missing third
12475 parameter in call to Machine (unknown horrible effects from this
12478 * urealp.h: Add definition of Round_Even for call to Machine
12479 Add third parameter for Machine
12481 2001-12-17 Ed Schonberg <schonber@gnat.com>
12483 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
12484 predefined units in No_Run_Time mode.
12486 2001-12-17 Richard Kenner <kenner@gnat.com>
12488 * misc.c (insn-codes.h): Now include.
12490 2001-12-17 Olivier Hainque <hainque@gnat.com>
12492 * a-except.adb: Preparation work for future integration of the GCC 3
12493 exception handling mechanism
12494 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
12495 to factorize previous code sequences and make them externally callable,
12496 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
12497 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
12498 Use the new notification routines.
12500 2001-12-17 Emmanuel Briot <briot@gnat.com>
12502 * prj-tree.ads (First_Choice_Of): Document the when others case
12504 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12506 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
12507 HI-E mode, in order to support Ravenscar profile properly.
12509 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
12510 mode on 32 bits targets.
12512 2001-12-17 Vincent Celier <celier@gnat.com>
12514 * fmap.adb: Initial version.
12516 * fmap.ads: Initial version.
12518 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
12519 If search is successfully done, add to mapping.
12521 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
12524 (Gnatmake): Add new local variable Mapping_File_Name.
12525 Create mapping file when using project file(s).
12526 Delete mapping file before exiting.
12528 * opt.ads (Mapping_File_Name): New variable
12530 * osint.adb (Find_File): Use path name found in mapping, if any.
12532 * prj-env.adb (Create_Mapping_File): New procedure
12534 * prj-env.ads (Create_Mapping_File): New procedure.
12536 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
12539 * usage.adb: Add entry for new switch -gnatem.
12541 * Makefile.in: Add dependencies for fmap.o.
12543 2001-12-17 Ed Schonberg <schonber@gnat.com>
12545 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
12546 is a package instantiation rewritten as a package body.
12547 (Install_Withed_Unit): Undo previous change, now redundant.
12549 2001-12-17 Gary Dismukes <dismukes@gnat.com>
12552 (Compute_Length): Move conversion to Unsigned to callers.
12553 (Get_Max_Size): Convert Len expression to Unsigned after calls to
12554 Compute_Length and Determine_Range.
12555 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
12556 Compute_Length and Determine_Range.
12557 Above changes fix problem with length computation for supernull arrays
12558 where Max (Len, 0) wasn't getting applied due to the Unsigned
12559 conversion used by Compute_Length.
12561 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12564 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
12565 System.Secondary_Stack.
12566 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
12568 Remove unused entity RE_Exception_Data.
12570 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
12572 * rident.ads (No_Secondary_Stack): New restriction.
12574 2001-12-17 Joel Brobecker <brobecke@gnat.com>
12576 * gnat_rm.texi: Fix minor typos. Found while reading the section
12577 regarding "Bit_Order Clauses" that was sent to a customer.
12578 Very interesting documentation!
12580 2001-12-17 Robert Dewar <dewar@gnat.com>
12582 * sem_case.adb (Choice_Image): Avoid creating improper character
12583 literal names by using the routine Set_Character_Literal_Name. This
12584 fixes bombs in certain error message cases.
12586 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12588 * a-reatim.adb: Minor reformatting.
12590 2001-12-17 Ed Schonberg <schonber@gnat.com>
12592 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
12593 case where the formal is an extension of another formal in the current
12594 unit or in a parent generic unit.
12596 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12598 * s-tposen.adb: Update comments. Minor reformatting.
12599 Minor code clean up.
12601 * s-tarest.adb: Update comments. Minor code reorganization.
12603 2001-12-17 Gary Dismukes <dismukes@gnat.com>
12605 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
12608 2001-12-17 Robert Dewar <dewar@gnat.com>
12610 * exp_attr.adb: Minor reformatting
12612 2001-12-17 Ed Schonberg <schonber@gnat.com>
12614 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
12615 derivations nested within a child unit: verify that the parent
12616 type is declared in an outer scope.
12618 2001-12-17 Robert Dewar <dewar@gnat.com>
12620 * sem_ch12.adb: Minor reformatting
12622 2001-12-17 Ed Schonberg <schonber@gnat.com>
12624 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
12625 warning if current unit is a predefined one, from which bodies may
12628 2001-12-17 Robert Dewar <dewar@gnat.com>
12630 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
12631 Fix header format. Add 2001 to copyright date.
12633 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
12634 which caused CE during compilation if checks were enabled.
12636 2001-12-17 Vincent Celier <celier@gnat.com>
12639 (Switches_Of): New function
12640 (Test_If_Relative_Path): New procedure
12641 (Add_Switches): Use new function Switches_Of
12642 (Collect_Arguments_And_Compile): Use new function Switches_Of.
12643 When using a project file, test if there are any relative
12644 search path. Fail if there are any.
12645 (Gnatmake): Only add switches for the primary directory when not using
12646 a project file. When using a project file, change directory to the
12647 object directory of the main project file. When using a project file,
12648 test if there are any relative search path. Fail if there are any.
12649 When using a project file, fail if specified executable is relative
12650 path with directory information, and prepend executable, if not
12651 specified as an absolute path, with the exec directory. Make sure
12652 that only one -o switch is transmitted to the linker.
12654 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
12657 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
12658 when using a non standard naming scheme.
12659 (Check_Ada_Naming_Scheme): Make sure that error messages
12660 do not raise exceptions.
12661 (Is_Illegal_Append): Return True if there is no dot in the suffix.
12662 (Language_Independent_Check): Check the exec directory.
12664 * prj.adb (Project_Empty): Add new component Exec_Directory
12667 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
12668 (Project_Data): Add component Exec_Directory
12670 * snames.adb: Updated to match snames.ads revision 1.215
12672 * snames.ads: Added Exec_Dir
12674 2001-12-17 Robert Dewar <dewar@gnat.com>
12676 * make.adb: Minor reformatting
12678 * prj-nmsc.adb: Minor reformatting
12680 * snames.adb: Updated to match snames.ads
12682 * snames.ads: Alphebetize entries for project file
12684 2001-12-17 Ed Schonberg <schonber@gnat.com>
12686 * trans.c (process_freeze_entity): Do nothing if the entity is a
12687 subprogram that was already elaborated.
12689 2001-12-17 Richard Kenner <kenner@gnat.com>
12691 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
12692 and Esize if object is referenced via pointer.
12694 2001-12-17 Ed Schonberg <schonber@gnat.com>
12696 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
12697 is discrete before analyzing choices.
12699 2001-12-17 Joel Brobecker <brobecke@gnat.com>
12701 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
12702 containing the name of the Ada Main Program. This string is mainly
12703 intended for the debugger.
12704 (Gen_Output_File_C): Do the equivalent change when generating a C file.
12706 2001-12-17 Robert Dewar <dewar@gnat.com>
12708 * ali.adb: Set new Dummy_Entry field in dependency entry
12710 * ali.ads: Add Dummy_Entry field to source dependency table
12712 * bcheck.adb (Check_Consistency): Ignore dummy D lines
12714 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
12716 * lib-writ.ads: Document dummy D lines for missing files.
12718 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
12720 2001-12-17 Robert Dewar <dewar@gnat.com>
12722 * ali.adb: Type reference does not reset current file.
12724 * ali.adb: Recognize and scan renaming reference
12726 * ali.ads: Add spec for storing renaming references.
12728 * lib-xref.ads: Add documentation for handling of renaming references
12730 * lib-xref.adb: Implement output of renaming reference.
12733 (Determine_Range): Document local variables
12734 (Determine_Range): Make sure Hbound is initialized. It looks as though
12735 there could be a real problem here with an uninitialized reference
12736 to Hbound, but no actual example of failure has been found.
12738 2001-12-17 Laurent Pautet <pautet@gnat.com>
12741 Fix comment of Shutdown_Socket and Close_Socket. These functions
12742 should not fail silently because if they are called twice, this
12743 probably means that there is a race condition in the user program.
12744 Anyway, this behaviour is consistent with the rest of this unit.
12745 When an error occurs, an exception is raised with the error message
12746 as exception message.
12748 2001-12-17 Robert Dewar <dewar@gnat.com>
12750 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
12751 that it happens before modification of Sloc values for -gnatD.
12753 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
12754 so that it happens before modification of Sloc values for -gnatD.
12756 * switch.adb: Minor reformatting
12758 2001-12-15 Richard Henderson <rth@redhat.com>
12760 * sem_ch7.adb: Wrap comment.
12762 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
12764 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
12765 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
12766 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
12767 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
12768 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
12769 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
12770 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
12771 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
12772 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
12773 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
12774 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
12775 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
12776 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
12777 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
12778 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
12779 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
12780 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
12781 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
12782 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
12783 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
12784 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
12785 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
12786 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
12787 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
12790 2001-12-14 Vincent Celier <celier@gnat.com>
12792 * osint.adb(Create_Debug_File): When an object file is specified,
12793 put the .dg file in the same directory as the object file.
12795 2001-12-14 Robert Dewar <dewar@gnat.com>
12797 * osint.adb: Minor reformatting
12799 * lib-xref.adb (Output_Instantiation): New procedure to generate
12800 instantiation references.
12802 * lib-xref.ads: Add documentation of handling of generic references.
12804 * ali.adb (Read_Instantiation_Ref): New procedure to read
12805 instantiation references
12807 * ali.ads: Add spec for storing instantiation references
12809 * bindusg.adb: Minor reformatting
12811 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12813 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12815 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12817 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12821 Add 2001 to copyright date
12822 Add entry for Latin-5 (Cyrillic ISO-8859-5)
12824 2001-12-14 Matt Gingell <gingell@gnat.com>
12826 * adaint.c: mktemp is a macro on Lynx and can not be used as an
12829 2001-12-14 Richard Kenner <kenner@gnat.com>
12831 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
12832 if operand is CONSTRUCTOR.
12834 2001-12-14 Ed Schonberg <schonber@gnat.com>
12836 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
12837 before emiting check on right-hand side, so that exception information
12840 2001-12-14 Richard Kenner <kenner@gnat.com>
12842 * utils.c (create_var_decl): Throw away initializing expression
12843 if just annotating types and non-constant.
12845 2001-12-14 Vincent Celier <celier@gnat.com>
12847 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
12850 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
12852 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
12854 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
12856 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
12858 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
12860 * ChangeLog: Remove piece of diff output.
12862 2001-12-14 Geert Bosch <bosch@gnat.com>
12864 * config-lang.in: Update copyright notice
12866 * layout.adb: Remove commented out code.
12868 * mdllfile.ads: Update copyright notice. Fix header format.
12870 * sem_case.ads: Likewise.
12872 * sem_ch3.adb: Minor reformatting.
12874 2001-12-12 Geert Bosch <bosch@gnat.com>
12876 * freeze.ads: Update copyright date.
12878 * g-comlin.ads: Minor reformatting.
12880 * gnat-style.texi: Fix typo.
12882 2001-12-12 Geert Bosch <bosch@gnat.com>
12884 * einfo.h: Regenerate.
12886 2001-12-12 Ed Schonberg <schonber@gnat.com>
12888 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
12889 on known node types, rather than untyped fields. Further cleanups.
12891 2001-12-12 Robert Dewar <dewar@gnat.com>
12894 (Save_Entity_Descendant): Minor comment update.
12895 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
12896 of an N_Attribute_Reference node. As per note below, this does not
12897 eliminate need for Associated_Node in attribute ref nodes.
12898 (Associated_Node): Documentation explicitly mentions attribute
12899 reference nodes, since this field is used in such nodes.
12901 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
12903 2001-12-12 Robert Dewar <dewar@gnat.com>
12905 * s-stalib.adb: Add more comments on with statements being needed
12907 * par-ch12.adb: Minor reformatting
12909 * prj-dect.ads: Fix copyright header
12911 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
12912 inputs fit in 32 bits, but the result still overflows.
12914 * s-fatgen.ads: Minor comment improvement
12916 2001-12-12 Ed Schonberg <schonber@gnat.com>
12918 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
12919 formal derived type, look for an inherited component from the full
12920 view of the parent, if any.
12922 2001-12-12 Robert Dewar <dewar@gnat.com>
12924 * checks.ads (Apply_Alignment_Check): New procedure.
12926 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
12927 ensure that the alignment of objects with address clauses is
12928 appropriate, and raise PE if not.
12930 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
12931 Exp_Pakd.Known_Aligned_Enough
12933 * mdllfile.ads: Minor reformatting
12935 * mlib-fil.ads: Minor reformatting
12937 2001-12-12 Ed Schonberg <schonber@gnat.com>
12939 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
12940 fix to any component reference if enclosing record has non-standard
12943 2001-12-12 Vincent Celier <celier@gnat.com>
12945 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
12948 2001-12-12 Ed Schonberg <schonber@gnat.com>
12950 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
12953 2001-12-12 Robert Dewar <dewar@gnat.com>
12955 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
12957 2001-12-12 Emmanuel Briot <briot@gnat.com>
12959 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
12960 and it adds dependencies to system.io.
12962 2001-12-12 Pascal Obry <obry@gnat.com>
12964 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
12967 2001-12-11 Ed Schonberg <schonber@gnat.com>
12969 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
12970 that is the parent of other generics, the instance body replaces the
12971 instance node. Retrieve the instance of the spec, which is the one
12972 that is visible in clients and within the body.
12974 2001-12-11 Vincent Celier <celier@gnat.com>
12976 * gnatmain.adb: Initial version.
12978 * gnatmain.ads: Initial version.
12980 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
12982 * snames.adb: Updated to match snames.ads.
12984 * snames.ads: Added Gnatstub.
12986 2001-12-11 Vincent Celier <celier@gnat.com>
12988 * prj-attr.adb (Initialization_Data): Change name from
12989 Initialisation_Data.
12991 2001-12-11 Emmanuel Briot <briot@gnat.com>
12993 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
12994 + and * applied to backslashed expressions like \r.
12996 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
12998 * g-os_lib.ads: String_List type added, Argument_List type is now
12999 subtype of String_List.
13001 2001-12-11 Robert Dewar <dewar@gnat.com>
13003 * g-os_lib.ads: Change copyright to FSF
13004 Add comments for String_List type
13006 2001-12-11 Vincent Celier <celier@gnat.com>
13008 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
13009 string to the buffer).
13011 2001-12-11 Ed Schonberg <schonber@gnat.com>
13013 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
13016 * sem_attr.adb: Simplify previous fix for Address.
13017 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
13018 to avoid anomalies where the bound of the type appears to raise
13021 2001-12-11 Robert Dewar <dewar@gnat.com>
13023 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
13026 2001-12-11 Ed Schonberg <schonber@gnat.com>
13028 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
13029 renamed unit before checking for recursive instantiations.
13031 2001-12-11 Emmanuel Briot <briot@gnat.com>
13033 * prj.ads: Add comments for some of the fields.
13035 2001-12-11 Robert Dewar <dewar@gnat.com>
13037 * lib-xref.adb (Output_Refs): Don't output type references outside
13038 the main unit if they are not otherwise referenced.
13040 2001-12-11 Ed Schonberg <schonber@gnat.com>
13042 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
13043 code and diagnose additional illegal uses
13045 * sem_util.adb (Is_Object_Reference): An indexed component is an
13046 object only if the prefix is.
13048 2001-12-11 Vincent Celier <celier@gnat.com>
13050 * g-diopit.adb: Initial version.
13052 * g-diopit.ads: Initial version.
13055 (Expand_Path): Avoid use of Unbounded_String
13056 (Find, Wildcard_Iterator): Moved to child package Iteration
13058 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
13060 2001-12-11 Robert Dewar <dewar@gnat.com>
13062 * sem_attr.adb: Minor reformatting
13064 2001-12-11 Ed Schonberg <schonber@gnat.com>
13066 * sem_ch3.adb: Clarify some ???.
13068 2001-12-11 Robert Dewar <dewar@gnat.com>
13070 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
13071 Exp_Pakd.Known_Aligned_Enough
13073 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
13074 version is moved to Exp_Ch13.
13076 2001-12-11 Robert Dewar <dewar@gnat.com>
13078 * einfo.ads: Minor reformatting
13080 * exp_ch5.adb: Add comment for previous.change
13082 * ali.adb: New interface for extended typeref stuff.
13084 * ali.ads: New interface for typeref stuff.
13086 * checks.adb (Apply_Alignment_Check): New procedure.
13088 * debug.adb: Add -gnatdM for modified ALI output
13090 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
13092 * lib-xref.adb: Extend generation of <..> notation to cover
13093 subtype/object types. Note that this is a complete rewrite,
13094 getting rid of the very nasty quadratic algorithm previously
13095 used for derived type output.
13097 * lib-xref.ads: Extend description of <..> notation to cover
13098 subtype/object types. Uses {..} for these other cases.
13099 Also use (..) for pointer types.
13101 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
13103 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
13104 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
13106 2001-12-11 Vincent Celier <celier@gnat.com>
13109 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
13110 Changed /BIND_ONLY to /ACTIONS=BIND
13111 Changed /LINK_ONLY to /ACTIONS=LINK
13113 2001-12-11 Ed Schonberg <schonber@gnat.com>
13115 * sem_ch8.adb (Find_Selected_Component): improved search for a
13116 candidate package in case of error.
13118 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
13119 chain back on scope stack before reinstalling use clauses.
13121 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
13122 is enabled, do not kill the code for the condition, to preserve
13125 2001-12-11 Robert Dewar <dewar@gnat.com>
13127 * checks.adb (Insert_Valid_Check): Apply validity check to expression
13128 of conversion, not to result of conversion.
13130 2001-12-11 Ed Schonberg <schonber@gnat.com>
13132 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
13133 before freezing parent. If the declarations are mutually recursive,
13134 an access to the current record type may be frozen before the
13135 derivation is complete.
13137 2001-12-05 Vincent Celier <celier@gnat.com>
13139 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
13140 -c /COMPILE_ONLY, -l /LINK_ONLY
13143 (Bind_Only): New Flag
13144 (Link_Only): New flag
13146 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
13149 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
13152 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
13153 (Gnatmake): Set the step flags. Only perform a step if the
13154 corresponding step flag is True.
13155 (Scan_Make_Arg): Reset the bind and link step flags when -u
13156 or -gnatc has been specified.
13158 2001-12-05 Ed Schonberg <schonber@gnat.com>
13160 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
13161 get bounds from right operand.
13163 * sem_eval.adb: Minor reformatting
13165 * exp_util.adb (Make_Literal_Range): use bound of literal rather
13166 than Index'First, its lower bound may be different from 1.
13168 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
13171 2001-12-05 Vincent Celier <celier@gnat.com>
13173 * prj-nmsc.adb Minor reformatting
13175 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
13176 set and libraries are not supported.
13178 2001-12-05 Ed Schonberg <schonber@gnat.com>
13180 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
13181 private view explicitly, so the back-end can treat as a global
13184 2001-12-05 Ed Schonberg <schonber@gnat.com>
13186 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
13187 unit, always replace instance node with new body, for ASIS use.
13189 2001-12-05 Vincent Celier <celier@gnat.com>
13191 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
13192 libraries are not supported and both attributes Library_Name and
13193 Library_Dir are specified.
13195 * prj-proc.adb (Expression): Set location of Result to location of
13198 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
13199 (prj-nmsc is now importing MLib.Tgt)
13201 * prj-proc.adb: Put the change indicated above that was forgotten.
13203 2001-12-05 Robert Dewar <dewar@gnat.com>
13205 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
13207 2001-12-05 Ed Schonberg <schonber@gnat.com>
13209 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
13210 constraint, introduce explicit subtype declaration and derive from it.
13212 * sem_ch3.adb: Minor reformatting
13214 2001-12-05 Robert Dewar <dewar@gnat.com>
13216 * checks.adb (Determine_Range): Increase cache size for checks.
13219 * exp_ch6.adb: Minor reformatting
13220 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
13221 a parameter whose root type is System.Address, since treating such
13222 subprograms as pure in the code generator is almost surely a mistake
13223 that will lead to unexpected results.
13225 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
13226 change handling of conversions.
13228 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
13230 2001-12-05 Ed Schonberg <schonber@gnat.com>
13232 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
13233 aggregate with static wrong size, attach generated Raise node to
13236 2001-12-05 Robert Dewar <dewar@gnat.com>
13238 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
13239 Fixes compilation abandoned bomb in B24009B.
13241 2001-12-05 Ed Schonberg <schonber@gnat.com>
13244 Document use of Associated_Node on Selected_Components.
13245 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
13246 to clarify use of untyped descendant fields.
13248 2001-12-05 Robert Dewar <dewar@gnat.com>
13250 * prj-dect.ads: Add ??? comment
13251 Add 2001 to copyright notice (was not done in after all)
13253 * prj-part.adb: Minor reformatting. Reword one awkward error message.
13255 * prj.ads: Minor reformatting throughout, and add some ??? comments
13257 * snames.ads: Minor reformatting
13259 2001-12-05 Geert Bosch <bosch@gnat.com>
13261 * snames.adb: Autoupdate
13263 2001-12-05 Vincent Celier <celier@gnat.com>
13265 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
13267 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
13269 * prj-env.adb: Minor comment changes (modifying -> extends).
13271 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
13273 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
13276 * prj.adb (Initialize): Change Modifying to Extends.
13278 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
13280 * prj.ads: Minor comment change (Modifying -> extending).
13282 * snames.ads: Change modifying to extends.
13284 2001-12-05 Robert Dewar <dewar@gnat.com>
13286 * sem_warn.adb: Remove stuff for conditionals, we are not going to
13289 * sem_warn.ads: Remove stuff for conditionals, we are not going to
13290 do this after all. Add 2001 to copyright notice
13292 2001-12-04 Geert Bosch <bosch@gnat.com>
13294 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
13296 2001-12-04 Robert Dewar <dewar@gnat.com>
13298 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
13299 location if we already have errors. Stops some cases of cascaded
13302 * errout.adb: Improve comment.
13304 2001-12-04 Robert Dewar <dewar@gnat.com>
13307 (Analyze_Formal_Type_Definition): Defend against Error.
13308 (Analyze_Formal_Subprogram): Defend against Error.
13310 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
13311 remove following semicolon if present. Removes cascaded error.
13313 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
13316 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
13317 exceptions equals 0.
13318 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
13319 Fixes PIWG E tests (which have to be run with -gnatL).
13321 2001-12-04 Robert Dewar <dewar@gnat.com>
13323 * einfo.ads: Minor reformatting
13325 2001-12-04 Ed Schonberg <schonber@gnat.com>
13327 * einfo.ads: Block_Node points to the identifier of the block, not to
13328 the block node itself, to preserve the link when the block is
13329 rewritten, e.g. within an if-statement with a static condition.
13331 * inline.adb (Cleanup_Scopes): recover block statement from block
13332 entity using new meaning of Block_Node.
13334 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
13335 identifier of block node, rather than to node itself.
13337 2001-12-04 Gary Dismukes <dismukes@gnat.com>
13340 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
13341 (Discrimify): Go back to setting the Etypes of the selected component
13342 because the Vname component does not exist at this point and will
13343 fail name resolution. Also set Analyzed.
13344 Remove with and use of Sem_Res.
13346 2001-12-04 Arnaud Charlet <charlet@gnat.com>
13348 * Makefile.in: (HIE_SOURCES): add s-fat*.
13350 2001-12-04 Robert Dewar <dewar@gnat.com>
13353 (Compile_Time_Known_Attribute): New procedure.
13354 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
13355 proper range check.
13357 2001-12-04 Ed Schonberg <schonber@gnat.com>
13359 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
13360 processing discriminants to diagnose illegal default values.
13362 2001-12-04 Ed Schonberg <schonber@gnat.com>
13364 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
13365 access discriminant within a type extension that constrains its
13366 parent discriminants.
13368 2001-12-04 Ed Schonberg <schonber@gnat.com>
13370 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
13371 is malformed, use instance of Any_Id to allow analysis to proceed.
13373 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
13374 type definition is illegal.
13375 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
13378 2001-12-04 Ed Schonberg <schonber@gnat.com>
13380 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
13383 2001-12-04 Robert Dewar <dewar@gnat.com>
13385 * errout.adb: Minor reformatting
13387 2001-12-04 Robert Dewar <dewar@gnat.com>
13389 * exp_util.adb: Minor reformatting from last change
13391 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
13392 which is a rewriting of an expression, traverse the original
13393 expression to remove warnings that may have been posted on it.
13395 2001-12-04 Ed Schonberg <schonber@gnat.com>
13397 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
13398 record that has other packed components.
13400 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
13402 * adaint.c: Minor cleanups.
13404 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
13406 * adaint.c: Do not use utime.h on vxworks.
13408 2001-12-04 Arnaud Charlet <charlet@gnat.com>
13410 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
13411 more confusion than it solves.
13413 2001-12-04 Geert bosch <bosch@gnat.com>
13415 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
13417 2001-12-04 Geert Bosch <bosch@gnat.com>
13419 * Makefile.in (update-sources): New target.
13420 For use by gcc_release script.
13422 2001-12-04 Ed Schonberg <schonber@gnat.com>
13424 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
13425 a configuration pragma, it is now legal wherever a pragma can appear.
13427 2001-12-04 Zack Weinberg <zack@codesourcery.com>
13429 * Makefile.in: Don't set ALL. Delete @cross_defines@,
13430 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
13431 is now @CROSS@ -DIN_GCC; update comment.
13433 2001-12-04 Robert Dewar <dewar@gnat.com>
13435 * einfo.adb (Has_Pragma_Pure_Function): New flag.
13436 Fix problem that stopped ceinfo from working
13438 * einfo.ads (Has_Pragma_Pure_Function): New flag.
13440 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
13442 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
13445 (File_Time_Stamp): New procedure.
13446 (Preserve_Mode): New boolean.
13447 (Write_Unit): Pass time stamp.
13448 Implement -p switch (preserve time stamps).
13450 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
13452 * gnatchop.adb: Do usage info for -p switch
13454 * adaint.h (__gnat_set_file_time_name): New function
13456 * adaint.c (__gnat_set_file_time_name): Implement
13458 * adaint.h: Fix typo
13460 2001-12-03 Robert Dewar <dewar@gnat.com>
13462 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
13463 have Associated_Node.
13465 2001-12-03 Robert Dewar <dewar@gnat.com>
13467 * prj-proc.adb: Minor reformatting
13469 * make.adb: Minor reformatting
13471 2001-12-03 Geert Bosch <bosch@gnat.com>
13473 * make.adb: Minor reformatting.
13475 2001-12-03 Robert Dewar <dewar@gnat.com>
13477 * sem_ch12.adb: Minor reformatting
13479 2001-12-03 Ed Schonberg <schonber@gnat.com>
13481 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
13482 push Standard on the stack before analyzing the instance body,
13483 in order to have a clean visibility environment.
13485 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
13487 2001-12-03 Ed Schonberg <schonber@gnat.com>
13489 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13490 instantiation of a body that contains an inlined body.
13492 2001-12-03 Ed Schonberg <schonber@gnat.com>
13495 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
13496 to prevent freezing within formal packages.
13497 (Freeze_Subprogram_Body): If body comes from another instance that
13498 appeared before its own body, place freeze node at end of current
13499 declarative part, to prevent a back-end crash.
13500 (Inline_Instance_Body): Handle properly a package instance within
13501 a subprogram instance that is a child unit.
13503 2001-12-01 Graham Stott <grahams@redhat.com>
13505 * Makefile.in (misc.o): Add missing $(srcdir) prefix
13506 and add optabs.h dependency.
13508 * misc.c: Include optabs.h
13509 (gnat_tree_code_type): Make static and const.
13510 (gnat_tree_code_length): Likewise.
13511 (gnat_tree_code_name): Likewise.
13512 (update_setjmp_buf): Obtain operands mode from insn_data.
13514 2001-11-29 Richard Henderson <rth@redhat.com>
13516 * init.c: Remove obsolete dwarf2 frame.h section.
13518 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
13520 * Make-lang.in (ada.generated-manpages): New dummy target.
13522 2001-11-29 Ed Schonberg <schonber@gnat.com>
13524 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
13525 into Command, an array conversion is illegal here. Uncovered by
13528 2001/11/28 Geert Bosch <bosch@gnat.com>
13530 * init.c: Minor whitespace changes.
13532 2001-11-28 Doug Rupp <rupp@gnat.com>
13534 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
13537 2001-11-28 Zack Weinberg <zack@codesourcery.com>
13539 * misc.c (gnat_expand_constant): Move declaration above
13540 definition of lang_hooks.
13541 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
13542 (gnat_init): lang_expand_constant no longer exists.
13544 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
13545 always have vprintf.
13546 (gnat_init): Always call set_internal_error_function.
13548 2001-11-27 Andreas Jaeger <aj@suse.de>
13550 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
13552 2001-11-27 Laurent Guerby <guerby@acm.org>
13554 * Makefile.in: Regenerate Ada dependencies.
13556 2001-11-26 Richard Henderson <rth@redhat.com>
13558 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
13559 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
13560 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
13562 2001-11-25 Laurent Guerby <guerby@acm.org>
13564 * sysdep.c (rts_get_*): Fix style.
13566 2001-11-19 Laurent Guerby <guerby@acm.org>
13568 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
13569 since it is of no apparent use and cause warnings.
13571 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
13573 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
13575 (gnat_init): Don't return NULL.
13576 (finish_parse): Remove.
13578 2001-11-17 Laurent Guerby <guerby@acm.org>
13580 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
13581 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
13582 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
13583 * lang-spec.h: Add missing struct field to silence warnings.
13584 * sysdep.c (rts_get_*): Provide K&R prototype.
13585 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
13586 * traceback.c (Unlock_Task, Lock_Task): Likewise.
13587 * tracebak.c (__gnat_backtrace): Remove unused variable.
13588 * utils.c (end_subprog_body): Move to K&R style.
13590 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13592 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
13594 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
13596 * misc.c (gnat_init): Change prototype. Include the
13597 functionality of the old init_parse and init_decl_processing.
13598 (gnat_init_decl_processing): New prototype.
13599 (init_parse): Remove.
13600 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
13602 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
13604 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
13605 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
13606 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
13607 set_yydebug): Remove.
13609 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
13611 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
13612 (struct lang_hooks): Constify.
13613 (language_string, lang_identify): Remove.
13614 * utils.c (init_decl_processing): Update.
13616 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13618 * misc.c: Include langhooks-def.h.
13619 * Makefile.in: Update.
13621 2001-10-30 Robert Dewar <dewar@gnat.com>
13624 (Check_Identifier): Rewrite circuit to be compatible with use of letters
13625 in the upper half of ASCII.
13626 (Check_Identifier): Minor reformatting
13628 2001-10-30 Geert Bosch <bosch@gnat.com>
13630 * (Associated_Node, Set_Associated_Node): Do not check for
13633 2001-10-30 Robert Dewar <dewar@gnat.com>
13635 * a-reatim.ads: Minor reformatting
13637 2001-10-30 Robert Dewar <dewar@gnat.com>
13639 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
13640 undocumented declarations.
13642 2001-10-30 Pascal Obry <obry@gnat.com>
13644 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
13645 to the binder and linker.
13648 * mdll.ads: Fix layout. Update copyright notice.
13650 * mdll.adb: Fix layout. Update copyright notice.
13652 2001-10-30 Robert Dewar <dewar@gnat.com>
13654 * usage.adb: Minor fix to output for -gnaty.
13656 2001-10-30 Ed Schonberg <schonber@gnat.com>
13658 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
13659 to accommodate all its possible values.
13661 * a-reatim.adb (Split): Special-case handling of Time_Span_First
13662 and of small absolute values of T.
13664 2001-10-30 Richard Kenner <kenner@gnat.com>
13666 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
13667 set_mem_attributes since not needed and wrong if RESULT if a REG;
13668 fixes ACATS failures.
13670 2001-10-30 Geert Bosch <bosch@gnat.com>
13672 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
13673 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
13675 2001-10-30 Robert Dewar <dewar@gnat.com>
13677 * bindusg.adb: Undocument -f switch.
13679 * gnatcmd.adb: Remove /FULL_ELABORATION.
13681 * opt.ads (Force_RM_Elaboration_Order): Document that this is
13684 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
13686 * gnatbind.adb: Minor update of warning msg.
13688 2001-10-30 Vincent Celier <celier@gnat.com>
13690 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
13691 for project file switches (-P (/PROJECT_FILE=),
13692 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
13695 2001-10-30 Geert Bosch <bosch@gnat.com>
13697 * decl.c: Minor whitespace fixes.
13699 2001-10-30 Richard Kenner <kenner@gnat.com>
13701 * utils2.c (build_allocator): Test for SIZE overflow in array case too
13703 2001-10-30 Geert Bosch <bosch@gnat.com>
13705 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
13706 Found due to GCC 3.0 warning of using uninitialized value.
13709 (Get_Max_Size): Use variant record for tracking value/expression.
13710 Makes logic clearer and prevents warnings for uninitialized variables.
13711 (Layout_Array_Type): Use variant record for tracking value/expression.
13712 Makes logic clearer and prevents warnings for uninitialized variables.
13714 2001-10-30 Robert Dewar <dewar@gnat.com>
13716 * lib.adb: Minor reformatting
13718 * s-taprop.ads: Minor reformatting
13720 2001-10-29 Laurent Guerby <guerby@acm.org>
13723 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
13725 (_gnat_error_handler): Make MSG const.
13727 2001-10-29 Richard Kenner <kenner@gnat.com>
13729 * sysdep.c: Fix localtime_r problem on LynxOS.
13730 Also remove #elif to avoid warnings.
13732 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
13735 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
13737 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
13739 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
13740 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
13741 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
13742 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
13743 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
13744 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
13745 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
13746 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
13747 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
13748 types.ads, urealp.adb: Fix spelling errors.
13750 2001-10-27 Laurent Guerby <guerby@acm.org>
13752 * trans.c (gigi): Fix non determinism leading to bootstrap
13753 comparison failures for debugging information.
13755 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
13757 * gnat_rm.texi: Use @./@: where appropriate.
13759 2001-10-26 Robert Dewar <dewar@gnat.com>
13761 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
13763 2001-10-26 Richard Kenner <kenner@gnat.com>
13765 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
13767 2001-10-26 Richard Kenner <kenner@gnat.com>
13769 * decl.c (validate_size): Modify message for bad size to avoid
13770 implication that compiler is modifying the size.
13772 2001-10-26 Robert Dewar <dewar@gnat.com>
13774 * prj-util.adb: Minor reformatting. Fix bad header format.
13776 2001-10-26 Robert Dewar <dewar@gnat.com>
13778 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
13780 * sinfo.ads: Clarify use of Associated_Node (documentation only).
13782 * sem_ch12.adb: Change Node4 to Associated_Node. Change
13783 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
13784 much more narrowly in places where needed. These are cleanups.
13786 2001-10-26 Joel Brobecker <brobecke@gnat.com>
13788 * 5zosinte.ads (null_pthread): new constant.
13791 (Initialize_TCB): Initialize thread ID to null, to be able to verify
13792 later that this field has been set.
13793 (Finalize_TCB): ditto.
13794 (Suspend_Task): Verify that the thread ID is not null before using it.
13795 (Resume_Task): ditto.
13798 (Resume_All_Tasks): Lock the tasks list before using it.
13799 (Suspend_All_Tasks): ditto.
13801 2001-10-26 Richard Kenner <kenner@gnat.com>
13803 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
13804 Make constant variant of designated type for Is_Access_Constant.
13805 Call update_pointer_to with main variant.
13807 * trans.c (process_freeze_entity, process_type):
13808 Call update_pointer_to on main variant.
13810 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
13811 If main variant, update all other variants.
13813 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
13816 2001-10-26 Robert Dewar <dewar@gnat.com>
13818 * prj-util.adb: Minor reformatting
13820 2001-10-26 Robert Dewar <dewar@gnat.com>
13822 * prj-util.adb: Minor reformatting
13824 2001-10-26 Robert Dewar <dewar@gnat.com>
13826 * prj-attr.adb: Minor reformatting throughout
13828 2001-10-26 Robert Dewar <dewar@gnat.com>
13830 * prj-attr.ads: Minor reformatting
13831 Add ??? comment (this whole spec has almost no comments)
13833 2001-10-26 Vincent Celier <celier@gnat.com>
13835 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
13836 ("//") that precede the drive letter on Interix.
13838 2001-10-26 Geert Bosch <bosch@gnat.com>
13840 * gnat_rm.texi: Add GNAT Reference Manual.
13842 2001-10-25 Robert Dewar <dewar@gnat.com>
13844 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
13845 is Error. Similar change for other renaming cases.
13847 2001-10-25 Robert Dewar <dewar@gnat.com>
13849 * s-atacco.ads: Add pragma Inline_Always for functions.
13850 Fix header format. Add copyright 2001
13852 2001-10-25 Ed Schonberg <schonber@gnat.com>
13854 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
13855 return Error rather than Empty so that analysis can proceed.
13857 2001-10-25 Ed Schonberg <schonber@gnat.com>
13859 * sem_util.adb (Enter_Name): better handling of cascaded error
13860 messages when a unit appears in its own context.
13862 2001-10-25 Ed Schonberg <schonber@gnat.com>
13864 * sem_util.adb (Defining_Entity): in case of error, attach created
13865 entity to specification, so that semantic analysis can proceed.
13867 2001-10-25 Robert Dewar <dewar@gnat.com>
13870 (Defining_Entity): Deal with Error.
13871 (Process_End_Label): Deal with bad end label for.
13873 2001-10-25 Ed Schonberg <schonber@gnat.com>
13875 * sem_elab.adb (Check_A_Call): refine message when call is in an
13876 instance but callee is not declared in the generic unit.
13878 2001-10-25 Ed Schonberg <schonber@gnat.com>
13880 * sem_elab.adb (Check_A_Call): check for renaming before finding the
13881 enclosing unit, which may already be different from the calling unit.
13883 2001-10-25 Geert Bosch <bosch@gnat.com>
13885 * 4gintnam.ads: fix header format.
13887 2001-10-25 Ed Schonberg <schonber@gnat.com>
13889 * sem_res.adb (Resolve_Call): if the call is actually an indexing
13890 operation on the result of a parameterless call, perform elaboration
13891 check after the node has been properly rewritten.
13893 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
13894 inlined within the generic tree, the defining identifier is not a
13897 2001-10-25 Ed Schonberg <schonber@gnat.com>
13899 * sem_res.adb (Resolve): special-case resolution of Null in an
13900 instance or an inlined body to avoid view conflicts.
13902 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
13903 compatibility by retrieving the access type of the generic copy.
13905 2001-10-25 Robert Dewar <dewar@gnat.com>
13908 (Analyze_Number_Declaration): Handle error expression.
13909 (Signed_Integer_Type_Declaration): Handle error bound.
13910 (Analyze_Subtype_Indication): Handle error range.
13912 * sem_util.adb (Get_Index_Bounds): Check for Error.
13914 2001-10-25 Robert Dewar <dewar@gnat.com>
13916 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
13917 in no run time mode.
13919 2001-10-25 Pascal Obry <obry@gnat.com>
13921 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
13922 mode case for ALLOC case.
13924 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
13925 all platforms. Improvement of last change.
13927 2001-10-25 Robert Dewar <dewar@gnat.com>
13929 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
13931 2001-10-25 Geert Bosch <bosch@gnat.com>
13933 * osint.adb (Is_Relative): Remove duplicate.
13935 2001-10-25 Pascal Obry <obry@gnat.com>
13937 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
13938 pathnames in UNIX and DOS style with drive letter.
13939 (Is_Relative): new routine.
13941 * osint.adb: Minor reformatting
13943 * osint.adb (Is_Relative): implementation using
13944 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
13946 2001-10-25 Pascal Obry <obry@gnat.com>
13948 * g-dirope.adb (Basename): correctly compute offset between the
13949 original Path and the translated one.
13951 * g-dirope.adb: (Base_Name): add some comments.
13953 2001-10-25 Robert Dewar <dewar@gnat.com>
13955 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
13956 in HIE mode, avoids compilation abandoned message
13958 * exp_imgv.adb: Correct typo in previous change
13960 * exp_imgv.adb: Correct typo in previous change (not my day!)
13962 2001-10-25 Robert Dewar <dewar@gnat.com>
13964 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
13966 2001-10-25 Pascal Obry <obry@gnat.com>
13968 * g-awk.ads: Move all pragma inlines next to the routine
13969 declarations. This is more uniform with other GNAT spec.
13971 2001-10-22 Geert Bosch <bosch@gnat.com>
13973 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
13975 2001-10-19 Geert Bosch <bosch@gnat.com>
13977 * Makefile.in (tools, gnattools): Remove gnatmem.
13979 2001-10-17 Richard Henderson <rth@redhat.com>
13981 * Makefile.in (misc.o): Depend on langhooks.h.
13982 * misc.c: Include it.
13983 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
13984 (LANG_HOOKS_DECODE_OPTION): New.
13985 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
13987 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
13989 * trans.c (tree_transform): Adjust to recent change in
13990 expand_asm_operands to implement named asm operands.
13992 2001-10-11 Ed Schonberg <schonber@gnat.com>
13994 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
13995 renaming of discriminant for mutable record type.
13997 2001-10-11 Robert Dewar <dewar@gnat.com>
13999 * validsw.adb: Properly save -gnatVn status.
14001 2001-10-11 Robert Dewar <dewar@gnat.com>
14003 * usage.adb: Add lines for V switch.
14005 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
14006 (/VALIDITY_CHECKING).
14008 2001-10-11 Ed Schonberg <schonber@gnat.com>
14010 * sem_type.adb (Add_One_Interp): an operator for a type declared in
14011 an extension of System is known to be visible.
14013 2001-10-11 Ed Schonberg <schonber@gnat.com>
14015 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
14016 properly. Fixes regression on ACATS C34005G.
14018 2001-10-11 Robert Dewar <dewar@gnat.com>
14020 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
14021 loop in generic instance, since this is likely not very useful.
14023 2001-10-11 Robert Dewar <dewar@gnat.com>
14025 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
14026 the error message for high integrity mode.
14028 * rtsfind.adb (RTE): Give message if we try to find an entity that
14029 is not available in high integrity mode.
14032 (OK_To_Use_In_HIE_Mode): New array.
14033 (RTE): May return Empty in high integrity mode.
14035 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
14036 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
14038 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
14039 unit if not inlined always and in no runtime mode. Fixes problem
14040 caused by new Rtsfind changes.
14042 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
14045 * rtsfind.adb (RTE): Make sure we do not try to load unit after
14046 giving message for entity not available in high integrity mode.
14048 2001-10-11 Pascal Obry <obry@gnat.com>
14050 * impunit.adb: Add GNAT.CRC32.
14052 2001-10-11 Ed Schonberg <schonber@gnat.com>
14054 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
14055 properly the case where one universal operand in a non-static
14056 exponentiation of a real literal.
14058 2001-10-11 Ed Schonberg <schonber@gnat.com>
14060 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
14061 clause, return the gobal finalization list, for lack of anthing else.
14063 2001-10-11 Ed Schonberg <schonber@gnat.com>
14065 * exp_ch7.adb (Make_Transient_Block): if statement is within
14066 exception handler, always use new transient scope to place Clean
14069 2001-10-11 Pascal Obry <obry@gnat.com>
14072 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
14073 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
14074 (GNATLS_RTL_OBJS): add g-crc32.o
14075 (GNATMAKE_RTL_OBJS): add g-crc32.o
14078 (CRC_Match): new function.
14079 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
14080 instead of the previous simple checksum algorithm.
14081 (Time_Stamp_Mismatch): use CRC_Match for comparison.
14082 (Set_Source_Table): idem.
14085 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
14086 instead of simple checksum.
14087 (CRC_Match): new function.
14088 (CRC_Error): new constant.
14090 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
14091 a CRC now and not a simple checksum. A CRC uses lower-case hex
14092 letters, fixes ambiguity in parsing.
14094 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
14095 is what this variable will store.
14097 * bcheck.adb: Change reference to chechsum in comments by CRC.
14098 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
14099 rename All_Checksum_Match to All_CRC_Match. Change due to API
14100 renaming since now GNAT does not use a simple checksum but a
14101 CRC using GNAT.CRC32.
14103 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
14104 now and not anymore a simple checksum.
14106 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
14109 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
14112 (Restore_Scan_State): rename Checksum to CRC.
14113 (Save_Scan_State): idem.
14117 (Checksum): rename to CRC.
14118 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
14120 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
14121 GNAT.CRC32). Update copyright notice.
14123 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
14124 GNAT.CRC32). Update copyright notice.
14127 (Accumulate_Checksum): removed.
14128 (Update): new procedure. Add a wide-character into the CRC.
14131 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
14132 (Load_File): fix initialization of S (change Source_Checksum to
14135 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
14136 Source_CRC in S initialization.
14138 * sinput.adb (Source_Checksum): renamed to Source_CRC.
14140 * sinput.ads (Source_Checksum): renamed to Source_CRC.
14141 Update comments for the CRC.
14143 * types.adb (Hex): Use lowercase for the letter part.
14145 * types.ads (Get_Hex_String): Returns the hexadecimal representation
14146 for a word. This is currently used only for CRC. In previous version,
14147 the checksum was using a representation with all letter being
14148 upper-case. With the new implementation (using CRC) we do not remove
14149 the 32th bit of the CRC, so we can have an upper-case starting letter
14150 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
14151 It is ambigous since the CRC was optional and could be followed by
14152 options like EB, EE. So now this routines uses lower-case letter for
14153 the hexadecimal representation. Strange enough only lower case letters
14154 where checked in Scan_ALI (even if this was not a possible case).
14156 * gnatvsn.ads (Library_Version): changed to 3.15a.
14158 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
14161 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
14164 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
14165 Add 2001 to copyright notice
14166 (Accumulate_Checksum): Modify to use System.CRC32.
14168 * ali-util.ads: Redo changes of previous revision to continue to use
14169 the word Checksum. Add 2001 to copyright notice.
14171 * ali.adb: Undo some of previous changes, not needed.
14172 Keep the change for lower case letters in the checksum.
14174 * ali.ads: Undo previous change not needed.
14176 * bcheck.adb: Undo most of previous change, not needed.
14177 But do use Checksums_Match for checksum comparison.
14179 * gnatls.adb: Undo most of previous change, not needed.
14180 But do use Checksums_Match for comparing checksums.
14182 * lib-load.adb: Undo previous change, not needed.
14184 * lib-writ.adb: Undo previous change, not needed.
14186 * lib-writ.ads: Document that checksums use lower case,
14187 not upper case letters.
14189 * scans.adb: Undo previous change, not needed
14191 * scans.ads: Undo previous change, not needed.
14193 * scn-nlit.adb: Undo previous changes, not needed.
14195 * scn-slit.adb: Undo previous change, not needed. Fix header format.
14198 (Accumulate_Checksum): Use System.CRC32.
14199 (Initialize_Checksum): New procedure.
14200 Remove other changes of previous revision.
14202 * sinput-p.adb: Undo previous change, not needed.
14204 * sinput.adb: Undo previous change, not needed.
14206 * sinput-l.adb: Undo previous change, not needed.
14208 * sinput.ads: Undo previous change, not needed. Keep only comment
14209 on new checksum algorithm
14211 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
14212 Also remove a-tags and a-stream from GNAT sources.
14214 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
14216 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
14218 2001-10-11 Geert Bosch <bosch@gnat.com>
14220 * einfo.h: Regenerate.
14222 * nmake.ads: Regenerate.
14224 * nmake.adb: Regenerate.
14226 * sinfo.h: Regenerate.
14228 * treeprs.adb: Regenerate.
14230 2001-10-10 Geert Bosch <bosch@gnat.com>
14232 * gnat-style.texi: New file describing coding guidelines for Ada.
14234 2001-10-10 Ed Schonberg <schonber@gnat.com>
14236 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
14239 2001-10-10 Geert Bosch <bosch@gnat.com>
14241 * snames.ads: Add new names for project facility.
14243 * snames.adb: Update to reflect snames.ads changes.
14245 * snames.h: Update to reflect snames.ads changes.
14247 2001-10-10 Vincent Celier <celier@gnat.com>
14250 (Add_Switches): reflect the changes for the switches attributes
14251 Default_Switches indexed by the programming language,
14252 Switches indexed by the file name.
14253 (Collect_Arguments_And_Compile): Idem.
14254 Reflect the attribute name changes.
14257 (Initialisation_Data): Change the names of some packages and
14259 (Initialize): process case insensitive associative arrays.
14262 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
14265 (Parse_Attribute_Declaration): For case insensitive associative
14266 arrays, set the index string to lower case.
14269 Reflect the changes of the project attributes.
14272 Replace Check_Naming_Scheme by Ada_Check and
14273 Language_Independent_Check.
14276 Replaced Check_Naming_Scheme by 2 procedures:
14277 Ada_Check and Language_Independent_Check.
14280 (Process_Declarative_Items): For case-insensitive associative
14281 arrays, set the index string to lower case.
14282 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
14283 Prj.Nmsc.Check_Naming_Scheme.
14286 (Case_Insensitive): New function
14287 (Set_Case_Insensitive): New procedure
14290 (Case_Insensitive): New function
14291 (Set_Case_Insensitive): New procedure
14292 (Project_Node_Record): New flag Case_Insensitive.
14295 (Value_Of): new function to get the string value of a single
14296 string variable or attribute.
14299 (Value_Of): new function to get the string value of a single
14300 string variable or attribute.
14303 (Ada_Default_Spec_Suffix): New function
14304 (Ada_Default_Impl_Suffix): New function
14305 Change definitions of several constants to reflect
14306 new components of record types.
14309 (Naming_Data): Change several components to reflect new
14310 elements of naming schemes.
14311 (Project_Data): New flags Sources_Present and
14312 Language_Independent_Checked.
14313 (Ada_Default_Spec_Suffix): New function.
14314 (Ada_Default_Impl_Suffix): New function.
14317 Modification of predefined names for project manager: added
14318 Implementation, Specification_Exceptions, Implementation_Exceptions,
14319 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
14320 Default_Switches, _Languages, Builder, Cross_Reference,
14321 Finder. Removed Body_Part, Specification_Append, Body_Append,
14322 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
14325 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
14328 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
14329 not that it is Nil_Variable_Value.
14331 * prj.ads: Add ??? for uncommented declarations
14333 2001-10-10 Ed Schonberg <schonber@gnat.com>
14335 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
14336 constant, do not indicate possible modification, so that gigi can
14337 treat it as a bona fide constant.
14339 2001-10-10 Robert Dewar <dewar@gnat.com>
14341 * sem_prag.adb: Add processing for pragma External.
14343 * snames.ads: Add entry for pragma External.
14345 * par-prag.adb: Add pragma External.
14347 * snames.adb: Updated to match snames.ads.
14349 2001-10-10 Ed Schonberg <schonber@gnat.com>
14351 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
14352 a dynamic task if the allocator appears in an indexed assignment
14353 or selected component assignment.
14355 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
14356 For a dynamic task in an assignment statement, use target of
14357 assignment to generate meaningful name.
14359 2001-10-10 Ed Schonberg <schonber@gnat.com>
14361 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
14364 * einfo.ads: Body_Entity is also defined for generic package.
14365 Documentation change only
14367 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
14368 others_choice for a discriminated component initialization,
14369 convert discriminant references into the corresponding discriminals.
14371 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
14372 only if original type is private and expression has to be wrapped
14376 (Apply_Constraint_Check): Do not perform length check
14377 if expression is an aggregate with only an others_choice.
14378 (Length_N_Cond): two references to the same in_parameter
14379 (typically the discriminal in an init_proc) denote the same value.
14380 Two useful optimization uncovered by bugfixes above.
14382 2001-10-10 Robert Dewar <dewar@gnat.com>
14384 * xeinfo.adb: Change int to char in translation of enumeration types.
14385 This fixes a problem in the C representation of component alignment.
14386 Add 2001 to copyright notice
14388 2001-10-10 Richard Kenner <kenner@gnat.com>
14390 * decl.c: (validate_size): Do check size of object of integral type
14391 if it is a packed array type.
14393 2001-10-10 Richard Kenner <kenner@gnat.com>
14395 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
14396 VAR_DECL for constant if not Is_Public but -O0.
14398 2001-10-10 Richard Kenner <kenner@gnat.com>
14400 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
14402 2001-10-10 Geert Bosch <bosch@gnat.com>
14404 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
14405 use '/' as switch character, allowing for absolute file names.
14407 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
14409 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
14412 2001-10-08 Geert Bosch <bosch@gnat.com>
14414 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
14415 Automatically build utilities when files need to be regenerated.
14417 2001-10-08 Geert Bosch <bosch@gnat.com>
14419 * xsnames.adb: New utility for updating snames.ads and snames.adb
14421 2001-10-08 Zack Weinberg <zack@codesourcery.com>
14423 * Make-lang.in (ADAFLAGS): Add -W -Wall.
14424 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
14425 (gnat1): Also depend on attribs.o.
14426 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
14427 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
14428 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
14429 (ADAFLAGS): Add -W -Wall.
14430 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
14433 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
14434 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
14435 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
14436 Use $(ADAC), not $(CC), as compilation command.
14438 (gnattools): Depend directly on tools to build, don't use
14440 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
14442 * einfo.h, sinfo.h: New files (autogenerated).
14444 2001-10-08 Richard Henderson <rth@redhat.com>
14446 * comperr.adb (Abort_In_Progress): New.
14447 (Compiler_Abort): Use it to prevent recursion.
14449 2001-10-08 Robert Dewar <dewar@gnat.com>
14451 * atree.adb: Set Error_Posted in Error node, helps error recovery.
14453 * par-endh.adb (Output_End_Expected): We should also not test
14454 Error_Posted on the Error node, since now it is always set.
14456 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
14457 to help error recovery. Part of general work on 9407-004.
14459 * par.adb: Add ??? for misuse of error
14462 (Resolve): Defend against Error, fixes 9407-003.
14463 (Resolve_Discrete_Subtype_Indication): Defend against Error.
14465 * sinfo.ads (N_Error): Now has Etype field (which will be set
14466 to Any_Type to help error recovery).
14468 2001-10-08 Richard Kenner (kenner@gnat.com)
14470 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
14471 Consistently set MEM attributes from expression; fixes
14472 bootstrap failure on x86.
14474 2001-10-08 Geert Bosch (bosch@gnat.com)
14476 * 5oosinte.adb: Add 2001 to copyright notice.
14478 2001-10-08 Geert Bosch (bosch@gnat.com)
14480 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
14482 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
14484 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
14486 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
14488 2001-10-05 Geert Bosch (bosch@gnat.com)
14490 * adaint.h: Small formatting fix.
14492 2001-10-04 Geert Bosch <bosch@gnat.com>
14494 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
14495 Arg is int, not FILE *, in dummy version of functions.
14497 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
14498 Arg is int, not FILE *.
14500 2001-10-04 Geert Bosch <bosch@gnat.com>
14502 * 3lsoccon.ads: Added file, missed with initial check ins.
14504 * 4lintnam.ads: Fix header format.
14505 Change Linux to GNU/Linux.
14507 * 5iosinte.adb: Change Linux to GNU/Linux.
14509 * 5iosinte.ads: Change Linux to GNU/Linux.
14511 * 5itaprop.adb: Change Linux to GNU/Linux.
14513 * 5itaspri.ads: Change Linux to GNU/Linux.
14514 Update copyright notice.
14516 * 5lintman.adb: Change Linux to GNU/Linux.
14518 * 5lml-tgt.adb: Change Linux to GNU/Linux.
14520 * 5losinte.ads: Change Linux to GNU/Linux.
14522 * 5lsystem.ads: Change Linux to GNU/Linux.
14524 * 5qosinte.adb: Change Linux to GNU/Linux.
14526 * 5qosinte.ads: Change Linux to GNU/Linux.
14528 * 5qparame.ads: Change Linux to GNU/Linux.
14530 * 5qtaprop.adb: Change Linux to GNU/Linux.
14532 * 5qtaspri.ads: Change Linux to GNU/Linux.
14533 Add 2001 to copyright notice.
14535 * 5vintman.ads: Change Linux to GNU/Linux.
14536 Fix header format. Add 2001 to copyright notice.
14538 * g-soccon.ads: Change Linux to GNU/Linux.
14540 * g-trasym.ads: Change Linux to GNU/Linux.
14541 Add 2001 to copyright notice.
14543 * memtrack.adb: Change Linux to GNU/Linux.
14545 * s-intman.ads: Change Linux to GNU/Linux.
14546 Add 2001 to copyright notice. Fix header format.
14548 * s-stache.adb: Change Linux to GNU/Linux.
14550 * adaint.c: Change Linux to GNU/Linux.
14552 * cio.c: Change Linux to GNU/Linux.
14554 * cstreams.c: Change Linux to GNU/Linux.
14556 * init.c: Change Linux to GNU/Linux.
14558 * gmem.c: Change Linux to GNU/Linux.
14560 * tracebak.c: Change Linux to GNU/Linux.
14563 2001-10-02 Geert Bosch <bosch@gnat.com>
14565 * misc.c (insert_default_attributes): Add dummy version.