1 2004-07-01 Richard Henderson <rth@redhat.com>
3 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
4 * utils.c (max_size): Likewise.
6 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
9 and rest_of_type_compilation; add arg to create_*_decl.
10 (annotate_decl_with_node): Deleted.
11 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
12 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
13 (get_current_block_context, gnat_pushdecl): New declarations.
14 (gnat_init_stmt_group): Likewise.
15 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
16 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
17 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
18 (gnat_init): Call gnat_init_stmt_group.
19 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
20 (gnu_pending_elaboration_list): Deleted.
21 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
22 (gigi): Rearrange initialization calls and move some to last above.
23 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
24 Delete calls to add_decl_expr; add arg to create_*_decl.
25 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
26 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
27 begin_subprog_body and call it.
28 Don't push and pop ggc context.
29 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
30 (add_stmt): Remove handling of DECL_EXPR from here.
31 If not in function, mark visited.
32 (add_decl_expr): Put global at top level.
33 Check for cases of DECL_INITIAL we have to handle here.
34 (process_type): Add extra arg to create_type_decl.
35 (build_unit_elab): Rework to just gimplify.
36 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
37 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
38 (get_pending_elaborations, pending_elaborations_p): Likewise.
39 (push_pending_elaborations, pop_pending_elaborations): Likewise.
40 (get_elaboration_location, insert_elaboration_list): Likewise.
41 (gnat_binding_level): Renamed from ada_binding_level.
42 (init_gnat_to_gnu): Don't clear pending_elaborations.
43 (global_bindings_p): Treat as global if no current_binding_level.
44 (set_current_block_context): New function.
45 (gnat_pushdecl): Renamed from pushdecl; major rework.
47 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
48 (finish_record_type): Call call pushdecl for stub decl.
49 (function_nesting_depth): Deleted.
50 (begin_subprog_body): Delete obsolete code.
51 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
53 2004-06-28 Robert Dewar <dewar@gnat.com>
55 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
56 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
57 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
58 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
59 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
61 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
62 deal with problem of inefficient slices on machines with strict
63 alignment, when the slice is a component of a composite.
65 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
66 machines, we need the check there as well.
68 2004-06-28 Ed Schonberg <schonberg@gnat.com>
70 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
71 determine safe copying direction for overlapping slice assignments
72 when component is controlled.
74 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
75 formal derived type in the actual for a formal package are visible in
76 the enclosing instance.
78 2004-06-28 Ed Schonberg <schonberg@gnat.com>
81 * sem_util.adb (Trace_Components): Diagnose properly an illegal
82 circularity involving a private type whose completion includes a
83 self-referential component.
84 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
85 renaming or an instantiation from an implicit derived operation.
87 2004-06-28 Pascal Obry <obry@gnat.com>
89 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
91 (Library_File_Name_For): Idem.
93 2004-06-28 Matthew Gingell <gingell@gnat.com>
95 * g-traceb.ads: Add explanatory note on the format of addresses
96 expected by addr2line.
98 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
100 * Makefile.in: Force debugging information on s-tasdeb.adb,
101 a-except.adb and s-assert.adb needed by the debugger.
103 2004-06-28 Vincent Celier <celier@gnat.com>
105 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
109 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
111 * prj.adb: Minor reformatting
112 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
114 * prj.ads: Comment updates
116 (Project_Data): Change Flag1 to Need_To_Build_Lib.
117 Remove Flag2: not used.
119 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
122 * gnat_ugn.texi: Put a "null;" declaration in one project file example
124 * gnat_rm.texi: Document Empty declarations "null;".
126 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
127 front of the linker options.
128 (Link_Foreign): Put the global archives and the libraries in front of
131 2004-06-28 Javier Miranda <miranda@gnat.com>
133 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
134 (RTU_Loaded): Code cleanup
135 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
136 withed predefined units.
138 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
139 explicitly withed predefined units.
142 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
143 explicitly withed predefined units.
145 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
147 * ada-tree.def (DECL_STMT): Deleted.
148 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
149 (DECL_STMT_VAR): Deleted.
150 * decl.c: add_decl_stmt now add_decl_expr.
153 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
154 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
155 (add_stmt): Only handle padded type here.
156 (add_stmt_with_node): Allow gnat_node to not be present.
157 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
158 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
159 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
160 make a SAVE_EXPR for the entire fat pointer.
161 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
162 (create_index_type): Make a DECL_EXPR.
163 (end_subprog_body): Don't call allocate_struct_function here but
166 2004-06-25 Pascal Obry <obry@gnat.com>
168 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
169 Relocatable from Build_Dynamic_Library call.
171 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
172 Relocatable are now synonym.
174 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
176 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
177 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
180 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
181 Lib_Address and Relocatable.
182 (Default_DLL_Address): Removed.
184 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
185 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
186 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
187 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
188 (Default_DLL_Address): Removed.
190 * mlib-tgt-mingw.adb: Ditto.
191 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
193 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
194 the initial thread stack size.
196 * a-strmap.ads: Move package L to private part as it is not used in
197 the spec. Found while reading code.
199 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
201 * tracebak.c: Introduce support for a GCC infrastructure based
202 implementation of __gnat_backtrace.
204 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
205 any more. Use accessors instead. This eases maintenance and relaxes
206 some alignment constraints.
207 (_GNAT_Exception structure): Remove the Ada specific fields
208 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
210 (is_handled_by, __gnat_eh_personality): Replace component references to
211 exception structure by use of the new accessors.
213 * init.c (__gnat_initialize): Adjust comments to match the just
214 reverted meaning of the -static link-time option.
216 * adaint.c (convert_addresses): Arrange not to define a stub for
217 mips-irix any more, as we now want to rely on a real version from a
220 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
221 the personality routine can use them and not have to rely on a C
222 counterpart of the record anymore. This simplifies maintenance and
223 relaxes the constraint of having Standard'Maximum_Alignment match
225 Update comments, and add a section on the common header alignment issue.
227 2004-06-25 Geert Bosch <bosch@gnat.com>
229 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
230 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
232 2004-06-25 Robert Dewar <dewar@gnat.com>
234 * gnat_rm.texi: Fix section on component clauses to indicate that the
235 restriction on byte boundary placement still applies for bit packed
237 Add comment on stack usage from Initialize_Scalars
239 * gnat_ugn.texi: Add documentation for -gnatyLnnn
241 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
242 limiting nesting level.
244 * usage.adb: Add line for -gnatyLnnn switch
246 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
247 sem_ch13.adb, exp_aggr.adb: Minor reformatting
249 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
250 type as well as on the subtype. This corrects a problem in freeze in
251 setting alignments of atomic types.
253 * sem_eval.ads: Minor comment typo fixed
255 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
256 level. Minor reformatting.
258 * fname.adb (Is_Predefined_File_Name): Require a letter after the
259 minus sign. This means that file names like a--b.adb will not be
260 considered predefined.
262 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
263 record Test new flag and give diagnostic for bad component clause.
264 (Freeze_Entity): Set alignment of array from component alignment in
265 cases where this is safe to do.
267 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
270 * cstand.adb: (Create_Standard): Set alignment of String to 1
272 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
274 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
275 code in the common constrained array cases.
277 * a-storio.adb: Change implementation to avoid possible alignment
278 problems on machines requiring strict alignment (data should be moved
279 as type Buffer, not type Elmt).
281 * checks.adb (Apply_Array_Size_Check): Improve these checks by
282 killing the overflow checks which we really do not need (64-bits is
285 2004-06-25 Vincent Celier <celier@gnat.com>
287 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
288 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
289 inconditionally for the main project.
290 (Recursive_Add_Archives.Add_Archive_Path): New procedure
291 (Link_Executables.Check_Time_Stamps): New procedure
292 (Link_Executables.Link_Foreign): New procedure
293 Changes made to reduce nesting level of this package
294 (Check): New procedure
295 (Add_Switches): When not in quiet output, check that a switch is not
296 the concatenation of several valid switches. If it is, issue a warning.
297 (Build_Global_Archive): If the global archive is rebuilt, linking need
299 (Compile_Sources): Rebuilding a library archive does not imply
300 rebuilding the global archive.
301 (Build_Global_Archive): New procedure
302 (Build_Library): New name for Build_Archive, now only for library
304 (Check_Archive_Builder): New procedure
305 (Create_Global_Archive_Dependency_File): New procedure
306 (Gprmake): Call Build_Global_Archive before linking
307 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
309 (Scan_Arg): Display the Copyright notice when -v is used
311 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
314 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
316 Add new GNAT LIST qualifier /FILES=
317 Added qualifier /DIRECTORY= to GNAT METRIC
318 Added qualifier /FILES= to GNAT METRIC
319 Added qualifier /FILES to GNAT PRETTY
321 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
322 to take into account both versions of the switch.
324 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
325 always be the last switch to the gcc driver. Disable switch storing so
326 that switches automatically added by the gcc driver are not put in the
329 * prj.adb (Project_Empty): Take into account changes in components of
332 * prj.ads (Languages_Processed): New enumaration value All_Languages.
334 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
335 used. Split Boolean component Ada_Sources_Present in two Boolean
336 components Ada_Sources_Present and Other_Sources_Present.
339 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
340 instead of Sources_Present.
341 (Set_Ada_Paths.Add.Recursive_Add): Ditto
343 * prj-nmsc.adb: Minor reformatting
344 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
345 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
346 Check_Ada_Naming_Scheme.
347 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
350 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
352 Make sure that all cycles where there is at least one "limited with"
354 (Parse_Single_Project): New Boolean parameter In_Limited
356 * prj-proc.adb (Recursive_Check): When Process_Languages is
357 All_Languages, call first Prj.Nmsc.Ada_Check, then
358 Prj.Nmsc.Other_Languages_Check.
360 * prj-proc.adb (Process): Use Ada_Sources_Present or
361 Other_Sources_Present (instead of Sources_Present) depending on
364 * lang-specs.h: Keep -g and -m switches in the same order, and as the
367 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
368 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
370 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
373 * lib.ads (Disable_Switch_Storing): New procedure.
375 * make.adb: Modifications to reduce nesting level of this package.
376 (Check_Standard_Library): New procedure
377 (Gnatmake.Check_Mains): New procedure
378 (Gnatmake.Create_Binder_Mapping_File): New procedure
379 (Compile_Sources.Compile): Add switch -gnatez as the last option
380 (Display): Never display -gnatez
383 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
385 * gnatcmd.adb (Check_Project): New function
386 (Process_Link): New procedure to reduce nesting depth
387 (Check_Files): New procedure to reduce the nesting depth.
388 For GNAT METRIC, include the inherited sources in extending projects.
389 (GNATCmd): When GNAT LS is invoked with a project file and no files,
390 add the list of files from the sources of the project file. If this list
391 is too long, put it in a temp text files and use switch -files=
392 (Delete_Temp_Config_Files): Delete the temp text file that contains
393 a list of source for gnatpp or gnatmetric, if one has been created.
394 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
395 in the project file is too large, create a temporary text file that
396 list them and pass it to the tool with "-files=<temp text file>".
397 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
399 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
400 generated file is in not in Ada.
402 * gnatls.adb: Remove all parameters And_Save that are no longer used.
403 (Scan_Ls_Arg): Add processing for -files=
404 (Usage): Add line for -files=
406 * g-os_lib.adb (On_Windows): New global constant Boolean flag
407 (Normalize_Pathname): When on Windows and the path starts with a
408 directory separator, make sure that the resulting path will start with
411 * clean.adb (Clean_Archive): New procedure
412 (Clean_Project): When there is non-Ada code, delete the global archive,
413 the archive dependency files, the object files and their dependency
414 files, if they exist.
415 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
417 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
419 * sinfo.ads: Fix typo in comment.
421 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
422 the TSS for remote access-to-subprogram types, since these TSS are
423 always present once the type has been analyzed.
424 (RAS_E_Dereference): Same.
426 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
427 reference raises Bad_Attribute, mark the reference as analyzed so the
428 node (and any children resulting from rewrites that could have occurred
429 during the analysis that ultimately failed) is not analyzed again.
431 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
433 * exp_dist.adb: Minor comment fix.
435 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
436 type is an anonymous access type, no unchecked deallocation of the
437 allocated object can occur. If the object is controlled, attach it with
438 a count of 1. This allows attachment to the Global_Final_List, if
439 no other relevant list is available.
440 (Get_Allocator_Final_List): For an anonymous access type that is
441 the type of a discriminant or record component, the corresponding
442 finalisation list is the one of the scope of the type.
444 2004-06-25 Ed Schonberg <schonberg@gnat.com>
446 * sem_ch3.adb (Replace_Type): When computing the signature of an
447 inherited subprogram, use the first subtype if the derived type
448 declaration has no constraint.
450 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
451 before applying previous optimization. Minor code cleanup.
453 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
454 placed at the beginning of an unpacked record without explicit
455 alignment, a slice of it will be aligned and does not need a copy when
458 2004-06-25 Ed Schonberg <schonberg@gnat.com>
462 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
463 reference is written with expressions mimicking parameters.
465 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
468 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
469 STEP 2a. The constraints of a full type declaration of a derived record
470 type are checked for conformance with those declared in the
471 corresponding private extension declaration. The message
472 "not conformant with previous declaration" is emitted if an error is
475 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
477 * g-traceb.ads: Document the need for -E binder switch in the spec.
479 * g-trasym.ads: Document the need for -E binder switch in the spec.
481 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
483 * sem_prag.adb: Add handling of pragma Detect_Blocking.
485 * snames.h, snames.ads, snames.adb: Add entry for pragma
488 * s-rident.ads: Change reference to pragma Detect_Blocking.
490 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
493 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
494 to indicate whether pragma Detect_Blocking is active.
496 * par-prag.adb: Add entry for pragma Detect_Blocking.
498 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
499 of not handling WITH.
500 Note that this replaces the previous update which was incorrect.
502 2004-06-25 Javier Miranda <miranda@gnat.com>
504 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
505 use-clauses to have a clean environment.
507 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
508 the installation of the use-clauses to stablish a clean environment in
509 case of compilation of a separate unit; otherwise the call to
510 use_one_package is protected by the barrier Applicable_Use.
512 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
513 the installation of the use-clauses to stablish a clean environment in
514 case of compilation of a separate unit.
515 (End_Use_Clauses): Minor comment cleanup.
517 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
519 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
521 2004-06-23 Richard Henderson <rth@redhat.com>
523 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
525 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
527 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
528 now bool instead of int.
529 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
530 * trans.c (gnu_switch_label_stack): New function.
531 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
532 elaboration of renamed entity returns.
533 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
534 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
535 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
536 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
537 DECL_SIZE_UNIT and simplify variable-sized case.
538 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
539 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
540 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
541 (build_unit_elab): Disable for now.
542 * utils.c (mark_visited): New function.
543 (pushdecl): Walk tree to call it for global decl.
544 (update_pointer_to): Update all variants of pointer and ref types.
545 Add arg to COMPONENT_REF.
547 Move check for converting between variants lower down.
548 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
549 (build_allocator): Don't force type of MODIFY_EXPR.
550 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
553 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
555 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
556 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
557 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
559 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
561 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
562 the way that EXIT_STMT finds the loop label.
563 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
564 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
565 (add_stmt): Use annotate_with_locus insted of setting directly.
566 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
567 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
568 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
569 (build_vms_descriptor): Add extra args to ARRAY_REF.
570 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
571 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
573 (build_binary_op): Don't make explicit CONVERT_EXPR.
574 Add extra rgs to ARRAY_REF.
576 2004-06-14 Pascal Obry <obry@gnat.com>
578 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
579 Windows. Fix minor typo.
581 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
582 which is now supported on Windows. With this implementation using the
583 Library Project feature is no different on Windows than on UNIX.
585 2004-06-14 Vincent Celier <celier@gnat.com>
587 * makegpr.adb (Compile_Sources): Nothing to do when there are no
590 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
592 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
593 found, show the project name and the path of the previously parsed
596 2004-06-14 Ed Schonberg <schonberg@gnat.com>
598 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
599 array, avoid copying the actual before the call.
601 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
603 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
604 Instead, allocate memory on worst-case alignment assumptions, and then
605 return an aligned address within the allocated zone.
607 2004-06-14 Robert Dewar <dewar@gnat.com>
609 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
610 elab entities in predefined units in No_Run_Time_Mode.
611 (Gen_Adainit_C): Same fix
612 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
613 units in No_Run_Time_Mode
614 (Gen_Elab_Calls_C): Same fix
616 * symbols-vms-alpha.adb: Minor reformatting
618 * g-debpoo.ads: Minor reformatting
620 * lib.adb (In_Same_Extended_Unit): Version working on node id's
622 * lib.ads (In_Same_Extended_Unit): Version working on node id's
624 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
627 * make.adb: Minor reformatting
629 * par-ch12.adb: Minor reformatting
631 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
633 * prj-strt.adb: Minor reformatting
635 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
638 * sem_attr.adb: Minor reformatting
640 * sem_ch7.adb: Minor reformatting
642 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
643 for type in the same unit as the object declaration.
645 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
646 static string expressions and not just string literals.
648 (Set_Warning): Reset restriction warning flag for restriction pragma
649 Implement pragma Profile_Warnings
650 Implement pragma Profile (Restricted)
651 Give obolescent messages for old restrictions and pragmas
653 * snames.h, snames.ads, snames.adb: Add new entry for pragma
656 * s-rident.ads: Add declarations for restrictions required by profile
657 Restricted and profile Ravenscar.
659 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
661 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
662 configuration pragmas.
664 2004-06-11 Vincent Celier <celier@gnat.com>
666 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
667 gnatsym, when symbol policy is Restricted.
669 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
670 gnatsym, when symbol policy is Restricted.
672 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
673 read the symbol file.
674 (Finalize): Fail in symbol policy Restricted if a symbol in the original
675 symbol file is not in the object files. Do not create a new symbol file
676 when symbol policy is Restricted.
678 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
681 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
683 (Usage): Line for new switch -R
685 * make.adb (Initialize): When the platform is not VMS, add the
686 directory where gnatmake is invoked in the front of the path, if
687 gnatmake is invoked with directory information. Change the Scan_Args
688 while loop to a for loop.
689 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
690 if Depth is equal or greater than the proposed depth, there is nothing
692 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
695 * prj.ads: Add new symbol policy Restricted.
697 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
698 with the new parameters Check_All_Labels and Case_Location.
700 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
701 (Library_Symbol_File needs to be defined).
703 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
704 and Case_Location If Check_All_Labels is True, check that all values of
705 the string type are used, and output warning(s) if they are not.
707 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
710 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
712 * gnat_ugn.texi: Update documentation about the library directory in
715 * makegpr.adb (Display_Command): In verbose mode, also display the
716 value of the CPATH env var, when the compiler is gcc.
717 (Initialize): Change the Scan_Args while loop to a for loop
718 (Compile_Individual_Sources): Change directory to object directory
721 * symbols.ads: New symbol policy Restricted.
723 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
725 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
726 is now taken care of internally in the Exception_Propagation package
727 and does not require clients assistance any more.
729 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
730 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
731 functions. Helpers to maintain a predicate required in the handling of
732 occurrence transfer between tasks.
733 This is now handled internally and does not require clients assistance
734 for the setup/propagate separation anymore.
735 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
736 allocation strategy, handle the Setup_And_Not_Propagated predicate and
739 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
740 raise_after_setup, now that everything is handled internally within the
741 setup/propagation engine.
743 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
745 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
746 Add additional conditions for the case of an actual being a simple
747 name or literal. Improve inlining by preventing the generation
748 of temporaries with a short lifetime (one use).
750 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
754 * einfo.ads: Minor comment updates for Has_Completion and
755 E_Constant list of flags.
757 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
758 and constant redeclarations now set the Has_Completion flag of their
759 defining identifiers.
761 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
762 Inspect_Deferred_Constant_Completion.
763 Used to detect private deferred constants that have not been completed
764 either by a constant redeclaration or pragma Import. Emits error message
765 "constant declaration requires initialization expression".
767 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
768 completes a deferred constant.
770 2004-06-11 Geert Bosch <bosch@gnat.com>
772 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
774 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
775 calculating exponent for scaling denormal numbers.
776 (Leading_Part): Properly raise Constraint_Error for zero or negative
778 (Remainder): Properly raise Constraint_Error for zero divisor.
780 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
782 * sem_util.adb: Minor reformatting.
784 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
785 dereference when accessing the entry parameter record.
786 (Check_Array_Type): Always check for possible implicit dereference.
787 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
788 Abort if a pointer is still present (denoting that an implicit
789 dereference was left in the tree by the front-end).
791 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
792 dereference when accessing the entry parameter record.
793 (Check_Array_Type): Always check for possible implicit dereference.
794 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
795 Abort if a pointer is still present (denoting that an implicit
796 dereference was left in the tree by the front-end).
798 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
800 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
801 message, like the compiler itself does. Easier to parse the output.
803 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
805 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
806 be base names, and not includes directories.
808 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
810 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
811 so that dependencies are properly taken into account by make.
813 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
816 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
817 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
819 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
821 * Makefile.in (install-gnatlib): install target-specific run-time files.
823 * Make-lang.in: Remove obsolete targets.
825 2004-06-11 Ed Schonberg <schonberg@gnat.com>
827 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
828 specification, to catch misuses of program unit names.
830 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
831 superfluous conversions in an instance.
833 2004-06-11 Ed Schonberg <schonberg@gnat.com>
837 * sem_ch12.adb (Save_References): If operator node has been folded to
838 enumeration literal, associated_node must be discarded.
840 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
842 * s-stchop-vxworks.adb: Add required pragma Convention to
843 Task_Descriptor because it is updated by a C function.
845 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
849 * Makefile.in: Remove target specific SO_OPT on IRIX
851 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
853 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
854 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
855 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
856 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
857 (STMT_STMT, USE_STMT): New statement codes.
858 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
859 * ada-tree.h: Reflect above changes.
860 (struct tree_loop_id): Deleted.
861 (union lang_tree_node, struct lang_decl, struct lang_type):
862 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
863 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
864 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
865 (IS_ADA_STMT): New macro.
866 * decl.c (annotate_decl_with_node): New function.
867 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
868 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
869 Call add_stmt_with_node to do needed assignments.
870 Add call to update setjmp buffer directly, not via EXPR_STMT.
871 (maybe_variable): Argment GNAT_NODE deleted.
872 * gigi.h (maybe_variable): Likewise.
873 (make_transform, add_stmt_with_node, set_block_for_group): New.
874 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
875 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
876 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
877 (set_lineno, set_lineno_from_sloc): Likewise.
878 (record_code_position, insert_code_for): Likewise.
879 (gnat_poplevel): Now returns void.
880 (end_subprog_body): Now takes argument.
881 * misc.c (cgraph.h, tree-inline.h): New includes.
882 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
883 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
884 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
885 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
886 (gnat_parse_file): Don't set immediate_size_expand.
887 Call cgraph functions.
888 (gnat_expand_expr): Remove most cases.
889 (record_code_position, insert_code_for): Remove from here.
890 * trans.c (toplev.h, tree-gimple.h): Now included.
891 (discard_file_names): Deleted.
892 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
893 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
894 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
895 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
896 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
897 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
898 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
899 (set_block_for_group, add_stmt_list): Likewise.
900 (start_stmt_group): Renamed from start_block_stmt.
901 (end_stmt_group): Likewise, from end_block_stmt.
902 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
903 (gigi): Don't set discard_file_names or call set_lineno.
904 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
905 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
906 Numerous changes throughout to reflect new names and complete
907 function-at-a-time implementation.
908 (gnat_expand_stmt): Delete or comment out all cases.
909 (process_inlined_subprograms): Use add_stmt.
910 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
911 call set_lineno; also remove unneeded block handling.
912 (process_type): Remove unneeded block handling.
913 (build_unit_elab): Remove calls to deleted functions.
914 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
915 (tree-dump.h): Likewise.
916 (struct ada_binding_level): Add field jmpbuf_decl.
917 (gnat_define_builtin, gnat_install_builtins): New.
918 (gnat_gimplify_function, gnat_finalize): Likewise.
919 (gnat_poplevel): No longer return BLOCK, set it instead.
920 Remove code dealing with nested functions.
921 (gnat_init_decl_processing): Also set size_type_node.
922 Call gnat_install_builtins.
923 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
924 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
925 Remove special-case for "main".
926 (end_subprog_body): Add arg and rework for tree-ssa.
927 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
928 Add case for BOOLEAN_TYPE.
929 * utils2.c (rtl.h): Now include.
930 (build_call_raise): Test Debug_Flag_NN directly.
931 (build_call_alloc_dealloc): Don't use local stack allocation for now.
932 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
933 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
935 2004-06-07 Robert Dewar <dewar@gnat.com>
937 * a-direct.ads, einfo.ads: Minor comment updates
939 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
940 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
941 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
942 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
943 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
945 * s-interr-sigaction.adb: Remove unreferenced variable
946 (Attached_Interrupts). Minor reformatting.
947 Avoid use of variable I (replace by J).
949 * par-ch10.adb: Fix text of one error message
951 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
952 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
953 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
954 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
955 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
956 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
957 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
958 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
959 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
960 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
961 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
964 2004-06-07 Doug Rupp <rupp@gnat.com>
966 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
968 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
970 * mlib-tgt-vms-ia64.adb: New file.
972 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
973 Add mlib-tgt-vms-ia64.adb
974 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
975 Move to alpha specific ifeq section.
976 Add VMS specific versions of symbols.adb
977 Renaming of 5q vms files.
979 * 5qsystem.ads renamed to system-vms_64.ads.
981 2004-06-07 Vincent Celier <celier@gnat.com>
983 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
984 explain that when a time of day corresponding to the non existing hour
985 on the day switching to DST is specified, Split may return a different
988 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
991 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
992 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
994 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
996 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
998 (Build_Library.Check_Libs): On VMS, if there is a dependency on
999 g-trasym.ads, set Gtrasymobj_Needed to True.
1001 * prj-attr.adb: Add new package Metrics for gnatmetric
1003 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
1004 canonical case to take into account files with upper case characters on
1006 (Ada_Check): Load the reference symbol file name in the name buffer to
1007 check it, not the symbol file name.
1009 * snames.ads, snames.adb: Add standard name Metrics (name of project
1010 file package for gnatmetric).
1012 * vms_conv.ads: Add Metric to Comment_Type
1014 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
1016 * vms_data.ads: Add qualifiers for GNAT METRIC
1018 * makegpr.adb (Link_Executables): Take into account the switches
1019 specified in package Linker of the main project.
1021 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
1023 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
1024 the index of the last element is Units.Last, not Units.Table'Last
1025 (which is usually not a valid index within the actually allocated
1026 storage for the table).
1028 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
1029 determines whether to generate a call to a checked storage pool
1031 Generate such a call only for a dereference that either comes from
1032 source, or is the result of rewriting a dereference that comes from
1035 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
1037 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
1039 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
1041 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
1042 file level, elaborate the stride for inner dimensions in alignment
1045 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
1048 2004-06-07 Javier Miranda <miranda@gnat.com>
1050 * exp_ch6.adb: Correct wrong modification in previous patch
1052 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
1054 * g-trasym.ads: Corrected comment to properly reflect level of support
1057 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
1059 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
1060 includes case of a variable referenced on the left hand side of an
1061 assignment, therefore remove redundant code. Variables and prefixes of
1062 indexed or selected components are now marked as referenced on left
1063 hand side. Warnings are now properly emitted when variables or prefixes
1064 are assigned but not read.
1066 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
1067 left hand side referenced variables. Private access types do not
1068 produce the warning "variable ... is assigned but never read".
1069 Add also additional checks to left hand side referenced variables.
1070 Aliased, renamed objects and access types do not produce the warning
1071 "variable ... is assigned but never read" since other entities may read
1072 the memory location.
1074 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
1076 * Makefile.in: In the powerpc/vxworks-specific section, restore
1077 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
1080 2004-06-07 Ed Schonberg <schonberg@gnat.com>
1082 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
1083 predefined operators.
1084 Removes spurious type errors from g-trasym-vms.adb.
1086 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
1087 distinct from the operator appearing in the source, call appropriate
1088 routine to insert conversions when needed, and complete resolution of
1090 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
1091 interpretations for rewritten right operand.
1092 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
1093 the other operand is overloaded and the context is a type conversion.
1095 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1097 * ada-tree.def (BLOCK_STMT): Now has two operands.
1100 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
1102 * gigi.h: (gnat_poplevel): Now returns a tree.
1104 * trans.c (end_block_stmt): Add arg; all callers changed.
1105 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
1106 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
1107 (add_stmt): Set TREE_TYPE.
1108 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
1109 (gnat_expand_stmt, case BREAK_STMT): New case.
1111 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
1113 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
1115 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
1116 procedure Set_Stack_Size that is not needed.
1118 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
1120 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
1121 used for gnatpp input file and for the files upon which it depends
1123 2004-06-07 Ben Brosgol <brosgol@gnat.com>
1125 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
1127 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
1129 * gnatvsn.ads: Bump version numbers appropriately.
1132 2004-06-07 Pascal Obry <obry@gnat.com>
1134 * gnat_ugn.texi: Improve comments about imported names and link names
1135 on Windows. Add a note about the requirement to use -k gnatdll's option
1136 when working with a DLL which has stripped stdcall symbols (no @nn
1139 2004-05-27 Vincent Celier <celier@gnat.com>
1141 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
1142 COMMENTS_LAYOUT=UNTOUCHED
1144 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
1145 symbols-vms-alpha.adb
1147 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
1149 * sem.ads: Clarify documentation on checks suppression.
1151 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
1153 2004-05-27 Ed Schonberg <schonberg@gnat.com>
1155 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
1156 the case of multiple derivations.
1157 (Is_Object_Reference): For a selected component, verify that the prefix
1158 is itself an object and not a value.
1160 * sem_ch12.adb (Same_Instantiated_Constant): New name for
1161 Same_Instantiated_Entity.
1162 (Same_Instantiated_Variable): Subsidiary to
1163 Check_Formal_Package_Instance, to recognize actuals for in-out generic
1164 formals that are obtained from a previous formal package.
1165 (Instantiate_Subprogram_Body): Emit proper error when
1166 generating code and the proper body of a stub is missing.
1168 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
1169 has a universal interpretation, do the disambiguation here.
1171 * exp_ch4.adb (Expand_N_Type_Conversion,
1172 Expand_N_Unchecked_Type_Conversion): Special handling when target type
1173 is Address, to avoid typing anomalies when Address is a visible integer
1176 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
1177 to determine whether a subprogram should not be marked Pure, even when
1178 declared in a pure package.
1180 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
1182 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
1184 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
1185 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
1186 Update the documentation about the Ravenscar profile, following the
1187 definition found in AI-249.
1189 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
1190 setting the Profile (Ravenscar). This must be done in addition to
1191 setting the required restrictions.
1193 * rtsfind.ads: Add the set of operations defined in package
1196 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
1199 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
1201 lang-specs.h: Always require -c or -S and always redirect to /dev/null
1202 if -gnatc or -gnats is passed.
1204 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
1206 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
1207 a significant reference. Warnings are now properly emitted when a
1208 discriminated type is not referenced.
1210 * lib-xref.adb (Generate_Reference): A deferred constant completion,
1211 record representation clause or record type discriminant does not
1212 produce a reference to its corresponding entity. Warnings are now
1213 properly emitted when deferred constants and record types are not
1216 2004-05-27 Geert Bosch <bosch@gnat.com>
1218 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
1219 Fixes ACATS Annex G tests.
1221 2004-05-27 Robert Dewar <dewar@gnat.com>
1223 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
1226 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
1228 * s-interr.adb (Server_Task): Take into account case of early return
1229 from sigwait under e.g. linux.
1231 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
1233 * gnat_ugn.texi: Add description for the new gnatpp options:
1234 -rnb - replace the original source without creating its backup copy
1235 -c0 - do not format comments
1237 2004-05-24 Geert Bosch <bosch@gnat.com>
1239 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
1240 with 192 bits of precision, sufficient to reduce a double-extended
1241 arguments X with a maximum relative error of T'Machine_Epsilon, for X
1242 in -2.0**32 .. 2.0**32.
1243 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
1244 reduction by the processor, which only uses a 68-bit approximation of
1246 (Tan): Always reduce arguments and compute function either using
1247 the processor's fptan instruction, or by dividing sin and cos as needed.
1249 2004-05-24 Doug Rupp <rupp@gnat.com>
1251 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
1252 gcc error on 32/64 bit VMS.
1254 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
1256 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
1257 since this is what we get for stack overflows although not documented
1259 Document the issues which may require adjustments to our signal
1262 2004-05-24 Ed Schonberg <schonberg@gnat.com>
1264 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
1265 enclosing dynamic scope if the instantiation is within a generic unit.
1267 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
1269 * exp_dbug.ads: Fix typo.
1271 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
1272 Rename it to its proper name: system-linux-ia64.ads
1273 (stamp-gnatlib1): Remove extra target specific run time files when
1274 setting up the rts directory.
1276 2004-05-24 Javier Miranda <miranda@gnat.com>
1278 * einfo.ads, einfo.adb (Limited_Views): Removed.
1279 (Limited_View): New attribute that replaces the previous one. It is
1280 now a bona fide package with the limited-view list through the
1281 first_entity and first_private attributes.
1283 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
1284 limited-private-with clause.
1285 (Install_Limited_Withed_Unit): Install the private declarations of a
1286 limited-private-withed package. Update the installation of the shadow
1287 entities according to the new structure (see Build_Limited_Views)
1288 (Build_Limited_Views): Replace the previous implementation of the
1289 limited view by a package entity that references the first shadow
1290 entity plus the first shadow private entity (required for limited-
1291 private-with clause)
1292 (New_Internal_Shadow_Entity): Code cleanup.
1293 (Remove_Limited_With_Clause): Update the implementation to undo the
1294 new work carried out by Build_Limited_Views.
1295 (Build_Chain): Complete documentation.
1296 Replace Ada0Y by Ada 0Y in comments
1299 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
1300 types the level of accessibility depends on the enclosing type
1303 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
1304 entities. Complete documentation of previous change.
1306 2004-05-24 Robert Dewar <dewar@gnat.com>
1308 * namet.adb: Minor reformatting
1309 Avoid use of name I (replace by J)
1310 Minor code restructuring
1312 * sem_ch6.adb: Minor reformatting
1314 * lib-writ.adb: Do not set restriction as active if this is a
1315 Restriction_Warning case.
1317 * sem_prag.adb: Reset restriction warning flag if real pragma
1318 restriction encountered.
1320 * s-htable.adb: Minor reformatting
1321 Change rotate count to 3 in Hash (improves hash for small strings)
1323 * 5qsystem.ads: Add comments for type Address (no literals allowed).
1325 * gnat_ugn.texi: Add new section of documentation "Code Generation
1326 Control", which describes the use of -m switches.
1328 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
1330 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
1331 through the DECL_INITIAL for renamed variables.
1333 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
1335 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
1337 2004-05-19 Joel Brobecker <brobecker@gnat.com>
1339 * exp_dbug.ads: Correct comments concerning handling of overloading,
1340 since we no longer use $ anymore.
1342 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
1344 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
1345 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
1346 with illegal subunits.
1348 2004-05-19 Ed Schonberg <schonberg@gnat.com>
1350 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
1351 body with front-end inlining enabled, check whether an inline pragma
1352 appears immediately after the body and applies to it.
1354 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
1355 enabled and the pragma appears after the body of the subprogram.
1357 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1359 Part of function-at-a-time conversion
1361 * misc.c (adjust_decl_rtl): Deleted.
1362 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
1365 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
1366 (add_decl_stmt, add_stmt, block_has_vars): New functions.
1367 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
1369 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
1371 (gnat_to_gnu_entity): Likewise.
1372 Use add_stmt to update setjmp buffer.
1373 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
1375 No longer call adjust_decl_rtl.
1376 (DECL_INIT_BY_ASSIGN_P): New macro.
1377 (DECL_STMT_VAR): Likewise.
1379 * trans.c (gigi): Call start_block_stmt to make the outermost
1381 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
1382 Call start_block_stmt and end_block_stmt temporarily.
1383 Use gnat_expand_stmt instead of expand_expr_stmt.
1384 (add_decl_stmt): New function.
1385 (tree_transform): Call it.
1386 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
1387 (end_block_stmt): Set type and NULL_STMT.
1388 (gnat_expand_stmt): Make recursize call instead of calling
1390 (gnat_expand_stmt, case DECL_STMT): New case.
1391 (set_lineno_from_sloc): Do nothing if global.
1392 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
1393 (start_block_stmt, add_stmt, end_block_stmt): New functions.
1394 (build_block_stmt): Call them.
1395 (gnat_to_code): Don't expand NULL_STMT.
1396 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
1398 (tree_transform): Likewise.
1399 (tree_transform, case N_Null_Statement): Return NULL_STMT.
1400 (gnat_expand_stmt, case NULL_STMT): New case.
1401 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
1404 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
1407 * utils.c (create_var_decl): Do not call expand_decl or
1409 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
1410 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
1412 (struct e_stack): Add chain_next to GTY.
1413 (struct binding_level): Deleted.
1414 (struct ada_binding_level): New struct.
1415 (free_block_chain): New.
1416 (global_binding_level, clear_binding_level): Deleted.
1417 (global_bindings_p): Rework to see if no chain.
1418 (kept_level_p, set_block): Deleted.
1419 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
1420 new data structure and work directly on BLOCK node.
1421 (gnat_poplevel): Similarly.
1422 (get_decls): Look at BLOCK_VARS.
1423 (insert_block): Work directly on BLOCK node.
1424 (block_has_var): New function.
1425 (pushdecl): Rework for new binding structures.
1426 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
1428 (build_subprog_body): Likewise.
1429 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
1431 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
1433 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
1434 (DECL_STMT_VAR): Likewise.
1436 2004-05-17 Robert Dewar <dewar@gnat.com>
1438 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
1441 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
1442 of restriction synonyums by using
1443 Restrict.Process_Restriction_Synonyms.
1445 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
1447 * s-restri.ads (Tasking_Allowed): Correct missing comment
1449 * s-rident.ads: Add entries for restriction synonyms
1451 * ali.adb: Fix some problems with badly formatted ALI files that can
1452 result in infinite loops.
1454 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
1455 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
1456 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
1457 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
1458 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
1459 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
1460 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
1461 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
1462 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
1463 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
1464 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
1465 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
1466 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
1467 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
1468 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
1469 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
1470 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
1471 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
1472 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
1473 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
1474 to Task_Id (minor cleanup).
1476 2004-05-17 Vincent Celier <celier@gnat.com>
1478 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
1479 directory separator.
1481 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
1482 project being extended, if Languages is not declared in extending
1485 2004-05-17 Javier Miranda <miranda@gnat.com>
1487 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
1488 limited view of a visible sibling.
1490 2004-05-14 Robert Dewar <dewar@gnat.com>
1492 * gnat_ugn.texi: Minor change to -gnatS documentation
1494 * sprint.adb: Remove some instances of Assert (False) and for this
1495 purpose replace them by output of a ??? string.
1497 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
1500 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
1501 flag processing. This was suppressing required dependencies in
1502 No_Run_Time mode and is not needed since the binder does not generate
1503 references for things in libgnat anyway.
1505 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
1508 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
1510 * gnat_ugn.texi: Document AIX-specific issue with initialization of
1513 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
1514 action for the case of an actual parameter in an init proc call.
1516 2004-05-14 Ed Schonberg <schonberg@gnat.com>
1518 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
1519 subtype, check visible entities in base type.
1521 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
1522 actions if the object is a renaming.
1524 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
1525 Check_Formal_Package_Instance, to determine more precisely when the
1526 formal and the actual denote the same entity.
1528 2004-05-14 Javier Miranda <miranda@gnat.com>
1530 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
1532 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
1533 corresponding to a private_with must be removed from visibility; it
1534 will be made visible later, just before we analyze the private part of
1536 (Check_Private_Child_Unit): Allow private_with clauses in public
1538 (Install_Siblings): Make visible the private entities of private-withed
1540 (Install_Withed_Unit): Do not install the private withed unit if we
1541 are compiling a package declaration and the Private_With_OK flag was
1542 not set by the caller. These declarations will be installed later,
1543 just before we analyze the private part of the package.
1545 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
1546 during the evaluation of the expression that initializes the object,
1547 decorate it with the expected type to avoid cascade errors.
1550 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
1551 subprogram we have to install the private_with clauses after its
1552 specification has been analyzed (as documented in AI-262.TXT).
1554 * sem_ch8.adb (Has_Private_With): New function. Determines if the
1555 current compilation unit has a private with on a given entity.
1556 (Find_Direct_Name): Detect the Beaujolais problem described in
1559 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
1560 provides the functionality of the function Is_Ancestor that was
1561 previously available in sem_ch10. It has been renamed to avoid
1564 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
1566 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1568 * utils.c (build_vms_descriptor): Use SImode pointers.
1570 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
1572 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
1574 2004-05-14 GNAT Script <nobody@gnat.com>
1576 * Make-lang.in: Makefile automatically updated
1578 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
1580 Renaming of target specific files for clarity
1582 * Makefile.in: Rename GNAT target specific files.
1584 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
1585 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
1586 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
1587 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
1588 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
1589 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
1590 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
1591 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
1592 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
1593 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
1594 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
1595 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
1596 51osinte.adb, 51osinte.ads, 51system.ads,
1597 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
1598 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
1599 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
1600 56tpopsp.adb, 57system.ads, 58system.ads,
1601 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
1602 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
1603 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
1604 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
1605 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
1606 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
1607 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
1608 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
1609 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
1610 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
1611 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
1612 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
1613 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
1614 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
1615 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
1616 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
1617 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
1618 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
1619 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
1620 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
1621 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
1622 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
1623 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
1624 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
1625 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
1626 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
1627 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
1628 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
1629 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
1630 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
1631 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
1632 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
1633 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
1634 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
1635 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
1636 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
1637 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
1638 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
1639 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
1640 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
1642 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
1643 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
1644 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
1645 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
1646 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
1647 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
1648 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
1649 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
1650 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
1651 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
1652 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
1653 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
1654 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
1655 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
1656 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
1657 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
1658 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
1659 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
1660 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
1661 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
1662 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
1663 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
1664 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
1665 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
1666 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
1667 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
1668 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
1669 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
1670 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
1671 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
1672 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
1673 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
1674 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
1675 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
1676 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
1677 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
1678 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
1679 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
1680 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
1681 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
1682 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
1683 s-osinte-vms.ads, s-osinte-vxworks.adb,
1684 s-osinte-vxworks.ads, s-osprim-mingw.adb,
1685 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
1686 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
1687 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
1688 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
1689 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
1690 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
1691 s-stchop-vxworks.adb, s-taprop-dummy.adb,
1692 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
1693 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
1694 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
1695 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
1696 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
1697 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
1698 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
1699 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
1700 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
1701 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
1702 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
1703 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
1704 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
1705 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
1706 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
1707 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
1708 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
1709 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
1710 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
1711 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
1712 system-irix-o32.ads, system-linux-x86_64.ads,
1713 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
1714 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
1715 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
1716 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
1717 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
1718 system-vxworks-mips.ads, system-vxworks-ppc.ads,
1719 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
1722 2004-05-13 Zack Weinberg <zack@codesourcery.com>
1724 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
1726 2004-05-13 Diego Novillo <dnovillo@redhat.com>
1728 Merge from tree-ssa-20020619-branch.
1730 * config-lang.in (boot_language, build_by_default): Set
1732 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
1733 (max_size): Add static chain op for call_expr.
1735 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
1738 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
1740 2004-05-11 Roger Sayle <roger@eyesopen.com>
1742 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
1745 2004-05-10 Doug Rupp <rupp@gnat.com>
1747 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
1750 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
1752 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
1754 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
1755 Fixes undefined symbols in IA64 gnatlib.
1757 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
1759 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
1760 Short_Address). This will be moved to system.auxdec.
1762 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
1764 * sem_util.adb: Replace test for presence of a node that is always
1765 present with a call to Discard_Node.
1767 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
1768 Analyze on the library unit node after generation of distribution stub
1769 constructs. The call was a no-op because Unit_Node has already been
1770 Analyzed, and the tree fragments for the distribution stubs are
1771 analyzed as they are inserted in Exp_Dist.
1772 Update comment regarding to distribution stubs to reflect that we
1773 do not generate stub in separate files anymore.
1775 * einfo.ads: Clarify the fact that a tagged private type has the
1776 E_Record_Type_With_Private Ekind.
1778 * erroutc.adb: Minor reformatting
1780 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
1781 values if line length is increased using -gnatyM (noticed during code
1784 * eval_fat.adb: Minor reformatting
1785 Put spaces around exponentiation operator
1787 2004-05-10 Ed Schonberg <schonberg@gnat.com>
1790 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
1791 has been rewritten as an explicit dereference, retrieve type of
1792 original node to check for possibly unconstrained record type.
1794 2004-05-10 Ed Schonberg <schonberg@gnat.com>
1796 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
1797 overriding, use the operation of the parent unconditionally.
1799 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
1800 operation when either operand is a literal, to avoid further
1803 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
1804 overridden by a previous explicit declaration, mark the previous entity
1807 * sem_disp.adb (Check_Dispatching_Operation): New predicate
1808 Is_Visibly_Controlled, to determine whether a declaration of a
1809 primitive control operation for a derived type overrides an inherited
1810 one. Add warning if the explicit declaration does not override.
1812 2004-05-10 Vincent Celier <celier@gnat.com>
1814 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
1815 some cases when the sources are no longer present.
1817 * make.adb (Collect_Arguments): Fail if an external source, not part
1818 of any project need to be compiled, when switch -x has not been
1821 * makeusg.adb: Document new switch -x
1823 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
1826 * switch-m.adb (Scan_Make_Switches): New switch -x
1828 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
1831 * gnat_ugn.texi: Document new gnatmake switch -x
1833 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
1835 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
1837 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
1838 (process_attributes): Likewise.
1840 2004-05-10 Joel Brobecker <brobecker@gnat.com>
1842 * s-inmaop.ads: Fix spelling mistake in one of the comments.
1844 2004-05-10 Robert Dewar <dewar@gnat.com>
1846 * gnat_ugn.texi: Document that for config pragma files, the maximum
1847 line length is always 32767.
1849 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
1850 literals is now allowed.
1852 * gnat-style.texi: Remove statement about splitting long lines before
1853 an operator rather than after, since we do not follow this rule at all.
1854 Clarify rule (really lack of rule) for spaces around exponentiation
1856 * sem_elim.adb: Allow concatenation of string literals as well as a
1857 single string literal for pragma arguments.
1859 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
1861 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
1862 written for append case.
1864 * frontend.adb: Changes to avoid checking max line length in config
1867 * g-os_lib.ads: Minor reformatting
1869 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
1870 wrong in any case. Instead use standard value. Noticed during code
1873 * opt.ads (Max_Line_Length): New field, used to implement removal of
1874 limitation on length of lines when scanning config pragma files.
1876 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
1877 makeutl.ads, makeutl.adb: Minor reformatting
1879 * scn.adb: Do not check line length while scanning config pragma files
1880 Do not check line length while scanning out license information
1882 * scng.adb: Changes to avoid line length checks while parsing config
1885 2004-05-10 GNAT Script <nobody@gnat.com>
1887 * Make-lang.in: Makefile automatically updated
1889 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
1891 * osint.adb (Find_Program_Name): Fix handling of VMS version
1894 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
1896 * g-os_lib.ads (Invalid_Time): New constant
1898 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
1899 return OS_Time instead of time_t to match what is imported by Ada.
1900 Now return -1 if the file doesn't exist, instead of a random value
1902 2004-05-05 Robert Dewar <dewar@gnat.com>
1904 * usage.adb: Add line for -gnatR?s switch
1906 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
1908 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
1909 and for Match (Data_First, Data_last)
1911 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
1912 written when we are dealing with multi-unit files.
1914 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
1916 * Makefile.in: Remove unused targets and variables.
1918 2004-05-05 Vincent Celier <celier@gnat.com>
1920 * switch-m.adb: New gnatmake switch -eI
1922 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
1923 of new gnatmake switch -eInnn.
1925 * makegpr.adb: Take into account new parameters Index and Src_Index in
1928 * clean.adb: Implement support for multi-unit sources, including new
1931 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
1934 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
1935 (Extract_From_Q): New out parameter Index
1936 (Mark, Is_Marked): Subprograms moved to Makeutl
1937 (Switches_Of): New parameter Source_Index
1938 (Add_Switch): New parameter Index
1939 (Check): New parameter Source_Index
1940 (Collect_Arguments): New parameter Source_Index
1941 (Collect_Arguments_And_Compile): New parameter Source_Index
1942 (Compile): New parameter Source_Index
1943 Put subprograms in alphabetical order
1944 Add support for multi-source sources, including in project files.
1946 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
1947 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
1950 * makeusg.adb: New gnatmake switch -eInnn
1952 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
1955 * opt.ads (Main_Index): New variable, defaulted to 0.
1957 * osint.ads, osinte.adb (Add_File): New parameter Index
1958 (Current_Source_Index): New function
1960 * prj.adb: Take into account new components Index and Src_Index
1962 * prj.ads (String_Element): New component Index
1963 (Variable_Value): New component Index
1964 (Array_Element): New component Src_Index
1966 * prj-attr.adb: Indicate that optional index may be specified for
1967 attributes Main, Executable, Spec, Body and some of Switches.
1969 * prj-attr.ads (Attribute_Kind): New values for optional indexes
1970 (Attribute_Record): New component Optional_Index
1972 * prj-com.ads (File_Name_Data): New component Index
1974 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
1976 * prj-env.adb (Put): Output optional index
1978 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
1979 attributes Spec and Body.
1981 * prj-nmsc.adb: Process optional indexes
1983 * prj-pp.adb: Ouput "at" for optional indexes
1985 * prj-proc.adb: Take into account optional indexes
1987 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
1988 Optional_Index. For string literal,
1989 process optional index when Optional_Index is True.
1990 (Parse_Expresion): New Boolean parameter Optional_Index
1992 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
1993 (Set_Source_Index_Of): New procedure
1995 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
1998 * prj-util.ads (Executable_Of): New parameter Index
1999 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
2000 New parameter Src_Index, defaulted to 0.
2002 2004-05-05 Ed Schonberg <schonberg@gnat.com>
2005 * sem_ch3.adb (Access_Definition): If this is an access parameter
2006 whose designated type is imported through a limited_with clause, do
2007 not add the enclosing subprogram to the list of private dependents of
2010 2004-05-05 Ed Schonberg <schonberg@gnat.com>
2013 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
2014 a limited_with clause, and the other is its non-limited view.
2016 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
2018 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
2020 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
2021 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
2022 Stand.Boolean_Literals to produce references to entities
2023 Standard_False and Standard_True from compile-time computed boolean
2026 * stand.ads (Boolean_Literals): New variable, provides the entity
2027 values for False and True, for use by the expander.
2029 2004-05-05 Doug Rupp <rupp@gnat.com>
2031 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
2032 5vinmaop.adb: Unchecked convert Short_Address vice Address
2034 * adaint.c, raise.c: Caste CRTL function return value
2035 to avoid gcc error on 32/64 bit IVMS.
2037 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
2040 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
2042 * 5qsystem.ads (Address): Declare as Long_Integer
2043 (Short_Address): Declare as 32 bit subtype of Address
2044 Declare abstract address operations to avoid gratuitous ambiguities.
2046 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
2048 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
2049 instead of the old Boolean_Entry_Barriers.
2050 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
2052 2004-05-05 GNAT Script <nobody@gnat.com>
2054 * Make-lang.in: Makefile automatically updated
2056 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
2058 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
2060 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
2064 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
2065 alone. Replacing object references by literals is inappropriate in a
2066 so low level context.
2068 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
2070 * a-exexpr.adb: Add comments
2072 2004-05-03 Joel Brobecker <brobecker@gnat.com>
2074 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
2075 declare the Ancestor_Tags array in Type_Specific_Data with a small size
2076 without risking a bounds check error when accessing one of its
2078 (Type_Specific_Data): Define Ancestor_Tags as a small array.
2079 This prevents us from hitting a limitation during the debug info
2080 generation when using stabs.
2082 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
2084 This prevents us from hitting a limitation during the debug info
2085 generation when using stabs.
2087 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
2089 lang-specs.h: Remove -gnatz* from specs.
2091 2004-05-03 Vincent Celier <celier@gnat.com>
2093 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
2095 * Make-lang.in, Makefile.in: Add gprmake
2097 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
2099 * sem_aggr.adb: Fix typo in comment.
2101 2004-05-03 Robert Dewar <dewar@gnat.com>
2103 * make.adb: Minor reformatting
2105 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
2107 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
2108 so that it works when address is not a private type.
2110 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
2111 properly with rewritten unchecked conversions. This prevents
2112 order-of-elaboration issues that can otherwise arise.
2113 (Minimum_Size): Don't check size of access types under VMS
2115 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
2116 interpretations of integer literals as type System.Address.
2118 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
2119 (Is_Descendent_Of): New function
2121 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
2123 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
2124 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
2125 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
2127 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
2128 of the old Max_Entry_Queue_Depth.
2130 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
2131 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
2132 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
2134 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
2135 New entry for proper handling of Max_Entry_Queue_Depth.
2136 New entry for proper handling of No_Dynamic_Interrupts.
2138 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
2139 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
2140 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
2141 the GNAT specific restriction Max_Entry_Queue_Depth.
2142 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
2143 the GNAT specific restriction No_Dynamic_Interrupts.
2145 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
2146 instead of the old Boolean_Entry_Barriers.
2147 Use the new restriction No_Dynamic_Attachment instead of the old
2148 No_Dynamic_Interrupts.
2150 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
2151 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
2153 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
2154 of the old Max_Entry_Queue_Depth.
2156 2004-05-03 GNAT Script <nobody@gnat.com>
2158 * Make-lang.in: Makefile automatically updated
2160 2004-04-29 Ed Schonberg <schonberg@gnat.com>
2162 * checks.adb (Enable_Range_Check): If the prefix of an index component
2163 is an access to an unconstrained array, perform check unconditionally.
2165 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2167 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
2170 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
2172 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
2173 alternate stack setting. There was no support for the tasking cases
2174 and the changes eventually caused a number of side-effect failures in
2175 the non-tasking case too.
2177 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
2179 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
2182 2004-04-29 Vincent Celier <celier@gnat.com>
2184 * make.adb (Gnatmake): Increase max size of argument array for
2185 gnatbind for the potential addition of -F.
2186 If there are Stand-Alone Library projects, invoke gnatbind with -F to
2187 be sure that elaboration flags will be checked.
2189 * switch-c.adb: Correct call to Scan_Pos for -gnateI
2191 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
2193 * sem_warn.adb (Check_References): Move '<access-variable> may be
2194 null' warning out of under Warn_On_No_Value_Assigned.
2196 2004-04-29 Ed Falis <falis@gnat.com>
2198 * gnat_ugn.texi: Fixed texi error
2200 2004-04-29 Robert Dewar <dewar@gnat.com>
2202 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
2203 abstract operations if they come from predefined files.
2205 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
2208 * s-addope.adb: Correct obvious error in mod function
2210 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
2212 * Makefile.in: Add target pairs for powerpc darwin*
2215 * a-intnam-darwin.ads, s-osinte-darwin.adb,
2216 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
2218 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
2220 * Makefile.in: Add target macro definitions for s390*-linux*.
2221 * system-linux-s390.ads: New file.
2222 * system-linux-s390x.ads: New file.
2224 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
2226 * gnat_ugn.texi: Correct argument to @setfilename.
2228 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
2230 * a-exexpr.adb (Unwind_Word): New data type.
2231 (Unwind_Exception): Use it as type of Private1 and Private2.
2233 * raise.c (db_action_for): Fix debug printf.
2235 2004-04-27 Ed Schonberg <schonberg@gnat.com>
2237 * a-wtmoio.ads: Formal type must be a modular type, not a signed
2240 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2242 * decl.c (gnat_to_gnu_entity, case object): Call
2243 __builtin_update_setjmp_buf.
2245 * gigi.h (update_setjmp_buf): Deleted.
2246 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
2248 * misc.c: (update_setjmp_buf): Deleted.
2250 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
2251 around block of RTL.
2253 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
2255 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
2257 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
2258 subprogram for which no pragma All_Calls_Remote applies, store the
2259 address of the real subprogram in the underlying record type, so local
2260 dereferences do not go through the PCS.
2262 2004-04-26 Robert Dewar <dewar@gnat.com>
2264 * i-c.ads: Add some type qualifications to avoid ambiguities when
2265 compiling with s-auxdec.ads and a non-private address type.
2267 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
2269 * Makefile.rtl: Fix error in previous check-in:
2270 Add s-addope.o to non tasking object list (rather than tasking object
2273 2004-04-26 Javier Miranda <miranda@gnat.com>
2275 * sem_aggr.adb: Fix typo in comments
2276 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
2277 Required to check the null-exclusion attribute.
2279 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
2280 case of anonymous access types in record and array components. For a
2281 component definition the level is the same of the enclosing composite
2284 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
2285 that are anonymous access types the level of accessibility depends on
2286 the enclosing type declaration. In order to have this information, set
2287 the scope of the anonymous access type to the enclosing record type
2289 (Array_Type_Declaration): In case of components that are anonymous
2290 access types the level of accessibility depends on the enclosing type
2291 declaration. In order to have this information, set the scope of the
2292 anonymous access type to the enclosing array type declaration.
2294 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
2297 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
2298 renaming of anonymous access-to-constant types allowed if and only if
2299 the renamed object is access-to-constant.
2301 * sem_util.adb (Type_Access_Level): In case of anonymous access types
2302 that are component_definition or discriminants of a nonlimited type,
2303 the level is the same as that of the enclosing component type.
2305 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
2307 * sem_elim.adb: Some minor code reorganization from code reading. Fix
2308 misprint in the function name (File_Name_Match).
2310 2004-04-23 Laurent GUERBY <laurent@guerby.net>
2312 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
2315 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2317 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
2319 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
2321 * adaint.c (__gnat_try_lock): No longer requires that the parent
2322 directory be writable, the directory itself is enough.
2323 (gnat_is_absolute_path): Change profile, so that the call from
2324 GNAT.OS_Lib can be made more efficient.
2326 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
2327 from GNAT.OS_Lib can be made more efficient.
2329 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
2330 one copy of the file name. Found by code reading.
2332 2004-04-23 Vincent Celier <celier@gnat.com>
2334 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
2335 Correct documentation on gnatmake switches transmitted to the compiler
2337 * ali.ads: Minor comment fix
2339 2004-04-23 Javier Miranda <miranda@gnat.com>
2341 * sem_ch6.adb: (Confirming Types): Code cleanup
2343 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
2344 subprogram types: E_Anonymous_Access_Subprogram_Type and
2345 E_Anonymous_Access_Protected_Subprogram_Type.
2347 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
2349 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
2350 whether a pragma All_Calls_Remote applies to the subprogram on which
2352 No functional change is introduced by this revision; the new parameter
2353 will be used to allow calls to local RCI subprograms to be optimized
2354 to not use the PCS in the case where no pragma All_Calls_Remote applies,
2355 as is already done in the PolyORB implementation of the DSA.
2357 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
2358 whether a pragma All_Calls_Remote applies to the subprogram on which
2360 No functional change is introduced by this revision; the new parameter
2361 will be used to allow calls to local RCI subprograms to be optimized
2362 to not use the PCS in the case where no pragma All_Calls_Remote applies,
2363 as is already done in the PolyORB implementation of the DSA.
2365 2004-04-23 Robert Dewar <dewar@gnat.com>
2367 * Makefile.rtl: Add entry for s-addope.o in run time library list
2368 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
2369 * s-addope.ads, s-addope.adb: New files.
2371 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
2372 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
2373 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
2374 System.Address to be non-private and signed.
2376 * sem_elim.adb: Minor reformatting (fairly extensive)
2377 Some minor code reorganization from code reading
2378 Add a couple of ??? comments
2380 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2382 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
2383 (tree_transform, case N_If_Statement): Remove non-determinism.
2385 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
2387 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
2389 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
2392 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
2393 no longer used as a parameter name for Eliminate pragma).
2395 2004-04-22 Laurent GUERBY <laurent@guerby.net>
2397 PR optimization/14984
2398 PR optimization/14985
2399 * trans.c (gigi): Fix non determinism leading to bootstrap
2400 comparison failures.
2402 2004-04-21 Pascal Obry <obry@gnat.com>
2404 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
2405 passed to spawnvp() to properly handle program pathname with spaces on
2408 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
2410 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
2411 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
2412 unlocked in case of exceptions.
2414 2004-04-21 Joel Brobecker <brobecker@gnat.com>
2416 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
2417 This function does not exist anymore.
2419 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
2421 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
2423 * link.c: Move variables to the __gnat name space.
2425 * Makefile.in: list link.o explicitly when needed.
2427 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
2429 2004-04-21 Javier Miranda <miranda@gnat.com>
2431 * einfo.adb (Original_Access_Type): New subprogram
2432 (Set_Original_Access_Type): New subprogram
2433 (Write_Field21_Name): Write the name of the new field
2435 * einfo.ads (Original_Access_Type): New field present in access to
2437 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
2438 E_Anonymous_Access_Protected_Subprogram_Type.
2440 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
2443 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
2444 to anonymous access to subprogram types.
2446 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
2447 to subprogram types.
2449 * sem_ch3.adb (Access_Definition): Complete decoration of entities
2450 corresponding to anonymous access to subprogram types.
2451 (Analyze_Component_Declaration): Add new actual to the call to
2452 subprogram replace_anonymous_access_to_protected_subprogram.
2453 (Array_Type_Declaration): Add new actual to the call to subprogram
2454 replace_anonymous_access_to_protected_subprogram.
2455 (Process_Discriminants): Add new actual to the call to subprogram
2456 replace_anonymous_access_to_protected_subprogram.
2457 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
2459 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
2462 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
2463 access to subprogram types.
2465 * sem_util.adb (Has_Declarations): Addition of package_specification
2468 2004-04-21 Ed Schonberg <schonberg@gnat.com>
2470 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
2471 inlined flags to renamed entity only if in current unit.
2473 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
2475 * s-parint.ads: Add DSA implementation marker.
2477 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
2478 value of System.Partition_Interface.DSA_Implementation to determine
2479 what version of the distributed systems annex is available (no
2480 implementation, GLADE, or PolyORB).
2482 2004-04-21 Joel Brobecker <brobecker@gnat.com>
2484 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
2486 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2488 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
2489 with new type if alias sets differ.
2490 Fixes ACATS c41103b.
2492 2004-04-21 Vincent Celier <celier@gnat.com>
2494 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
2495 Add array Lang_Args for the language specific compiling argument
2498 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
2500 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
2502 * gnat_rm.texi: Update the descripton of the Eliminate pragma
2503 according to the recent changes in the format of the parameters of the
2504 pragma (replacing Homonym_Number with Source_Location).
2506 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
2508 * 5isystem.ads: Removed, unused.
2510 * gnat_rm.texi: Redo 1.13 change.
2512 2004-04-19 Robert Dewar <dewar@gnat.com>
2514 * s-stoele.ads: Clean up definition of Storage_Offset (the new
2515 definition is cleaner, avoids the kludge of explicit Standard operator
2516 references, and also is consistent with a visible System.Address with
2517 no visible operations.
2519 * s-geveop.adb: Add declarations to avoid assumption of visible
2520 operations on type System.Address (since these might not be available
2521 if Address is a non-private type for which the operations
2524 * sem_eval.adb: Minor reformatting
2526 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
2527 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
2528 reformatting (new function spec format).
2530 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
2531 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
2532 s-caun64.adb: Add declarations to avoid assumption of visible
2533 operations on type System.Address (since these might not be available
2534 if Address is a non-private type for which the operations are made
2537 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
2539 * exp_intr.adb: Minor comment update
2541 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
2543 * 5omastop.adb: Add declarations to avoid assumption of visible
2544 operations on type System.Address (since these might not be available
2545 if Address is a non-private type for which the operations
2548 2004-04-19 Vincent Celier <celier@gnat.com>
2550 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
2552 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
2555 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
2557 Call Check with Process_Languages.
2558 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
2559 with Process_Languages.
2560 (Recursive_Check): New Boolean parameter Process_Languages. Call
2561 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
2564 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
2566 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
2567 parameter Ada_Main, defaulted to True.
2568 Check for Ada specific characteristics only when Ada_Main is True.
2570 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
2572 * prj.adb: (Project_Empty): Add new Project_Data components.
2574 * prj.ads: New types and tables for non Ada languages.
2575 (Project_Data): New components Languages, Impl_Suffixes,
2576 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
2577 Include_Path, Include_Data_Set.
2579 * prj-env.ads, prj-env.adb: Minor reformatting
2581 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
2582 Put subprograms in alphabetical order
2584 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
2585 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
2588 * mlib-prj.adb: Back out modification in last version, as they are
2590 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
2592 * make.adb: (Mains): Moved to package Makeutl
2593 (Linker_Opts): Moved to package Makeutl
2594 (Is_External_Assignment): Moved to package Makeutl
2595 (Test_If_Relative_Path): Moved to package Makeutl
2596 (Gnatmake): Move sorting of linker options to function
2597 Makeutl.Linker_Options_Switches.
2599 * makeutl.ads, makeutl.adb: New files.
2601 * Makefile.in: Add makeutl.o to the object files for gnatmake
2603 * makeusg.adb: Add line for new switch -eL.
2605 * gnatls.adb (Image): New function.
2606 (Output_Unit): If in verbose mode, output the list of restrictions
2607 specified by pragmas Restrictions.
2609 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
2612 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
2613 needed, to put it in the range 1970 (included) - 2026 (excluded).
2614 (Time_Of): Do not shift Unix_Min_Year (1970).
2615 Shift the date by multiple of 56 years, if needed, to put it in the
2616 range 1970 (included) - 2026 (excluded).
2618 * adaint.h, adaint.c (__gnat_set_executable): New function.
2620 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2622 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
2624 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
2625 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
2626 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
2627 (tree_transform, case N_Code_Statement): Likewise.
2628 (gnat_expand_stmt, case LABEL_STMT): Don't look at
2629 LABEL_STMT_FIRST_IN_EH.
2630 (gnat_expand_stmt, case ASM_STMT): New case.
2632 * utils2.c (build_unary_op): Properly set TREE_READONLY of
2633 UNCONSTRAINED_ARRAY_REF.
2635 * utils.c (poplevel): Temporarily push/pop GC context around inline
2638 * decl.c (maybe_variable): Properly set TREE_READONLY of
2639 UNCONSTRAINED_ARRAY_REF.
2640 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
2642 * ada-tree.def: (ASM_STMT): New.
2644 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
2645 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
2646 ASM_STMT_INPUT): New.
2647 (ASM_STMT_CLOBBER): Likewise.
2649 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
2651 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
2652 general rcheck mechanism to raise Program_Error for E.4(18), instead
2653 of a custom raiser in System.Partition_Interface.
2654 Part of general cleanup work before PolyORB integration.
2656 * snames.ads, snames.adb: Add new runtime library entities and names
2659 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
2661 (Build_Subprogram_Id): New subprogram provided by exp_dist
2662 Code reorganisation in preparation for PolyORB integration.
2664 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
2666 (Build_Subprogram_Id): New subprogram provided by exp_dist
2668 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
2669 actual parameter types for call to dereference of an
2670 access-to-subprogram type.
2672 * rtsfind.ads: Add new runtime library entities and names for PolyORB
2675 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
2676 instead, which has the same behaviour here since we never pass it a
2679 * link.c (run_path_option, Solaris case): Use -Wl, as for other
2682 * Makefile.in: adjust object file lists for gnatlink and gnatmake
2683 to account for new dependency upon Interfaces.C.Strings + link.o
2684 For x86 FreeBSD, use 86numaux.
2686 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
2687 from Mlib.Tgt to Mlib.
2689 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
2692 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
2693 target-specific versions of this subprogram, now implemented as a
2694 target-independent function in Mlib.
2696 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
2697 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
2698 (Linker_Library_Path_Option): Remove target-specific versions of this
2699 subprogram, now implemented as a target-independent function in Mlib.
2701 * atree.adb: (Allocate_Initialize_Node): New subprogram.
2702 Factors out node table slots allocation.
2703 (Fix_Parents): New subprogram.
2704 Encapsulate the pattern of fixing up parent pointers for syntactic
2705 children of a rewritten node.
2706 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
2707 (Rewrite): Use New_Copy when creating saved copy of original node.
2708 (Replace): Use Copy_Node to copy nodes.
2710 2004-04-19 Javier Miranda <miranda@gnat.com>
2712 * sprint.adb (Sprint_Node_Actual): Give support to the new
2713 Access_To_Subprogram node available in Access_Definition nodes. In
2714 addition, give support to the AI-231 node fields: null-exclusion,
2715 all-present, constant-present.
2717 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
2719 * sinfo.ads, sinfo.adb:
2720 New field Access_To_Subprogram_Definition in Access_Definition nodes
2722 * sem_ch6.adb (Process_Formals): Move here the code that creates and
2723 decorates internal subtype declaration corresponding to the
2724 null-excluding formal. This code was previously in Set_Actual_Subtypes.
2725 In addition, carry out some code cleanup on this code. In case of
2726 access to protected subprogram call
2727 Replace_Anonymous_Access_To_Protected_Subprogram.
2728 (Set_Actual_Subtypes): Code cleanup.
2730 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
2731 Find_Type in case of anonymous access renamings. Add warning in case of
2732 null-excluding attribute used in anonymous access renaming.
2734 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
2737 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
2739 (Access_Definition): In case of anonymous access to subprograms call
2740 the corresponding semantic routine to decorate the node.
2741 (Access_Subprogram_Declaration): Addition of some comments indicating
2742 some code that probably should be added here. Detected by comparison
2743 with the access_definition subprogram.
2744 (Analyze_Component_Declaration): In case of access to protected
2745 subprogram call Replace_Anonymous_Access_To_Protected.
2746 (Array_Type_Declaration): In case of access to protected subprogram call
2747 Replace_Anonymous_Access_To_Protected_Subprogram.
2748 (Process_Discriminants): In case of access to protected subprogram call
2749 Replace_Anonymous_Access_To_Protected_Subprogram.
2751 * par.adb (P_Access_Definition): New formal that indicates if the
2752 null-exclusion part was present.
2753 (P_Access_Type_Definition): New formal that indicates if the caller has
2754 already parsed the null-excluding part.
2756 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
2757 (P_Identifier_Declarations): Code cleanup and give support to renamings
2758 of anonymous access to subprogram types.
2759 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
2760 (P_Array_Type_Definition): Give support to AI-254.
2761 (P_Component_Items): Give support to AI-254.
2762 (P_Access_Definition): New formal that indicates if the header was
2763 already parsed by the caller.
2764 (P_Access_Type_Definition): New formal that indicates if the caller has
2765 already parsed the null-excluding part.
2767 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
2768 call to P_Access_Definition.
2770 2004-04-19 Geert Bosch <bosch@gnat.com>
2772 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
2773 the delicate semantics of floating-point to integer conversion.
2774 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
2776 * eval_fat.adb (Machine_Mantissa): Moved to spec.
2777 (Machine_Radix): New function.
2779 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
2781 (Machine_Radix): New function also for use in conversion checks.
2783 2004-04-19 Ed Schonberg <schonberg@gnat.com>
2785 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
2787 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
2788 to decorate the access-to-protected subprogram and the equivalent type.
2790 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
2791 to anonymous access to subprogram types.
2793 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
2794 constant-folding, for legality checks in contexts that require an RM
2797 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
2798 temporary but stack checking is not enabled, increment serial number
2799 to so that symbol generation is consistent with and without stack
2802 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
2803 independent on whether stack checking is enabled, caller must check
2804 the corresponding flag.
2806 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
2808 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
2809 parent if it has discriminants.
2810 (Build_Derived_Private_Type): Constructed full view does
2811 not come from source.
2812 (Process_Discriminants): Default discriminants on a tagged type are
2813 legal if this is the internal completion of a private untagged
2816 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
2817 no constraint checks, because it corresponds to an existing object.
2819 * sem_prag.adb (Process_Convention): Pragma applies
2820 only to subprograms in the same declarative part, i.e. the same unit,
2823 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
2824 ignore type mismatch on a numeric conversion if expression comes from
2827 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
2829 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
2830 Homonym_Number parameter, add processing for Source_Location parameter
2832 (Check_Eliminated): Remove the check for homonym numbers, add the check
2833 for source location traces.
2835 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
2836 with Arg_Source_Location corresponding to the changes in the format of
2839 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
2840 Eliminate pragma corresponding to the changes in the format of the
2841 pragma: Homonym_Number is replaced with Source_Location, two ways of
2842 distinguishing homonyms are mutially-exclusive.
2844 2004-04-19 Joel Brobecker <brobecker@gnat.com>
2846 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
2848 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
2849 No_Dollar_In_Label, no longer necessary, as it is always True.
2850 (Strip_Suffixes): Likewise.
2852 2004-04-19 Gary Dismukes <dismukes@gnat.com>
2854 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
2855 modulus for compatibility with size clause on targets with 16-bit
2858 * layout.adb (Discrimify): In the case of private types, set Vtyp to
2859 full type to fix type mismatches on calls to size functions for
2860 discriminant-dependent array components.
2862 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
2864 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
2867 2004-04-19 Pascal Obry <obry@gnat.com>
2869 * mdll-utl.adb (Locate): New version is idempotent.
2871 2004-04-17 Laurent Guerby <laurent@guerby.net>
2873 PR ada/14988 (partial)
2874 * impunit.adb: Fix typo.
2876 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2878 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
2879 and install-rts-cert targets. Remove all gnatlib and gnattools
2880 targets and all other rts-* targets (moved to libada). Remove (now)
2881 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
2882 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
2884 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2886 * trans.c (tree_transform): Shortcut returning error_mark_node for
2887 statements in annotate_only_mode.
2888 (tree_transform, case N_Label, case N_Return_Statement,
2889 N_Goto_Statement): Make statement tree instead of generating code.
2890 (tree_transform, case N_Assignment_Statement): No longer check
2892 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
2894 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
2896 (gnat_to_gnu): Collect any RTL generated and deal with it.
2897 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
2898 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
2899 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
2901 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
2903 * ada-tree.def (EXPR_STMT): Fix typo in name.
2904 (BLOCK_STMT, IF_STMT): New nodes.
2906 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
2907 LABEL_STMT_FIRST_IN_EH): New macros.
2908 (RETURN_STMT_EXPR): Likewise.
2910 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
2911 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
2913 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
2915 * atree.ads: Correct documentation on extended nodes.
2917 * link.c: Set run_path_option for FreeBSD.
2919 2004-04-08 Vincent Celier <celier@gnat.com>
2921 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
2922 one of the ALI file, do not link with DEC lib.
2924 * par.adb Remove the last two characters ("%s" or "%b") when checking
2925 if a language defined unit may be recompiled.
2927 2004-04-08 Ed Schonberg <schonberg@gnat.com>
2929 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
2930 removal of abstract operation leaves no possible interpretation for
2933 * sem_eval.adb (Eval_Qualified_Expression): Use
2934 Set_Raises_Constraint_Error on node when needed, so that it does not
2935 get optimized away by subsequent optimizations.
2937 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
2938 operands even when they are not wrapped in a type conversion.
2940 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
2942 * sem_prag.adb (Set_Exported): Warn about making static as result of
2943 export only when the export is coming from source. This may be not
2944 be true e.g. on VMS where we expand export pragmas for exception codes
2945 together with imported or exported exceptions, and we don't want the
2946 user to be warned about something he didn't write.
2948 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
2950 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
2951 duplication between normal entities and those declared as renamings.
2952 No functional change.
2954 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
2955 inline functions returning an unconstrained result.
2957 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
2959 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
2960 conform to what other front-ends do.
2962 2004-04-08 Doug Rupp <rupp@gnat.com>
2964 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
2967 2004-04-06 Pascal Obry <obry@gnat.com>
2969 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
2971 * osint.adb (Program_Name): Do not look past a directory separator.
2973 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
2975 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
2977 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
2978 requirement for preserving a copy of the original assignment node.
2980 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
2982 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
2984 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
2987 2004-04-06 Ed Schonberg <schonberg@gnat.com>
2989 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
2990 operator calls in functional notation, and apply
2991 Universal_Interpretation to operands, not to their type.
2993 2004-04-06 Robert Dewar <dewar@gnat.com>
2995 * 5wdirval.adb: Minor reformatting
2997 2004-04-06 Ed Falis <falis@gnat.com>
2999 * gnat_rm.texi: Improve a reference to the GCC manual
3001 2004-04-05 Vincent Celier <celier@gnat.com>
3003 * adaint.h, adaint.c: Add function __gnat_named_file_length
3005 * impunit.adb: Add Ada.Directories to the list
3007 * Makefile.in: Add VMS and Windows versions of
3008 Ada.Directories.Validity package body.
3010 * Makefile.rtl: Add a-direct and a-dirval
3012 * mlib-tgt.ads: Minor comment update.
3014 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
3015 a-direct.ads, a-direct.adb: New files.
3017 2004-04-05 Vincent Celier <celier@gnat.com>
3020 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
3021 just to the compiler.
3023 2004-04-05 Robert Dewar <dewar@gnat.com>
3025 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
3026 returned string is 1.
3028 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
3030 * eval_fat.ads: Minor reformatting
3032 * g-curexc.ads: Document that lower bound of returned string values
3035 * gnatlink.adb: Add ??? comment for previous change
3036 (need to document why this is VMS specific)
3038 * s-stoele.ads: Minor reformatting
3040 * tbuild.ads: Minor reformatting throughout (new function specs)
3042 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
3045 * scng.adb: Minor reformatting
3047 2004-04-05 Geert Bosch <bosch@gnat.com>
3049 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
3050 (Leading_Part): Still perform truncation to machine number if the
3051 specified radix_digits is greater or equal to machine_mantissa.
3053 2004-04-05 Javier Miranda <miranda@gnat.com>
3055 * par-ch3.adb: Complete documentation of previous change
3056 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
3057 (aliased must appear before constant).
3059 * par-ch4.adb: Complete documentation of previous change.
3061 * par-ch6.adb: Complete documentation of previous change.
3063 * sinfo.ads: Fix typo in commment.
3065 2004-04-05 Ed Schonberg <schonberg@gnat.com>
3067 * sem_ch3.adb (Inherit_Components): If derived type is private and has
3068 stored discriminants, use its discriminants to constrain parent type,
3069 as is done for non-private derived record types.
3071 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
3072 Ada 2005 AI-310: an abstract non-dispatching operation is not a
3073 candidate interpretation in an overloaded call.
3075 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
3076 expression is Null and target type is not an access type (e.g. a
3077 non-private address type).
3079 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
3081 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
3082 statement whose right-hand side is an inlined call, save a copy of the
3083 original assignment subtree to preserve enough consistency for
3084 Analyze_Assignment to proceed.
3086 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
3087 complete assignment subtree which is now unnecessary, as the expansion
3088 of inlined call has been improved to preserve a consistent assignment
3089 tree. Note_Possible_Modification must be called only
3090 after checks have been applied, or else unnecessary checks will
3093 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
3094 of explicit dereferences that do not Come_From_Source:
3095 - be selective on cases where we must go back to the dereferenced
3096 pointer (an assignment to an implicit dereference must not be
3097 recorded as modifying the pointer);
3098 - do not rely on Original_Node being present (Analyze_Assignment
3099 calls Note_Possible_Modification on a copied tree).
3101 * sem_warn.adb (Check_References): When an unset reference to a pointer
3102 that is never assigned is encountered, prefer '<pointer> may be null'
3103 warning over '<pointer> is never assigned a value'.
3105 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
3107 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
3110 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
3112 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
3113 libexc. We currently don't reference anything in this library and
3114 linking it in triggers linker warnings we don't want to see.
3116 * init.c: Update comments.
3118 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3120 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
3121 * utils.c (create_field_decl): Likewise.
3122 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
3124 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
3126 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
3127 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
3128 Add info directory entry and category.
3130 2004-04-02 Jan Hubicka <jh@suse.cz>
3132 * utils.c: Include function.h
3133 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
3135 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
3138 * Make-lang.in: Clean up generation of documentation
3140 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
3142 * xgnatug.adb: Removed, replaced by xgnatugn.adb
3144 * xgnatugn.adb: Replaces xgnatug.adb
3146 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
3148 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
3150 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
3151 gnat_ug_wnt.texi: Removed.
3153 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
3155 * utils2.c: Update copyright notice.
3157 2004-04-01 Robert Dewar <dewar@gnat.com>
3159 * checks.adb: Minor reformatting throughout
3160 Note that prev checkin added RM reference to alignment warning
3162 2004-04-01 Ed Schonberg <schonberg@gnat.com>
3164 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
3165 non-static when building aggregate for bit-packed array.
3167 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
3168 function call that is itself the actual in a procedure call, build
3171 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
3172 a string literal, create a temporary for it, constant folding only
3173 handles scalars here.
3175 2004-04-01 Vincent Celier <celier@gnat.com>
3177 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
3178 Error_Msg_SP): New empty procedures to instantiate the Scanner.
3179 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
3181 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
3182 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
3183 and get the checksum.
3185 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
3187 Increase the Marking_Label at the end of the Multiple_Main_Loop,
3188 instead of at the beginning.
3190 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
3192 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
3195 * osint.ads (Multi_Unit_Index_Character): New Character global variable
3197 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
3200 * par.adb: Remove test on file name to detect language defined units.
3201 Add test on unit name, after parsing, to detect language defined units
3202 that are not compiled with -gnatg (except System.RPC and its children)
3204 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
3205 following units without style checking.
3207 * switch-c.adb: Change -gnatC to -gnateI
3209 * usage.adb: Document new switch -gnateInnn
3211 * scng.adb (Accumulate_Token_Checksum): New procedure
3212 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
3213 word or literal number.
3214 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
3217 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
3220 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
3221 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
3222 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
3223 5vtpopde.adb: Add missing 'constant' keywords.
3225 2004-04-01 Javier Miranda <miranda@gnat.com>
3227 * par-ch4.adb: (P_Allocator): Code cleanup
3229 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
3232 * sinfo.ads: Complete documentation of previous change
3234 2004-04-01 Pascal Obry <obry@gnat.com>
3236 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
3237 only on VMS. This special handling was done because an old GNU/ld bug
3238 on Windows which has been fixed.
3240 2004-04-01 GNAT Script <nobody@gnat.com>
3242 * Make-lang.in: Makefile automatically updated
3244 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3246 * decl.c (gnat_to_gnu_entity, make_type_from_size):
3247 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
3248 * trans.c (tree_transform, convert_with_check): Likewise.
3249 * utils.c (gnat_signed_or_unsigned_type): Likewise.
3250 (build_vms_descriptor, unchecked_convert): Likewise.
3251 * utils2.c (nonbinary_modular_operation): Likewise.
3253 2004-03-29 Javier Miranda <miranda@gnat.com>
3255 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
3256 (Install_Null_Excluding_Check): Local subprogram that determines whether
3257 an access node requires a runtime access check and if so inserts the
3258 appropriate run-time check.
3259 (Apply_Access_Check): Call Install_Null_Excluding check if required
3260 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
3262 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
3264 * einfo.ads: Fix typo in comment
3266 * exp_ch3.adb (Build_Assignment): Generate conversion to the
3267 null-excluding type to force the corresponding run-time check.
3268 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
3269 type to force the corresponding run-time check.
3271 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
3272 the null-excluding type to force the corresponding run-time check.
3274 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
3275 case of access types unless they have the null-excluding attribute.
3277 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
3280 * exp_util.ads: Fix typo in comment
3282 * par.adb (P_Null_Exclusion): New subprogram
3283 (P_Subtype_Indication): New formal that indicates if the null-excluding
3284 part has been scanned-out and it was present
3286 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
3288 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
3289 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
3290 type to force the corresponding run-time check
3291 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
3293 (Resolve_Array_Aggregate): Carry out some static checks
3294 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
3296 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
3297 attribute must be set only if specified by means of the null-excluding
3298 part. In addition, we must also propagate the access-constant attribute
3300 (Access_Subprogram_Declaration, Access_Type_Declaration,
3301 Analyze_Component_Declaration, Analyze_Object_Declaration,
3302 Array_Type_Declaration, Process_Discriminants,
3303 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
3304 and carry out some static checks.
3305 (Build_Derived_Access_Type): Set the null-excluding attribute
3306 (Derived_Type_Declaration, Process_Subtype): Carry out some static
3309 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
3311 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
3313 * sem_ch6.adb (Process_Formals): Carry out some static checks.
3314 (Set_Actual_Subtypes): Generate null-excluding subtype if the
3315 null-excluding part was present; it is not required to be done here in
3316 case of anonymous access types.
3317 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
3320 * sem_res.adb (Resolve_Actuals): Carry out some static check
3321 (Resolve_Null): Allow null in anonymous access
3323 * sinfo.adb: New subprogram Null_Exclusion_Present
3324 All_Present and Constant_Present available on access_definition nodes
3326 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
3327 object_declaration, derived_type_definition, component_definition,
3328 discriminant_specification, access_to_object_definition,
3329 access_function_definition, allocator, access_procedure_definition,
3330 access_definition, parameter_specification, All_Present and
3331 Constant_Present flags available on access_definition nodes.
3333 2004-03-29 Robert Dewar <dewar@gnat.com>
3335 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
3336 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
3337 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
3338 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
3339 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
3340 sem_prag.adb: Updates to handle multiple units/file
3342 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
3344 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
3345 sem_util.adb: Minor reformatting
3347 * sem_ch12.adb: Add comment for previous change
3349 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
3351 * osint.adb (Executable_Prefix): Set Exec_Name to the current
3352 executable name when not initialized. Otherwise, use its current value.
3354 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
3355 initialize it to another executable name than the current one. This
3356 allows to configure paths for an executable name (gnatmake) different
3357 from the current one (gnatdist).
3359 2004-03-29 Ed Schonberg <schonberg@gnat.com>
3361 * exp_ch6.adb (Expand_Call): A call to a function declared in the
3362 current unit cannot be inlined if it appears in the body of a withed
3363 unit, to avoid order of elaboration problems in gigi.
3365 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
3366 information for protected (wrapper) operation as well, to simplify gdb
3369 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
3370 protected body, indicate that the entity for the generated spec comes
3371 from source, to ensure that references are properly generated for it.
3372 (Build_Body_To_Inline): Do not inline a function that returns a
3375 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
3376 apply convention to homonyms that are declared explicitly.
3378 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
3379 that renames an equality operator and the operands are overloaded,
3380 resolve them with the declared formal types, before rewriting as an
3383 2004-03-29 GNAT Script <nobody@gnat.com>
3385 * Make-lang.in: Makefile automatically updated
3387 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
3389 * memtrack.adb: Log realloc calls, which are treated as free followed
3392 2004-03-25 Vincent Celier <celier@gnat.com>
3394 * prj-makr.adb (Process_Directories): Detect when a file contains
3395 several units. Do not include such files in the config pragmas or
3396 in the naming scheme.
3398 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
3399 Resolve links only when not in Trusted_Mode.
3400 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
3401 Do not resolve links for the display names.
3403 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
3404 resolve links when computing the display names.
3406 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
3408 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
3409 attribute reference does not denote a subtype, it can be any
3410 expression that has a classwide type, potentially after an implicit
3411 dereference. In particular, the prefix can be a view conversion for
3412 a classwide type (for which Is_Object_Reference holds), but it can
3413 also be a value conversion for an access-to-classwide type. In the
3414 latter case, there is an implicit dereference, and the original node
3415 for the prefix does not verify Is_Object_Reference.
3417 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
3418 conversion of a discriminant-dependent component of a mutable object
3421 2004-03-25 Ed Schonberg <schonberg@gnat.com>
3423 * freeze.adb (Freeze_Entity): When an inherited subprogram is
3424 inherited, has convention C, and has unconstrained array parameters,
3425 place the corresponding warning on the derived type declaration rather
3426 than the original subprogram.
3428 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
3429 indication on renaming declaration, if formal has a box and actual
3432 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
3433 determine whether to generate an implicit or explicit reference to
3436 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
3437 subprogram renaming comes from a defaulted formal subprogram in an
3440 2004-03-25 Gary Dismukes <dismukes@gnat.com>
3442 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
3443 value expressions to ensure that calls within a component definition
3444 will be checked (since those are evaluated during the record type's
3447 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
3449 * s-tpobop.adb: Code clean up:
3450 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
3452 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
3454 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
3456 * Makefile.in: Clean up in the ravenscar run time.
3458 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3460 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
3461 of No_Strict_Aliasing to build_pointer_type_for_mode.
3462 * utils.c (update_pointer_to): Walk pointer and ref chains.
3464 2004-03-22 Cyrille Comar <comar@act-europe.fr>
3466 * ali.ads: Fix Comment about Dynamic_Elab.
3468 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
3469 Has_RACW, Is_Generic, etc.)
3470 (Output_Object, Gnatls): Take into account ALI files not attached to
3473 2004-03-22 Vincent Celier <celier@gnat.com>
3475 * gprep.adb: Change all String_Access to Name_Id
3476 (Is_ASCII_Letter): new function
3477 (Double_File_Name_Buffer): New procedure
3478 (Preprocess_Infile_Name): New procedure
3479 (Process_Files): New procedure
3480 (Gnatprep): Check if output and input are existing directories.
3481 Call Process_Files to do the real job.
3483 2004-03-22 Robert Dewar <dewar@gnat.com>
3485 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
3486 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
3488 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
3490 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
3491 case when the source contains only comments.
3493 2004-03-22 Ed Schonberg <schonberg@gnat.com>
3495 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
3496 declaration for a child subprogram body that acts as a spec, indicate
3497 that the entity in the declaration needs debugging information.
3499 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
3500 full view if the subtype is created for a constrained record component;
3501 gigi has enough information to construct the record, and there is no
3502 place in the tree for the declaration.
3504 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
3505 serial number for the dummy body that is built for analysis, to avoid
3506 inconsistencies in the generation of internal names when compiling
3509 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
3511 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
3514 2004-03-22 GNAT Script <nobody@gnat.com>
3516 * Make-lang.in: Makefile automatically updated
3518 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3520 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
3521 * trans.c (tree_transform, emit_index_check): Likewise.
3522 * utils.c (build_template): Likewise.
3523 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
3524 (maybe_unconstrained_array, unchecked_convert): Likewise.
3525 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
3526 (build_unary_op): Likewise.
3527 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
3528 (fill_vms_descriptor): Likewise.
3529 (build_call_alloc_dealloc): Likewise.
3531 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
3533 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
3536 * gnat_ug.texi: Add info directory category and entry.
3537 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
3538 gnat_ug_wnt.texi: Regenerate.
3540 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
3542 * ada-tree.h: Update copyright notice.
3545 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
3547 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
3548 as regular exception objects and not as mere integers representing the
3549 condition code. The latter approach required some dynamics to mask off
3550 severity bits, which did not fit well into the GCC table based model.
3551 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
3552 exception data objects. We don't it and it would conflict with the other
3553 external symbol we have to generate for such exceptions.
3555 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
3556 the special code for VMS exceptions, since these are now represented
3557 as regular exceptions objects.
3559 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3561 * decl.c (debug_no_type_hash): Remove.
3562 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
3563 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
3565 2004-03-19 Laurent Guerby <laurent@guerby.net>
3567 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
3568 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
3570 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3572 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
3573 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
3574 (TYPE_RM_SIZE_INT): Directly use type.values.
3575 (TREE_LOOP_ID): Clean up check.
3576 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
3577 TYPE_VALUES, not TYPE_FIELDS.
3578 * trans.c (convert_with_check): Delay access of bounds of basetype
3579 until sure is numeric.
3581 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
3583 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
3586 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
3587 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
3588 Specific.Set instead of direct call to e.g pthread_setspecific.
3590 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
3592 * adaint.c: Update comments.
3594 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
3595 GNATLIB_SHARED for FreeBSD.
3597 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
3599 * init.c [VxWorks]: Do not fix the stack size for the environment task.
3600 When needed (stack checking) the stack size is retrieved
3601 from the VxWorks kernel.
3603 * Makefile.in: Flag -nostdinc is required when building the run time
3604 for avoiding looking for files in the base compiler.
3605 Add the VxWorks specific version of the package body for
3606 System.Stack_checking.Operations (5zstchop.adb).
3608 * Make-lang.in: Add the object file for
3609 System.Stack_Checking.Operations.
3611 * Makefile.rtl: Add object file for the package
3612 System.Stack_Checking.Operations.
3614 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
3616 * s-stache.ads, s-stache.adb: Move the operations related to stack
3617 checking from this package to package System.Stack_Checking.Operations.
3618 This way, stack checking operations are only linked in the final
3619 executable when using the -fstack-check flag.
3621 2004-03-18 Doug Rupp <rupp@gnat.com>
3623 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
3626 * 5qsystem.ads, 5xcrtl.ads: New files.
3628 2004-03-18 Vincent Celier <celier@gnat.com>
3630 * prj.adb (Reset): Reset hash table Files_Htable
3632 * prj-env.adb (Source_Paths, Object_Paths): New tables.
3633 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
3634 the procedures Add_To_Path_File.
3635 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
3636 making sure that each directory is present only once and, for object
3637 dirs, when a directory already present is added, the duplicate is
3638 removed and the directory is always put as the last in the table.
3639 Write the path files at the end of these accumulations.
3641 * prj-nmsc.adb (Record_Source): Add source file name in hash table
3642 Files_Htable for all sources.
3644 * prj-proc.adb (Process): Remove restrictions between not directly
3645 related extending projects.
3647 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
3649 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
3650 (Find_Sources): Minor speed optimization.
3652 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
3653 parameter Trusted_Mode.
3655 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
3657 * scn.adb (Determine_License): Take into account a degenerated case
3658 when the source contains only comments.
3660 2004-03-18 Ed Schonberg <schonberg@gnat.com>
3662 * sem_warn.adb (Check_References): For a warning on a selected
3663 component that does not come from source, locate an uninitialized
3664 component of the record type to produce a more precise error message.
3666 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
3668 * 3zsoccon.ads: Fix multicast options.
3670 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
3673 2004-03-15 Robert Dewar <dewar@gnat.com>
3675 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
3676 pragma used for a private type.
3678 * lib-xref.adb (Generate_Reference): Do not generate warning if
3679 reference is in a different unit from the pragma Unreferenced.
3681 * 5vtpopde.adb: Minor reformatting
3682 Fix casing of To_Task_ID
3684 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
3685 flag if we have an unchecked conversion to an access type in the same
3688 2004-03-15 Geert Bosch <bosch@gnat.com>
3690 * a-ngcoty.adb (Modulus): In alternate formula for large real or
3691 imaginary parts, use Double precision throughout.
3693 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
3694 we want to be able to compile run-time with -gnata for testing, but
3695 this may also be instantiated in user code that is compiled with -gnata.
3697 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
3699 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
3700 codes. Having a separate type for this is useful to enforce consistency
3701 throughout the various run-time units.
3702 (Exception_Data): Use Exception_Code for Import_Code.
3704 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
3705 Natural and Integer in various places.
3706 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
3707 with the severity bits masked off.
3708 (Register_VMS_Exception): Handle the additional exception data pointer
3711 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
3712 component, now reflected by an exported accessor.
3713 (is_handled_by): New routine to compute whether the propagated
3714 occurrence matches some handler choice specification. Extracted out of
3715 get_action_description_for, and expanded to take care of the VMS
3717 (get_action_description_for): Use is_handled_by instead of an explicit
3718 complex condition to decide if the current choice at hand catches the
3719 propagated occurrence.
3721 * raise.h (Exception_Code): New type for C.
3723 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
3724 System.Standard_Library.Exception_Code, to allow references from the
3725 pragma import/export expander.
3727 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
3728 New accessors to allow easy access to GNAT exception data
3730 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
3731 redundant Handled_By_Others component, helper for the personality
3732 routine which will now be able to call the appropriate exception data
3735 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
3736 component of Standard_Exception_Type to be the closest possible to
3737 Exception_Code in System.Standard_Library, that we cannot get at this
3738 point. Expand a ??? comment to notify that this type node should
3739 probably be rewritten later on.
3741 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
3742 registration call to include a pointer to the exception object in the
3745 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
3746 instead of int and explicit bitmasks.
3748 2004-03-15 Vincent Celier <celier@gnat.com>
3750 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
3751 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
3753 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
3754 longer needed now that it is in the spec of
3755 System.Tasking.Task_Attributes.
3757 * adaint.h, adaint.c: (__gnat_create_output_file): New function
3759 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
3761 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
3763 * make.adb (Gnatmake): Do not check the executable suffix; it is being
3764 taken care of in Scan_Make_Arg.
3765 (Scan_Make_Arg): Add the executable suffix only if the argument
3766 following -o, in canonical case, does not end with the executable
3767 suffix. When in verbose mode and executable file name does not end
3768 with executable suffix, output the executable name, in canonical case.
3770 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
3771 to avoid warnings when instantiating Ada.Task_Attributes.
3774 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
3775 in the correct order.
3777 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
3778 redirect standard output and error to a file for the invocation of the
3779 compiler, then read the file.
3781 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
3782 directory, instead of the Value.
3783 (Find_Source_Dirs): Remove useless code & comments.
3785 2004-03-15 Ed Schonberg <schonberg@gnat.com>
3787 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
3788 tagged type is inherited, and the parent operation is not frozen yet,
3789 force generation of a freeze node for the inherited operation, so the
3790 corresponding dispatch entry is properly initialized.
3791 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
3792 when looking for user-defined equality operation.
3794 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
3795 boolean when locating primitive equality of tagged component.
3797 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
3798 bit-aligned field and the right-hand side a string literal, introduce
3799 a temporary before expanding assignment into a loop.
3801 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
3802 priority in full, to ensure that any expanded subepxressions of it are
3803 elaborated in the scope of the init_proc.
3805 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
3806 after object declaration, skipping over code that may have been
3807 generated for validity checks.
3809 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
3810 discriminants, ignore the known discriminants of its full view, if
3811 any, to check legality.
3813 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
3814 component if type has unknown discriminants.
3815 (Analyze_Private_Extension_Declaration): Discriminant constraint is
3816 null if type has unknown discriminants.
3818 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
3819 for end label when present.
3821 * s-fileio.adb (Open): When called with a C_Stream, use given name for
3822 temporary file, rather than an empty string.
3824 2004-03-15 Ed Falis <falis@gnat.com>
3826 * s-thread.adb: Removed, no longer used.
3828 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3830 * decl.c (target.h): Now include.
3831 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
3832 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
3833 (validate_size): For POINTER_TYPE, get smallest size permitted on
3836 * fe.h: Sort Einfo decls and add Set_Mechanism.
3838 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
3839 (ada/decl.o): Depends on target.h.
3841 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
3842 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
3844 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
3846 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
3848 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
3849 Insert_Dereference_Action when rewriting an implicit dereference into
3850 an explicit one, this will be taken care of during expansion of the
3851 explicit dereference.
3852 (Expand_N_Slice): Same. Always do the rewriting, even for the case
3853 of non-packed slices, since the dereference action generated by
3854 expansion of the explicit dereference is needed in any case.
3855 (Expand_N_Selected_Component): When rewriting an implicit dereference,
3856 analyze and resolve the rewritten explicit dereference so it is seen
3858 (Insert_Dereference_Action): This procedure is now called only for the
3859 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
3860 dereferences that do not come from source (including explicit
3861 dereferences resulting from rewriting implicit ones), but do not
3862 recursively insert a check for the dereference nodes contained within
3864 (Insert_Dereference_Action): Clarify and correct comment.
3866 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
3869 Move language detection to the top level.
3870 * config-lang.in: Build by default.
3872 2004-03-05 Robert Dewar <dewar@gnat.com>
3874 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
3876 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
3877 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
3878 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
3879 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
3880 unchecked conversion to spec to avoid warnings.
3882 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
3885 * 7stpopsp.adb: Correct casing in To_Task_ID call
3887 * a-strsea.ads, a-strsea.adb: Minor reformatting
3889 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
3891 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
3892 Adjust Max_Msg_Length to be clearly large enough.
3894 * fe.h: Define In_Same_Source_Unit
3896 * osint.adb: Add pragma Warnings Off to suppress warnings
3897 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
3900 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
3902 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
3904 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
3906 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
3908 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
3910 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
3911 node. We now do generate them for gcc back end.
3913 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
3916 * sinput-c.adb: Fix bad name in header.
3917 Add pragma Warnings Off to suppress aliasing warning.
3919 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
3921 * snames.h, snames.ads, snames.adb: Add entry for pragma
3924 2004-03-05 Vincent Celier <celier@gnat.com>
3926 * prj-com.ads: Add hash table Files_Htable to check when a file name
3927 is already a source of another project.
3929 * prj-nmsc.adb (Record_Source): Before recording a new source, check
3930 if its file name is not already a source of another project. Report an
3933 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
3934 source file name, call gnatpp with all the sources of the main project.
3936 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
3939 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
3940 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
3941 /RUNTIME_SYSTEM=, converted to --RTS=
3942 /NOTABS, converted to -notabs
3944 2004-03-05 Pascal Obry <obry@gnat.com>
3946 * make.adb: Minor reformatting.
3948 2004-03-05 Ed Schonberg <schonberg@gnat.com>
3950 Part of implemention of AI-262.
3951 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
3953 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
3956 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
3957 when component type is a partially constrained class-wide subtype.
3958 (Constrain_Discriminated_Type): If parent type has unknown
3959 discriminants, a constraint is illegal, even if full view has
3961 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
3962 with unknown discriminants whose full view is a discriminated record.
3964 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
3965 flag, to handle properly derivations of tagged types with unknown
3967 (Analyze_Package_Spec, Analyze_Package_Body): Install
3968 Private_With_Clauses before analyzing private part or body.
3970 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
3971 Has_Discriminants can be true for a given type (documentation).
3973 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
3975 * s-restri.ads: Fix license (GPL->GMGPL).
3977 * s-tassta.adb: Minor reformatting.
3979 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
3980 by calls to Exit_One_ATC_Level, since additional clean up is performed
3983 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
3984 by calls to Exit_One_ATC_Level, since additional clean up is performed
3987 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3989 * trans.c: Reflect GCC changes to fix bootstrap problem.
3990 Add warning for suspicious aliasing unchecked conversion.
3992 2004-03-05 GNAT Script <nobody@gnat.com>
3994 * Make-lang.in: Makefile automatically updated
3996 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
3998 * ali.adb (Read_Instantiation_Instance): Do not modify the
3999 current_file_num when reading information about instantiations, since
4000 this corrupts files in later references.
4002 2004-03-02 Vincent Celier <celier@gnat.com>
4004 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
4005 before checking if it is read-only.
4007 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
4008 of SRC_DIRS and eliminate duplicates.
4010 * gprcmd.adb: Replace command "path" with command "path_sep" to return
4012 (Usage): Document path_sep
4014 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
4015 C++ compiler. No need for a script.
4016 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
4017 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
4020 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
4021 where there are Ada sources.
4022 (Set_Ada_Paths): Only add to the include path the source dirs of project
4024 (Add_To_Path): Add the Display_Values of the directories, not their
4027 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
4030 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
4032 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
4033 Value is canonicalized.
4034 (Language_Independent_Check): Do not copy Value to Display_Value when
4035 canonicalizing Value.
4037 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
4038 path to find limited with cycles.
4039 (Parse_Single_Project): Use canonical cased path to find the end of a
4042 2004-03-02 Ed Schonberg <schonberg@gnat.com>
4044 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
4045 and not a child unit.
4047 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
4048 appear in a with_clause.
4050 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
4051 only happen in type_annotate mode, do not try to elaborate it.
4053 * exp_util.adb (Force_Evaluation): If expression is a selected
4054 component on the left of an assignment, use a renaming rather than a
4055 temporary to remove side effects.
4057 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
4058 inlined instance body, which is analyzed before the end of the
4061 2004-03-02 Robert Dewar <dewar@gnat.com>
4063 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
4064 sem_ch4.adb: Use new feature for substitution of keywords in VMS
4066 * errout.ads, errout.adb: Implement new circuit for substitution of
4069 * sem_case.adb (Analyze_Choices): Place message properly when case is
4070 a subtype reference rather than an explicit range.
4072 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
4074 2004-03-02 Doug Rupp <rupp@gnat.com>
4076 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
4078 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
4080 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
4082 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4084 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
4087 2004-02-25 Robert Dewar <dewar@gnat.com>
4089 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
4090 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
4091 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
4092 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
4093 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
4094 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
4095 the defining instance of the type to avoid aliasing problems.
4096 Fix copyright header. Fix bad comments in package header.
4098 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
4100 2004-02-25 Ed Schonberg <schonberg@gnat.com>
4102 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
4103 rewritten as references when aliased through an address clause.
4105 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
4106 whether call can be interpreted as an indirect call to the result of a
4107 parameterless function call returning an access subprogram.
4109 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
4112 * exp_ch7.adb (Make_Clean): Remove generation of calls to
4113 Unlock[_Entries], since this is now done by Service_Entries directly.
4115 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
4117 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
4118 Requeue_Call for better code readability. Change spec and update calls:
4119 PO_Service_Entries now unlock the PO on exit.
4120 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
4123 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
4125 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
4127 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
4129 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
4130 protected subprogram call and analyzing the result of such expanding
4131 in case when the called protected subprogram is eliminated.
4133 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
4136 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
4138 * Makefile.in: Clean ups.
4140 2004-02-23 Ed Schonberg <schonberg@gnat.com>
4142 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
4143 protected operations if original subprogram is flagged as eliminated.
4144 (Expand_N_Subprogram_Body): For a protected operation, create
4145 discriminals for next operation before checking whether the operation
4148 * exp_ch9.adb (Expand_N_Protected_Body,
4149 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
4150 for internal protected operations if the original subprogram is
4153 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
4154 declared in a single protected object.
4156 2004-02-23 Vincent Celier <celier@gnat.com>
4158 * prj-attr.adb: Make attribute Builder'Executable an associative array,
4159 case insensitive if file names are case insensitive, instead of a
4160 standard associative array.
4162 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
4163 them as case insensitive on platforms where the file names are case
4166 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
4167 project file has already been parsed that canonical path are compared.
4169 2004-02-23 Robert Dewar <dewar@gnat.com>
4171 * sinput-c.ads: Correct bad unit title in header
4173 * freeze.adb: Minor reformatting
4175 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4177 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
4178 nonaddressable COMPONENT_REF that is removing padding that we are
4179 taking the address of, take the address of the padded record instead
4180 if item is variable size.
4182 2004-02-20 Robert Dewar <dewar@gnat.com>
4184 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
4186 2004-02-20 Ed Schonberg <schonberg@gnat.com>
4188 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
4189 itype references for the constrained designated type of a component
4190 whose base type is already frozen.
4192 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
4194 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
4197 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
4199 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
4200 identifier for a phantom package that rewrites the formal package
4201 declaration with a box. The Add semantic decorations for the defining
4202 identifier from the original node (that represents the formal package).
4204 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
4206 * Make-lang.in (ada/stamp-sdefault): Use the top level
4209 2004-02-19 Richard Henderson <rth@redhat.com>
4211 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
4213 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
4215 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
4216 Scan_ALI can be used for multiple ALI files without reinitializing
4219 2004-02-18 Robert Dewar <dewar@gnat.com>
4221 * debug.adb: Minor reformatting.
4223 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4225 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
4226 to zero if there is an address clause.
4228 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
4230 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
4232 2004-02-18 Gary Dismukes <dismukes@gnat.com>
4234 * layout.adb (Layout_Component_List): Revise generation of call to
4235 discriminant-checking function to pass selections of all of the type's
4236 discriminants rather than just the variant-controlling discriminant.
4238 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
4240 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
4241 fail in the current setup and triggers spurious system error messages.
4242 Pretend it occurred and failed instead.
4244 2004-02-18 Vincent Celier <celier@gnat.com>
4246 * bld.adb: Mark FLDFLAGS as saved
4247 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
4248 it is not the root project. Put each directory to be
4249 extended between double quotes to prevent it to be expanded on Windows.
4250 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
4251 the project file. Set them back to their initial values if they have not
4252 been set in the project file.
4254 * gprcmd.adb: (Gprdebug, Debug): New global variables
4255 (Display_Command): New procedure
4256 (Usage): Document new command "linkopts"
4257 Call Display_Command when env var GPRDEBUG has the value "TRUE"
4258 Implement new command "linkopts"
4259 Remove quotes that may be around arguments for "extend"
4260 Always call Normalize_Pathname with arguments formatted for the platform
4262 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
4263 Change @echo to @$(display) in target clean to be able to clean silently
4265 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
4267 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
4270 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
4271 = Extending_All when current project is an extending all project.
4273 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
4274 set to True only for LINK command, after Unix switch -o.
4275 (Process_Arguments): Set Output_File_Expected to True for LINK command
4276 after Unix switch -o. When Output_File_Expected is True, never add an
4277 extension to a file name.
4279 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
4280 option file name, only to the --for-linker= switch.
4281 (Option_File_Name): If option file name do not end with ".opt", append
4284 2004-02-18 GNAT Script <nobody@gnat.com>
4286 * Make-lang.in: Makefile automatically updated
4288 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
4290 * Make-lang.in (stamp-sdefault): Do not depend on
4293 2004-02-12 Zack Weinberg <zack@codesourcery.com>
4295 * config-lang.in: Disable Ada by default until probe logic for
4296 a bootstrap Ada compiler can be moved to the top level configure
4299 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
4301 * decl.c (components_to_record): Don't claim that the internal fields
4302 we make to hold the variant parts are semantically addressable, because
4305 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
4306 adjust the comment describing the modular type form when we can use it.
4307 (Install_PAT): Account for the Esiz renaming.
4309 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
4310 sc_onstack context indication before raising the exception to which
4311 the signal is mapped. Allows better handling of later signals possibly
4312 triggered by the resumed user code if the exception is handled.
4314 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
4316 * 5zinit.adb: Removed, no longer used.
4318 2004-02-12 Robert Dewar <dewar@gnat.com>
4320 * ali.adb: Remove separating space between parameters on R line. Makes
4321 format consistent with format used by the binder for Set_Globals call.
4323 * atree.ads, atree.adb: Minor reformatting (new function header format)
4325 * bindgen.adb: Add Run-Time Globals documentation section containing
4326 detailed documentation of the globals passed from the binder file to
4329 * gnatls.adb: Minor reformatting
4331 * init.c (__gnat_set_globals): Add note pointing to documentation in
4334 * lib-writ.ads, lib-writ.adb: Remove separating space between
4335 parameters on R line.
4336 Makes format consistent with format used by the binder for Set_Globals
4339 * osint.ads: Add 2004 to copyright notice
4342 * snames.ads: Correct capitalization of FIFO_Within_Priorities
4343 Noticed during code reading, documentation issue only
4345 * usage.adb: Remove junk line for obsolete C switch
4346 Noticed during code reading
4348 2004-02-12 Vincent Celier <celier@gnat.com>
4350 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
4351 extend for each directory, so that multiple /** directories are
4352 extended individually.
4353 (Recursive_Process): Set the default for LANGUAGES to ada
4355 * gprcmd.adb: Define new command "ignore", to do nothing.
4356 Implement new comment "path".
4358 * Makefile.generic: Suppress output when SILENT is set
4359 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
4360 used, so that the correct compiler is invoked.
4361 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
4362 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
4364 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
4366 * Makefile.in: Clean ups and remove obsolete targets.
4368 2004-02-12 Ed Schonberg <schonberg@gnat.com>
4370 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
4371 predicate declared in exp_util.
4373 * exp_util.adb: Add comments.
4375 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
4376 visibility before compiling context of the subunit.
4378 * sem_res.adb (Check_Parameterless_Call): If the context expects a
4379 value but the name is a procedure, do not attempt to analyze as a call,
4380 in order to obtain more telling diagnostics.
4382 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
4383 'Access on parameterless function calls.
4384 (Normalize_Actuals): For a parameterless function call with missing
4385 actuals, defer diagnostic until resolution of enclosing call.
4387 * sem_util.adb (Wrong_Type): If the context type is an access to
4388 subprogram and the expression is a procedure name, suggest a missing
4391 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
4392 Nathanael Nerode <neroden@gcc.gnu.org>
4394 PR ada/6637, PR ada/5911
4395 Merge with libada-branch:
4396 * config-lang.in: Build libada only when ada is built.
4398 2004-02-09 Ed Schonberg <schonberg@gnat.com>
4400 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
4401 for a tagged type, verify that both formals have the same type.
4403 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
4404 temporary when the formal is an in-parameter and the actual a possibly
4407 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
4408 when expansion is disabled, to ensure proper name capture with
4409 overloaded literals. Condition can be of any boolean type, resolve
4412 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
4413 renaming is for a formal subprogram with a default operator name, and
4414 there is a usable operator that is visible at the point of
4417 2004-02-09 Robert Dewar <dewar@gnat.com>
4419 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
4420 rewrite to ignore errors in ali files, intended to allow tools downward
4421 compatibility with new versions of ali files.
4423 * ali.ads: Add new parameter Ignore_Errors
4425 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
4426 duplicating the error message giving the file with restrictions.
4428 * debug.adb: Add debug flag I for gnatbind
4430 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
4431 operators for the case where the operator is a defining operator.
4433 * exp_ch3.adb: Minor reformatting (new function spec format).
4435 * exp_ch4.adb: Add comment for previous change, and make minor
4436 adjustment to loop to always check for improper loop termination.
4437 Minor reformatting throughout (new function spec format).
4439 * gnatbind.adb: Implement -di debug flag for gnatbind
4441 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
4443 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
4445 * lib-load.adb: Fix bad assertion.
4446 Found by testing and code reading.
4449 * lib-load.ads: Minor reformatting.
4451 * lib-writ.adb: There is only one R line now.
4453 * lib-writ.ads: Add documentation on making downward compatible changes
4454 to ali files so old tools work with new ali files.
4455 There is only one R line now.
4456 Add documentation on format incompatibilities (with special GPS note)
4458 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
4460 * par-load.adb: Minor reformatting
4462 * sem_ch8.adb: Fix to error message from last update
4463 Minor reformatting and restructuring of code from last update
4465 * par-prag.adb, snames.adb, snames.ads, snames.h,
4466 sem_prag.adb: Implement pragma Profile.
4468 * stylesw.adb: Implement -gnatyN switch to turn off all style check
4471 * usage.adb: Add line for -gnatyN switch
4473 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
4475 2004-02-09 Albert Lee <lee@gnat.com>
4477 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
4479 2004-02-09 Ed Schonberg <schonberg@gnat.com>
4481 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
4484 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
4485 is nested in an instance that is not frozen yet, to avoid
4486 order-of-elaboration problems in gigi.
4488 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
4489 body the attribute is legal.
4491 2004-02-09 Robert Dewar <dewar@gnat.com>
4493 * s-rident.ads: Minor comment correction
4495 * targparm.adb: Remove dependence on uintp completely. There was
4496 always a bug in Make in that it called Targparm before initializing
4497 the Uint package. The old code appeared to get away with this, but
4498 the new code did not! This caused an assertion error in gnatmake.
4500 * targparm.ads: Fix bad comment, restriction pragmas with parameters
4501 are indeed fully supported.
4503 2004-02-06 Alan Modra <amodra@bigpond.net.au>
4505 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
4507 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
4509 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
4510 with targetm.calls.promote_prototypes.
4512 2004-02-04 Robert Dewar <dewar@gnat.com>
4514 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
4515 ali.ads, gprcmd.adb: Minor reformatting
4517 * bindgen.adb: Output restrictions string for new style restrictions
4520 * impunit.adb: Add s-rident.ads (System.Rident) and
4521 s-restri (System.Restrictions)
4523 * lib-writ.adb: Fix bug in writing restrictions string (last few
4526 * s-restri.ads, s-restri.adb: Change name Restrictions to
4527 Run_Time_Restrictions to avoid conflict with package name.
4528 Add circuit to read and acquire run time restrictions.
4530 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
4532 * restrict.ads, restrict.adb: Use the new restriction
4533 No_Task_Attributes_Package instead of the old No_Task_Attributes.
4535 * sem_prag.adb: No_Task_Attributes is a synonym of
4536 No_Task_Attributes_Package.
4538 * snames.ads, snames.adb: New entry for proper handling of
4541 * s-rident.ads: Adding restriction No_Task_Attributes_Package
4542 (AI-00249) that supersedes the GNAT specific restriction
4545 2004-02-04 Ed Schonberg <schonberg@gnat.com>
4548 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
4549 body, an identifier may be wrapped in an unchecked conversion.
4551 2004-02-04 Vincent Celier <celier@gnat.com>
4553 * lib-writ.ads: Comment update for the W lines
4555 * bld.adb: (Expression): An empty string list is static
4557 * fname-uf.adb: Minor comment update
4559 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
4561 * gnatbind.adb: Initialize Cumulative_Restrictions with the
4562 restrictions on the target.
4564 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
4566 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
4569 2004-02-02 Arnaud Charlet <charlet@gnat.com>
4571 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
4573 2004-02-02 Vincent Celier <celier@gnat.com>
4575 * gprcmd.adb (Check_Args): If condition is false, print the invoked
4576 comment before the usage.
4577 Gprcmd: Fail when command is not recognized.
4578 (Usage): Document command "prefix"
4580 * g-md5.adb (Digest): Process last block.
4581 (Update): Do not process last block. Store remaining characters and
4584 * g-md5.ads (Update): Document that several call to update are
4585 equivalent to one call with the concatenated string.
4586 (Context): Add fields to allow new Update behaviour.
4588 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
4590 When May_Fail is True and no existing file can be found, return No_File.
4592 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
4595 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
4596 spec file name instead on the W line.
4598 2004-02-02 Robert Dewar <dewar@gnat.com>
4600 * ali.adb: Read and acquire info from new format restrictions lines
4602 * bcheck.adb: Add circuits for checking restrictions with parameters
4604 * bindgen.adb: Output dummy restrictions data
4607 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
4608 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
4609 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
4610 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
4611 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
4613 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
4614 the warning message on access to possibly uninitialized variable S)
4615 Minor changes for new restrictions handling.
4617 * gnatbind.adb: Minor reformatting
4618 Minor changes for new restrictions handling
4619 Move circuit for -r processing here from bcheck (cleaner)
4621 * gnatcmd.adb, gnatlink.adb: Minor reformatting
4623 * lib-writ.adb: Output new format restrictions lines
4625 * lib-writ.ads: Document new R format lines for new restrictions
4628 * s-restri.ads/adb: New files
4630 * Makefile.rtl: Add entry for s-restri.ads/adb
4632 * par-ch3.adb: Fix bad error messages starting with upper case letter
4635 * restrict.adb: Major rewrite throughout for new restrictions handling
4636 Major point is to handle restrictions with parameters
4638 * restrict.ads: Major changes in interface to handle restrictions with
4639 parameters. Also generally simplifies setting of restrictions.
4641 * snames.ads/adb: New entry for proper handling of No_Requeue
4643 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
4644 restriction counting.
4645 Other minor changes for new restrictions handling
4647 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
4648 Restriction_Warnings now allows full parameter notation
4649 Major rewrite of Restrictions for new restrictions handling
4651 2004-02-02 Javier Miranda <miranda@gnat.com>
4653 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
4654 syntax rule for object renaming declarations.
4655 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
4656 component definitions.
4658 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
4660 (Array_Type_Declaration): Give support to access components. In addition
4661 it was also modified to reflect the name of the object in anonymous
4662 array types. The old code did not take into account that it is possible
4663 to have an unconstrained anonymous array with an initial value.
4664 (Check_Or_Process_Discriminants): Allow access discriminant in
4666 (Process_Discriminants): Allow access discriminant in non-limited types
4667 Initialize the new Access_Definition field in N_Object_Renaming_Decl
4668 node. Change Ada0Y to Ada 0Y in comments
4670 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
4672 Change Ada0Y to Ada 0Y in comments
4674 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
4675 renamings Change Ada0Y to Ada 0Y in comments
4677 * sem_type.adb (Find_Unique_Type): Give support to the equality
4678 operators for universal access types
4679 Change Ada0Y to Ada 0Y in comments
4681 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
4683 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
4685 (N_Object_Renaming_Declaration): Addition of Access_Definition field
4686 Change Ada0Y to Ada 0Y in comments
4688 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
4689 component definition and object renaming nodes
4690 Change Ada0Y to Ada 0Y in comments
4692 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
4694 * restrict.adb: Use the new restriction identifier
4695 No_Requeue_Statements instead of the old No_Requeue for defining the
4698 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
4699 No_Requeue_Statements.
4701 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
4702 that supersedes the GNAT specific restriction No_Requeue. The later is
4703 kept for backward compatibility.
4705 2004-02-02 Ed Schonberg <schonberg@gnat.com>
4707 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
4708 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
4709 pragma and fix incorrect ones.
4711 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
4712 warning if the pragma is redundant.
4714 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
4716 * 5staprop.adb: Add missing 'constant' keywords.
4718 * Makefile.in: use consistent value for SYMLIB on
4719 platforms where libaddr2line is supported.
4721 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4723 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
4726 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
4728 * init.c (__gnat_install_handler): Setup an alternate stack for signal
4729 handlers in the environment thread. This allows proper propagation of
4730 an exception on stack overflows in this thread even when the builtin
4731 ABI stack-checking scheme is used without support for a stack reserve
4734 * utils.c (create_field_decl): Augment the head comment about bitfield
4735 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
4736 here, because the former is not accurate enough at this point.
4737 Let finish_record_type decide instead.
4738 Don't make a bitfield if the field is to be addressable.
4739 Always set a size for the field if the record is packed, to ensure the
4740 checks for bitfield creation are triggered.
4741 (finish_record_type): During last pass over the fields, clear
4742 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
4743 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
4744 from DECL_BIT_FIELD.
4746 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
4748 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
4749 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
4750 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
4752 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4754 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
4756 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
4757 (ZCX_By_Default): Likewise.
4758 (Front_End_ZCX_Support): Likewise.
4760 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
4761 (Initialize_Lock): Mark Level unreferenced.
4762 (Sleep): Mark Reason unreferenced.
4763 (Timed_Sleep): Likewise.
4765 (Exit_Task): Use Result.
4766 (Check_No_Locks): Mark Self_ID unreferenced.
4768 * 5gtasinf.adb (New_Sproc): Make Attr constant.
4769 (Bound_Thread_Attributes): Make Sproc constant.
4770 (New_Bound_Thread_Attributes): Likewise.
4772 2004-01-26 Ed Schonberg <schonberg@gnat.com>
4774 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
4775 one-dimensional array an slice assignments, when component type is
4778 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
4779 component type is controlled, and control_actions are in effect, use
4780 TSS procedure rather than generating inline code.
4782 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
4783 arrays with controlled components.
4785 2004-01-26 Vincent Celier <celier@gnat.com>
4787 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
4788 command line for the non VMS case.
4790 * gnatlink.adb (Process_Binder_File): When building object file, if
4791 GNU linker is used, put all object paths between quotes, to prevent ld
4792 error when there are unusual characters (such as '!') in the paths.
4794 * Makefile.generic: When there are sources in Ada and the main is in
4795 C/C++, invoke gnatmake with -B, instead of -z.
4797 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
4798 from VMS_Conversion.
4799 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
4800 specification of argument file on the command line.
4802 2004-01-26 Bernard Banner <banner@gnat.com>
4804 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
4806 2004-01-26 Ed Schonberg <schonberg@gnat.com>
4808 * snames.adb: Update copyright notice.
4809 Add info on slice assignment for controlled arrays.
4811 2004-01-23 Robert Dewar <dewar@gnat.com>
4813 * exp_aggr.adb: Minor reformatting
4815 * exp_ch9.adb: Minor code clean up
4817 Fix bad character in comment
4820 * targparm.adb (Get_Target_Parameters): Give clean abort error on
4821 unexpected end of file, along with more detailed message.
4823 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4825 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
4828 * decl.c (copy_alias_set): New function.
4829 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
4831 2004-01-23 Doug Rupp <rupp@gnat.com>
4833 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
4834 lib$${file} in case subsequent character is not a separator.
4836 2004-01-23 Vincent Celier <celier@gnat.com>
4838 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
4839 when the GCC version is at least 3.
4841 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
4842 Remove all "Opt.", to prepare for opt split
4844 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
4845 Extends_All. Set to True when the project parsed is an extending all
4846 project. Fails for importing an extending all project only when the
4847 imported project is an extending all project.
4848 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
4849 depending on the value of Extends_All returned.
4851 * prj-proc.adb (Process): Check that no project shares its object
4852 directory with a project that extends it, directly or indirectly,
4853 including a virtual project.
4854 Check that no project extended by another project shares its object
4855 directory with another also extended project.
4857 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
4858 Kind = N_With_Clause
4860 * prj-tree.ads: Minor reformatting
4861 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
4863 2004-01-23 Ed Schonberg <schonberg@gnat.com>
4865 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
4866 applies to a type with an incomplete view, use full view in Name of
4867 clause, for consistency with uses of Get_Attribute_Definition_Clause.
4869 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
4871 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
4872 SCHED_RR, since other values are not supported by this policy.
4873 (Initialize): Move initialization of mutex attribute to package
4874 elaboration, to prevent early access to this variable.
4876 * Makefile.in: Remove mention of Makefile.adalib, unused.
4878 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
4879 1ssecsta.ads: Removed, unused.
4881 2004-01-21 Javier Miranda <miranda@gnat.com>
4883 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
4884 entity if already built in the current scope.
4886 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
4887 reminder in internal scopes. Required for nested limited aggregates.
4889 2004-01-21 Doug Rupp <rupp@gnat.com>
4891 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
4892 VMS. Replace all occurences of libgnat- and libgnarl- with
4893 libgnat$(hyphen) and libgnarl$(hyphen).
4894 Fixed shared library build problem on VMS.
4896 2004-01-21 Robert Dewar <dewar@gnat.com>
4898 * mlib-prj.adb: Minor reformatting
4900 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
4902 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
4903 'constant' keywords for declaration of pointers that are not modified.
4905 * exp_pakd.adb: Fix English in comment.
4907 2004-01-21 Ed Schonberg <schonberg@gnat.com>
4910 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
4911 copy all attributes of the parent, including the foreign language
4914 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
4917 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
4918 for 'delay until' statement.
4920 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
4922 * Make-lang.in: Replace $(docdir) with doc.
4923 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
4924 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
4925 to use consistent MAKEINFO rule.
4926 (ada.man, ada.srcman): Dummy entry.
4927 (ADA_INFOFILES): Define.
4928 (ada.info, ada.srcinfo): New rules.
4930 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
4932 * utils.c: Update copyright notice, missed in previous change.
4934 2004-01-19 Vincent Celier <celier@gnat.com>
4936 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
4937 args if Bind is True. Set First_ALI, if not already done.
4938 (Build_Library): For Stand Alone Libraries, extract from one ALI file
4939 an eventual --RTS switch, for gnatbind, and all backend switches +
4942 2004-01-19 Robert Dewar <dewar@gnat.com>
4944 * sem_attr.adb, memtrack.adb: Minor reformatting
4946 2004-01-19 Ed Schonberg <schonberg@gnat.com>
4948 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
4949 that rename enumeration literals. This is properly done in sem_eval.
4951 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
4952 to functions that rename enumeration literals.
4954 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
4955 functions that rename enumeration literals.
4957 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
4959 * Make-lang.in (utils.o): Depend on target.h.
4960 * utils.c: Include target.h.
4961 (process_attributes): Use targetm.have_named_sections instead
4962 of ASM_OUTPUT_SECTION_NAME.
4964 2004-01-16 Andreas Jaeger <aj@suse.de>
4966 * Makefile.in: Add $(DESTDIR).
4968 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
4970 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
4971 also when not defining if a Size clause applies. That information is
4974 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
4976 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
4977 symbolic links for the shared gnat run time when needed.
4979 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
4981 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
4982 for writing, and terminate with an error message if not.
4984 2004-01-15 Ed Schonberg <schonberg@gnat.com>
4986 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
4987 warning on an access to subprogram in an instance, when the target
4988 type is declared in the same generic unit.
4989 (Eval_Attribute): If 'access is known to fail accessibility check,
4990 rewrite as a raise statement.
4992 2004-01-15 GNAT Script <nobody@gnat.com>
4994 * Make-lang.in: Makefile automatically updated
4996 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
4998 * Make-lang.in (ada.srcextra): Dummy entry.
5000 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
5002 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
5004 2004-01-13 Ed Schonberg <schonberg@gnat.com>
5006 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
5007 components that are initialized with aggregates.
5009 2004-01-13 Vincent Celier <celier@gnat.com>
5011 * gnatlink.adb (Process_Binder_File): To find directory of shared
5012 libgcc, if "gcc-lib" is not a subdirectory, look for the last
5013 subdirectory "lib" in the path of the shared libgnat or libgnarl.
5015 * make.adb (Gnatmake): If GCC version is at least 3, link with
5016 -shared-libgcc, when there is at least one shared library project.
5018 * opt.ads (GCC_Version): New integer constant.
5020 * adaint.c (get_gcc_version): New function.
5022 2004-01-13 Robert Dewar <dewar@gnat.com>
5024 * sem_dist.adb, sem_res.adb, sem_util.adb,
5025 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
5026 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
5028 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
5030 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
5031 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
5034 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
5036 * misc.c: Remove trailing spaces.
5037 Update copyright notice missed in previous change.
5040 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
5043 * Makefile.generic: Update copyright.
5046 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
5047 of prefix/share/make.
5049 * Makefile.prolog: Update copyright.
5052 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
5054 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
5055 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
5056 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
5059 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
5062 2004-01-12 Javier Miranda <miranda@gnat.com>
5064 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
5065 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
5066 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
5067 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
5068 Component_Definition node.
5070 2004-01-12 Ed Falis <falis@gnat.com>
5072 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
5074 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
5076 * link.c: Change default libgnat kind to STATIC for FreeBSD.
5078 2004-01-12 Bernard Banner <banner@gnat.com>
5080 * Makefile.in: map 86numaux to a-numaux for x86_64
5082 2004-01-12 Ed Schonberg <schonberg@gnat.com>
5084 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
5085 generated to rename a generic actual, go to the actual itself, the
5086 subtype is not a user-visible entity.
5088 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
5089 part is a private subtype, reset the visibility of its full view, if
5090 any, to be consistent.
5093 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
5094 to use a generic package G as a formal package for another generic
5097 2004-01-12 Robert Dewar <dewar@gnat.com>
5099 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
5101 * usage.adb: Remove mention of obsolete -gnatwb switch
5102 Noticed during code reading
5104 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
5106 * 1ssecsta.adb: Minor changes for -gnatwa warnings
5108 2004-01-12 GNAT Script <nobody@gnat.com>
5110 * Make-lang.in: Makefile automatically updated
5112 2004-01-09 Mark Mitchell <mark@codesourcery.com>
5114 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
5116 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5118 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
5120 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
5122 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
5123 Update comment and copyright date.
5124 * stamp-xgnatug: Delete.
5126 2004-01-05 Robert Dewar <dewar@gnat.com>
5128 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
5129 be modified by the binder generated main program if the -D switch is
5132 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
5133 imported functions (since now we expect this to be done for imported
5136 * 5vtaprop.adb: Add several ??? for sections requiring more comments
5137 Minor reformatting throughout
5139 * 5zinit.adb: Minor reformatting
5140 Add 2004 to copyright date
5141 Minor changes to avoid -gnatwa warnings
5142 Correct some instances of using OR instead of OR ELSE (noted while
5145 * sprint.adb: Minor updates to avoid -gnatwa warnings
5147 * s-secsta.ads, s-secsta.adb:
5148 (SS_Get_Max): New function to obtain high water mark for ss stack
5149 Default_Secondary_Stack is not a constant since it may be modified by
5150 the binder generated main program if the -D switch is used.
5152 * switch-b.adb: New -Dnnn switch for binder
5155 Make -gnatg imply all warnings currently in -gnatwa
5157 * vms_conv.adb: Minor reformatting
5158 Add 2004 to copyright notice
5159 Add 2004 to printed copyright notice
5161 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
5162 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
5163 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
5164 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
5165 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
5166 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
5167 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
5168 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
5169 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
5170 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
5171 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
5172 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
5173 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
5174 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
5175 checks.adb, clean.adb, cstand.adb, einfo.ads,
5176 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
5177 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
5178 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
5179 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
5180 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
5181 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
5182 Minor reformatting and code clean ups.
5183 Minor changes to prevent -gnatwa warnings
5185 * ali.adb: Minor reformatting and cleanup of code
5186 Acquire new SS indication of secondary stack use from ali files
5188 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
5189 (since now we expect this to be done for imported functions)
5191 * bindgen.adb: Generate call to modify default secondary stack size if
5194 * bindusg.adb: Add line for new -D switch
5196 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
5197 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
5198 Add circuitry for both records and arrays to avoid gigi
5199 processing if the type involved has non-bit-aligned components
5201 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
5202 N_String_Literal node always references an E_String_Literal_Subtype
5203 entity. This may not be true in the future.
5204 (Possible_Bit_Aligned_Component): Move processing of
5205 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
5207 * exp_ch6.adb (Expand_Thread_Body): Pick up
5208 Default_Secondary_Stack_Size as variable so that we get value modified
5209 by possible -Dnnn binder parameter.
5211 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
5212 (Type_May_Have_Bit_Aligned_Components): New function.
5214 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
5215 (Type_May_Have_Bit_Aligned_Components): New function.
5217 * fe.h: (Set_Identifier_Casing): Fix prototype.
5218 Add declaration for Sem_Elim.Eliminate_Error_Msg.
5221 * freeze.adb (Freeze_Entity): Add RM reference to error message about
5222 importing constant atomic/volatile objects.
5223 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
5224 unless explicit Pure_Function pragma given, to avoid insidious bug of
5225 call to non-pure imported function getting eliminated.
5227 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
5228 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
5229 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
5230 Add 2004 to printed copyright notice
5232 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
5235 * Makefile.rtl: Add entry for g-sestin.o
5236 g-sestin.ads: New file.
5238 * mdll.adb: Minor changes to avoid -gnatwa warnings
5240 * mlib-tgt.adb: Minor reformatting
5242 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
5243 New switch Sec_Stack_Used (GNAT, GNATBIND)
5244 Make Default_Secondary_Stack_Size a variable instead of a constant,
5245 so that it can be modified by the new -Dnnn bind switch.
5247 * rtsfind.adb (Load_Fail): Give full error message in configurable
5248 run-time mode if all_errors mode is set. This was not done in the case
5249 of a file not found, which was an oversight.
5250 Note if secondary stack unit is used by compiler.
5252 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
5253 ineffective elaborate all pragmas on non-visible packages (this
5254 happened when a renamed subprogram was called). Now the elaborate all
5255 always goes on the package containing the renaming rather than the one
5256 containing the renamed subprogram.
5258 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
5259 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
5261 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
5262 has an Etype that references an E_String_Literal.
5263 (Eval_String_Literal): Avoid assumption that N_String_Literal node
5264 always references an E_String_Literal_Subtype entity. This may not
5265 be true in the future.
5267 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
5270 * sem_res.adb (Resolve): Specialize msg for function name used in proc
5273 2004-01-05 Ed Falis <falis@gnat.com>
5275 * g-debuti.adb: Replaced direct boolean operator with short-circuit
5278 2004-01-05 Vincent Celier <celier@gnat.com>
5280 * bld.adb: Minor comment updates
5281 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
5284 * make.adb (Gnatmake): Special process for files to compile/check when
5285 -B is specified. Fail when there are only foreign mains in attribute
5286 Main of the project file and -B is not specified. Do not skip bind/link
5287 steps when -B is specified.
5289 * makeusg.adb: Document new switch -B
5291 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
5293 * switch-m.adb: (Scan_Make_Switches): Process -B switch
5295 * vms_data.ads: Add new GNAT PRETTY qualifier
5296 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
5298 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5300 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
5303 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
5304 Set_Identifier_Casing.
5306 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
5307 has size that overflows.
5309 2004-01-05 Gary Dismukes <dismukes@gnat.com>
5311 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
5312 -gnatwa warning on static condition.
5314 2004-01-05 Doug Rupp <rupp@gnat.com>
5316 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
5318 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
5320 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
5321 all attributes, including read-only attribute.
5323 2004-01-05 Pascal Obry <obry@gnat.com>
5325 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
5326 library naming scheme.
5328 * mlib-prj.adb (Build_Library): Generate different names for the static
5329 or dynamic version of the GNAT runtime. This is needed to support the
5330 new shared library naming scheme.
5331 (Process_Binder_File): Add detection of shared library in binder file
5332 based on the new naming scheme.
5334 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
5335 scheme for the shared runtime libraries.
5338 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
5340 (install-gnatlib): Do not create symlinks for shared libraries.
5341 (gnatlib-shared-default): Idem.
5342 (gnatlib-shared-dual-win32): New target. Not used for now as the
5343 auto-import feature does not support arrays/records.
5344 (gnatlib-shared-win32): Do not create copy for the shared libraries.
5345 (gnatlib-shared-vms): Fix shared runtime libraries names.
5347 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
5348 dependent runtime shared library name.
5350 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
5352 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
5355 2004-01-05 Ed Schonberg <schonberg@gnat.com>
5357 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
5358 protected objects when allocator has a subtype indication, not a
5359 qualified expression. Note that qualified expressions may have to be
5360 checked when limited aggregates are implemented.
5362 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
5364 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
5365 subprogram is imported, remove warning.
5367 2004-01-05 Geert Bosch <bosch@gnat.com>
5369 * s-poosiz.adb: Update copyright notice.
5370 (Allocate): Use Task_Lock to protect against concurrent access.
5371 (Deallocate): Likewise.
5373 2004-01-05 Joel Brobecker <brobecker@gnat.com>
5375 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
5378 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
5380 * gnat_ug.texi: Force a CVS commit by updating copyright.
5381 * gnat_ug_vxw.texi: Regenerate.
5382 * gnat_ug_wnt.texi: Regenerate.
5383 * gnat_ug_vms.texi: Regenerate.
5384 * gnat_ug_unx.texi: Regenerate.
5386 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
5388 * trans.c: Remove uses of "register" specifier in
5389 declarations of local variables.
5391 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
5393 * stamp-xgnatug: New stamp file.
5394 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
5395 (ada/doctools/xgnatug): Add $(build_exeext).
5396 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
5397 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
5399 2003-12-17 Ed Falis <falis@gnat.com>
5401 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
5404 * a-exextr.adb: Add context clause for
5405 Ada.Exceptions.Last_Chance_Handler.
5407 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
5409 * cstand.adb (Create_Standard): Change the way how the declaration of
5410 the Duration type is created (making it the same way as it is for all
5411 the other standard types).
5413 2003-12-17 Robert Dewar <dewar@gnat.com>
5415 * s-crtl.ads: Fix header format
5416 Change Pure to Preelaborate
5418 2003-12-17 Ed Schonberg <schonberg@gnat.com>
5420 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
5421 the expression type only if it is declared in the current unit.
5423 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
5424 are universal and already analyzed, as can occur in constrained
5425 subcomponents that depend on discriminants, when one constraint is a
5428 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
5429 type Any_Fixed is legal as the argument of a conversion, if only one
5430 fixed-point type is in context.
5432 2003-12-17 GNAT Script <nobody@gnat.com>
5434 * Make-lang.in: Makefile automatically updated
5436 2003-12-15 Robert Dewar <dewar@gnat.com>
5438 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
5441 2003-12-15 Vincent Celier <celier@gnat.com>
5443 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
5444 (Gnatchop): Do not set failure status when reporting the number of
5447 2003-12-15 Doug Rupp <rupp@gnat.com>
5449 * s-ctrl.ads: New file.
5451 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
5453 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
5454 (GNATBIND_OBJS): Add ada/s-crtl.o.
5456 * Makefile.in [VMS]: Clean up ifeq rules.
5458 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
5459 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
5460 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
5461 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
5462 s-tasdeb.adb: Update copyright.
5464 Make minor modifications to use System.CRTL declared functions instead
5465 of importing locally.
5467 2003-12-15 GNAT Script <nobody@gnat.com>
5469 * Make-lang.in: Makefile automatically updated
5471 2003-12-11 Ed Falis <falis@gnat.com>
5473 * 5zinit.adb: Clean up.
5475 * 5zintman.adb (Notify_Exception): replaced case statement with a call
5476 to __gnat_map_signal, imported from init.c to support
5477 signal -> exception mappings that depend on the vxWorks version.
5480 Created and exported __gnat_map_signal to support signal -> exception
5481 mapping that is dependent on the VxWorks version.
5482 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
5484 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
5486 * 5wosinte.ads: Link with -mthreads switch.
5488 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
5490 * init.c (__gnat_install_handler [NetBSD]): Set
5491 __gnat_handler_installed, as done on all other platforms.
5492 Remove duplicated code.
5494 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
5496 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
5498 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
5500 * sinfo.ads: Fix inconsistent example code in comment.
5502 2003-12-11 Robert Dewar <dewar@gnat.com>
5504 * a-tiinau.adb: Add a couple of comments
5506 * sem_ch3.adb: Minor reformatting
5509 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
5510 Minor reformatting throughout
5512 2003-12-11 Ed Schonberg <schonberg@gnat.com>
5514 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
5515 bounds of a loop, create a separate block in order to generate proper
5516 cleanup actions to prevent memory leaks.
5518 * sem_res.adb (Resolve_Call): After a call to
5519 Establish_Transient_Scope, the call may be rewritten and relocated, in
5520 which case no further processing is needed.
5522 * sem_util.adb: (Wrong_Type): Refine previous fix.
5523 Fixes ACATS regressions.
5527 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
5530 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
5532 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
5533 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
5536 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
5539 2003-12-08 Robert Dewar <dewar@gnat.com>
5541 * 7sintman.adb: Minor reformatting
5543 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
5544 standard linker options to get standard libraries linked. We now plan
5545 to provide dummy versions of these libraries to match the appropriate
5546 configurable run-time (e.g. if a library is not needed at all, provide
5547 a dummy empty library).
5549 * targparm.ads: Configurable_Run_Time mode no longer affects linker
5550 options (-L parameters and standard libraries). What we plan to do is
5551 to provide dummy libraries where the libraries are not required.
5553 * gnatbind.adb: Minor comment improvement
5555 2003-12-08 Javier Miranda <miranda@gnat.com>
5557 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
5558 aggregate in the parent. Otherwise constants with limited aggregates
5559 are not supported. Add new formal to pass the component type (Ctype).
5560 It is required to call the corresponding IP subprogram in case of
5561 default initialized components.
5562 (Gen_Assign): In case of default-initialized component, generate a
5563 call to the IP subprogram associated with the component.
5564 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
5565 of aggregate with default initialized components.
5566 (Has_Default_Init_Comps): Improve implementation to recursively check
5567 all the present expressions.
5569 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
5570 to indicate that the initialization call corresponds to a
5571 default-initialized component of an aggregate.
5572 In case of default initialized aggregate with tasks this parameter is
5573 used to generate a null string (this is just a workaround that must be
5574 improved later). In case of discriminants, this parameter is used to
5575 generate a selected component node that gives access to the discriminant
5578 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
5579 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
5580 allocated aggregates with default-initialized components.
5582 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
5583 the box notation is used in positional aggregates.
5585 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
5587 * lib.ads: Fix typo in comment
5589 2003-12-08 Vincent Celier <celier@gnat.com>
5591 * prj.adb (Project_Empty): New component Unkept_Comments
5592 (Scan): Remove procedure; moved to Prj.Err.
5594 * prj.ads (Project_Data): New Boolean component Unkept_Comments
5595 (Scan): Remove procedure; moved to Prj.Err.
5597 * prj-dect.adb: Manage comments for the different declarations.
5599 * prj-part.adb (With_Record): New component Node
5600 (Parse): New Boolean parameter Store_Comments, defaulted to False.
5601 Set the scanner to return ends of line and comments as tokens, if
5602 Store_Comments is True.
5603 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
5604 comments are associated with these nodes. Store the node IDs in the
5606 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
5608 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
5609 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
5610 current project. Call Tree.Restore afterwards. Set the various nodes
5611 for comment storage (Next_End, End_Of_Line, Previous_Line,
5614 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
5617 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
5618 to False. When Truncated is True, truncate the string, never go to the
5620 (Write_End_Of_Line_Comment): New procedure
5621 (Print): Process comments for nodes N_With_Clause,
5622 N_Package_Declaration, N_String_Type_Declaration,
5623 N_Attribute_Declaration, N_Typed_Variable_Declaration,
5624 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
5625 Process nodes N_Comment.
5627 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
5628 without comments and there are some comments, set the flag
5629 Unkept_Comments to True.
5630 (Scan): If there are comments, set the flag Unkept_Comments to True and
5632 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
5633 (Next_End_Nodes: New table
5634 (Comment_Zones_Of): New function
5635 (Scan): New procedure; moved from Prj. Accumulate comments in the
5636 Comments table and set end of line comments, comments after, after end
5638 (Add_Comments): New procedure
5639 (Save, Restore, Seset_State): New procedures
5640 (There_Are_Unkept_Comments): New function
5641 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
5642 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
5644 (First_Comment_After, First_Comment_After_End): New functions
5645 (First_Comment_Before, First_Comment_Before_End): New functions
5646 (Next_Comment): New function
5647 (End_Of_Line_Comment, Follows_Empty_Line,
5648 Is_Followed_By_Empty_Line): New functions
5649 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
5650 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
5651 (Set_Next_Comment): New procedure
5652 (Default_Project_Node): Associate comment before if the node can store
5655 * scans.ads (Token_Type): New enumeration value Tok_Comment
5656 (Comment_Id): New global variable
5658 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
5660 (Scan): Store position of start of comment. If comments are tokens, set
5661 Comment_Id and set Token to Tok_Comment when scanning a comment.
5662 (Set_Comment_As_Token): New procedure
5664 * sinput-p.adb: Update Copyright notice
5665 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
5666 that no longer exists.
5668 2003-12-08 Javier Miranda <miranda@gnat.com>
5670 * sem_aggr.adb: Add dependence on Exp_Tss package
5671 Correct typo in comment
5672 (Resolve_Aggregate): In case of array aggregates set the estimated
5673 type of the aggregate before calling resolve. This is needed to know
5674 the name of the corresponding IP in case of limited array aggregates.
5675 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
5676 in case of default initialized array components.
5678 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
5679 types. Required to give support to limited aggregates in generic
5682 2003-12-08 Ed Schonberg <schonberg@gnat.com>
5684 * sem_ch3.adb (Check_Initialization): For legality purposes, an
5685 inlined body functions like an instantiation.
5686 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
5687 until bounds are analyzed, to diagnose premature use of type.
5689 * sem_util.adb (Wrong_Type): Improve error message when the type of
5690 the expression is used prematurely.
5692 2003-12-08 GNAT Script <nobody@gnat.com>
5694 * Make-lang.in: Makefile automatically updated
5696 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
5698 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
5699 they are automatically generated by Make-lang.in and cause nothing but
5700 maintenance troubles.
5702 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
5704 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
5705 version of this unit).
5707 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
5709 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
5710 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
5711 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
5712 the body of System.Interrupt_Management common to several targets.
5713 Update copyright notice when appropriate.
5715 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
5718 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
5719 to ensure that the kernel fills in the interrupted context structure
5720 before calling a signal handler, which is necessary to be able to
5721 unwind past it. Update the copyright notice.
5723 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
5725 * a-elchha.ads: New file.
5727 * a-elchha.adb: New default last chance handler. Contents taken from
5728 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
5730 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
5731 is moved to a-elchha.adb to provide a target-independent default last
5734 * Makefile.rtl: Add a-elchha.o
5736 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
5738 2003-12-05 Ed Schonberg <schonberg@gnat.com>
5740 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
5741 declared in an instance, do not inline the call if the instance is not
5742 frozen yet, to prevent order of elaboration problems.
5744 * sem_prag.adb: Add comments for previous fix.
5746 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
5748 * g-table.adb: Use the right variable in Set_Item.
5749 Update copyright notice.
5751 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
5753 * Makefile.in: Remove unused rules.
5755 2003-12-05 Vincent Celier <celier@gnat.com>
5757 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
5758 -nostdlib. Not needed here after all.
5760 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
5764 * adaint.h, adaint.c, g-os_lib.ads:
5765 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
5766 on some platforms (including FreeBSD), it is a 64 bit value.
5767 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
5769 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
5771 * gnatvsn.ads (Library_Version): Now contain only the relevant
5773 (Verbose_Library_Version): New constant.
5775 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
5776 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
5777 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
5779 * gnatlbr.adb: Clean up: replace Library_Version by
5780 Verbose_Library_Version.
5782 * make.adb, lib-writ.adb, exp_attr.adb:
5783 Clean up: replace Library_Version by Verbose_Library_Version.
5785 * 5lintman.adb: Removed.
5788 Update and simplify computation of LIBRARY_VERSION.
5789 Fix computation of GSMATCH_VERSION.
5790 5lintman.adb is no longer used: replaced by 7sintman.adb.
5792 2003-12-03 Robert Dewar <dewar@gnat.com>
5795 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
5796 name. Modified to consider small non-bit-packed arrays as troublesome
5797 and in need of component-by-component assigment expansion.
5799 2003-12-03 Vincent Celier <celier@gnat.com>
5801 * lang-specs.h: Process nostdlib as nostdinc
5803 * back_end.adb: Update Copyright notice
5804 (Scan_Compiler_Arguments): Process -nostdlib directly.
5806 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
5809 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
5810 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
5811 included in HIE_NONE_TARGET_PAIRS.
5813 2003-12-03 Ed Schonberg <schonberg@gnat.com>
5816 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
5817 is legal in an instance, because legality is cheched in the template.
5820 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
5821 appplied to an unchecked conversion of a formal parameter.
5824 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
5827 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
5829 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
5830 routines. The second one is new functionality to deal with backtracing
5831 through signal handlers.
5832 (unwind): Split into the two separate subroutines above.
5833 Update the documentation, and deal properly with sizeof (REG) different
5834 from sizeof (void*).
5836 2003-12-01 Nicolas Setton <setton@act-europe.fr>
5838 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
5839 so that the debugger can reliably access the value of the parameter,
5840 and therefore is able to display the exception name when an exception
5841 breakpoint is reached.
5843 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
5845 * fmap.adb: Fix typo in warning message.
5847 * g-socket.ads, g-socket.adb: Make Free a visible instance of
5848 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
5850 2003-12-01 Vincent Celier <celier@gnat.com>
5852 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
5854 (Build_Library): Get the switches only if Default_Switches is declared
5857 2003-12-01 Ed Schonberg <schonberg@gnat.com>
5859 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
5860 actuals that are indexed components, reanalyze actual to ensure that
5861 packed array references are properly expanded.
5863 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
5864 attempted assignment to a discriminant.
5866 2003-12-01 Robert Dewar <dewar@gnat.com>
5868 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
5871 * switch-c.adb: Minor reformatting of comments
5873 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
5875 * Makefile.in: Clean ups.
5877 2003-12-01 GNAT Script <nobody@gnat.com>
5879 * Make-lang.in: Makefile automatically updated
5881 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
5883 * 5wsystem.ads: Disable zero cost exception, not ready yet.
5885 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
5887 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
5888 to force serialization.
5890 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
5892 * g-socket.ads, g-socket.adb:
5893 Clarify documentation of function Stream. Introduce a Free procedure
5894 to release the returned Stream once it becomes unused.
5896 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
5898 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
5900 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
5901 since NT 4 cannot handle timeout values that are too large,
5902 e.g. DWORD'Last - 1.
5904 2003-11-26 Ed Schonberg <schonberg@gnat.com>
5907 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
5908 in procedure calls and whose expansion must be deferred.
5910 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
5914 (Build_Derived_Array_Type): Create operator for unconstrained type
5915 if ancestor is unconstrained.
5917 2003-11-26 Vincent Celier <celier@gnat.com>
5919 * make.adb (Project_Object_Directory): New global variable
5920 (Change_To_Object_Directory): New procedure
5921 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
5922 of Change_Dir directly. Do not change working directory to object
5923 directory of main project after each compilation.
5924 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
5926 Change to object directory of main project before binding step.
5927 (Initialize): Initialize Project_Object_Directory to No_Project
5930 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
5931 binding a Stand-Alone Library.
5933 * output.adb: Update Copyright notice
5934 (Write_Char): Output buffer when full
5936 2003-11-26 Robert Dewar <dewar@gnat.com>
5938 * sem_ch13.adb: (Check_Size): Reset size if size is too small
5941 (Check_Size): Fix documentation to include bit-packed array case
5943 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
5945 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
5947 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
5949 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
5952 * utils.c (init_gigi_decls): Change name of built-in setjmp to
5953 __builtin_setjmp, since this is apparently needed by recent
5956 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5958 * adadecode.c: Only include ctype.h if not IN_GCC.
5959 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
5961 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
5964 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
5965 signals and interrupts.
5967 * 5zintman.ads: New File.
5969 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
5970 add exception signals to the set of unmasked signals.
5973 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
5974 between signals and interrupts.
5975 Add to Unblocked_Signal_Mask the set of signals that are in
5979 Adding a check to see whether the Interrupt_ID we want to unmask is in
5980 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
5981 reason is that the index type of the Keep_Unmasked array is not always
5982 Interrupt_ID; it may be a subtype of Interrupt_ID.
5984 2003-11-24 Gary Dismukes <dismukes@gnat.com>
5987 (Remove_Side_Effects): Condition constantness of object created for a
5988 an unchecked type conversion on the constantness of the expression
5989 to ensure the correct value for 'Constrained when passing components
5990 of view-converted class-wide objects.
5992 2003-11-24 Robert Dewar <dewar@gnat.com>
5994 * par-load.adb (Load): Improve handling of misspelled and missing units
5995 Removes several cases of compilation abandoned messages
5997 * lib.adb: (Remove_Unit): New procedure
5999 * lib.ads: (Remove_Unit): New procedure
6001 * lib-load.adb: Minor reformatting
6003 2003-11-24 Vincent Celier <celier@gnat.com>
6006 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
6007 (Marking_Label): Label to mark processed source files. Incremented for
6009 (Gnatmake): Increase Marking_Labet for each executable
6010 (Is_Marked): Compare against marking label
6011 (Mark): Mark with marking label
6013 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
6016 Move the declaration of the TSD for System.Threads to System.Soft_Links.
6019 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
6020 (rts-cert): build a single relocatable object for the run-time lib.
6023 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
6026 Use gnatls rather than gcc to obtain the location of GNAT RTL for
6029 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
6031 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
6032 can not use it as before (that is, as a variable) when dumping it into
6033 the tree file. Add a local variable to store the result of this
6034 function and to be used as the string to be written into the tree.
6036 * scn.adb (Initialize_Scanner): Add comments explaining the recent
6039 * sinput.adb (Source_First, Source_Last): In case of
6040 Internal_Source_File, replace returning attributes of
6041 Internal_Source_Ptr (which is wrong) with returning attributes of
6044 2003-11-24 Ed Schonberg <schonberg@gnat.com>
6047 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
6048 used for implicit concatenation operators.
6052 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
6053 task bodies that are in the scope of a Suppress pragma.
6054 (Check_A Call): Use the flag to prevent spurious elaboration checks.
6056 * sinfo.ads, sinfo.adb:
6057 New flag No_Elaboration_Check on function/procedure calls, to properly
6058 suppress checks on calls in task bodies that are within a local suppress
6062 (Expand_Concatenate_Other): Use the proper integer type for the
6063 expression for the upper bound, to avoid universal_integer computations
6066 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
6068 * .cvsignore: Delete.
6070 2003-11-21 Andreas Schwab <schwab@suse.de>
6072 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
6074 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
6076 * 5wsystem.ads: Enable zero cost exception.
6078 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
6080 * 5ztiitho.adb: Remove an unreferenced variable.
6082 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
6084 * adaint.c: For FreeBSD, use mkstemp.
6086 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
6088 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
6090 2003-11-21 Robert Dewar <dewar@gnat.com>
6092 * bld.adb: Remove useless USE of gnatvsn
6094 * gnatchop.adb: Minor reformatting
6095 Clean up version handling to be more consistent
6097 * gnatxref.adb: Minor reformatting
6099 * gprcmd.adb: Minor reformatting
6100 Fix output of copyright to be more consistent with other tools
6102 2003-11-21 Vincent Celier <celier@gnat.com>
6104 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
6106 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
6108 * atree.adb (Initialize): Add initializations for global variables
6109 used in New_Copy_Tree.
6111 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
6112 Internal_Source_File as the actual).
6113 Put the set of statements creating Any_Character before the set of
6114 statements creating Any_Array to have Any_Character fully initialized
6115 when it is used in creating Any_Array.
6117 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
6118 not call Scan in case if the actual is Internal_Source_File
6119 Add 2003 to copyright note.
6121 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
6122 processing Internal_Source_File.
6124 * types.ads: Add the constant Internal_Source_File representing the
6125 source buffer for artificial source-code-like strings created within
6126 the compiler (the definition of Source_File_Index is changed).
6128 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
6130 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
6131 56system.ads: New file, FreeBSD version.
6133 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
6135 * Make-lang.in (ada.extraclean): Delete.
6137 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
6139 * gnatmem.adb: Clean up verbose output.
6141 * gprcmd.adb: Change copyright to FSF.
6143 2003-11-19 Vincent Celier <celier@gnat.com>
6145 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
6146 and Version (ignored).
6148 * symbols.ads: (Policy): New type
6149 (Initialize): New parameter Reference, Symbol_Policy and
6151 Remove parameter Force.
6154 * snames.ads, snames.adbadb: New standard names
6155 Library_Reference_Symbol_File and Library_Symbol_Policy
6158 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
6162 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
6164 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
6166 * prj.adb: (Project_Empty): New component Symbol_Data
6168 * prj.ads: (Policy, Symbol_Record): New types
6169 (Project_Data): New component Symbol_Data
6172 New attributes Library_Symbol_File, Library_Symbol_Policy and
6173 Library_Reference_Symbol_File.
6176 (Ada_Check): When project is a Stand-Alone library project, process
6177 attribute Library_Symbol_File, Library_Symbol_Policy and
6178 Library_Reference_Symbol_File.
6180 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
6181 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
6182 5sml-tgt.adb (Build_Dynamic_Library): New parameter
6183 Symbol_Data (ignored).
6185 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
6186 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
6187 functions Option_File_Name and Version_String. Set new options of
6188 gnatsym related to symbol file, symbol policy and reference symbol
6192 Extensive modifications to take into account the reference symbol file,
6193 the symbol policy, the library version and to put in the symbol file the
6194 minor and major IDs.
6196 * bld.adb (Process_Declarative_Items): Put second argument of
6197 gprcmd to_absolute between single quotes, to avoid problems with
6200 * bld-io.adb: Update Copyright notice.
6201 (Flush): Remove last character of a line, if it is a back slash, to
6202 avoid make problems.
6205 Implement new scheme with reference symbol file and symbol policy.
6207 * g-os_lib.ads: (Is_Directory): Clarify comment
6209 2003-11-19 Robert Dewar <dewar@gnat.com>
6211 * atree.adb: Move New_Copy_Tree global variables to head of package
6213 * errout.adb: Minor reformatting
6215 2003-11-19 Javier Miranda <miranda@gnat.com>
6217 * sem_ch4.adb: (Diagnose_Call): Improve error message.
6218 Add reference to Ada0Y (AI-50217)
6220 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
6221 sem_util.adb: Add reference to AI-50217
6223 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
6225 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
6227 * sem_aggr.adb: Complete documentation of AI-287 changes
6229 * par-ch4.adb: Document previous changes.
6231 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
6232 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
6235 * exp_aggr.adb: Add references to AI-287 in previous changes
6237 2003-11-19 Ed Schonberg <schonberg@gnat.com>
6240 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
6241 in the rewriting is the result of an inlined call.
6243 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
6244 parameter is a type conversion, use original node to construct the
6245 post-call assignment, because expression may have been rewritten, e.g.
6246 if it is a packed array.
6249 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
6250 body, just as it is in an instance.
6251 Categorization routines
6253 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
6254 Instantiate_Object): Set proper sloc reference for message on missing
6257 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
6259 * Makefile.in: Add FreeBSD libgnat pairs.
6261 * usage.adb: Fix typo in usage message.
6263 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
6265 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
6266 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
6268 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
6270 * s-thread.adb: This file is now a dummy implementation of
6273 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
6275 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
6277 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
6279 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
6280 instanciation references in the parent type description.
6282 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6284 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
6286 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
6287 TYPE_PRECISION directly from esize.
6289 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
6292 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
6294 * init.c: Initialization routines for FreeBSD
6296 * link.c: Link info for FreeBSD
6298 * sysdep.c: Add the case of FreeBSD
6300 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
6302 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
6303 already called in System.Threads.
6305 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
6306 environment task, as it has been moved to System.Threads.Initialization.
6308 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
6310 * adaint.c (__gnatlib_install_locks): Only reference
6311 __gnat_install_locks on VMS, since other platforms can avoid using
6312 --enable-threads=gnat
6314 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6316 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
6318 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
6319 TYPE_PACKED_ARRAY_TYPE_P.
6320 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
6322 Part of PR ada/12806
6323 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
6324 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
6326 2003-11-17 Vincent Celier <celier@gnat.com>
6328 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
6330 Do not set exit status to Failure when Warning is True.
6331 (Gnatchop): Make errors "no compilation units found" and
6332 "no source files written" warnings only.
6334 * make.adb (Gnatmake): When using a project file, set
6335 Look_In_Primary_Dir to False.
6336 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
6337 and Local_Configuration_Pragmas in the project where they are declared
6338 not an extending project which might have inherited them.
6340 * osint.adb (Locate_File): If Name is already an absolute path, do not
6341 look for a directory.
6343 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
6344 -gnats (Check_Syntax) is used, issue only a warning, not an error.
6346 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
6347 in objects of type Variable_Value.
6349 * prj.ads: (Variable_Value): New component Project
6351 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
6352 is in a project extended by Project.
6354 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
6355 Project of Variable_Values to this new parameter value.
6356 (Expression): Set component Project of Variable_Values.
6357 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
6358 Set the component Project in array elements.
6360 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
6362 * errout.adb: (Initialize): Add initialization for error nodes.
6364 * sem_ch12.adb (Initialize): Add missing initializations for
6365 Exchanged_Views and Hidden_Entities.
6367 2003-11-17 Ed Schonberg <schonberg@gnat.com>
6369 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
6370 already instantiated tree for use in subsequent inlining.
6371 (Analyze_Associations, Instantiate_Formal_Subprogram,
6372 Instantiate_Object): improve error message for mismatch in
6375 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
6376 instantiations of subprograms declared in instances.
6378 2003-11-17 Javier Miranda <miranda@gnat.com>
6380 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
6381 executed only under the Extensions_Allowed flag.
6383 2003-11-17 Robert Dewar <dewar@gnat.com>
6385 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
6387 (Address_Image): Fix bug of returning 0x instead of 0x0
6388 Minor reformatting (function specs).
6390 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
6391 (missed case of 33-63)
6393 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
6395 * s-thread.adb: Add comments for pragma Restriction
6397 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
6398 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
6400 2003-11-17 Ed Falis <falis@gnat.com>
6402 * s-thread.adb: Added No_Tasking restriction for this implementation.
6404 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
6406 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
6407 instanciation references in the parent type description.
6409 2003-11-17 GNAT Script <nobody@gnat.com>
6411 * Make-lang.in: Makefile automatically updated
6413 2003-11-16 Jason Merrill <jason@redhat.com>
6415 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
6416 and TAGS files that include them for each front end.
6418 2003-11-14 Andreas Jaeger <aj@suse.de>
6420 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
6421 is the canonical version.
6422 * misc.c (gnat_handle_option): Likewise.
6424 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
6426 * 5nsystem.ads: New file for x86_64-linux-gnu.
6428 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
6430 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
6432 * comperr.adb: Fix logic in previous change.
6434 2003-11-13 Vincent Celier <celier@gnat.com>
6436 * 5bml-tgt.adb (Build_Dynamic_Library): Use
6437 Osint.Include_Dir_Default_Prefix instead of
6438 Sdefault.Include_Dir_Default_Name.
6440 * gnatlbr.adb: Update Copyright notice
6441 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
6442 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
6443 instead of Sdefault.Object_Dir_Default_Name
6446 (Process_Binder_File): Never suppress the option following -Xlinker
6449 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
6450 Sdefault.Object_Dir_Default_Name.
6452 * osint.ads, osint.adb:
6453 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
6456 * vms_conv.ads: Minor reformating
6457 Remove GNAT STANDARD and GNAT PSTA
6460 Allow GNAT MAKE to have several files on the command line.
6461 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
6462 Sdefault.Object_Dir_Default_Name.
6464 Remove data for GNAT STANDARD
6467 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
6468 Remove data for GNAT STANDARD
6469 Remove options and documentation for -gnatwb/-gnatwB: these warning
6470 options no longer exist.
6472 2003-11-13 Ed Falis <falis@gnat.com>
6474 * 5zthrini.adb: (Init_RTS): Made visible
6477 (Register): Removed unnecessary call to taskVarGet that checked whether
6478 an ATSD was already set as a task var for the argument thread.
6481 Updated comment to reflect that this is a VxWorks version
6482 Added context clause for System.Threads.Initialization
6483 Added call to System.Threads.Initialization.Init_RTS
6485 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
6488 (Init_RTS): New procedure, for the initialization of the run-time lib.
6491 Remove dependancy on System.Init, so that this file can be used in the
6492 AE653 sequential run-time lib.
6494 2003-11-13 Robert Dewar <dewar@gnat.com>
6496 * bindgen.adb: Minor reformatting
6498 2003-11-13 Ed Schonberg <schonberg@gnat.com>
6501 (Apply_Discriminant_Check): Do no apply check if target type is derived
6502 from source type with no applicable constraint.
6505 (Ensure_System_Dependency): Do not apply the style checks that may have
6506 been specified for the main unit.
6509 (Find_Selected_Component): Further improvement in error message, with
6513 (Resolve): Handle properly the case of an illegal overloaded protected
6516 2003-11-13 Javier Miranda <miranda@gnat.com>
6519 (Has_Default_Init_Comps): New function to check the presence of
6520 default initialization in an aggregate.
6521 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
6522 extension aggregate of a limited record. In addition, a new formal
6523 was added to do not initialize the record controller (if any) during
6524 this recursive expansion of ancestors.
6525 (Init_Controller): Add support for limited record components.
6526 (Expand_Record_Aggregate): In case of default initialized components
6527 convert the aggregate into a set of assignments.
6529 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
6530 describing the new syntax.
6531 Nothing else needed to be done because this subprogram delegates part of
6532 its work to P_Precord_Or_Array_Component_Association.
6533 (P_Record_Or_Array_Component_Association): Give support to the new
6534 syntax for default initialization of components.
6537 (Resolve_Aggregate): Relax the strictness of the frontend in case of
6539 (Resolve_Record_Aggregate): Give support to default initialized
6541 (Get_Value): In case of default initialized components, duplicate
6542 the corresponding default expression (from the record type
6543 declaration). In case of default initialization in the *others*
6544 choice, do not check that all components have the same type.
6545 (Resolve_Extension_Aggregate): Give support to limited extension
6549 (Check_Initialization): Relax the strictness of the front-end in case
6550 of aggregate and extension aggregates. This test is now done in
6551 Get_Value in a per-component manner.
6553 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
6554 expression corresponds to a limited aggregate. This test is now done
6557 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
6560 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
6561 present in an N_Component_Association node
6563 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
6565 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
6566 type-conformant entry only if they are homographs.
6568 2003-11-13 GNAT Script <nobody@gnat.com>
6570 * Make-lang.in: Makefile automatically updated
6572 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6574 * adadecode.c: Use <> form of include for ctype.h.
6575 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
6577 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6579 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
6580 Works around PR middle-end/6552.
6582 2003-11-10 Ed Falis <falis@gnat.com>
6584 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
6586 * 5zinit.adb: (Install_Handler): Moved back to spec
6587 (Install_Signal_Handlers): Deleted
6589 * 5zthrini.adb: Added context clause for System.Storage_Elements
6590 (Register): Only handles creation of taskVar; initialization moved to
6592 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
6593 Added declaration of environment task secondary stack and
6596 * s-thread.adb: Implement bodies for thread body processing
6599 Added comment identifying supported targets for pragma Thread_Body.
6601 2003-11-10 Pascal Obry <obry@gnat.com>
6603 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
6607 (Open): Properly check for string length before copying into the buffer.
6608 Raises Name_Error if buffer is too small. Note that this was a potential
6611 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
6613 * bindgen.adb, comperr.adb: Code clean ups.
6614 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
6616 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
6618 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
6620 2003-11-10 Vincent Celier <celier@gnat.com>
6623 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
6626 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
6628 * prj.adb: (Project_Empty): Add new boolean component Virtual
6630 * prj.ads: (Virtual_Prefix): New constant string
6631 (Project_Data): New boolean component Virtual
6633 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
6634 a library project is extended by a virtual extending project.
6637 Modifications throughout to implement extending-all project, including:
6638 (Virtual_Hash, Processed_Hash): New hash tables
6639 (Create_Virtual_Extending_Project): New procedure
6640 (Look_For_Virtual_Projects_For): New procedure
6643 (Process): After checking the projects, if main project is an
6644 extending-all project, set the object directory of all virtual extending
6645 project to the object directory of the main project.
6646 Adjust error message when a virtual extending project has the same
6647 object directory as an project being extended.
6648 (Recursive_Process): If name starts with the virtual prefix, set Virtual
6649 to True in the project data.
6652 (Default_Project_Node): Add new boolean component Extending_All
6653 (Is_Extending_All): New function
6654 (Set_Is_Extending_All): New procedure
6656 * prj-tree.ads: (Is_Extending_All): New function
6657 (Set_Is_Extending_All): New procedure
6658 (Project_Node_Record): New boolean component Extending_All
6660 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
6663 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
6665 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
6666 "gprcmd prefix" to define it.
6668 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
6670 * einfo.ads: Fix a typo and remove an extraneous word in comments.
6673 (Create_Dummy_Package_Unit): Set the scope of the entity for the
6674 created dummy package to Standard_Standard, not to itself, to
6675 defend other parts of the front-end against encoutering a cycle in
6679 (Analyze_With_Clause): When setting the entities for the successive
6680 N_Expanded_Names that constitute the name of a child unit, do not
6681 attempt to go further than Standard_Standard in the chain of scopes.
6682 This case arises from the placeholder units created by
6683 Create_Dummy_Package_Unit in the case of a with_clause for a
6684 nonexistent child unit.
6686 2003-11-10 Ed Schonberg <schonberg@gnat.com>
6689 (Expand_Thread_Body): Place subprogram on scope stack, so that new
6690 declarations are given the proper scope.
6693 (Check_Expr_Constants): Reject an expression that contains a constant
6694 created during expansion, and that appears after the object to which
6695 the address clause applies.
6697 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
6698 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
6699 that uses 'Range of a function call with controlled components, so
6700 that the function result can be finalized before starting the loop.
6703 (Find_Selected_Component): Improve error message when prefix is
6704 an implicit dereference of an incomplete type.
6706 2003-11-10 Robert Dewar <dewar@gnat.com>
6708 * opt.ads: New Print_Standard flag for -gnatS switch
6710 * sem_ch13.adb: Remove some additional checks for unaligned arrays
6712 * cstand.adb (Create_Standard): Print out package standard if -gnatS
6715 * debug.adb: Update doc for -gnatds to discuss relationship with new
6718 * sinfo.adb: Add new field Entity_Or_Associated_Node
6720 * sinfo.ads: Add new field Entity_Or_Associated_Node
6721 Update documentation for Associated_Node and Entity fields to clarify
6722 relationship and usage.
6725 (Write_Id): Properly process Associated_Node field in generic template
6728 Recognize new -gnatS switch for printing package Standard
6729 This replaces gnatpsta
6732 Add line for new -gnatS switch for printing package Standard
6733 This replaces gnatpsta
6735 2003-11-10 Andreas Jaeger <aj@suse.de>
6737 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
6740 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
6742 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
6745 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
6747 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
6750 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
6752 * sysdep.c: Add handling of cygwin.
6754 2003-11-10 GNAT Script <nobody@gnat.com>
6756 * Make-lang.in: Makefile automatically updated
6758 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
6761 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
6762 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
6763 Replace GNAT_ROOT by GCC_ROOT.
6765 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
6767 2003-11-06 Zack Weinberg <zack@codesourcery.com>
6769 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
6770 and update for changed meaning of GET_MODE_BITSIZE.
6772 2003-11-04 Doug Rupp <rupp@gnat.com>
6774 * sysdep.c: Problem discovered during IA64 VMS port.
6775 [VMS] #include <unixio.h> to get proper prototypes.
6778 Issues discovered/problems fixed during IA64 VMS port.
6779 [VMS] #define _POSIX_EXIT for proper semantics.
6780 [VMS] #include <unixio.h> for proper prototypes.
6781 [VMS] (fork): #define IA64 version.
6782 (__gnat_os_exit): Remove unnecessary VMS specific code.
6784 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6786 Part of PR ada/12806
6788 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
6792 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
6795 * targtyps.c, decl.c, misc.c,
6796 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
6797 routines to work around change in FP sizing semantics in GCC.
6800 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
6802 * gigi.h: (enumerate_modes): New function.
6804 * Make-lang.in: (ada/misc.o): Add real.h.
6806 * misc.c: (enumerate_modes): New function.
6808 2003-11-04 Robert Dewar <dewar@gnat.com>
6810 * 3vtrasym.adb: Minor reformatting
6811 Use terminology encoded/decoded name, rather than C++ specific notion
6812 of mangling (this is the terminology used throughout GNAT).
6814 * einfo.h: Regenerated
6816 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
6819 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
6821 * par-prag.adb: Add dummy entry for Thread_Body pragma
6824 Add entries for System.Threads entities for thread body processing
6827 (Analyze_Pragma, Access attributes): Check these are not applied to a
6828 thread body, since this is not permitted
6830 * sem_prag.adb: Add processing for Thread_Body pragma.
6834 (Resolve_Call): Check for incorrect attempt to call a thread body
6835 procedure with a direct call.
6837 * snames.ads, snames.adb: Add entry for Thread_Body pragma
6838 Add names associated with thread body expansion
6840 * snames.h: Add entry for Thread_Body pragma
6842 * s-thread.adb: Add entries for thread body processing
6843 These are dummy bodies so far
6845 * s-thread.ads: Add documentation on thread body handling.
6846 Add entries for thread body processing.
6848 2003-11-04 Javier Miranda <miranda@gnat.com>
6851 (Build_Limited_Views): Return after posting an error in case of limited
6852 with_clause on subprograms, generics, instances or generic renamings
6853 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
6854 on subprograms, generics, instances or generic renamings
6856 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
6858 * raise.c (setup_to_install): Correct mistake in last revision; two
6859 arguments out of order.
6861 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
6862 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
6863 notice, missed in previous change.
6864 Remove trailing blanks and other style errors introduced in previous
6867 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
6869 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
6870 rid of the wrapper for a LJM type, ensuring we don't do that if the
6871 field is addressable. This avoids potential low level type view
6872 mismatches later on, for instance in a by-reference argument passing
6875 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6877 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
6878 aligned at byte boundary.
6880 2003-11-04 Joel Brobecker <brobecker@gnat.com>
6882 * decl.c (components_to_record): Do not delete the empty variants from
6883 the end of the union type.
6885 2003-11-04 Ed Schonberg <schonberg@gnat.com>
6887 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
6888 operation for a derived type, an explicit declaration may use a local
6891 2003-11-04 Vincent Celier <celier@gnat.com>
6893 * make.adb (Gnatmake): Allow main sources on the command line with a
6894 library project when it is only for compilation (no binding or
6897 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6899 * Makefile.in: Remove many duplicate variables.
6901 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
6903 * Make-lang.in (dvi): Move targets to $(docobjdir).
6904 (gnat_ug_vms.dvi): Simplify rule and adjust target.
6905 (gnat_ug_wnt.dvi): Likewise.
6906 (gnat_ug_unx.dvi): Likewise.
6907 (gnat_ug_vxw.dvi): Likewise.
6908 (gnat_rm.dvi): Likewise.
6909 (gnat-style.dvi): Likewise.
6911 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
6913 * gigi.h: Missed commit from update for C90.
6915 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
6917 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
6919 2003-10-31 Andreas Schwab <schwab@suse.de>
6921 * raise.c (get_action_description_for): Fix typo in last change.
6923 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
6926 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
6927 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
6929 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
6931 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
6932 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
6933 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
6934 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
6935 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
6937 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
6940 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
6941 numbers when symbol name is too long.
6943 2003-10-30 Ed Falis <falis@gnat.com>
6945 * g-signal.ads, g-signal.adb: New files
6947 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
6949 * Makefile.rtl: Introduce GNAT.Signals
6951 2003-10-30 Robert Dewar <dewar@gnat.com>
6953 * freeze.adb: Minor reformatting
6955 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
6957 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
6958 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
6959 New handling of Id_Check parameter to improve recognition of keywords
6960 used as identifiers.
6961 Update copyright notice to include 2003
6963 2003-10-29 Robert Dewar <dewar@gnat.com>
6965 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
6966 sem_ch10.adb: Minor reformatting
6968 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
6969 (Expand_Assign_Record): Test right hand side for bit unaligned as well
6971 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
6973 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
6974 Support for TBK$SYMBOLIZE-based symbolic traceback.
6976 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
6979 Revert previous change, that did not work well when pragma No_Run_Time
6980 was used in conjunction with a run-time other than ZFP.
6982 2003-10-29 Vincent Celier <celier@gnat.com>
6985 (Gnatmake): When there are no Ada mains in attribute Main, disable the
6986 bind and link steps only is switch -z is not used.
6988 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
6990 * Makefile.generic: Remove duplicated setting of CC.
6992 * Makefile.prolog: Set CC to gcc by default, to override make's
6995 * einfo.h: Regenerated.
6997 2003-10-29 Ed Schonberg <schonberg@gnat.com>
6999 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
7000 current body, after compiling subunit.
7002 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
7003 when in deleted code, because gigi needs properly ordered freeze
7004 actions to annotate types.
7006 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
7007 prevent the premature freezing of record type that contains
7008 subcomponents with a private type that does not yet have a completion.
7010 2003-10-29 Javier Miranda <miranda@gnat.com>
7013 (Analyze_Package_Instantiation): Check that instances can not be used in
7014 limited with_clauses.
7017 (Analyze_Package_Renaming): Check that limited withed packages cannot
7018 be renamed. Improve text on error messages related to limited
7021 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
7023 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
7024 Update copyright notice.
7026 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
7027 (Install_Limited_Context_Clauses): New subprogram that isolates all the
7028 checks required for limited context_clauses and installs the limited
7030 (Install_Limited_Withed_Unit): Complete its documentation.
7031 (Analyze_Context): Check that limited with_clauses are only allowed in
7033 (Install_Context): Call Install_Limited_Context_Clauses after the
7034 parents have been installed.
7035 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
7036 package as 'From_With_Type'; this mark indicates that the limited view
7037 is installed. Used to check bad usages of limited with_clauses.
7038 (Build_Limited_Views): Do not add shadow entities to the scope's list
7039 of entities. Do not add real entities to the Non_Limited_Views chain.
7040 Improve error notification.
7041 (Remove_Context_Clauses): Remove context clauses in two phases:
7042 limited views first and regular views later (to maintain the
7044 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
7045 its visible entities.
7047 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
7049 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
7050 with any type that Is_Fixed_Point_Type.
7052 * sinfo.ads: Fix documentation for Associated_Node attribute.
7054 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
7056 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
7057 both '-gnatc' and '-gnatt' are specified.
7059 * atree.adb (Initialize): Add initialization for Node_Count (set to
7062 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7064 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
7065 do not consider as Pure.
7067 Part of implementation of function-at-a-time:
7069 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
7070 (tree_transform): Add new argument to build_component_ref.
7071 (tree_transform, case N_Assignment_Statement): Make and return an
7073 (tree_transform): If result IS_STMT, set flags and return it.
7074 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
7076 * utils2.c (build_simple_component_ref, build_component_ref): Add new
7078 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
7079 (build_allocator): Likewise.
7081 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
7082 Add new arg to build_component_ref.
7083 (maybe_unconstrained_array, unchecked_convert): Likewise.
7085 * ada-tree.def (EXPR_STMT): New code.
7087 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
7089 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
7090 build_component_ref calls.
7092 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
7094 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
7095 (build_component_ref): Add new argument, NO_FOLD_P.
7097 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
7099 * Makefile.generic: Add missing substitution on object_deps handling.
7102 * Make-lang.in (check-ada): Enable ACATS test suite.
7104 2003-10-27 Robert Dewar <dewar@gnat.com>
7107 (Freeze_Array_Type): We do not need an initialization routine for types
7108 derived from String or Wide_String. They should be treated the same
7109 as String and Wide_String themselves. This caused problems with the
7110 use of Initialize_Scalars.
7113 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
7114 composites. This allows use of component clauses that are not byte
7118 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
7119 is an attempt to pack an array of atomic objects.
7121 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
7123 2003-10-27 Pascal Obry <obry@gnat.com>
7126 (Basename): Check for drive letters in a pathname only on DOS based OS.
7128 2003-10-27 Vincent Celier <celier@gnat.com>
7131 (Gnatmake): When unable to change dir to the object dir, display the
7132 content of the parent dir of the obj dir, to try to understand why this
7135 2003-10-27 GNAT Script <nobody@gnat.com>
7137 * Make-lang.in: Makefile automatically updated
7139 2003-10-27 Ed Schonberg <schonberg@gnat.com>
7142 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
7143 should not be done in Save/Restore_Scope_Stack, because it is performed
7147 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
7148 whether use clauses should be removed/restored.
7151 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
7152 whether use clauses should be removed/restored.
7154 2003-10-26 Andreas Jaeger <aj@suse.de>
7156 * Makefile.in: Remove duplicated lines.
7158 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
7160 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
7161 minimize the differences with ACT tree.
7163 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
7164 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
7165 Gnatvsn.Gnat_Static_Version_String to reduce differences between
7168 2003-10-24 Pascal Obry <obry@gnat.com>
7170 * adadecode.c (ostrcpy): New function.
7171 (__gnat_decode): Use ostrcpy of strcpy.
7172 (has_prefix): Set first parameter a const.
7173 (has_suffix): Set first parameter a const.
7174 Update copyright notice. Fix source name in header.
7175 Removes a trailing space.
7178 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
7181 Remove the test against being in No_Run_Time_Mode before generating a
7182 call to Register_Tag. It is redundant with the test against the
7183 availability of the function Register_Tag.
7185 2003-10-24 Vincent Celier <celier@gnat.com>
7187 * g-catiio.adb: (Month_Name): Correct spelling of February
7189 * make.adb: (Mains): New package
7190 (Initialize): Call Mains.Delete
7191 (Gnatmake): Check that each main on the command line is a source of a
7192 project file and, if there are several mains, each of them is a source
7193 of the same project file.
7194 (Gnatmake): When a foreign language is specified in attribute Languages,
7195 no main is specified on the command line and attribute Mains is not
7196 empty, only build the Ada main. If there is no Ada main, just compile
7197 the Ada sources and their closure.
7198 (Gnatmake): If a main is specified on the command line with directory
7199 information, check that the source exists and, if it does, that the path
7200 is the actual path of a source of a project.
7203 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
7204 Full_Path is True, return the full path instead of the simple file name.
7205 (Project_Of): New function
7208 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
7210 (Project_Of): New function
7212 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
7215 Ensure objects of main project are always checked and rebuilt if needed.
7216 Set CC to gcc by default.
7217 Prepare new handling of link by creating a global archive (not activated
7220 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
7221 stringt.h: Update copyright notice. Remove trailing blanks.
7222 Fix source name in header.
7224 2003-10-24 Robert Dewar <dewar@gnat.com>
7226 * sem_ch12.adb: Minor reformatting
7229 Minor reformatting (including new function return style throughout)
7232 Minor reformatting (including new function return style throughout)
7234 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
7236 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
7237 stringt.h: Update copyright notice. Remove trailing blanks.
7238 Fix source name in header.
7240 2003-10-24 GNAT Script <nobody@gnat.com>
7242 * Make-lang.in: Makefile automatically updated
7244 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
7246 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
7247 stringt.h: Convert to ISO C90 declarations and definitions.
7249 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
7252 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
7253 External_Tag attribute definition clauses.
7255 2003-10-23 Ed Schonberg <schonberg@gnat.com>
7258 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
7259 child unit, generate a fully qualified name to avoid spurious errors
7260 when the context contains renamings of different child units with
7261 the same simple name.
7263 * exp_dbug.ads: Add documentation on name qualification for renamings
7266 2003-10-23 Robert Dewar <dewar@gnat.com>
7268 * g-regpat.ads, g-regpat.adb: Minor reformatting
7270 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
7272 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
7274 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7276 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
7279 * urealp.h: (Machine): Update to proper definition.
7281 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
7283 * init.c, adaint.c: Minor reformatting.
7285 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
7287 * adaint.c (w32_epoch_offset): Define static const at file level.
7288 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
7289 rather than t_create, t_access in call to GetFileTime. Use union
7290 to convert between FILETIME and unsigned long long.
7291 (__gnat_file_time_name): Test for invalid file handle.
7292 (__gnat_set_filetime_name): Support win32 targets using
7295 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
7297 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
7299 * ctrl_c.c (__gnat_int_handler): Remove declaration.
7301 * decl.c (creat_concat_name): Const-ify prefix.
7303 * adaint.c: Include ctype.h if __MINGW32__.
7304 (__gnat_readlink): Mark arguments as possibly unused.
7305 (__gnat_symlink): Likewise.
7306 (__gnat_is_symbolic_link): Likewise.
7307 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
7309 (__gnat_file_time_name): Don't declare struct stat statbuf when
7311 (__gnat_is_absolute_path): Add parenthesis around condition of
7312 'if' statement to avoid warning.
7313 (__gnat_plist_init): Specify void as parameter.
7314 (plist_enter): Likewise.
7315 (plist_leave): Likewise.
7316 (remove_handle): Make static. Initialize prev.
7318 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
7320 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
7321 * cstreams.c (__gnat_full_name): Minor improvements and clean up
7324 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7326 * tracebak.c (MAX): Avoid redefinition warning.
7328 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
7329 Change msg to const char *.
7330 (__gnat_install_handler): Remove ss, unused.
7331 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
7333 * cstreams.c (__gnat_full_name): Declare p only when used.
7334 (__gnat_full_name) [sgi] Return buffer.
7336 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
7338 * mingw32.h: New file.
7339 * gnat_wrapper.adb: New file.
7341 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
7343 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
7344 string match a pre compiled regular expression (the corresponding
7345 version of the function working on a raw regular expression)
7346 Fix typos in various comments
7347 Update copyright notice in spec
7349 2003-10-21 Gary Dismukes <dismukes@gnat.com>
7352 (Component_Needs_Simple_Initialization): Return False when the type is a
7353 packed bit array. Revise spec comments to document this case.
7356 (Expand_Pragma_Import): Set any expression on the imported object to
7357 empty to avoid initializing imported objects (in particular this
7358 covers the case of zero-initialization of bit arrays).
7359 Update copyright notice.
7361 2003-10-21 Ed Schonberg <schonberg@gnat.com>
7364 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
7365 a subunit is missing.
7366 (Instantiate_Subprogram_Body): If body of function is missing, set type
7367 of return expression explicitly in dummy body, to prevent cascaded
7368 errors when a subunit is missing.
7372 (Access_Subprogram_Declaration): Verify that return type is valid.
7376 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
7381 (Corresponding_Discriminant): If the scope of the discriminant is a
7382 private type without discriminant, use its full view.
7385 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
7387 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
7388 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
7389 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
7390 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
7391 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
7392 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
7393 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
7394 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
7395 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
7396 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
7397 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
7398 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
7399 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
7400 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
7401 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
7402 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
7403 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
7404 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
7405 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
7406 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
7407 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
7408 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
7409 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
7410 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
7411 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
7412 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
7413 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
7414 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
7415 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
7416 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
7417 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
7418 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
7419 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
7420 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
7421 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
7422 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
7423 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
7424 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
7425 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
7426 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
7427 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
7428 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
7429 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
7430 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
7431 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
7432 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
7433 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
7434 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
7435 vms_conv.ads, vms_conv.adb, vms_data.ads,
7436 vxaddr2line.adb: Files added. Merge with ACT tree.
7438 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
7439 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
7440 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
7441 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
7442 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
7443 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
7444 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
7445 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
7446 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
7447 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
7449 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
7450 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
7451 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
7452 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
7453 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
7454 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
7455 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
7456 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
7457 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
7458 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
7459 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
7460 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
7461 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
7462 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
7463 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
7464 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
7465 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
7466 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
7467 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
7468 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
7469 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
7470 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
7471 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
7472 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
7473 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
7474 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
7475 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
7476 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
7477 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
7478 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
7479 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
7480 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
7481 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
7482 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
7483 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
7484 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
7485 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
7486 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
7487 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
7488 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
7489 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
7490 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
7491 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
7492 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
7493 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
7494 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
7495 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
7496 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
7497 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
7498 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
7499 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
7500 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
7501 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
7502 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
7503 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
7504 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
7505 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
7506 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
7507 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
7508 checks.adb, checks.ads, cio.c, comperr.adb,
7509 comperr.ads, csets.adb, cstand.adb, cstreams.c,
7510 debug_a.adb, debug_a.ads, debug.adb, decl.c,
7511 einfo.adb, einfo.ads, errout.adb, errout.ads,
7512 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
7513 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
7514 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
7515 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
7516 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
7517 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
7518 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
7519 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
7520 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
7521 fe.h, fmap.adb, fmap.ads, fname.adb,
7522 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
7523 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
7524 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
7525 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
7526 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
7527 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
7528 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
7529 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
7530 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
7531 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
7532 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
7533 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
7534 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
7535 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
7536 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
7537 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
7538 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
7539 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
7540 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
7541 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
7542 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
7543 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
7544 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
7545 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
7546 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
7547 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
7548 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
7549 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
7550 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
7551 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
7552 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
7553 layout.adb, lib.adb, lib.ads, lib-list.adb,
7554 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
7555 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
7556 link.c, live.adb, make.adb, make.ads,
7557 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
7558 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
7559 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
7560 misc.c, mkdir.c, mlib.adb, mlib.ads,
7561 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
7562 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
7563 namet.adb, namet.ads, namet.h, nlists.ads,
7564 nlists.h, nmake.adt, opt.adb, opt.ads,
7565 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
7566 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
7567 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
7568 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
7569 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
7570 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
7571 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
7572 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
7573 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
7574 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
7575 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
7576 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
7577 prj-util.adb, prj-util.ads, raise.c, raise.h,
7578 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
7579 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
7580 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
7581 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
7582 scans.ads, scn.adb, scn.ads, s-crc32.adb,
7583 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
7584 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
7585 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
7586 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
7587 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
7588 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
7589 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
7590 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
7591 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
7592 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
7593 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
7594 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
7595 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
7596 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
7597 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
7598 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
7599 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
7600 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
7601 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
7602 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
7603 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
7604 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
7605 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
7606 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
7607 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
7608 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
7609 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
7610 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
7611 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
7612 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
7613 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
7614 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
7615 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
7616 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
7617 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
7618 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
7619 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
7620 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
7621 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
7622 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
7623 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
7624 stringt.adb, stringt.ads, stringt.h, style.ads,
7625 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
7626 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
7627 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
7628 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
7629 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
7630 table.adb, table.ads, targparm.adb, targparm.ads,
7631 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
7632 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
7633 ttypes.ads, types.ads, types.h, uintp.adb,
7634 uintp.ads, uintp.h, uname.adb, urealp.adb,
7635 urealp.ads, urealp.h, usage.adb, utils2.c,
7636 utils.c, validsw.adb, validsw.ads, widechar.adb,
7637 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
7638 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
7639 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
7640 gnatvsn.ads: Merge with ACT tree.
7642 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
7644 2003-10-20 Mark Mitchell <mark@codesourcery.com>
7646 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
7647 (gnat_ug_vmx.info): Likewise.
7648 (gnat_ug_vxw.info): Likewise.
7649 (gnat_ug_wnt.info): Likewise.
7650 (gnat_rm.info): Likewise.
7651 (gnat-style.info): Likewise.
7653 * Make-lang.in (ada.install-info): Remove target.
7655 (install-info): Likewise.
7656 (gnat_ug_unx.info): Simplify rule.
7657 (gnat_ug_vmx.info): Likewise.
7658 (gnat_ug_vxw.info): Likewise.
7659 (gnat_ug_wnt.info): Likewise.
7660 (gnat_rm.info): Likewise.
7661 (gnat-style.info): Likewise.
7663 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
7665 * Make-lang.in: Replace uses of $(target_alias) with
7666 $(target_noncanonical).
7667 * ada/Makefile.in: Remove unused mention of $(target_alias).
7669 2003-10-06 Mark Mitchell <mark@codesourcery.com>
7671 * Make-lang.in (ada.info): Replace with ...
7673 (ada.dvi): Replace with ...
7676 2003-09-29 Zack Weinberg <zack@codesourcery.com>
7678 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
7679 initialize dconstp5 and dconstmp5.
7681 2003-09-28 Richard Henderson <rth@redhat.com>
7683 * trans.c (tree_transform): Update call to expand_asm_operands.
7685 2003-09-21 Richard Henderson <rth@redhat.com>
7687 * trans.c, utils.c: Revert.
7689 2003-09-21 Richard Henderson <rth@redhat.com>
7691 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
7694 2003-09-04 Michael Matz <matz@suse.de>
7696 * misc.c: Include "target.h".
7697 * Make-lang.in (misc.o): Add dependency on target.h.
7699 2003-09-03 DJ Delorie <dj@redhat.com>
7701 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
7704 2003-08-30 Zack Weinberg <zack@codesourcery.com>
7706 * Makefile.in: Update substitutions to match changes to
7707 configure. Use include directives instead of @-insertions
7708 to read in host and target fragments. Add a rule to
7709 regenerate ada/Makefile.
7711 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
7713 * lang-options.h: Remove.
7714 * lang.opt: Add help text.
7716 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
7718 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
7721 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
7723 * misc.c (gnat_handle_option): Don't handle filenames.
7725 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
7727 * Make-lang.in: Replace PWD with PWD_COMMAND.
7728 * Makefile.adalib: Likewise.
7729 * Makefile.in: Likewise.
7731 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
7733 * misc.c (gnat_argv): Revert last change.
7734 (gnat_handle_option, gnat_init_options): Copy arguments.
7736 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
7738 * misc.c (gnat_argv): Make const.
7740 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
7742 * misc.c (save_argc, save_argv): Keep non-static!
7744 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
7746 * misc.c (save_argc, save_argv): Make static.
7747 (gnat_init_options): New prototype.
7748 (gnat_init_options): Update.
7750 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
7752 * gnat_ug.texi: Remove unlikely characters from @vars.
7753 * gnat_ug_vms.texi: Regenerate.
7755 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
7757 * misc.c (record_code_position): Adjust emit_note call.
7759 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
7761 * misc.c (gnat_handle_option): Don't check for missing arguments.
7763 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
7765 * utils.c (end_subprog_body): Adjust expand_function_end call.
7767 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
7769 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
7772 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
7774 * lang.opt: Declare Ada.
7775 * misc.c (gnat_init_options): Update.
7777 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
7779 * utils.c (begin_subprog_body): Adjust init_function_start call.
7781 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
7783 * Make-lang.in: Update to use options.c and options.h.
7784 * misc.c: Include options.h not aoptions.h.
7785 (gnat_handle_option): Abort on unrecognized switch.
7786 (gnat_init_options): Request Ada switches.
7788 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
7790 * lang.opt: Add -Wall.
7791 * misc.c (gnat_handle_option): Handle it.
7793 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
7795 * misc.c (gnat_handle_option): Fix warnings.
7797 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
7799 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
7801 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
7803 * Make-lang.in: Update to handle command-line options.
7804 * lang.opt: New file.
7805 * misc.c: Include aoptions.h.
7806 (cl_options_count, cl_options): Remove.
7807 (gnat_handle_option): New.
7808 (gnat_decode_option): Remove.
7809 (LANG_HOOKS_DECODE_OPTION): Remove.
7810 (LANG_HOOKS_HANDLE_OPTION): Override.
7812 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
7814 * init.c, misc.c, trans.c, utils.c: Remove dead code.
7816 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
7818 * Makefile.in: Replace "host_canonical" with "host" for autoconf
7821 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
7823 * Make-lang.in: Update.
7824 * misc.c: Include opts.h. Define cl_options_count and cl_options.
7826 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
7828 * misc.c (gnat_init_options): Update.
7830 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
7832 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
7833 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
7834 __attribute__ ((__unused__)).
7836 2003-06-05 Jan Hubicka <jh@suse.cz>
7838 * Make-lang.in: Add support for stageprofile and stagefeedback
7840 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
7842 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
7843 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
7845 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
7847 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
7848 Remove non-VMS directive.
7849 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
7851 (Examples of gnatls Usage): Remove VMS alternative.
7853 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
7856 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
7857 and turn ZCX_By_Default back to False since the underlying support
7858 is not quite there yet.
7860 2003-06-01 Andreas Jaeger <aj@suse.de>
7862 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
7863 and ROUND_TYPE_SIZE_UNIT.
7865 2003-05-22 Geert Bosch <bosch@gnat.com>
7867 * gnat_rm.texi : Remove reference to Ada Core Technologies.
7869 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
7871 * trans.c (tree_transform): Use location_t and input_location
7873 (build_unit_elab): Likewise.
7874 * utils.c (create_label_decl): Likewise.
7876 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
7878 * trans.c (tree_transform, build_unit_elab,
7879 set_lineno): Rename lineno to input_line.
7880 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
7881 end_subprog_body): Likewise.
7882 * utils2.c (build_call_raise): Likewise.
7884 2003-05-01 Laurent Guerby <guerby@acm.org>
7887 * 5iosinte.ads: Increase pthread_cond_t size to match recent
7888 LinuxThread and NPTL version, merge from ACT.
7890 2003-04-28 Zack Weinberg <zack@codesourcery.com>
7892 * utils.c (convert): No need to clear TREE_CST_RTL.
7894 2003-04-23 Geert Bosch <bosch@gnat.com>
7896 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
7897 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
7898 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
7899 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
7900 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
7901 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
7902 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
7903 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
7904 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
7905 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
7906 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
7907 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
7908 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
7909 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
7910 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
7911 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
7912 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
7913 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
7914 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
7915 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
7916 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
7917 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
7918 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
7919 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
7920 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
7921 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
7922 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
7923 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
7924 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
7925 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
7926 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
7927 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
7928 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
7929 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
7930 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
7931 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
7932 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
7933 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
7934 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
7935 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
7936 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
7937 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
7938 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
7939 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
7940 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
7941 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
7942 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
7943 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
7944 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
7945 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
7946 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
7947 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
7948 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
7949 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
7950 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
7951 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
7952 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
7953 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
7954 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
7955 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
7956 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
7957 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
7958 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
7959 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
7960 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
7961 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
7962 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
7963 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
7964 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
7965 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
7966 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
7967 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
7968 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
7969 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
7970 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
7971 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
7972 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
7973 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
7974 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
7975 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
7976 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
7977 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
7978 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
7979 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
7980 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
7981 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
7982 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
7983 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
7984 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
7985 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
7986 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
7987 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
7988 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
7989 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
7990 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
7991 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
7992 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
7993 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
7994 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
7995 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
7996 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
7997 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
7998 ali.adb, ali.ads, alloc.ads, argv.c,
7999 atree.adb, atree.ads, atree.h, aux-io.c,
8000 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
8001 binde.adb, binde.ads, binderr.adb, binderr.ads,
8002 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
8003 butil.adb, butil.ads, cal.c, calendar.ads,
8004 casing.adb, casing.ads, ceinfo.adb, checks.adb,
8005 checks.ads, cio.c, comperr.adb, comperr.ads,
8006 config-lang.in, csets.adb, csets.ads, csinfo.adb,
8007 cstand.adb, cstand.ads, cuintp.c, debug.adb,
8008 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
8009 dec-io.ads, dec.ads, deftarg.c, directio.ads,
8010 einfo.adb, einfo.ads, elists.adb, elists.ads,
8011 elists.h, errno.c, errout.adb, errout.ads,
8012 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
8013 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
8014 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
8015 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
8016 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
8017 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
8018 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
8019 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
8020 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
8021 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
8022 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
8023 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
8024 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
8025 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
8026 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
8027 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
8028 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
8029 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
8030 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
8031 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
8032 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
8033 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
8034 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
8035 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
8036 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
8037 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
8038 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
8039 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
8040 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
8041 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
8042 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
8043 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
8044 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
8045 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
8046 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
8047 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
8048 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
8049 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
8050 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
8051 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
8052 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
8053 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
8054 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
8055 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
8056 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
8057 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
8058 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
8059 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
8060 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
8061 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
8062 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
8063 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
8064 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
8065 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
8066 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
8067 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
8068 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
8069 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
8070 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
8071 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
8072 lib.adb, lib.ads, live.adb, live.ads,
8073 machcode.ads, make.adb, make.ads, makeusg.adb,
8074 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
8075 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
8076 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
8077 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
8078 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
8079 mlib.ads, namet.adb, namet.ads, nlists.adb,
8080 nlists.ads, opt.adb, opt.ads, osint-b.adb,
8081 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
8082 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
8083 osint.ads, output.adb, output.ads, par-ch10.adb,
8084 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
8085 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
8086 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
8087 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
8088 par-tchk.adb, par-util.adb, par.adb, par.ads,
8089 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
8090 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
8091 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
8092 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
8093 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
8094 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
8095 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
8096 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
8097 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
8098 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
8099 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
8100 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
8101 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
8102 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
8103 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
8104 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
8105 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
8106 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
8107 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
8108 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
8109 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
8110 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
8111 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
8112 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
8113 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
8114 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
8115 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
8116 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
8117 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
8118 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
8119 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
8120 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
8121 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
8122 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
8123 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
8124 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
8125 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
8126 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
8127 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
8128 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
8129 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
8130 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
8131 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
8132 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
8133 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
8134 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
8135 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
8136 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
8137 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
8138 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
8139 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
8140 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
8141 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
8142 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
8143 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
8144 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
8145 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
8146 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
8147 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
8148 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
8149 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
8150 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
8151 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
8152 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
8153 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
8154 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
8155 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
8156 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
8157 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
8158 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
8159 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
8160 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
8161 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
8162 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
8163 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
8164 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
8165 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
8166 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
8167 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
8168 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
8169 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
8170 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
8171 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
8172 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
8173 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
8174 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
8175 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
8176 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
8177 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
8178 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
8179 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
8180 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
8181 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
8182 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
8183 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
8184 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
8185 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
8186 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
8187 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
8188 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
8189 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
8190 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
8191 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
8192 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
8193 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
8194 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
8195 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
8196 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
8197 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
8198 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
8199 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
8200 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
8201 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
8202 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
8203 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
8204 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
8205 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
8206 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
8207 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
8208 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
8209 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
8210 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
8211 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
8212 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
8213 snames.ads, sprint.adb, sprint.ads, stand.adb,
8214 stand.ads, stringt.adb, stringt.ads, style.adb,
8215 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
8216 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
8217 switch-m.ads, switch.adb, switch.ads, system.ads,
8218 table.adb, table.ads, targparm.adb, targparm.ads,
8219 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
8220 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
8221 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
8222 ttypef.ads, ttypes.ads, types.adb, types.ads,
8223 uintp.adb, uintp.ads, uname.adb, uname.ads,
8224 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
8225 usage.adb, usage.ads, validsw.adb, validsw.ads,
8226 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
8227 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
8228 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
8229 formatting and other trivial changes from ACT.
8231 2003-04-12 Zack Weinberg <zack@codesourcery.com>
8233 * gigi.h, utils2.c (build_constructor):
8234 Rename gnat_build_constructor. Use build_constructor.
8235 * decl.c (gnat_to_gnu_entity)
8236 * trans.c (tree_transform, pos_to_constructor, extract_values)
8237 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
8239 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
8240 (fill_vms_descriptor):
8243 2003-04-06 Zack Weinberg <zack@codesourcery.com>
8245 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
8246 * misc.c (gnat_tree_size): New function.
8247 (LANG_HOOKS_TREE_SIZE): Override.
8249 2003-04-03 Jason Merrill <jason@redhat.com>
8251 * misc.c (gnat_adjust_rli): #if 0.
8253 2003-03-31 Geert Bosch <bosch@gnat.com>
8256 * link.c : Fix misspelled "const" keyword
8258 2003-03-23 Mark Mitchell <mark@codesourcery.com>
8261 * utils2.c: Adjust calls to put_var_into_stack.
8263 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
8265 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
8267 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
8269 * misc.c (gnat_init): Update for new prototype.
8271 2003-03-05 Olivier Hainque <hainque@gnat.com>
8274 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
8275 warning, and fix return type for the IN_RTS && !SJLJ case.
8277 2003-03-04 Tom Tromey <tromey@redhat.com>
8279 * Make-lang.in (ada.tags): New target.
8281 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
8284 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
8285 wrapper, which name remains constant whatever underlying GCC
8288 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
8289 the stable interface needed for a-except.
8291 2003-03-02 Andreas Jaeger <aj@suse.de>
8293 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
8294 gnat_ug_wnt.texi: Regenerate.
8296 2003-03-02 Laurent Guerby <guerby@acm.org>
8298 * Makefile.in (install-gnatlib): Match previous change there
8301 2003-02-28 Andreas Schwab <schwab@suse.de>
8303 * Make-lang.in (install-gnatlib): Change to ada directory before
8304 running make instead of using ada/Makefile directly.
8306 2003-02-18 Ben Elliston <bje@redhat.com>
8308 Part of fix for PR ada/9406
8309 * gnat_ug.texi (Binder output file): Grammar fix.
8311 2003-02-18 Ben Elliston <bje@redhat.com>
8314 * 5qtaprop.adb (Sleep): Fix typo in comment.
8316 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
8318 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
8319 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
8320 gnat_ug_wnt.texi: Regenerate.
8322 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
8324 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
8325 be created if necessary.
8326 (ada.install-common): Let $(DESTDIR)$(bindir) be created
8327 if necessary. Remove erroneous and redundant gnatchop
8328 installation commands. Test for gnatdll before attempting
8330 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
8331 and gnatdll from all plausible locations.
8333 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
8335 * utils2.c (build_unary_op): Don't check flag_volatile.
8336 * gnat_ug.texi: Remove -fvolatile from example.
8337 * gnat_ug_vxw.texi: Likewise.
8339 2003-01-29 Laurent Guerby <guerby@acm.org>
8342 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
8343 * Makefile.in: match previous change.
8344 * Make-lang.in: match previous change.
8346 2003-01-29 Joel Sherrill <joel@OARcorp.com>
8348 * 5rosinte.ads: Add SIGXCPU.
8349 * 5rtpopsp.adb: New file.
8350 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
8351 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
8352 specific file 5rtpopsp.adb.
8353 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
8354 is likely needed for all newlib targets.
8355 * init.c: Add RTEMS specific version of __gnat_initialize().
8357 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8359 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
8361 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8363 * init.c (__gnat_error_handler): Make msg const.
8365 * gmem.c (convert_addresses): Move declaration ...
8366 * adaint.h: ... here.
8367 * adaint.c (convert_addresses): Adapt addrs type to match
8370 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
8372 2003-01-24 Andreas Schwab <schwab@suse.de>
8374 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
8375 size_t to avoid warning.
8377 2003-01-21 Zack Weinberg <zack@codesourcery.com>
8379 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
8381 2003-01-09 Geoffrey Keating <geoffk@apple.com>
8383 * gnat_rm.texi: Remove RCS version number.
8385 * ada-tree.h (union lang_tree_node): Add chain_next option.
8387 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
8389 * Make-lang.in (ada.install-info, ada.install-common,
8390 ada.uninstall): Prepend $(DESTDIR) to the destination
8391 directory in all (un)installation commands.
8392 * Makefile.in (install-gnatlib, install-rts): Ditto.
8394 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
8396 * gnat_rm.texi, gnat_ug.texi: Use @copying.
8397 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
8398 gnat_ug_wnt.texi: Regenerate.
8400 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
8402 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
8404 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
8405 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
8406 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
8407 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
8408 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
8409 $(srcdir)/doc/include/gcc-common.texi.
8411 2002-12-15 Geert Bosch <bosch@gnat.com>
8413 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
8415 2002-12-14 Geert Bosch <bosch@gnat.com>
8417 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
8418 case of a body created for a Renaming_As_Body, on which
8419 conformance checks are not performed. Fixes PR ada/5690.
8421 2002-11-30 Zack Weinberg <zack@codesourcery.com>
8423 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
8424 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
8425 not already included.
8426 * Make-lang.in: Update dependencies.
8428 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
8429 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
8430 solution to buffer overflow bug on GNU/Linux.
8432 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
8433 Closes PR ada/5856 and PR ada/6919 !
8434 * bindgen.adb: Remove all references to Public_Version.
8435 * comperr.adb: Remove all references to Public_Version and
8436 GNATPRO_Version; correct bug reporting instructions.
8437 * comperr.ads: Change to match bug box.
8438 * gnatvsn.ads: Remove all references to Public version and
8441 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
8443 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
8447 * config-lang.in: Remove diff_excludes.
8449 2002-11-05 Graham Stott <graham.stott@btinternet.com>
8451 * trans.c (gnu_pending_elaboration_lists): New GC root.
8452 (build_unit_elab): Use..
8454 2002-10-30 Geert Bosch <bosch@gnat.com>
8456 * misc.c : Include optabs.h
8458 * Make-lang.in (misc.o): Add dependency on optabs.h
8460 2002-10-29 Geert Bosch <bosch@gnat.com>
8462 * Make-lang.in (gnatbind): Depend on CONFIG_H
8464 2002-10-29 Geert bosch <bosch@gnat.com>
8466 * misc.c: Unrevert misc.c (1.13)
8468 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
8470 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
8471 maintainership comments.
8473 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
8475 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
8476 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
8477 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
8478 7staprop.adb: Correct statements in comments about
8479 maintainership of GNAT.
8482 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
8483 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
8484 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
8485 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
8486 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
8487 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
8488 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
8489 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
8490 comments about maintainership of GNAT.
8492 PR ada/6919 (forward port of patch for PR ada/5904)
8493 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
8494 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
8495 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
8496 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
8497 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
8498 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
8499 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
8500 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
8501 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
8502 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
8503 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
8504 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
8505 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
8506 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
8507 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
8508 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
8509 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
8510 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
8511 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
8512 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
8513 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
8514 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
8515 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
8516 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
8517 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
8518 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
8519 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
8520 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
8521 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
8522 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
8523 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
8524 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
8525 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
8526 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
8527 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
8528 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
8529 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
8530 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
8531 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
8532 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
8533 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
8534 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
8535 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
8536 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
8537 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
8538 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
8539 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
8540 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
8541 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
8542 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
8543 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
8544 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
8545 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
8546 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
8547 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
8548 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
8549 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
8550 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
8551 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
8552 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
8553 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
8554 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
8555 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
8556 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
8557 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
8558 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
8559 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
8560 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
8561 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
8562 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
8563 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
8564 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
8565 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
8566 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
8567 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
8568 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
8569 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
8570 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
8571 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
8572 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
8573 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
8574 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
8575 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
8576 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
8577 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
8578 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
8579 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
8580 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
8581 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
8582 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
8583 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
8584 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
8585 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
8586 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
8587 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
8588 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
8589 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
8590 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
8591 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
8592 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
8593 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
8594 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
8595 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
8596 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
8597 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
8598 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
8599 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
8600 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
8601 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
8602 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
8603 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
8604 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
8605 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
8606 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
8607 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
8608 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
8609 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
8610 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
8611 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
8612 par-endh.adb par-labl.adb par-load.adb par-prag.adb
8613 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
8614 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
8615 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
8616 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
8617 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
8618 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
8619 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
8620 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
8621 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
8622 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
8623 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
8624 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
8625 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
8626 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
8627 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
8628 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
8629 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
8630 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
8631 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
8632 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
8633 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
8634 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
8635 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
8636 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
8637 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
8638 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
8639 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
8640 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
8641 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
8642 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
8643 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
8644 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
8645 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
8646 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
8647 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
8648 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
8649 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
8650 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
8651 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
8652 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
8653 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
8654 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
8655 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
8656 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
8657 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
8658 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
8659 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
8660 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
8661 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
8662 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
8663 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
8664 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
8665 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
8666 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
8667 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
8668 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
8669 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
8670 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
8671 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
8672 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
8673 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
8674 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
8675 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
8676 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
8677 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
8678 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
8679 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
8680 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
8681 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
8682 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
8683 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
8684 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
8685 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
8686 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
8687 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
8688 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
8689 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
8690 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
8691 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
8692 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
8693 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
8694 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
8695 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
8696 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
8697 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
8698 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
8699 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
8700 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
8701 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
8702 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
8703 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
8704 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
8705 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
8706 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
8707 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
8708 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
8709 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
8710 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
8711 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
8712 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
8713 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
8714 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
8715 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
8716 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
8717 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
8718 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
8719 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
8720 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
8721 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
8722 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
8723 stringt.ads stringt.h style.adb style.ads stylesw.adb
8724 stylesw.ads switch.adb switch.ads sysdep.c system.ads
8725 table.adb table.ads targparm.adb targparm.ads targtyps.c
8726 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
8727 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
8728 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
8729 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
8730 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
8731 usage.ads utils.c utils2.c validsw.adb validsw.ads
8732 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
8733 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
8734 xtreeprs.adb: Correct statements in comments about maintainership
8737 2002-09-23 Zack Weinberg <zack@codesourcery.com>
8739 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
8740 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
8741 * gnatvsn.ads: Gnat_Version_String is now a function.
8742 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
8743 copy the C version_string into a String and return it.
8744 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
8745 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
8746 Remove pragma Ident (Gnat_Version_String). If this was the
8747 sole use of package Gnatvsn, remove the with statement too.
8748 * gnat1drv.adb: Tweak -gnatv output.
8750 2002-09-17 Richard Henderson <rth@redhat.com>
8752 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
8753 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
8754 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
8755 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
8756 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
8757 and real_2expN instead of a loop.
8758 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
8759 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
8761 2002-08-25 Andre Leis <a.leis@gmx.net>
8762 David Billinghurst (David.Billinghurst@riotinto.com>
8764 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
8766 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8768 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
8769 Remove $(CONFIG_H) dependency.
8771 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
8773 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
8775 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8777 * adadecode.c (ada_demangle): Use xstrdup in lieu of
8779 * misc.c (gnat_decode_option): Likewise.
8781 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
8783 * make.adb (Add_Switch): Make Generic_Position a procedure. The
8784 function approach did not work well because of a side effect (the
8785 function call could reallocate the table which was being indexed
8786 using its result). Fixes ada/4851. [RESURRECTED]
8788 2002-07-01 Roger Sayle <roger@eyesopen.com>
8790 * ada/utils.c (builtin_function): Accept an additional parameter.
8792 2002-06-28 Andreas Jaeger <aj@suse.de>
8795 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
8798 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8800 * Makefile.in (SHELL): Set to @SHELL@.
8802 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8804 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
8805 array size calculation.
8807 2002-06-04 Andreas Jaeger <aj@suse.de>
8809 * Make-lang.in (gnatbind): Readd rule that has been lost in last
8812 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
8814 Merge from pch-branch:
8816 * config-lang.in (gtfiles): Add ada-tree.h.
8817 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
8818 (SET_TYPE_MODULUS): New.
8819 (SET_TYPE_INDEX): New.
8820 (SET_TYPE_DIGITS_VALUE): New.
8821 (SET_TYPE_RM_SIZE): New.
8822 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
8823 (SET_TYPE_ADA_SIZE): New.
8824 (SET_TYPE_ACTUAL_BOUNDS): New.
8825 (SET_DECL_CONST_CORRESPONDING_VAR): New.
8826 (SET_DECL_ORIGINAL_FIELD): New.
8827 (TREE_LOOP_ID): Correct typo.
8828 * decl.c: Use new macros.
8829 * utils.c: Include debug.h, use new macros.
8830 * utils2.c: Use new macros.
8832 * ada-tree.h: Update all macros for new tree description.
8833 (struct tree_loop_id): New.
8834 (union lang_tree_node): New.
8835 (struct lang_decl): New.
8836 (struct lang_type): New.
8837 * misc.c (gnat_mark_tree): Delete.
8838 (LANG_HOOKS_MARK_TREE): Delete.
8839 * trans.c (tree_transform): No longer any need to cast
8842 * utils.c (struct language_function): New dummy structure.
8844 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
8846 (utils.o): Likewise; also gtype-ada.h.
8847 * Make-lang.in (gnat1): Add dependency on s-gtype.
8848 (gnatbind): Add dependency on $(CONFIG_H).
8849 * utils.c: Correct last #include.
8850 (stuct e_stack): Remove unnecessary 'static'.
8851 (mark_e_stack): Remove unused prototype.
8853 * scn-nlit.adb: Remove whitespace after version number to
8854 keep lines under 80 chars.
8855 * snames.adb: Likewise.
8856 * treepr.ads: Likewise.
8858 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
8860 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
8861 * config-lang.in (gtfiles): New.
8862 * decl.c: Use gengtype for roots.
8863 * gigi.h: Use gengtype for roots.
8864 * trans.c: Use gengtype for roots.
8865 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
8867 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
8869 * misc.c (gnat_init): Adjust setting of internal_error_function.
8871 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
8873 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
8874 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
8875 gnat_ug_wnt.texi: Regenerate.
8877 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
8879 * 5ntaprop.adb (with System.OS_Primitives): Remove.
8881 * cstreams.c (max_path_len): Move from here ...
8882 * adaint.c (__gnat_max_path_len): ... to here.
8883 * adaint.c (__gnat_max_path_len): Declare.
8884 * g-dirope.adb (Max_Path): Adjust.
8885 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
8886 * i-cstrea.ads (max_path_len): Adjust.
8887 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
8888 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
8890 * Makefile.in, Make-lang.in: Documentation is now built in
8891 Make-lang.in. Store Info and generated Texinfo files in the
8893 * gnat_ug.texi: Remove CVS keywords, correct version number.
8894 Set file name correctly.
8896 * gnat_ug_*.texi: Add.
8897 * .cvsignore: Ignore generated Texinfo files.
8899 2002-05-30 Zack Weinberg <zack@codesourcery.com>
8901 * ada.h: Add MI guard macro.
8902 (SUBTYPE): Define constants with an anonymous enum, not static
8904 (IN): Cast constants to appropriate type before use.
8906 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
8908 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
8911 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8913 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
8914 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
8915 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
8916 (ALL_ADA_CFLAGS): Likewise.
8917 (ADA_INCLUDES): Likewise.
8918 Adapt for new working dir.
8919 (GNATBIND): Use Makefile.in version.
8920 (.SUFFIXES): Copy from Makefile.in.
8922 (.adb.o, .ads.o): Copy from Makefile.in.
8923 Added $(OUTPUT_OPTION).
8924 (GNAT1_C_OBJS): Moved from Makefile.in.
8925 Prefix with ada subdir.
8926 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
8927 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
8928 Adapt for new working dir.
8929 (EXTRA_GNATBIND_OBJS): Likewise.
8930 (ADA_BACKEND): Moved from Makefile.in.
8931 Renamed to avoid conflict with global BACKEND.
8933 (TARGET_ADA_SRCS): Moved from Makefile.in.
8934 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
8936 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
8937 (ada_extra_files): Moved from Makefile.in.
8938 Prefix with ada subdir.
8939 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
8940 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
8941 (ada/nmake.ads): Likewise.
8942 (update-sources): Moved from Makefile.in.
8943 Prefix with ada subdir.
8944 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
8945 (ADA_TREE_H): Likewise.
8946 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
8947 (ada/memtrack.o): Likewise.
8948 (ada/adadecode.o): Likewise.
8949 Update dependencies.
8950 (ada/adaint.o): New.
8951 (ada/argv.o): Moved from Makefile.in.
8952 Prefix with ada subdir.
8953 Update dependencies.
8954 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
8955 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
8956 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
8957 Prefix with ada subdir.
8958 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
8959 (GNAT DEPENDENCIES): Regenerate.
8960 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
8961 toplevel Makefile.in.
8962 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
8963 (TARGET_ADA_SRCS): Removed.
8964 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
8965 (GNATBIND_OBJS): Likewise.
8966 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
8968 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
8970 (ada_extra_files): Likewise.
8971 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
8972 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
8973 (update-sources): Likewise.
8974 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
8975 (ADA_TREE_H): Likewise.
8976 (adadecoce.o): Likewise.
8977 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
8978 (GNAT DEPENDENCIES): Likewise.
8980 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8982 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
8983 * Makefile.in: Likewise.
8985 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8987 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
8988 Restore $(CONFIG_H) and prefix.o dependencies.
8989 (ada.stage[1-4]): Depend on stage?-start.
8991 * Makefile.in (b_gnatb.c): Depend on interfac.o.
8993 2002-05-02 Jim Wilson <wilson@redhat.com>
8995 * utils.c (finish_record_type): Change record_size to record_type.
8997 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
8999 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
9000 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
9001 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
9003 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
9005 * misc.c (gnat_parse_file): Update.
9007 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
9009 * misc.c (gnat_init): Don't set lang_attribute_common.
9011 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
9013 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
9015 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
9017 * gnat_ug.texi: New file.
9019 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
9020 instead of gfdl.texi
9022 * xgnatug.adb, ug_words: New files.
9024 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
9025 gnat_rm and gnat-style manuals.
9027 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
9029 * gigi.h (incomplete_type_error): Remove.
9030 * utils.c (incomplete_type_error): Remove.
9032 2002-04-16 Mark Mitchell <mark@codesourcery.com>
9034 * trans.c (tree_transform): Add has_scope argument to
9035 expand_start_stmt_expr.
9037 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
9039 * gigi.h (truthvalue_conversion): Rename.
9040 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
9041 * trans.c (tree_transform): Update.
9042 * utils2.c (truthvalue_conversion): Rename, update.
9043 (build_binary_op, build_unary_op): Update.
9045 2002-04-04 Laurent Guerby <guerby@acm.org>
9047 * make.adb: Implement -margs, remove restriction about file name placement.
9048 * makeusg.adb: Documentation update.
9049 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
9050 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
9052 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
9054 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
9055 (builtin_function): Similarly.
9057 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9059 * decl.c (gnat_to_gnu_entity): Update.
9060 * gigi.h (mark_addressable): Rename.
9061 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
9062 * trans.c (tree_transform): Update.
9063 * utils.c (create_var_decl): Update.
9064 * util2.c (build_binary_op, build_unary_op,
9065 fill_vms_descriptor): Update.
9066 (mark_addressable): Rename, update.
9068 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
9070 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
9072 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
9073 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
9074 * trans.c (tree_transform, convert_with_check): Update.
9075 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
9078 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
9080 * gigi.h (finish_incomplete_decl): Rename.
9081 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
9082 * utils.c (gnat_init_decl_processing): Don't set hook.
9083 (finish_incomplete_decl): Rename.
9085 2002-03-29 Andreas Schwab <schwab@suse.de>
9087 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
9090 2001-03-28 Robert Dewar <dewar@gnat.com>
9093 (Remove_Checks): New procedure
9096 (Remove_Checks): New procedure
9099 Use new Duplicate_Subexpr functions
9100 (Duplicate_Subexpr_No_Checks): New procedure
9101 (Duplicate_Subexpr_No_Checks_Orig): New procedure
9102 (Duplicate_Subexpr): Restore original form (checks duplicated)
9103 (Duplicate_Subexpr): Call Remove_Checks
9106 (Duplicate_Subexpr_No_Checks): New procedure
9107 (Duplicate_Subexpr_No_Checks_Orig): New procedure
9108 Add 2002 to copyright notice
9110 * sem_util.adb: Use new Duplicate_Subexpr functions
9113 (Eval_Indexed_Component): This is the place to call
9114 Constant_Array_Ref and to replace the value. We simply merge
9115 the code of this function in here, since it is now no longer
9116 used elsewhere. This fixes the problem of the back end not
9117 realizing we were clever enough to see that this was
9119 (Expr_Val): Remove call to Constant_Array_Ref
9120 (Expr_Rep_Val): Remove call to Constant_Array_Ref
9122 (Constant_Array_Ref): Deal with string literals (patch
9123 suggested by Zack Weinberg on the gcc list)
9125 2001-03-28 Ed Schonberg <schonber@gnat.com>
9127 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
9128 Duplicate_Subexpr_Move_Checks.
9130 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
9131 Duplicate_Subexpr_Move_Checks.
9133 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
9134 value of array exists before retrieving it (it may a private
9135 protected component in a function).
9137 2002-03-28 Geert Bosch <bosch@gnat.com>
9139 * prj-pp.adb : New file.
9141 * prj-pp.ads : New file.
9143 2002-03-28 Andreas Jaeger <aj@suse.de>
9145 * Makefile.in (stamp-sdefault): Fix path for Makefile.
9147 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
9149 * misc.c (gnat_expand_expr): Move prototype.
9151 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
9153 * misc.c (insert_default_attributes): Remove.
9155 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
9157 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
9158 (gnat_init): Don't set hook.
9159 (gnat_expand_expr): Fix prototype.
9161 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
9163 * misc.c (ggc_p): Remove.
9165 2002-03-27 Geert Bosch <bosch@gnat.com>
9167 * prj-makr.ads, prj-makr.adb : New files.
9169 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
9171 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
9172 (lang_mark_tree): Make static, rename.
9174 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
9176 * misc.c (maybe_build_cleanup): Remove.
9178 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
9180 * gigi.h (yyparse): Remove.
9182 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
9184 * gnat_rm.texi: Sync with ACT version.
9185 (From Ben Brosgol <brosgol@gnat.com>)
9187 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
9189 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9190 (gnat_init): Remove old hook.
9192 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
9194 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
9195 (yyparse): Rename gnat_parse_file.
9197 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
9199 Delete all lines containing "$Revision:".
9200 * xeinfo.adb: Don't look for revision numbers.
9201 * xnmake.adb: Likewise.
9202 * xsinfo.adb: Likewise.
9203 * xsnames.adb: Likewise.
9204 * xtreeprs.adb: Likewise.
9206 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9208 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
9209 gnat_tree_code_name): Delete.
9210 (tree_code_type, tree_code_length, tree_code_name): Define.
9211 (gnat_init): Don't try to copy into the various tree_code
9214 2002-03-11 Richard Henderson <rth@redhat.com>
9216 * Makefile.in (.NOTPARALLEL): Add fake tag.
9218 2002-03-07 Geert Bosch <bosch@gnat.com>
9220 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
9221 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
9222 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
9223 switch-m.adb, switch-m.ads : New files.
9225 2002-03-07 Geert Bosch <bosch@gnat.com>
9227 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
9228 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
9229 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
9230 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
9231 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
9232 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
9233 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
9234 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
9235 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
9236 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
9237 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
9238 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
9239 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
9240 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
9241 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
9242 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
9243 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
9244 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
9245 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
9246 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
9247 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
9248 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
9249 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
9250 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
9251 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
9252 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
9253 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
9254 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
9255 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
9256 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
9257 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
9258 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
9259 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
9260 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
9261 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
9262 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
9263 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
9264 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
9265 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
9266 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
9267 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
9268 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
9269 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
9270 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
9271 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
9272 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
9273 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
9274 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
9275 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
9276 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
9277 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
9278 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
9279 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
9280 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
9281 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
9282 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
9283 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
9284 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
9285 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
9286 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
9287 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
9288 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
9289 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
9290 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
9291 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
9292 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
9293 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
9294 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
9295 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
9296 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
9297 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
9298 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
9299 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
9300 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
9301 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
9302 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
9303 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
9304 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
9305 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
9306 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
9307 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
9308 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
9309 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
9310 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
9311 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9312 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
9313 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
9314 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
9315 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
9316 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
9317 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
9318 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
9319 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
9320 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
9321 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
9322 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
9323 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
9325 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
9326 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
9327 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
9328 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
9330 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
9331 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
9333 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
9334 to mdll-fil.ad[bs] and mdll-util.ad[bs]
9336 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
9337 from mdllfile.ad[bs] and mdlltool.ad[bs]
9339 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9341 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
9342 lieu of explicit sizeof/sizeof.
9344 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
9346 * misc.c (copy_lang_decl): Remove.
9348 2002-02-27 Zack Weinberg <zack@codesourcery.com>
9350 * misc.c: Delete traditional-mode-related code copied from the
9351 C front end but not used, or used only to permit the compiler
9354 2002-02-07 Richard Henderson <rth@redhat.com>
9356 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
9357 * adaint.h (__gnat_to_gm_time): Update prototype.
9359 2002-01-30 Richard Henderson <rth@redhat.com>
9361 * trans.c (tree_transform) [N_Loop_Statement]: Use
9362 expand_exit_loop_top_cond.
9364 2001-12-23 Richard Henderson <rth@redhat.com>
9366 * utils.c (end_subprog_body): Push GC context around
9367 rest_of_compilation for nested functions.
9369 2001-12-23 Richard Henderson <rth@redhat.com>
9371 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
9373 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
9375 * gnat-style.texi (Declarations and Types): Remove ancient style
9376 rule which was mandated by code generation issues.
9378 * gnat-style.texi (header): Add @dircategory, @direntry.
9379 (title page): Remove date.
9380 (general) Add @./@: where approriate, and two spaces after the
9381 full stop at the end of a sentence. Use @samp markup when
9382 referring concrete lexical entities (keywords, attribute names
9383 etc.), and @syntax for ARM grammar elements. Use @r for English
9384 text in comments. Use @emph for emphasis. Change "if-statements"
9385 etc. to "if statements" (without @samp). Break long lines. Make
9386 casing of section names consistent.
9387 (Identifiers): Use @samp markup for variable names.
9388 (Comments): Use @samp markup for comment characters. Line-end
9389 comments may follow any Ada code, not just statements. Fix
9390 misspelling of "Integer" as "integer".
9391 (Loop statements): Do not use variable name "I", use "J".
9392 (Subprogram Declarations): Document alignment.
9393 (Subprogram Bodies, Block statements): Document empty line before
9396 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
9398 * make.adb (Add_Switch): Make Generic_Position a procedure. The
9399 function approach did not work well because of a side effect (the
9400 function call could reallocate the table which was being indexed
9401 using its result). Fixes ada/4851.
9403 2001-12-19 Robert Dewar <dewar@gnat.com>
9405 * bindgen.adb: Minor reformatting
9407 * cstand.adb: Minor reformatting
9409 * fmap.adb: Minor reformatting
9410 Change name from Add for Add_To_File_Map (Add is much too generic)
9411 Change Path_Name_Of to Mapped_Path_Name
9412 Change File_Name_Of to Mapped_File_Name
9413 Fix copyright dates in header
9416 Change name from Add for Add_To_File_Map (Add is much too generic)
9417 Change Path_Name_Of to Mapped_Path_Name
9418 Change File_Name_Of to Mapped_File_Name
9419 Fix copyright dates in header
9421 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
9422 Add use clause for Fmap.
9424 * make.adb: Minor reformatting
9426 * osint.adb: Minor reformatting. Change of names in Fmap.
9427 Add use clause for Fmap.
9429 * prj-env.adb: Minor reformatting
9431 * prj-env.ads: Minor reformatting
9433 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
9434 error found (there were odd exceptions to this general rule in
9435 -gnatec/-gnatem processing)
9437 2001-12-19 Olivier Hainque <hainque@gnat.com>
9439 * raise.c (__gnat_eh_personality): Exception handling personality
9440 routine for Ada. Still in rough state, inspired from the C++ version
9441 and still containing a bunch of debugging artifacts.
9442 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
9443 inspired from the C++ library.
9445 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
9446 exception handling integration.
9448 2001-12-19 Arnaud Charlet <charlet@gnat.com>
9450 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
9451 (HIE_SOURCES): Add s-secsta.ad{s,b}.
9452 (HIE_OBJS): Add s-fat*.o
9453 (RAVEN_SOURCES): Remove files that are no longer required. Add
9454 interrupt handling files.
9455 (RAVEN_MOD): Removed, no longer needed.
9457 2001-12-19 Robert Dewar <dewar@gnat.com>
9459 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
9460 Add 2001 to copyright date
9462 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
9463 need to force universal inlining for these cases.
9465 2001-12-19 Arnaud Charlet <charlet@gnat.com>
9467 * s-taprob.adb: Minor clean ups so that this unit can be used in
9470 * exp_ch7.adb: Allow use of secondary stack in HI mode.
9471 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
9473 2001-12-19 Vincent Celier <celier@gnat.com>
9475 * prj-tree.ads (Project_Node_Record): Add comments for components
9476 Pkg_Id and Case_Insensitive.
9478 2001-12-19 Pascal Obry <obry@gnat.com>
9480 * g-socket.adb: Minor reformatting. Found while reading code.
9482 2001-12-19 Robert Dewar <dewar@gnat.com>
9484 * prj-tree.ads: Minor reformatting
9486 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
9488 * config-lang.in (diff_excludes): Remove.
9490 2001-12-17 Ed Schonberg <schonber@gnat.com>
9492 * sem_res.adb (Resolve_Selected_Component): do not generate a
9493 discriminant check if the selected component is a component of
9494 the argument of an initialization procedure.
9496 * trans.c (tree_transform, case of arithmetic operators): If result
9497 type is private, the gnu_type is the base type of the full view,
9498 given that the full view itself may be a subtype.
9500 2001-12-17 Robert Dewar <dewar@gnat.com>
9502 * sem_res.adb: Minor reformatting
9504 * trans.c (tree_transform, case N_Real_Literal): Add missing third
9505 parameter in call to Machine (unknown horrible effects from this
9508 * urealp.h: Add definition of Round_Even for call to Machine
9509 Add third parameter for Machine
9511 2001-12-17 Ed Schonberg <schonber@gnat.com>
9513 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
9514 predefined units in No_Run_Time mode.
9516 2001-12-17 Richard Kenner <kenner@gnat.com>
9518 * misc.c (insn-codes.h): Now include.
9520 2001-12-17 Olivier Hainque <hainque@gnat.com>
9522 * a-except.adb: Preparation work for future integration of the GCC 3
9523 exception handling mechanism
9524 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
9525 to factorize previous code sequences and make them externally callable,
9526 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
9527 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
9528 Use the new notification routines.
9530 2001-12-17 Emmanuel Briot <briot@gnat.com>
9532 * prj-tree.ads (First_Choice_Of): Document the when others case
9534 2001-12-17 Arnaud Charlet <charlet@gnat.com>
9536 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
9537 HI-E mode, in order to support Ravenscar profile properly.
9539 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
9540 mode on 32 bits targets.
9542 2001-12-17 Vincent Celier <celier@gnat.com>
9544 * fmap.adb: Initial version.
9546 * fmap.ads: Initial version.
9548 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
9549 If search is successfully done, add to mapping.
9551 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
9554 (Gnatmake): Add new local variable Mapping_File_Name.
9555 Create mapping file when using project file(s).
9556 Delete mapping file before exiting.
9558 * opt.ads (Mapping_File_Name): New variable
9560 * osint.adb (Find_File): Use path name found in mapping, if any.
9562 * prj-env.adb (Create_Mapping_File): New procedure
9564 * prj-env.ads (Create_Mapping_File): New procedure.
9566 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
9569 * usage.adb: Add entry for new switch -gnatem.
9571 * Makefile.in: Add dependencies for fmap.o.
9573 2001-12-17 Ed Schonberg <schonber@gnat.com>
9575 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
9576 is a package instantiation rewritten as a package body.
9577 (Install_Withed_Unit): Undo previous change, now redundant.
9579 2001-12-17 Gary Dismukes <dismukes@gnat.com>
9582 (Compute_Length): Move conversion to Unsigned to callers.
9583 (Get_Max_Size): Convert Len expression to Unsigned after calls to
9584 Compute_Length and Determine_Range.
9585 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
9586 Compute_Length and Determine_Range.
9587 Above changes fix problem with length computation for supernull arrays
9588 where Max (Len, 0) wasn't getting applied due to the Unsigned
9589 conversion used by Compute_Length.
9591 2001-12-17 Arnaud Charlet <charlet@gnat.com>
9594 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
9595 System.Secondary_Stack.
9596 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
9598 Remove unused entity RE_Exception_Data.
9600 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
9602 * rident.ads (No_Secondary_Stack): New restriction.
9604 2001-12-17 Joel Brobecker <brobecke@gnat.com>
9606 * gnat_rm.texi: Fix minor typos. Found while reading the section
9607 regarding "Bit_Order Clauses" that was sent to a customer.
9608 Very interesting documentation!
9610 2001-12-17 Robert Dewar <dewar@gnat.com>
9612 * sem_case.adb (Choice_Image): Avoid creating improper character
9613 literal names by using the routine Set_Character_Literal_Name. This
9614 fixes bombs in certain error message cases.
9616 2001-12-17 Arnaud Charlet <charlet@gnat.com>
9618 * a-reatim.adb: Minor reformatting.
9620 2001-12-17 Ed Schonberg <schonber@gnat.com>
9622 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
9623 case where the formal is an extension of another formal in the current
9624 unit or in a parent generic unit.
9626 2001-12-17 Arnaud Charlet <charlet@gnat.com>
9628 * s-tposen.adb: Update comments. Minor reformatting.
9629 Minor code clean up.
9631 * s-tarest.adb: Update comments. Minor code reorganization.
9633 2001-12-17 Gary Dismukes <dismukes@gnat.com>
9635 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
9638 2001-12-17 Robert Dewar <dewar@gnat.com>
9640 * exp_attr.adb: Minor reformatting
9642 2001-12-17 Ed Schonberg <schonber@gnat.com>
9644 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
9645 derivations nested within a child unit: verify that the parent
9646 type is declared in an outer scope.
9648 2001-12-17 Robert Dewar <dewar@gnat.com>
9650 * sem_ch12.adb: Minor reformatting
9652 2001-12-17 Ed Schonberg <schonber@gnat.com>
9654 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
9655 warning if current unit is a predefined one, from which bodies may
9658 2001-12-17 Robert Dewar <dewar@gnat.com>
9660 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
9661 Fix header format. Add 2001 to copyright date.
9663 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
9664 which caused CE during compilation if checks were enabled.
9666 2001-12-17 Vincent Celier <celier@gnat.com>
9669 (Switches_Of): New function
9670 (Test_If_Relative_Path): New procedure
9671 (Add_Switches): Use new function Switches_Of
9672 (Collect_Arguments_And_Compile): Use new function Switches_Of.
9673 When using a project file, test if there are any relative
9674 search path. Fail if there are any.
9675 (Gnatmake): Only add switches for the primary directory when not using
9676 a project file. When using a project file, change directory to the
9677 object directory of the main project file. When using a project file,
9678 test if there are any relative search path. Fail if there are any.
9679 When using a project file, fail if specified executable is relative
9680 path with directory information, and prepend executable, if not
9681 specified as an absolute path, with the exec directory. Make sure
9682 that only one -o switch is transmitted to the linker.
9684 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
9687 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
9688 when using a non standard naming scheme.
9689 (Check_Ada_Naming_Scheme): Make sure that error messages
9690 do not raise exceptions.
9691 (Is_Illegal_Append): Return True if there is no dot in the suffix.
9692 (Language_Independent_Check): Check the exec directory.
9694 * prj.adb (Project_Empty): Add new component Exec_Directory
9697 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
9698 (Project_Data): Add component Exec_Directory
9700 * snames.adb: Updated to match snames.ads revision 1.215
9702 * snames.ads: Added Exec_Dir
9704 2001-12-17 Robert Dewar <dewar@gnat.com>
9706 * make.adb: Minor reformatting
9708 * prj-nmsc.adb: Minor reformatting
9710 * snames.adb: Updated to match snames.ads
9712 * snames.ads: Alphebetize entries for project file
9714 2001-12-17 Ed Schonberg <schonber@gnat.com>
9716 * trans.c (process_freeze_entity): Do nothing if the entity is a
9717 subprogram that was already elaborated.
9719 2001-12-17 Richard Kenner <kenner@gnat.com>
9721 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
9722 and Esize if object is referenced via pointer.
9724 2001-12-17 Ed Schonberg <schonber@gnat.com>
9726 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
9727 is discrete before analyzing choices.
9729 2001-12-17 Joel Brobecker <brobecke@gnat.com>
9731 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
9732 containing the name of the Ada Main Program. This string is mainly
9733 intended for the debugger.
9734 (Gen_Output_File_C): Do the equivalent change when generating a C file.
9736 2001-12-17 Robert Dewar <dewar@gnat.com>
9738 * ali.adb: Set new Dummy_Entry field in dependency entry
9740 * ali.ads: Add Dummy_Entry field to source dependency table
9742 * bcheck.adb (Check_Consistency): Ignore dummy D lines
9744 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
9746 * lib-writ.ads: Document dummy D lines for missing files.
9748 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
9750 2001-12-17 Robert Dewar <dewar@gnat.com>
9752 * ali.adb: Type reference does not reset current file.
9754 * ali.adb: Recognize and scan renaming reference
9756 * ali.ads: Add spec for storing renaming references.
9758 * lib-xref.ads: Add documentation for handling of renaming references
9760 * lib-xref.adb: Implement output of renaming reference.
9763 (Determine_Range): Document local variables
9764 (Determine_Range): Make sure Hbound is initialized. It looks as though
9765 there could be a real problem here with an uninitialized reference
9766 to Hbound, but no actual example of failure has been found.
9768 2001-12-17 Laurent Pautet <pautet@gnat.com>
9771 Fix comment of Shutdown_Socket and Close_Socket. These functions
9772 should not fail silently because if they are called twice, this
9773 probably means that there is a race condition in the user program.
9774 Anyway, this behaviour is consistent with the rest of this unit.
9775 When an error occurs, an exception is raised with the error message
9776 as exception message.
9778 2001-12-17 Robert Dewar <dewar@gnat.com>
9780 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
9781 that it happens before modification of Sloc values for -gnatD.
9783 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
9784 so that it happens before modification of Sloc values for -gnatD.
9786 * switch.adb: Minor reformatting
9788 2001-12-15 Richard Henderson <rth@redhat.com>
9790 * sem_ch7.adb: Wrap comment.
9792 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
9794 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
9795 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
9796 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
9797 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
9798 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
9799 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
9800 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
9801 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
9802 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
9803 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
9804 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
9805 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
9806 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
9807 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
9808 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
9809 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
9810 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
9811 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
9812 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
9813 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
9814 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
9815 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
9816 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
9817 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
9820 2001-12-14 Vincent Celier <celier@gnat.com>
9822 * osint.adb(Create_Debug_File): When an object file is specified,
9823 put the .dg file in the same directory as the object file.
9825 2001-12-14 Robert Dewar <dewar@gnat.com>
9827 * osint.adb: Minor reformatting
9829 * lib-xref.adb (Output_Instantiation): New procedure to generate
9830 instantiation references.
9832 * lib-xref.ads: Add documentation of handling of generic references.
9834 * ali.adb (Read_Instantiation_Ref): New procedure to read
9835 instantiation references
9837 * ali.ads: Add spec for storing instantiation references
9839 * bindusg.adb: Minor reformatting
9841 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
9843 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
9845 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
9847 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
9851 Add 2001 to copyright date
9852 Add entry for Latin-5 (Cyrillic ISO-8859-5)
9854 2001-12-14 Matt Gingell <gingell@gnat.com>
9856 * adaint.c: mktemp is a macro on Lynx and can not be used as an
9859 2001-12-14 Richard Kenner <kenner@gnat.com>
9861 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
9862 if operand is CONSTRUCTOR.
9864 2001-12-14 Ed Schonberg <schonber@gnat.com>
9866 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
9867 before emiting check on right-hand side, so that exception information
9870 2001-12-14 Richard Kenner <kenner@gnat.com>
9872 * utils.c (create_var_decl): Throw away initializing expression
9873 if just annotating types and non-constant.
9875 2001-12-14 Vincent Celier <celier@gnat.com>
9877 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
9880 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
9882 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
9884 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
9886 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
9888 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
9890 * ChangeLog: Remove piece of diff output.
9892 2001-12-14 Geert Bosch <bosch@gnat.com>
9894 * config-lang.in: Update copyright notice
9896 * layout.adb: Remove commented out code.
9898 * mdllfile.ads: Update copyright notice. Fix header format.
9900 * sem_case.ads: Likewise.
9902 * sem_ch3.adb: Minor reformatting.
9904 2001-12-12 Geert Bosch <bosch@gnat.com>
9906 * freeze.ads: Update copyright date.
9908 * g-comlin.ads: Minor reformatting.
9910 * gnat-style.texi: Fix typo.
9912 2001-12-12 Geert Bosch <bosch@gnat.com>
9914 * einfo.h: Regenerate.
9916 2001-12-12 Ed Schonberg <schonber@gnat.com>
9918 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
9919 on known node types, rather than untyped fields. Further cleanups.
9921 2001-12-12 Robert Dewar <dewar@gnat.com>
9924 (Save_Entity_Descendant): Minor comment update.
9925 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
9926 of an N_Attribute_Reference node. As per note below, this does not
9927 eliminate need for Associated_Node in attribute ref nodes.
9928 (Associated_Node): Documentation explicitly mentions attribute
9929 reference nodes, since this field is used in such nodes.
9931 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
9933 2001-12-12 Robert Dewar <dewar@gnat.com>
9935 * s-stalib.adb: Add more comments on with statements being needed
9937 * par-ch12.adb: Minor reformatting
9939 * prj-dect.ads: Fix copyright header
9941 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
9942 inputs fit in 32 bits, but the result still overflows.
9944 * s-fatgen.ads: Minor comment improvement
9946 2001-12-12 Ed Schonberg <schonber@gnat.com>
9948 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
9949 formal derived type, look for an inherited component from the full
9950 view of the parent, if any.
9952 2001-12-12 Robert Dewar <dewar@gnat.com>
9954 * checks.ads (Apply_Alignment_Check): New procedure.
9956 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
9957 ensure that the alignment of objects with address clauses is
9958 appropriate, and raise PE if not.
9960 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
9961 Exp_Pakd.Known_Aligned_Enough
9963 * mdllfile.ads: Minor reformatting
9965 * mlib-fil.ads: Minor reformatting
9967 2001-12-12 Ed Schonberg <schonber@gnat.com>
9969 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
9970 fix to any component reference if enclosing record has non-standard
9973 2001-12-12 Vincent Celier <celier@gnat.com>
9975 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
9978 2001-12-12 Ed Schonberg <schonber@gnat.com>
9980 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
9983 2001-12-12 Robert Dewar <dewar@gnat.com>
9985 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
9987 2001-12-12 Emmanuel Briot <briot@gnat.com>
9989 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
9990 and it adds dependencies to system.io.
9992 2001-12-12 Pascal Obry <obry@gnat.com>
9994 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
9997 2001-12-11 Ed Schonberg <schonber@gnat.com>
9999 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
10000 that is the parent of other generics, the instance body replaces the
10001 instance node. Retrieve the instance of the spec, which is the one
10002 that is visible in clients and within the body.
10004 2001-12-11 Vincent Celier <celier@gnat.com>
10006 * gnatmain.adb: Initial version.
10008 * gnatmain.ads: Initial version.
10010 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
10012 * snames.adb: Updated to match snames.ads.
10014 * snames.ads: Added Gnatstub.
10016 2001-12-11 Vincent Celier <celier@gnat.com>
10018 * prj-attr.adb (Initialization_Data): Change name from
10019 Initialisation_Data.
10021 2001-12-11 Emmanuel Briot <briot@gnat.com>
10023 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
10024 + and * applied to backslashed expressions like \r.
10026 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
10028 * g-os_lib.ads: String_List type added, Argument_List type is now
10029 subtype of String_List.
10031 2001-12-11 Robert Dewar <dewar@gnat.com>
10033 * g-os_lib.ads: Change copyright to FSF
10034 Add comments for String_List type
10036 2001-12-11 Vincent Celier <celier@gnat.com>
10038 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
10039 string to the buffer).
10041 2001-12-11 Ed Schonberg <schonber@gnat.com>
10043 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
10046 * sem_attr.adb: Simplify previous fix for Address.
10047 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
10048 to avoid anomalies where the bound of the type appears to raise
10051 2001-12-11 Robert Dewar <dewar@gnat.com>
10053 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
10056 2001-12-11 Ed Schonberg <schonber@gnat.com>
10058 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
10059 renamed unit before checking for recursive instantiations.
10061 2001-12-11 Emmanuel Briot <briot@gnat.com>
10063 * prj.ads: Add comments for some of the fields.
10065 2001-12-11 Robert Dewar <dewar@gnat.com>
10067 * lib-xref.adb (Output_Refs): Don't output type references outside
10068 the main unit if they are not otherwise referenced.
10070 2001-12-11 Ed Schonberg <schonber@gnat.com>
10072 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
10073 code and diagnose additional illegal uses
10075 * sem_util.adb (Is_Object_Reference): An indexed component is an
10076 object only if the prefix is.
10078 2001-12-11 Vincent Celier <celier@gnat.com>
10080 * g-diopit.adb: Initial version.
10082 * g-diopit.ads: Initial version.
10085 (Expand_Path): Avoid use of Unbounded_String
10086 (Find, Wildcard_Iterator): Moved to child package Iteration
10088 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
10090 2001-12-11 Robert Dewar <dewar@gnat.com>
10092 * sem_attr.adb: Minor reformatting
10094 2001-12-11 Ed Schonberg <schonber@gnat.com>
10096 * sem_ch3.adb: Clarify some ???.
10098 2001-12-11 Robert Dewar <dewar@gnat.com>
10100 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
10101 Exp_Pakd.Known_Aligned_Enough
10103 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
10104 version is moved to Exp_Ch13.
10106 2001-12-11 Robert Dewar <dewar@gnat.com>
10108 * einfo.ads: Minor reformatting
10110 * exp_ch5.adb: Add comment for previous.change
10112 * ali.adb: New interface for extended typeref stuff.
10114 * ali.ads: New interface for typeref stuff.
10116 * checks.adb (Apply_Alignment_Check): New procedure.
10118 * debug.adb: Add -gnatdM for modified ALI output
10120 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
10122 * lib-xref.adb: Extend generation of <..> notation to cover
10123 subtype/object types. Note that this is a complete rewrite,
10124 getting rid of the very nasty quadratic algorithm previously
10125 used for derived type output.
10127 * lib-xref.ads: Extend description of <..> notation to cover
10128 subtype/object types. Uses {..} for these other cases.
10129 Also use (..) for pointer types.
10131 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
10133 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
10134 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
10136 2001-12-11 Vincent Celier <celier@gnat.com>
10139 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
10140 Changed /BIND_ONLY to /ACTIONS=BIND
10141 Changed /LINK_ONLY to /ACTIONS=LINK
10143 2001-12-11 Ed Schonberg <schonber@gnat.com>
10145 * sem_ch8.adb (Find_Selected_Component): improved search for a
10146 candidate package in case of error.
10148 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
10149 chain back on scope stack before reinstalling use clauses.
10151 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
10152 is enabled, do not kill the code for the condition, to preserve
10155 2001-12-11 Robert Dewar <dewar@gnat.com>
10157 * checks.adb (Insert_Valid_Check): Apply validity check to expression
10158 of conversion, not to result of conversion.
10160 2001-12-11 Ed Schonberg <schonber@gnat.com>
10162 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
10163 before freezing parent. If the declarations are mutually recursive,
10164 an access to the current record type may be frozen before the
10165 derivation is complete.
10167 2001-12-05 Vincent Celier <celier@gnat.com>
10169 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
10170 -c /COMPILE_ONLY, -l /LINK_ONLY
10173 (Bind_Only): New Flag
10174 (Link_Only): New flag
10176 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
10179 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
10182 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
10183 (Gnatmake): Set the step flags. Only perform a step if the
10184 corresponding step flag is True.
10185 (Scan_Make_Arg): Reset the bind and link step flags when -u
10186 or -gnatc has been specified.
10188 2001-12-05 Ed Schonberg <schonber@gnat.com>
10190 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
10191 get bounds from right operand.
10193 * sem_eval.adb: Minor reformatting
10195 * exp_util.adb (Make_Literal_Range): use bound of literal rather
10196 than Index'First, its lower bound may be different from 1.
10198 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
10201 2001-12-05 Vincent Celier <celier@gnat.com>
10203 * prj-nmsc.adb Minor reformatting
10205 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
10206 set and libraries are not supported.
10208 2001-12-05 Ed Schonberg <schonber@gnat.com>
10210 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
10211 private view explicitly, so the back-end can treat as a global
10214 2001-12-05 Ed Schonberg <schonber@gnat.com>
10216 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
10217 unit, always replace instance node with new body, for ASIS use.
10219 2001-12-05 Vincent Celier <celier@gnat.com>
10221 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
10222 libraries are not supported and both attributes Library_Name and
10223 Library_Dir are specified.
10225 * prj-proc.adb (Expression): Set location of Result to location of
10228 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
10229 (prj-nmsc is now importing MLib.Tgt)
10231 * prj-proc.adb: Put the change indicated above that was forgotten.
10233 2001-12-05 Robert Dewar <dewar@gnat.com>
10235 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
10237 2001-12-05 Ed Schonberg <schonber@gnat.com>
10239 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
10240 constraint, introduce explicit subtype declaration and derive from it.
10242 * sem_ch3.adb: Minor reformatting
10244 2001-12-05 Robert Dewar <dewar@gnat.com>
10246 * checks.adb (Determine_Range): Increase cache size for checks.
10249 * exp_ch6.adb: Minor reformatting
10250 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
10251 a parameter whose root type is System.Address, since treating such
10252 subprograms as pure in the code generator is almost surely a mistake
10253 that will lead to unexpected results.
10255 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
10256 change handling of conversions.
10258 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
10260 2001-12-05 Ed Schonberg <schonber@gnat.com>
10262 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
10263 aggregate with static wrong size, attach generated Raise node to
10266 2001-12-05 Robert Dewar <dewar@gnat.com>
10268 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
10269 Fixes compilation abandoned bomb in B24009B.
10271 2001-12-05 Ed Schonberg <schonber@gnat.com>
10274 Document use of Associated_Node on Selected_Components.
10275 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
10276 to clarify use of untyped descendant fields.
10278 2001-12-05 Robert Dewar <dewar@gnat.com>
10280 * prj-dect.ads: Add ??? comment
10281 Add 2001 to copyright notice (was not done in after all)
10283 * prj-part.adb: Minor reformatting. Reword one awkward error message.
10285 * prj.ads: Minor reformatting throughout, and add some ??? comments
10287 * snames.ads: Minor reformatting
10289 2001-12-05 Geert Bosch <bosch@gnat.com>
10291 * snames.adb: Autoupdate
10293 2001-12-05 Vincent Celier <celier@gnat.com>
10295 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
10297 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
10299 * prj-env.adb: Minor comment changes (modifying -> extends).
10301 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
10303 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
10306 * prj.adb (Initialize): Change Modifying to Extends.
10308 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
10310 * prj.ads: Minor comment change (Modifying -> extending).
10312 * snames.ads: Change modifying to extends.
10314 2001-12-05 Robert Dewar <dewar@gnat.com>
10316 * sem_warn.adb: Remove stuff for conditionals, we are not going to
10319 * sem_warn.ads: Remove stuff for conditionals, we are not going to
10320 do this after all. Add 2001 to copyright notice
10322 2001-12-04 Geert Bosch <bosch@gnat.com>
10324 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
10326 2001-12-04 Robert Dewar <dewar@gnat.com>
10328 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
10329 location if we already have errors. Stops some cases of cascaded
10332 * errout.adb: Improve comment.
10334 2001-12-04 Robert Dewar <dewar@gnat.com>
10337 (Analyze_Formal_Type_Definition): Defend against Error.
10338 (Analyze_Formal_Subprogram): Defend against Error.
10340 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
10341 remove following semicolon if present. Removes cascaded error.
10343 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
10346 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
10347 exceptions equals 0.
10348 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
10349 Fixes PIWG E tests (which have to be run with -gnatL).
10351 2001-12-04 Robert Dewar <dewar@gnat.com>
10353 * einfo.ads: Minor reformatting
10355 2001-12-04 Ed Schonberg <schonber@gnat.com>
10357 * einfo.ads: Block_Node points to the identifier of the block, not to
10358 the block node itself, to preserve the link when the block is
10359 rewritten, e.g. within an if-statement with a static condition.
10361 * inline.adb (Cleanup_Scopes): recover block statement from block
10362 entity using new meaning of Block_Node.
10364 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
10365 identifier of block node, rather than to node itself.
10367 2001-12-04 Gary Dismukes <dismukes@gnat.com>
10370 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
10371 (Discrimify): Go back to setting the Etypes of the selected component
10372 because the Vname component does not exist at this point and will
10373 fail name resolution. Also set Analyzed.
10374 Remove with and use of Sem_Res.
10376 2001-12-04 Arnaud Charlet <charlet@gnat.com>
10378 * Makefile.in: (HIE_SOURCES): add s-fat*.
10380 2001-12-04 Robert Dewar <dewar@gnat.com>
10383 (Compile_Time_Known_Attribute): New procedure.
10384 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
10385 proper range check.
10387 2001-12-04 Ed Schonberg <schonber@gnat.com>
10389 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
10390 processing discriminants to diagnose illegal default values.
10392 2001-12-04 Ed Schonberg <schonber@gnat.com>
10394 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
10395 access discriminant within a type extension that constrains its
10396 parent discriminants.
10398 2001-12-04 Ed Schonberg <schonber@gnat.com>
10400 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
10401 is malformed, use instance of Any_Id to allow analysis to proceed.
10403 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
10404 type definition is illegal.
10405 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
10408 2001-12-04 Ed Schonberg <schonber@gnat.com>
10410 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
10413 2001-12-04 Robert Dewar <dewar@gnat.com>
10415 * errout.adb: Minor reformatting
10417 2001-12-04 Robert Dewar <dewar@gnat.com>
10419 * exp_util.adb: Minor reformatting from last change
10421 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
10422 which is a rewriting of an expression, traverse the original
10423 expression to remove warnings that may have been posted on it.
10425 2001-12-04 Ed Schonberg <schonber@gnat.com>
10427 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
10428 record that has other packed components.
10430 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
10432 * adaint.c: Minor cleanups.
10434 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
10436 * adaint.c: Do not use utime.h on vxworks.
10438 2001-12-04 Arnaud Charlet <charlet@gnat.com>
10440 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
10441 more confusion than it solves.
10443 2001-12-04 Geert bosch <bosch@gnat.com>
10445 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
10447 2001-12-04 Geert Bosch <bosch@gnat.com>
10449 * Makefile.in (update-sources): New target.
10450 For use by gcc_release script.
10452 2001-12-04 Ed Schonberg <schonber@gnat.com>
10454 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
10455 a configuration pragma, it is now legal wherever a pragma can appear.
10457 2001-12-04 Zack Weinberg <zack@codesourcery.com>
10459 * Makefile.in: Don't set ALL. Delete @cross_defines@,
10460 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
10461 is now @CROSS@ -DIN_GCC; update comment.
10463 2001-12-04 Robert Dewar <dewar@gnat.com>
10465 * einfo.adb (Has_Pragma_Pure_Function): New flag.
10466 Fix problem that stopped ceinfo from working
10468 * einfo.ads (Has_Pragma_Pure_Function): New flag.
10470 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
10472 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
10475 (File_Time_Stamp): New procedure.
10476 (Preserve_Mode): New boolean.
10477 (Write_Unit): Pass time stamp.
10478 Implement -p switch (preserve time stamps).
10480 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
10482 * gnatchop.adb: Do usage info for -p switch
10484 * adaint.h (__gnat_set_file_time_name): New function
10486 * adaint.c (__gnat_set_file_time_name): Implement
10488 * adaint.h: Fix typo
10490 2001-12-03 Robert Dewar <dewar@gnat.com>
10492 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
10493 have Associated_Node.
10495 2001-12-03 Robert Dewar <dewar@gnat.com>
10497 * prj-proc.adb: Minor reformatting
10499 * make.adb: Minor reformatting
10501 2001-12-03 Geert Bosch <bosch@gnat.com>
10503 * make.adb: Minor reformatting.
10505 2001-12-03 Robert Dewar <dewar@gnat.com>
10507 * sem_ch12.adb: Minor reformatting
10509 2001-12-03 Ed Schonberg <schonber@gnat.com>
10511 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
10512 push Standard on the stack before analyzing the instance body,
10513 in order to have a clean visibility environment.
10515 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
10517 2001-12-03 Ed Schonberg <schonber@gnat.com>
10519 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
10520 instantiation of a body that contains an inlined body.
10522 2001-12-03 Ed Schonberg <schonber@gnat.com>
10525 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
10526 to prevent freezing within formal packages.
10527 (Freeze_Subprogram_Body): If body comes from another instance that
10528 appeared before its own body, place freeze node at end of current
10529 declarative part, to prevent a back-end crash.
10530 (Inline_Instance_Body): Handle properly a package instance within
10531 a subprogram instance that is a child unit.
10533 2001-12-01 Graham Stott <grahams@redhat.com>
10535 * Makefile.in (misc.o): Add missing $(srcdir) prefix
10536 and add optabs.h dependency.
10538 * misc.c: Include optabs.h
10539 (gnat_tree_code_type): Make static and const.
10540 (gnat_tree_code_length): Likewise.
10541 (gnat_tree_code_name): Likewise.
10542 (update_setjmp_buf): Obtain operands mode from insn_data.
10544 2001-11-29 Richard Henderson <rth@redhat.com>
10546 * init.c: Remove obsolete dwarf2 frame.h section.
10548 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
10550 * Make-lang.in (ada.generated-manpages): New dummy target.
10552 2001-11-29 Ed Schonberg <schonber@gnat.com>
10554 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
10555 into Command, an array conversion is illegal here. Uncovered by
10558 2001/11/28 Geert Bosch <bosch@gnat.com>
10560 * init.c: Minor whitespace changes.
10562 2001-11-28 Doug Rupp <rupp@gnat.com>
10564 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
10567 2001-11-28 Zack Weinberg <zack@codesourcery.com>
10569 * misc.c (gnat_expand_constant): Move declaration above
10570 definition of lang_hooks.
10571 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
10572 (gnat_init): lang_expand_constant no longer exists.
10574 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
10575 always have vprintf.
10576 (gnat_init): Always call set_internal_error_function.
10578 2001-11-27 Andreas Jaeger <aj@suse.de>
10580 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
10582 2001-11-27 Laurent Guerby <guerby@acm.org>
10584 * Makefile.in: Regenerate Ada dependencies.
10586 2001-11-26 Richard Henderson <rth@redhat.com>
10588 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
10589 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
10590 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
10592 2001-11-25 Laurent Guerby <guerby@acm.org>
10594 * sysdep.c (rts_get_*): Fix style.
10596 2001-11-19 Laurent Guerby <guerby@acm.org>
10598 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
10599 since it is of no apparent use and cause warnings.
10601 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
10603 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
10605 (gnat_init): Don't return NULL.
10606 (finish_parse): Remove.
10608 2001-11-17 Laurent Guerby <guerby@acm.org>
10610 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
10611 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
10612 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
10613 * lang-spec.h: Add missing struct field to silence warnings.
10614 * sysdep.c (rts_get_*): Provide K&R prototype.
10615 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
10616 * traceback.c (Unlock_Task, Lock_Task): Likewise.
10617 * tracebak.c (__gnat_backtrace): Remove unused variable.
10618 * utils.c (end_subprog_body): Move to K&R style.
10620 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10622 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
10624 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
10626 * misc.c (gnat_init): Change prototype. Include the
10627 functionality of the old init_parse and init_decl_processing.
10628 (gnat_init_decl_processing): New prototype.
10629 (init_parse): Remove.
10630 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
10632 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
10634 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
10635 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
10636 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
10637 set_yydebug): Remove.
10639 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
10641 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
10642 (struct lang_hooks): Constify.
10643 (language_string, lang_identify): Remove.
10644 * utils.c (init_decl_processing): Update.
10646 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
10648 * misc.c: Include langhooks-def.h.
10649 * Makefile.in: Update.
10651 2001-10-30 Robert Dewar <dewar@gnat.com>
10654 (Check_Identifier): Rewrite circuit to be compatible with use of letters
10655 in the upper half of ASCII.
10656 (Check_Identifier): Minor reformatting
10658 2001-10-30 Geert Bosch <bosch@gnat.com>
10660 * (Associated_Node, Set_Associated_Node): Do not check for
10663 2001-10-30 Robert Dewar <dewar@gnat.com>
10665 * a-reatim.ads: Minor reformatting
10667 2001-10-30 Robert Dewar <dewar@gnat.com>
10669 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
10670 undocumented declarations.
10672 2001-10-30 Pascal Obry <obry@gnat.com>
10674 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
10675 to the binder and linker.
10678 * mdll.ads: Fix layout. Update copyright notice.
10680 * mdll.adb: Fix layout. Update copyright notice.
10682 2001-10-30 Robert Dewar <dewar@gnat.com>
10684 * usage.adb: Minor fix to output for -gnaty.
10686 2001-10-30 Ed Schonberg <schonber@gnat.com>
10688 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
10689 to accommodate all its possible values.
10691 * a-reatim.adb (Split): Special-case handling of Time_Span_First
10692 and of small absolute values of T.
10694 2001-10-30 Richard Kenner <kenner@gnat.com>
10696 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
10697 set_mem_attributes since not needed and wrong if RESULT if a REG;
10698 fixes ACATS failures.
10700 2001-10-30 Geert Bosch <bosch@gnat.com>
10702 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
10703 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
10705 2001-10-30 Robert Dewar <dewar@gnat.com>
10707 * bindusg.adb: Undocument -f switch.
10709 * gnatcmd.adb: Remove /FULL_ELABORATION.
10711 * opt.ads (Force_RM_Elaboration_Order): Document that this is
10714 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
10716 * gnatbind.adb: Minor update of warning msg.
10718 2001-10-30 Vincent Celier <celier@gnat.com>
10720 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
10721 for project file switches (-P (/PROJECT_FILE=),
10722 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
10725 2001-10-30 Geert Bosch <bosch@gnat.com>
10727 * decl.c: Minor whitespace fixes.
10729 2001-10-30 Richard Kenner <kenner@gnat.com>
10731 * utils2.c (build_allocator): Test for SIZE overflow in array case too
10733 2001-10-30 Geert Bosch <bosch@gnat.com>
10735 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
10736 Found due to GCC 3.0 warning of using uninitialized value.
10739 (Get_Max_Size): Use variant record for tracking value/expression.
10740 Makes logic clearer and prevents warnings for uninitialized variables.
10741 (Layout_Array_Type): Use variant record for tracking value/expression.
10742 Makes logic clearer and prevents warnings for uninitialized variables.
10744 2001-10-30 Robert Dewar <dewar@gnat.com>
10746 * lib.adb: Minor reformatting
10748 * s-taprop.ads: Minor reformatting
10750 2001-10-29 Laurent Guerby <guerby@acm.org>
10753 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
10755 (_gnat_error_handler): Make MSG const.
10757 2001-10-29 Richard Kenner <kenner@gnat.com>
10759 * sysdep.c: Fix localtime_r problem on LynxOS.
10760 Also remove #elif to avoid warnings.
10762 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
10765 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
10767 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
10769 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
10770 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
10771 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
10772 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
10773 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
10774 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
10775 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
10776 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
10777 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
10778 types.ads, urealp.adb: Fix spelling errors.
10780 2001-10-27 Laurent Guerby <guerby@acm.org>
10782 * trans.c (gigi): Fix non determinism leading to bootstrap
10783 comparison failures for debugging information.
10785 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
10787 * gnat_rm.texi: Use @./@: where appropriate.
10789 2001-10-26 Robert Dewar <dewar@gnat.com>
10791 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
10793 2001-10-26 Richard Kenner <kenner@gnat.com>
10795 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
10797 2001-10-26 Richard Kenner <kenner@gnat.com>
10799 * decl.c (validate_size): Modify message for bad size to avoid
10800 implication that compiler is modifying the size.
10802 2001-10-26 Robert Dewar <dewar@gnat.com>
10804 * prj-util.adb: Minor reformatting. Fix bad header format.
10806 2001-10-26 Robert Dewar <dewar@gnat.com>
10808 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
10810 * sinfo.ads: Clarify use of Associated_Node (documentation only).
10812 * sem_ch12.adb: Change Node4 to Associated_Node. Change
10813 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
10814 much more narrowly in places where needed. These are cleanups.
10816 2001-10-26 Joel Brobecker <brobecke@gnat.com>
10818 * 5zosinte.ads (null_pthread): new constant.
10821 (Initialize_TCB): Initialize thread ID to null, to be able to verify
10822 later that this field has been set.
10823 (Finalize_TCB): ditto.
10824 (Suspend_Task): Verify that the thread ID is not null before using it.
10825 (Resume_Task): ditto.
10828 (Resume_All_Tasks): Lock the tasks list before using it.
10829 (Suspend_All_Tasks): ditto.
10831 2001-10-26 Richard Kenner <kenner@gnat.com>
10833 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
10834 Make constant variant of designated type for Is_Access_Constant.
10835 Call update_pointer_to with main variant.
10837 * trans.c (process_freeze_entity, process_type):
10838 Call update_pointer_to on main variant.
10840 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
10841 If main variant, update all other variants.
10843 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
10846 2001-10-26 Robert Dewar <dewar@gnat.com>
10848 * prj-util.adb: Minor reformatting
10850 2001-10-26 Robert Dewar <dewar@gnat.com>
10852 * prj-util.adb: Minor reformatting
10854 2001-10-26 Robert Dewar <dewar@gnat.com>
10856 * prj-attr.adb: Minor reformatting throughout
10858 2001-10-26 Robert Dewar <dewar@gnat.com>
10860 * prj-attr.ads: Minor reformatting
10861 Add ??? comment (this whole spec has almost no comments)
10863 2001-10-26 Vincent Celier <celier@gnat.com>
10865 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
10866 ("//") that precede the drive letter on Interix.
10868 2001-10-26 Geert Bosch <bosch@gnat.com>
10870 * gnat_rm.texi: Add GNAT Reference Manual.
10872 2001-10-25 Robert Dewar <dewar@gnat.com>
10874 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
10875 is Error. Similar change for other renaming cases.
10877 2001-10-25 Robert Dewar <dewar@gnat.com>
10879 * s-atacco.ads: Add pragma Inline_Always for functions.
10880 Fix header format. Add copyright 2001
10882 2001-10-25 Ed Schonberg <schonber@gnat.com>
10884 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
10885 return Error rather than Empty so that analysis can proceed.
10887 2001-10-25 Ed Schonberg <schonber@gnat.com>
10889 * sem_util.adb (Enter_Name): better handling of cascaded error
10890 messages when a unit appears in its own context.
10892 2001-10-25 Ed Schonberg <schonber@gnat.com>
10894 * sem_util.adb (Defining_Entity): in case of error, attach created
10895 entity to specification, so that semantic analysis can proceed.
10897 2001-10-25 Robert Dewar <dewar@gnat.com>
10900 (Defining_Entity): Deal with Error.
10901 (Process_End_Label): Deal with bad end label for.
10903 2001-10-25 Ed Schonberg <schonber@gnat.com>
10905 * sem_elab.adb (Check_A_Call): refine message when call is in an
10906 instance but callee is not declared in the generic unit.
10908 2001-10-25 Ed Schonberg <schonber@gnat.com>
10910 * sem_elab.adb (Check_A_Call): check for renaming before finding the
10911 enclosing unit, which may already be different from the calling unit.
10913 2001-10-25 Geert Bosch <bosch@gnat.com>
10915 * 4gintnam.ads: fix header format.
10917 2001-10-25 Ed Schonberg <schonber@gnat.com>
10919 * sem_res.adb (Resolve_Call): if the call is actually an indexing
10920 operation on the result of a parameterless call, perform elaboration
10921 check after the node has been properly rewritten.
10923 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
10924 inlined within the generic tree, the defining identifier is not a
10927 2001-10-25 Ed Schonberg <schonber@gnat.com>
10929 * sem_res.adb (Resolve): special-case resolution of Null in an
10930 instance or an inlined body to avoid view conflicts.
10932 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
10933 compatibility by retrieving the access type of the generic copy.
10935 2001-10-25 Robert Dewar <dewar@gnat.com>
10938 (Analyze_Number_Declaration): Handle error expression.
10939 (Signed_Integer_Type_Declaration): Handle error bound.
10940 (Analyze_Subtype_Indication): Handle error range.
10942 * sem_util.adb (Get_Index_Bounds): Check for Error.
10944 2001-10-25 Robert Dewar <dewar@gnat.com>
10946 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
10947 in no run time mode.
10949 2001-10-25 Pascal Obry <obry@gnat.com>
10951 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
10952 mode case for ALLOC case.
10954 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
10955 all platforms. Improvement of last change.
10957 2001-10-25 Robert Dewar <dewar@gnat.com>
10959 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
10961 2001-10-25 Geert Bosch <bosch@gnat.com>
10963 * osint.adb (Is_Relative): Remove duplicate.
10965 2001-10-25 Pascal Obry <obry@gnat.com>
10967 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
10968 pathnames in UNIX and DOS style with drive letter.
10969 (Is_Relative): new routine.
10971 * osint.adb: Minor reformatting
10973 * osint.adb (Is_Relative): implementation using
10974 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
10976 2001-10-25 Pascal Obry <obry@gnat.com>
10978 * g-dirope.adb (Basename): correctly compute offset between the
10979 original Path and the translated one.
10981 * g-dirope.adb: (Base_Name): add some comments.
10983 2001-10-25 Robert Dewar <dewar@gnat.com>
10985 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
10986 in HIE mode, avoids compilation abandoned message
10988 * exp_imgv.adb: Correct typo in previous change
10990 * exp_imgv.adb: Correct typo in previous change (not my day!)
10992 2001-10-25 Robert Dewar <dewar@gnat.com>
10994 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
10996 2001-10-25 Pascal Obry <obry@gnat.com>
10998 * g-awk.ads: Move all pragma inlines next to the routine
10999 declarations. This is more uniform with other GNAT spec.
11001 2001-10-22 Geert Bosch <bosch@gnat.com>
11003 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
11005 2001-10-19 Geert Bosch <bosch@gnat.com>
11007 * Makefile.in (tools, gnattools): Remove gnatmem.
11009 2001-10-17 Richard Henderson <rth@redhat.com>
11011 * Makefile.in (misc.o): Depend on langhooks.h.
11012 * misc.c: Include it.
11013 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
11014 (LANG_HOOKS_DECODE_OPTION): New.
11015 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
11017 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
11019 * trans.c (tree_transform): Adjust to recent change in
11020 expand_asm_operands to implement named asm operands.
11022 2001-10-11 Ed Schonberg <schonber@gnat.com>
11024 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
11025 renaming of discriminant for mutable record type.
11027 2001-10-11 Robert Dewar <dewar@gnat.com>
11029 * validsw.adb: Properly save -gnatVn status.
11031 2001-10-11 Robert Dewar <dewar@gnat.com>
11033 * usage.adb: Add lines for V switch.
11035 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
11036 (/VALIDITY_CHECKING).
11038 2001-10-11 Ed Schonberg <schonber@gnat.com>
11040 * sem_type.adb (Add_One_Interp): an operator for a type declared in
11041 an extension of System is known to be visible.
11043 2001-10-11 Ed Schonberg <schonber@gnat.com>
11045 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
11046 properly. Fixes regression on ACATS C34005G.
11048 2001-10-11 Robert Dewar <dewar@gnat.com>
11050 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
11051 loop in generic instance, since this is likely not very useful.
11053 2001-10-11 Robert Dewar <dewar@gnat.com>
11055 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
11056 the error message for high integrity mode.
11058 * rtsfind.adb (RTE): Give message if we try to find an entity that
11059 is not available in high integrity mode.
11062 (OK_To_Use_In_HIE_Mode): New array.
11063 (RTE): May return Empty in high integrity mode.
11065 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
11066 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
11068 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
11069 unit if not inlined always and in no runtime mode. Fixes problem
11070 caused by new Rtsfind changes.
11072 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
11075 * rtsfind.adb (RTE): Make sure we do not try to load unit after
11076 giving message for entity not available in high integrity mode.
11078 2001-10-11 Pascal Obry <obry@gnat.com>
11080 * impunit.adb: Add GNAT.CRC32.
11082 2001-10-11 Ed Schonberg <schonber@gnat.com>
11084 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
11085 properly the case where one universal operand in a non-static
11086 exponentiation of a real literal.
11088 2001-10-11 Ed Schonberg <schonber@gnat.com>
11090 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
11091 clause, return the gobal finalization list, for lack of anthing else.
11093 2001-10-11 Ed Schonberg <schonber@gnat.com>
11095 * exp_ch7.adb (Make_Transient_Block): if statement is within
11096 exception handler, always use new transient scope to place Clean
11099 2001-10-11 Pascal Obry <obry@gnat.com>
11102 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
11103 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
11104 (GNATLS_RTL_OBJS): add g-crc32.o
11105 (GNATMAKE_RTL_OBJS): add g-crc32.o
11108 (CRC_Match): new function.
11109 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
11110 instead of the previous simple checksum algorithm.
11111 (Time_Stamp_Mismatch): use CRC_Match for comparison.
11112 (Set_Source_Table): idem.
11115 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
11116 instead of simple checksum.
11117 (CRC_Match): new function.
11118 (CRC_Error): new constant.
11120 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
11121 a CRC now and not a simple checksum. A CRC uses lower-case hex
11122 letters, fixes ambiguity in parsing.
11124 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
11125 is what this variable will store.
11127 * bcheck.adb: Change reference to chechsum in comments by CRC.
11128 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
11129 rename All_Checksum_Match to All_CRC_Match. Change due to API
11130 renaming since now GNAT does not use a simple checksum but a
11131 CRC using GNAT.CRC32.
11133 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
11134 now and not anymore a simple checksum.
11136 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
11139 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
11142 (Restore_Scan_State): rename Checksum to CRC.
11143 (Save_Scan_State): idem.
11147 (Checksum): rename to CRC.
11148 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
11150 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
11151 GNAT.CRC32). Update copyright notice.
11153 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
11154 GNAT.CRC32). Update copyright notice.
11157 (Accumulate_Checksum): removed.
11158 (Update): new procedure. Add a wide-character into the CRC.
11161 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
11162 (Load_File): fix initialization of S (change Source_Checksum to
11165 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
11166 Source_CRC in S initialization.
11168 * sinput.adb (Source_Checksum): renamed to Source_CRC.
11170 * sinput.ads (Source_Checksum): renamed to Source_CRC.
11171 Update comments for the CRC.
11173 * types.adb (Hex): Use lowercase for the letter part.
11175 * types.ads (Get_Hex_String): Returns the hexadecimal representation
11176 for a word. This is currently used only for CRC. In previous version,
11177 the checksum was using a representation with all letter being
11178 upper-case. With the new implementation (using CRC) we do not remove
11179 the 32th bit of the CRC, so we can have an upper-case starting letter
11180 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
11181 It is ambigous since the CRC was optional and could be followed by
11182 options like EB, EE. So now this routines uses lower-case letter for
11183 the hexadecimal representation. Strange enough only lower case letters
11184 where checked in Scan_ALI (even if this was not a possible case).
11186 * gnatvsn.ads (Library_Version): changed to 3.15a.
11188 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
11191 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
11194 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
11195 Add 2001 to copyright notice
11196 (Accumulate_Checksum): Modify to use System.CRC32.
11198 * ali-util.ads: Redo changes of previous revision to continue to use
11199 the word Checksum. Add 2001 to copyright notice.
11201 * ali.adb: Undo some of previous changes, not needed.
11202 Keep the change for lower case letters in the checksum.
11204 * ali.ads: Undo previous change not needed.
11206 * bcheck.adb: Undo most of previous change, not needed.
11207 But do use Checksums_Match for checksum comparison.
11209 * gnatls.adb: Undo most of previous change, not needed.
11210 But do use Checksums_Match for comparing checksums.
11212 * lib-load.adb: Undo previous change, not needed.
11214 * lib-writ.adb: Undo previous change, not needed.
11216 * lib-writ.ads: Document that checksums use lower case,
11217 not upper case letters.
11219 * scans.adb: Undo previous change, not needed
11221 * scans.ads: Undo previous change, not needed.
11223 * scn-nlit.adb: Undo previous changes, not needed.
11225 * scn-slit.adb: Undo previous change, not needed. Fix header format.
11228 (Accumulate_Checksum): Use System.CRC32.
11229 (Initialize_Checksum): New procedure.
11230 Remove other changes of previous revision.
11232 * sinput-p.adb: Undo previous change, not needed.
11234 * sinput.adb: Undo previous change, not needed.
11236 * sinput-l.adb: Undo previous change, not needed.
11238 * sinput.ads: Undo previous change, not needed. Keep only comment
11239 on new checksum algorithm
11241 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
11242 Also remove a-tags and a-stream from GNAT sources.
11244 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
11246 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
11248 2001-10-11 Geert Bosch <bosch@gnat.com>
11250 * einfo.h: Regenerate.
11252 * nmake.ads: Regenerate.
11254 * nmake.adb: Regenerate.
11256 * sinfo.h: Regenerate.
11258 * treeprs.adb: Regenerate.
11260 2001-10-10 Geert Bosch <bosch@gnat.com>
11262 * gnat-style.texi: New file describing coding guidelines for Ada.
11264 2001-10-10 Ed Schonberg <schonber@gnat.com>
11266 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
11269 2001-10-10 Geert Bosch <bosch@gnat.com>
11271 * snames.ads: Add new names for project facility.
11273 * snames.adb: Update to reflect snames.ads changes.
11275 * snames.h: Update to reflect snames.ads changes.
11277 2001-10-10 Vincent Celier <celier@gnat.com>
11280 (Add_Switches): reflect the changes for the switches attributes
11281 Default_Switches indexed by the programming language,
11282 Switches indexed by the file name.
11283 (Collect_Arguments_And_Compile): Idem.
11284 Reflect the attribute name changes.
11287 (Initialisation_Data): Change the names of some packages and
11289 (Initialize): process case insensitive associative arrays.
11292 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
11295 (Parse_Attribute_Declaration): For case insensitive associative
11296 arrays, set the index string to lower case.
11299 Reflect the changes of the project attributes.
11302 Replace Check_Naming_Scheme by Ada_Check and
11303 Language_Independent_Check.
11306 Replaced Check_Naming_Scheme by 2 procedures:
11307 Ada_Check and Language_Independent_Check.
11310 (Process_Declarative_Items): For case-insensitive associative
11311 arrays, set the index string to lower case.
11312 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
11313 Prj.Nmsc.Check_Naming_Scheme.
11316 (Case_Insensitive): New function
11317 (Set_Case_Insensitive): New procedure
11320 (Case_Insensitive): New function
11321 (Set_Case_Insensitive): New procedure
11322 (Project_Node_Record): New flag Case_Insensitive.
11325 (Value_Of): new function to get the string value of a single
11326 string variable or attribute.
11329 (Value_Of): new function to get the string value of a single
11330 string variable or attribute.
11333 (Ada_Default_Spec_Suffix): New function
11334 (Ada_Default_Impl_Suffix): New function
11335 Change definitions of several constants to reflect
11336 new components of record types.
11339 (Naming_Data): Change several components to reflect new
11340 elements of naming schemes.
11341 (Project_Data): New flags Sources_Present and
11342 Language_Independent_Checked.
11343 (Ada_Default_Spec_Suffix): New function.
11344 (Ada_Default_Impl_Suffix): New function.
11347 Modification of predefined names for project manager: added
11348 Implementation, Specification_Exceptions, Implementation_Exceptions,
11349 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
11350 Default_Switches, _Languages, Builder, Cross_Reference,
11351 Finder. Removed Body_Part, Specification_Append, Body_Append,
11352 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
11355 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
11358 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
11359 not that it is Nil_Variable_Value.
11361 * prj.ads: Add ??? for uncommented declarations
11363 2001-10-10 Ed Schonberg <schonber@gnat.com>
11365 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
11366 constant, do not indicate possible modification, so that gigi can
11367 treat it as a bona fide constant.
11369 2001-10-10 Robert Dewar <dewar@gnat.com>
11371 * sem_prag.adb: Add processing for pragma External.
11373 * snames.ads: Add entry for pragma External.
11375 * par-prag.adb: Add pragma External.
11377 * snames.adb: Updated to match snames.ads.
11379 2001-10-10 Ed Schonberg <schonber@gnat.com>
11381 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
11382 a dynamic task if the allocator appears in an indexed assignment
11383 or selected component assignment.
11385 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
11386 For a dynamic task in an assignment statement, use target of
11387 assignment to generate meaningful name.
11389 2001-10-10 Ed Schonberg <schonber@gnat.com>
11391 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
11394 * einfo.ads: Body_Entity is also defined for generic package.
11395 Documentation change only
11397 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
11398 others_choice for a discriminated component initialization,
11399 convert discriminant references into the corresponding discriminals.
11401 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
11402 only if original type is private and expression has to be wrapped
11406 (Apply_Constraint_Check): Do not perform length check
11407 if expression is an aggregate with only an others_choice.
11408 (Length_N_Cond): two references to the same in_parameter
11409 (typically the discriminal in an init_proc) denote the same value.
11410 Two useful optimization uncovered by bugfixes above.
11412 2001-10-10 Robert Dewar <dewar@gnat.com>
11414 * xeinfo.adb: Change int to char in translation of enumeration types.
11415 This fixes a problem in the C representation of component alignment.
11416 Add 2001 to copyright notice
11418 2001-10-10 Richard Kenner <kenner@gnat.com>
11420 * decl.c: (validate_size): Do check size of object of integral type
11421 if it is a packed array type.
11423 2001-10-10 Richard Kenner <kenner@gnat.com>
11425 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
11426 VAR_DECL for constant if not Is_Public but -O0.
11428 2001-10-10 Richard Kenner <kenner@gnat.com>
11430 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
11432 2001-10-10 Geert Bosch <bosch@gnat.com>
11434 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
11435 use '/' as switch character, allowing for absolute file names.
11437 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
11439 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
11442 2001-10-08 Geert Bosch <bosch@gnat.com>
11444 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
11445 Automatically build utilities when files need to be regenerated.
11447 2001-10-08 Geert Bosch <bosch@gnat.com>
11449 * xsnames.adb: New utility for updating snames.ads and snames.adb
11451 2001-10-08 Zack Weinberg <zack@codesourcery.com>
11453 * Make-lang.in (ADAFLAGS): Add -W -Wall.
11454 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
11455 (gnat1): Also depend on attribs.o.
11456 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
11457 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
11458 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
11459 (ADAFLAGS): Add -W -Wall.
11460 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
11463 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
11464 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
11465 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
11466 Use $(ADAC), not $(CC), as compilation command.
11468 (gnattools): Depend directly on tools to build, don't use
11470 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
11472 * einfo.h, sinfo.h: New files (autogenerated).
11474 2001-10-08 Richard Henderson <rth@redhat.com>
11476 * comperr.adb (Abort_In_Progress): New.
11477 (Compiler_Abort): Use it to prevent recursion.
11479 2001-10-08 Robert Dewar <dewar@gnat.com>
11481 * atree.adb: Set Error_Posted in Error node, helps error recovery.
11483 * par-endh.adb (Output_End_Expected): We should also not test
11484 Error_Posted on the Error node, since now it is always set.
11486 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
11487 to help error recovery. Part of general work on 9407-004.
11489 * par.adb: Add ??? for misuse of error
11492 (Resolve): Defend against Error, fixes 9407-003.
11493 (Resolve_Discrete_Subtype_Indication): Defend against Error.
11495 * sinfo.ads (N_Error): Now has Etype field (which will be set
11496 to Any_Type to help error recovery).
11498 2001-10-08 Richard Kenner (kenner@gnat.com)
11500 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
11501 Consistently set MEM attributes from expression; fixes
11502 bootstrap failure on x86.
11504 2001-10-08 Geert Bosch (bosch@gnat.com)
11506 * 5oosinte.adb: Add 2001 to copyright notice.
11508 2001-10-08 Geert Bosch (bosch@gnat.com)
11510 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
11512 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
11514 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
11516 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
11518 2001-10-05 Geert Bosch (bosch@gnat.com)
11520 * adaint.h: Small formatting fix.
11522 2001-10-04 Geert Bosch <bosch@gnat.com>
11524 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
11525 Arg is int, not FILE *, in dummy version of functions.
11527 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
11528 Arg is int, not FILE *.
11530 2001-10-04 Geert Bosch <bosch@gnat.com>
11532 * 3lsoccon.ads: Added file, missed with initial check ins.
11534 * 4lintnam.ads: Fix header format.
11535 Change Linux to GNU/Linux.
11537 * 5iosinte.adb: Change Linux to GNU/Linux.
11539 * 5iosinte.ads: Change Linux to GNU/Linux.
11541 * 5itaprop.adb: Change Linux to GNU/Linux.
11543 * 5itaspri.ads: Change Linux to GNU/Linux.
11544 Update copyright notice.
11546 * 5lintman.adb: Change Linux to GNU/Linux.
11548 * 5lml-tgt.adb: Change Linux to GNU/Linux.
11550 * 5losinte.ads: Change Linux to GNU/Linux.
11552 * 5lsystem.ads: Change Linux to GNU/Linux.
11554 * 5qosinte.adb: Change Linux to GNU/Linux.
11556 * 5qosinte.ads: Change Linux to GNU/Linux.
11558 * 5qparame.ads: Change Linux to GNU/Linux.
11560 * 5qtaprop.adb: Change Linux to GNU/Linux.
11562 * 5qtaspri.ads: Change Linux to GNU/Linux.
11563 Add 2001 to copyright notice.
11565 * 5vintman.ads: Change Linux to GNU/Linux.
11566 Fix header format. Add 2001 to copyright notice.
11568 * g-soccon.ads: Change Linux to GNU/Linux.
11570 * g-trasym.ads: Change Linux to GNU/Linux.
11571 Add 2001 to copyright notice.
11573 * memtrack.adb: Change Linux to GNU/Linux.
11575 * s-intman.ads: Change Linux to GNU/Linux.
11576 Add 2001 to copyright notice. Fix header format.
11578 * s-stache.adb: Change Linux to GNU/Linux.
11580 * adaint.c: Change Linux to GNU/Linux.
11582 * cio.c: Change Linux to GNU/Linux.
11584 * cstreams.c: Change Linux to GNU/Linux.
11586 * init.c: Change Linux to GNU/Linux.
11588 * gmem.c: Change Linux to GNU/Linux.
11590 * tracebak.c: Change Linux to GNU/Linux.
11593 2001-10-02 Geert Bosch <bosch@gnat.com>
11595 * misc.c (insert_default_attributes): Add dummy version.