]> gcc.gnu.org Git - gcc.git/blame - gcc/ada/ChangeLog
rs6000.md (*insvsi_internal5/6): New patterns.
[gcc.git] / gcc / ada / ChangeLog
CommitLineData
c0e3aa48
RK
12004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2
3 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
4 now bool instead of int.
5 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
6 * trans.c (gnu_switch_label_stack): New function.
7 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
8 elaboration of renamed entity returns.
9 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
10 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
11 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
12 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
13 DECL_SIZE_UNIT and simplify variable-sized case.
14 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
15 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
16 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
17 (build_unit_elab): Disable for now.
18 * utils.c (mark_visited): New function.
19 (pushdecl): Walk tree to call it for global decl.
20 (update_pointer_to): Update all variants of pointer and ref types.
21 Add arg to COMPONENT_REF.
22 (convert): Likewise.
23 Move check for converting between variants lower down.
24 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
25 (build_allocator): Don't force type of MODIFY_EXPR.
26 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
27 put_var_into_stack.
28
966389ee
RK
292004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30
31 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
33 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
34 subprograms.
35 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
36 all callers changed.
37 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
38 the way that EXIT_STMT finds the loop label.
39 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
40 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
41 (add_stmt): Use annotate_with_locus insted of setting directly.
42 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
43 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
44 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
45 (build_vms_descriptor): Add extra args to ARRAY_REF.
46 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
47 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
48 New cases.
49 (build_binary_op): Don't make explicit CONVERT_EXPR.
50 Add extra rgs to ARRAY_REF.
51
cc335f43
AC
522004-06-14 Pascal Obry <obry@gnat.com>
53
54 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
55 Windows. Fix minor typo.
56
57 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
58 which is now supported on Windows. With this implementation using the
59 Library Project feature is no different on Windows than on UNIX.
60
612004-06-14 Vincent Celier <celier@gnat.com>
62
63 * makegpr.adb (Compile_Sources): Nothing to do when there are no
64 non-Ada sources.
65
66 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
67
68 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
69 found, show the project name and the path of the previously parsed
70 project file.
71
722004-06-14 Ed Schonberg <schonberg@gnat.com>
73
74 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
75 array, avoid copying the actual before the call.
76
772004-06-14 Thomas Quinot <quinot@act-europe.fr>
78
79 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
80 Instead, allocate memory on worst-case alignment assumptions, and then
81 return an aligned address within the allocated zone.
82
832004-06-14 Robert Dewar <dewar@gnat.com>
84
85 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
86 elab entities in predefined units in No_Run_Time_Mode.
87 (Gen_Adainit_C): Same fix
88 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
89 units in No_Run_Time_Mode
90 (Gen_Elab_Calls_C): Same fix
91
92 * symbols-vms-alpha.adb: Minor reformatting
93
94 * g-debpoo.ads: Minor reformatting
95
96 * lib.adb (In_Same_Extended_Unit): Version working on node id's
97
98 * lib.ads (In_Same_Extended_Unit): Version working on node id's
99
100 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
101 working on nodes.
102
103 * make.adb: Minor reformatting
104
105 * par-ch12.adb: Minor reformatting
106
107 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
108
109 * prj-strt.adb: Minor reformatting
110
111 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
112 be more general.
113
114 * sem_attr.adb: Minor reformatting
115
116 * sem_ch7.adb: Minor reformatting
117
118 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
119 for type in the same unit as the object declaration.
120
121 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
122 static string expressions and not just string literals.
123 Minor reformatting
124 (Set_Warning): Reset restriction warning flag for restriction pragma
125 Implement pragma Profile_Warnings
126 Implement pragma Profile (Restricted)
127 Give obolescent messages for old restrictions and pragmas
128
129 * snames.h, snames.ads, snames.adb: Add new entry for pragma
130 Profile_Warnings.
131
132 * s-rident.ads: Add declarations for restrictions required by profile
133 Restricted and profile Ravenscar.
134
135 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
136
137 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
138 configuration pragmas.
139
5453d5bd
AC
1402004-06-11 Vincent Celier <celier@gnat.com>
141
142 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
143 gnatsym, when symbol policy is Restricted.
144
145 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
146 gnatsym, when symbol policy is Restricted.
147
148 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
149 read the symbol file.
150 (Finalize): Fail in symbol policy Restricted if a symbol in the original
151 symbol file is not in the object files. Do not create a new symbol file
152 when symbol policy is Restricted.
153
154 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
155 in Scng.
156
157 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
158 Restricted.
159 (Usage): Line for new switch -R
160
161 * make.adb (Initialize): When the platform is not VMS, add the
162 directory where gnatmake is invoked in the front of the path, if
163 gnatmake is invoked with directory information. Change the Scan_Args
164 while loop to a for loop.
165 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
166 if Depth is equal or greater than the proposed depth, there is nothing
167 to do.
168 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
169 instead of 0.
170
171 * prj.ads: Add new symbol policy Restricted.
172
173 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
174 with the new parameters Check_All_Labels and Case_Location.
175
176 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
177 (Library_Symbol_File needs to be defined).
178
179 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
180 and Case_Location If Check_All_Labels is True, check that all values of
181 the string type are used, and output warning(s) if they are not.
182
183 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
184 and Case_Location.
185
186 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
187
188 * gnat_ugn.texi: Update documentation about the library directory in
189 Library Projects.
190
191 * makegpr.adb (Display_Command): In verbose mode, also display the
192 value of the CPATH env var, when the compiler is gcc.
193 (Initialize): Change the Scan_Args while loop to a for loop
194 (Compile_Individual_Sources): Change directory to object directory
195 before compilations.
196
197 * symbols.ads: New symbol policy Restricted.
198
1992004-06-11 Olivier Hainque <hainque@act-europe.fr>
200
201 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
202 is now taken care of internally in the Exception_Propagation package
203 and does not require clients assistance any more.
204
205 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
206 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
207 functions. Helpers to maintain a predicate required in the handling of
208 occurrence transfer between tasks.
209 This is now handled internally and does not require clients assistance
210 for the setup/propagate separation anymore.
211 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
212 allocation strategy, handle the Setup_And_Not_Propagated predicate and
213 document.
214
215 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
216 raise_after_setup, now that everything is handled internally within the
217 setup/propagation engine.
218
2192004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
220
221 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
222 Add additional conditions for the case of an actual being a simple
223 name or literal. Improve inlining by preventing the generation
224 of temporaries with a short lifetime (one use).
225
2262004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
227
228 PR ada/15587
229
230 * einfo.ads: Minor comment updates for Has_Completion and
231 E_Constant list of flags.
232
233 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
234 and constant redeclarations now set the Has_Completion flag of their
235 defining identifiers.
236
237 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
238 Inspect_Deferred_Constant_Completion.
239 Used to detect private deferred constants that have not been completed
240 either by a constant redeclaration or pragma Import. Emits error message
241 "constant declaration requires initialization expression".
242
243 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
244 completes a deferred constant.
245
2462004-06-11 Geert Bosch <bosch@gnat.com>
247
248 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
249
250 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
251 calculating exponent for scaling denormal numbers.
252 (Leading_Part): Properly raise Constraint_Error for zero or negative
253 Adjustment.
254 (Remainder): Properly raise Constraint_Error for zero divisor.
255
2562004-06-11 Thomas Quinot <quinot@act-europe.fr>
257
258 * sem_util.adb: Minor reformatting.
259
260 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
261 dereference when accessing the entry parameter record.
262 (Check_Array_Type): Always check for possible implicit dereference.
263 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
264 Abort if a pointer is still present (denoting that an implicit
265 dereference was left in the tree by the front-end).
266
267 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
268 dereference when accessing the entry parameter record.
269 (Check_Array_Type): Always check for possible implicit dereference.
270 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
271 Abort if a pointer is still present (denoting that an implicit
272 dereference was left in the tree by the front-end).
273
2742004-06-11 Emmanuel Briot <briot@act-europe.fr>
275
276 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
277 message, like the compiler itself does. Easier to parse the output.
278
279 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
280
281 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
282 be base names, and not includes directories.
283
2842004-06-11 Arnaud Charlet <charlet@act-europe.fr>
285
286 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
287 so that dependencies are properly taken into account by make.
288
2892004-06-11 Arnaud Charlet <charlet@act-europe.fr>
290
291 PR ada/15622
292 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
293 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
294
2952004-06-11 Jerome Guitton <guitton@act-europe.fr>
296
297 * Makefile.in (install-gnatlib): install target-specific run-time files.
298
299 * Make-lang.in: Remove obsolete targets.
300
3012004-06-11 Ed Schonberg <schonberg@gnat.com>
302
303 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
304 specification, to catch misuses of program unit names.
305
306 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
307 superfluous conversions in an instance.
308
3092004-06-11 Ed Schonberg <schonberg@gnat.com>
310
311 PR ada/15403
312
313 * sem_ch12.adb (Save_References): If operator node has been folded to
314 enumeration literal, associated_node must be discarded.
315
3162004-06-11 Jose Ruiz <ruiz@act-europe.fr>
317
318 * s-stchop-vxworks.adb: Add required pragma Convention to
319 Task_Descriptor because it is updated by a C function.
320
a98f59be
AC
3212004-06-08 Arnaud Charlet <charlet@act-europe.fr>
322
323 PR ada/15568
324
325 * Makefile.in: Remove target specific SO_OPT on IRIX
326
821e1ea1
RK
3272004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
328
329 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
330 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
331 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
332 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
333 (STMT_STMT, USE_STMT): New statement codes.
334 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
335 * ada-tree.h: Reflect above changes.
336 (struct tree_loop_id): Deleted.
337 (union lang_tree_node, struct lang_decl, struct lang_type):
338 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
339 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
340 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
341 (IS_ADA_STMT): New macro.
342 * decl.c (annotate_decl_with_node): New function.
343 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
344 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
345 Call add_stmt_with_node to do needed assignments.
346 Add call to update setjmp buffer directly, not via EXPR_STMT.
347 (maybe_variable): Argment GNAT_NODE deleted.
348 * gigi.h (maybe_variable): Likewise.
349 (make_transform, add_stmt_with_node, set_block_for_group): New.
350 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
351 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
352 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
353 (set_lineno, set_lineno_from_sloc): Likewise.
354 (record_code_position, insert_code_for): Likewise.
355 (gnat_poplevel): Now returns void.
356 (end_subprog_body): Now takes argument.
357 * misc.c (cgraph.h, tree-inline.h): New includes.
358 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
359 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
360 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
361 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
362 (gnat_parse_file): Don't set immediate_size_expand.
363 Call cgraph functions.
364 (gnat_expand_expr): Remove most cases.
365 (record_code_position, insert_code_for): Remove from here.
366 * trans.c (toplev.h, tree-gimple.h): Now included.
367 (discard_file_names): Deleted.
368 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
369 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
370 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
371 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
372 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
373 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
374 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
375 (set_block_for_group, add_stmt_list): Likewise.
376 (start_stmt_group): Renamed from start_block_stmt.
377 (end_stmt_group): Likewise, from end_block_stmt.
378 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
379 (gigi): Don't set discard_file_names or call set_lineno.
380 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
381 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
382 Numerous changes throughout to reflect new names and complete
383 function-at-a-time implementation.
384 (gnat_expand_stmt): Delete or comment out all cases.
385 (process_inlined_subprograms): Use add_stmt.
386 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
387 call set_lineno; also remove unneeded block handling.
388 (process_type): Remove unneeded block handling.
389 (build_unit_elab): Remove calls to deleted functions.
390 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
391 (tree-dump.h): Likewise.
392 (struct ada_binding_level): Add field jmpbuf_decl.
393 (gnat_define_builtin, gnat_install_builtins): New.
394 (gnat_gimplify_function, gnat_finalize): Likewise.
395 (gnat_poplevel): No longer return BLOCK, set it instead.
396 Remove code dealing with nested functions.
397 (gnat_init_decl_processing): Also set size_type_node.
398 Call gnat_install_builtins.
399 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
400 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
401 Remove special-case for "main".
402 (end_subprog_body): Add arg and rework for tree-ssa.
403 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
404 Add case for BOOLEAN_TYPE.
405 * utils2.c (rtl.h): Now include.
406 (build_call_raise): Test Debug_Flag_NN directly.
407 (build_call_alloc_dealloc): Don't use local stack allocation for now.
408 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
409 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
410
0ab80019
AC
4112004-06-07 Robert Dewar <dewar@gnat.com>
412
413 * a-direct.ads, einfo.ads: Minor comment updates
414
415 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
416 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
417 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
418 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
419 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
420
421 * s-interr-sigaction.adb: Remove unreferenced variable
422 (Attached_Interrupts). Minor reformatting.
423 Avoid use of variable I (replace by J).
424
425 * par-ch10.adb: Fix text of one error message
426
427 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
428 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
429 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
430 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
431 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
432 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
433 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
434 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
435 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
436 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
437 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
438 2005 support.
439
4402004-06-07 Doug Rupp <rupp@gnat.com>
441
442 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
443
444 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
445
446 * mlib-tgt-vms-ia64.adb: New file.
447
448 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
449 Add mlib-tgt-vms-ia64.adb
450 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
451 Move to alpha specific ifeq section.
452 Add VMS specific versions of symbols.adb
453 Renaming of 5q vms files.
454
455 * 5qsystem.ads renamed to system-vms_64.ads.
456
4572004-06-07 Vincent Celier <celier@gnat.com>
458
459 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
460 explain that when a time of day corresponding to the non existing hour
461 on the day switching to DST is specified, Split may return a different
462 value for Seconds.
463
464 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
465 to GNAT PRETTY.
466
467 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
468 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
469
470 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
471 to False.
472 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
473 the linking options.
474 (Build_Library.Check_Libs): On VMS, if there is a dependency on
475 g-trasym.ads, set Gtrasymobj_Needed to True.
476
477 * prj-attr.adb: Add new package Metrics for gnatmetric
478
479 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
480 canonical case to take into account files with upper case characters on
481 Windows.
482 (Ada_Check): Load the reference symbol file name in the name buffer to
483 check it, not the symbol file name.
484
485 * snames.ads, snames.adb: Add standard name Metrics (name of project
486 file package for gnatmetric).
487
488 * vms_conv.ads: Add Metric to Comment_Type
489
490 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
491
492 * vms_data.ads: Add qualifiers for GNAT METRIC
493
494 * makegpr.adb (Link_Executables): Take into account the switches
495 specified in package Linker of the main project.
496
4972004-06-07 Thomas Quinot <quinot@act-europe.fr>
498
499 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
500 the index of the last element is Units.Last, not Units.Table'Last
501 (which is usually not a valid index within the actually allocated
502 storage for the table).
503
504 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
505 determines whether to generate a call to a checked storage pool
506 Dereference action.
507 Generate such a call only for a dereference that either comes from
508 source, or is the result of rewriting a dereference that comes from
509 source.
510
5112004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
512
513 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
514
5152004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
516
517 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
518 file level, elaborate the stride for inner dimensions in alignment
519 units, not bytes.
520
521 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
522 in a comment.
523
5242004-06-07 Javier Miranda <miranda@gnat.com>
525
526 * exp_ch6.adb: Correct wrong modification in previous patch
527
5282004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
529
530 * g-trasym.ads: Corrected comment to properly reflect level of support
531 on VMS.
532
5332004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
534
535 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
536 includes case of a variable referenced on the left hand side of an
537 assignment, therefore remove redundant code. Variables and prefixes of
538 indexed or selected components are now marked as referenced on left
539 hand side. Warnings are now properly emitted when variables or prefixes
540 are assigned but not read.
541
542 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
543 left hand side referenced variables. Private access types do not
544 produce the warning "variable ... is assigned but never read".
545 Add also additional checks to left hand side referenced variables.
546 Aliased, renamed objects and access types do not produce the warning
547 "variable ... is assigned but never read" since other entities may read
548 the memory location.
549
5502004-06-07 Jerome Guitton <guitton@act-europe.fr>
551
552 * Makefile.in: In the powerpc/vxworks-specific section, restore
553 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
554 by mistake).
555
5562004-06-07 Ed Schonberg <schonberg@gnat.com>
557
558 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
559 predefined operators.
560 Removes spurious type errors from g-trasym-vms.adb.
561
562 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
563 distinct from the operator appearing in the source, call appropriate
564 routine to insert conversions when needed, and complete resolution of
565 node.
566 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
567 interpretations for rewritten right operand.
568 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
569 the other operand is overloaded and the context is a type conversion.
570
5712004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
572
573 * ada-tree.def (BLOCK_STMT): Now has two operands.
574 (BREAK_STMT): New.
575
576 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
577
578 * gigi.h: (gnat_poplevel): Now returns a tree.
579
580 * trans.c (end_block_stmt): Add arg; all callers changed.
581 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
582 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
583 (add_stmt): Set TREE_TYPE.
584 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
585 (gnat_expand_stmt, case BREAK_STMT): New case.
586
587 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
588
5892004-06-07 Jose Ruiz <ruiz@act-europe.fr>
590
591 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
592 procedure Set_Stack_Size that is not needed.
593
5942004-06-07 Sergey Rybin <rybin@act-europe.fr>
595
596 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
597 used for gnatpp input file and for the files upon which it depends
598
5992004-06-07 Ben Brosgol <brosgol@gnat.com>
600
601 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
602
6032004-06-07 Arnaud Charlet <charlet@act-europe.fr>
604
605 * gnatvsn.ads: Bump version numbers appropriately.
606 Add new build type.
607
6082004-06-07 Pascal Obry <obry@gnat.com>
609
610 * gnat_ugn.texi: Improve comments about imported names and link names
611 on Windows. Add a note about the requirement to use -k gnatdll's option
612 when working with a DLL which has stripped stdcall symbols (no @nn
613 suffix).
614
8a36a0cc
AC
6152004-05-27 Vincent Celier <celier@gnat.com>
616
617 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
618 COMMENTS_LAYOUT=UNTOUCHED
619
620 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
621 symbols-vms-alpha.adb
622
6232004-05-27 Thomas Quinot <quinot@act-europe.fr>
624
625 * sem.ads: Clarify documentation on checks suppression.
626
627 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
628
6292004-05-27 Ed Schonberg <schonberg@gnat.com>
630
631 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
632 the case of multiple derivations.
633 (Is_Object_Reference): For a selected component, verify that the prefix
634 is itself an object and not a value.
635
636 * sem_ch12.adb (Same_Instantiated_Constant): New name for
637 Same_Instantiated_Entity.
638 (Same_Instantiated_Variable): Subsidiary to
639 Check_Formal_Package_Instance, to recognize actuals for in-out generic
640 formals that are obtained from a previous formal package.
641 (Instantiate_Subprogram_Body): Emit proper error when
642 generating code and the proper body of a stub is missing.
643
644 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
645 has a universal interpretation, do the disambiguation here.
646
647 * exp_ch4.adb (Expand_N_Type_Conversion,
648 Expand_N_Unchecked_Type_Conversion): Special handling when target type
649 is Address, to avoid typing anomalies when Address is a visible integer
650 type.
651
652 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
653 to determine whether a subprogram should not be marked Pure, even when
654 declared in a pure package.
655
6562004-05-27 Jose Ruiz <ruiz@act-europe.fr>
657
658 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
659
660 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
661 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
662 Update the documentation about the Ravenscar profile, following the
663 definition found in AI-249.
664
665 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
666 setting the Profile (Ravenscar). This must be done in addition to
667 setting the required restrictions.
668
669 * rtsfind.ads: Add the set of operations defined in package
670 Ada.Interrupts.
671
672 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
673 restriction.
674
6752004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
676
677 lang-specs.h: Always require -c or -S and always redirect to /dev/null
678 if -gnatc or -gnats is passed.
679
6802004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
681
682 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
683 a significant reference. Warnings are now properly emitted when a
684 discriminated type is not referenced.
685
686 * lib-xref.adb (Generate_Reference): A deferred constant completion,
687 record representation clause or record type discriminant does not
688 produce a reference to its corresponding entity. Warnings are now
689 properly emitted when deferred constants and record types are not
690 referenced.
691
6922004-05-27 Geert Bosch <bosch@gnat.com>
693
694 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
695 Fixes ACATS Annex G tests.
696
6972004-05-27 Robert Dewar <dewar@gnat.com>
698
699 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
700 handling WITH
701
7022004-05-27 Arnaud Charlet <charlet@act-europe.fr>
703
704 * s-interr.adb (Server_Task): Take into account case of early return
705 from sigwait under e.g. linux.
706
7072004-05-27 Sergey Rybin <rybin@act-europe.fr>
708
709 * gnat_ugn.texi: Add description for the new gnatpp options:
710 -rnb - replace the original source without creating its backup copy
711 -c0 - do not format comments
712
0fb2ea01
AC
7132004-05-24 Geert Bosch <bosch@gnat.com>
714
715 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
716 with 192 bits of precision, sufficient to reduce a double-extended
717 arguments X with a maximum relative error of T'Machine_Epsilon, for X
718 in -2.0**32 .. 2.0**32.
719 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
720 reduction by the processor, which only uses a 68-bit approximation of
721 Pi.
722 (Tan): Always reduce arguments and compute function either using
723 the processor's fptan instruction, or by dividing sin and cos as needed.
724
7252004-05-24 Doug Rupp <rupp@gnat.com>
726
727 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
728 gcc error on 32/64 bit VMS.
729
7302004-05-24 Olivier Hainque <hainque@act-europe.fr>
731
732 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
733 since this is what we get for stack overflows although not documented
734 as such.
735 Document the issues which may require adjustments to our signal
736 handlers.
737
7382004-05-24 Ed Schonberg <schonberg@gnat.com>
739
740 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
741 enclosing dynamic scope if the instantiation is within a generic unit.
742
7432004-05-24 Arnaud Charlet <charlet@act-europe.fr>
744
745 * exp_dbug.ads: Fix typo.
746
747 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
748 Rename it to its proper name: system-linux-ia64.ads
749 (stamp-gnatlib1): Remove extra target specific run time files when
750 setting up the rts directory.
751
7522004-05-24 Javier Miranda <miranda@gnat.com>
753
754 * einfo.ads, einfo.adb (Limited_Views): Removed.
755 (Limited_View): New attribute that replaces the previous one. It is
756 now a bona fide package with the limited-view list through the
757 first_entity and first_private attributes.
758
759 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
760 limited-private-with clause.
761 (Install_Limited_Withed_Unit): Install the private declarations of a
762 limited-private-withed package. Update the installation of the shadow
763 entities according to the new structure (see Build_Limited_Views)
764 (Build_Limited_Views): Replace the previous implementation of the
765 limited view by a package entity that references the first shadow
766 entity plus the first shadow private entity (required for limited-
767 private-with clause)
768 (New_Internal_Shadow_Entity): Code cleanup.
769 (Remove_Limited_With_Clause): Update the implementation to undo the
770 new work carried out by Build_Limited_Views.
771 (Build_Chain): Complete documentation.
772 Replace Ada0Y by Ada 0Y in comments
773 Minor reformating
774
775 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
776 types the level of accessibility depends on the enclosing type
777 declaration.
778
779 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
780 entities. Complete documentation of previous change.
781
7822004-05-24 Robert Dewar <dewar@gnat.com>
783
784 * namet.adb: Minor reformatting
785 Avoid use of name I (replace by J)
786 Minor code restructuring
787
788 * sem_ch6.adb: Minor reformatting
789
790 * lib-writ.adb: Do not set restriction as active if this is a
791 Restriction_Warning case.
792
793 * sem_prag.adb: Reset restriction warning flag if real pragma
794 restriction encountered.
795
796 * s-htable.adb: Minor reformatting
797 Change rotate count to 3 in Hash (improves hash for small strings)
798
799 * 5qsystem.ads: Add comments for type Address (no literals allowed).
800
801 * gnat_ugn.texi: Add new section of documentation "Code Generation
802 Control", which describes the use of -m switches.
803
8042004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
805
a1db9d9c
AC
806 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
807 through the DECL_INITIAL for renamed variables.
0fb2ea01 808
7599f1b0
AC
8092004-05-24 Arnaud Charlet <charlet@act-europe.fr>
810
811 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
812
c37bb106
AC
8132004-05-19 Joel Brobecker <brobecker@gnat.com>
814
815 * exp_dbug.ads: Correct comments concerning handling of overloading,
816 since we no longer use $ anymore.
817
8182004-05-19 Sergey Rybin <rybin@act-europe.fr>
819
820 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
821 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
822 with illegal subunits.
823
8242004-05-19 Ed Schonberg <schonberg@gnat.com>
825
826 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
827 body with front-end inlining enabled, check whether an inline pragma
828 appears immediately after the body and applies to it.
829
830 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
831 enabled and the pragma appears after the body of the subprogram.
832
b5e792e2
AC
8332004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
834
835 Part of function-at-a-time conversion
836
837 * misc.c (adjust_decl_rtl): Deleted.
838 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
839 Define.
840
841 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
842 (add_decl_stmt, add_stmt, block_has_vars): New functions.
843 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
844
845 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
846 when making a decl.
847 (gnat_to_gnu_entity): Likewise.
848 Use add_stmt to update setjmp buffer.
849 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
850 flush_addressof.
851 No longer call adjust_decl_rtl.
852 (DECL_INIT_BY_ASSIGN_P): New macro.
853 (DECL_STMT_VAR): Likewise.
854
855 * trans.c (gigi): Call start_block_stmt to make the outermost
856 BLOCK_STMT.
857 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
858 Call start_block_stmt and end_block_stmt temporarily.
859 Use gnat_expand_stmt instead of expand_expr_stmt.
860 (add_decl_stmt): New function.
861 (tree_transform): Call it.
862 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
863 (end_block_stmt): Set type and NULL_STMT.
864 (gnat_expand_stmt): Make recursize call instead of calling
865 expand_expr_stmt.
866 (gnat_expand_stmt, case DECL_STMT): New case.
867 (set_lineno_from_sloc): Do nothing if global.
868 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
869 (start_block_stmt, add_stmt, end_block_stmt): New functions.
870 (build_block_stmt): Call them.
871 (gnat_to_code): Don't expand NULL_STMT.
872 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
873 args.
874 (tree_transform): Likewise.
875 (tree_transform, case N_Null_Statement): Return NULL_STMT.
876 (gnat_expand_stmt, case NULL_STMT): New case.
877 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
878 IF_STMT_TRUE.
879
880 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
881 TREE_ADDRESSABLE.
882
883 * utils.c (create_var_decl): Do not call expand_decl or
884 expand_decl_init.
885 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
886 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
887 here.
888 (struct e_stack): Add chain_next to GTY.
889 (struct binding_level): Deleted.
890 (struct ada_binding_level): New struct.
891 (free_block_chain): New.
892 (global_binding_level, clear_binding_level): Deleted.
893 (global_bindings_p): Rework to see if no chain.
894 (kept_level_p, set_block): Deleted.
895 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
896 new data structure and work directly on BLOCK node.
897 (gnat_poplevel): Similarly.
898 (get_decls): Look at BLOCK_VARS.
899 (insert_block): Work directly on BLOCK node.
900 (block_has_var): New function.
901 (pushdecl): Rework for new binding structures.
902 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
903 poplevel.
904 (build_subprog_body): Likewise.
905 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
906
907 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
908
909 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
910 (DECL_STMT_VAR): Likewise.
911
9122004-05-17 Robert Dewar <dewar@gnat.com>
913
914 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
915 procedure
916
917 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
918 of restriction synonyums by using
919 Restrict.Process_Restriction_Synonyms.
920
921 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
922
923 * s-restri.ads (Tasking_Allowed): Correct missing comment
924
925 * s-rident.ads: Add entries for restriction synonyms
926
927 * ali.adb: Fix some problems with badly formatted ALI files that can
928 result in infinite loops.
929
930 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
931 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
932 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
933 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
934 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
935 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
936 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
937 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
938 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
939 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
940 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
941 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
942 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
943 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
944 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
945 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
946 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
947 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
948 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
949 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
950 to Task_Id (minor cleanup).
951
9522004-05-17 Vincent Celier <celier@gnat.com>
953
954 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
955 directory separator.
956
957 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
958 project being extended, if Languages is not declared in extending
959 project.
960
9612004-05-17 Javier Miranda <miranda@gnat.com>
962
963 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
964 limited view of a visible sibling.
965
9bc856dd
AC
9662004-05-14 Robert Dewar <dewar@gnat.com>
967
968 * gnat_ugn.texi: Minor change to -gnatS documentation
969
970 * sprint.adb: Remove some instances of Assert (False) and for this
971 purpose replace them by output of a ??? string.
972
973 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
974 Assert (False).
975
976 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
977 flag processing. This was suppressing required dependencies in
978 No_Run_Time mode and is not needed since the binder does not generate
979 references for things in libgnat anyway.
980
981 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
982 warning.
983
9842004-05-14 Thomas Quinot <quinot@act-europe.fr>
985
986 * gnat_ugn.texi: Document AIX-specific issue with initialization of
987 resolver library.
988
989 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
990 action for the case of an actual parameter in an init proc call.
991
9922004-05-14 Ed Schonberg <schonberg@gnat.com>
993
994 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
995 subtype, check visible entities in base type.
996
997 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
998 actions if the object is a renaming.
999
1000 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
1001 Check_Formal_Package_Instance, to determine more precisely when the
1002 formal and the actual denote the same entity.
1003
10042004-05-14 Javier Miranda <miranda@gnat.com>
1005
1006 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
1007
1008 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
1009 corresponding to a private_with must be removed from visibility; it
1010 will be made visible later, just before we analyze the private part of
1011 the package.
1012 (Check_Private_Child_Unit): Allow private_with clauses in public
1013 siblings.
1014 (Install_Siblings): Make visible the private entities of private-withed
1015 siblings.
1016 (Install_Withed_Unit): Do not install the private withed unit if we
1017 are compiling a package declaration and the Private_With_OK flag was
1018 not set by the caller. These declarations will be installed later,
1019 just before we analyze the private part of the package.
1020
1021 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
1022 during the evaluation of the expression that initializes the object,
1023 decorate it with the expected type to avoid cascade errors.
1024 Code cleanup.
1025
1026 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
1027 subprogram we have to install the private_with clauses after its
1028 specification has been analyzed (as documented in AI-262.TXT).
1029
1030 * sem_ch8.adb (Has_Private_With): New function. Determines if the
1031 current compilation unit has a private with on a given entity.
1032 (Find_Direct_Name): Detect the Beaujolais problem described in
1033 AI-262.TXT
1034
1035 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
1036 provides the functionality of the function Is_Ancestor that was
1037 previously available in sem_ch10. It has been renamed to avoid
1038 overloading.
1039
1040 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
1041
10422004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1043
1044 * utils.c (build_vms_descriptor): Use SImode pointers.
1045
10462004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
1047
1048 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
1049
10502004-05-14 GNAT Script <nobody@gnat.com>
1051
1052 * Make-lang.in: Makefile automatically updated
1053
084c663c
AC
10542004-05-14 Arnaud Charlet <charlet@act-europe.fr>
1055
1056 Renaming of target specific files for clarity
1057
1058 * Makefile.in: Rename GNAT target specific files.
1059
1060 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
1061 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
1062 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
1063 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
1064 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
1065 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
1066 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
1067 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
1068 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
1069 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
1070 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
1071 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
1072 51osinte.adb, 51osinte.ads, 51system.ads,
1073 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
1074 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
1075 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
1076 56tpopsp.adb, 57system.ads, 58system.ads,
1077 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
1078 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
1079 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
1080 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
1081 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
1082 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
1083 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
1084 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
1085 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
1086 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
1087 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
1088 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
1089 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
1090 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
1091 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
1092 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
1093 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
1094 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
1095 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
1096 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
1097 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
1098 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
1099 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
1100 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
1101 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
1102 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
1103 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
1104 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
1105 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
1106 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
1107 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
1108 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
1109 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
1110 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
1111 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
1112 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
1113 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
1114 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
1115 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
1116 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
1117
1118 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
1119 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
1120 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
1121 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
1122 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
1123 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
1124 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
1125 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
1126 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
1127 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
1128 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
1129 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
1130 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
1131 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
1132 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
1133 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
1134 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
1135 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
1136 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
1137 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
1138 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
1139 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
1140 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
1141 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
1142 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
1143 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
1144 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
1145 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
1146 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
1147 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
1148 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
1149 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
1150 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
1151 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
1152 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
1153 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
1154 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
1155 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
1156 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
1157 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
1158 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
1159 s-osinte-vms.ads, s-osinte-vxworks.adb,
1160 s-osinte-vxworks.ads, s-osprim-mingw.adb,
1161 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
1162 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
1163 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
1164 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
1165 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
1166 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
1167 s-stchop-vxworks.adb, s-taprop-dummy.adb,
1168 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
1169 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
1170 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
1171 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
1172 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
1173 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
1174 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
1175 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
1176 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
1177 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
1178 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
1179 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
1180 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
1181 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
1182 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
1183 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
1184 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
1185 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
1186 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
1187 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
1188 system-irix-o32.ads, system-linux-x86_64.ads,
1189 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
1190 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
1191 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
1192 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
1193 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
1194 system-vxworks-mips.ads, system-vxworks-ppc.ads,
1195 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
1196 above.
1197
90afe2c9
ZW
11982004-05-13 Zack Weinberg <zack@codesourcery.com>
1199
1200 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
1201
6de9cd9a
DN
12022004-05-13 Diego Novillo <dnovillo@redhat.com>
1203
1204 Merge from tree-ssa-20020619-branch.
1205
1206 * config-lang.in (boot_language, build_by_default): Set
1207 to no.
1208 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
1209 (max_size): Add static chain op for call_expr.
1210
f5657d67
RS
12112004-05-12 Richard Sandiford <rsandifo@redhat.com>
1212
1213 PR target/15331
1214 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
1215
4413b636
RS
12162004-05-11 Roger Sayle <roger@eyesopen.com>
1217
1218 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
1219 COND_EXPR.
1220
5950a3ac
AC
12212004-05-10 Doug Rupp <rupp@gnat.com>
1222
1223 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
1224 system.aux_dec.
1225
1226 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
1227
1228 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
1229
1230 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
1231 Fixes undefined symbols in IA64 gnatlib.
1232
1233 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
1234
1235 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
1236 Short_Address). This will be moved to system.auxdec.
1237
12382004-05-10 Thomas Quinot <quinot@act-europe.fr>
1239
1240 * sem_util.adb: Replace test for presence of a node that is always
1241 present with a call to Discard_Node.
1242
1243 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
1244 Analyze on the library unit node after generation of distribution stub
1245 constructs. The call was a no-op because Unit_Node has already been
1246 Analyzed, and the tree fragments for the distribution stubs are
1247 analyzed as they are inserted in Exp_Dist.
1248 Update comment regarding to distribution stubs to reflect that we
1249 do not generate stub in separate files anymore.
1250
1251 * einfo.ads: Clarify the fact that a tagged private type has the
1252 E_Record_Type_With_Private Ekind.
1253
1254 * erroutc.adb: Minor reformatting
1255
1256 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
1257 values if line length is increased using -gnatyM (noticed during code
1258 reading).
1259
1260 * eval_fat.adb: Minor reformatting
1261 Put spaces around exponentiation operator
1262
12632004-05-10 Ed Schonberg <schonberg@gnat.com>
1264
1265 PR ada/15005
1266 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
1267 has been rewritten as an explicit dereference, retrieve type of
1268 original node to check for possibly unconstrained record type.
1269
12702004-05-10 Ed Schonberg <schonberg@gnat.com>
1271
1272 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
1273 overriding, use the operation of the parent unconditionally.
1274
1275 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
1276 operation when either operand is a literal, to avoid further
1277 ambiguities.
1278
1279 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
1280 overridden by a previous explicit declaration, mark the previous entity
1281 as overriding.
1282
1283 * sem_disp.adb (Check_Dispatching_Operation): New predicate
1284 Is_Visibly_Controlled, to determine whether a declaration of a
1285 primitive control operation for a derived type overrides an inherited
1286 one. Add warning if the explicit declaration does not override.
1287
12882004-05-10 Vincent Celier <celier@gnat.com>
1289
1290 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
1291 some cases when the sources are no longer present.
1292
1293 * make.adb (Collect_Arguments): Fail if an external source, not part
1294 of any project need to be compiled, when switch -x has not been
1295 specified.
1296
1297 * makeusg.adb: Document new switch -x
1298
1299 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
1300 defaulted to False.
1301
1302 * switch-m.adb (Scan_Make_Switches): New switch -x
1303
1304 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
1305 gnatmake switch -x.
1306
1307 * gnat_ugn.texi: Document new gnatmake switch -x
1308
13092004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
1310
1311 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
1312
1313 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
1314 (process_attributes): Likewise.
1315
13162004-05-10 Joel Brobecker <brobecker@gnat.com>
1317
1318 * s-inmaop.ads: Fix spelling mistake in one of the comments.
1319
13202004-05-10 Robert Dewar <dewar@gnat.com>
1321
1322 * gnat_ugn.texi: Document that for config pragma files, the maximum
1323 line length is always 32767.
1324
1325 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
1326 literals is now allowed.
1327
1328 * gnat-style.texi: Remove statement about splitting long lines before
1329 an operator rather than after, since we do not follow this rule at all.
1330 Clarify rule (really lack of rule) for spaces around exponentiation
1331
1332 * sem_elim.adb: Allow concatenation of string literals as well as a
1333 single string literal for pragma arguments.
1334
1335 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
1336
1337 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
1338 written for append case.
1339
1340 * frontend.adb: Changes to avoid checking max line length in config
1341 pragma files.
1342
1343 * g-os_lib.ads: Minor reformatting
1344
1345 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
1346 wrong in any case. Instead use standard value. Noticed during code
1347 reading.
1348
1349 * opt.ads (Max_Line_Length): New field, used to implement removal of
1350 limitation on length of lines when scanning config pragma files.
1351
1352 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
1353 makeutl.ads, makeutl.adb: Minor reformatting
1354
1355 * scn.adb: Do not check line length while scanning config pragma files
1356 Do not check line length while scanning out license information
1357
1358 * scng.adb: Changes to avoid line length checks while parsing config
1359 pragma files.
1360
13612004-05-10 GNAT Script <nobody@gnat.com>
1362
1363 * Make-lang.in: Makefile automatically updated
1364
48664302
AC
13652004-05-05 Arnaud Charlet <charlet@act-europe.fr>
1366
1367 * osint.adb (Find_Program_Name): Fix handling of VMS version
1368 number.
1369
aa720a54
AC
13702004-05-05 Emmanuel Briot <briot@act-europe.fr>
1371
1372 * g-os_lib.ads (Invalid_Time): New constant
1373
1374 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
1375 return OS_Time instead of time_t to match what is imported by Ada.
1376 Now return -1 if the file doesn't exist, instead of a random value
1377
13782004-05-05 Robert Dewar <dewar@gnat.com>
1379
1380 * usage.adb: Add line for -gnatR?s switch
1381
1382 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
1383
1384 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
1385 and for Match (Data_First, Data_last)
1386
1387 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
1388 written when we are dealing with multi-unit files.
1389
13902004-05-05 Jerome Guitton <guitton@act-europe.fr>
1391
1392 * Makefile.in: Remove unused targets and variables.
1393
13942004-05-05 Vincent Celier <celier@gnat.com>
1395
1396 * switch-m.adb: New gnatmake switch -eI
1397
1398 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
1399 of new gnatmake switch -eInnn.
1400
1401 * makegpr.adb: Take into account new parameters Index and Src_Index in
1402 Prj.Util.
1403
1404 * clean.adb: Implement support for multi-unit sources, including new
1405 switch -i.
1406
1407 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
1408 Src_Index.
1409
1410 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
1411 (Extract_From_Q): New out parameter Index
1412 (Mark, Is_Marked): Subprograms moved to Makeutl
1413 (Switches_Of): New parameter Source_Index
1414 (Add_Switch): New parameter Index
1415 (Check): New parameter Source_Index
1416 (Collect_Arguments): New parameter Source_Index
1417 (Collect_Arguments_And_Compile): New parameter Source_Index
1418 (Compile): New parameter Source_Index
1419 Put subprograms in alphabetical order
1420 Add support for multi-source sources, including in project files.
1421
1422 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
1423 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
1424 Make.
1425
1426 * makeusg.adb: New gnatmake switch -eInnn
1427
1428 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
1429 Prj.Util.Value_Of.
1430
1431 * opt.ads (Main_Index): New variable, defaulted to 0.
1432
1433 * osint.ads, osinte.adb (Add_File): New parameter Index
1434 (Current_Source_Index): New function
1435
1436 * prj.adb: Take into account new components Index and Src_Index
1437
1438 * prj.ads (String_Element): New component Index
1439 (Variable_Value): New component Index
1440 (Array_Element): New component Src_Index
1441
1442 * prj-attr.adb: Indicate that optional index may be specified for
1443 attributes Main, Executable, Spec, Body and some of Switches.
1444
1445 * prj-attr.ads (Attribute_Kind): New values for optional indexes
1446 (Attribute_Record): New component Optional_Index
1447
1448 * prj-com.ads (File_Name_Data): New component Index
1449
1450 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
1451
1452 * prj-env.adb (Put): Output optional index
1453
1454 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
1455 attributes Spec and Body.
1456
1457 * prj-nmsc.adb: Process optional indexes
1458
1459 * prj-pp.adb: Ouput "at" for optional indexes
1460
1461 * prj-proc.adb: Take into account optional indexes
1462
1463 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
1464 Optional_Index. For string literal,
1465 process optional index when Optional_Index is True.
1466 (Parse_Expresion): New Boolean parameter Optional_Index
1467
1468 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
1469 (Set_Source_Index_Of): New procedure
1470
1471 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
1472 index.
1473
1474 * prj-util.ads (Executable_Of): New parameter Index
1475 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
1476 New parameter Src_Index, defaulted to 0.
1477
14782004-05-05 Ed Schonberg <schonberg@gnat.com>
1479
1480 PR ada/15257
1481 * sem_ch3.adb (Access_Definition): If this is an access parameter
1482 whose designated type is imported through a limited_with clause, do
1483 not add the enclosing subprogram to the list of private dependents of
1484 the type.
1485
14862004-05-05 Ed Schonberg <schonberg@gnat.com>
1487
1488 PR ada/15258
1489 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
1490 a limited_with clause, and the other is its non-limited view.
1491
14922004-05-05 Thomas Quinot <quinot@act-europe.fr>
1493
1494 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
1495
90afe2c9 1496 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
aa720a54
AC
1497 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
1498 Stand.Boolean_Literals to produce references to entities
1499 Standard_False and Standard_True from compile-time computed boolean
1500 values.
1501
1502 * stand.ads (Boolean_Literals): New variable, provides the entity
1503 values for False and True, for use by the expander.
1504
15052004-05-05 Doug Rupp <rupp@gnat.com>
1506
1507 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
1508 5vinmaop.adb: Unchecked convert Short_Address vice Address
1509
1510 * adaint.c, raise.c: Caste CRTL function return value
1511 to avoid gcc error on 32/64 bit IVMS.
1512
1513 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
1514 target = IA64/VMS.
1515
1516 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
1517
1518 * 5qsystem.ads (Address): Declare as Long_Integer
1519 (Short_Address): Declare as 32 bit subtype of Address
1520 Declare abstract address operations to avoid gratuitous ambiguities.
1521
15222004-05-05 Jose Ruiz <ruiz@act-europe.fr>
1523
1524 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
1525 instead of the old Boolean_Entry_Barriers.
1526 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
1527
15282004-05-05 GNAT Script <nobody@gnat.com>
1529
1530 * Make-lang.in: Makefile automatically updated
1531
1ab2888d
AC
15322004-05-03 Arnaud Charlet <charlet@act-europe.fr>
1533
1534 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
1535
9f4fd324
AC
15362004-05-03 Olivier Hainque <hainque@act-europe.fr>
1537
1538 PR ada/15152
1539
1540 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
1541 alone. Replacing object references by literals is inappropriate in a
1542 so low level context.
1543
15442004-05-03 Arnaud Charlet <charlet@act-europe.fr>
1545
1546 * a-exexpr.adb: Add comments
1547
15482004-05-03 Joel Brobecker <brobecker@gnat.com>
1549
1550 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
1551 declare the Ancestor_Tags array in Type_Specific_Data with a small size
1552 without risking a bounds check error when accessing one of its
1553 components.
1554 (Type_Specific_Data): Define Ancestor_Tags as a small array.
1555 This prevents us from hitting a limitation during the debug info
1556 generation when using stabs.
1557
1558 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
1559 small array.
1560 This prevents us from hitting a limitation during the debug info
1561 generation when using stabs.
1562
15632004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
1564
1565 lang-specs.h: Remove -gnatz* from specs.
1566
15672004-05-03 Vincent Celier <celier@gnat.com>
1568
1569 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
1570
1571 * Make-lang.in, Makefile.in: Add gprmake
1572
15732004-05-03 Thomas Quinot <quinot@act-europe.fr>
1574
1575 * sem_aggr.adb: Fix typo in comment.
1576
15772004-05-03 Robert Dewar <dewar@gnat.com>
1578
1579 * make.adb: Minor reformatting
1580
1581 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
1582
1583 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
1584 so that it works when address is not a private type.
1585
1586 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
1587 properly with rewritten unchecked conversions. This prevents
1588 order-of-elaboration issues that can otherwise arise.
1589 (Minimum_Size): Don't check size of access types under VMS
1590
1591 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
1592 interpretations of integer literals as type System.Address.
1593
1594 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
1595 (Is_Descendent_Of): New function
1596
15972004-05-03 Jose Ruiz <ruiz@act-europe.fr>
1598
1599 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
1600 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
1601 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
1602
1603 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
1604 of the old Max_Entry_Queue_Depth.
1605
1606 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
1607 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
1608 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
1609
1610 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
1611 New entry for proper handling of Max_Entry_Queue_Depth.
1612 New entry for proper handling of No_Dynamic_Interrupts.
1613
1614 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
1615 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
1616 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
1617 the GNAT specific restriction Max_Entry_Queue_Depth.
1618 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
1619 the GNAT specific restriction No_Dynamic_Interrupts.
1620
1621 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
1622 instead of the old Boolean_Entry_Barriers.
1623 Use the new restriction No_Dynamic_Attachment instead of the old
1624 No_Dynamic_Interrupts.
1625
1626 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
1627 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
1628
1629 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
1630 of the old Max_Entry_Queue_Depth.
1631
16322004-05-03 GNAT Script <nobody@gnat.com>
1633
1634 * Make-lang.in: Makefile automatically updated
1635
d935a36e
AC
16362004-04-29 Ed Schonberg <schonberg@gnat.com>
1637
1638 * checks.adb (Enable_Range_Check): If the prefix of an index component
1639 is an access to an unconstrained array, perform check unconditionally.
1640
16412004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1642
1643 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
1644 Component_Clause.
1645
16462004-04-29 Olivier Hainque <hainque@act-europe.fr>
1647
1648 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
1649 alternate stack setting. There was no support for the tasking cases
1650 and the changes eventually caused a number of side-effect failures in
1651 the non-tasking case too.
1652
16532004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
1654
1655 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
1656 -gnats is passed.
1657
16582004-04-29 Vincent Celier <celier@gnat.com>
1659
1660 * make.adb (Gnatmake): Increase max size of argument array for
1661 gnatbind for the potential addition of -F.
1662 If there are Stand-Alone Library projects, invoke gnatbind with -F to
1663 be sure that elaboration flags will be checked.
1664
1665 * switch-c.adb: Correct call to Scan_Pos for -gnateI
1666
16672004-04-29 Thomas Quinot <quinot@act-europe.fr>
1668
1669 * sem_warn.adb (Check_References): Move '<access-variable> may be
1670 null' warning out of under Warn_On_No_Value_Assigned.
1671
16722004-04-29 Ed Falis <falis@gnat.com>
1673
1674 * gnat_ugn.texi: Fixed texi error
1675
16762004-04-29 Robert Dewar <dewar@gnat.com>
1677
1678 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
1679 abstract operations if they come from predefined files.
1680
1681 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
1682 Dynamic, not RM).
1683
1684 * s-addope.adb: Correct obvious error in mod function
1685
16862004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
1687
1688 * Makefile.in: Add target pairs for powerpc darwin*
1689 tasking support.
1690
1691 * a-intnam-darwin.ads, s-osinte-darwin.adb,
1692 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
1693
ea16c81b
UW
16942004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
1695
1696 * Makefile.in: Add target macro definitions for s390*-linux*.
1697 * system-linux-s390.ads: New file.
1698 * system-linux-s390x.ads: New file.
1699
f0e6f845
JM
17002004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
1701
1702 * gnat_ugn.texi: Correct argument to @setfilename.
1703
e8c2eedc
UW
17042004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
1705
1706 * a-exexpr.adb (Unwind_Word): New data type.
1707 (Unwind_Exception): Use it as type of Private1 and Private2.
1708
1709 * raise.c (db_action_for): Fix debug printf.
1710
f2c9e65a
AC
17112004-04-27 Ed Schonberg <schonberg@gnat.com>
1712
1713 * a-wtmoio.ads: Formal type must be a modular type, not a signed
1714 integer type.
1715
17162004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1717
1718 * decl.c (gnat_to_gnu_entity, case object): Call
1719 __builtin_update_setjmp_buf.
1720
1721 * gigi.h (update_setjmp_buf): Deleted.
1722 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
1723
1724 * misc.c: (update_setjmp_buf): Deleted.
1725
1726 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
1727 around block of RTL.
1728
1729 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
1730
35b7fa6a
AC
17312004-04-26 Thomas Quinot <quinot@act-europe.fr>
1732
1733 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
1734 subprogram for which no pragma All_Calls_Remote applies, store the
1735 address of the real subprogram in the underlying record type, so local
1736 dereferences do not go through the PCS.
1737
17382004-04-26 Robert Dewar <dewar@gnat.com>
1739
1740 * i-c.ads: Add some type qualifications to avoid ambiguities when
1741 compiling with s-auxdec.ads and a non-private address type.
1742
17432004-04-26 Arnaud Charlet <charlet@act-europe.fr>
1744
1745 * Makefile.rtl: Fix error in previous check-in:
1746 Add s-addope.o to non tasking object list (rather than tasking object
1747 list).
1748
17492004-04-26 Javier Miranda <miranda@gnat.com>
1750
1751 * sem_aggr.adb: Fix typo in comments
1752 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
1753 Required to check the null-exclusion attribute.
1754
1755 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
1756 case of anonymous access types in record and array components. For a
1757 component definition the level is the same of the enclosing composite
1758 type.
1759
1760 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
1761 that are anonymous access types the level of accessibility depends on
1762 the enclosing type declaration. In order to have this information, set
1763 the scope of the anonymous access type to the enclosing record type
1764 declaration.
1765 (Array_Type_Declaration): In case of components that are anonymous
1766 access types the level of accessibility depends on the enclosing type
1767 declaration. In order to have this information, set the scope of the
1768 anonymous access type to the enclosing array type declaration.
1769
1770 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
1771 access type.
1772
1773 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
1774 renaming of anonymous access-to-constant types allowed if and only if
1775 the renamed object is access-to-constant.
1776
1777 * sem_util.adb (Type_Access_Level): In case of anonymous access types
1778 that are component_definition or discriminants of a nonlimited type,
1779 the level is the same as that of the enclosing component type.
1780
17812004-04-26 Sergey Rybin <rybin@act-europe.fr>
1782
1783 * sem_elim.adb: Some minor code reorganization from code reading. Fix
1784 misprint in the function name (File_Name_Match).
1785
5a944040
LG
17862004-04-23 Laurent GUERBY <laurent@guerby.net>
1787
90afe2c9 1788 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5a944040 1789 install.
90afe2c9 1790
d0fd1344
RO
17912004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1792
1793 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
1794
cc4f0de1
AC
17952004-04-23 Emmanuel Briot <briot@act-europe.fr>
1796
1797 * adaint.c (__gnat_try_lock): No longer requires that the parent
1798 directory be writable, the directory itself is enough.
1799 (gnat_is_absolute_path): Change profile, so that the call from
1800 GNAT.OS_Lib can be made more efficient.
1801
1802 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
1803 from GNAT.OS_Lib can be made more efficient.
1804
1805 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
1806 one copy of the file name. Found by code reading.
1807
18082004-04-23 Vincent Celier <celier@gnat.com>
1809
1810 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
1811 Correct documentation on gnatmake switches transmitted to the compiler
1812
1813 * ali.ads: Minor comment fix
1814
18152004-04-23 Javier Miranda <miranda@gnat.com>
1816
1817 * sem_ch6.adb: (Confirming Types): Code cleanup
1818
1819 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
1820 subprogram types: E_Anonymous_Access_Subprogram_Type and
1821 E_Anonymous_Access_Protected_Subprogram_Type.
1822
18232004-04-23 Thomas Quinot <quinot@act-europe.fr>
1824
1825 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
1826 whether a pragma All_Calls_Remote applies to the subprogram on which
1827 'Access is taken.
1828 No functional change is introduced by this revision; the new parameter
1829 will be used to allow calls to local RCI subprograms to be optimized
1830 to not use the PCS in the case where no pragma All_Calls_Remote applies,
1831 as is already done in the PolyORB implementation of the DSA.
1832
1833 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
1834 whether a pragma All_Calls_Remote applies to the subprogram on which
1835 'Access is taken.
1836 No functional change is introduced by this revision; the new parameter
1837 will be used to allow calls to local RCI subprograms to be optimized
1838 to not use the PCS in the case where no pragma All_Calls_Remote applies,
1839 as is already done in the PolyORB implementation of the DSA.
1840
18412004-04-23 Robert Dewar <dewar@gnat.com>
1842
1843 * Makefile.rtl: Add entry for s-addope.o in run time library list
1844 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
1845 * s-addope.ads, s-addope.adb: New files.
1846
90afe2c9
ZW
1847 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
1848 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
cc4f0de1
AC
1849 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
1850 System.Address to be non-private and signed.
1851
1852 * sem_elim.adb: Minor reformatting (fairly extensive)
1853 Some minor code reorganization from code reading
1854 Add a couple of ??? comments
1855
18562004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1857
1858 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
90afe2c9 1859 (tree_transform, case N_If_Statement): Remove non-determinism.
cc4f0de1
AC
1860
1861 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
1862
18632004-04-23 Sergey Rybin <rybin@act-europe.fr>
1864
1865 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
1866 Eliminate' section.
1867
1868 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
1869 no longer used as a parameter name for Eliminate pragma).
1870
78bad775
LG
18712004-04-22 Laurent GUERBY <laurent@guerby.net>
1872
1873 PR optimization/14984
1874 PR optimization/14985
1875 * trans.c (gigi): Fix non determinism leading to bootstrap
1876 comparison failures.
1877
af4b9434
AC
18782004-04-21 Pascal Obry <obry@gnat.com>
1879
1880 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
1881 passed to spawnvp() to properly handle program pathname with spaces on
1882 Win32.
1883
18842004-04-21 Emmanuel Briot <briot@act-europe.fr>
1885
1886 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
1887 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
1888 unlocked in case of exceptions.
1889
18902004-04-21 Joel Brobecker <brobecker@gnat.com>
1891
1892 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
1893 This function does not exist anymore.
1894
18952004-04-21 Thomas Quinot <quinot@act-europe.fr>
1896
1897 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
1898
1899 * link.c: Move variables to the __gnat name space.
1900
1901 * Makefile.in: list link.o explicitly when needed.
1902
1903 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
1904
19052004-04-21 Javier Miranda <miranda@gnat.com>
1906
1907 * einfo.adb (Original_Access_Type): New subprogram
1908 (Set_Original_Access_Type): New subprogram
1909 (Write_Field21_Name): Write the name of the new field
1910
1911 * einfo.ads (Original_Access_Type): New field present in access to
1912 subprogram types.
1913 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
1914 E_Anonymous_Access_Protected_Subprogram_Type.
1915
1916 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
1917 subprogram types.
1918
1919 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
1920 to anonymous access to subprogram types.
1921
1922 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
1923 to subprogram types.
1924
1925 * sem_ch3.adb (Access_Definition): Complete decoration of entities
1926 corresponding to anonymous access to subprogram types.
1927 (Analyze_Component_Declaration): Add new actual to the call to
1928 subprogram replace_anonymous_access_to_protected_subprogram.
1929 (Array_Type_Declaration): Add new actual to the call to subprogram
1930 replace_anonymous_access_to_protected_subprogram.
1931 (Process_Discriminants): Add new actual to the call to subprogram
1932 replace_anonymous_access_to_protected_subprogram.
1933 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
1934
1935 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
1936 formal.
1937
1938 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
1939 access to subprogram types.
1940
1941 * sem_util.adb (Has_Declarations): Addition of package_specification
1942 nodes.
1943
19442004-04-21 Ed Schonberg <schonberg@gnat.com>
1945
1946 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
1947 inlined flags to renamed entity only if in current unit.
1948
19492004-04-21 Thomas Quinot <quinot@act-europe.fr>
1950
1951 * s-parint.ads: Add DSA implementation marker.
1952
1953 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
1954 value of System.Partition_Interface.DSA_Implementation to determine
1955 what version of the distributed systems annex is available (no
1956 implementation, GLADE, or PolyORB).
1957
19582004-04-21 Joel Brobecker <brobecker@gnat.com>
1959
1960 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
1961
19622004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1963
1964 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
1965 with new type if alias sets differ.
1966 Fixes ACATS c41103b.
1967
19682004-04-21 Vincent Celier <celier@gnat.com>
1969
1970 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
1971 Add array Lang_Args for the language specific compiling argument
1972 switches.
1973
1974 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
1975
19762004-04-21 Sergey Rybin <rybin@act-europe.fr>
1977
1978 * gnat_rm.texi: Update the descripton of the Eliminate pragma
1979 according to the recent changes in the format of the parameters of the
1980 pragma (replacing Homonym_Number with Source_Location).
1981
7324bf49
AC
19822004-04-19 Arnaud Charlet <charlet@act-europe.fr>
1983
1984 * 5isystem.ads: Removed, unused.
1985
1986 * gnat_rm.texi: Redo 1.13 change.
1987
19882004-04-19 Robert Dewar <dewar@gnat.com>
1989
1990 * s-stoele.ads: Clean up definition of Storage_Offset (the new
1991 definition is cleaner, avoids the kludge of explicit Standard operator
1992 references, and also is consistent with a visible System.Address with
1993 no visible operations.
1994
1995 * s-geveop.adb: Add declarations to avoid assumption of visible
1996 operations on type System.Address (since these might not be available
1997 if Address is a non-private type for which the operations
1998 are made abstract).
1999
2000 * sem_eval.adb: Minor reformatting
2001
2002 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
2003 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
2004 reformatting (new function spec format).
2005
2006 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
2007 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
2008 s-caun64.adb: Add declarations to avoid assumption of visible
2009 operations on type System.Address (since these might not be available
2010 if Address is a non-private type for which the operations are made
2011 abstract).
2012
2013 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
2014
2015 * exp_intr.adb: Minor comment update
2016
2017 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
2018
2019 * 5omastop.adb: Add declarations to avoid assumption of visible
2020 operations on type System.Address (since these might not be available
2021 if Address is a non-private type for which the operations
2022 are made abstract).
2023
20242004-04-19 Vincent Celier <celier@gnat.com>
2025
2026 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
2027
2028 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
2029 defaulted to Ada.
2030
2031 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
2032 defaulted to Ada.
2033 Call Check with Process_Languages.
2034 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
2035 with Process_Languages.
2036 (Recursive_Check): New Boolean parameter Process_Languages. Call
2037 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
2038 Process_Languages.
2039
2040 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
2041
2042 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
2043 parameter Ada_Main, defaulted to True.
2044 Check for Ada specific characteristics only when Ada_Main is True.
2045
2046 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
2047
2048 * prj.adb: (Project_Empty): Add new Project_Data components.
2049
2050 * prj.ads: New types and tables for non Ada languages.
2051 (Project_Data): New components Languages, Impl_Suffixes,
2052 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
2053 Include_Path, Include_Data_Set.
2054
2055 * prj-env.ads, prj-env.adb: Minor reformatting
2056
2057 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
2058 Put subprograms in alphabetical order
2059
2060 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
2061 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
2062 Opt.Follow_Links.
2063
2064 * mlib-prj.adb: Back out modification in last version, as they are
2065 incorrect.
2066 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
2067
2068 * make.adb: (Mains): Moved to package Makeutl
2069 (Linker_Opts): Moved to package Makeutl
2070 (Is_External_Assignment): Moved to package Makeutl
2071 (Test_If_Relative_Path): Moved to package Makeutl
2072 (Gnatmake): Move sorting of linker options to function
2073 Makeutl.Linker_Options_Switches.
2074
8f9df7d8
VC
2075 * makeutl.ads, makeutl.adb: New files.
2076
7324bf49
AC
2077 * Makefile.in: Add makeutl.o to the object files for gnatmake
2078
2079 * makeusg.adb: Add line for new switch -eL.
2080
2081 * gnatls.adb (Image): New function.
2082 (Output_Unit): If in verbose mode, output the list of restrictions
2083 specified by pragmas Restrictions.
2084
2085 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
2086 Text_IO.
2087
2088 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
2089 needed, to put it in the range 1970 (included) - 2026 (excluded).
2090 (Time_Of): Do not shift Unix_Min_Year (1970).
2091 Shift the date by multiple of 56 years, if needed, to put it in the
2092 range 1970 (included) - 2026 (excluded).
2093
2094 * adaint.h, adaint.c (__gnat_set_executable): New function.
2095
20962004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2097
2098 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
2099 and pop GC context.
2100 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
2101 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
2102 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
2103 (tree_transform, case N_Code_Statement): Likewise.
2104 (gnat_expand_stmt, case LABEL_STMT): Don't look at
2105 LABEL_STMT_FIRST_IN_EH.
2106 (gnat_expand_stmt, case ASM_STMT): New case.
2107
2108 * utils2.c (build_unary_op): Properly set TREE_READONLY of
2109 UNCONSTRAINED_ARRAY_REF.
2110
2111 * utils.c (poplevel): Temporarily push/pop GC context around inline
2112 function expansion.
2113
2114 * decl.c (maybe_variable): Properly set TREE_READONLY of
2115 UNCONSTRAINED_ARRAY_REF.
2116 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
2117
2118 * ada-tree.def: (ASM_STMT): New.
2119
2120 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
2121 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
2122 ASM_STMT_INPUT): New.
2123 (ASM_STMT_CLOBBER): Likewise.
2124
21252004-04-19 Thomas Quinot <quinot@act-europe.fr>
2126
2127 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
2128 general rcheck mechanism to raise Program_Error for E.4(18), instead
2129 of a custom raiser in System.Partition_Interface.
2130 Part of general cleanup work before PolyORB integration.
2131
2132 * snames.ads, snames.adb: Add new runtime library entities and names
2133 for PolyORB DSA.
2134
2135 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
2136 exp_dist.
2137 (Build_Subprogram_Id): New subprogram provided by exp_dist
2138 Code reorganisation in preparation for PolyORB integration.
2139
2140 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
2141 exp_dist.
2142 (Build_Subprogram_Id): New subprogram provided by exp_dist
2143
2144 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
2145 actual parameter types for call to dereference of an
2146 access-to-subprogram type.
2147
2148 * rtsfind.ads: Add new runtime library entities and names for PolyORB
2149 DSA.
2150
2151 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
2152 instead, which has the same behaviour here since we never pass it a
2153 NULL pointer.
2154
2155 * link.c (run_path_option, Solaris case): Use -Wl, as for other
2156 platforms.
2157
2158 * Makefile.in: adjust object file lists for gnatlink and gnatmake
2159 to account for new dependency upon Interfaces.C.Strings + link.o
2160 For x86 FreeBSD, use 86numaux.
2161
2162 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
2163 from Mlib.Tgt to Mlib.
2164
2165 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
2166 target-independent.
2167
2168 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
2169 target-specific versions of this subprogram, now implemented as a
2170 target-independent function in Mlib.
2171
2172 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
2173 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
2174 (Linker_Library_Path_Option): Remove target-specific versions of this
2175 subprogram, now implemented as a target-independent function in Mlib.
2176
2177 * atree.adb: (Allocate_Initialize_Node): New subprogram.
2178 Factors out node table slots allocation.
2179 (Fix_Parents): New subprogram.
2180 Encapsulate the pattern of fixing up parent pointers for syntactic
2181 children of a rewritten node.
2182 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
2183 (Rewrite): Use New_Copy when creating saved copy of original node.
2184 (Replace): Use Copy_Node to copy nodes.
2185
21862004-04-19 Javier Miranda <miranda@gnat.com>
2187
2188 * sprint.adb (Sprint_Node_Actual): Give support to the new
2189 Access_To_Subprogram node available in Access_Definition nodes. In
2190 addition, give support to the AI-231 node fields: null-exclusion,
2191 all-present, constant-present.
2192
2193 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
2194
90afe2c9 2195 * sinfo.ads, sinfo.adb:
7324bf49
AC
2196 New field Access_To_Subprogram_Definition in Access_Definition nodes
2197
2198 * sem_ch6.adb (Process_Formals): Move here the code that creates and
2199 decorates internal subtype declaration corresponding to the
2200 null-excluding formal. This code was previously in Set_Actual_Subtypes.
2201 In addition, carry out some code cleanup on this code. In case of
2202 access to protected subprogram call
2203 Replace_Anonymous_Access_To_Protected_Subprogram.
2204 (Set_Actual_Subtypes): Code cleanup.
2205
2206 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
2207 Find_Type in case of anonymous access renamings. Add warning in case of
2208 null-excluding attribute used in anonymous access renaming.
2209
2210 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
2211 subprogram
2212
2213 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
2214 subprogram.
2215 (Access_Definition): In case of anonymous access to subprograms call
2216 the corresponding semantic routine to decorate the node.
2217 (Access_Subprogram_Declaration): Addition of some comments indicating
2218 some code that probably should be added here. Detected by comparison
2219 with the access_definition subprogram.
2220 (Analyze_Component_Declaration): In case of access to protected
2221 subprogram call Replace_Anonymous_Access_To_Protected.
2222 (Array_Type_Declaration): In case of access to protected subprogram call
2223 Replace_Anonymous_Access_To_Protected_Subprogram.
2224 (Process_Discriminants): In case of access to protected subprogram call
2225 Replace_Anonymous_Access_To_Protected_Subprogram.
2226
2227 * par.adb (P_Access_Definition): New formal that indicates if the
2228 null-exclusion part was present.
2229 (P_Access_Type_Definition): New formal that indicates if the caller has
2230 already parsed the null-excluding part.
2231
2232 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
2233 (P_Identifier_Declarations): Code cleanup and give support to renamings
2234 of anonymous access to subprogram types.
2235 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
2236 (P_Array_Type_Definition): Give support to AI-254.
2237 (P_Component_Items): Give support to AI-254.
2238 (P_Access_Definition): New formal that indicates if the header was
2239 already parsed by the caller.
2240 (P_Access_Type_Definition): New formal that indicates if the caller has
2241 already parsed the null-excluding part.
2242
2243 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
2244 call to P_Access_Definition.
2245
22462004-04-19 Geert Bosch <bosch@gnat.com>
2247
2248 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
2249 the delicate semantics of floating-point to integer conversion.
2250 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
2251
2252 * eval_fat.adb (Machine_Mantissa): Moved to spec.
2253 (Machine_Radix): New function.
2254
2255 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
2256 conversion checks.
2257 (Machine_Radix): New function also for use in conversion checks.
2258
22592004-04-19 Ed Schonberg <schonberg@gnat.com>
2260
2261 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
2262
2263 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
2264 to decorate the access-to-protected subprogram and the equivalent type.
2265
2266 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
2267 to anonymous access to subprogram types.
2268
2269 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
2270 constant-folding, for legality checks in contexts that require an RM
2271 static expression.
2272
2273 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
2274 temporary but stack checking is not enabled, increment serial number
2275 to so that symbol generation is consistent with and without stack
2276 checking.
2277
2278 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
2279 independent on whether stack checking is enabled, caller must check
2280 the corresponding flag.
2281
2282 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
2283 range checks.
2284 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
2285 parent if it has discriminants.
2286 (Build_Derived_Private_Type): Constructed full view does
2287 not come from source.
2288 (Process_Discriminants): Default discriminants on a tagged type are
2289 legal if this is the internal completion of a private untagged
2290 derivation.
2291
2292 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
2293 no constraint checks, because it corresponds to an existing object.
2294
2295 * sem_prag.adb (Process_Convention): Pragma applies
2296 only to subprograms in the same declarative part, i.e. the same unit,
2297 not the same scope.
2298
2299 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
2300 ignore type mismatch on a numeric conversion if expression comes from
2301 expansion.
2302
23032004-04-19 Sergey Rybin <rybin@act-europe.fr>
2304
2305 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
2306 Homonym_Number parameter, add processing for Source_Location parameter
2307 corresponding.
2308 (Check_Eliminated): Remove the check for homonym numbers, add the check
2309 for source location traces.
2310
2311 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
2312 with Arg_Source_Location corresponding to the changes in the format of
2313 the pragma.
2314
2315 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
2316 Eliminate pragma corresponding to the changes in the format of the
2317 pragma: Homonym_Number is replaced with Source_Location, two ways of
2318 distinguishing homonyms are mutially-exclusive.
2319
23202004-04-19 Joel Brobecker <brobecker@gnat.com>
2321
2322 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
2323
2324 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
2325 No_Dollar_In_Label, no longer necessary, as it is always True.
2326 (Strip_Suffixes): Likewise.
2327
23282004-04-19 Gary Dismukes <dismukes@gnat.com>
2329
2330 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
2331 modulus for compatibility with size clause on targets with 16-bit
2332 Integer.
2333
2334 * layout.adb (Discrimify): In the case of private types, set Vtyp to
2335 full type to fix type mismatches on calls to size functions for
2336 discriminant-dependent array components.
2337
23382004-04-19 Jerome Guitton <guitton@act-europe.fr>
2339
2340 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
2341 lib.
2342
23432004-04-19 Pascal Obry <obry@gnat.com>
2344
2345 * mdll-utl.adb (Locate): New version is idempotent.
2346
23472004-04-17 Laurent Guerby <laurent@guerby.net>
fa795c69
LG
2348
2349 PR ada/14988 (partial)
2350 * impunit.adb: Fix typo.
90afe2c9 2351
cce0244b
NN
23522004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
2353
2354 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
2355 and install-rts-cert targets. Remove all gnatlib and gnattools
2356 targets and all other rts-* targets (moved to libada). Remove (now)
2357 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
2358 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
2359
af152989
AC
23602004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2361
2362 * trans.c (tree_transform): Shortcut returning error_mark_node for
2363 statements in annotate_only_mode.
2364 (tree_transform, case N_Label, case N_Return_Statement,
2365 N_Goto_Statement): Make statement tree instead of generating code.
2366 (tree_transform, case N_Assignment_Statement): No longer check
2367 type_annotate_only.
2368 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
2369 RETURN_STMT): New.
2370 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
2371 New fcns.
2372 (gnat_to_gnu): Collect any RTL generated and deal with it.
2373 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
2374 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
2375 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
2376
2377 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
2378
2379 * ada-tree.def (EXPR_STMT): Fix typo in name.
2380 (BLOCK_STMT, IF_STMT): New nodes.
2381
2382 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
2383 LABEL_STMT_FIRST_IN_EH): New macros.
2384 (RETURN_STMT_EXPR): Likewise.
2385
2386 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
2387 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
2388
23892004-04-08 Thomas Quinot <quinot@act-europe.fr>
2390
2391 * atree.ads: Correct documentation on extended nodes.
2392
2393 * link.c: Set run_path_option for FreeBSD.
2394
23952004-04-08 Vincent Celier <celier@gnat.com>
2396
2397 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
2398 one of the ALI file, do not link with DEC lib.
2399
2400 * par.adb Remove the last two characters ("%s" or "%b") when checking
2401 if a language defined unit may be recompiled.
2402
24032004-04-08 Ed Schonberg <schonberg@gnat.com>
2404
2405 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
2406 removal of abstract operation leaves no possible interpretation for
2407 expression.
2408
2409 * sem_eval.adb (Eval_Qualified_Expression): Use
2410 Set_Raises_Constraint_Error on node when needed, so that it does not
2411 get optimized away by subsequent optimizations.
2412
2413 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
2414 operands even when they are not wrapped in a type conversion.
2415
24162004-04-08 Olivier Hainque <hainque@act-europe.fr>
2417
2418 * sem_prag.adb (Set_Exported): Warn about making static as result of
2419 export only when the export is coming from source. This may be not
2420 be true e.g. on VMS where we expand export pragmas for exception codes
2421 together with imported or exported exceptions, and we don't want the
2422 user to be warned about something he didn't write.
2423
24242004-04-08 Thomas Quinot <quinot@act-europe.fr>
2425
2426 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
2427 duplication between normal entities and those declared as renamings.
2428 No functional change.
2429
90afe2c9 2430 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
af152989
AC
2431 inline functions returning an unconstrained result.
2432
24332004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
2434
2435 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
2436 conform to what other front-ends do.
2437
24382004-04-08 Doug Rupp <rupp@gnat.com>
2439
2440 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
2441 libraries.
2442
3984e89a
AC
24432004-04-06 Pascal Obry <obry@gnat.com>
2444
2445 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
2446
2447 * osint.adb (Program_Name): Do not look past a directory separator.
2448
24492004-04-06 Thomas Quinot <quinot@act-europe.fr>
2450
2451 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
2452
2453 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
2454 requirement for preserving a copy of the original assignment node.
2455
2456 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
2457
24582004-04-06 Olivier Hainque <hainque@act-europe.fr>
2459
2460 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
2461 when supported.
2462
24632004-04-06 Ed Schonberg <schonberg@gnat.com>
2464
2465 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
2466 operator calls in functional notation, and apply
2467 Universal_Interpretation to operands, not to their type.
2468
24692004-04-06 Robert Dewar <dewar@gnat.com>
2470
2471 * 5wdirval.adb: Minor reformatting
2472
24732004-04-06 Ed Falis <falis@gnat.com>
2474
2475 * gnat_rm.texi: Improve a reference to the GCC manual
2476
30c20106
AC
24772004-04-05 Vincent Celier <celier@gnat.com>
2478
2479 * adaint.h, adaint.c: Add function __gnat_named_file_length
2480
2481 * impunit.adb: Add Ada.Directories to the list
2482
2483 * Makefile.in: Add VMS and Windows versions of
2484 Ada.Directories.Validity package body.
2485
2486 * Makefile.rtl: Add a-direct and a-dirval
2487
2488 * mlib-tgt.ads: Minor comment update.
2489
2490 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
2491 a-direct.ads, a-direct.adb: New files.
2492
24932004-04-05 Vincent Celier <celier@gnat.com>
2494
2495 PR ada/13620
2496 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
2497 just to the compiler.
2498
24992004-04-05 Robert Dewar <dewar@gnat.com>
2500
2501 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
2502 returned string is 1.
2503
2504 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
2505
2506 * eval_fat.ads: Minor reformatting
2507
2508 * g-curexc.ads: Document that lower bound of returned string values
2509 is always one.
2510
2511 * gnatlink.adb: Add ??? comment for previous change
2512 (need to document why this is VMS specific)
2513
2514 * s-stoele.ads: Minor reformatting
2515
2516 * tbuild.ads: Minor reformatting throughout (new function specs)
2517
2518 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
2519 after WITH.
2520
2521 * scng.adb: Minor reformatting
2522
25232004-04-05 Geert Bosch <bosch@gnat.com>
2524
2525 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
2526 (Leading_Part): Still perform truncation to machine number if the
2527 specified radix_digits is greater or equal to machine_mantissa.
2528
25292004-04-05 Javier Miranda <miranda@gnat.com>
2530
2531 * par-ch3.adb: Complete documentation of previous change
2532 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
2533 (aliased must appear before constant).
2534
2535 * par-ch4.adb: Complete documentation of previous change.
2536
2537 * par-ch6.adb: Complete documentation of previous change.
2538
2539 * sinfo.ads: Fix typo in commment.
2540
25412004-04-05 Ed Schonberg <schonberg@gnat.com>
2542
2543 * sem_ch3.adb (Inherit_Components): If derived type is private and has
2544 stored discriminants, use its discriminants to constrain parent type,
2545 as is done for non-private derived record types.
2546
2547 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
2548 Ada 2005 AI-310: an abstract non-dispatching operation is not a
2549 candidate interpretation in an overloaded call.
2550
2551 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
2552 expression is Null and target type is not an access type (e.g. a
2553 non-private address type).
2554
25552004-04-05 Thomas Quinot <quinot@act-europe.fr>
2556
2557 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
2558 statement whose right-hand side is an inlined call, save a copy of the
2559 original assignment subtree to preserve enough consistency for
2560 Analyze_Assignment to proceed.
2561
2562 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
2563 complete assignment subtree which is now unnecessary, as the expansion
2564 of inlined call has been improved to preserve a consistent assignment
2565 tree. Note_Possible_Modification must be called only
2566 after checks have been applied, or else unnecessary checks will
2567 be generated.
2568
2569 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
2570 of explicit dereferences that do not Come_From_Source:
2571 - be selective on cases where we must go back to the dereferenced
2572 pointer (an assignment to an implicit dereference must not be
2573 recorded as modifying the pointer);
2574 - do not rely on Original_Node being present (Analyze_Assignment
2575 calls Note_Possible_Modification on a copied tree).
2576
2577 * sem_warn.adb (Check_References): When an unset reference to a pointer
2578 that is never assigned is encountered, prefer '<pointer> may be null'
2579 warning over '<pointer> is never assigned a value'.
2580
25812004-04-05 Ramon Fernandez <fernandez@gnat.com>
2582
2583 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
2584 the ABI.
2585
25862004-04-05 Olivier Hainque <hainque@act-europe.fr>
2587
2588 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
2589 libexc. We currently don't reference anything in this library and
2590 linking it in triggers linker warnings we don't want to see.
2591
2592 * init.c: Update comments.
2593
4f976745
RK
25942004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2595
2596 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
2597 * utils.c (create_field_decl): Likewise.
2598 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
2599
6da7d579
AC
26002004-04-02 Arnaud Charlet <charlet@act-europe.fr>
2601
2602 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
2603 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
2604 Add info directory entry and category.
2605
18c6ada9
JH
26062004-04-02 Jan Hubicka <jh@suse.cz>
2607
2608 * utils.c: Include function.h
2609 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
2610
7cd4527e
AC
26112004-04-01 Arnaud Charlet <charlet@act-europe.fr>
2612
2613 PR ada/14150
2614 * Make-lang.in: Clean up generation of documentation
2615
2616 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
2617
2618 * xgnatug.adb: Removed, replaced by xgnatugn.adb
2619
2620 * xgnatugn.adb: Replaces xgnatug.adb
2621
2622 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
2623
2624 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
2625
2626 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
2627 gnat_ug_wnt.texi: Removed.
2628
0c250f07
AC
26292004-04-01 Arnaud Charlet <charlet@act-europe.fr>
2630
2631 * utils2.c: Update copyright notice.
2632
6b6fcd3e
AC
26332004-04-01 Robert Dewar <dewar@gnat.com>
2634
2635 * checks.adb: Minor reformatting throughout
2636 Note that prev checkin added RM reference to alignment warning
2637
26382004-04-01 Ed Schonberg <schonberg@gnat.com>
2639
2640 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
2641 non-static when building aggregate for bit-packed array.
2642
2643 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
2644 function call that is itself the actual in a procedure call, build
2645 temporary for it.
2646
2647 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
2648 a string literal, create a temporary for it, constant folding only
2649 handles scalars here.
2650
26512004-04-01 Vincent Celier <celier@gnat.com>
2652
2653 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
2654 Error_Msg_SP): New empty procedures to instantiate the Scanner.
2655 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
2656 tokens.
2657 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
2658 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
2659 and get the checksum.
2660
2661 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
2662 already in the Q.
2663 Increase the Marking_Label at the end of the Multiple_Main_Loop,
2664 instead of at the beginning.
2665
2666 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
2667 directly.
2668 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
2669 on VMS.
2670
2671 * osint.ads (Multi_Unit_Index_Character): New Character global variable
2672
2673 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
2674 not '~' directly.
2675
2676 * par.adb: Remove test on file name to detect language defined units.
2677 Add test on unit name, after parsing, to detect language defined units
2678 that are not compiled with -gnatg (except System.RPC and its children)
2679
2680 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
2681 following units without style checking.
2682
2683 * switch-c.adb: Change -gnatC to -gnateI
2684
2685 * usage.adb: Document new switch -gnateInnn
2686
2687 * scng.adb (Accumulate_Token_Checksum): New procedure
2688 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
2689 word or literal number.
2690 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
2691 numbers.
2692
26932004-04-01 Thomas Quinot <quinot@act-europe.fr>
2694
2695 * a-tasatt.adb,
2696 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
2697 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
2698 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
2699 5vtpopde.adb: Add missing 'constant' keywords.
2700
27012004-04-01 Javier Miranda <miranda@gnat.com>
2702
2703 * par-ch4.adb: (P_Allocator): Code cleanup
2704
2705 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
2706 attribute.
2707
2708 * sinfo.ads: Complete documentation of previous change
2709
27102004-04-01 Pascal Obry <obry@gnat.com>
2711
2712 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
2713 only on VMS. This special handling was done because an old GNU/ld bug
2714 on Windows which has been fixed.
2715
27162004-04-01 GNAT Script <nobody@gnat.com>
2717
2718 * Make-lang.in: Makefile automatically updated
2719
8df83eae
RK
27202004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2721
2722 * decl.c (gnat_to_gnu_entity, make_type_from_size):
2723 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
2724 * trans.c (tree_transform, convert_with_check): Likewise.
2725 * utils.c (gnat_signed_or_unsigned_type): Likewise.
2726 (build_vms_descriptor, unchecked_convert): Likewise.
2727 * utils2.c (nonbinary_modular_operation): Likewise.
2728
2820d220
AC
27292004-03-29 Javier Miranda <miranda@gnat.com>
2730
2731 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
2732 (Install_Null_Excluding_Check): Local subprogram that determines whether
2733 an access node requires a runtime access check and if so inserts the
2734 appropriate run-time check.
2735 (Apply_Access_Check): Call Install_Null_Excluding check if required
2736 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
2737
2738 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
2739
2740 * einfo.ads: Fix typo in comment
2741
2742 * exp_ch3.adb (Build_Assignment): Generate conversion to the
2743 null-excluding type to force the corresponding run-time check.
2744 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
2745 type to force the corresponding run-time check.
2746
2747 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
2748 the null-excluding type to force the corresponding run-time check.
2749
2750 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
2751 case of access types unless they have the null-excluding attribute.
2752
2753 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
2754 part.
2755
2756 * exp_util.ads: Fix typo in comment
2757
2758 * par.adb (P_Null_Exclusion): New subprogram
2759 (P_Subtype_Indication): New formal that indicates if the null-excluding
2760 part has been scanned-out and it was present
2761
2762 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
2763
2764 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
2765 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
2766 type to force the corresponding run-time check
2767 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
2768 components
2769 (Resolve_Array_Aggregate): Carry out some static checks
2770 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
2771
2772 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
2773 attribute must be set only if specified by means of the null-excluding
2774 part. In addition, we must also propagate the access-constant attribute
2775 if present.
2776 (Access_Subprogram_Declaration, Access_Type_Declaration,
2777 Analyze_Component_Declaration, Analyze_Object_Declaration,
2778 Array_Type_Declaration, Process_Discriminants,
2779 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
2780 and carry out some static checks.
2781 (Build_Derived_Access_Type): Set the null-excluding attribute
2782 (Derived_Type_Declaration, Process_Subtype): Carry out some static
2783 checks.
2784
2785 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
2786
2787 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
2788
2789 * sem_ch6.adb (Process_Formals): Carry out some static checks.
2790 (Set_Actual_Subtypes): Generate null-excluding subtype if the
2791 null-excluding part was present; it is not required to be done here in
2792 case of anonymous access types.
2793 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
2794 value.
2795
2796 * sem_res.adb (Resolve_Actuals): Carry out some static check
2797 (Resolve_Null): Allow null in anonymous access
2798
2799 * sinfo.adb: New subprogram Null_Exclusion_Present
2800 All_Present and Constant_Present available on access_definition nodes
2801
2802 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
2803 object_declaration, derived_type_definition, component_definition,
2804 discriminant_specification, access_to_object_definition,
2805 access_function_definition, allocator, access_procedure_definition,
2806 access_definition, parameter_specification, All_Present and
2807 Constant_Present flags available on access_definition nodes.
2808
28092004-03-29 Robert Dewar <dewar@gnat.com>
2810
2811 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
2812 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
2813 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
2814 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
2815 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
2816 sem_prag.adb: Updates to handle multiple units/file
2817
2818 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
2819
2820 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
2821 sem_util.adb: Minor reformatting
2822
2823 * sem_ch12.adb: Add comment for previous change
2824
28252004-03-29 Laurent Pautet <pautet@act-europe.fr>
2826
2827 * osint.adb (Executable_Prefix): Set Exec_Name to the current
2828 executable name when not initialized. Otherwise, use its current value.
2829
2830 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
2831 initialize it to another executable name than the current one. This
2832 allows to configure paths for an executable name (gnatmake) different
2833 from the current one (gnatdist).
2834
28352004-03-29 Ed Schonberg <schonberg@gnat.com>
2836
2837 * exp_ch6.adb (Expand_Call): A call to a function declared in the
2838 current unit cannot be inlined if it appears in the body of a withed
2839 unit, to avoid order of elaboration problems in gigi.
2840
2841 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
2842 information for protected (wrapper) operation as well, to simplify gdb
2843 use.
2844
2845 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
2846 protected body, indicate that the entity for the generated spec comes
2847 from source, to ensure that references are properly generated for it.
2848 (Build_Body_To_Inline): Do not inline a function that returns a
2849 controlled type.
2850
2851 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
2852 apply convention to homonyms that are declared explicitly.
2853
2854 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
2855 that renames an equality operator and the operands are overloaded,
2856 resolve them with the declared formal types, before rewriting as an
2857 operator.
2858
28592004-03-29 GNAT Script <nobody@gnat.com>
2860
2861 * Make-lang.in: Makefile automatically updated
2862
6d11af89
AC
28632004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
2864
2865 * memtrack.adb: Log realloc calls, which are treated as free followed
2866 by alloc.
2867
28682004-03-25 Vincent Celier <celier@gnat.com>
2869
2870 * prj-makr.adb (Process_Directories): Detect when a file contains
2871 several units. Do not include such files in the config pragmas or
2872 in the naming scheme.
2873
2874 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
2875 Resolve links only when not in Trusted_Mode.
2876 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
2877 Do not resolve links for the display names.
2878
2879 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
2880 resolve links when computing the display names.
2881
28822004-03-25 Thomas Quinot <quinot@act-europe.fr>
2883
2884 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
2885 attribute reference does not denote a subtype, it can be any
2886 expression that has a classwide type, potentially after an implicit
2887 dereference. In particular, the prefix can be a view conversion for
2888 a classwide type (for which Is_Object_Reference holds), but it can
2889 also be a value conversion for an access-to-classwide type. In the
2890 latter case, there is an implicit dereference, and the original node
2891 for the prefix does not verify Is_Object_Reference.
2892
2893 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
2894 conversion of a discriminant-dependent component of a mutable object
2895 is one itself.
2896
28972004-03-25 Ed Schonberg <schonberg@gnat.com>
2898
2899 * freeze.adb (Freeze_Entity): When an inherited subprogram is
2900 inherited, has convention C, and has unconstrained array parameters,
2901 place the corresponding warning on the derived type declaration rather
2902 than the original subprogram.
2903
2904 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
2905 indication on renaming declaration, if formal has a box and actual
2906 is absent.
2907
2908 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
2909 determine whether to generate an implicit or explicit reference to
2910 the renamed entity.
2911
2912 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
2913 subprogram renaming comes from a defaulted formal subprogram in an
2914 instance.
2915
29162004-03-25 Gary Dismukes <dismukes@gnat.com>
2917
2918 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
2919 value expressions to ensure that calls within a component definition
2920 will be checked (since those are evaluated during the record type's
2921 elaboration).
2922
29232004-03-25 Arnaud Charlet <charlet@act-europe.fr>
2924
2925 * s-tpobop.adb: Code clean up:
2926 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
2927 code.
2928 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
2929
29302004-03-25 Jose Ruiz <ruiz@act-europe.fr>
2931
2932 * Makefile.in: Clean up in the ravenscar run time.
2933
22421b79
RK
29342004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2935
2936 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
2937 of No_Strict_Aliasing to build_pointer_type_for_mode.
2938 * utils.c (update_pointer_to): Walk pointer and ref chains.
2939
24105bab
AC
29402004-03-22 Cyrille Comar <comar@act-europe.fr>
2941
2942 * ali.ads: Fix Comment about Dynamic_Elab.
2943
2944 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
2945 Has_RACW, Is_Generic, etc.)
2946 (Output_Object, Gnatls): Take into account ALI files not attached to
2947 an object.
2948
29492004-03-22 Vincent Celier <celier@gnat.com>
2950
2951 * gprep.adb: Change all String_Access to Name_Id
2952 (Is_ASCII_Letter): new function
2953 (Double_File_Name_Buffer): New procedure
2954 (Preprocess_Infile_Name): New procedure
2955 (Process_Files): New procedure
2956 (Gnatprep): Check if output and input are existing directories.
2957 Call Process_Files to do the real job.
2958
29592004-03-22 Robert Dewar <dewar@gnat.com>
2960
2961 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
2962 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
2963
29642004-03-22 Sergey Rybin <rybin@act-europe.fr>
2965
2966 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
2967 case when the source contains only comments.
2968
29692004-03-22 Ed Schonberg <schonberg@gnat.com>
2970
2971 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
2972 declaration for a child subprogram body that acts as a spec, indicate
2973 that the entity in the declaration needs debugging information.
2974
2975 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
2976 full view if the subtype is created for a constrained record component;
2977 gigi has enough information to construct the record, and there is no
2978 place in the tree for the declaration.
2979
2980 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
2981 serial number for the dummy body that is built for analysis, to avoid
2982 inconsistencies in the generation of internal names when compiling
2983 with -gnatN.
2984
29852004-03-22 Thomas Quinot <quinot@act-europe.fr>
2986
2987 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
2988 object.
2989
29902004-03-22 GNAT Script <nobody@gnat.com>
2991
2992 * Make-lang.in: Makefile automatically updated
2993
6fce44af
RK
29942004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2995
2996 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
2997 * trans.c (tree_transform, emit_index_check): Likewise.
2998 * utils.c (build_template): Likewise.
2999 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
3000 (maybe_unconstrained_array, unchecked_convert): Likewise.
3001 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
3002 (build_unary_op): Likewise.
3003 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
3004 (fill_vms_descriptor): Likewise.
3005 (build_call_alloc_dealloc): Likewise.
3006 ALIGN is unsigned.
3007 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
3008
802f6d4b
JM
30092004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
3010
3011 PR other/14630
3012 * gnat_ug.texi: Add info directory category and entry.
3013 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
3014 gnat_ug_wnt.texi: Regenerate.
3015
30f3b32b
AC
30162004-03-19 Arnaud Charlet <charlet@act-europe.fr>
3017
3018 * ada-tree.h: Update copyright notice.
3019 Minor reformatting.
3020
30212004-03-19 Olivier Hainque <hainque@act-europe.fr>
3022
3023 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
3024 as regular exception objects and not as mere integers representing the
3025 condition code. The latter approach required some dynamics to mask off
3026 severity bits, which did not fit well into the GCC table based model.
3027 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
3028 exception data objects. We don't it and it would conflict with the other
3029 external symbol we have to generate for such exceptions.
3030
3031 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
3032 the special code for VMS exceptions, since these are now represented
3033 as regular exceptions objects.
3034
7548281d
RK
30352004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3036
3037 * decl.c (debug_no_type_hash): Remove.
3038 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
3039 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
3040
7324bf49 30412004-03-19 Laurent Guerby <laurent@guerby.net>
dbee7ab9 3042
90afe2c9 3043 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
dbee7ab9 3044 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
90afe2c9 3045
eb34af89
RK
30462004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3047
3048 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
3049 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
3050 (TYPE_RM_SIZE_INT): Directly use type.values.
3051 (TREE_LOOP_ID): Clean up check.
3052 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
3053 TYPE_VALUES, not TYPE_FIELDS.
3054 * trans.c (convert_with_check): Delay access of bounds of basetype
3055 until sure is numeric.
3056
a336eaca
AC
30572004-03-18 Arnaud Charlet <charlet@act-europe.fr>
3058
3059 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
3060
3061 Code clean up:
3062 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
3063 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
3064 Specific.Set instead of direct call to e.g pthread_setspecific.
3065
30662004-03-18 Thomas Quinot <quinot@act-europe.fr>
3067
3068 * adaint.c: Update comments.
3069
3070 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
3071 GNATLIB_SHARED for FreeBSD.
3072
30732004-03-18 Jose Ruiz <ruiz@act-europe.fr>
3074
3075 * init.c [VxWorks]: Do not fix the stack size for the environment task.
3076 When needed (stack checking) the stack size is retrieved
3077 from the VxWorks kernel.
3078
3079 * Makefile.in: Flag -nostdinc is required when building the run time
3080 for avoiding looking for files in the base compiler.
3081 Add the VxWorks specific version of the package body for
3082 System.Stack_checking.Operations (5zstchop.adb).
3083
3084 * Make-lang.in: Add the object file for
3085 System.Stack_Checking.Operations.
3086
3087 * Makefile.rtl: Add object file for the package
3088 System.Stack_Checking.Operations.
3089
3090 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
3091
3092 * s-stache.ads, s-stache.adb: Move the operations related to stack
3093 checking from this package to package System.Stack_Checking.Operations.
3094 This way, stack checking operations are only linked in the final
3095 executable when using the -fstack-check flag.
3096
30972004-03-18 Doug Rupp <rupp@gnat.com>
3098
3099 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
3100 Reorganize ifeq's.
3101
3102 * 5qsystem.ads, 5xcrtl.ads: New files.
3103
31042004-03-18 Vincent Celier <celier@gnat.com>
3105
3106 * prj.adb (Reset): Reset hash table Files_Htable
3107
3108 * prj-env.adb (Source_Paths, Object_Paths): New tables.
3109 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
3110 the procedures Add_To_Path_File.
3111 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
3112 making sure that each directory is present only once and, for object
3113 dirs, when a directory already present is added, the duplicate is
3114 removed and the directory is always put as the last in the table.
3115 Write the path files at the end of these accumulations.
3116
3117 * prj-nmsc.adb (Record_Source): Add source file name in hash table
3118 Files_Htable for all sources.
3119
3120 * prj-proc.adb (Process): Remove restrictions between not directly
3121 related extending projects.
3122
31232004-03-18 Emmanuel Briot <briot@act-europe.fr>
3124
3125 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
3126 (Find_Sources): Minor speed optimization.
3127
3128 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
3129 parameter Trusted_Mode.
3130
31312004-03-18 Sergey Rybin <rybin@act-europe.fr>
3132
3133 * scn.adb (Determine_License): Take into account a degenerated case
3134 when the source contains only comments.
3135
31362004-03-18 Ed Schonberg <schonberg@gnat.com>
3137
3138 * sem_warn.adb (Check_References): For a warning on a selected
3139 component that does not come from source, locate an uninitialized
3140 component of the record type to produce a more precise error message.
3141
e6f69614
AC
31422004-03-15 Jerome Guitton <guitton@act-europe.fr>
3143
3144 * 3zsoccon.ads: Fix multicast options.
3145
3146 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
3147 in the spec.
3148
31492004-03-15 Robert Dewar <dewar@gnat.com>
3150
3151 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
3152 pragma used for a private type.
3153
3154 * lib-xref.adb (Generate_Reference): Do not generate warning if
3155 reference is in a different unit from the pragma Unreferenced.
3156
3157 * 5vtpopde.adb: Minor reformatting
3158 Fix casing of To_Task_ID
3159
3160 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
3161 flag if we have an unchecked conversion to an access type in the same
3162 unit.
3163
31642004-03-15 Geert Bosch <bosch@gnat.com>
3165
3166 * a-ngcoty.adb (Modulus): In alternate formula for large real or
3167 imaginary parts, use Double precision throughout.
3168
3169 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
3170 we want to be able to compile run-time with -gnata for testing, but
3171 this may also be instantiated in user code that is compiled with -gnata.
3172
31732004-03-15 Olivier Hainque <hainque@act-europe.fr>
3174
3175 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
3176 codes. Having a separate type for this is useful to enforce consistency
3177 throughout the various run-time units.
3178 (Exception_Data): Use Exception_Code for Import_Code.
3179
3180 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
3181 Natural and Integer in various places.
3182 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
3183 with the severity bits masked off.
3184 (Register_VMS_Exception): Handle the additional exception data pointer
3185 argument.
3186
3187 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
3188 component, now reflected by an exported accessor.
3189 (is_handled_by): New routine to compute whether the propagated
3190 occurrence matches some handler choice specification. Extracted out of
3191 get_action_description_for, and expanded to take care of the VMS
3192 specifities.
3193 (get_action_description_for): Use is_handled_by instead of an explicit
3194 complex condition to decide if the current choice at hand catches the
3195 propagated occurrence.
3196
3197 * raise.h (Exception_Code): New type for C.
3198
3199 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
3200 System.Standard_Library.Exception_Code, to allow references from the
3201 pragma import/export expander.
3202
3203 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
3204 New accessors to allow easy access to GNAT exception data
3205 characteristics.
3206 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
3207 redundant Handled_By_Others component, helper for the personality
3208 routine which will now be able to call the appropriate exception data
3209 accessor instead.
3210
3211 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
3212 component of Standard_Exception_Type to be the closest possible to
3213 Exception_Code in System.Standard_Library, that we cannot get at this
3214 point. Expand a ??? comment to notify that this type node should
3215 probably be rewritten later on.
3216
3217 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
3218 registration call to include a pointer to the exception object in the
3219 arguments.
3220
3221 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
3222 instead of int and explicit bitmasks.
3223
32242004-03-15 Vincent Celier <celier@gnat.com>
3225
3226 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
3227 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
3228
3229 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
3230 longer needed now that it is in the spec of
3231 System.Tasking.Task_Attributes.
3232
3233 * adaint.h, adaint.c: (__gnat_create_output_file): New function
3234
3235 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
3236
3237 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
3238
3239 * make.adb (Gnatmake): Do not check the executable suffix; it is being
3240 taken care of in Scan_Make_Arg.
3241 (Scan_Make_Arg): Add the executable suffix only if the argument
3242 following -o, in canonical case, does not end with the executable
3243 suffix. When in verbose mode and executable file name does not end
3244 with executable suffix, output the executable name, in canonical case.
3245
3246 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
3247 to avoid warnings when instantiating Ada.Task_Attributes.
3248 Minor reformating.
3249
3250 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
3251 in the correct order.
3252
3253 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
3254 redirect standard output and error to a file for the invocation of the
3255 compiler, then read the file.
3256
3257 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
3258 directory, instead of the Value.
3259 (Find_Source_Dirs): Remove useless code & comments.
3260
32612004-03-15 Ed Schonberg <schonberg@gnat.com>
3262
3263 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
3264 tagged type is inherited, and the parent operation is not frozen yet,
3265 force generation of a freeze node for the inherited operation, so the
3266 corresponding dispatch entry is properly initialized.
3267 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
3268 when looking for user-defined equality operation.
3269
3270 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
3271 boolean when locating primitive equality of tagged component.
3272
3273 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
3274 bit-aligned field and the right-hand side a string literal, introduce
3275 a temporary before expanding assignment into a loop.
3276
3277 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
3278 priority in full, to ensure that any expanded subepxressions of it are
3279 elaborated in the scope of the init_proc.
3280
3281 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
3282 after object declaration, skipping over code that may have been
3283 generated for validity checks.
3284
3285 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
3286 discriminants, ignore the known discriminants of its full view, if
3287 any, to check legality.
3288
3289 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
3290 component if type has unknown discriminants.
3291 (Analyze_Private_Extension_Declaration): Discriminant constraint is
3292 null if type has unknown discriminants.
3293
3294 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
3295 for end label when present.
3296
3297 * s-fileio.adb (Open): When called with a C_Stream, use given name for
3298 temporary file, rather than an empty string.
3299
33002004-03-15 Ed Falis <falis@gnat.com>
3301
3302 * s-thread.adb: Removed, no longer used.
3303
33042004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3305
3306 * decl.c (target.h): Now include.
3307 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
3308 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
3309 (validate_size): For POINTER_TYPE, get smallest size permitted on
3310 machine.
3311
3312 * fe.h: Sort Einfo decls and add Set_Mechanism.
3313
3314 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
3315 (ada/decl.o): Depends on target.h.
3316
3317 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
3318 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
3319
33202004-03-15 Thomas Quinot <quinot@act-europe.fr>
3321
3322 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
3323
3324 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
3325 Insert_Dereference_Action when rewriting an implicit dereference into
3326 an explicit one, this will be taken care of during expansion of the
3327 explicit dereference.
3328 (Expand_N_Slice): Same. Always do the rewriting, even for the case
3329 of non-packed slices, since the dereference action generated by
3330 expansion of the explicit dereference is needed in any case.
3331 (Expand_N_Selected_Component): When rewriting an implicit dereference,
3332 analyze and resolve the rewritten explicit dereference so it is seen
3333 by the expander.
3334 (Insert_Dereference_Action): This procedure is now called only for the
3335 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
3336 dereferences that do not come from source (including explicit
3337 dereferences resulting from rewriting implicit ones), but do not
3338 recursively insert a check for the dereference nodes contained within
3339 the check.
3340 (Insert_Dereference_Action): Clarify and correct comment.
3341
e4c9c075
PB
33422004-03-08 Paolo Bonzini <bonzini@gnu.org>
3343
3344 PR ada/14131
3345 Move language detection to the top level.
3346 * config-lang.in: Build by default.
3347
8a6a52dc
AC
33482004-03-05 Robert Dewar <dewar@gnat.com>
3349
3350 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
3351
3352 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
3353 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
90afe2c9 3354 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
8a6a52dc
AC
3355 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
3356 unchecked conversion to spec to avoid warnings.
3357
3358 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
3359 to Task_ID
3360
3361 * 7stpopsp.adb: Correct casing in To_Task_ID call
3362
3363 * a-strsea.ads, a-strsea.adb: Minor reformatting
3364
3365 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
3366
3367 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
3368 Adjust Max_Msg_Length to be clearly large enough.
3369
3370 * fe.h: Define In_Same_Source_Unit
3371
3372 * osint.adb: Add pragma Warnings Off to suppress warnings
3373 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
3374 aliasing warnings.
3375
3376 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
3377
3378 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
3379
3380 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
3381
3382 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
3383
3384 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
3385
3386 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
3387 node. We now do generate them for gcc back end.
3388
3389 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
3390 warning.
3391
3392 * sinput-c.adb: Fix bad name in header.
3393 Add pragma Warnings Off to suppress aliasing warning.
3394
3395 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
3396
3397 * snames.h, snames.ads, snames.adb: Add entry for pragma
3398 No_Strict_Aliasing.
3399
34002004-03-05 Vincent Celier <celier@gnat.com>
3401
3402 * prj-com.ads: Add hash table Files_Htable to check when a file name
3403 is already a source of another project.
3404
3405 * prj-nmsc.adb (Record_Source): Before recording a new source, check
3406 if its file name is not already a source of another project. Report an
3407 error if it is.
3408
3409 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
3410 source file name, call gnatpp with all the sources of the main project.
3411
3412 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
3413 of file names.
3414
3415 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
3416 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
3417 /RUNTIME_SYSTEM=, converted to --RTS=
3418 /NOTABS, converted to -notabs
3419
34202004-03-05 Pascal Obry <obry@gnat.com>
3421
3422 * make.adb: Minor reformatting.
3423
34242004-03-05 Ed Schonberg <schonberg@gnat.com>
3425
3426 Part of implemention of AI-262.
3427 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
3428
3429 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
3430 procedure.
3431
3432 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
3433 when component type is a partially constrained class-wide subtype.
3434 (Constrain_Discriminated_Type): If parent type has unknown
3435 discriminants, a constraint is illegal, even if full view has
3436 discriminants.
3437 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
3438 with unknown discriminants whose full view is a discriminated record.
3439
3440 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
3441 flag, to handle properly derivations of tagged types with unknown
3442 discriminants.
3443 (Analyze_Package_Spec, Analyze_Package_Body): Install
3444 Private_With_Clauses before analyzing private part or body.
3445
3446 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
3447 Has_Discriminants can be true for a given type (documentation).
3448
34492004-03-05 Arnaud Charlet <charlet@act-europe.fr>
3450
3451 * s-restri.ads: Fix license (GPL->GMGPL).
3452
3453 * s-tassta.adb: Minor reformatting.
3454
3455 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
3456 by calls to Exit_One_ATC_Level, since additional clean up is performed
3457 by this function.
3458
3459 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
3460 by calls to Exit_One_ATC_Level, since additional clean up is performed
3461 by this function.
3462
34632004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3464
3465 * trans.c: Reflect GCC changes to fix bootstrap problem.
3466 Add warning for suspicious aliasing unchecked conversion.
3467
34682004-03-05 GNAT Script <nobody@gnat.com>
3469
3470 * Make-lang.in: Makefile automatically updated
3471
555360a5
AC
34722004-03-02 Emmanuel Briot <briot@act-europe.fr>
3473
3474 * ali.adb (Read_Instantiation_Instance): Do not modify the
3475 current_file_num when reading information about instantiations, since
3476 this corrupts files in later references.
3477
34782004-03-02 Vincent Celier <celier@gnat.com>
3479
3480 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
3481 before checking if it is read-only.
3482
3483 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
3484 of SRC_DIRS and eliminate duplicates.
3485
3486 * gprcmd.adb: Replace command "path" with command "path_sep" to return
3487 the path separator.
3488 (Usage): Document path_sep
3489
3490 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
3491 C++ compiler. No need for a script.
3492 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
3493 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
3494 subst.
3495
3496 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
3497 where there are Ada sources.
3498 (Set_Ada_Paths): Only add to the include path the source dirs of project
3499 with Ada sources.
3500 (Add_To_Path): Add the Display_Values of the directories, not their
3501 Values.
3502
3503 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
3504 data.
3505
3506 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
3507 is not No_Name.
3508 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
3509 Value is canonicalized.
3510 (Language_Independent_Check): Do not copy Value to Display_Value when
3511 canonicalizing Value.
3512
3513 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
3514 path to find limited with cycles.
3515 (Parse_Single_Project): Use canonical cased path to find the end of a
3516 with cycle.
3517
35182004-03-02 Ed Schonberg <schonberg@gnat.com>
3519
3520 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
3521 and not a child unit.
3522
3523 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
3524 appear in a with_clause.
3525
3526 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
3527 only happen in type_annotate mode, do not try to elaborate it.
3528
3529 * exp_util.adb (Force_Evaluation): If expression is a selected
3530 component on the left of an assignment, use a renaming rather than a
3531 temporary to remove side effects.
3532
3533 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
3534 inlined instance body, which is analyzed before the end of the
3535 enclosing scope.
3536
35372004-03-02 Robert Dewar <dewar@gnat.com>
3538
3539 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
3540 sem_ch4.adb: Use new feature for substitution of keywords in VMS
3541
3542 * errout.ads, errout.adb: Implement new circuit for substitution of
3543 keywords in VMS.
3544
3545 * sem_case.adb (Analyze_Choices): Place message properly when case is
3546 a subtype reference rather than an explicit range.
3547
3548 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
3549
35502004-03-02 Doug Rupp <rupp@gnat.com>
3551
3552 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
3553
35542004-03-02 Thomas Quinot <quinot@act-europe.fr>
3555
3556 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
3557
35582004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3559
3560 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
3561 BLKmode bitfield.
3562
8a7988f5
AC
35632004-02-25 Robert Dewar <dewar@gnat.com>
3564
3565 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
3566 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
3567 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
3568 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
3569 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
3570 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
3571 the defining instance of the type to avoid aliasing problems.
3572 Fix copyright header. Fix bad comments in package header.
3573
3574 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
3575
35762004-02-25 Ed Schonberg <schonberg@gnat.com>
3577
3578 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
3579 rewritten as references when aliased through an address clause.
3580
3581 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
3582 whether call can be interpreted as an indirect call to the result of a
3583 parameterless function call returning an access subprogram.
3584
35852004-02-25 Arnaud Charlet <charlet@act-europe.fr>
3586
3587 Code clean up:
3588 * exp_ch7.adb (Make_Clean): Remove generation of calls to
3589 Unlock[_Entries], since this is now done by Service_Entries directly.
3590
3591 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
3592
3593 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
3594 Requeue_Call for better code readability. Change spec and update calls:
3595 PO_Service_Entries now unlock the PO on exit.
3596 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
3597 PO_Service_Entries.
3598
3599 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
3600
3601 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
3602
36032004-02-25 Sergey Rybin <rybin@act-europe.fr>
3604
3605 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
3606 protected subprogram call and analyzing the result of such expanding
3607 in case when the called protected subprogram is eliminated.
3608
3609 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
3610 names.
3611
36122004-02-25 Jerome Guitton <guitton@act-europe.fr>
3613
3614 * Makefile.in: Clean ups.
3615
6871ba5f
AC
36162004-02-23 Ed Schonberg <schonberg@gnat.com>
3617
3618 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
3619 protected operations if original subprogram is flagged as eliminated.
3620 (Expand_N_Subprogram_Body): For a protected operation, create
3621 discriminals for next operation before checking whether the operation
3622 is eliminated.
3623
3624 * exp_ch9.adb (Expand_N_Protected_Body,
3625 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
3626 for internal protected operations if the original subprogram is
3627 eliminated.
3628
3629 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
3630 declared in a single protected object.
3631
36322004-02-23 Vincent Celier <celier@gnat.com>
3633
3634 * prj-attr.adb: Make attribute Builder'Executable an associative array,
3635 case insensitive if file names are case insensitive, instead of a
3636 standard associative array.
3637
3638 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
3639 them as case insensitive on platforms where the file names are case
3640 sensitive.
3641
3642 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
3643 project file has already been parsed that canonical path are compared.
3644
36452004-02-23 Robert Dewar <dewar@gnat.com>
3646
3647 * sinput-c.ads: Correct bad unit title in header
3648
3649 * freeze.adb: Minor reformatting
3650
36512004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3652
3653 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
3654 nonaddressable COMPONENT_REF that is removing padding that we are
3655 taking the address of, take the address of the padded record instead
3656 if item is variable size.
3657
6e059adb
AC
36582004-02-20 Robert Dewar <dewar@gnat.com>
3659
3660 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
3661
36622004-02-20 Ed Schonberg <schonberg@gnat.com>
3663
3664 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
3665 itype references for the constrained designated type of a component
3666 whose base type is already frozen.
3667
36682004-02-20 Arnaud Charlet <charlet@act-europe.fr>
3669
3670 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
3671 avoid GCC warnings.
3672
36732004-02-20 Sergey Rybin <rybin@act-europe.fr>
3674
3675 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
3676 identifier for a phantom package that rewrites the formal package
3677 declaration with a box. The Add semantic decorations for the defining
3678 identifier from the original node (that represents the formal package).
3679
88e3a2a3
MK
36802004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
3681
3682 * Make-lang.in (ada/stamp-sdefault): Use the top level
3683 move-if-change.
3684
4221057e
RH
36852004-02-19 Richard Henderson <rth@redhat.com>
3686
3687 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
3688
5c1c8a03
AC
36892004-02-18 Emmanuel Briot <briot@act-europe.fr>
3690
3691 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
3692 Scan_ALI can be used for multiple ALI files without reinitializing
3693 between calls.
3694
36952004-02-18 Robert Dewar <dewar@gnat.com>
3696
3697 * debug.adb: Minor reformatting.
3698
36992004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3700
3701 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
3702 to zero if there is an address clause.
3703
37042004-02-18 Thomas Quinot <quinot@act-europe.fr>
3705
3706 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
3707
37082004-02-18 Gary Dismukes <dismukes@gnat.com>
3709
3710 * layout.adb (Layout_Component_List): Revise generation of call to
3711 discriminant-checking function to pass selections of all of the type's
3712 discriminants rather than just the variant-controlling discriminant.
3713
37142004-02-18 Olivier Hainque <hainque@act-europe.fr>
3715
3716 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
3717 fail in the current setup and triggers spurious system error messages.
3718 Pretend it occurred and failed instead.
3719
37202004-02-18 Vincent Celier <celier@gnat.com>
3721
3722 * bld.adb: Mark FLDFLAGS as saved
3723 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
3724 it is not the root project. Put each directory to be
3725 extended between double quotes to prevent it to be expanded on Windows.
3726 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
3727 the project file. Set them back to their initial values if they have not
3728 been set in the project file.
3729
3730 * gprcmd.adb: (Gprdebug, Debug): New global variables
3731 (Display_Command): New procedure
3732 (Usage): Document new command "linkopts"
3733 Call Display_Command when env var GPRDEBUG has the value "TRUE"
3734 Implement new command "linkopts"
3735 Remove quotes that may be around arguments for "extend"
3736 Always call Normalize_Pathname with arguments formatted for the platform
3737
3738 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
3739 Change @echo to @$(display) in target clean to be able to clean silently
3740
3741 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
3742
3743 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
3744 canonical case.
3745
3746 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
3747 = Extending_All when current project is an extending all project.
3748
3749 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
3750 set to True only for LINK command, after Unix switch -o.
3751 (Process_Arguments): Set Output_File_Expected to True for LINK command
3752 after Unix switch -o. When Output_File_Expected is True, never add an
3753 extension to a file name.
3754
3755 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
3756 option file name, only to the --for-linker= switch.
3757 (Option_File_Name): If option file name do not end with ".opt", append
3758 "/OPTIONS".
3759
37602004-02-18 GNAT Script <nobody@gnat.com>
3761
3762 * Make-lang.in: Makefile automatically updated
3763
80bcb4d2
MK
37642004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
3765
3766 * Make-lang.in (stamp-sdefault): Do not depend on
3767 move-if-change.
3768
1daa84b6
ZW
37692004-02-12 Zack Weinberg <zack@codesourcery.com>
3770
3771 * config-lang.in: Disable Ada by default until probe logic for
3772 a bootstrap Ada compiler can be moved to the top level configure
3773 script.
3774
18c0ecbe
AC
37752004-02-12 Olivier Hainque <hainque@act-europe.fr>
3776
3777 * decl.c (components_to_record): Don't claim that the internal fields
3778 we make to hold the variant parts are semantically addressable, because
3779 they are not.
3780
3781 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
3782 adjust the comment describing the modular type form when we can use it.
3783 (Install_PAT): Account for the Esiz renaming.
3784
3785 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
3786 sc_onstack context indication before raising the exception to which
3787 the signal is mapped. Allows better handling of later signals possibly
3788 triggered by the resumed user code if the exception is handled.
3789
37902004-02-12 Arnaud Charlet <charlet@act-europe.fr>
3791
3792 * 5zinit.adb: Removed, no longer used.
3793
37942004-02-12 Robert Dewar <dewar@gnat.com>
3795
3796 * ali.adb: Remove separating space between parameters on R line. Makes
3797 format consistent with format used by the binder for Set_Globals call.
3798
3799 * atree.ads, atree.adb: Minor reformatting (new function header format)
3800
3801 * bindgen.adb: Add Run-Time Globals documentation section containing
3802 detailed documentation of the globals passed from the binder file to
3803 the run time.
3804
3805 * gnatls.adb: Minor reformatting
3806
3807 * init.c (__gnat_set_globals): Add note pointing to documentation in
3808 bindgen.
3809
3810 * lib-writ.ads, lib-writ.adb: Remove separating space between
3811 parameters on R line.
3812 Makes format consistent with format used by the binder for Set_Globals
3813 call.
3814
3815 * osint.ads: Add 2004 to copyright notice
3816 Minor reformatting
3817
3818 * snames.ads: Correct capitalization of FIFO_Within_Priorities
3819 Noticed during code reading, documentation issue only
3820
3821 * usage.adb: Remove junk line for obsolete C switch
3822 Noticed during code reading
3823
38242004-02-12 Vincent Celier <celier@gnat.com>
3825
3826 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
3827 extend for each directory, so that multiple /** directories are
3828 extended individually.
3829 (Recursive_Process): Set the default for LANGUAGES to ada
3830
3831 * gprcmd.adb: Define new command "ignore", to do nothing.
3832 Implement new comment "path".
3833
3834 * Makefile.generic: Suppress output when SILENT is set
3835 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
3836 used, so that the correct compiler is invoked.
3837 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
3838 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
3839
38402004-02-12 Jerome Guitton <guitton@act-europe.fr>
3841
3842 * Makefile.in: Clean ups and remove obsolete targets.
3843
38442004-02-12 Ed Schonberg <schonberg@gnat.com>
3845
3846 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
3847 predicate declared in exp_util.
3848
3849 * exp_util.adb: Add comments.
3850
3851 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
3852 visibility before compiling context of the subunit.
3853
3854 * sem_res.adb (Check_Parameterless_Call): If the context expects a
3855 value but the name is a procedure, do not attempt to analyze as a call,
3856 in order to obtain more telling diagnostics.
3857
3858 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
3859 'Access on parameterless function calls.
3860 (Normalize_Actuals): For a parameterless function call with missing
3861 actuals, defer diagnostic until resolution of enclosing call.
3862
3863 * sem_util.adb (Wrong_Type): If the context type is an access to
3864 subprogram and the expression is a procedure name, suggest a missing
3865 'attribute.
3866
c1dcfa14
AC
38672004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
3868 Nathanael Nerode <neroden@gcc.gnu.org>
3869
3870 PR ada/6637, PR ada/5911
3871 Merge with libada-branch:
90afe2c9 3872 * config-lang.in: Build libada only when ada is built.
c1dcfa14 3873
2e071734
AC
38742004-02-09 Ed Schonberg <schonberg@gnat.com>
3875
3876 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
3877 for a tagged type, verify that both formals have the same type.
3878
3879 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
3880 temporary when the formal is an in-parameter and the actual a possibly
3881 unaligned slice.
3882
3883 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
3884 when expansion is disabled, to ensure proper name capture with
3885 overloaded literals. Condition can be of any boolean type, resolve
3886 accordingly.
3887
3888 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
3889 renaming is for a formal subprogram with a default operator name, and
3890 there is a usable operator that is visible at the point of
3891 instantiation.
3892
38932004-02-09 Robert Dewar <dewar@gnat.com>
3894
3895 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
3896 rewrite to ignore errors in ali files, intended to allow tools downward
3897 compatibility with new versions of ali files.
3898
3899 * ali.ads: Add new parameter Ignore_Errors
3900
3901 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
3902 duplicating the error message giving the file with restrictions.
3903
3904 * debug.adb: Add debug flag I for gnatbind
3905
3906 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
3907 operators for the case where the operator is a defining operator.
3908
3909 * exp_ch3.adb: Minor reformatting (new function spec format).
3910
3911 * exp_ch4.adb: Add comment for previous change, and make minor
3912 adjustment to loop to always check for improper loop termination.
3913 Minor reformatting throughout (new function spec format).
3914
3915 * gnatbind.adb: Implement -di debug flag for gnatbind
3916
3917 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
3918
3919 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
3920
3921 * lib-load.adb: Fix bad assertion.
3922 Found by testing and code reading.
3923 Minor reformatting.
3924
3925 * lib-load.ads: Minor reformatting.
3926
3927 * lib-writ.adb: There is only one R line now.
3928
3929 * lib-writ.ads: Add documentation on making downward compatible changes
3930 to ali files so old tools work with new ali files.
3931 There is only one R line now.
3932 Add documentation on format incompatibilities (with special GPS note)
3933
3934 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
3935
3936 * par-load.adb: Minor reformatting
3937
3938 * sem_ch8.adb: Fix to error message from last update
3939 Minor reformatting and restructuring of code from last update
3940
3941 * par-prag.adb, snames.adb, snames.ads, snames.h,
3942 sem_prag.adb: Implement pragma Profile.
3943
3944 * stylesw.adb: Implement -gnatyN switch to turn off all style check
3945 options.
3946
3947 * usage.adb: Add line for -gnatyN switch
3948
3949 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
3950
a41ea816
AC
39512004-02-09 Albert Lee <lee@gnat.com>
3952
3953 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
3954
39552004-02-09 Ed Schonberg <schonberg@gnat.com>
3956
3957 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
3958 slices.
3959
3960 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
3961 is nested in an instance that is not frozen yet, to avoid
3962 order-of-elaboration problems in gigi.
3963
3964 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
3965 body the attribute is legal.
3966
39672004-02-09 Robert Dewar <dewar@gnat.com>
3968
3969 * s-rident.ads: Minor comment correction
3970
3971 * targparm.adb: Remove dependence on uintp completely. There was
3972 always a bug in Make in that it called Targparm before initializing
3973 the Uint package. The old code appeared to get away with this, but
3974 the new code did not! This caused an assertion error in gnatmake.
3975
3976 * targparm.ads: Fix bad comment, restriction pragmas with parameters
3977 are indeed fully supported.
3978
725c60f8
AM
39792004-02-06 Alan Modra <amodra@bigpond.net.au>
3980
3981 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
3982
136e64db
KH
39832004-02-05 Kazu Hirata <kazu@cs.umass.edu>
3984
3985 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
3986 with targetm.calls.promote_prototypes.
3987
06effe87
AC
39882004-02-04 Robert Dewar <dewar@gnat.com>
3989
3990 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
3991 ali.ads, gprcmd.adb: Minor reformatting
3992
3993 * bindgen.adb: Output restrictions string for new style restrictions
3994 handling
3995
3996 * impunit.adb: Add s-rident.ads (System.Rident) and
3997 s-restri (System.Restrictions)
3998
3999 * lib-writ.adb: Fix bug in writing restrictions string (last few
4000 entries wrong)
4001
4002 * s-restri.ads, s-restri.adb: Change name Restrictions to
4003 Run_Time_Restrictions to avoid conflict with package name.
4004 Add circuit to read and acquire run time restrictions.
4005
40062004-02-04 Jose Ruiz <ruiz@act-europe.fr>
4007
4008 * restrict.ads, restrict.adb: Use the new restriction
4009 No_Task_Attributes_Package instead of the old No_Task_Attributes.
4010
4011 * sem_prag.adb: No_Task_Attributes is a synonym of
4012 No_Task_Attributes_Package.
4013
4014 * snames.ads, snames.adb: New entry for proper handling of
4015 No_Task_Attributes.
4016
4017 * s-rident.ads: Adding restriction No_Task_Attributes_Package
4018 (AI-00249) that supersedes the GNAT specific restriction
4019 No_Task_Attributes.
4020
40212004-02-04 Ed Schonberg <schonberg@gnat.com>
4022
90afe2c9 4023 * sem_prag.adb:
06effe87
AC
4024 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
4025 body, an identifier may be wrapped in an unchecked conversion.
4026
40272004-02-04 Vincent Celier <celier@gnat.com>
4028
4029 * lib-writ.ads: Comment update for the W lines
4030
4031 * bld.adb: (Expression): An empty string list is static
4032
4033 * fname-uf.adb: Minor comment update
4034
4035 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
4036
4037 * gnatbind.adb: Initialize Cumulative_Restrictions with the
4038 restrictions on the target.
4039
2fb00d7f
KH
40402004-02-03 Kazu Hirata <kazu@cs.umass.edu>
4041
4042 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
4043 gen_rtx.
4044
5ed23e25
AC
40452004-02-02 Arnaud Charlet <charlet@gnat.com>
4046
4047 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
4048
6e937c1c
AC
40492004-02-02 Vincent Celier <celier@gnat.com>
4050
4051 * gprcmd.adb (Check_Args): If condition is false, print the invoked
4052 comment before the usage.
4053 Gprcmd: Fail when command is not recognized.
4054 (Usage): Document command "prefix"
4055
4056 * g-md5.adb (Digest): Process last block.
4057 (Update): Do not process last block. Store remaining characters and
4058 length in Context.
4059
4060 * g-md5.ads (Update): Document that several call to update are
4061 equivalent to one call with the concatenated string.
4062 (Context): Add fields to allow new Update behaviour.
4063
4064 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
4065 defaulted to False.
4066 When May_Fail is True and no existing file can be found, return No_File.
4067
4068 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
4069 functions.
4070
4071 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
4072 spec file name instead on the W line.
4073
40742004-02-02 Robert Dewar <dewar@gnat.com>
4075
4076 * ali.adb: Read and acquire info from new format restrictions lines
4077
4078 * bcheck.adb: Add circuits for checking restrictions with parameters
4079
4080 * bindgen.adb: Output dummy restrictions data
4081 To be changed later
4082
4083 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
4084 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
4085 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
4086 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
4087 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
4088
4089 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
4090 the warning message on access to possibly uninitialized variable S)
4091 Minor changes for new restrictions handling.
4092
4093 * gnatbind.adb: Minor reformatting
4094 Minor changes for new restrictions handling
4095 Move circuit for -r processing here from bcheck (cleaner)
4096
4097 * gnatcmd.adb, gnatlink.adb: Minor reformatting
4098
4099 * lib-writ.adb: Output new format restrictions lines
4100
4101 * lib-writ.ads: Document new R format lines for new restrictions
4102 handling.
4103
4104 * s-restri.ads/adb: New files
4105
4106 * Makefile.rtl: Add entry for s-restri.ads/adb
4107
4108 * par-ch3.adb: Fix bad error messages starting with upper case letter
4109 Minor reformatting
4110
4111 * restrict.adb: Major rewrite throughout for new restrictions handling
4112 Major point is to handle restrictions with parameters
4113
4114 * restrict.ads: Major changes in interface to handle restrictions with
4115 parameters. Also generally simplifies setting of restrictions.
4116
4117 * snames.ads/adb: New entry for proper handling of No_Requeue
4118
4119 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
4120 restriction counting.
4121 Other minor changes for new restrictions handling
4122
4123 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
4124 Restriction_Warnings now allows full parameter notation
4125 Major rewrite of Restrictions for new restrictions handling
4126
41272004-02-02 Javier Miranda <miranda@gnat.com>
4128
4129 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
4130 syntax rule for object renaming declarations.
4131 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
4132 component definitions.
4133
4134 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
4135 components.
4136 (Array_Type_Declaration): Give support to access components. In addition
4137 it was also modified to reflect the name of the object in anonymous
4138 array types. The old code did not take into account that it is possible
4139 to have an unconstrained anonymous array with an initial value.
4140 (Check_Or_Process_Discriminants): Allow access discriminant in
4141 non-limited types.
4142 (Process_Discriminants): Allow access discriminant in non-limited types
4143 Initialize the new Access_Definition field in N_Object_Renaming_Decl
4144 node. Change Ada0Y to Ada 0Y in comments
4145
4146 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
4147 equality operators.
4148 Change Ada0Y to Ada 0Y in comments
4149
4150 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
4151 renamings Change Ada0Y to Ada 0Y in comments
4152
4153 * sem_type.adb (Find_Unique_Type): Give support to the equality
4154 operators for universal access types
4155 Change Ada0Y to Ada 0Y in comments
4156
4157 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
4158
4159 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
4160 field.
4161 (N_Object_Renaming_Declaration): Addition of Access_Definition field
4162 Change Ada0Y to Ada 0Y in comments
4163
4164 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
4165 component definition and object renaming nodes
4166 Change Ada0Y to Ada 0Y in comments
4167
41682004-02-02 Jose Ruiz <ruiz@act-europe.fr>
4169
4170 * restrict.adb: Use the new restriction identifier
4171 No_Requeue_Statements instead of the old No_Requeue for defining the
4172 restricted profile.
4173
4174 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
4175 No_Requeue_Statements.
4176
4177 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
4178 that supersedes the GNAT specific restriction No_Requeue. The later is
4179 kept for backward compatibility.
4180
41812004-02-02 Ed Schonberg <schonberg@gnat.com>
4182
4183 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
4184 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
4185 pragma and fix incorrect ones.
4186
4187 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
4188 warning if the pragma is redundant.
4189
41902004-02-02 Thomas Quinot <quinot@act-europe.fr>
4191
4192 * 5staprop.adb: Add missing 'constant' keywords.
4193
4194 * Makefile.in: use consistent value for SYMLIB on
4195 platforms where libaddr2line is supported.
4196
41972004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4198
4199 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
4200 annotating types.
4201
42022004-02-02 Olivier Hainque <hainque@act-europe.fr>
4203
4204 * init.c (__gnat_install_handler): Setup an alternate stack for signal
4205 handlers in the environment thread. This allows proper propagation of
4206 an exception on stack overflows in this thread even when the builtin
4207 ABI stack-checking scheme is used without support for a stack reserve
4208 region.
4209
4210 * utils.c (create_field_decl): Augment the head comment about bitfield
4211 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
4212 here, because the former is not accurate enough at this point.
4213 Let finish_record_type decide instead.
4214 Don't make a bitfield if the field is to be addressable.
4215 Always set a size for the field if the record is packed, to ensure the
4216 checks for bitfield creation are triggered.
4217 (finish_record_type): During last pass over the fields, clear
4218 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
4219 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
4220 from DECL_BIT_FIELD.
4221
71cbe2c1
KC
42222004-01-30 Kelley Cook <kcook@gcc.gnu.org>
4223
90afe2c9 4224 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
71cbe2c1
KC
4225 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
4226 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
4227
7f996f90
RO
42282004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4229
4230 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
4231
4232 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
4233 (ZCX_By_Default): Likewise.
4234 (Front_End_ZCX_Support): Likewise.
4235
4236 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
4237 (Initialize_Lock): Mark Level unreferenced.
4238 (Sleep): Mark Reason unreferenced.
4239 (Timed_Sleep): Likewise.
4240 (Wakeup): Likewise.
4241 (Exit_Task): Use Result.
4242 (Check_No_Locks): Mark Self_ID unreferenced.
90afe2c9 4243
7f996f90
RO
4244 * 5gtasinf.adb (New_Sproc): Make Attr constant.
4245 (Bound_Thread_Attributes): Make Sproc constant.
4246 (New_Bound_Thread_Attributes): Likewise.
4247
26fd4eae
AC
42482004-01-26 Ed Schonberg <schonberg@gnat.com>
4249
4250 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
4251 one-dimensional array an slice assignments, when component type is
4252 controlled.
4253
4254 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
4255 component type is controlled, and control_actions are in effect, use
4256 TSS procedure rather than generating inline code.
4257
4258 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
4259 arrays with controlled components.
4260
42612004-01-26 Vincent Celier <celier@gnat.com>
4262
4263 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
4264 command line for the non VMS case.
4265
4266 * gnatlink.adb (Process_Binder_File): When building object file, if
4267 GNU linker is used, put all object paths between quotes, to prevent ld
4268 error when there are unusual characters (such as '!') in the paths.
4269
4270 * Makefile.generic: When there are sources in Ada and the main is in
4271 C/C++, invoke gnatmake with -B, instead of -z.
4272
4273 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
4274 from VMS_Conversion.
4275 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
4276 specification of argument file on the command line.
4277
42782004-01-26 Bernard Banner <banner@gnat.com>
4279
4280 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
4281
42822004-01-26 Ed Schonberg <schonberg@gnat.com>
4283
4284 * snames.adb: Update copyright notice.
4285 Add info on slice assignment for controlled arrays.
4286
b7e429ab
AC
42872004-01-23 Robert Dewar <dewar@gnat.com>
4288
4289 * exp_aggr.adb: Minor reformatting
4290
4291 * exp_ch9.adb: Minor code clean up
4292 Minor reformatting
4293 Fix bad character in comment
4294
4295 PR ada/13471
4296 * targparm.adb (Get_Target_Parameters): Give clean abort error on
4297 unexpected end of file, along with more detailed message.
4298
42992004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4300
4301 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
4302 PAT.
4303
4304 * decl.c (copy_alias_set): New function.
4305 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
4306
43072004-01-23 Doug Rupp <rupp@gnat.com>
4308
4309 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
4310 lib$${file} in case subsequent character is not a separator.
4311
43122004-01-23 Vincent Celier <celier@gnat.com>
4313
4314 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
4315 when the GCC version is at least 3.
4316
4317 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
4318 Remove all "Opt.", to prepare for opt split
4319
4320 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
4321 Extends_All. Set to True when the project parsed is an extending all
4322 project. Fails for importing an extending all project only when the
4323 imported project is an extending all project.
4324 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
4325 depending on the value of Extends_All returned.
4326
4327 * prj-proc.adb (Process): Check that no project shares its object
4328 directory with a project that extends it, directly or indirectly,
4329 including a virtual project.
4330 Check that no project extended by another project shares its object
4331 directory with another also extended project.
4332
4333 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
4334 Kind = N_With_Clause
4335
4336 * prj-tree.ads: Minor reformatting
4337 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
4338
43392004-01-23 Ed Schonberg <schonberg@gnat.com>
4340
4341 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
4342 applies to a type with an incomplete view, use full view in Name of
4343 clause, for consistency with uses of Get_Attribute_Definition_Clause.
4344
43452004-01-23 Arnaud Charlet <charlet@act-europe.fr>
4346
4347 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
4348 SCHED_RR, since other values are not supported by this policy.
4349 (Initialize): Move initialization of mutex attribute to package
4350 elaboration, to prevent early access to this variable.
4351
4352 * Makefile.in: Remove mention of Makefile.adalib, unused.
4353
b291953f
AC
4354 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
4355 1ssecsta.ads: Removed, unused.
b7e429ab 4356
adc04486
AC
43572004-01-21 Javier Miranda <miranda@gnat.com>
4358
4359 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
4360 entity if already built in the current scope.
4361
4362 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
4363 reminder in internal scopes. Required for nested limited aggregates.
4364
43652004-01-21 Doug Rupp <rupp@gnat.com>
4366
4367 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
4368 VMS. Replace all occurences of libgnat- and libgnarl- with
4369 libgnat$(hyphen) and libgnarl$(hyphen).
4370 Fixed shared library build problem on VMS.
4371
43722004-01-21 Robert Dewar <dewar@gnat.com>
4373
4374 * mlib-prj.adb: Minor reformatting
4375
43762004-01-21 Thomas Quinot <quinot@act-europe.fr>
4377
4378 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
4379 'constant' keywords for declaration of pointers that are not modified.
4380
4381 * exp_pakd.adb: Fix English in comment.
4382
43832004-01-21 Ed Schonberg <schonberg@gnat.com>
4384
4385 PR ada/10889
4386 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
4387 copy all attributes of the parent, including the foreign language
4388 convention.
4389
43902004-01-21 Sergey Rybin <rybin@act-europe.fr>
4391
4392 PR ada/10565
4393 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
4394 for 'delay until' statement.
4395
a541f69d
KC
43962004-01-20 Kelley Cook <kcook@gcc.gnu.org>
4397
4398 * Make-lang.in: Replace $(docdir) with doc.
4399 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
4400 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
4401 to use consistent MAKEINFO rule.
4402 (ada.man, ada.srcman): Dummy entry.
4403 (ADA_INFOFILES): Define.
4404 (ada.info, ada.srcinfo): New rules.
4405
c01a9391
AC
44062004-01-19 Arnaud Charlet <charlet@act-europe.fr>
4407
4408 * utils.c: Update copyright notice, missed in previous change.
4409
44102004-01-19 Vincent Celier <celier@gnat.com>
4411
4412 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
4413 args if Bind is True. Set First_ALI, if not already done.
4414 (Build_Library): For Stand Alone Libraries, extract from one ALI file
4415 an eventual --RTS switch, for gnatbind, and all backend switches +
4416 --RTS, for linking.
4417
44182004-01-19 Robert Dewar <dewar@gnat.com>
4419
4420 * sem_attr.adb, memtrack.adb: Minor reformatting
4421
44222004-01-19 Ed Schonberg <schonberg@gnat.com>
4423
4424 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
4425 that rename enumeration literals. This is properly done in sem_eval.
4426
4427 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
4428 to functions that rename enumeration literals.
4429
4430 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
4431 functions that rename enumeration literals.
4432
510d1e80
KH
44332004-01-16 Kazu Hirata <kazu@cs.umass.edu>
4434
4435 * Make-lang.in (utils.o): Depend on target.h.
4436 * utils.c: Include target.h.
4437 (process_attributes): Use targetm.have_named_sections instead
4438 of ASM_OUTPUT_SECTION_NAME.
4439
fbf3e0dd
AJ
44402004-01-16 Andreas Jaeger <aj@suse.de>
4441
4442 * Makefile.in: Add $(DESTDIR).
4443
acd47d2a
AC
44442004-01-15 Olivier Hainque <hainque@act-europe.fr>
4445
4446 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
4447 also when not defining if a Size clause applies. That information is
4448 not to be ignored.
4449
44502004-01-15 Arnaud Charlet <charlet@act-europe.fr>
4451
4452 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
4453 symbolic links for the shared gnat run time when needed.
4454
44552004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
4456
4457 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
4458 for writing, and terminate with an error message if not.
4459
44602004-01-15 Ed Schonberg <schonberg@gnat.com>
4461
4462 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
4463 warning on an access to subprogram in an instance, when the target
4464 type is declared in the same generic unit.
4465 (Eval_Attribute): If 'access is known to fail accessibility check,
4466 rewrite as a raise statement.
4467
44682004-01-15 GNAT Script <nobody@gnat.com>
4469
4470 * Make-lang.in: Makefile automatically updated
4471
03787dfd
KC
44722004-01-15 Kelley Cook <kcook@gcc.gnu.org>
4473
4474 * Make-lang.in (ada.srcextra): Dummy entry.
4475
73e232f0
KC
44762004-01-14 Kelley Cook <kcook@gcc.gnu.org>
4477
4478 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
4479
9bc43c53
AC
44802004-01-13 Ed Schonberg <schonberg@gnat.com>
4481
4482 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
4483 components that are initialized with aggregates.
4484
44852004-01-13 Vincent Celier <celier@gnat.com>
4486
4487 * gnatlink.adb (Process_Binder_File): To find directory of shared
4488 libgcc, if "gcc-lib" is not a subdirectory, look for the last
4489 subdirectory "lib" in the path of the shared libgnat or libgnarl.
4490
4491 * make.adb (Gnatmake): If GCC version is at least 3, link with
4492 -shared-libgcc, when there is at least one shared library project.
4493
4494 * opt.ads (GCC_Version): New integer constant.
4495
4496 * adaint.c (get_gcc_version): New function.
4497
44982004-01-13 Robert Dewar <dewar@gnat.com>
4499
4500 * sem_dist.adb, sem_res.adb, sem_util.adb,
4501 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
4502 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
4503
45042004-01-13 Thomas Quinot <quinot@act-europe.fr>
4505
4506 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
4507 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
4508 declarations.
4509
8b52de7b
AC
45102004-01-12 Arnaud Charlet <charlet@act-europe.fr>
4511
f6ea0188
AC
4512 * misc.c: Remove trailing spaces.
4513 Update copyright notice missed in previous change.
4514
8b52de7b
AC
4515 PR ada/13572
4516 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
4517 prefix/share/make
4518
4519 * Makefile.generic: Update copyright.
4520 Add license notice.
4521
4522 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
4523 of prefix/share/make.
4524
4525 * Makefile.prolog: Update copyright.
4526 Add license notice.
4527
45282004-01-12 Laurent Pautet <pautet@act-europe.fr>
4529
4530 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
4531 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
4532 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
4533 instead of String.
4534
4535 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
4536 signature.
4537
45382004-01-12 Javier Miranda <miranda@gnat.com>
4539
4540 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
4541 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
4542 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
4543 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
4544 Component_Definition node.
4545
45462004-01-12 Ed Falis <falis@gnat.com>
4547
4548 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
4549
45502004-01-12 Thomas Quinot <quinot@act-europe.fr>
4551
4552 * link.c: Change default libgnat kind to STATIC for FreeBSD.
4553
45542004-01-12 Bernard Banner <banner@gnat.com>
4555
4556 * Makefile.in: map 86numaux to a-numaux for x86_64
4557
45582004-01-12 Ed Schonberg <schonberg@gnat.com>
4559
4560 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
4561 generated to rename a generic actual, go to the actual itself, the
4562 subtype is not a user-visible entity.
4563
4564 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
4565 part is a private subtype, reset the visibility of its full view, if
4566 any, to be consistent.
4567
4568 PR ada/13417
4569 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
4570 to use a generic package G as a formal package for another generic
4571 declared within G.
4572
45732004-01-12 Robert Dewar <dewar@gnat.com>
4574
4575 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
4576
4577 * usage.adb: Remove mention of obsolete -gnatwb switch
4578 Noticed during code reading
4579
45802004-01-12 Jerome Guitton <guitton@act-europe.fr>
4581
4582 * 1ssecsta.adb: Minor changes for -gnatwa warnings
4583
45842004-01-12 GNAT Script <nobody@gnat.com>
4585
4586 * Make-lang.in: Makefile automatically updated
4587
0fab64a3
MM
45882004-01-09 Mark Mitchell <mark@codesourcery.com>
4589
4590 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
4591
47527624
RO
45922004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4593
4594 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
4595
dedebde1
KC
45962004-01-05 Kelley Cook <kcook@gcc.gnu.org>
4597
fbf3e0dd 4598 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
dedebde1
KC
4599 Update comment and copyright date.
4600 * stamp-xgnatug: Delete.
4601
91b1417d
AC
46022004-01-05 Robert Dewar <dewar@gnat.com>
4603
4604 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
4605 be modified by the binder generated main program if the -D switch is
4606 used.
4607
4608 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
4609 imported functions (since now we expect this to be done for imported
4610 functions)
4611
4612 * 5vtaprop.adb: Add several ??? for sections requiring more comments
4613 Minor reformatting throughout
4614
4615 * 5zinit.adb: Minor reformatting
4616 Add 2004 to copyright date
4617 Minor changes to avoid -gnatwa warnings
4618 Correct some instances of using OR instead of OR ELSE (noted while
4619 doing reformatting)
4620
4621 * sprint.adb: Minor updates to avoid -gnatwa warnings
4622
fbf3e0dd 4623 * s-secsta.ads, s-secsta.adb:
91b1417d
AC
4624 (SS_Get_Max): New function to obtain high water mark for ss stack
4625 Default_Secondary_Stack is not a constant since it may be modified by
4626 the binder generated main program if the -D switch is used.
4627
4628 * switch-b.adb: New -Dnnn switch for binder
4629
fbf3e0dd 4630 * switch-c.adb:
91b1417d
AC
4631 Make -gnatg imply all warnings currently in -gnatwa
4632
4633 * vms_conv.adb: Minor reformatting
4634 Add 2004 to copyright notice
4635 Add 2004 to printed copyright notice
4636
4637 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
4638 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
4639 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
4640 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
4641 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
4642 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
4643 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
4644 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
4645 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
4646 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
4647 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
4648 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
4649 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
4650 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
4651 checks.adb, clean.adb, cstand.adb, einfo.ads,
4652 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
4653 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
4654 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
4655 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
4656 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
4657 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
4658 Minor reformatting and code clean ups.
4659 Minor changes to prevent -gnatwa warnings
4660
4661 * ali.adb: Minor reformatting and cleanup of code
4662 Acquire new SS indication of secondary stack use from ali files
4663
4664 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
4665 (since now we expect this to be done for imported functions)
4666
4667 * bindgen.adb: Generate call to modify default secondary stack size if
4668 -Dnnn switch given
4669
4670 * bindusg.adb: Add line for new -D switch
4671
4672 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
4673 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
4674 Add circuitry for both records and arrays to avoid gigi
4675 processing if the type involved has non-bit-aligned components
4676
4677 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
4678 N_String_Literal node always references an E_String_Literal_Subtype
4679 entity. This may not be true in the future.
4680 (Possible_Bit_Aligned_Component): Move processing of
4681 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
4682
4683 * exp_ch6.adb (Expand_Thread_Body): Pick up
4684 Default_Secondary_Stack_Size as variable so that we get value modified
4685 by possible -Dnnn binder parameter.
4686
4687 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
4688 (Type_May_Have_Bit_Aligned_Components): New function.
4689
4690 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
4691 (Type_May_Have_Bit_Aligned_Components): New function.
4692
4693 * fe.h: (Set_Identifier_Casing): Fix prototype.
4694 Add declaration for Sem_Elim.Eliminate_Error_Msg.
4695 Minor reformatting.
4696
4697 * freeze.adb (Freeze_Entity): Add RM reference to error message about
4698 importing constant atomic/volatile objects.
4699 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
4700 unless explicit Pure_Function pragma given, to avoid insidious bug of
4701 call to non-pure imported function getting eliminated.
4702
4703 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
4704 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
4705 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
4706 Add 2004 to printed copyright notice
4707
4708 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
4709 stack used.
4710
4711 * Makefile.rtl: Add entry for g-sestin.o
4712 g-sestin.ads: New file.
4713
4714 * mdll.adb: Minor changes to avoid -gnatwa warnings
4715
4716 * mlib-tgt.adb: Minor reformatting
4717
4718 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
4719 New switch Sec_Stack_Used (GNAT, GNATBIND)
4720 Make Default_Secondary_Stack_Size a variable instead of a constant,
4721 so that it can be modified by the new -Dnnn bind switch.
4722
4723 * rtsfind.adb (Load_Fail): Give full error message in configurable
4724 run-time mode if all_errors mode is set. This was not done in the case
4725 of a file not found, which was an oversight.
4726 Note if secondary stack unit is used by compiler.
4727
4728 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
4729 ineffective elaborate all pragmas on non-visible packages (this
4730 happened when a renamed subprogram was called). Now the elaborate all
4731 always goes on the package containing the renaming rather than the one
4732 containing the renamed subprogram.
4733
4734 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
4735 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
4736
4737 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
4738 has an Etype that references an E_String_Literal.
4739 (Eval_String_Literal): Avoid assumption that N_String_Literal node
4740 always references an E_String_Literal_Subtype entity. This may not
4741 be true in the future.
4742
4743 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
4744 pragma location.
4745
4746 * sem_res.adb (Resolve): Specialize msg for function name used in proc
4747 call.
4748
47492004-01-05 Ed Falis <falis@gnat.com>
4750
4751 * g-debuti.adb: Replaced direct boolean operator with short-circuit
4752 form.
4753
47542004-01-05 Vincent Celier <celier@gnat.com>
4755
4756 * bld.adb: Minor comment updates
4757 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
4758 of Item_Name).
4759
4760 * make.adb (Gnatmake): Special process for files to compile/check when
4761 -B is specified. Fail when there are only foreign mains in attribute
4762 Main of the project file and -B is not specified. Do not skip bind/link
4763 steps when -B is specified.
4764
4765 * makeusg.adb: Document new switch -B
4766
4767 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
4768
4769 * switch-m.adb: (Scan_Make_Switches): Process -B switch
4770
4771 * vms_data.ads: Add new GNAT PRETTY qualifier
4772 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
4773
47742004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4775
4776 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
4777 case.
4778
4779 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
4780 Set_Identifier_Casing.
4781
4782 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
4783 has size that overflows.
4784
47852004-01-05 Gary Dismukes <dismukes@gnat.com>
4786
4787 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
4788 -gnatwa warning on static condition.
4789
47902004-01-05 Doug Rupp <rupp@gnat.com>
4791
4792 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
4793
47942004-01-05 Arnaud Charlet <charlet@act-europe.fr>
4795
4796 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
4797 all attributes, including read-only attribute.
4798
47992004-01-05 Pascal Obry <obry@gnat.com>
4800
4801 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
4802 library naming scheme.
4803
4804 * mlib-prj.adb (Build_Library): Generate different names for the static
4805 or dynamic version of the GNAT runtime. This is needed to support the
4806 new shared library naming scheme.
4807 (Process_Binder_File): Add detection of shared library in binder file
4808 based on the new naming scheme.
4809
4810 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
4811 scheme for the shared runtime libraries.
4812
4813 * Makefile.in:
4814 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
4815 scheme.
4816 (install-gnatlib): Do not create symlinks for shared libraries.
4817 (gnatlib-shared-default): Idem.
4818 (gnatlib-shared-dual-win32): New target. Not used for now as the
4819 auto-import feature does not support arrays/records.
4820 (gnatlib-shared-win32): Do not create copy for the shared libraries.
4821 (gnatlib-shared-vms): Fix shared runtime libraries names.
4822
4823 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
4824 dependent runtime shared library name.
4825
48262004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
4827
4828 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
4829 than the object.
4830
48312004-01-05 Ed Schonberg <schonberg@gnat.com>
4832
4833 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
4834 protected objects when allocator has a subtype indication, not a
4835 qualified expression. Note that qualified expressions may have to be
4836 checked when limited aggregates are implemented.
4837
4838 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
4839 pure, emit warning.
4840 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
4841 subprogram is imported, remove warning.
4842
48432004-01-05 Geert Bosch <bosch@gnat.com>
4844
4845 * s-poosiz.adb: Update copyright notice.
4846 (Allocate): Use Task_Lock to protect against concurrent access.
4847 (Deallocate): Likewise.
4848
48492004-01-05 Joel Brobecker <brobecker@gnat.com>
4850
4851 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
4852 comment.
4853
2ab127f3
KC
48542003-12-23 Kelley Cook <kcook@gcc.gnu.org>
4855
4856 * gnat_ug.texi: Force a CVS commit by updating copyright.
4857 * gnat_ug_vxw.texi: Regenerate.
4858 * gnat_ug_wnt.texi: Regenerate.
4859 * gnat_ug_vms.texi: Regenerate.
4860 * gnat_ug_unx.texi: Regenerate.
4861
aed8bfdc
KH
48622003-12-20 Kazu Hirata <kazu@cs.umass.edu>
4863
4864 * trans.c: Remove uses of "register" specifier in
4865 declarations of local variables.
4866
90c2f1de
KC
48672003-12-18 Kelley Cook <kcook@gcc.gnu.org>
4868
4869 * stamp-xgnatug: New stamp file.
4870 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
4871 (ada/doctools/xgnatug): Add $(build_exeext).
4872 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
4873 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
4874
891a6e79
AC
48752003-12-17 Ed Falis <falis@gnat.com>
4876
4877 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
4878 eliminate warning.
4879
4880 * a-exextr.adb: Add context clause for
4881 Ada.Exceptions.Last_Chance_Handler.
4882
48832003-12-17 Sergey Rybin <rybin@act-europe.fr>
4884
4885 * cstand.adb (Create_Standard): Change the way how the declaration of
4886 the Duration type is created (making it the same way as it is for all
4887 the other standard types).
4888
48892003-12-17 Robert Dewar <dewar@gnat.com>
4890
4891 * s-crtl.ads: Fix header format
4892 Change Pure to Preelaborate
4893
48942003-12-17 Ed Schonberg <schonberg@gnat.com>
4895
4896 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
4897 the expression type only if it is declared in the current unit.
4898
4899 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
4900 are universal and already analyzed, as can occur in constrained
4901 subcomponents that depend on discriminants, when one constraint is a
4902 subtype mark.
4903
4904 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
4905 type Any_Fixed is legal as the argument of a conversion, if only one
4906 fixed-point type is in context.
4907
49082003-12-17 GNAT Script <nobody@gnat.com>
4909
4910 * Make-lang.in: Makefile automatically updated
4911
209db2bf
AC
49122003-12-15 Robert Dewar <dewar@gnat.com>
4913
4914 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
4915 sec stack size.
4916
49172003-12-15 Vincent Celier <celier@gnat.com>
4918
4919 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
4920 (Gnatchop): Do not set failure status when reporting the number of
4921 warnings.
4922
49232003-12-15 Doug Rupp <rupp@gnat.com>
4924
4925 * s-ctrl.ads: New file.
4926
4927 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
4928
4929 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
4930 (GNATBIND_OBJS): Add ada/s-crtl.o.
4931
4932 * Makefile.in [VMS]: Clean up ifeq rules.
4933
4934 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
4935 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
4936 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
4937 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
4938 s-tasdeb.adb: Update copyright.
4939 Import System.CRTL.
4940 Make minor modifications to use System.CRTL declared functions instead
4941 of importing locally.
4942
49432003-12-15 GNAT Script <nobody@gnat.com>
4944
4945 * Make-lang.in: Makefile automatically updated
4946
a9f4e3d2
AC
49472003-12-11 Ed Falis <falis@gnat.com>
4948
4949 * 5zinit.adb: Clean up.
4950
4951 * 5zintman.adb (Notify_Exception): replaced case statement with a call
4952 to __gnat_map_signal, imported from init.c to support
4953 signal -> exception mappings that depend on the vxWorks version.
4954
fbf3e0dd 4955 * init.c:
a9f4e3d2
AC
4956 Created and exported __gnat_map_signal to support signal -> exception
4957 mapping that is dependent on the VxWorks version.
4958 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
4959
49602003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
4961
4962 * 5wosinte.ads: Link with -mthreads switch.
4963
49642003-12-11 Arnaud Charlet <charlet@act-europe.fr>
4965
4966 * init.c (__gnat_install_handler [NetBSD]): Set
4967 __gnat_handler_installed, as done on all other platforms.
4968 Remove duplicated code.
4969
49702003-12-11 Jerome Guitton <guitton@act-europe.fr>
4971
4972 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
4973
49742003-12-11 Thomas Quinot <quinot@act-europe.fr>
4975
4976 * sinfo.ads: Fix inconsistent example code in comment.
4977
49782003-12-11 Robert Dewar <dewar@gnat.com>
4979
4980 * a-tiinau.adb: Add a couple of comments
4981
4982 * sem_ch3.adb: Minor reformatting
4983
fbf3e0dd 4984 * sem_prag.adb:
a9f4e3d2
AC
4985 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
4986 Minor reformatting throughout
4987
49882003-12-11 Ed Schonberg <schonberg@gnat.com>
4989
4990 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
4991 bounds of a loop, create a separate block in order to generate proper
4992 cleanup actions to prevent memory leaks.
4993
4994 * sem_res.adb (Resolve_Call): After a call to
4995 Establish_Transient_Scope, the call may be rewritten and relocated, in
4996 which case no further processing is needed.
4997
4998 * sem_util.adb: (Wrong_Type): Refine previous fix.
4999 Fixes ACATS regressions.
5000
5001 PR ada/13353
5002
5003 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
5004 be inlined.
5005
c45b6ae0
AC
50062003-12-08 Jerome Guitton <guitton@act-europe.fr>
5007
5008 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
5009 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
5010 obsolete files.
5011
5012 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
5013 (rts-zfp): Ditto.
5014
50152003-12-08 Robert Dewar <dewar@gnat.com>
5016
5017 * 7sintman.adb: Minor reformatting
5018
5019 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
5020 standard linker options to get standard libraries linked. We now plan
5021 to provide dummy versions of these libraries to match the appropriate
5022 configurable run-time (e.g. if a library is not needed at all, provide
5023 a dummy empty library).
5024
5025 * targparm.ads: Configurable_Run_Time mode no longer affects linker
5026 options (-L parameters and standard libraries). What we plan to do is
5027 to provide dummy libraries where the libraries are not required.
5028
5029 * gnatbind.adb: Minor comment improvement
5030
50312003-12-08 Javier Miranda <miranda@gnat.com>
5032
5033 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
5034 aggregate in the parent. Otherwise constants with limited aggregates
5035 are not supported. Add new formal to pass the component type (Ctype).
5036 It is required to call the corresponding IP subprogram in case of
5037 default initialized components.
5038 (Gen_Assign): In case of default-initialized component, generate a
5039 call to the IP subprogram associated with the component.
5040 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
5041 of aggregate with default initialized components.
5042 (Has_Default_Init_Comps): Improve implementation to recursively check
5043 all the present expressions.
5044
5045 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
5046 to indicate that the initialization call corresponds to a
5047 default-initialized component of an aggregate.
5048 In case of default initialized aggregate with tasks this parameter is
5049 used to generate a null string (this is just a workaround that must be
5050 improved later). In case of discriminants, this parameter is used to
5051 generate a selected component node that gives access to the discriminant
5052 value.
5053
5054 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
5055 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
5056 allocated aggregates with default-initialized components.
5057
5058 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
5059 the box notation is used in positional aggregates.
5060
50612003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
5062
5063 * lib.ads: Fix typo in comment
5064
50652003-12-08 Vincent Celier <celier@gnat.com>
5066
5067 * prj.adb (Project_Empty): New component Unkept_Comments
5068 (Scan): Remove procedure; moved to Prj.Err.
5069
5070 * prj.ads (Project_Data): New Boolean component Unkept_Comments
5071 (Scan): Remove procedure; moved to Prj.Err.
5072
5073 * prj-dect.adb: Manage comments for the different declarations.
5074
5075 * prj-part.adb (With_Record): New component Node
5076 (Parse): New Boolean parameter Store_Comments, defaulted to False.
5077 Set the scanner to return ends of line and comments as tokens, if
5078 Store_Comments is True.
5079 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
5080 comments are associated with these nodes. Store the node IDs in the
5081 With_Records.
5082 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
5083 With_Records.
5084 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
5085 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
5086 current project. Call Tree.Restore afterwards. Set the various nodes
5087 for comment storage (Next_End, End_Of_Line, Previous_Line,
5088 Previous_End).
5089
5090 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
5091 defaulted to False.
5092
5093 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
5094 to False. When Truncated is True, truncate the string, never go to the
5095 next line.
5096 (Write_End_Of_Line_Comment): New procedure
5097 (Print): Process comments for nodes N_With_Clause,
5098 N_Package_Declaration, N_String_Type_Declaration,
5099 N_Attribute_Declaration, N_Typed_Variable_Declaration,
5100 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
5101 Process nodes N_Comment.
5102
5103 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
5104 without comments and there are some comments, set the flag
5105 Unkept_Comments to True.
5106 (Scan): If there are comments, set the flag Unkept_Comments to True and
5107 clear the comments.
5108 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
5109 (Next_End_Nodes: New table
5110 (Comment_Zones_Of): New function
5111 (Scan): New procedure; moved from Prj. Accumulate comments in the
5112 Comments table and set end of line comments, comments after, after end
5113 and before end.
5114 (Add_Comments): New procedure
5115 (Save, Restore, Seset_State): New procedures
5116 (There_Are_Unkept_Comments): New function
5117 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
5118 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
5119 procedures.
5120 (First_Comment_After, First_Comment_After_End): New functions
5121 (First_Comment_Before, First_Comment_Before_End): New functions
5122 (Next_Comment): New function
5123 (End_Of_Line_Comment, Follows_Empty_Line,
5124 Is_Followed_By_Empty_Line): New functions
5125 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
5126 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
5127 (Set_Next_Comment): New procedure
5128 (Default_Project_Node): Associate comment before if the node can store
5129 comments.
5130
5131 * scans.ads (Token_Type): New enumeration value Tok_Comment
5132 (Comment_Id): New global variable
5133
5134 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
5135 defaulted to False.
5136 (Scan): Store position of start of comment. If comments are tokens, set
5137 Comment_Id and set Token to Tok_Comment when scanning a comment.
5138 (Set_Comment_As_Token): New procedure
5139
5140 * sinput-p.adb: Update Copyright notice
5141 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
5142 that no longer exists.
5143
51442003-12-08 Javier Miranda <miranda@gnat.com>
5145
5146 * sem_aggr.adb: Add dependence on Exp_Tss package
5147 Correct typo in comment
5148 (Resolve_Aggregate): In case of array aggregates set the estimated
5149 type of the aggregate before calling resolve. This is needed to know
5150 the name of the corresponding IP in case of limited array aggregates.
5151 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
5152 in case of default initialized array components.
5153
5154 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
5155 types. Required to give support to limited aggregates in generic
5156 formals.
5157
51582003-12-08 Ed Schonberg <schonberg@gnat.com>
5159
5160 * sem_ch3.adb (Check_Initialization): For legality purposes, an
5161 inlined body functions like an instantiation.
5162 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
5163 until bounds are analyzed, to diagnose premature use of type.
5164
5165 * sem_util.adb (Wrong_Type): Improve error message when the type of
5166 the expression is used prematurely.
5167
51682003-12-08 GNAT Script <nobody@gnat.com>
5169
5170 * Make-lang.in: Makefile automatically updated
5171
0875a894
AC
51722003-12-08 Arnaud Charlet <charlet@act-europe.fr>
5173
7618d510
AC
5174 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
5175 they are automatically generated by Make-lang.in and cause nothing but
0875a894
AC
5176 maintenance troubles.
5177
5b4994bc
AC
51782003-12-05 Thomas Quinot <quinot@act-europe.fr>
5179
5180 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
5181 version of this unit).
5182
51832003-12-05 Olivier Hainque <hainque@act-europe.fr>
5184
5185 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
5186 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
5187 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
5188 the body of System.Interrupt_Management common to several targets.
5189 Update copyright notice when appropriate.
5190
5191 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
5192 constant.
5193
5194 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
5195 to ensure that the kernel fills in the interrupted context structure
5196 before calling a signal handler, which is necessary to be able to
5197 unwind past it. Update the copyright notice.
5198
51992003-12-05 Jerome Guitton <guitton@act-europe.fr>
5200
5201 * a-elchha.ads: New file.
5202
5203 * a-elchha.adb: New default last chance handler. Contents taken from
5204 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
5205
5206 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
5207 is moved to a-elchha.adb to provide a target-independent default last
5208 chance handler.
5209
5210 * Makefile.rtl: Add a-elchha.o
5211
5212 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
5213
52142003-12-05 Ed Schonberg <schonberg@gnat.com>
5215
5216 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
5217 declared in an instance, do not inline the call if the instance is not
5218 frozen yet, to prevent order of elaboration problems.
5219
5220 * sem_prag.adb: Add comments for previous fix.
5221
52222003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
5223
5224 * g-table.adb: Use the right variable in Set_Item.
5225 Update copyright notice.
5226
52272003-12-05 Arnaud Charlet <charlet@act-europe.fr>
5228
5229 * Makefile.in: Remove unused rules.
5230
52312003-12-05 Vincent Celier <celier@gnat.com>
5232
5233 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
5234 -nostdlib. Not needed here after all.
5235
efdfd311
AC
52362003-12-03 Thomas Quinot <quinot@act-europe.fr>
5237
5238 PR ada/11724
5239
fbf3e0dd 5240 * adaint.h, adaint.c, g-os_lib.ads:
efdfd311
AC
5241 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
5242 on some platforms (including FreeBSD), it is a 64 bit value.
5243 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
5244
52452003-12-03 Arnaud Charlet <charlet@act-europe.fr>
5246
5247 * gnatvsn.ads (Library_Version): Now contain only the relevant
5248 version info.
5249 (Verbose_Library_Version): New constant.
5250
5251 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
5252 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
5253 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
5254
5255 * gnatlbr.adb: Clean up: replace Library_Version by
5256 Verbose_Library_Version.
5257
fbf3e0dd 5258 * make.adb, lib-writ.adb, exp_attr.adb:
efdfd311
AC
5259 Clean up: replace Library_Version by Verbose_Library_Version.
5260
5261 * 5lintman.adb: Removed.
5262
fbf3e0dd 5263 * Makefile.in:
efdfd311
AC
5264 Update and simplify computation of LIBRARY_VERSION.
5265 Fix computation of GSMATCH_VERSION.
5266 5lintman.adb is no longer used: replaced by 7sintman.adb.
5267
52682003-12-03 Robert Dewar <dewar@gnat.com>
5269
fbf3e0dd 5270 * exp_ch5.adb:
efdfd311
AC
5271 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
5272 name. Modified to consider small non-bit-packed arrays as troublesome
5273 and in need of component-by-component assigment expansion.
5274
52752003-12-03 Vincent Celier <celier@gnat.com>
5276
5277 * lang-specs.h: Process nostdlib as nostdinc
5278
5279 * back_end.adb: Update Copyright notice
5280 (Scan_Compiler_Arguments): Process -nostdlib directly.
5281
52822003-12-03 Jose Ruiz <ruiz@act-europe.fr>
5283
fbf3e0dd 5284 * Makefile.in:
efdfd311
AC
5285 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
5286 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
5287 included in HIE_NONE_TARGET_PAIRS.
5288
52892003-12-03 Ed Schonberg <schonberg@gnat.com>
5290
fbf3e0dd 5291 * sem_attr.adb:
efdfd311
AC
5292 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
5293 is legal in an instance, because legality is cheched in the template.
5294
fbf3e0dd 5295 * sem_prag.adb:
efdfd311
AC
5296 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
5297 appplied to an unchecked conversion of a formal parameter.
5298
fbf3e0dd 5299 * sem_warn.adb:
efdfd311
AC
5300 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
5301 variables.
5302
53032003-12-03 Olivier Hainque <hainque@act-europe.fr>
5304
5305 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
5306 routines. The second one is new functionality to deal with backtracing
5307 through signal handlers.
5308 (unwind): Split into the two separate subroutines above.
5309 Update the documentation, and deal properly with sizeof (REG) different
5310 from sizeof (void*).
5311
08aa9a4a
AC
53122003-12-01 Nicolas Setton <setton@act-europe.fr>
5313
5314 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
5315 so that the debugger can reliably access the value of the parameter,
5316 and therefore is able to display the exception name when an exception
5317 breakpoint is reached.
5318
53192003-12-01 Thomas Quinot <quinot@act-europe.fr>
5320
5321 * fmap.adb: Fix typo in warning message.
5322
5323 * g-socket.ads, g-socket.adb: Make Free a visible instance of
5324 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
5325
53262003-12-01 Vincent Celier <celier@gnat.com>
5327
5328 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
5329 ther is no Afile.
5330 (Build_Library): Get the switches only if Default_Switches is declared
5331 in package Binder.
5332
53332003-12-01 Ed Schonberg <schonberg@gnat.com>
5334
5335 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
5336 actuals that are indexed components, reanalyze actual to ensure that
5337 packed array references are properly expanded.
5338
5339 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
5340 attempted assignment to a discriminant.
5341
53422003-12-01 Robert Dewar <dewar@gnat.com>
5343
5344 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
5345 reformatting.
5346
5347 * switch-c.adb: Minor reformatting of comments
5348
53492003-12-01 Arnaud Charlet <charlet@act-europe.fr>
5350
5351 * Makefile.in: Clean ups.
5352
53532003-12-01 GNAT Script <nobody@gnat.com>
5354
5355 * Make-lang.in: Makefile automatically updated
5356
c6135994
AC
53572003-12-01 Arnaud Charlet <charlet@act-europe.fr>
5358
5359 * 5wsystem.ads: Disable zero cost exception, not ready yet.
5360
51a30506
UW
53612003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
5362
5363 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
5364 to force serialization.
5365
81a5b587
AC
53662003-11-26 Thomas Quinot <quinot@act-europe.fr>
5367
fbf3e0dd 5368 * g-socket.ads, g-socket.adb:
81a5b587
AC
5369 Clarify documentation of function Stream. Introduce a Free procedure
5370 to release the returned Stream once it becomes unused.
5371
5372 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
5373
53742003-11-26 Arnaud Charlet <charlet@act-europe.fr>
5375
5376 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
5377 since NT 4 cannot handle timeout values that are too large,
5378 e.g. DWORD'Last - 1.
5379
53802003-11-26 Ed Schonberg <schonberg@gnat.com>
5381
fbf3e0dd 5382 * exp_ch4.adb:
81a5b587
AC
5383 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
5384 in procedure calls and whose expansion must be deferred.
5385
5386 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
5387 is in exp_ch4.
5388
fbf3e0dd 5389 * sem_ch3.adb:
81a5b587
AC
5390 (Build_Derived_Array_Type): Create operator for unconstrained type
5391 if ancestor is unconstrained.
5392
53932003-11-26 Vincent Celier <celier@gnat.com>
5394
5395 * make.adb (Project_Object_Directory): New global variable
5396 (Change_To_Object_Directory): New procedure
5397 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
5398 of Change_Dir directly. Do not change working directory to object
5399 directory of main project after each compilation.
5400 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
5401 directly.
5402 Change to object directory of main project before binding step.
5403 (Initialize): Initialize Project_Object_Directory to No_Project
5404
fbf3e0dd 5405 * mlib-prj.adb:
81a5b587
AC
5406 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
5407 binding a Stand-Alone Library.
5408
5409 * output.adb: Update Copyright notice
5410 (Write_Char): Output buffer when full
5411
54122003-11-26 Robert Dewar <dewar@gnat.com>
5413
5414 * sem_ch13.adb: (Check_Size): Reset size if size is too small
5415
fbf3e0dd 5416 * sem_ch13.ads:
81a5b587
AC
5417 (Check_Size): Fix documentation to include bit-packed array case
5418
5419 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
5420
5421 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
5422
5423 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
5424
d4c47b51
AC
54252003-11-24 Arnaud Charlet <charlet@act-europe.fr>
5426
5427 PR ada/13142
5428 * utils.c (init_gigi_decls): Change name of built-in setjmp to
5429 __builtin_setjmp, since this is apparently needed by recent
5430 non Ada changes.
5431
7677e9e0
RO
54322003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5433
d4c47b51 5434 * adadecode.c: Only include ctype.h if not IN_GCC.
7677e9e0
RO
5435 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
5436
6c1e24d3
AC
54372003-11-24 Jose Ruiz <ruiz@act-europe.fr>
5438
fbf3e0dd 5439 * Makefile.in:
6c1e24d3
AC
5440 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
5441 signals and interrupts.
5442
5443 * 5zintman.ads: New File.
5444
5445 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
5446 add exception signals to the set of unmasked signals.
5447
fbf3e0dd 5448 * 5ztaprop.adb:
6c1e24d3
AC
5449 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
5450 between signals and interrupts.
5451 Add to Unblocked_Signal_Mask the set of signals that are in
5452 Keep_Unmasked.
5453
fbf3e0dd 5454 * 7sinmaop.adb:
6c1e24d3
AC
5455 Adding a check to see whether the Interrupt_ID we want to unmask is in
5456 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
5457 reason is that the index type of the Keep_Unmasked array is not always
5458 Interrupt_ID; it may be a subtype of Interrupt_ID.
5459
54602003-11-24 Gary Dismukes <dismukes@gnat.com>
5461
fbf3e0dd 5462 * exp_util.adb:
6c1e24d3
AC
5463 (Remove_Side_Effects): Condition constantness of object created for a
5464 an unchecked type conversion on the constantness of the expression
5465 to ensure the correct value for 'Constrained when passing components
5466 of view-converted class-wide objects.
5467
54682003-11-24 Robert Dewar <dewar@gnat.com>
5469
5470 * par-load.adb (Load): Improve handling of misspelled and missing units
5471 Removes several cases of compilation abandoned messages
5472
5473 * lib.adb: (Remove_Unit): New procedure
5474
5475 * lib.ads: (Remove_Unit): New procedure
5476
5477 * lib-load.adb: Minor reformatting
5478
54792003-11-24 Vincent Celier <celier@gnat.com>
5480
fbf3e0dd 5481 * make.adb:
6c1e24d3
AC
5482 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
5483 (Marking_Label): Label to mark processed source files. Incremented for
5484 each executable.
5485 (Gnatmake): Increase Marking_Labet for each executable
5486 (Is_Marked): Compare against marking label
5487 (Mark): Mark with marking label
5488
54892003-11-24 Jerome Guitton <guitton@act-europe.fr>
5490
fbf3e0dd 5491 * s-thread.ads:
6c1e24d3
AC
5492 Move the declaration of the TSD for System.Threads to System.Soft_Links.
5493 Add some comments.
5494
5495 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
5496 (rts-cert): build a single relocatable object for the run-time lib.
5497 Fix perms.
5498
54992003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
5500
fbf3e0dd 5501 * Make-lang.in:
6c1e24d3
AC
5502 Use gnatls rather than gcc to obtain the location of GNAT RTL for
5503 crosstools build.
5504
55052003-11-24 Sergey Rybin <rybin@act-europe.fr>
5506
5507 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
5508 can not use it as before (that is, as a variable) when dumping it into
5509 the tree file. Add a local variable to store the result of this
5510 function and to be used as the string to be written into the tree.
5511
5512 * scn.adb (Initialize_Scanner): Add comments explaining the recent
5513 changes.
5514
5515 * sinput.adb (Source_First, Source_Last): In case of
5516 Internal_Source_File, replace returning attributes of
5517 Internal_Source_Ptr (which is wrong) with returning attributes of
5518 Internal_Source.
5519
55202003-11-24 Ed Schonberg <schonberg@gnat.com>
5521
fbf3e0dd 5522 * sem_ch3.adb:
6c1e24d3
AC
5523 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
5524 used for implicit concatenation operators.
5525 Code cleanup.
5526
fbf3e0dd 5527 * sem_elab.adb:
6c1e24d3
AC
5528 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
5529 task bodies that are in the scope of a Suppress pragma.
5530 (Check_A Call): Use the flag to prevent spurious elaboration checks.
5531
fbf3e0dd 5532 * sinfo.ads, sinfo.adb:
6c1e24d3
AC
5533 New flag No_Elaboration_Check on function/procedure calls, to properly
5534 suppress checks on calls in task bodies that are within a local suppress
5535 pragma.
5536
fbf3e0dd 5537 * exp_ch4.adb:
6c1e24d3
AC
5538 (Expand_Concatenate_Other): Use the proper integer type for the
5539 expression for the upper bound, to avoid universal_integer computations
5540 when possible.
5541
6f2aeb72
KC
55422003-11-21 Kelley Cook <kcook@gcc.gnu.org>
5543
5544 * .cvsignore: Delete.
5545
e9f85cd6
AS
55462003-11-21 Andreas Schwab <schwab@suse.de>
5547
5548 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
5549
4e074baf
VF
55502003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
5551
5552 * 5wsystem.ads: Enable zero cost exception.
5553
f1f9fe30
AC
55542003-11-21 Jerome Guitton <guitton@act-europe.fr>
5555
5556 * 5ztiitho.adb: Remove an unreferenced variable.
5557
55582003-11-21 Thomas Quinot <quinot@act-europe.fr>
5559
5560 * adaint.c: For FreeBSD, use mkstemp.
5561
55622003-11-21 Arnaud Charlet <charlet@act-europe.fr>
5563
5564 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
5565
55662003-11-21 Robert Dewar <dewar@gnat.com>
5567
5568 * bld.adb: Remove useless USE of gnatvsn
5569
5570 * gnatchop.adb: Minor reformatting
5571 Clean up version handling to be more consistent
5572
5573 * gnatxref.adb: Minor reformatting
5574
5575 * gprcmd.adb: Minor reformatting
5576 Fix output of copyright to be more consistent with other tools
5577
55782003-11-21 Vincent Celier <celier@gnat.com>
5579
5580 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
5581
55822003-11-21 Sergey Rybin <rybin@act-europe.fr>
5583
5584 * atree.adb (Initialize): Add initializations for global variables
5585 used in New_Copy_Tree.
5586
5587 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
5588 Internal_Source_File as the actual).
5589 Put the set of statements creating Any_Character before the set of
5590 statements creating Any_Array to have Any_Character fully initialized
5591 when it is used in creating Any_Array.
5592
5593 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
5594 not call Scan in case if the actual is Internal_Source_File
5595 Add 2003 to copyright note.
5596
5597 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
5598 processing Internal_Source_File.
5599
5600 * types.ads: Add the constant Internal_Source_File representing the
5601 source buffer for artificial source-code-like strings created within
5602 the compiler (the definition of Source_File_Index is changed).
5603
c5b2a8ae
AC
56042003-11-20 Arnaud Charlet <charlet@act-europe.fr>
5605
5606 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
5607 56system.ads: New file, FreeBSD version.
5608
a03ad584
JM
56092003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
5610
5611 * Make-lang.in (ada.extraclean): Delete.
5612
19f0526a
AC
56132003-11-19 Arnaud Charlet <charlet@act-europe.fr>
5614
5615 * gnatmem.adb: Clean up verbose output.
5616
5617 * gprcmd.adb: Change copyright to FSF.
5618
56192003-11-19 Vincent Celier <celier@gnat.com>
5620
5621 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
5622 and Version (ignored).
5623
5624 * symbols.ads: (Policy): New type
5625 (Initialize): New parameter Reference, Symbol_Policy and
5626 Library_Version.
5627 Remove parameter Force.
5628 Minor reformatting.
5629
5630 * snames.ads, snames.adbadb: New standard names
5631 Library_Reference_Symbol_File and Library_Symbol_Policy
5632
fbf3e0dd 5633 * mlib-prj.adb:
19f0526a
AC
5634 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
5635 project.
5636
fbf3e0dd 5637 * mlib-tgt.adb:
19f0526a
AC
5638 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
5639
5640 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
5641
5642 * prj.adb: (Project_Empty): New component Symbol_Data
5643
5644 * prj.ads: (Policy, Symbol_Record): New types
5645 (Project_Data): New component Symbol_Data
5646
fbf3e0dd 5647 * prj-attr.adb:
19f0526a
AC
5648 New attributes Library_Symbol_File, Library_Symbol_Policy and
5649 Library_Reference_Symbol_File.
5650
fbf3e0dd 5651 * prj-nmsc.adb:
19f0526a
AC
5652 (Ada_Check): When project is a Stand-Alone library project, process
5653 attribute Library_Symbol_File, Library_Symbol_Policy and
5654 Library_Reference_Symbol_File.
5655
5656 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
5657 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
5658 5sml-tgt.adb (Build_Dynamic_Library): New parameter
5659 Symbol_Data (ignored).
5660
5661 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
5662 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
5663 functions Option_File_Name and Version_String. Set new options of
5664 gnatsym related to symbol file, symbol policy and reference symbol
5665 file.
5666
fbf3e0dd 5667 * 5vsymbol.adb:
19f0526a
AC
5668 Extensive modifications to take into account the reference symbol file,
5669 the symbol policy, the library version and to put in the symbol file the
5670 minor and major IDs.
5671
5672 * bld.adb (Process_Declarative_Items): Put second argument of
5673 gprcmd to_absolute between single quotes, to avoid problems with
5674 Windows.
5675
5676 * bld-io.adb: Update Copyright notice.
5677 (Flush): Remove last character of a line, if it is a back slash, to
5678 avoid make problems.
5679
fbf3e0dd 5680 * gnatsym.adb:
19f0526a
AC
5681 Implement new scheme with reference symbol file and symbol policy.
5682
5683 * g-os_lib.ads: (Is_Directory): Clarify comment
5684
56852003-11-19 Robert Dewar <dewar@gnat.com>
5686
5687 * atree.adb: Move New_Copy_Tree global variables to head of package
5688
5689 * errout.adb: Minor reformatting
5690
56912003-11-19 Javier Miranda <miranda@gnat.com>
5692
5693 * sem_ch4.adb: (Diagnose_Call): Improve error message.
5694 Add reference to Ada0Y (AI-50217)
5695
5696 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
5697 sem_util.adb: Add reference to AI-50217
5698
5699 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
5700
5701 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
5702
5703 * sem_aggr.adb: Complete documentation of AI-287 changes
5704
5705 * par-ch4.adb: Document previous changes.
5706
5707 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
5708 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
5709 Ada0Y (AI-50217)
5710
5711 * exp_aggr.adb: Add references to AI-287 in previous changes
5712
57132003-11-19 Ed Schonberg <schonberg@gnat.com>
5714
fbf3e0dd 5715 * exp_ch6.adb:
19f0526a
AC
5716 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
5717 in the rewriting is the result of an inlined call.
5718
5719 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
5720 parameter is a type conversion, use original node to construct the
5721 post-call assignment, because expression may have been rewritten, e.g.
5722 if it is a packed array.
5723
fbf3e0dd 5724 * sem_attr.adb:
19f0526a
AC
5725 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
5726 body, just as it is in an instance.
5727 Categorization routines
5728
5729 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
5730 Instantiate_Object): Set proper sloc reference for message on missing
5731 actual.
5732
57332003-11-19 Thomas Quinot <quinot@act-europe.fr>
5734
5735 * Makefile.in: Add FreeBSD libgnat pairs.
5736
5737 * usage.adb: Fix typo in usage message.
5738
57392003-11-19 Jerome Guitton <guitton@act-europe.fr>
5740
5741 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
5742 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
5743 pragma Thread_Body.
5744 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
5745
5746 * s-thread.adb: This file is now a dummy implementation of
5747 System.Thread.
5748
57492003-11-19 Sergey Rybin <rybin@act-europe.fr>
5750
5751 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
5752
57532003-11-19 Emmanuel Briot <briot@act-europe.fr>
5754
5755 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
5756 instanciation references in the parent type description.
5757
0d77ab84
AC
57582003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5759
5760 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
5761
5762 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
5763 TYPE_PRECISION directly from esize.
5764
57652003-11-18 Thomas Quinot <quinot@act-europe.fr>
5766
fbf3e0dd 5767 * cstreams.c:
0d77ab84
AC
5768 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
5769
5770 * init.c: Initialization routines for FreeBSD
5771
5772 * link.c: Link info for FreeBSD
5773
5774 * sysdep.c: Add the case of FreeBSD
5775
cb7a5092
AC
57762003-11-17 Jerome Guitton <guitton@act-europe.fr>
5777
5778 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
5779 already called in System.Threads.
5780
5781 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
5782 environment task, as it has been moved to System.Threads.Initialization.
5783
57842003-11-17 Arnaud Charlet <charlet@act-europe.fr>
5785
5786 * adaint.c (__gnatlib_install_locks): Only reference
5787 __gnat_install_locks on VMS, since other platforms can avoid using
5788 --enable-threads=gnat
5789
57902003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5791
5792 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
5793
5794 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
5795 TYPE_PACKED_ARRAY_TYPE_P.
5796 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
5797
5798 Part of PR ada/12806
5799 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
5800 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
5801
58022003-11-17 Vincent Celier <celier@gnat.com>
5803
5804 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
5805 to False.
5806 Do not set exit status to Failure when Warning is True.
5807 (Gnatchop): Make errors "no compilation units found" and
5808 "no source files written" warnings only.
5809
5810 * make.adb (Gnatmake): When using a project file, set
5811 Look_In_Primary_Dir to False.
5812 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
5813 and Local_Configuration_Pragmas in the project where they are declared
5814 not an extending project which might have inherited them.
5815
5816 * osint.adb (Locate_File): If Name is already an absolute path, do not
5817 look for a directory.
5818
5819 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
5820 -gnats (Check_Syntax) is used, issue only a warning, not an error.
5821
5822 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
5823 in objects of type Variable_Value.
5824
5825 * prj.ads: (Variable_Value): New component Project
5826
5827 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
5828 is in a project extended by Project.
5829
5830 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
5831 Project of Variable_Values to this new parameter value.
5832 (Expression): Set component Project of Variable_Values.
5833 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
5834 Set the component Project in array elements.
5835
58362003-11-17 Sergey Rybin <rybin@act-europe.fr>
5837
5838 * errout.adb: (Initialize): Add initialization for error nodes.
5839
5840 * sem_ch12.adb (Initialize): Add missing initializations for
5841 Exchanged_Views and Hidden_Entities.
5842
58432003-11-17 Ed Schonberg <schonberg@gnat.com>
5844
5845 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
5846 already instantiated tree for use in subsequent inlining.
5847 (Analyze_Associations, Instantiate_Formal_Subprogram,
5848 Instantiate_Object): improve error message for mismatch in
5849 instantiations.
5850
5851 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
5852 instantiations of subprograms declared in instances.
5853
58542003-11-17 Javier Miranda <miranda@gnat.com>
5855
5856 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
5857 executed only under the Extensions_Allowed flag.
5858
58592003-11-17 Robert Dewar <dewar@gnat.com>
5860
5861 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
5862 zeroes suppressed.
5863 (Address_Image): Fix bug of returning 0x instead of 0x0
5864 Minor reformatting (function specs).
5865
5866 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
5867 (missed case of 33-63)
5868
5869 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
5870
5871 * s-thread.adb: Add comments for pragma Restriction
5872
5873 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
5874 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
5875
58762003-11-17 Ed Falis <falis@gnat.com>
5877
5878 * s-thread.adb: Added No_Tasking restriction for this implementation.
5879
58802003-11-17 Emmanuel Briot <briot@act-europe.fr>
5881
5882 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
5883 instanciation references in the parent type description.
5884
58852003-11-17 GNAT Script <nobody@gnat.com>
5886
5887 * Make-lang.in: Makefile automatically updated
5888
7d60db05
JM
58892003-11-16 Jason Merrill <jason@redhat.com>
5890
5891 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
5892 and TAGS files that include them for each front end.
5893
c0040397
AJ
58942003-11-14 Andreas Jaeger <aj@suse.de>
5895
a477ab83 5896 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
fbf3e0dd 5897 is the canonical version.
a477ab83
AJ
5898 * misc.c (gnat_handle_option): Likewise.
5899
c0040397
AJ
5900 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
5901
5902 * 5nsystem.ads: New file for x86_64-linux-gnu.
5903
95a6aaf9
AC
59042003-11-14 Arnaud Charlet <charlet@act-europe.fr>
5905
262cc585 5906 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
95a6aaf9 5907
4a4fe537
AC
5908 * comperr.adb: Fix logic in previous change.
5909
65356e64
AC
59102003-11-13 Vincent Celier <celier@gnat.com>
5911
5912 * 5bml-tgt.adb (Build_Dynamic_Library): Use
5913 Osint.Include_Dir_Default_Prefix instead of
5914 Sdefault.Include_Dir_Default_Name.
5915
5916 * gnatlbr.adb: Update Copyright notice
5917 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
5918 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
5919 instead of Sdefault.Object_Dir_Default_Name
5920
c0040397 5921 * gnatlink.adb:
65356e64
AC
5922 (Process_Binder_File): Never suppress the option following -Xlinker
5923
c0040397 5924 * mdll-utl.adb:
65356e64
AC
5925 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
5926 Sdefault.Object_Dir_Default_Name.
5927
c0040397 5928 * osint.ads, osint.adb:
65356e64
AC
5929 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
5930 Minor reformatting.
5931
5932 * vms_conv.ads: Minor reformating
5933 Remove GNAT STANDARD and GNAT PSTA
5934
c0040397 5935 * vms_conv.adb:
65356e64
AC
5936 Allow GNAT MAKE to have several files on the command line.
5937 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
5938 Sdefault.Object_Dir_Default_Name.
5939 Minor Reformating
5940 Remove data for GNAT STANDARD
5941
c0040397 5942 * vms_data.ads:
65356e64
AC
5943 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
5944 Remove data for GNAT STANDARD
5945 Remove options and documentation for -gnatwb/-gnatwB: these warning
5946 options no longer exist.
5947
59482003-11-13 Ed Falis <falis@gnat.com>
5949
5950 * 5zthrini.adb: (Init_RTS): Made visible
5951
c0040397 5952 * 5zthrini.adb:
65356e64
AC
5953 (Register): Removed unnecessary call to taskVarGet that checked whether
5954 an ATSD was already set as a task var for the argument thread.
5955
c0040397 5956 * s-thread.adb:
65356e64
AC
5957 Updated comment to reflect that this is a VxWorks version
5958 Added context clause for System.Threads.Initialization
5959 Added call to System.Threads.Initialization.Init_RTS
5960
59612003-11-13 Jerome Guitton <guitton@act-europe.fr>
5962
c0040397 5963 * 5zthrini.adb:
65356e64
AC
5964 (Init_RTS): New procedure, for the initialization of the run-time lib.
5965
c0040397 5966 * s-thread.adb:
65356e64
AC
5967 Remove dependancy on System.Init, so that this file can be used in the
5968 AE653 sequential run-time lib.
5969
59702003-11-13 Robert Dewar <dewar@gnat.com>
5971
5972 * bindgen.adb: Minor reformatting
5973
59742003-11-13 Ed Schonberg <schonberg@gnat.com>
5975
c0040397 5976 * checks.adb:
65356e64
AC
5977 (Apply_Discriminant_Check): Do no apply check if target type is derived
5978 from source type with no applicable constraint.
5979
c0040397 5980 * lib-writ.adb:
65356e64
AC
5981 (Ensure_System_Dependency): Do not apply the style checks that may have
5982 been specified for the main unit.
5983
c0040397 5984 * sem_ch8.adb:
65356e64
AC
5985 (Find_Selected_Component): Further improvement in error message, with
5986 RM reference.
5987
c0040397 5988 * sem_res.adb:
65356e64
AC
5989 (Resolve): Handle properly the case of an illegal overloaded protected
5990 procedure.
5991
59922003-11-13 Javier Miranda <miranda@gnat.com>
5993
c0040397 5994 * exp_aggr.adb:
65356e64
AC
5995 (Has_Default_Init_Comps): New function to check the presence of
5996 default initialization in an aggregate.
5997 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
5998 extension aggregate of a limited record. In addition, a new formal
5999 was added to do not initialize the record controller (if any) during
6000 this recursive expansion of ancestors.
6001 (Init_Controller): Add support for limited record components.
6002 (Expand_Record_Aggregate): In case of default initialized components
6003 convert the aggregate into a set of assignments.
6004
6005 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
6006 describing the new syntax.
6007 Nothing else needed to be done because this subprogram delegates part of
6008 its work to P_Precord_Or_Array_Component_Association.
6009 (P_Record_Or_Array_Component_Association): Give support to the new
6010 syntax for default initialization of components.
6011
c0040397 6012 * sem_aggr.adb:
65356e64
AC
6013 (Resolve_Aggregate): Relax the strictness of the frontend in case of
6014 limited aggregates.
6015 (Resolve_Record_Aggregate): Give support to default initialized
6016 components.
6017 (Get_Value): In case of default initialized components, duplicate
6018 the corresponding default expression (from the record type
6019 declaration). In case of default initialization in the *others*
6020 choice, do not check that all components have the same type.
6021 (Resolve_Extension_Aggregate): Give support to limited extension
6022 aggregates.
6023
c0040397 6024 * sem_ch3.adb:
65356e64
AC
6025 (Check_Initialization): Relax the strictness of the front-end in case
6026 of aggregate and extension aggregates. This test is now done in
6027 Get_Value in a per-component manner.
6028
6029 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
6030 expression corresponds to a limited aggregate. This test is now done
6031 in Get_Value.
6032
6033 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
6034 Box_Present flag.
6035
6036 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
6037 present in an N_Component_Association node
6038
60392003-11-13 Thomas Quinot <quinot@act-europe.fr>
6040
6041 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
6042 type-conformant entry only if they are homographs.
6043
60442003-11-13 GNAT Script <nobody@gnat.com>
6045
6046 * Make-lang.in: Makefile automatically updated
6047
49add53f
RO
60482003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6049
6050 * adadecode.c: Use <> form of include for ctype.h.
6051 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
6052
94bae1cc
RO
60532003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6054
6055 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
6056 Works around PR middle-end/6552.
6057
463f452c
AC
60582003-11-10 Ed Falis <falis@gnat.com>
6059
6060 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
6061
6062 * 5zinit.adb: (Install_Handler): Moved back to spec
6063 (Install_Signal_Handlers): Deleted
6064
6065 * 5zthrini.adb: Added context clause for System.Storage_Elements
6066 (Register): Only handles creation of taskVar; initialization moved to
6067 Thread_Body_Enter.
6068 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
6069 Added declaration of environment task secondary stack and
6070 initialization.
6071
6072 * s-thread.adb: Implement bodies for thread body processing
6073
c0040397 6074 * s-thread.ads:
463f452c
AC
6075 Added comment identifying supported targets for pragma Thread_Body.
6076
60772003-11-10 Pascal Obry <obry@gnat.com>
6078
6079 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
6080 GNAT_MAX_PATH_LEN.
6081
c0040397 6082 * s-fileio.adb:
463f452c
AC
6083 (Open): Properly check for string length before copying into the buffer.
6084 Raises Name_Error if buffer is too small. Note that this was a potential
6085 buffer overflow.
6086
60872003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
6088
6089 * bindgen.adb, comperr.adb: Code clean ups.
6090 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
6091
60922003-11-10 Sergey Rybin <rybin@act-europe.fr>
6093
6094 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
6095
60962003-11-10 Vincent Celier <celier@gnat.com>
6097
c0040397 6098 * gprcmd.adb:
463f452c
AC
6099 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
6100 installation.
6101
6102 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
6103
6104 * prj.adb: (Project_Empty): Add new boolean component Virtual
6105
6106 * prj.ads: (Virtual_Prefix): New constant string
6107 (Project_Data): New boolean component Virtual
6108
6109 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
6110 a library project is extended by a virtual extending project.
6111
c0040397 6112 * prj-part.adb:
463f452c
AC
6113 Modifications throughout to implement extending-all project, including:
6114 (Virtual_Hash, Processed_Hash): New hash tables
6115 (Create_Virtual_Extending_Project): New procedure
6116 (Look_For_Virtual_Projects_For): New procedure
6117
c0040397 6118 * prj-proc.adb:
463f452c
AC
6119 (Process): After checking the projects, if main project is an
6120 extending-all project, set the object directory of all virtual extending
6121 project to the object directory of the main project.
6122 Adjust error message when a virtual extending project has the same
6123 object directory as an project being extended.
6124 (Recursive_Process): If name starts with the virtual prefix, set Virtual
6125 to True in the project data.
6126
c0040397 6127 * prj-tree.adb:
463f452c
AC
6128 (Default_Project_Node): Add new boolean component Extending_All
6129 (Is_Extending_All): New function
6130 (Set_Is_Extending_All): New procedure
6131
6132 * prj-tree.ads: (Is_Extending_All): New function
6133 (Set_Is_Extending_All): New procedure
6134 (Project_Node_Record): New boolean component Extending_All
6135
6136 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
6137
c0040397 6138 * vms_data.ads:
463f452c
AC
6139 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
6140
6141 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
6142 "gprcmd prefix" to define it.
6143
61442003-11-10 Thomas Quinot <quinot@act-europe.fr>
6145
6146 * einfo.ads: Fix a typo and remove an extraneous word in comments.
6147
c0040397 6148 * lib-load.adb:
463f452c
AC
6149 (Create_Dummy_Package_Unit): Set the scope of the entity for the
6150 created dummy package to Standard_Standard, not to itself, to
6151 defend other parts of the front-end against encoutering a cycle in
6152 the scope chain.
6153
c0040397 6154 * sem_ch10.adb:
463f452c
AC
6155 (Analyze_With_Clause): When setting the entities for the successive
6156 N_Expanded_Names that constitute the name of a child unit, do not
6157 attempt to go further than Standard_Standard in the chain of scopes.
6158 This case arises from the placeholder units created by
6159 Create_Dummy_Package_Unit in the case of a with_clause for a
6160 nonexistent child unit.
6161
61622003-11-10 Ed Schonberg <schonberg@gnat.com>
6163
c0040397 6164 * exp_ch6.adb:
463f452c
AC
6165 (Expand_Thread_Body): Place subprogram on scope stack, so that new
6166 declarations are given the proper scope.
6167
c0040397 6168 * sem_ch13.adb:
463f452c
AC
6169 (Check_Expr_Constants): Reject an expression that contains a constant
6170 created during expansion, and that appears after the object to which
6171 the address clause applies.
6172
6173 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
6174 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
6175 that uses 'Range of a function call with controlled components, so
6176 that the function result can be finalized before starting the loop.
6177
c0040397 6178 * sem_ch8.adb:
463f452c
AC
6179 (Find_Selected_Component): Improve error message when prefix is
6180 an implicit dereference of an incomplete type.
6181
61822003-11-10 Robert Dewar <dewar@gnat.com>
6183
6184 * opt.ads: New Print_Standard flag for -gnatS switch
6185
6186 * sem_ch13.adb: Remove some additional checks for unaligned arrays
6187
6188 * cstand.adb (Create_Standard): Print out package standard if -gnatS
6189 switch set
6190
6191 * debug.adb: Update doc for -gnatds to discuss relationship with new
6192 -gnatS flag
6193
6194 * sinfo.adb: Add new field Entity_Or_Associated_Node
6195
6196 * sinfo.ads: Add new field Entity_Or_Associated_Node
6197 Update documentation for Associated_Node and Entity fields to clarify
6198 relationship and usage.
6199
c0040397 6200 * sprint.adb:
463f452c
AC
6201 (Write_Id): Properly process Associated_Node field in generic template
6202
c0040397 6203 * switch-c.adb:
463f452c
AC
6204 Recognize new -gnatS switch for printing package Standard
6205 This replaces gnatpsta
6206
c0040397 6207 * usage.adb:
463f452c
AC
6208 Add line for new -gnatS switch for printing package Standard
6209 This replaces gnatpsta
6210
c77c5f2e
AJ
62112003-11-10 Andreas Jaeger <aj@suse.de>
6212
6213 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
6214 integer.
6215
5c90f17f
AC
62162003-11-10 Arnaud Charlet <charlet@act-europe.fr>
6217
6218 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
6219 by gnat1.
6220
139f0d1e
AC
62212003-11-10 Arnaud Charlet <charlet@act-europe.fr>
6222
6223 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
6224 no longer needed.
6225
6226 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
6227
6228 * sysdep.c: Add handling of cygwin.
6229
f3e4c05c
GS
62302003-11-10 GNAT Script <nobody@gnat.com>
6231
6232 * Make-lang.in: Makefile automatically updated
6233
2cdc8909
AC
62342003-11-10 Arnaud Charlet <charlet@act-europe.fr>
6235
6236 PR 12950
6237 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
6238 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
6239 Replace GNAT_ROOT by GCC_ROOT.
6240
6241 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
6242
37783865
ZW
62432003-11-06 Zack Weinberg <zack@codesourcery.com>
6244
6245 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
6246 and update for changed meaning of GET_MODE_BITSIZE.
6247
6bc1c519
AC
62482003-11-04 Doug Rupp <rupp@gnat.com>
6249
6250 * sysdep.c: Problem discovered during IA64 VMS port.
6251 [VMS] #include <unixio.h> to get proper prototypes.
6252
37783865 6253 * adaint.c:
6bc1c519
AC
6254 Issues discovered/problems fixed during IA64 VMS port.
6255 [VMS] #define _POSIX_EXIT for proper semantics.
6256 [VMS] #include <unixio.h> for proper prototypes.
6257 [VMS] (fork): #define IA64 version.
6258 (__gnat_os_exit): Remove unnecessary VMS specific code.
6259
62602003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6261
6262 Part of PR ada/12806
6263
6264 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
6265 tree, not integer.
6266
37783865 6267 * decl.c:
6bc1c519
AC
6268 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
6269 not integer.
6270
6271 * targtyps.c, decl.c, misc.c,
6272 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
6273 routines to work around change in FP sizing semantics in GCC.
6274
37783865 6275 * utils.c:
6bc1c519
AC
6276 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
6277
6278 * gigi.h: (enumerate_modes): New function.
6279
6280 * Make-lang.in: (ada/misc.o): Add real.h.
6281
6282 * misc.c: (enumerate_modes): New function.
6283
62842003-11-04 Robert Dewar <dewar@gnat.com>
6285
6286 * 3vtrasym.adb: Minor reformatting
6287 Use terminology encoded/decoded name, rather than C++ specific notion
6288 of mangling (this is the terminology used throughout GNAT).
6289
6290 * einfo.h: Regenerated
6291
6292 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
6293
37783865 6294 * exp_ch6.adb:
6bc1c519
AC
6295 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
6296
6297 * par-prag.adb: Add dummy entry for Thread_Body pragma
6298
37783865 6299 * rtsfind.ads:
6bc1c519
AC
6300 Add entries for System.Threads entities for thread body processing
6301
37783865 6302 * sem_attr.adb:
6bc1c519
AC
6303 (Analyze_Pragma, Access attributes): Check these are not applied to a
6304 thread body, since this is not permitted
6305
6306 * sem_prag.adb: Add processing for Thread_Body pragma.
6307 Minor comment fix.
6308
37783865 6309 * sem_res.adb:
6bc1c519
AC
6310 (Resolve_Call): Check for incorrect attempt to call a thread body
6311 procedure with a direct call.
6312
6313 * snames.ads, snames.adb: Add entry for Thread_Body pragma
6314 Add names associated with thread body expansion
6315
6316 * snames.h: Add entry for Thread_Body pragma
6317
6318 * s-thread.adb: Add entries for thread body processing
6319 These are dummy bodies so far
6320
6321 * s-thread.ads: Add documentation on thread body handling.
6322 Add entries for thread body processing.
6323
63242003-11-04 Javier Miranda <miranda@gnat.com>
6325
37783865 6326 * sem_ch10.adb:
6bc1c519
AC
6327 (Build_Limited_Views): Return after posting an error in case of limited
6328 with_clause on subprograms, generics, instances or generic renamings
6329 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
6330 on subprograms, generics, instances or generic renamings
6331
63322003-11-04 Arnaud Charlet <charlet@act-europe.fr>
6333
6334 * raise.c (setup_to_install): Correct mistake in last revision; two
6335 arguments out of order.
6336
6337 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
6338 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
6339 notice, missed in previous change.
6340 Remove trailing blanks and other style errors introduced in previous
6341 change.
6342
63432003-11-04 Olivier Hainque <hainque@act-europe.fr>
6344
6345 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
6346 rid of the wrapper for a LJM type, ensuring we don't do that if the
6347 field is addressable. This avoids potential low level type view
6348 mismatches later on, for instance in a by-reference argument passing
6349 process.
6350
63512003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6352
6353 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
6354 aligned at byte boundary.
6355
63562003-11-04 Joel Brobecker <brobecker@gnat.com>
6357
6358 * decl.c (components_to_record): Do not delete the empty variants from
6359 the end of the union type.
6360
63612003-11-04 Ed Schonberg <schonberg@gnat.com>
6362
6363 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
6364 operation for a derived type, an explicit declaration may use a local
6365 subtype of Boolean.
6366
63672003-11-04 Vincent Celier <celier@gnat.com>
6368
6369 * make.adb (Gnatmake): Allow main sources on the command line with a
6370 library project when it is only for compilation (no binding or
6371 linking).
6372
487e9fff
RO
63732003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6374
6375 * Makefile.in: Remove many duplicate variables.
6376
63069342
KC
63772003-11-03 Kelley Cook <kcook@gcc.gnu.org>
6378
6379 * Make-lang.in (dvi): Move targets to $(docobjdir).
6380 (gnat_ug_vms.dvi): Simplify rule and adjust target.
6381 (gnat_ug_wnt.dvi): Likewise.
6382 (gnat_ug_unx.dvi): Likewise.
6383 (gnat_ug_vxw.dvi): Likewise.
6384 (gnat_rm.dvi): Likewise.
6385 (gnat-style.dvi): Likewise.
6386
c2edc52b
KC
63872003-10-31 Kelley Cook <kcook@gcc.gnu.org>
6388
6389 * gigi.h: Missed commit from update for C90.
6390
14df9585
KC
63912003-10-31 Kelley Cook <kcook@gcc.gnu.org>
6392
6393 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
6394
acd8e984
AS
63952003-10-31 Andreas Schwab <schwab@suse.de>
6396
6397 * raise.c (get_action_description_for): Fix typo in last change.
6398
b2c62c45
NN
63992003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
6400
6401 PR ada/12761
6402 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
6403 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
6404
9373164a
KC
64052003-10-30 Kelley Cook <kcook@gcc.gnu.org>
6406
6407 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
6408 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
6409 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
6410 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
6411 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
6412
bde58e32
AC
64132003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
6414
37783865 6415 * 3vtrasym.adb:
bde58e32
AC
6416 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
6417 numbers when symbol name is too long.
6418
64192003-10-30 Ed Falis <falis@gnat.com>
6420
6421 * g-signal.ads, g-signal.adb: New files
6422
6423 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
6424
6425 * Makefile.rtl: Introduce GNAT.Signals
6426
64272003-10-30 Robert Dewar <dewar@gnat.com>
6428
6429 * freeze.adb: Minor reformatting
6430
6431 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
6432
37783865
ZW
6433 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
6434 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
bde58e32
AC
6435 New handling of Id_Check parameter to improve recognition of keywords
6436 used as identifiers.
6437 Update copyright notice to include 2003
6438
657a9dd9
AC
64392003-10-29 Robert Dewar <dewar@gnat.com>
6440
6441 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
6442 sem_ch10.adb: Minor reformatting
6443
6444 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
6445 (Expand_Assign_Record): Test right hand side for bit unaligned as well
6446
64472003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
6448
37783865 6449 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
657a9dd9
AC
6450 Support for TBK$SYMBOLIZE-based symbolic traceback.
6451
64522003-10-29 Jose Ruiz <ruiz@act-europe.fr>
6453
37783865 6454 * exp_disp.adb:
657a9dd9
AC
6455 Revert previous change, that did not work well when pragma No_Run_Time
6456 was used in conjunction with a run-time other than ZFP.
6457
64582003-10-29 Vincent Celier <celier@gnat.com>
6459
37783865 6460 * make.adb:
657a9dd9
AC
6461 (Gnatmake): When there are no Ada mains in attribute Main, disable the
6462 bind and link steps only is switch -z is not used.
6463
64642003-10-29 Arnaud Charlet <charlet@act-europe.fr>
6465
6466 * Makefile.generic: Remove duplicated setting of CC.
6467
6468 * Makefile.prolog: Set CC to gcc by default, to override make's
6469 default (cc).
6470
6471 * einfo.h: Regenerated.
6472
64732003-10-29 Ed Schonberg <schonberg@gnat.com>
6474
6475 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
6476 current body, after compiling subunit.
6477
6478 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
6479 when in deleted code, because gigi needs properly ordered freeze
6480 actions to annotate types.
6481
6482 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
6483 prevent the premature freezing of record type that contains
6484 subcomponents with a private type that does not yet have a completion.
6485
64862003-10-29 Javier Miranda <miranda@gnat.com>
6487
37783865 6488 * sem_ch12.adb:
657a9dd9
AC
6489 (Analyze_Package_Instantiation): Check that instances can not be used in
6490 limited with_clauses.
6491
37783865 6492 * sem_ch8.adb:
657a9dd9
AC
6493 (Analyze_Package_Renaming): Check that limited withed packages cannot
6494 be renamed. Improve text on error messages related to limited
6495 with_clauses.
6496
6497 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
6498
6499 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
6500 Update copyright notice.
6501
6502 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
6503 (Install_Limited_Context_Clauses): New subprogram that isolates all the
6504 checks required for limited context_clauses and installs the limited
6505 view.
6506 (Install_Limited_Withed_Unit): Complete its documentation.
6507 (Analyze_Context): Check that limited with_clauses are only allowed in
6508 package specs.
6509 (Install_Context): Call Install_Limited_Context_Clauses after the
6510 parents have been installed.
6511 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
6512 package as 'From_With_Type'; this mark indicates that the limited view
6513 is installed. Used to check bad usages of limited with_clauses.
6514 (Build_Limited_Views): Do not add shadow entities to the scope's list
6515 of entities. Do not add real entities to the Non_Limited_Views chain.
6516 Improve error notification.
6517 (Remove_Context_Clauses): Remove context clauses in two phases:
6518 limited views first and regular views later (to maintain the
6519 stack model).
6520 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
6521 its visible entities.
6522
65232003-10-29 Thomas Quinot <quinot@act-europe.fr>
6524
6525 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
6526 with any type that Is_Fixed_Point_Type.
6527
6528 * sinfo.ads: Fix documentation for Associated_Node attribute.
6529
65302003-10-29 Sergey Rybin <rybin@act-europe.fr>
6531
6532 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
6533 both '-gnatc' and '-gnatt' are specified.
6534
6535 * atree.adb (Initialize): Add initialization for Node_Count (set to
6536 zero).
6537
65382003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6539
6540 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
6541 do not consider as Pure.
6542
6543 Part of implementation of function-at-a-time:
6544
6545 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
6546 (tree_transform): Add new argument to build_component_ref.
6547 (tree_transform, case N_Assignment_Statement): Make and return an
6548 EXPR_STMT.
6549 (tree_transform): If result IS_STMT, set flags and return it.
6550 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
6551
6552 * utils2.c (build_simple_component_ref, build_component_ref): Add new
6553 arg, NO_FOLD_P.
6554 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
6555 (build_allocator): Likewise.
6556
6557 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
6558 Add new arg to build_component_ref.
6559 (maybe_unconstrained_array, unchecked_convert): Likewise.
6560
6561 * ada-tree.def (EXPR_STMT): New code.
6562
6563 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
6564
6565 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
6566 build_component_ref calls.
6567
6568 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
6569
6570 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
6571 (build_component_ref): Add new argument, NO_FOLD_P.
6572
ecad994d
AC
65732003-10-27 Arnaud Charlet <charlet@act-europe.fr>
6574
6575 * Makefile.generic: Add missing substitution on object_deps handling.
6576
6577 PR ada/5909:
6578 * Make-lang.in (check-ada): Enable ACATS test suite.
6579
65802003-10-27 Robert Dewar <dewar@gnat.com>
6581
37783865 6582 * exp_ch3.adb:
ecad994d
AC
6583 (Freeze_Array_Type): We do not need an initialization routine for types
6584 derived from String or Wide_String. They should be treated the same
6585 as String and Wide_String themselves. This caused problems with the
6586 use of Initialize_Scalars.
6587
37783865 6588 * exp_ch5.adb:
ecad994d
AC
6589 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
6590 composites. This allows use of component clauses that are not byte
6591 aligned.
6592
37783865 6593 * sem_prag.adb:
ecad994d
AC
6594 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
6595 is an attempt to pack an array of atomic objects.
6596
6597 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
6598
65992003-10-27 Pascal Obry <obry@gnat.com>
6600
37783865 6601 * g-dirope.adb:
ecad994d
AC
6602 (Basename): Check for drive letters in a pathname only on DOS based OS.
6603
66042003-10-27 Vincent Celier <celier@gnat.com>
6605
37783865 6606 * make.adb:
ecad994d
AC
6607 (Gnatmake): When unable to change dir to the object dir, display the
6608 content of the parent dir of the obj dir, to try to understand why this
6609 happens.
6610
66112003-10-27 GNAT Script <nobody@gnat.com>
6612
6613 * Make-lang.in: Makefile automatically updated
6614
66152003-10-27 Ed Schonberg <schonberg@gnat.com>
6616
37783865 6617 * sem_ch12.adb:
ecad994d
AC
6618 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
6619 should not be done in Save/Restore_Scope_Stack, because it is performed
6620 locally.
6621
37783865 6622 * sem_ch8.adb:
ecad994d
AC
6623 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
6624 whether use clauses should be removed/restored.
6625
37783865 6626 * sem_ch8.ads:
ecad994d
AC
6627 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
6628 whether use clauses should be removed/restored.
6629
b6b3c138
AJ
66302003-10-26 Andreas Jaeger <aj@suse.de>
6631
6632 * Makefile.in: Remove duplicated lines.
6633
b6d83931
AC
66342003-10-24 Arnaud Charlet <charlet@act-europe.fr>
6635
6636 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
6637 minimize the differences with ACT tree.
6638
6639 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
6640 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
6641 Gnatvsn.Gnat_Static_Version_String to reduce differences between
6642 ACT and FSF trees.
6643
66442003-10-24 Pascal Obry <obry@gnat.com>
6645
6646 * adadecode.c (ostrcpy): New function.
6647 (__gnat_decode): Use ostrcpy of strcpy.
6648 (has_prefix): Set first parameter a const.
6649 (has_suffix): Set first parameter a const.
6650 Update copyright notice. Fix source name in header.
6651 Removes a trailing space.
6652 PR ada/12014.
6653
66542003-10-24 Jose Ruiz <ruiz@act-europe.fr>
6655
b6b3c138 6656 * exp_disp.adb:
b6d83931
AC
6657 Remove the test against being in No_Run_Time_Mode before generating a
6658 call to Register_Tag. It is redundant with the test against the
6659 availability of the function Register_Tag.
6660
66612003-10-24 Vincent Celier <celier@gnat.com>
6662
6663 * g-catiio.adb: (Month_Name): Correct spelling of February
6664
6665 * make.adb: (Mains): New package
6666 (Initialize): Call Mains.Delete
6667 (Gnatmake): Check that each main on the command line is a source of a
6668 project file and, if there are several mains, each of them is a source
6669 of the same project file.
6670 (Gnatmake): When a foreign language is specified in attribute Languages,
6671 no main is specified on the command line and attribute Mains is not
6672 empty, only build the Ada main. If there is no Ada main, just compile
6673 the Ada sources and their closure.
6674 (Gnatmake): If a main is specified on the command line with directory
6675 information, check that the source exists and, if it does, that the path
6676 is the actual path of a source of a project.
6677
b6b3c138 6678 * prj-env.adb:
b6d83931
AC
6679 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
6680 Full_Path is True, return the full path instead of the simple file name.
6681 (Project_Of): New function
6682
b6b3c138 6683 * prj-env.ads:
b6d83931
AC
6684 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
6685 defaulted to False.
6686 (Project_Of): New function
6687
66882003-10-24 Arnaud Charlet <charlet@act-europe.fr>
6689
b6b3c138 6690 * Makefile.generic:
b6d83931
AC
6691 Ensure objects of main project are always checked and rebuilt if needed.
6692 Set CC to gcc by default.
6693 Prepare new handling of link by creating a global archive (not activated
6694 yet).
6695
6696 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
6697 stringt.h: Update copyright notice. Remove trailing blanks.
6698 Fix source name in header.
6699
67002003-10-24 Robert Dewar <dewar@gnat.com>
6701
6702 * sem_ch12.adb: Minor reformatting
6703
b6b3c138 6704 * sem_ch3.adb:
b6d83931
AC
6705 Minor reformatting (including new function return style throughout)
6706
b6b3c138 6707 * sem_ch3.ads:
b6d83931
AC
6708 Minor reformatting (including new function return style throughout)
6709
67102003-10-24 Arnaud Charlet <charlet@act-europe.fr>
6711
6712 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
6713 stringt.h: Update copyright notice. Remove trailing blanks.
6714 Fix source name in header.
6715
67162003-10-24 GNAT Script <nobody@gnat.com>
6717
6718 * Make-lang.in: Makefile automatically updated
6719
b4e2d709
NN
67202003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
6721
6722 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
6723 stringt.h: Convert to ISO C90 declarations and definitions.
6724
9d7d51be
AC
67252003-10-23 Thomas Quinot <quinot@act-europe.fr>
6726
6727 PR ada/11978:
6728 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
6729 External_Tag attribute definition clauses.
6730
67312003-10-23 Ed Schonberg <schonberg@gnat.com>
6732
6733 PR ada/7613:
6734 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
6735 child unit, generate a fully qualified name to avoid spurious errors
6736 when the context contains renamings of different child units with
6737 the same simple name.
6738
6739 * exp_dbug.ads: Add documentation on name qualification for renamings
6740 of child units.
6741
67422003-10-23 Robert Dewar <dewar@gnat.com>
6743
6744 * g-regpat.ads, g-regpat.adb: Minor reformatting
6745
67462003-10-23 Jose Ruiz <ruiz@act-europe.fr>
6747
6748 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
6749
67502003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6751
6752 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
6753 Machine call.
6754
6755 * urealp.h: (Machine): Update to proper definition.
6756
6d244bbe
AC
67572003-10-23 Arnaud Charlet <charlet@act-europe.fr>
6758
6759 * init.c, adaint.c: Minor reformatting.
6760
8f4eb34b
DS
67612003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
6762
6d244bbe 6763 * adaint.c (w32_epoch_offset): Define static const at file level.
8f4eb34b
DS
6764 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
6765 rather than t_create, t_access in call to GetFileTime. Use union
6766 to convert between FILETIME and unsigned long long.
6767 (__gnat_file_time_name): Test for invalid file handle.
6768 (__gnat_set_filetime_name): Support win32 targets using
6769 w32api SetFileTime.
6770
25412599
DS
67712003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
6772
6773 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
6774
6775 * ctrl_c.c (__gnat_int_handler): Remove declaration.
6776
6777 * decl.c (creat_concat_name): Const-ify prefix.
6778
6779 * adaint.c: Include ctype.h if __MINGW32__.
6780 (__gnat_readlink): Mark arguments as possibly unused.
6781 (__gnat_symlink): Likewise.
6782 (__gnat_is_symbolic_link): Likewise.
6783 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
6784 declaration
b6b3c138 6785 (__gnat_file_time_name): Don't declare struct stat statbuf when
25412599
DS
6786 not needed.
6787 (__gnat_is_absolute_path): Add parenthesis around condition of
6788 'if' statement to avoid warning.
6789 (__gnat_plist_init): Specify void as parameter.
6790 (plist_enter): Likewise.
6791 (plist_leave): Likewise.
6792 (remove_handle): Make static. Initialize prev.
6793
698a5e79
AC
67942003-10-22 Arnaud Charlet <charlet@act-europe.fr>
6795
6d244bbe 6796 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
698a5e79
AC
6797 * cstreams.c (__gnat_full_name): Minor improvements and clean up
6798 of previous change.
6799
e97c30aa
RO
68002003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6801
6802 * tracebak.c (MAX): Avoid redefinition warning.
6803
6804 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
6805 Change msg to const char *.
6806 (__gnat_install_handler): Remove ss, unused.
6807 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
6808 to const char *.
6809 * cstreams.c (__gnat_full_name): Declare p only when used.
6810 (__gnat_full_name) [sgi] Return buffer.
6811
65f1ebd1
AC
68122003-10-22 Arnaud Charlet <charlet@act-europe.fr>
6813
6814 * mingw32.h: New file.
0c644933
AC
6815 * gnat_wrapper.adb: New file.
6816
6d244bbe 68172003-10-22 Jerome Roussel <roussel@act-europe.fr>
0c644933
AC
6818
6819 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
6820 string match a pre compiled regular expression (the corresponding
6821 version of the function working on a raw regular expression)
6822 Fix typos in various comments
6823 Update copyright notice in spec
6824
6d244bbe 68252003-10-21 Gary Dismukes <dismukes@gnat.com>
0c644933 6826
b6b3c138 6827 * exp_ch3.adb:
0c644933
AC
6828 (Component_Needs_Simple_Initialization): Return False when the type is a
6829 packed bit array. Revise spec comments to document this case.
6830
b6b3c138 6831 * exp_prag.adb:
0c644933
AC
6832 (Expand_Pragma_Import): Set any expression on the imported object to
6833 empty to avoid initializing imported objects (in particular this
6834 covers the case of zero-initialization of bit arrays).
6835 Update copyright notice.
6836
6d244bbe 68372003-10-21 Ed Schonberg <schonberg@gnat.com>
0c644933 6838
b6b3c138 6839 * sem_ch12.adb:
0c644933
AC
6840 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
6841 a subunit is missing.
6842 (Instantiate_Subprogram_Body): If body of function is missing, set type
6843 of return expression explicitly in dummy body, to prevent cascaded
6844 errors when a subunit is missing.
6845 Fixes PR 5677.
6846
b6b3c138 6847 * sem_ch3.adb:
0c644933
AC
6848 (Access_Subprogram_Declaration): Verify that return type is valid.
6849 Fixes PR 8693.
6850
b6b3c138 6851 * sem_elab.adb:
0c644933
AC
6852 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
6853 generic.
6854 Fixes PR 12318.
6855
b6b3c138 6856 * sem_util.adb:
0c644933
AC
6857 (Corresponding_Discriminant): If the scope of the discriminant is a
6858 private type without discriminant, use its full view.
6859 Fixes PR 8247.
65f1ebd1 6860
fbf5a39b
AC
68612003-10-21 Arnaud Charlet <charlet@act-europe.fr>
6862
6863 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
6864 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
6865 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
6866 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
6867 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
6868 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
6869 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
6870 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
6871 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
6872 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
6873 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
6874 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
6875 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
6876 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
6877 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
6878 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
6879 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
6880 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
6881 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
6882 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
6883 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
6884 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
6885 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
6886 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
6887 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
6888 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
6889 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
6890 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
6891 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
6892 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
6893 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
6894 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
6895 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
6896 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
6897 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
6898 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
6899 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
6900 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
6901 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
6902 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
6903 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
6904 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
6905 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
6906 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
6907 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
6908 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
6909 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
6910 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
6911 vms_conv.ads, vms_conv.adb, vms_data.ads,
6912 vxaddr2line.adb: Files added. Merge with ACT tree.
6913
6914 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
6915 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
6916 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
6917 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
6918 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
6919 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
6920 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
6921 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
6922 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
6923 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
6924
6925 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
6926 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
6927 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
6928 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
6929 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
6930 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
6931 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
6932 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
6933 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
6934 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
6935 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
6936 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
6937 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
6938 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
6939 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
6940 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
6941 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
6942 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
6943 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
6944 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
6945 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
6946 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
6947 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
6948 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
6949 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
6950 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
6951 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
6952 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
6953 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
6954 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
6955 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
6956 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
6957 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
6958 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
6959 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
6960 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
6961 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
6962 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
6963 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
6964 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
6965 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
6966 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
6967 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
6968 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
6969 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
6970 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
6971 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
6972 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
6973 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
6974 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
6975 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
6976 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
6977 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
6978 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
6979 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
6980 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
6981 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
6982 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
6983 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
6984 checks.adb, checks.ads, cio.c, comperr.adb,
6985 comperr.ads, csets.adb, cstand.adb, cstreams.c,
6986 debug_a.adb, debug_a.ads, debug.adb, decl.c,
6987 einfo.adb, einfo.ads, errout.adb, errout.ads,
6988 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
6989 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
6990 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
6991 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
6992 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
6993 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
6994 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6995 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
6996 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
6997 fe.h, fmap.adb, fmap.ads, fname.adb,
6998 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
6999 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
7000 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
7001 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
7002 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
7003 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
7004 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
7005 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
7006 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
7007 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
7008 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
7009 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
7010 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
7011 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
7012 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
7013 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
7014 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
7015 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
7016 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
7017 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
7018 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
7019 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
7020 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
7021 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
7022 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
7023 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
7024 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
7025 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
7026 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
7027 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
7028 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
7029 layout.adb, lib.adb, lib.ads, lib-list.adb,
7030 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
7031 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
7032 link.c, live.adb, make.adb, make.ads,
7033 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
7034 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
7035 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
7036 misc.c, mkdir.c, mlib.adb, mlib.ads,
7037 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
7038 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
7039 namet.adb, namet.ads, namet.h, nlists.ads,
7040 nlists.h, nmake.adt, opt.adb, opt.ads,
7041 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
7042 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
7043 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
7044 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
7045 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
7046 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
7047 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
7048 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
7049 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
7050 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
7051 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
7052 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
7053 prj-util.adb, prj-util.ads, raise.c, raise.h,
7054 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
7055 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
7056 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
7057 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
7058 scans.ads, scn.adb, scn.ads, s-crc32.adb,
7059 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
7060 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
7061 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
7062 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
7063 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
7064 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
7065 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
7066 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
7067 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
7068 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
7069 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
7070 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
7071 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
7072 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
7073 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
7074 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
7075 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
7076 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
7077 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
7078 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
7079 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
7080 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
7081 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
7082 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
7083 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
7084 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
7085 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
7086 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
7087 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
7088 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
7089 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
7090 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
7091 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
7092 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
7093 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
7094 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
7095 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
7096 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
7097 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
7098 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
7099 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
7100 stringt.adb, stringt.ads, stringt.h, style.ads,
7101 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
7102 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
7103 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
7104 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
7105 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
7106 table.adb, table.ads, targparm.adb, targparm.ads,
7107 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
7108 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
7109 ttypes.ads, types.ads, types.h, uintp.adb,
7110 uintp.ads, uintp.h, uname.adb, urealp.adb,
7111 urealp.ads, urealp.h, usage.adb, utils2.c,
7112 utils.c, validsw.adb, validsw.ads, widechar.adb,
7113 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
7114 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
7115 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
7116 gnatvsn.ads: Merge with ACT tree.
7117
7118 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
7119
97ae108d
MM
71202003-10-20 Mark Mitchell <mark@codesourcery.com>
7121
de696511
MM
7122 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
7123 (gnat_ug_vmx.info): Likewise.
7124 (gnat_ug_vxw.info): Likewise.
7125 (gnat_ug_wnt.info): Likewise.
7126 (gnat_rm.info): Likewise.
7127 (gnat-style.info): Likewise.
7128
97ae108d
MM
7129 * Make-lang.in (ada.install-info): Remove target.
7130 (info): New target.
7131 (install-info): Likewise.
7132 (gnat_ug_unx.info): Simplify rule.
7133 (gnat_ug_vmx.info): Likewise.
7134 (gnat_ug_vxw.info): Likewise.
7135 (gnat_ug_wnt.info): Likewise.
7136 (gnat_rm.info): Likewise.
7137 (gnat-style.info): Likewise.
7138
43aba518
NN
71392003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
7140
7141 * Make-lang.in: Replace uses of $(target_alias) with
7142 $(target_noncanonical).
7143 * ada/Makefile.in: Remove unused mention of $(target_alias).
7144
62b81e45
MM
71452003-10-06 Mark Mitchell <mark@codesourcery.com>
7146
7147 * Make-lang.in (ada.info): Replace with ...
7148 (info): ... this.
7149 (ada.dvi): Replace with ...
7150 (dvi): ... this.
7151
783be936
ZW
71522003-09-29 Zack Weinberg <zack@codesourcery.com>
7153
7154 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
7155 initialize dconstp5 and dconstmp5.
7156
177560b2
RH
71572003-09-28 Richard Henderson <rth@redhat.com>
7158
7159 * trans.c (tree_transform): Update call to expand_asm_operands.
7160
f31686a3
RH
71612003-09-21 Richard Henderson <rth@redhat.com>
7162
7163 * trans.c, utils.c: Revert.
7164
7e2af53a
RH
71652003-09-21 Richard Henderson <rth@redhat.com>
7166
7167 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
7168 change to const.
7169
5f1e32fa
MM
71702003-09-04 Michael Matz <matz@suse.de>
7171
7172 * misc.c: Include "target.h".
7173 * Make-lang.in (misc.o): Add dependency on target.h.
7174
61f71b34
DD
71752003-09-03 DJ Delorie <dj@redhat.com>
7176
7177 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
7178 hook.
7179
2ed26f6b
ZW
71802003-08-30 Zack Weinberg <zack@codesourcery.com>
7181
7182 * Makefile.in: Update substitutions to match changes to
7183 configure. Use include directives instead of @-insertions
7184 to read in host and target fragments. Add a rule to
7185 regenerate ada/Makefile.
7186
b2e608ca
NB
71872003-07-18 Neil Booth <neil@daikokuya.co.uk>
7188
7189 * lang-options.h: Remove.
7190 * lang.opt: Add help text.
7191
0cea056b
NS
71922003-07-07 Nathan Sidwell <nathan@codesourcery.com>
7193
7194 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
7195 calls.
7196
cb66e385
NB
71972003-07-06 Neil Booth <neil@daikokuya.co.uk>
7198
7199 * misc.c (gnat_handle_option): Don't handle filenames.
7200
8c90b13a
L
72012003-07-04 H.J. Lu <hongjiu.lu@intel.com>
7202
7203 * Make-lang.in: Replace PWD with PWD_COMMAND.
7204 * Makefile.adalib: Likewise.
7205 * Makefile.in: Likewise.
7206
9c286213
MK
72072003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
7208
7209 * misc.c (gnat_argv): Revert last change.
7210 (gnat_handle_option, gnat_init_options): Copy arguments.
7211
b9add449
NB
72122003-07-03 Neil Booth <neil@daikokuya.co.uk>
7213
9c286213 7214 * misc.c (gnat_argv): Make const.
b9add449 7215
836d77a9
NB
72162003-07-02 Neil Booth <neil@daikokuya.co.uk>
7217
7218 * misc.c (save_argc, save_argv): Keep non-static!
7219
b86f6cd9
NB
72202003-07-02 Neil Booth <neil@daikokuya.co.uk>
7221
7222 * misc.c (save_argc, save_argv): Make static.
7223 (gnat_init_options): New prototype.
7224 (gnat_init_options): Update.
7225
6344b1f1
MK
72262003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
7227
7228 * gnat_ug.texi: Remove unlikely characters from @vars.
7229 * gnat_ug_vms.texi: Regenerate.
7230
2e040219
NS
72312003-06-27 Nathan Sidwell <nathan@codesourcery.com>
7232
7233 * misc.c (record_code_position): Adjust emit_note call.
7234
9eee5e72
NB
72352003-06-26 Neil Booth <neil@daikokuya.co.uk>
7236
7237 * misc.c (gnat_handle_option): Don't check for missing arguments.
7238
1f9cc6db
NS
72392003-06-20 Nathan Sidwell <nathan@codesourcery.com>
7240
7241 * utils.c (end_subprog_body): Adjust expand_function_end call.
7242
23d6baa3
MK
72432003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
7244
7245 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
7246 Bind_Main_Program.
7247
be43ab4e
NB
72482003-06-15 Neil Booth <neil@daikokuya.co.uk>
7249
7250 * lang.opt: Declare Ada.
7251 * misc.c (gnat_init_options): Update.
7252
ee6b0296
NS
72532003-06-14 Nathan Sidwell <nathan@codesourcery.com>
7254
7255 * utils.c (begin_subprog_body): Adjust init_function_start call.
7256
d7b42618
NB
72572003-06-14 Neil Booth <neil@daikokuya.co.uk>
7258
7259 * Make-lang.in: Update to use options.c and options.h.
7260 * misc.c: Include options.h not aoptions.h.
7261 (gnat_handle_option): Abort on unrecognized switch.
7262 (gnat_init_options): Request Ada switches.
7263
57eb6503
NB
72642003-06-14 Neil Booth <neil@daikokuya.co.uk>
7265
7266 * lang.opt: Add -Wall.
7267 * misc.c (gnat_handle_option): Handle it.
7268
70fd6569
NB
72692003-06-12 Neil Booth <neil@daikokuya.co.uk>
7270
7271 * misc.c (gnat_handle_option): Fix warnings.
7272
8cdea5a1
MK
72732003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
7274
7275 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
7276
3c900cb5
NB
72772003-06-11 Neil Booth <neil@daikokuya.co.uk>
7278
7279 * Make-lang.in: Update to handle command-line options.
7280 * lang.opt: New file.
7281 * misc.c: Include aoptions.h.
7282 (cl_options_count, cl_options): Remove.
7283 (gnat_handle_option): New.
7284 (gnat_decode_option): Remove.
7285 (LANG_HOOKS_DECODE_OPTION): Remove.
7286 (LANG_HOOKS_HANDLE_OPTION): Override.
7287
e8face4c
NN
72882003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
7289
7290 * init.c, misc.c, trans.c, utils.c: Remove dead code.
7291
4665e56c
NN
72922003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
7293
7294 * Makefile.in: Replace "host_canonical" with "host" for autoconf
7295 substitution.
7296
a165c302
NB
72972003-06-08 Neil Booth <neil@daikokuya.co.uk>
7298
7299 * Make-lang.in: Update.
7300 * misc.c: Include opts.h. Define cl_options_count and cl_options.
7301
2772ef3e
NB
73022003-06-07 Neil Booth <neil@daikokuya.co.uk>
7303
7304 * misc.c (gnat_init_options): Update.
7305
d8277a55
MK
73062003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
7307
7308 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
7309 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
7310 __attribute__ ((__unused__)).
7311
602a82f3 73122003-06-05 Jan Hubicka <jh@suse.cz>
8f231b5d
JH
7313
7314 * Make-lang.in: Add support for stageprofile and stagefeedback
7315
3aa07c6d
MK
73162003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
7317
7318 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
7319 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
7320
f1093866
MK
73212003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
7322
7323 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
7324 Remove non-VMS directive.
7325 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
7326 alternatives.
7327 (Examples of gnatls Usage): Remove VMS alternative.
dee2df72
OH
7328
73292003-06-04 Olivier Hainque <hainque@act-europe.fr>
7330
2ed26f6b
ZW
7331 PR ada/9953:
7332 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
7333 and turn ZCX_By_Default back to False since the underlying support
7334 is not quite there yet.
dee2df72 7335
80eaf415
AJ
73362003-06-01 Andreas Jaeger <aj@suse.de>
7337
7338 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
7339 and ROUND_TYPE_SIZE_UNIT.
7340
36f9020c
GB
73412003-05-22 Geert Bosch <bosch@gnat.com>
7342
7343 * gnat_rm.texi : Remove reference to Ada Core Technologies.
7344
e7b5f0c9
NS
73452003-05-03 Nathan Sidwell <nathan@codesourcery.com>
7346
7347 * trans.c (tree_transform): Use location_t and input_location
7348 directly.
7349 (build_unit_elab): Likewise.
7350 * utils.c (create_label_decl): Likewise.
7351
d479d37f
NS
73522003-05-01 Nathan Sidwell <nathan@codesourcery.com>
7353
561712fe
NS
7354 * trans.c (tree_transform, build_unit_elab,
7355 set_lineno): Rename lineno to input_line.
d479d37f
NS
7356 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
7357 end_subprog_body): Likewise.
7358 * utils2.c (build_call_raise): Likewise.
7359
4f9335cd
LG
73602003-05-01 Laurent Guerby <guerby@acm.org>
7361
2ed26f6b
ZW
7362 PR ada/10546
7363 * 5iosinte.ads: Increase pthread_cond_t size to match recent
7364 LinuxThread and NPTL version, merge from ACT.
80eaf415 7365
0864034e
ZW
73662003-04-28 Zack Weinberg <zack@codesourcery.com>
7367
7368 * utils.c (convert): No need to clear TREE_CST_RTL.
7369
bcea76b6
GB
73702003-04-23 Geert Bosch <bosch@gnat.com>
7371
7372 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
7373 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
7374 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
7375 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
7376 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
7377 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
7378 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
7379 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
7380 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
7381 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
7382 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
7383 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
7384 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
7385 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
7386 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
7387 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
7388 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
7389 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
7390 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
7391 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
7392 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
7393 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
7394 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
7395 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
7396 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
7397 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
7398 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
7399 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
7400 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
7401 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
7402 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
7403 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
7404 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
7405 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
7406 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
7407 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
7408 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
7409 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
7410 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
7411 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
7412 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
7413 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
7414 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
7415 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
7416 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
7417 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
7418 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
7419 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
7420 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
7421 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
7422 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
7423 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
7424 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
7425 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
7426 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
7427 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
7428 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
7429 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
7430 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
7431 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
7432 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
7433 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
7434 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
7435 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
7436 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
7437 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
7438 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
7439 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
7440 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
7441 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
7442 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
7443 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
7444 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
7445 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
7446 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
7447 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
7448 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
7449 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
7450 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
7451 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
7452 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
7453 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
7454 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
7455 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
7456 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
7457 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
7458 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
7459 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
7460 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
7461 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
7462 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
7463 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
7464 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
7465 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
7466 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
7467 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
7468 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
7469 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
7470 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
7471 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
7472 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
7473 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
7474 ali.adb, ali.ads, alloc.ads, argv.c,
7475 atree.adb, atree.ads, atree.h, aux-io.c,
7476 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
7477 binde.adb, binde.ads, binderr.adb, binderr.ads,
7478 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
7479 butil.adb, butil.ads, cal.c, calendar.ads,
7480 casing.adb, casing.ads, ceinfo.adb, checks.adb,
7481 checks.ads, cio.c, comperr.adb, comperr.ads,
7482 config-lang.in, csets.adb, csets.ads, csinfo.adb,
7483 cstand.adb, cstand.ads, cuintp.c, debug.adb,
7484 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
7485 dec-io.ads, dec.ads, deftarg.c, directio.ads,
7486 einfo.adb, einfo.ads, elists.adb, elists.ads,
7487 elists.h, errno.c, errout.adb, errout.ads,
7488 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
7489 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
7490 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
7491 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
7492 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
7493 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
7494 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
7495 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
7496 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
7497 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
7498 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
7499 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
7500 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
7501 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
7502 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
7503 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
7504 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
7505 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
7506 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
7507 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
7508 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
7509 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
7510 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
7511 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
7512 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
7513 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
7514 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
7515 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
7516 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
7517 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
7518 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
7519 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
7520 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
7521 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
7522 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
7523 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
7524 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
7525 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
7526 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
7527 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
7528 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
7529 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
7530 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
7531 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
7532 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
7533 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
7534 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
7535 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
7536 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
7537 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
7538 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
7539 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
7540 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
7541 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
7542 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
7543 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
7544 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
7545 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
7546 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
7547 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
7548 lib.adb, lib.ads, live.adb, live.ads,
7549 machcode.ads, make.adb, make.ads, makeusg.adb,
7550 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
7551 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
7552 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
7553 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
7554 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
7555 mlib.ads, namet.adb, namet.ads, nlists.adb,
7556 nlists.ads, opt.adb, opt.ads, osint-b.adb,
7557 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
7558 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
7559 osint.ads, output.adb, output.ads, par-ch10.adb,
7560 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
7561 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
7562 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
7563 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
7564 par-tchk.adb, par-util.adb, par.adb, par.ads,
7565 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
7566 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
7567 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
7568 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
7569 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
7570 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
7571 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
7572 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
7573 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
7574 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
7575 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
7576 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
7577 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
7578 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
7579 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
7580 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
7581 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
7582 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
7583 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
7584 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
7585 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
7586 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
7587 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
7588 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
7589 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
7590 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
7591 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
7592 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
7593 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
7594 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
7595 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
7596 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
7597 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
7598 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
7599 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
7600 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
7601 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
7602 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
7603 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
7604 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
7605 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
7606 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
7607 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
7608 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
7609 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
7610 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
7611 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
7612 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
7613 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
7614 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
7615 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
7616 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
7617 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
7618 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
7619 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
7620 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
7621 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
7622 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
7623 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
7624 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
7625 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
7626 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
7627 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
7628 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
7629 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
7630 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
7631 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
7632 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
7633 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
7634 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
7635 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
7636 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
7637 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
7638 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
7639 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
7640 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
7641 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
7642 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
7643 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
7644 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
7645 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
7646 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
7647 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
7648 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
7649 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
7650 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
7651 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
7652 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
7653 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
7654 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
7655 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
7656 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
7657 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
7658 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
7659 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
7660 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
7661 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
7662 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
7663 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
7664 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
7665 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
7666 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
7667 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
7668 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
7669 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
7670 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
7671 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
7672 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
7673 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
7674 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
7675 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
7676 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
7677 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
7678 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
7679 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
7680 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
7681 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
7682 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
7683 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
7684 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
7685 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
7686 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
7687 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
7688 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
7689 snames.ads, sprint.adb, sprint.ads, stand.adb,
7690 stand.ads, stringt.adb, stringt.ads, style.adb,
7691 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
7692 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
7693 switch-m.ads, switch.adb, switch.ads, system.ads,
7694 table.adb, table.ads, targparm.adb, targparm.ads,
7695 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
7696 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
7697 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
7698 ttypef.ads, ttypes.ads, types.adb, types.ads,
7699 uintp.adb, uintp.ads, uname.adb, uname.ads,
7700 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
7701 usage.adb, usage.ads, validsw.adb, validsw.ads,
7702 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
7703 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
7704 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
7705 formatting and other trivial changes from ACT.
7706
dcf92453
ZW
77072003-04-12 Zack Weinberg <zack@codesourcery.com>
7708
7709 * gigi.h, utils2.c (build_constructor):
7710 Rename gnat_build_constructor. Use build_constructor.
7711 * decl.c (gnat_to_gnu_entity)
7712 * trans.c (tree_transform, pos_to_constructor, extract_values)
7713 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
7714 (unchecked_convert)
7715 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
7716 (fill_vms_descriptor):
7717 Update to match.
7718
d78e771d
ZW
77192003-04-06 Zack Weinberg <zack@codesourcery.com>
7720
7721 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
7722 * misc.c (gnat_tree_size): New function.
7723 (LANG_HOOKS_TREE_SIZE): Override.
7724
78d55cc8
JM
77252003-04-03 Jason Merrill <jason@redhat.com>
7726
7727 * misc.c (gnat_adjust_rli): #if 0.
7728
b174e2d4
GB
77292003-03-31 Geert Bosch <bosch@gnat.com>
7730
7731 PR ada/10020
7732 * link.c : Fix misspelled "const" keyword
7733
f29a2bd1
MM
77342003-03-23 Mark Mitchell <mark@codesourcery.com>
7735
7736 PR c++/7086
7737 * utils2.c: Adjust calls to put_var_into_stack.
7738
08e247b1
NN
77392003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
7740
7741 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
7742
4bfec483
NB
77432003-03-08 Neil Booth <neil@daikokuya.co.uk>
7744
7745 * misc.c (gnat_init): Update for new prototype.
7746
3d713bb8
GB
77472003-03-05 Olivier Hainque <hainque@gnat.com>
7748
7749 ada/9961
78d55cc8
JM
7750 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
7751 warning, and fix return type for the IN_RTS && !SJLJ case.
3d713bb8 7752
8b89fcdf
TT
77532003-03-04 Tom Tromey <tromey@redhat.com>
7754
7755 * Make-lang.in (ada.tags): New target.
7756
3d713bb8 77572003-03-04 Olivier Hainque <hainque@act-europe.fr>
23cae84f
OH
7758
7759 ada/9911
7760 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
7761 wrapper, which name remains constant whatever underlying GCC
7762 scheme.
7763
7764 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
7765 the stable interface needed for a-except.
7766
f4ae98be
AJ
77672003-03-02 Andreas Jaeger <aj@suse.de>
7768
7769 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
7770 gnat_ug_wnt.texi: Regenerate.
7771
5348742b
LG
77722003-03-02 Laurent Guerby <guerby@acm.org>
7773
f4ae98be 7774 * Makefile.in (install-gnatlib): Match previous change there
5348742b 7775 so it works.
f4ae98be 7776
8c108db2
AS
77772003-02-28 Andreas Schwab <schwab@suse.de>
7778
7779 * Make-lang.in (install-gnatlib): Change to ada directory before
7780 running make instead of using ada/Makefile directly.
7781
601d71bc
BE
77822003-02-18 Ben Elliston <bje@redhat.com>
7783
7784 Part of fix for PR ada/9406
7785 * gnat_ug.texi (Binder output file): Grammar fix.
7786
bf7c02dd
BE
77872003-02-18 Ben Elliston <bje@redhat.com>
7788
7789 PR other/7350
7790 * 5qtaprop.adb (Sleep): Fix typo in comment.
7791
b3a8389d
JM
77922003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
7793
7794 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
7795 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
7796 gnat_ug_wnt.texi: Regenerate.
7797
5da14cb5
CC
77982003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
7799
7800 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
7801 be created if necessary.
7802 (ada.install-common): Let $(DESTDIR)$(bindir) be created
7803 if necessary. Remove erroneous and redundant gnatchop
7804 installation commands. Test for gnatdll before attempting
7805 to install it.
7806 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
7807 and gnatdll from all plausible locations.
7808
271bd540
RS
78092003-02-01 Richard Sandiford <rsandifo@redhat.com>
7810
7811 * utils2.c (build_unary_op): Don't check flag_volatile.
7812 * gnat_ug.texi: Remove -fvolatile from example.
7813 * gnat_ug_vxw.texi: Likewise.
7814
c1cc6a51
LG
78152003-01-29 Laurent Guerby <guerby@acm.org>
7816
d78e771d
ZW
7817 PR ada/8344
7818 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
7819 * Makefile.in: match previous change.
7820 * Make-lang.in: match previous change.
c1cc6a51 7821
c4039eb0
JS
78222003-01-29 Joel Sherrill <joel@OARcorp.com>
7823
7824 * 5rosinte.ads: Add SIGXCPU.
7825 * 5rtpopsp.adb: New file.
7826 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
7827 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
7828 specific file 5rtpopsp.adb.
7829 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
7830 is likely needed for all newlib targets.
7831 * init.c: Add RTEMS specific version of __gnat_initialize().
7832
00d29f7d
RO
78332003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7834
7835 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
7836
437026ef
RO
78372003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7838
7839 * init.c (__gnat_error_handler): Make msg const.
7840
7841 * gmem.c (convert_addresses): Move declaration ...
7842 * adaint.h: ... here.
7843 * adaint.c (convert_addresses): Adapt addrs type to match
7844 prototype.
7845
7846 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
7847
e12825cd
AS
78482003-01-24 Andreas Schwab <schwab@suse.de>
7849
7850 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
7851 size_t to avoid warning.
7852
a8729406
ZW
78532003-01-21 Zack Weinberg <zack@codesourcery.com>
7854
b09b91b9 7855 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
a8729406 7856
17211ab5
GK
78572003-01-09 Geoffrey Keating <geoffk@apple.com>
7858
7859 * gnat_rm.texi: Remove RCS version number.
7860
7861 * ada-tree.h (union lang_tree_node): Add chain_next option.
7862
1d27195c
CC
78632003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
7864
7865 * Make-lang.in (ada.install-info, ada.install-common,
7866 ada.uninstall): Prepend $(DESTDIR) to the destination
7867 directory in all (un)installation commands.
7868 * Makefile.in (install-gnatlib, install-rts): Ditto.
7869
bdefb2ab
JM
78702002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
7871
7872 * gnat_rm.texi, gnat_ug.texi: Use @copying.
7873 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
7874 gnat_ug_wnt.texi: Regenerate.
7875
46d40353
JM
78762002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
7877
7878 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
7879 only.
7880 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
7881 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
7882 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
7883 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
7884 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
7885 $(srcdir)/doc/include/gcc-common.texi.
7886
d2f97d3e
GB
78872002-12-15 Geert Bosch <bosch@gnat.com>
7888
7889 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
7890
93a81b02
GB
78912002-12-14 Geert Bosch <bosch@gnat.com>
7892
4977bab6
ZW
7893 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
7894 case of a body created for a Renaming_As_Body, on which
7895 conformance checks are not performed. Fixes PR ada/5690.
7896
78972002-11-30 Zack Weinberg <zack@codesourcery.com>
7898
7899 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
7900 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
7901 not already included.
7902 * Make-lang.in: Update dependencies.
93a81b02 7903
dfc15546
NN
79042002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
7905 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
4977bab6 7906 solution to buffer overflow bug on GNU/Linux.
dfc15546 7907
8b54424d
NN
79082002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
7909 Closes PR ada/5856 and PR ada/6919 !
7910 * bindgen.adb: Remove all references to Public_Version.
7911 * comperr.adb: Remove all references to Public_Version and
7912 GNATPRO_Version; correct bug reporting instructions.
7913 * comperr.ads: Change to match bug box.
7914 * gnatvsn.ads: Remove all references to Public version and
7915 GNATPRO version.
7916
cc41268d 79172002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
1a083c0e
NN
7918 PR ada/6919
7919 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
7920 GNU/Linux.
7921
cc41268d
NN
7922 PR ada/6558
7923 * config-lang.in: Remove diff_excludes.
7924
1c7b0712
GS
79252002-11-05 Graham Stott <graham.stott@btinternet.com>
7926 PR ada/8358
7927 * trans.c (gnu_pending_elaboration_lists): New GC root.
4977bab6 7928 (build_unit_elab): Use..
1c7b0712 7929
1c4048ca
GB
79302002-10-30 Geert Bosch <bosch@gnat.com>
7931 PR ada/6558
7932 * misc.c : Include optabs.h
7933
7934 * Make-lang.in (misc.o): Add dependency on optabs.h
7935
f0d96f9c 79362002-10-29 Geert Bosch <bosch@gnat.com>
4977bab6 7937 PR ada/6558
f0d96f9c
GB
7938 * Make-lang.in (gnatbind): Depend on CONFIG_H
7939
a7512dec 79402002-10-29 Geert bosch <bosch@gnat.com>
4977bab6
ZW
7941 PR ada/6558
7942 * misc.c: Unrevert misc.c (1.13)
a7512dec 7943
c6362f4f
NN
79442002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
7945
7946 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
7947 maintainership comments.
7948
79492002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
91ed4b19 7950 PR ada/5904
4977bab6
ZW
7951 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
7952 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
7953 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
7954 7staprop.adb: Correct statements in comments about
91ed4b19
NN
7955 maintainership of GNAT.
7956
1f02b6af 7957 PR ada/5904
4977bab6
ZW
7958 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
7959 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
7960 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
7961 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
7962 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
7963 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
7964 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
1f02b6af
NN
7965 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
7966 comments about maintainership of GNAT.
7967
71ff80dc 7968 PR ada/6919 (forward port of patch for PR ada/5904)
4977bab6
ZW
7969 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
7970 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
7971 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
7972 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
7973 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
7974 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
7975 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
7976 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
7977 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
7978 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
7979 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
7980 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
7981 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
7982 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
7983 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
7984 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
7985 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
7986 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
7987 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
7988 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
7989 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
7990 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
7991 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
7992 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
7993 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
7994 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
7995 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
7996 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
7997 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
7998 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
7999 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
8000 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
8001 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
8002 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
8003 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
8004 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
8005 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
8006 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
8007 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
8008 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
8009 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
8010 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
8011 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
8012 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
8013 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
8014 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
8015 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
8016 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
8017 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
8018 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
8019 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
8020 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
8021 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
8022 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
8023 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
8024 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
8025 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
8026 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
8027 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
8028 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
8029 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
8030 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
8031 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
8032 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
8033 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
8034 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
8035 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
8036 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
8037 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
8038 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
8039 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
8040 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
8041 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
8042 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
8043 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
8044 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
8045 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
8046 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
8047 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
8048 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
8049 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
8050 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
8051 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
8052 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
8053 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
8054 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
8055 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
8056 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
8057 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
8058 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
8059 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
8060 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
8061 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
8062 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
8063 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
8064 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
8065 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
8066 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
8067 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
8068 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
8069 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
8070 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
8071 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
8072 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
8073 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
8074 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
8075 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
8076 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
8077 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
8078 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
8079 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
8080 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
8081 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
8082 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
8083 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
8084 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
8085 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
8086 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
8087 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
8088 par-endh.adb par-labl.adb par-load.adb par-prag.adb
8089 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
8090 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
8091 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
8092 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
8093 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
8094 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
8095 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
8096 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
8097 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
8098 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
8099 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
8100 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
8101 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
8102 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
8103 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
8104 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
8105 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
8106 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
8107 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
8108 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
8109 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
8110 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
8111 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
8112 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
8113 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
8114 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
8115 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
8116 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
8117 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
8118 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
8119 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
8120 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
8121 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
8122 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
8123 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
8124 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
8125 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
8126 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
8127 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
8128 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
8129 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
8130 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
8131 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
8132 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
8133 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
8134 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
8135 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
8136 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
8137 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
8138 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
8139 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
8140 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
8141 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
8142 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
8143 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
8144 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
8145 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
8146 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
8147 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
8148 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
8149 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
8150 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
8151 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
8152 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
8153 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
8154 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
8155 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
8156 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
8157 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
8158 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
8159 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
8160 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
8161 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
8162 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
8163 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
8164 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
8165 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
8166 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
8167 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
8168 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
8169 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
8170 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
8171 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
8172 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
8173 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
8174 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
8175 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
8176 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
8177 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
8178 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
8179 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
8180 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
8181 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
8182 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
8183 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
8184 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
8185 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
8186 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
8187 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
8188 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
8189 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
8190 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
8191 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
8192 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
8193 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
8194 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
8195 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
8196 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
8197 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
8198 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
8199 stringt.ads stringt.h style.adb style.ads stylesw.adb
8200 stylesw.ads switch.adb switch.ads sysdep.c system.ads
8201 table.adb table.ads targparm.adb targparm.ads targtyps.c
8202 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
8203 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
8204 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
8205 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
8206 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
8207 usage.ads utils.c utils2.c validsw.adb validsw.ads
8208 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
8209 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
71ff80dc
NN
8210 xtreeprs.adb: Correct statements in comments about maintainership
8211 of GNAT.
8212
b4f94ac1
ZW
82132002-09-23 Zack Weinberg <zack@codesourcery.com>
8214
8215 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
8216 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
8217 * gnatvsn.ads: Gnat_Version_String is now a function.
8218 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
8219 copy the C version_string into a String and return it.
8220 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
8221 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
8222 Remove pragma Ident (Gnat_Version_String). If this was the
8223 sole use of package Gnatvsn, remove the with statement too.
8224 * gnat1drv.adb: Tweak -gnatv output.
8225
eaff3bf8
RH
82262002-09-17 Richard Henderson <rth@redhat.com>
8227
8228 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
8229 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
8230 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
8231 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
8232 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
8233 and real_2expN instead of a loop.
8234 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
8235 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
8236
d241f75b 82372002-08-25 Andre Leis <a.leis@gmx.net>
f4ae98be 8238 David Billinghurst (David.Billinghurst@riotinto.com>
d241f75b 8239
f4ae98be 8240 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
d241f75b 8241
4320085a
RO
82422002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8243
8244 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
8245 Remove $(CONFIG_H) dependency.
8246
22aa533e
NS
82472002-08-08 Nathan Sidwell <nathan@codesourcery.com>
8248
8249 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
8250
1dcd444b
KG
82512002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8252
8253 * adadecode.c (ada_demangle): Use xstrdup in lieu of
8254 xmalloc/strcpy.
8255 * misc.c (gnat_decode_option): Likewise.
8256
7bc7d27b
FW
82572002-07-15 Florian Weimer <fw@deneb.enyo.de>
8258
8259 * make.adb (Add_Switch): Make Generic_Position a procedure. The
8260 function approach did not work well because of a side effect (the
8261 function call could reallocate the table which was being indexed
8262 using its result). Fixes ada/4851. [RESURRECTED]
8263
6a2dd09a
RS
82642002-07-01 Roger Sayle <roger@eyesopen.com>
8265
8266 * ada/utils.c (builtin_function): Accept an additional parameter.
8267
c168bbd7
AJ
82682002-06-28 Andreas Jaeger <aj@suse.de>
8269
8270 PR ada/7144
8271 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
8272 <adi@thur.de>.
8273
b41e09a7
KG
82742002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8275
8276 * Makefile.in (SHELL): Set to @SHELL@.
8277
62c71f4b
KG
82782002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8279
8280 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
8281 array size calculation.
8282
94213cff
AJ
82832002-06-04 Andreas Jaeger <aj@suse.de>
8284
8285 * Make-lang.in (gnatbind): Readd rule that has been lost in last
8286 patch.
8287
e2500fed
GK
82882002-06-03 Geoffrey Keating <geoffk@redhat.com>
8289
8290 Merge from pch-branch:
8291
8292 * config-lang.in (gtfiles): Add ada-tree.h.
8293 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
8294 (SET_TYPE_MODULUS): New.
8295 (SET_TYPE_INDEX): New.
8296 (SET_TYPE_DIGITS_VALUE): New.
8297 (SET_TYPE_RM_SIZE): New.
8298 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
8299 (SET_TYPE_ADA_SIZE): New.
8300 (SET_TYPE_ACTUAL_BOUNDS): New.
8301 (SET_DECL_CONST_CORRESPONDING_VAR): New.
8302 (SET_DECL_ORIGINAL_FIELD): New.
8303 (TREE_LOOP_ID): Correct typo.
8304 * decl.c: Use new macros.
8305 * utils.c: Include debug.h, use new macros.
94213cff 8306 * utils2.c: Use new macros.
e2500fed
GK
8307
8308 * ada-tree.h: Update all macros for new tree description.
8309 (struct tree_loop_id): New.
8310 (union lang_tree_node): New.
8311 (struct lang_decl): New.
8312 (struct lang_type): New.
8313 * misc.c (gnat_mark_tree): Delete.
8314 (LANG_HOOKS_MARK_TREE): Delete.
8315 * trans.c (tree_transform): No longer any need to cast
8316 for TREE_LOOP_ID.
8317
8318 * utils.c (struct language_function): New dummy structure.
8319
8320 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
8321 (misc.o): Likewise.
8322 (utils.o): Likewise; also gtype-ada.h.
8323 * Make-lang.in (gnat1): Add dependency on s-gtype.
8324 (gnatbind): Add dependency on $(CONFIG_H).
8325 * utils.c: Correct last #include.
8326 (stuct e_stack): Remove unnecessary 'static'.
8327 (mark_e_stack): Remove unused prototype.
8328
8329 * scn-nlit.adb: Remove whitespace after version number to
8330 keep lines under 80 chars.
8331 * snames.adb: Likewise.
8332 * treepr.ads: Likewise.
94213cff 8333
e2500fed
GK
8334 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
8335 (misc.o): Likewise.
8336 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
8337 * config-lang.in (gtfiles): New.
8338 * decl.c: Use gengtype for roots.
8339 * gigi.h: Use gengtype for roots.
8340 * trans.c: Use gengtype for roots.
8341 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
8342
27e511e0
GDR
83432002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
8344
8345 * misc.c (gnat_init): Adjust setting of internal_error_function.
8346
113dc143
JM
83472002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
8348
8349 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
8350 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
8351 gnat_ug_wnt.texi: Regenerate.
8352
5321fb3e
FW
83532002-05-31 Florian Weimer <fw@deneb.enyo.de>
8354
15e6136e
FW
8355 * 5ntaprop.adb (with System.OS_Primitives): Remove.
8356
019310ac
FW
8357 * cstreams.c (max_path_len): Move from here ...
8358 * adaint.c (__gnat_max_path_len): ... to here.
8359 * adaint.c (__gnat_max_path_len): Declare.
8360 * g-dirope.adb (Max_Path): Adjust.
8361 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
94213cff 8362 * i-cstrea.ads (max_path_len): Adjust.
019310ac
FW
8363 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
8364 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
8365
5321fb3e
FW
8366 * Makefile.in, Make-lang.in: Documentation is now built in
8367 Make-lang.in. Store Info and generated Texinfo files in the
8368 source directory.
8369 * gnat_ug.texi: Remove CVS keywords, correct version number.
8370 Set file name correctly.
8371
8372 * gnat_ug_*.texi: Add.
8373 * .cvsignore: Ignore generated Texinfo files.
8374
b1c12c4b
ZW
83752002-05-30 Zack Weinberg <zack@codesourcery.com>
8376
8377 * ada.h: Add MI guard macro.
8378 (SUBTYPE): Define constants with an anonymous enum, not static
8379 const variables.
8380 (IN): Cast constants to appropriate type before use.
8381
ead33da9
JM
83822002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
8383
8384 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
8385 (experimental)".
8386
7d600178
RO
83872002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8388
8389 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
8390 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
8391 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
8392 (ALL_ADA_CFLAGS): Likewise.
8393 (ADA_INCLUDES): Likewise.
8394 Adapt for new working dir.
8395 (GNATBIND): Use Makefile.in version.
8396 (.SUFFIXES): Copy from Makefile.in.
8397 (ada-warn): Define.
8398 (.adb.o, .ads.o): Copy from Makefile.in.
8399 Added $(OUTPUT_OPTION).
8400 (GNAT1_C_OBJS): Moved from Makefile.in.
8401 Prefix with ada subdir.
8402 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
8403 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
8404 Adapt for new working dir.
8405 (EXTRA_GNATBIND_OBJS): Likewise.
8406 (ADA_BACKEND): Moved from Makefile.in.
8407 Renamed to avoid conflict with global BACKEND.
8408 Use that one.
8409 (TARGET_ADA_SRCS): Moved from Makefile.in.
8410 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
8411 Use ADA_BACKEND.
8412 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
8413 (ada_extra_files): Moved from Makefile.in.
8414 Prefix with ada subdir.
8415 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
8416 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
8417 (ada/nmake.ads): Likewise.
8418 (update-sources): Moved from Makefile.in.
8419 Prefix with ada subdir.
8420 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
8421 (ADA_TREE_H): Likewise.
8422 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
8423 (ada/memtrack.o): Likewise.
8424 (ada/adadecode.o): Likewise.
8425 Update dependencies.
8426 (ada/adaint.o): New.
8427 (ada/argv.o): Moved from Makefile.in.
8428 Prefix with ada subdir.
94213cff 8429 Update dependencies.
7d600178
RO
8430 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
8431 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
8432 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
8433 Prefix with ada subdir.
8434 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
8435 (GNAT DEPENDENCIES): Regenerate.
8436 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
8437 toplevel Makefile.in.
8438 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
8439 (TARGET_ADA_SRCS): Removed.
8440 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
8441 (GNATBIND_OBJS): Likewise.
8442 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
8443 (BACKEND): Removed.
8444 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
8445 (TREE_H): Likewise.
8446 (ada_extra_files): Likewise.
8447 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
8448 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
8449 (update-sources): Likewise.
8450 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
8451 (ADA_TREE_H): Likewise.
8452 (adadecoce.o): Likewise.
8453 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
8454 (GNAT DEPENDENCIES): Likewise.
8455
1e6347d8
RO
84562002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8457
8458 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
8459 * Makefile.in: Likewise.
8460
db80834f
RO
84612002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8462
8463 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
8464 Restore $(CONFIG_H) and prefix.o dependencies.
8465 (ada.stage[1-4]): Depend on stage?-start.
8466
8467 * Makefile.in (b_gnatb.c): Depend on interfac.o.
8468
ac293f98
JW
84692002-05-02 Jim Wilson <wilson@redhat.com>
8470
8471 * utils.c (finish_record_type): Change record_size to record_type.
8472
b303008e
JDA
84732001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
8474
8475 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
8476 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
8477 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
94213cff 8478
ff45c01e
NB
84792002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
8480
8481 * misc.c (gnat_parse_file): Update.
8482
349ae713
NB
84832002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
8484
8485 * misc.c (gnat_init): Don't set lang_attribute_common.
8486
ace133aa
JM
84872002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
8488
8489 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
8490
5c558dd9
FW
84912002-04-21 Florian Weimer <fw@deneb.enyo.de>
8492
b4f94ac1 8493 * gnat_ug.texi: New file.
88e1739c 8494
5c558dd9
FW
8495 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
8496 instead of gfdl.texi
8497
8498 * xgnatug.adb, ug_words: New files.
8499
8500 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
b4f94ac1 8501 gnat_rm and gnat-style manuals.
5c558dd9 8502
7a228918
NB
85032002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
8504
8505 * gigi.h (incomplete_type_error): Remove.
8506 * utils.c (incomplete_type_error): Remove.
8507
b2123dc0
MM
85082002-04-16 Mark Mitchell <mark@codesourcery.com>
8509
8510 * trans.c (tree_transform): Add has_scope argument to
8511 expand_start_stmt_expr.
8512
78ef5b89
NB
85132002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
8514
8515 * gigi.h (truthvalue_conversion): Rename.
8516 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
8517 * trans.c (tree_transform): Update.
8518 * utils2.c (truthvalue_conversion): Rename, update.
8519 (build_binary_op, build_unary_op): Update.
8520
a71742a8
LG
85212002-04-04 Laurent Guerby <guerby@acm.org>
8522
8523 * make.adb: Implement -margs, remove restriction about file name placement.
8524 * makeusg.adb: Documentation update.
8525 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
8526 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
8527
82a4b025
NB
85282002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
8529
8530 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
8531 (builtin_function): Similarly.
8532
dffd7eb6
NB
85332002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8534
8535 * decl.c (gnat_to_gnu_entity): Update.
8536 * gigi.h (mark_addressable): Rename.
8537 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8538 * trans.c (tree_transform): Update.
8539 * utils.c (create_var_decl): Update.
8540 * util2.c (build_binary_op, build_unary_op,
8541 fill_vms_descriptor): Update.
8542 (mark_addressable): Rename, update.
8543
ceef8ce4
NB
85442002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
8545
8546 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
8547 Rename.
8548 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8549 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8550 * trans.c (tree_transform, convert_with_check): Update.
8551 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
8552 Rename.
8553
48a7a235
NB
85542002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
8555
8556 * gigi.h (finish_incomplete_decl): Rename.
8557 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
8558 * utils.c (gnat_init_decl_processing): Don't set hook.
8559 (finish_incomplete_decl): Rename.
8560
1d5af871
AS
85612002-03-29 Andreas Schwab <schwab@suse.de>
8562
8563 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
8564 directory.
8565
8cbb664e
MG
85662001-03-28 Robert Dewar <dewar@gnat.com>
8567
8568 * checks.ads:
8569 (Remove_Checks): New procedure
8570
8571 * checks.adb:
8572 (Remove_Checks): New procedure
8573
8574 * exp_util.adb:
8575 Use new Duplicate_Subexpr functions
8576 (Duplicate_Subexpr_No_Checks): New procedure
8577 (Duplicate_Subexpr_No_Checks_Orig): New procedure
8578 (Duplicate_Subexpr): Restore original form (checks duplicated)
8579 (Duplicate_Subexpr): Call Remove_Checks
8580
82a4b025 8581 * exp_util.ads:
8cbb664e
MG
8582 (Duplicate_Subexpr_No_Checks): New procedure
8583 (Duplicate_Subexpr_No_Checks_Orig): New procedure
8584 Add 2002 to copyright notice
8585
8586 * sem_util.adb: Use new Duplicate_Subexpr functions
8587
82a4b025 8588 * sem_eval.adb:
8cbb664e
MG
8589 (Eval_Indexed_Component): This is the place to call
8590 Constant_Array_Ref and to replace the value. We simply merge
8591 the code of this function in here, since it is now no longer
8592 used elsewhere. This fixes the problem of the back end not
8593 realizing we were clever enough to see that this was
8594 constant.
8595 (Expr_Val): Remove call to Constant_Array_Ref
8596 (Expr_Rep_Val): Remove call to Constant_Array_Ref
8597 Minor reformatting
8598 (Constant_Array_Ref): Deal with string literals (patch
8599 suggested by Zack Weinberg on the gcc list)
8600
86012001-03-28 Ed Schonberg <schonber@gnat.com>
8602
82a4b025 8603 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
8604 Duplicate_Subexpr_Move_Checks.
8605
82a4b025 8606 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
8cbb664e
MG
8607 Duplicate_Subexpr_Move_Checks.
8608
82a4b025
NB
8609 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
8610 value of array exists before retrieving it (it may a private
8cbb664e
MG
8611 protected component in a function).
8612
792c4e74
GB
86132002-03-28 Geert Bosch <bosch@gnat.com>
8614
8615 * prj-pp.adb : New file.
8616
8617 * prj-pp.ads : New file.
8618
915e8bad
AJ
86192002-03-28 Andreas Jaeger <aj@suse.de>
8620
8621 * Makefile.in (stamp-sdefault): Fix path for Makefile.
8622
0840811c
NB
86232002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
8624
8625 * misc.c (gnat_expand_expr): Move prototype.
8626
7ffb4fd2
NB
86272002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8628
8629 * misc.c (insert_default_attributes): Remove.
8630
c9d892a8
NB
86312002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8632
8633 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8634 (gnat_init): Don't set hook.
8635 (gnat_expand_expr): Fix prototype.
8636
31c816cf
NB
86372002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
8638
8639 * misc.c (ggc_p): Remove.
8640
ef83161c
GB
86412002-03-27 Geert Bosch <bosch@gnat.com>
8642
8643 * prj-makr.ads, prj-makr.adb : New files.
8644
4f0ade92
NB
86452002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
8646
8647 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
8648 (lang_mark_tree): Make static, rename.
8649
c88770e9
NB
86502002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
8651
8652 * misc.c (maybe_build_cleanup): Remove.
8653
05671968
NB
86542002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
8655
8656 * gigi.h (yyparse): Remove.
8657
ad42149c
FW
86582002-03-23 Florian Weimer <fw@deneb.enyo.de>
8659
82a4b025 8660 * gnat_rm.texi: Sync with ACT version.
b4f94ac1 8661 (From Ben Brosgol <brosgol@gnat.com>)
ad42149c 8662
7afff7cf
NB
86632002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
8664
8665 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
8666 (gnat_init): Remove old hook.
8667
52dabb6c
NB
86682002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
8669
8670 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
8671 (yyparse): Rename gnat_parse_file.
8672
6cbcc541
GK
86732002-03-14 Geoffrey Keating <geoffk@redhat.com>
8674
8675 Delete all lines containing "$Revision:".
8676 * xeinfo.adb: Don't look for revision numbers.
8677 * xnmake.adb: Likewise.
8678 * xsinfo.adb: Likewise.
8679 * xsnames.adb: Likewise.
8680 * xtreeprs.adb: Likewise.
8681
2f9834e8
KG
86822002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8683
8684 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
8685 gnat_tree_code_name): Delete.
8686 (tree_code_type, tree_code_length, tree_code_name): Define.
8687 (gnat_init): Don't try to copy into the various tree_code
8688 arrays.
8689
63adb4ff
RH
86902002-03-11 Richard Henderson <rth@redhat.com>
8691
8692 * Makefile.in (.NOTPARALLEL): Add fake tag.
8693
43ff4547
GB
86942002-03-07 Geert Bosch <bosch@gnat.com>
8695
82a4b025
NB
8696 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
8697 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
8698 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
43ff4547
GB
8699 switch-m.adb, switch-m.ads : New files.
8700
07fc65c4
GB
87012002-03-07 Geert Bosch <bosch@gnat.com>
8702
8703 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
8704 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
8705 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
8706 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
8707 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
8708 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
8709 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
8710 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
8711 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
8712 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
8713 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
8714 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
8715 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
8716 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
8717 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
8718 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
8719 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
8720 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
8721 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
8722 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
8723 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
8724 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
8725 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
8726 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
8727 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
8728 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
8729 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
8730 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
8731 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
8732 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
8733 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
8734 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
8735 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
8736 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
8737 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
8738 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
8739 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
8740 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
8741 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
8742 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
8743 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
8744 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
8745 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
8746 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
8747 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
8748 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
8749 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
8750 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
8751 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
8752 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
8753 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
8754 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
8755 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
8756 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
8757 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
8758 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
8759 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
8760 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
8761 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
8762 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
8763 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
8764 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
8765 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
8766 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
8767 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
8768 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
8769 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
8770 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
8771 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
8772 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
8773 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
8774 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
8775 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
8776 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
8777 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
8778 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
8779 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
8780 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
8781 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
8782 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
8783 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
8784 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
8785 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
8786 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
8787 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
8788 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
8789 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
8790 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
8791 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
8792 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
8793 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
8794 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
8795 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
8796 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
8797 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
8798 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
8799 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
8800
8801 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
8802 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
8803 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
8804 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
8805
8806 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
8807 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
8808
8809 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
8810 to mdll-fil.ad[bs] and mdll-util.ad[bs]
8811
8812 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
8813 from mdllfile.ad[bs] and mdlltool.ad[bs]
8814
ca7558fc
KG
88152002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8816
8817 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
8818 lieu of explicit sizeof/sizeof.
8819
63e1b1c4
NB
88202002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
8821
8822 * misc.c (copy_lang_decl): Remove.
8823
f458d1d5
ZW
88242002-02-27 Zack Weinberg <zack@codesourcery.com>
8825
8826 * misc.c: Delete traditional-mode-related code copied from the
8827 C front end but not used, or used only to permit the compiler
8828 to link.
8829
21e09952
RH
88302002-02-07 Richard Henderson <rth@redhat.com>
8831
8832 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
8833 * adaint.h (__gnat_to_gm_time): Update prototype.
8834
ead39bdf 88352002-01-30 Richard Henderson <rth@redhat.com>
e803a64b
RH
8836
8837 * trans.c (tree_transform) [N_Loop_Statement]: Use
8838 expand_exit_loop_top_cond.
8839
72ac12bf
RH
88402001-12-23 Richard Henderson <rth@redhat.com>
8841
8842 * utils.c (end_subprog_body): Push GC context around
8843 rest_of_compilation for nested functions.
8844
14aacce7
RH
88452001-12-23 Richard Henderson <rth@redhat.com>
8846
8847 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
8848
b3d45d87
FW
88492001-12-23 Florian Weimer <fw@deneb.enyo.de>
8850
ece2d1b8
FW
8851 * gnat-style.texi (Declarations and Types): Remove ancient style
8852 rule which was mandated by code generation issues.
82a4b025 8853
b3d45d87
FW
8854 * gnat-style.texi (header): Add @dircategory, @direntry.
8855 (title page): Remove date.
8856 (general) Add @./@: where approriate, and two spaces after the
8857 full stop at the end of a sentence. Use @samp markup when
8858 referring concrete lexical entities (keywords, attribute names
8859 etc.), and @syntax for ARM grammar elements. Use @r for English
8860 text in comments. Use @emph for emphasis. Change "if-statements"
8861 etc. to "if statements" (without @samp). Break long lines. Make
8862 casing of section names consistent.
8863 (Identifiers): Use @samp markup for variable names.
8864 (Comments): Use @samp markup for comment characters. Line-end
8865 comments may follow any Ada code, not just statements. Fix
8866 misspelling of "Integer" as "integer".
8867 (Loop statements): Do not use variable name "I", use "J".
8868 (Subprogram Declarations): Document alignment.
8869 (Subprogram Bodies, Block statements): Document empty line before
8870 "begin".
8871
7a73ad55
FW
88722001-12-22 Florian Weimer <fw@deneb.enyo.de>
8873
8874 * make.adb (Add_Switch): Make Generic_Position a procedure. The
8875 function approach did not work well because of a side effect (the
8876 function call could reallocate the table which was being indexed
8877 using its result). Fixes ada/4851.
8878
17c5c8a5
GB
88792001-12-19 Robert Dewar <dewar@gnat.com>
8880
8881 * bindgen.adb: Minor reformatting
82a4b025 8882
17c5c8a5 8883 * cstand.adb: Minor reformatting
82a4b025 8884
17c5c8a5
GB
8885 * fmap.adb: Minor reformatting
8886 Change name from Add for Add_To_File_Map (Add is much too generic)
8887 Change Path_Name_Of to Mapped_Path_Name
8888 Change File_Name_Of to Mapped_File_Name
8889 Fix copyright dates in header
82a4b025 8890
17c5c8a5
GB
8891 * fmap.ads:
8892 Change name from Add for Add_To_File_Map (Add is much too generic)
8893 Change Path_Name_Of to Mapped_Path_Name
8894 Change File_Name_Of to Mapped_File_Name
8895 Fix copyright dates in header
82a4b025 8896
17c5c8a5
GB
8897 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
8898 Add use clause for Fmap.
82a4b025 8899
17c5c8a5 8900 * make.adb: Minor reformatting
82a4b025 8901
17c5c8a5
GB
8902 * osint.adb: Minor reformatting. Change of names in Fmap.
8903 Add use clause for Fmap.
82a4b025 8904
17c5c8a5 8905 * prj-env.adb: Minor reformatting
82a4b025 8906
17c5c8a5 8907 * prj-env.ads: Minor reformatting
82a4b025 8908
07fc65c4
GB
8909 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
8910 error found (there were odd exceptions to this general rule in
17c5c8a5 8911 -gnatec/-gnatem processing)
82a4b025 8912
17c5c8a5
GB
89132001-12-19 Olivier Hainque <hainque@gnat.com>
8914
07fc65c4
GB
8915 * raise.c (__gnat_eh_personality): Exception handling personality
8916 routine for Ada. Still in rough state, inspired from the C++ version
17c5c8a5 8917 and still containing a bunch of debugging artifacts.
07fc65c4 8918 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
17c5c8a5 8919 inspired from the C++ library.
82a4b025 8920
07fc65c4 8921 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
17c5c8a5 8922 exception handling integration.
82a4b025 8923
17c5c8a5
GB
89242001-12-19 Arnaud Charlet <charlet@gnat.com>
8925
8926 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
8927 (HIE_SOURCES): Add s-secsta.ad{s,b}.
8928 (HIE_OBJS): Add s-fat*.o
07fc65c4 8929 (RAVEN_SOURCES): Remove files that are no longer required. Add
17c5c8a5
GB
8930 interrupt handling files.
8931 (RAVEN_MOD): Removed, no longer needed.
82a4b025 8932
17c5c8a5
GB
89332001-12-19 Robert Dewar <dewar@gnat.com>
8934
8935 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
8936 Add 2001 to copyright date
82a4b025 8937
07fc65c4 8938 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
17c5c8a5 8939 need to force universal inlining for these cases.
82a4b025 8940
17c5c8a5
GB
89412001-12-19 Arnaud Charlet <charlet@gnat.com>
8942
07fc65c4 8943 * s-taprob.adb: Minor clean ups so that this unit can be used in
17c5c8a5 8944 Ravenscar HI.
82a4b025 8945
17c5c8a5
GB
8946 * exp_ch7.adb: Allow use of secondary stack in HI mode.
8947 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
82a4b025 8948
17c5c8a5
GB
89492001-12-19 Vincent Celier <celier@gnat.com>
8950
07fc65c4 8951 * prj-tree.ads (Project_Node_Record): Add comments for components
17c5c8a5 8952 Pkg_Id and Case_Insensitive.
82a4b025 8953
17c5c8a5
GB
89542001-12-19 Pascal Obry <obry@gnat.com>
8955
8956 * g-socket.adb: Minor reformatting. Found while reading code.
82a4b025 8957
17c5c8a5
GB
89582001-12-19 Robert Dewar <dewar@gnat.com>
8959
8960 * prj-tree.ads: Minor reformatting
8961
38be19f6
JM
89622001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
8963
8964 * config-lang.in (diff_excludes): Remove.
8965
6510f4c9
GB
89662001-12-17 Ed Schonberg <schonber@gnat.com>
8967
07fc65c4
GB
8968 * sem_res.adb (Resolve_Selected_Component): do not generate a
8969 discriminant check if the selected component is a component of
6510f4c9
GB
8970 the argument of an initialization procedure.
8971
07fc65c4
GB
8972 * trans.c (tree_transform, case of arithmetic operators): If result
8973 type is private, the gnu_type is the base type of the full view,
6510f4c9 8974 given that the full view itself may be a subtype.
82a4b025 8975
6510f4c9
GB
89762001-12-17 Robert Dewar <dewar@gnat.com>
8977
8978 * sem_res.adb: Minor reformatting
82a4b025 8979
07fc65c4
GB
8980 * trans.c (tree_transform, case N_Real_Literal): Add missing third
8981 parameter in call to Machine (unknown horrible effects from this
6510f4c9 8982 omission).
82a4b025 8983
6510f4c9
GB
8984 * urealp.h: Add definition of Round_Even for call to Machine
8985 Add third parameter for Machine
82a4b025 8986
6510f4c9
GB
89872001-12-17 Ed Schonberg <schonber@gnat.com>
8988
07fc65c4 8989 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
6510f4c9 8990 predefined units in No_Run_Time mode.
82a4b025 8991
6510f4c9
GB
89922001-12-17 Richard Kenner <kenner@gnat.com>
8993
8994 * misc.c (insn-codes.h): Now include.
82a4b025 8995
6510f4c9
GB
89962001-12-17 Olivier Hainque <hainque@gnat.com>
8997
07fc65c4 8998 * a-except.adb: Preparation work for future integration of the GCC 3
6510f4c9
GB
8999 exception handling mechanism
9000 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
9001 to factorize previous code sequences and make them externally callable,
9002 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
9003 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
9004 Use the new notification routines.
82a4b025 9005
6510f4c9
GB
90062001-12-17 Emmanuel Briot <briot@gnat.com>
9007
9008 * prj-tree.ads (First_Choice_Of): Document the when others case
82a4b025 9009
6510f4c9
GB
90102001-12-17 Arnaud Charlet <charlet@gnat.com>
9011
07fc65c4 9012 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
6510f4c9 9013 HI-E mode, in order to support Ravenscar profile properly.
82a4b025 9014
07fc65c4 9015 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
6510f4c9 9016 mode on 32 bits targets.
82a4b025 9017
6510f4c9
GB
90182001-12-17 Vincent Celier <celier@gnat.com>
9019
9020 * fmap.adb: Initial version.
82a4b025 9021
6510f4c9 9022 * fmap.ads: Initial version.
82a4b025 9023
6510f4c9
GB
9024 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
9025 If search is successfully done, add to mapping.
82a4b025 9026
6510f4c9 9027 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
82a4b025 9028
6510f4c9
GB
9029 * make.adb:
9030 (Gnatmake): Add new local variable Mapping_File_Name.
9031 Create mapping file when using project file(s).
9032 Delete mapping file before exiting.
82a4b025 9033
6510f4c9 9034 * opt.ads (Mapping_File_Name): New variable
82a4b025 9035
6510f4c9 9036 * osint.adb (Find_File): Use path name found in mapping, if any.
82a4b025 9037
6510f4c9 9038 * prj-env.adb (Create_Mapping_File): New procedure
82a4b025 9039
6510f4c9 9040 * prj-env.ads (Create_Mapping_File): New procedure.
82a4b025 9041
07fc65c4 9042 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
6510f4c9 9043 (Mapping_File)
82a4b025 9044
6510f4c9 9045 * usage.adb: Add entry for new switch -gnatem.
82a4b025 9046
6510f4c9 9047 * Makefile.in: Add dependencies for fmap.o.
82a4b025 9048
6510f4c9
GB
90492001-12-17 Ed Schonberg <schonber@gnat.com>
9050
07fc65c4 9051 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
6510f4c9
GB
9052 is a package instantiation rewritten as a package body.
9053 (Install_Withed_Unit): Undo previous change, now redundant.
82a4b025 9054
6510f4c9
GB
90552001-12-17 Gary Dismukes <dismukes@gnat.com>
9056
9057 * layout.adb:
9058 (Compute_Length): Move conversion to Unsigned to callers.
9059 (Get_Max_Size): Convert Len expression to Unsigned after calls to
9060 Compute_Length and Determine_Range.
9061 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
9062 Compute_Length and Determine_Range.
9063 Above changes fix problem with length computation for supernull arrays
07fc65c4 9064 where Max (Len, 0) wasn't getting applied due to the Unsigned
6510f4c9 9065 conversion used by Compute_Length.
82a4b025 9066
6510f4c9
GB
90672001-12-17 Arnaud Charlet <charlet@gnat.com>
9068
9069 * rtsfind.ads:
9070 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
9071 System.Secondary_Stack.
9072 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
9073 in HI-E mode.
9074 Remove unused entity RE_Exception_Data.
82a4b025 9075
6510f4c9 9076 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
82a4b025 9077
6510f4c9
GB
9078 * rident.ads (No_Secondary_Stack): New restriction.
9079
3a77b68d
GB
90802001-12-17 Joel Brobecker <brobecke@gnat.com>
9081
07fc65c4 9082 * gnat_rm.texi: Fix minor typos. Found while reading the section
3a77b68d
GB
9083 regarding "Bit_Order Clauses" that was sent to a customer.
9084 Very interesting documentation!
82a4b025 9085
3a77b68d
GB
90862001-12-17 Robert Dewar <dewar@gnat.com>
9087
07fc65c4
GB
9088 * sem_case.adb (Choice_Image): Avoid creating improper character
9089 literal names by using the routine Set_Character_Literal_Name. This
3a77b68d 9090 fixes bombs in certain error message cases.
82a4b025 9091
3a77b68d
GB
90922001-12-17 Arnaud Charlet <charlet@gnat.com>
9093
9094 * a-reatim.adb: Minor reformatting.
82a4b025 9095
3a77b68d
GB
90962001-12-17 Ed Schonberg <schonber@gnat.com>
9097
07fc65c4
GB
9098 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
9099 case where the formal is an extension of another formal in the current
3a77b68d 9100 unit or in a parent generic unit.
82a4b025 9101
3a77b68d
GB
91022001-12-17 Arnaud Charlet <charlet@gnat.com>
9103
07fc65c4 9104 * s-tposen.adb: Update comments. Minor reformatting.
3a77b68d 9105 Minor code clean up.
82a4b025 9106
3a77b68d 9107 * s-tarest.adb: Update comments. Minor code reorganization.
82a4b025 9108
3a77b68d
GB
91092001-12-17 Gary Dismukes <dismukes@gnat.com>
9110
07fc65c4 9111 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
3a77b68d 9112 when Java_VM.
82a4b025 9113
3a77b68d
GB
91142001-12-17 Robert Dewar <dewar@gnat.com>
9115
9116 * exp_attr.adb: Minor reformatting
82a4b025 9117
3a77b68d
GB
91182001-12-17 Ed Schonberg <schonber@gnat.com>
9119
07fc65c4 9120 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
3a77b68d
GB
9121 derivations nested within a child unit: verify that the parent
9122 type is declared in an outer scope.
82a4b025 9123
3a77b68d
GB
91242001-12-17 Robert Dewar <dewar@gnat.com>
9125
9126 * sem_ch12.adb: Minor reformatting
82a4b025 9127
3a77b68d
GB
91282001-12-17 Ed Schonberg <schonber@gnat.com>
9129
07fc65c4
GB
9130 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
9131 warning if current unit is a predefined one, from which bodies may
3a77b68d 9132 have been deleted.
82a4b025 9133
3a77b68d
GB
91342001-12-17 Robert Dewar <dewar@gnat.com>
9135
9136 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
9137 Fix header format. Add 2001 to copyright date.
82a4b025 9138
07fc65c4 9139 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
3a77b68d
GB
9140 which caused CE during compilation if checks were enabled.
9141
79503fdd
GB
91422001-12-17 Vincent Celier <celier@gnat.com>
9143
9144 * make.adb:
9145 (Switches_Of): New function
9146 (Test_If_Relative_Path): New procedure
9147 (Add_Switches): Use new function Switches_Of
9148 (Collect_Arguments_And_Compile): Use new function Switches_Of.
9149 When using a project file, test if there are any relative
9150 search path. Fail if there are any.
07fc65c4
GB
9151 (Gnatmake): Only add switches for the primary directory when not using
9152 a project file. When using a project file, change directory to the
9153 object directory of the main project file. When using a project file,
9154 test if there are any relative search path. Fail if there are any.
9155 When using a project file, fail if specified executable is relative
9156 path with directory information, and prepend executable, if not
9157 specified as an absolute path, with the exec directory. Make sure
79503fdd 9158 that only one -o switch is transmitted to the linker.
82a4b025 9159
79503fdd 9160 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
82a4b025 9161
79503fdd
GB
9162 * prj-nmsc.adb:
9163 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
9164 when using a non standard naming scheme.
9165 (Check_Ada_Naming_Scheme): Make sure that error messages
9166 do not raise exceptions.
9167 (Is_Illegal_Append): Return True if there is no dot in the suffix.
9168 (Language_Independent_Check): Check the exec directory.
82a4b025 9169
79503fdd 9170 * prj.adb (Project_Empty): Add new component Exec_Directory
82a4b025 9171
79503fdd
GB
9172 * prj.ads:
9173 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
9174 (Project_Data): Add component Exec_Directory
82a4b025 9175
79503fdd 9176 * snames.adb: Updated to match snames.ads revision 1.215
82a4b025 9177
79503fdd 9178 * snames.ads: Added Exec_Dir
82a4b025 9179
79503fdd
GB
91802001-12-17 Robert Dewar <dewar@gnat.com>
9181
9182 * make.adb: Minor reformatting
82a4b025 9183
79503fdd 9184 * prj-nmsc.adb: Minor reformatting
82a4b025 9185
79503fdd 9186 * snames.adb: Updated to match snames.ads
82a4b025 9187
79503fdd
GB
9188 * snames.ads: Alphebetize entries for project file
9189
91902001-12-17 Ed Schonberg <schonber@gnat.com>
9191
07fc65c4 9192 * trans.c (process_freeze_entity): Do nothing if the entity is a
79503fdd 9193 subprogram that was already elaborated.
82a4b025 9194
79503fdd 91952001-12-17 Richard Kenner <kenner@gnat.com>
82a4b025 9196
07fc65c4 9197 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
79503fdd
GB
9198 and Esize if object is referenced via pointer.
9199
855ff2e1
GB
92002001-12-17 Ed Schonberg <schonber@gnat.com>
9201
07fc65c4 9202 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
855ff2e1 9203 is discrete before analyzing choices.
82a4b025 9204
855ff2e1
GB
92052001-12-17 Joel Brobecker <brobecke@gnat.com>
9206
07fc65c4
GB
9207 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
9208 containing the name of the Ada Main Program. This string is mainly
855ff2e1
GB
9209 intended for the debugger.
9210 (Gen_Output_File_C): Do the equivalent change when generating a C file.
82a4b025 9211
855ff2e1
GB
92122001-12-17 Robert Dewar <dewar@gnat.com>
9213
9214 * ali.adb: Set new Dummy_Entry field in dependency entry
82a4b025 9215
855ff2e1 9216 * ali.ads: Add Dummy_Entry field to source dependency table
82a4b025 9217
855ff2e1 9218 * bcheck.adb (Check_Consistency): Ignore dummy D lines
82a4b025 9219
855ff2e1 9220 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
82a4b025 9221
855ff2e1 9222 * lib-writ.ads: Document dummy D lines for missing files.
82a4b025 9223
855ff2e1
GB
9224 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
9225
c1c22e7a
GB
92262001-12-17 Robert Dewar <dewar@gnat.com>
9227
9228 * ali.adb: Type reference does not reset current file.
82a4b025 9229
c1c22e7a 9230 * ali.adb: Recognize and scan renaming reference
82a4b025 9231
c1c22e7a 9232 * ali.ads: Add spec for storing renaming references.
82a4b025 9233
c1c22e7a 9234 * lib-xref.ads: Add documentation for handling of renaming references
82a4b025 9235
c1c22e7a 9236 * lib-xref.adb: Implement output of renaming reference.
82a4b025 9237
c1c22e7a
GB
9238 * checks.adb:
9239 (Determine_Range): Document local variables
9240 (Determine_Range): Make sure Hbound is initialized. It looks as though
9241 there could be a real problem here with an uninitialized reference
9242 to Hbound, but no actual example of failure has been found.
82a4b025 9243
c1c22e7a
GB
92442001-12-17 Laurent Pautet <pautet@gnat.com>
9245
9246 * g-socket.ads:
9247 Fix comment of Shutdown_Socket and Close_Socket. These functions
9248 should not fail silently because if they are called twice, this
9249 probably means that there is a race condition in the user program.
9250 Anyway, this behaviour is consistent with the rest of this unit.
9251 When an error occurs, an exception is raised with the error message
9252 as exception message.
9253
7eb7bb07
RD
92542001-12-17 Robert Dewar <dewar@gnat.com>
9255
07fc65c4 9256 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
7eb7bb07 9257 that it happens before modification of Sloc values for -gnatD.
82a4b025 9258
07fc65c4 9259 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
7eb7bb07 9260 so that it happens before modification of Sloc values for -gnatD.
82a4b025 9261
7eb7bb07
RD
9262 * switch.adb: Minor reformatting
9263
b6434700
RH
92642001-12-15 Richard Henderson <rth@redhat.com>
9265
9266 * sem_ch7.adb: Wrap comment.
9267
44d6a706
JM
92682001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
9269
9270 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
9271 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
9272 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
9273 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
9274 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
9275 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
9276 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
9277 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
9278 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
9279 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
9280 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
9281 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
9282 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
9283 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
9284 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
9285 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
9286 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
9287 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
9288 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
9289 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
9290 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
9291 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
9292 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
9293 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
9294 spelling errors.
9295
226ada7a
GB
92962001-12-14 Vincent Celier <celier@gnat.com>
9297
07fc65c4 9298 * osint.adb(Create_Debug_File): When an object file is specified,
226ada7a 9299 put the .dg file in the same directory as the object file.
82a4b025 9300
226ada7a
GB
93012001-12-14 Robert Dewar <dewar@gnat.com>
9302
9303 * osint.adb: Minor reformatting
82a4b025 9304
07fc65c4 9305 * lib-xref.adb (Output_Instantiation): New procedure to generate
226ada7a 9306 instantiation references.
82a4b025 9307
226ada7a 9308 * lib-xref.ads: Add documentation of handling of generic references.
82a4b025 9309
07fc65c4 9310 * ali.adb (Read_Instantiation_Ref): New procedure to read
226ada7a 9311 instantiation references
82a4b025 9312
226ada7a 9313 * ali.ads: Add spec for storing instantiation references
82a4b025 9314
226ada7a 9315 * bindusg.adb: Minor reformatting
82a4b025 9316
226ada7a 9317 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 9318
226ada7a 9319 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 9320
226ada7a 9321 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 9322
226ada7a 9323 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 9324
226ada7a
GB
9325 * csets.ads:
9326 Fix header format
9327 Add 2001 to copyright date
9328 Add entry for Latin-5 (Cyrillic ISO-8859-5)
82a4b025 9329
226ada7a
GB
93302001-12-14 Matt Gingell <gingell@gnat.com>
9331
07fc65c4 9332 * adaint.c: mktemp is a macro on Lynx and can not be used as an
226ada7a 9333 expression.
82a4b025 9334
226ada7a
GB
93352001-12-14 Richard Kenner <kenner@gnat.com>
9336
07fc65c4 9337 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
226ada7a 9338 if operand is CONSTRUCTOR.
82a4b025 9339
226ada7a
GB
93402001-12-14 Ed Schonberg <schonber@gnat.com>
9341
07fc65c4
GB
9342 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
9343 before emiting check on right-hand side, so that exception information
226ada7a
GB
9344 is correct.
9345
93462001-12-14 Richard Kenner <kenner@gnat.com>
82a4b025 9347
07fc65c4 9348 * utils.c (create_var_decl): Throw away initializing expression
226ada7a 9349 if just annotating types and non-constant.
82a4b025 9350
226ada7a
GB
93512001-12-14 Vincent Celier <celier@gnat.com>
9352
9353 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
9354 Default_Ada_...
82a4b025 9355
07fc65c4 9356 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
9357 Remove functions.
9358 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
82a4b025 9359
07fc65c4 9360 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
226ada7a
GB
9361 Remove functions.
9362 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
9363
9b94bf9e
JM
93642001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
9365
9366 * ChangeLog: Remove piece of diff output.
9367
449d2be3
GB
93682001-12-14 Geert Bosch <bosch@gnat.com>
9369
9370 * config-lang.in: Update copyright notice
9371
9372 * layout.adb: Remove commented out code.
9373
9374 * mdllfile.ads: Update copyright notice. Fix header format.
9375
9376 * sem_case.ads: Likewise.
9377
9378 * sem_ch3.adb: Minor reformatting.
9379
e5bd5cb4
GB
93802001-12-12 Geert Bosch <bosch@gnat.com>
9381
9382 * freeze.ads: Update copyright date.
9383
9384 * g-comlin.ads: Minor reformatting.
9385
9386 * gnat-style.texi: Fix typo.
9387
b468d8ec
GB
93882001-12-12 Geert Bosch <bosch@gnat.com>
9389
9390 * einfo.h: Regenerate.
9391
ed7da216
GB
93922001-12-12 Ed Schonberg <schonber@gnat.com>
9393
07fc65c4 9394 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
ed7da216 9395 on known node types, rather than untyped fields. Further cleanups.
82a4b025 9396
ed7da216
GB
93972001-12-12 Robert Dewar <dewar@gnat.com>
9398
9399 * sem_ch12.adb:
9400 (Save_Entity_Descendant): Minor comment update.
9401 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
07fc65c4 9402 of an N_Attribute_Reference node. As per note below, this does not
ed7da216 9403 eliminate need for Associated_Node in attribute ref nodes.
07fc65c4 9404 (Associated_Node): Documentation explicitly mentions attribute
ed7da216 9405 reference nodes, since this field is used in such nodes.
82a4b025 9406
ed7da216
GB
9407 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
9408
de76a39c
GB
94092001-12-12 Robert Dewar <dewar@gnat.com>
9410
9411 * s-stalib.adb: Add more comments on with statements being needed
82a4b025 9412
de76a39c 9413 * par-ch12.adb: Minor reformatting
82a4b025 9414
de76a39c 9415 * prj-dect.ads: Fix copyright header
82a4b025 9416
07fc65c4 9417 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
de76a39c 9418 inputs fit in 32 bits, but the result still overflows.
82a4b025 9419
de76a39c 9420 * s-fatgen.ads: Minor comment improvement
82a4b025 9421
de76a39c
GB
94222001-12-12 Ed Schonberg <schonber@gnat.com>
9423
07fc65c4
GB
9424 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
9425 formal derived type, look for an inherited component from the full
de76a39c 9426 view of the parent, if any.
82a4b025 9427
de76a39c
GB
94282001-12-12 Robert Dewar <dewar@gnat.com>
9429
9430 * checks.ads (Apply_Alignment_Check): New procedure.
82a4b025 9431
07fc65c4
GB
9432 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
9433 ensure that the alignment of objects with address clauses is
de76a39c
GB
9434 appropriate, and raise PE if not.
9435
07fc65c4 9436 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
de76a39c 9437 Exp_Pakd.Known_Aligned_Enough
82a4b025 9438
de76a39c
GB
9439 * mdllfile.ads: Minor reformatting
9440
9441 * mlib-fil.ads: Minor reformatting
82a4b025 9442
de76a39c
GB
94432001-12-12 Ed Schonberg <schonber@gnat.com>
9444
07fc65c4
GB
9445 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
9446 fix to any component reference if enclosing record has non-standard
de76a39c 9447 representation.
82a4b025 9448
de76a39c
GB
94492001-12-12 Vincent Celier <celier@gnat.com>
9450
07fc65c4 9451 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
de76a39c 9452 Iteration
82a4b025 9453
de76a39c
GB
94542001-12-12 Ed Schonberg <schonber@gnat.com>
9455
07fc65c4 9456 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
de76a39c 9457 sem_attr.
82a4b025 9458
de76a39c
GB
94592001-12-12 Robert Dewar <dewar@gnat.com>
9460
9461 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
82a4b025 9462
de76a39c
GB
94632001-12-12 Emmanuel Briot <briot@gnat.com>
9464
9465 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
9466 and it adds dependencies to system.io.
82a4b025 9467
de76a39c
GB
94682001-12-12 Pascal Obry <obry@gnat.com>
9469
07fc65c4 9470 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
de76a39c
GB
9471 variable name.
9472
0b09835f
ES
94732001-12-11 Ed Schonberg <schonber@gnat.com>
9474
9475 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
07fc65c4
GB
9476 that is the parent of other generics, the instance body replaces the
9477 instance node. Retrieve the instance of the spec, which is the one
0b09835f
ES
9478 that is visible in clients and within the body.
9479
598c3446
GB
94802001-12-11 Vincent Celier <celier@gnat.com>
9481
9482 * gnatmain.adb: Initial version.
82a4b025 9483
598c3446 9484 * gnatmain.ads: Initial version.
82a4b025 9485
598c3446 9486 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
82a4b025 9487
598c3446 9488 * snames.adb: Updated to match snames.ads.
82a4b025 9489
598c3446 9490 * snames.ads: Added Gnatstub.
82a4b025 9491
598c3446
GB
94922001-12-11 Vincent Celier <celier@gnat.com>
9493
07fc65c4 9494 * prj-attr.adb (Initialization_Data): Change name from
598c3446 9495 Initialisation_Data.
82a4b025 9496
598c3446
GB
94972001-12-11 Emmanuel Briot <briot@gnat.com>
9498
9499 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
9500 + and * applied to backslashed expressions like \r.
82a4b025 9501
598c3446
GB
95022001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
9503
07fc65c4 9504 * g-os_lib.ads: String_List type added, Argument_List type is now
598c3446 9505 subtype of String_List.
82a4b025 9506
598c3446
GB
95072001-12-11 Robert Dewar <dewar@gnat.com>
9508
9509 * g-os_lib.ads: Change copyright to FSF
9510 Add comments for String_List type
82a4b025 9511
598c3446
GB
95122001-12-11 Vincent Celier <celier@gnat.com>
9513
07fc65c4 9514 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
598c3446
GB
9515 string to the buffer).
9516
7fb754a1
GB
95172001-12-11 Ed Schonberg <schonber@gnat.com>
9518
9519 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
9520 sem_attr.
82a4b025 9521
7fb754a1 9522 * sem_attr.adb: Simplify previous fix for Address.
07fc65c4
GB
9523 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
9524 to avoid anomalies where the bound of the type appears to raise
7fb754a1
GB
9525 constraint error.
9526
95272001-12-11 Robert Dewar <dewar@gnat.com>
9528
07fc65c4 9529 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
7fb754a1 9530 handled.
82a4b025 9531
7fb754a1
GB
95322001-12-11 Ed Schonberg <schonber@gnat.com>
9533
07fc65c4 9534 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
7fb754a1 9535 renamed unit before checking for recursive instantiations.
82a4b025 9536
7fb754a1
GB
95372001-12-11 Emmanuel Briot <briot@gnat.com>
9538
9539 * prj.ads: Add comments for some of the fields.
9540
0873bafc
GB
95412001-12-11 Robert Dewar <dewar@gnat.com>
9542
07fc65c4 9543 * lib-xref.adb (Output_Refs): Don't output type references outside
0873bafc 9544 the main unit if they are not otherwise referenced.
82a4b025 9545
0873bafc
GB
95462001-12-11 Ed Schonberg <schonber@gnat.com>
9547
07fc65c4 9548 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
0873bafc 9549 code and diagnose additional illegal uses
82a4b025 9550
07fc65c4 9551 * sem_util.adb (Is_Object_Reference): An indexed component is an
0873bafc 9552 object only if the prefix is.
82a4b025 9553
0873bafc
GB
95542001-12-11 Vincent Celier <celier@gnat.com>
9555
9556 * g-diopit.adb: Initial version.
82a4b025 9557
0873bafc 9558 * g-diopit.ads: Initial version.
82a4b025 9559
0873bafc
GB
9560 * g-dirope.adb:
9561 (Expand_Path): Avoid use of Unbounded_String
9562 (Find, Wildcard_Iterator): Moved to child package Iteration
82a4b025 9563
0873bafc 9564 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
82a4b025 9565
7fb754a1 95662001-12-11 Robert Dewar <dewar@gnat.com>
0873bafc
GB
9567
9568 * sem_attr.adb: Minor reformatting
9569
d087cd96
GB
95702001-12-11 Ed Schonberg <schonber@gnat.com>
9571
9572 * sem_ch3.adb: Clarify some ???.
82a4b025 9573
d087cd96
GB
95742001-12-11 Robert Dewar <dewar@gnat.com>
9575
07fc65c4 9576 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
d087cd96 9577 Exp_Pakd.Known_Aligned_Enough
82a4b025 9578
07fc65c4 9579 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
d087cd96
GB
9580 version is moved to Exp_Ch13.
9581
95822001-12-11 Robert Dewar <dewar@gnat.com>
9583
9584 * einfo.ads: Minor reformatting
82a4b025 9585
d087cd96 9586 * exp_ch5.adb: Add comment for previous.change
82a4b025 9587
d087cd96 9588 * ali.adb: New interface for extended typeref stuff.
82a4b025 9589
d087cd96 9590 * ali.ads: New interface for typeref stuff.
82a4b025 9591
d087cd96 9592 * checks.adb (Apply_Alignment_Check): New procedure.
82a4b025 9593
d087cd96 9594 * debug.adb: Add -gnatdM for modified ALI output
82a4b025 9595
d087cd96 9596 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
82a4b025 9597
07fc65c4
GB
9598 * lib-xref.adb: Extend generation of <..> notation to cover
9599 subtype/object types. Note that this is a complete rewrite,
9600 getting rid of the very nasty quadratic algorithm previously
d087cd96 9601 used for derived type output.
82a4b025 9602
07fc65c4
GB
9603 * lib-xref.ads: Extend description of <..> notation to cover
9604 subtype/object types. Uses {..} for these other cases.
d087cd96 9605 Also use (..) for pointer types.
82a4b025 9606
d087cd96 9607 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
82a4b025 9608
07fc65c4 9609 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
d087cd96
GB
9610 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
9611
290986ed
GB
96122001-12-11 Vincent Celier <celier@gnat.com>
9613
9614 * gnatcmd.adb:
9615 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
9616 Changed /BIND_ONLY to /ACTIONS=BIND
9617 Changed /LINK_ONLY to /ACTIONS=LINK
82a4b025 9618
290986ed
GB
96192001-12-11 Ed Schonberg <schonber@gnat.com>
9620
9621 * sem_ch8.adb (Find_Selected_Component): improved search for a
9622 candidate package in case of error.
82a4b025 9623
290986ed
GB
9624 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
9625 chain back on scope stack before reinstalling use clauses.
82a4b025 9626
290986ed
GB
9627 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
9628 is enabled, do not kill the code for the condition, to preserve
9629 warning.
9630
84157f51
GB
96312001-12-11 Robert Dewar <dewar@gnat.com>
9632
07fc65c4 9633 * checks.adb (Insert_Valid_Check): Apply validity check to expression
84157f51
GB
9634 of conversion, not to result of conversion.
9635
96362001-12-11 Ed Schonberg <schonber@gnat.com>
82a4b025 9637
07fc65c4
GB
9638 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
9639 before freezing parent. If the declarations are mutually recursive,
9640 an access to the current record type may be frozen before the
84157f51
GB
9641 derivation is complete.
9642
7ffa903f
VC
96432001-12-05 Vincent Celier <celier@gnat.com>
9644
07fc65c4 9645 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
7ffa903f 9646 -c /COMPILE_ONLY, -l /LINK_ONLY
82a4b025 9647
7ffa903f
VC
9648 * opt.ads:
9649 (Bind_Only): New Flag
9650 (Link_Only): New flag
82a4b025 9651
07fc65c4 9652 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
7ffa903f 9653 and -l (Link_Only)
82a4b025 9654
7ffa903f 9655 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
82a4b025 9656
7ffa903f
VC
9657 * make.adb:
9658 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
9659 (Gnatmake): Set the step flags. Only perform a step if the
9660 corresponding step flag is True.
9661 (Scan_Make_Arg): Reset the bind and link step flags when -u
9662 or -gnatc has been specified.
9663
f91b40db
GB
96642001-12-05 Ed Schonberg <schonber@gnat.com>
9665
07fc65c4 9666 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
f91b40db 9667 get bounds from right operand.
82a4b025 9668
f91b40db 9669 * sem_eval.adb: Minor reformatting
82a4b025 9670
07fc65c4 9671 * exp_util.adb (Make_Literal_Range): use bound of literal rather
f91b40db 9672 than Index'First, its lower bound may be different from 1.
82a4b025 9673
07fc65c4 9674 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
f91b40db 9675 and C48009J
82a4b025 9676
f91b40db
GB
96772001-12-05 Vincent Celier <celier@gnat.com>
9678
9679 * prj-nmsc.adb Minor reformatting
82a4b025 9680
07fc65c4 9681 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
f91b40db 9682 set and libraries are not supported.
82a4b025 9683
f91b40db
GB
96842001-12-05 Ed Schonberg <schonber@gnat.com>
9685
07fc65c4
GB
9686 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
9687 private view explicitly, so the back-end can treat as a global
f91b40db
GB
9688 when appropriate.
9689
45d04cbb
GB
96902001-12-05 Ed Schonberg <schonber@gnat.com>
9691
9692 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
9693 unit, always replace instance node with new body, for ASIS use.
9694
96952001-12-05 Vincent Celier <celier@gnat.com>
82a4b025 9696
07fc65c4
GB
9697 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
9698 libraries are not supported and both attributes Library_Name and
45d04cbb 9699 Library_Dir are specified.
82a4b025 9700
07fc65c4 9701 * prj-proc.adb (Expression): Set location of Result to location of
45d04cbb 9702 first term.
82a4b025 9703
45d04cbb
GB
9704 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
9705 (prj-nmsc is now importing MLib.Tgt)
82a4b025 9706
45d04cbb
GB
9707 * prj-proc.adb: Put the change indicated above that was forgotten.
9708
84436014
RD
97092001-12-05 Robert Dewar <dewar@gnat.com>
9710
9711 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
9712
7ae0dcd8
ES
97132001-12-05 Ed Schonberg <schonber@gnat.com>
9714
9715 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
9716 constraint, introduce explicit subtype declaration and derive from it.
82a4b025 9717
7ae0dcd8
ES
9718 * sem_ch3.adb: Minor reformatting
9719
c9a4817d
RD
97202001-12-05 Robert Dewar <dewar@gnat.com>
9721
07fc65c4 9722 * checks.adb (Determine_Range): Increase cache size for checks.
c9a4817d 9723 Minor reformatting
82a4b025 9724
c9a4817d
RD
9725 * exp_ch6.adb: Minor reformatting
9726 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
9727 a parameter whose root type is System.Address, since treating such
9728 subprograms as pure in the code generator is almost surely a mistake
9729 that will lead to unexpected results.
82a4b025 9730
07fc65c4 9731 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
c9a4817d 9732 change handling of conversions.
82a4b025 9733
c9a4817d
RD
9734 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
9735
2514b839
ES
97362001-12-05 Ed Schonberg <schonber@gnat.com>
9737
07fc65c4
GB
9738 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
9739 aggregate with static wrong size, attach generated Raise node to
2514b839
ES
9740 declaration.
9741
457b6274
RD
97422001-12-05 Robert Dewar <dewar@gnat.com>
9743
07fc65c4 9744 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
457b6274
RD
9745 Fixes compilation abandoned bomb in B24009B.
9746
19349925
ES
97472001-12-05 Ed Schonberg <schonber@gnat.com>
9748
9749 * sem_ch12.adb:
9750 Document use of Associated_Node on Selected_Components.
9751 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
9752 to clarify use of untyped descendant fields.
9753
6663c393
RD
97542001-12-05 Robert Dewar <dewar@gnat.com>
9755
9756 * prj-dect.ads: Add ??? comment
9757 Add 2001 to copyright notice (was not done in after all)
82a4b025 9758
6663c393 9759 * prj-part.adb: Minor reformatting. Reword one awkward error message.
82a4b025 9760
6663c393 9761 * prj.ads: Minor reformatting throughout, and add some ??? comments
82a4b025 9762
6663c393
RD
9763 * snames.ads: Minor reformatting
9764
d7b2a6af
GB
97652001-12-05 Geert Bosch <bosch@gnat.com>
9766
9767 * snames.adb: Autoupdate
9768
fbc9a404
VC
97692001-12-05 Vincent Celier <celier@gnat.com>
9770
9771 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
82a4b025 9772
fbc9a404 9773 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
82a4b025 9774
fbc9a404 9775 * prj-env.adb: Minor comment changes (modifying -> extends).
82a4b025 9776
fbc9a404 9777 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
82a4b025 9778
07fc65c4 9779 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
fbc9a404 9780 Tok_Extends.
82a4b025 9781
fbc9a404 9782 * prj.adb (Initialize): Change Modifying to Extends.
82a4b025 9783
fbc9a404 9784 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
82a4b025 9785
fbc9a404 9786 * prj.ads: Minor comment change (Modifying -> extending).
82a4b025 9787
fbc9a404
VC
9788 * snames.ads: Change modifying to extends.
9789
7cff0b1b
RD
97902001-12-05 Robert Dewar <dewar@gnat.com>
9791
07fc65c4 9792 * sem_warn.adb: Remove stuff for conditionals, we are not going to
7cff0b1b 9793 do this after all.
82a4b025 9794
07fc65c4 9795 * sem_warn.ads: Remove stuff for conditionals, we are not going to
7cff0b1b
RD
9796 do this after all. Add 2001 to copyright notice
9797
4f56ebb7
GB
97982001-12-04 Geert Bosch <bosch@gnat.com>
9799
9800 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
9801
053defdf
RD
98022001-12-04 Robert Dewar <dewar@gnat.com>
9803
07fc65c4
GB
9804 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
9805 location if we already have errors. Stops some cases of cascaded
053defdf 9806 errors.
82a4b025 9807
053defdf
RD
9808 * errout.adb: Improve comment.
9809
f311e166
RD
98102001-12-04 Robert Dewar <dewar@gnat.com>
9811
9812 * sem_ch12.adb:
9813 (Analyze_Formal_Type_Definition): Defend against Error.
9814 (Analyze_Formal_Subprogram): Defend against Error.
82a4b025 9815
07fc65c4 9816 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
f311e166
RD
9817 remove following semicolon if present. Removes cascaded error.
9818
d61bd65a
DR
98192001-12-04 Douglas B. Rupp <rupp@gnat.com>
9820
9821 * bindgen.adb:
9822 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
9823 exceptions equals 0.
9824 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
9825 Fixes PIWG E tests (which have to be run with -gnatL).
9826
4ba603e2
RD
98272001-12-04 Robert Dewar <dewar@gnat.com>
9828
9829 * einfo.ads: Minor reformatting
9830
57568d91
ES
98312001-12-04 Ed Schonberg <schonber@gnat.com>
9832
07fc65c4
GB
9833 * einfo.ads: Block_Node points to the identifier of the block, not to
9834 the block node itself, to preserve the link when the block is
9835 rewritten, e.g. within an if-statement with a static condition.
82a4b025 9836
07fc65c4 9837 * inline.adb (Cleanup_Scopes): recover block statement from block
57568d91 9838 entity using new meaning of Block_Node.
82a4b025 9839
07fc65c4 9840 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
57568d91
ES
9841 identifier of block node, rather than to node itself.
9842
0815d36a 98432001-12-04 Gary Dismukes <dismukes@gnat.com>
82a4b025 9844
0815d36a
GD
9845 * layout.adb:
9846 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
9847 (Discrimify): Go back to setting the Etypes of the selected component
07fc65c4 9848 because the Vname component does not exist at this point and will
0815d36a
GD
9849 fail name resolution. Also set Analyzed.
9850 Remove with and use of Sem_Res.
9851
edc0f304
AC
98522001-12-04 Arnaud Charlet <charlet@gnat.com>
9853
9854 * Makefile.in: (HIE_SOURCES): add s-fat*.
9855
32213142
RD
98562001-12-04 Robert Dewar <dewar@gnat.com>
9857
9858 * sem_attr.adb:
9859 (Compile_Time_Known_Attribute): New procedure.
9860 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
9861 proper range check.
9862
c0def2ad
ES
98632001-12-04 Ed Schonberg <schonber@gnat.com>
9864
07fc65c4 9865 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
c0def2ad
ES
9866 processing discriminants to diagnose illegal default values.
9867
ee0a48c5
ES
98682001-12-04 Ed Schonberg <schonber@gnat.com>
9869
07fc65c4
GB
9870 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
9871 access discriminant within a type extension that constrains its
ee0a48c5
ES
9872 parent discriminants.
9873
dd5875a6
ES
98742001-12-04 Ed Schonberg <schonber@gnat.com>
9875
07fc65c4 9876 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
dd5875a6 9877 is malformed, use instance of Any_Id to allow analysis to proceed.
82a4b025 9878
07fc65c4 9879 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
dd5875a6
ES
9880 type definition is illegal.
9881 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
9882 misplaced.
9883
c2a41e57
ES
98842001-12-04 Ed Schonberg <schonber@gnat.com>
9885
07fc65c4 9886 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
c2a41e57
ES
9887 constants.
9888
0ae84753
RD
98892001-12-04 Robert Dewar <dewar@gnat.com>
9890
9891 * errout.adb: Minor reformatting
9892
63db260e
RD
98932001-12-04 Robert Dewar <dewar@gnat.com>
9894
9895 * exp_util.adb: Minor reformatting from last change
82a4b025 9896
07fc65c4
GB
9897 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
9898 which is a rewriting of an expression, traverse the original
63db260e
RD
9899 expression to remove warnings that may have been posted on it.
9900
c6d289f4
ES
99012001-12-04 Ed Schonberg <schonber@gnat.com>
9902
07fc65c4 9903 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
c6d289f4
ES
9904 record that has other packed components.
9905
5917e80d
DR
99062001-12-04 Douglass B. Rupp <rupp@gnat.com>
9907
9908 * adaint.c: Minor cleanups.
9909
2c70f9dd
DR
99102001-12-04 Douglass B. Rupp <rupp@gnat.com>
9911
9912 * adaint.c: Do not use utime.h on vxworks.
9913
e59b3387
AC
99142001-12-04 Arnaud Charlet <charlet@gnat.com>
9915
07fc65c4 9916 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
e59b3387
AC
9917 more confusion than it solves.
9918
e288604a
GB
99192001-12-04 Geert bosch <bosch@gnat.com>
9920
9921 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
9922
5ac21013
GB
99232001-12-04 Geert Bosch <bosch@gnat.com>
9924
07fc65c4 9925 * Makefile.in (update-sources): New target.
5ac21013
GB
9926 For use by gcc_release script.
9927
7dd5bd5e
ES
99282001-12-04 Ed Schonberg <schonber@gnat.com>
9929
07fc65c4 9930 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
7dd5bd5e
ES
9931 a configuration pragma, it is now legal wherever a pragma can appear.
9932
a078a589
ZW
99332001-12-04 Zack Weinberg <zack@codesourcery.com>
9934
9935 * Makefile.in: Don't set ALL. Delete @cross_defines@,
9936 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
9937 is now @CROSS@ -DIN_GCC; update comment.
9938
0839863c
GB
99392001-12-04 Robert Dewar <dewar@gnat.com>
9940
9941 * einfo.adb (Has_Pragma_Pure_Function): New flag.
9942 Fix problem that stopped ceinfo from working
82a4b025 9943
0839863c 9944 * einfo.ads (Has_Pragma_Pure_Function): New flag.
82a4b025 9945
0839863c
GB
9946 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
9947
99482001-12-04 Douglas B. Rupp <rupp@gnat.com>
9678de49
DR
9949
9950 * gnatchop.adb:
9951 (File_Time_Stamp): New procedure.
9952 (Preserve_Mode): New boolean.
9953 (Write_Unit): Pass time stamp.
9954 Implement -p switch (preserve time stamps).
82a4b025 9955
9678de49 9956 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
82a4b025 9957
9678de49 9958 * gnatchop.adb: Do usage info for -p switch
82a4b025 9959
9678de49 9960 * adaint.h (__gnat_set_file_time_name): New function
82a4b025 9961
9678de49 9962 * adaint.c (__gnat_set_file_time_name): Implement
82a4b025 9963
9678de49
DR
9964 * adaint.h: Fix typo
9965
3b9a13c4
RD
99662001-12-03 Robert Dewar <dewar@gnat.com>
9967
667e5c5d 9968 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
b4f94ac1 9969 have Associated_Node.
3b9a13c4 9970
767b404e
RD
99712001-12-03 Robert Dewar <dewar@gnat.com>
9972
9973 * prj-proc.adb: Minor reformatting
667e5c5d 9974
767b404e
RD
9975 * make.adb: Minor reformatting
9976
11ac71ba
GB
99772001-12-03 Geert Bosch <bosch@gnat.com>
9978
667e5c5d 9979 * make.adb: Minor reformatting.
11ac71ba 9980
ef3d4d6e 99812001-12-03 Robert Dewar <dewar@gnat.com>
b1446533
RD
9982
9983 * sem_ch12.adb: Minor reformatting
9984
d6d32b24
ES
99852001-12-03 Ed Schonberg <schonber@gnat.com>
9986
667e5c5d
AJ
9987 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
9988 push Standard on the stack before analyzing the instance body,
d6d32b24 9989 in order to have a clean visibility environment.
667e5c5d
AJ
9990
9991 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
d6d32b24 9992
13f08f03
ES
99932001-12-03 Ed Schonberg <schonber@gnat.com>
9994
667e5c5d 9995 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13f08f03
ES
9996 instantiation of a body that contains an inlined body.
9997
3bd6c100
ES
99982001-12-03 Ed Schonberg <schonber@gnat.com>
9999
10000 * sem_ch12.adb:
10001 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
10002 to prevent freezing within formal packages.
10003 (Freeze_Subprogram_Body): If body comes from another instance that
10004 appeared before its own body, place freeze node at end of current
10005 declarative part, to prevent a back-end crash.
10006 (Inline_Instance_Body): Handle properly a package instance within
10007 a subprogram instance that is a child unit.
10008
58d07d8f
GS
100092001-12-01 Graham Stott <grahams@redhat.com>
10010
10011 * Makefile.in (misc.o): Add missing $(srcdir) prefix
10012 and add optabs.h dependency.
10013
10014 * misc.c: Include optabs.h
10015 (gnat_tree_code_type): Make static and const.
10016 (gnat_tree_code_length): Likewise.
10017 (gnat_tree_code_name): Likewise.
10018 (update_setjmp_buf): Obtain operands mode from insn_data.
10019
c87222f0
RH
100202001-11-29 Richard Henderson <rth@redhat.com>
10021
10022 * init.c: Remove obsolete dwarf2 frame.h section.
10023
d3945f0a
JM
100242001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
10025
10026 * Make-lang.in (ada.generated-manpages): New dummy target.
10027
9f639397
ES
100282001-11-29 Ed Schonberg <schonber@gnat.com>
10029
667e5c5d
AJ
10030 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
10031 into Command, an array conversion is illegal here. Uncovered by
9f639397
ES
10032 ACATS B460005.
10033
c835e5c6
GB
100342001/11/28 Geert Bosch <bosch@gnat.com>
10035
10036 * init.c: Minor whitespace changes.
10037
49bb4548
DR
100382001-11-28 Doug Rupp <rupp@gnat.com>
10039
667e5c5d 10040 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
49bb4548
DR
10041 signal stack.
10042
ea2417e5
ZW
100432001-11-28 Zack Weinberg <zack@codesourcery.com>
10044
10045 * misc.c (gnat_expand_constant): Move declaration above
10046 definition of lang_hooks.
10047 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
10048 (gnat_init): lang_expand_constant no longer exists.
10049
10050 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
10051 always have vprintf.
10052 (gnat_init): Always call set_internal_error_function.
10053
f8e0aa73
AJ
100542001-11-27 Andreas Jaeger <aj@suse.de>
10055
10056 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
10057
d99b0e79
LG
100582001-11-27 Laurent Guerby <guerby@acm.org>
10059
10060 * Makefile.in: Regenerate Ada dependencies.
10061
3f0496e5
RH
100622001-11-26 Richard Henderson <rth@redhat.com>
10063
10064 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
10065 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
10066 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
10067
92fa4733
LG
100682001-11-25 Laurent Guerby <guerby@acm.org>
10069
10070 * sysdep.c (rts_get_*): Fix style.
10071
07626501
LG
100722001-11-19 Laurent Guerby <guerby@acm.org>
10073
10074 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
10075 since it is of no apparent use and cause warnings.
10076
22703ccc
NB
100772001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
10078
10079 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
10080 static too.
10081 (gnat_init): Don't return NULL.
10082 (finish_parse): Remove.
10083
b0df4321
LG
100842001-11-17 Laurent Guerby <guerby@acm.org>
10085
10086 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
10087 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
10088 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
10089 * lang-spec.h: Add missing struct field to silence warnings.
10090 * sysdep.c (rts_get_*): Provide K&R prototype.
10091 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
10092 * traceback.c (Unlock_Task, Lock_Task): Likewise.
10093 * tracebak.c (__gnat_backtrace): Remove unused variable.
10094 * utils.c (end_subprog_body): Move to K&R style.
10095
d215024f
RK
10096Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10097
10098 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
10099
f5e99456
NB
101002001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
10101
10102 * misc.c (gnat_init): Change prototype. Include the
10103 functionality of the old init_parse and init_decl_processing.
10104 (gnat_init_decl_processing): New prototype.
10105 (init_parse): Remove.
10106 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
10107
5d69f816
NB
101082001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
10109
10110 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
10111 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
10112 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
10113 set_yydebug): Remove.
10114
3ac88239
NB
101152001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
10116
10117 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
10118 (struct lang_hooks): Constify.
10119 (language_string, lang_identify): Remove.
10120 * utils.c (init_decl_processing): Update.
10121
d23c55c2
NB
101222001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
10123
10124 * misc.c: Include langhooks-def.h.
10125 * Makefile.in: Update.
10126
04a1b79c
RD
101272001-10-30 Robert Dewar <dewar@gnat.com>
10128
10129 * style.adb:
10130 (Check_Identifier): Rewrite circuit to be compatible with use of letters
10131 in the upper half of ASCII.
10132 (Check_Identifier): Minor reformatting
10133
81fa2d39
GB
101342001-10-30 Geert Bosch <bosch@gnat.com>
10135
f8e0aa73 10136 * (Associated_Node, Set_Associated_Node): Do not check for
81fa2d39
GB
10137 Freeze_Entity.
10138
ffc5527f
RD
101392001-10-30 Robert Dewar <dewar@gnat.com>
10140
10141 * a-reatim.ads: Minor reformatting
10142
865335eb
RD
101432001-10-30 Robert Dewar <dewar@gnat.com>
10144
f8e0aa73 10145 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
865335eb
RD
10146 undocumented declarations.
10147
5e257178
PO
101482001-10-30 Pascal Obry <obry@gnat.com>
10149
f8e0aa73 10150 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
5e257178
PO
10151 to the binder and linker.
10152 Minor style fix.
f8e0aa73 10153
5e257178
PO
10154 * mdll.ads: Fix layout. Update copyright notice.
10155
10156 * mdll.adb: Fix layout. Update copyright notice.
10157
1753e0ad
RD
101582001-10-30 Robert Dewar <dewar@gnat.com>
10159
10160 * usage.adb: Minor fix to output for -gnaty.
10161
84bfdde0
ES
101622001-10-30 Ed Schonberg <schonber@gnat.com>
10163
f8e0aa73
AJ
10164 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
10165 to accommodate all its possible values.
84bfdde0 10166
f8e0aa73 10167 * a-reatim.adb (Split): Special-case handling of Time_Span_First
84bfdde0
ES
10168 and of small absolute values of T.
10169
c296e5fc
RK
101702001-10-30 Richard Kenner <kenner@gnat.com>
10171
f8e0aa73
AJ
10172 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
10173 set_mem_attributes since not needed and wrong if RESULT if a REG;
c296e5fc
RK
10174 fixes ACATS failures.
10175
07c809df
GB
101762001-10-30 Geert Bosch <bosch@gnat.com>
10177
10178 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
10179 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
10180
54d22416 101812001-10-30 Robert Dewar <dewar@gnat.com>
f8e0aa73 10182
54d22416 10183 * bindusg.adb: Undocument -f switch.
f8e0aa73 10184
54d22416 10185 * gnatcmd.adb: Remove /FULL_ELABORATION.
f8e0aa73
AJ
10186
10187 * opt.ads (Force_RM_Elaboration_Order): Document that this is
54d22416 10188 obsolescent.
f8e0aa73 10189
54d22416 10190 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
f8e0aa73 10191
54d22416
RD
10192 * gnatbind.adb: Minor update of warning msg.
10193
af5cf6f8
VC
101942001-10-30 Vincent Celier <celier@gnat.com>
10195
f8e0aa73 10196 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
af5cf6f8 10197 for project file switches (-P (/PROJECT_FILE=),
f8e0aa73 10198 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
af5cf6f8
VC
10199 or MEDIUM or HIGH)
10200
984bc4c3
GB
102012001-10-30 Geert Bosch <bosch@gnat.com>
10202
10203 * decl.c: Minor whitespace fixes.
10204
5dece937
RK
102052001-10-30 Richard Kenner <kenner@gnat.com>
10206
10207 * utils2.c (build_allocator): Test for SIZE overflow in array case too
10208
de4bf6cb
GB
102092001-10-30 Geert Bosch <bosch@gnat.com>
10210
f8e0aa73 10211 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
de4bf6cb 10212 Found due to GCC 3.0 warning of using uninitialized value.
f8e0aa73 10213
de4bf6cb
GB
10214 * layout.adb:
10215 (Get_Max_Size): Use variant record for tracking value/expression.
10216 Makes logic clearer and prevents warnings for uninitialized variables.
10217 (Layout_Array_Type): Use variant record for tracking value/expression.
10218 Makes logic clearer and prevents warnings for uninitialized variables.
10219
f5e44987
RD
102202001-10-30 Robert Dewar <dewar@gnat.com>
10221
10222 * lib.adb: Minor reformatting
10223
10224 * s-taprop.ads: Minor reformatting
10225
45659035 102262001-10-29 Laurent Guerby <guerby@acm.org>
f8e0aa73 10227
45659035
GB
10228 * init.c:
10229 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
10230 const.
10231 (_gnat_error_handler): Make MSG const.
10232
102332001-10-29 Richard Kenner <kenner@gnat.com>
10234
10235 * sysdep.c: Fix localtime_r problem on LynxOS.
10236 Also remove #elif to avoid warnings.
f8e0aa73
AJ
10237
10238 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
45659035 10239 used by this.
f8e0aa73 10240
45659035
GB
10241 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
10242
638e383e
JM
102432001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
10244
10245 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
10246 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
10247 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
10248 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
10249 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
10250 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
10251 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
10252 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
10253 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
10254 types.ads, urealp.adb: Fix spelling errors.
10255
97f6baa0
LG
102562001-10-27 Laurent Guerby <guerby@acm.org>
10257
10258 * trans.c (gigi): Fix non determinism leading to bootstrap
10259 comparison failures for debugging information.
10260
46b58b8c
FW
102612001-10-26 Florian Weimer <fw@deneb.enyo.de>
10262
10263 * gnat_rm.texi: Use @./@: where appropriate.
10264
30151c7b
RD
102652001-10-26 Robert Dewar <dewar@gnat.com>
10266
10267 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
10268
c0b1738d
RK
102692001-10-26 Richard Kenner <kenner@gnat.com>
10270
10271 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
10272
5b09c153
RK
102732001-10-26 Richard Kenner <kenner@gnat.com>
10274
f8e0aa73 10275 * decl.c (validate_size): Modify message for bad size to avoid
5b09c153
RK
10276 implication that compiler is modifying the size.
10277
4d553668
RD
102782001-10-26 Robert Dewar <dewar@gnat.com>
10279
10280 * prj-util.adb: Minor reformatting. Fix bad header format.
10281
3e542a58
RD
102822001-10-26 Robert Dewar <dewar@gnat.com>
10283
10284 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
f8e0aa73 10285
3e542a58 10286 * sinfo.ads: Clarify use of Associated_Node (documentation only).
f8e0aa73
AJ
10287
10288 * sem_ch12.adb: Change Node4 to Associated_Node. Change
10289 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
3e542a58
RD
10290 much more narrowly in places where needed. These are cleanups.
10291
0bf08bfe
JB
102922001-10-26 Joel Brobecker <brobecke@gnat.com>
10293
10294 * 5zosinte.ads (null_pthread): new constant.
f8e0aa73 10295
0bf08bfe
JB
10296 * 5ztaprop.adb:
10297 (Initialize_TCB): Initialize thread ID to null, to be able to verify
10298 later that this field has been set.
10299 (Finalize_TCB): ditto.
10300 (Suspend_Task): Verify that the thread ID is not null before using it.
10301 (Resume_Task): ditto.
f8e0aa73 10302
0bf08bfe
JB
10303 * s-tasdeb.adb:
10304 (Resume_All_Tasks): Lock the tasks list before using it.
10305 (Suspend_All_Tasks): ditto.
10306
7a3a8c06
RK
103072001-10-26 Richard Kenner <kenner@gnat.com>
10308
f8e0aa73 10309 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
7a3a8c06
RK
10310 Make constant variant of designated type for Is_Access_Constant.
10311 Call update_pointer_to with main variant.
f8e0aa73
AJ
10312
10313 * trans.c (process_freeze_entity, process_type):
7a3a8c06 10314 Call update_pointer_to on main variant.
f8e0aa73 10315
7a3a8c06
RK
10316 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
10317 If main variant, update all other variants.
f8e0aa73
AJ
10318
10319 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
7a3a8c06
RK
10320 TREE_STATIC.
10321
a160babb
RD
103222001-10-26 Robert Dewar <dewar@gnat.com>
10323
10324 * prj-util.adb: Minor reformatting
10325
b403bd17
RD
103262001-10-26 Robert Dewar <dewar@gnat.com>
10327
10328 * prj-util.adb: Minor reformatting
10329
5fc3b4c7
RD
103302001-10-26 Robert Dewar <dewar@gnat.com>
10331
10332 * prj-attr.adb: Minor reformatting throughout
10333
8c736034
RD
103342001-10-26 Robert Dewar <dewar@gnat.com>
10335
10336 * prj-attr.ads: Minor reformatting
10337 Add ??? comment (this whole spec has almost no comments)
10338
47d5b6ed
VC
103392001-10-26 Vincent Celier <celier@gnat.com>
10340
f8e0aa73 10341 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
b4f94ac1 10342 ("//") that precede the drive letter on Interix.
47d5b6ed 10343
41af791f
GB
103442001-10-26 Geert Bosch <bosch@gnat.com>
10345
10346 * gnat_rm.texi: Add GNAT Reference Manual.
10347
ed4a1468
RD
103482001-10-25 Robert Dewar <dewar@gnat.com>
10349
f8e0aa73 10350 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
b4f94ac1 10351 is Error. Similar change for other renaming cases.
ed4a1468 10352
24377ae4
RD
103532001-10-25 Robert Dewar <dewar@gnat.com>
10354
10355 * s-atacco.ads: Add pragma Inline_Always for functions.
10356 Fix header format. Add copyright 2001
10357
fef3204e
ES
103582001-10-25 Ed Schonberg <schonber@gnat.com>
10359
f8e0aa73 10360 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
b4f94ac1 10361 return Error rather than Empty so that analysis can proceed.
fef3204e 10362
dfc69d80
ES
103632001-10-25 Ed Schonberg <schonber@gnat.com>
10364
f8e0aa73 10365 * sem_util.adb (Enter_Name): better handling of cascaded error
b4f94ac1 10366 messages when a unit appears in its own context.
dfc69d80 10367
5a15af62
ES
103682001-10-25 Ed Schonberg <schonber@gnat.com>
10369
f8e0aa73 10370 * sem_util.adb (Defining_Entity): in case of error, attach created
b4f94ac1 10371 entity to specification, so that semantic analysis can proceed.
5a15af62 10372
2b881d53
RD
103732001-10-25 Robert Dewar <dewar@gnat.com>
10374
f8e0aa73 10375 * sem_util.adb
b4f94ac1 10376 (Defining_Entity): Deal with Error.
2b881d53
RD
10377 (Process_End_Label): Deal with bad end label for.
10378
578053f2
ES
103792001-10-25 Ed Schonberg <schonber@gnat.com>
10380
f8e0aa73 10381 * sem_elab.adb (Check_A_Call): refine message when call is in an
578053f2
ES
10382 instance but callee is not declared in the generic unit.
10383
0597ce0b 103842001-10-25 Ed Schonberg <schonber@gnat.com>
f8e0aa73
AJ
10385
10386 * sem_elab.adb (Check_A_Call): check for renaming before finding the
0597ce0b
ES
10387 enclosing unit, which may already be different from the calling unit.
10388
3de6e6da
GB
103892001-10-25 Geert Bosch <bosch@gnat.com>
10390
10391 * 4gintnam.ads: fix header format.
10392
6f311316
ES
103932001-10-25 Ed Schonberg <schonber@gnat.com>
10394
f8e0aa73 10395 * sem_res.adb (Resolve_Call): if the call is actually an indexing
b4f94ac1
ZW
10396 operation on the result of a parameterless call, perform elaboration
10397 check after the node has been properly rewritten.
f8e0aa73
AJ
10398
10399 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
b4f94ac1
ZW
10400 inlined within the generic tree, the defining identifier is not a
10401 compilation_unit.
6f311316 10402
17be0cdf
ES
104032001-10-25 Ed Schonberg <schonber@gnat.com>
10404
f8e0aa73 10405 * sem_res.adb (Resolve): special-case resolution of Null in an
b4f94ac1 10406 instance or an inlined body to avoid view conflicts.
f8e0aa73
AJ
10407
10408 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
b4f94ac1 10409 compatibility by retrieving the access type of the generic copy.
17be0cdf 10410
ce9e9122
RD
104112001-10-25 Robert Dewar <dewar@gnat.com>
10412
10413 * sem_ch3.adb:
10414 (Analyze_Number_Declaration): Handle error expression.
10415 (Signed_Integer_Type_Declaration): Handle error bound.
10416 (Analyze_Subtype_Indication): Handle error range.
f8e0aa73 10417
ce9e9122
RD
10418 * sem_util.adb (Get_Index_Bounds): Check for Error.
10419
e12fbc9e
RD
104202001-10-25 Robert Dewar <dewar@gnat.com>
10421
f8e0aa73 10422 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
e12fbc9e
RD
10423 in no run time mode.
10424
52b80488
PO
104252001-10-25 Pascal Obry <obry@gnat.com>
10426
f8e0aa73 10427 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
b4f94ac1 10428 mode case for ALLOC case.
f8e0aa73
AJ
10429
10430 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
b4f94ac1 10431 all platforms. Improvement of last change.
52b80488 10432
316ad9c5
RD
104332001-10-25 Robert Dewar <dewar@gnat.com>
10434
10435 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
10436
1a7e4df4
GB
104372001-10-25 Geert Bosch <bosch@gnat.com>
10438
10439 * osint.adb (Is_Relative): Remove duplicate.
10440
90a9fff2
PO
104412001-10-25 Pascal Obry <obry@gnat.com>
10442
f8e0aa73 10443 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
b4f94ac1 10444 pathnames in UNIX and DOS style with drive letter.
90a9fff2 10445 (Is_Relative): new routine.
f8e0aa73 10446
90a9fff2 10447 * osint.adb: Minor reformatting
f8e0aa73
AJ
10448
10449 * osint.adb (Is_Relative): implementation using
b4f94ac1 10450 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
90a9fff2 10451
5c1ba4cc
PO
104522001-10-25 Pascal Obry <obry@gnat.com>
10453
f8e0aa73 10454 * g-dirope.adb (Basename): correctly compute offset between the
b4f94ac1 10455 original Path and the translated one.
f8e0aa73 10456
5c1ba4cc
PO
10457 * g-dirope.adb: (Base_Name): add some comments.
10458
a7fb206d
RD
104592001-10-25 Robert Dewar <dewar@gnat.com>
10460
f8e0aa73 10461 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
b4f94ac1 10462 in HIE mode, avoids compilation abandoned message
f8e0aa73 10463
a7fb206d 10464 * exp_imgv.adb: Correct typo in previous change
f8e0aa73 10465
a7fb206d
RD
10466 * exp_imgv.adb: Correct typo in previous change (not my day!)
10467
e6a7e62e
RD
104682001-10-25 Robert Dewar <dewar@gnat.com>
10469
10470 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
10471
0d2b8e0b 104722001-10-25 Pascal Obry <obry@gnat.com>
75c09e7d 10473
f8e0aa73 10474 * g-awk.ads: Move all pragma inlines next to the routine
0d2b8e0b 10475 declarations. This is more uniform with other GNAT spec.
75c09e7d 10476
0d2b8e0b 104772001-10-22 Geert Bosch <bosch@gnat.com>
d2740a69
GB
10478
10479 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
10480
0d2b8e0b 104812001-10-19 Geert Bosch <bosch@gnat.com>
d7ac9bdd
GB
10482
10483 * Makefile.in (tools, gnattools): Remove gnatmem.
10484
17ed6335
RH
104852001-10-17 Richard Henderson <rth@redhat.com>
10486
10487 * Makefile.in (misc.o): Depend on langhooks.h.
10488 * misc.c: Include it.
10489 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
10490 (LANG_HOOKS_DECODE_OPTION): New.
10491 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
10492
f2436274
FW
104932001-10-16 Florian Weimer <fw@deneb.enyo.de>
10494
10495 * trans.c (tree_transform): Adjust to recent change in
10496 expand_asm_operands to implement named asm operands.
10497
b14127e6
ES
104982001-10-11 Ed Schonberg <schonber@gnat.com>
10499
f8e0aa73 10500 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
b14127e6
ES
10501 renaming of discriminant for mutable record type.
10502
e70ee92a
RD
105032001-10-11 Robert Dewar <dewar@gnat.com>
10504
10505 * validsw.adb: Properly save -gnatVn status.
10506
9a5621d7 105072001-10-11 Robert Dewar <dewar@gnat.com>
f8e0aa73 10508
9a5621d7
RD
10509 * usage.adb: Add lines for V switch.
10510
f8e0aa73 10511 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
9a5621d7
RD
10512 (/VALIDITY_CHECKING).
10513
45667f04
ES
105142001-10-11 Ed Schonberg <schonber@gnat.com>
10515
f8e0aa73 10516 * sem_type.adb (Add_One_Interp): an operator for a type declared in
45667f04
ES
10517 an extension of System is known to be visible.
10518
c3de5c4c
ES
105192001-10-11 Ed Schonberg <schonber@gnat.com>
10520
f8e0aa73 10521 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
c3de5c4c
ES
10522 properly. Fixes regression on ACATS C34005G.
10523
4fa964a6
RD
105242001-10-11 Robert Dewar <dewar@gnat.com>
10525
f8e0aa73 10526 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
4fa964a6
RD
10527 loop in generic instance, since this is likely not very useful.
10528
0868e09c
RD
105292001-10-11 Robert Dewar <dewar@gnat.com>
10530
f8e0aa73 10531 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
0868e09c 10532 the error message for high integrity mode.
f8e0aa73
AJ
10533
10534 * rtsfind.adb (RTE): Give message if we try to find an entity that
0868e09c 10535 is not available in high integrity mode.
f8e0aa73 10536
0868e09c
RD
10537 * rtsfind.ads:
10538 (OK_To_Use_In_HIE_Mode): New array.
10539 (RTE): May return Empty in high integrity mode.
f8e0aa73
AJ
10540
10541 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
10542 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
10543
10544 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
10545 unit if not inlined always and in no runtime mode. Fixes problem
0868e09c 10546 caused by new Rtsfind changes.
f8e0aa73
AJ
10547
10548 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
0868e09c 10549 body is deleted.
f8e0aa73
AJ
10550
10551 * rtsfind.adb (RTE): Make sure we do not try to load unit after
0868e09c
RD
10552 giving message for entity not available in high integrity mode.
10553
934abf9c 105542001-10-11 Pascal Obry <obry@gnat.com>
f8e0aa73 10555
934abf9c
PO
10556 * impunit.adb: Add GNAT.CRC32.
10557
3c72bea4
ES
105582001-10-11 Ed Schonberg <schonber@gnat.com>
10559
f8e0aa73
AJ
10560 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
10561 properly the case where one universal operand in a non-static
3c72bea4
ES
10562 exponentiation of a real literal.
10563
44d8d2bb
ES
105642001-10-11 Ed Schonberg <schonber@gnat.com>
10565
f8e0aa73
AJ
10566 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
10567 clause, return the gobal finalization list, for lack of anthing else.
44d8d2bb 10568
9e2b9627
ES
105692001-10-11 Ed Schonberg <schonber@gnat.com>
10570
f8e0aa73
AJ
10571 * exp_ch7.adb (Make_Transient_Block): if statement is within
10572 exception handler, always use new transient scope to place Clean
9e2b9627
ES
10573 procedure.
10574
cfac6e9f
PO
105752001-10-11 Pascal Obry <obry@gnat.com>
10576
10577 * Makefile.in:
10578 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
10579 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
10580 (GNATLS_RTL_OBJS): add g-crc32.o
10581 (GNATMAKE_RTL_OBJS): add g-crc32.o
f8e0aa73 10582
cfac6e9f
PO
10583 * ali-util.adb:
10584 (CRC_Match): new function.
f8e0aa73 10585 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
cfac6e9f
PO
10586 instead of the previous simple checksum algorithm.
10587 (Time_Stamp_Mismatch): use CRC_Match for comparison.
10588 (Set_Source_Table): idem.
f8e0aa73 10589
cfac6e9f 10590 * ali-util.ads:
f8e0aa73 10591 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
cfac6e9f
PO
10592 instead of simple checksum.
10593 (CRC_Match): new function.
10594 (CRC_Error): new constant.
f8e0aa73
AJ
10595
10596 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
10597 a CRC now and not a simple checksum. A CRC uses lower-case hex
cfac6e9f 10598 letters, fixes ambiguity in parsing.
f8e0aa73
AJ
10599
10600 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
cfac6e9f 10601 is what this variable will store.
f8e0aa73 10602
cfac6e9f 10603 * bcheck.adb: Change reference to chechsum in comments by CRC.
f8e0aa73
AJ
10604 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
10605 rename All_Checksum_Match to All_CRC_Match. Change due to API
10606 renaming since now GNAT does not use a simple checksum but a
cfac6e9f 10607 CRC using GNAT.CRC32.
f8e0aa73
AJ
10608
10609 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
cfac6e9f 10610 now and not anymore a simple checksum.
f8e0aa73
AJ
10611
10612 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
cfac6e9f 10613 places.
f8e0aa73 10614
cfac6e9f 10615 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
f8e0aa73 10616
cfac6e9f
PO
10617 * scans.adb:
10618 (Restore_Scan_State): rename Checksum to CRC.
10619 (Save_Scan_State): idem.
f8e0aa73 10620
cfac6e9f
PO
10621 * scans.ads:
10622 With GNAT.CRC32.
10623 (Checksum): rename to CRC.
10624 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
f8e0aa73
AJ
10625
10626 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 10627 GNAT.CRC32). Update copyright notice.
f8e0aa73
AJ
10628
10629 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
cfac6e9f 10630 GNAT.CRC32). Update copyright notice.
f8e0aa73 10631
cfac6e9f
PO
10632 * scn.adb:
10633 (Accumulate_Checksum): removed.
10634 (Update): new procedure. Add a wide-character into the CRC.
f8e0aa73 10635
cfac6e9f
PO
10636 * sinput-l.adb:
10637 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
f8e0aa73 10638 (Load_File): fix initialization of S (change Source_Checksum to
cfac6e9f 10639 Source_CRC)
f8e0aa73
AJ
10640
10641 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
cfac6e9f 10642 Source_CRC in S initialization.
f8e0aa73 10643
cfac6e9f 10644 * sinput.adb (Source_Checksum): renamed to Source_CRC.
f8e0aa73 10645
cfac6e9f
PO
10646 * sinput.ads (Source_Checksum): renamed to Source_CRC.
10647 Update comments for the CRC.
f8e0aa73 10648
cfac6e9f 10649 * types.adb (Hex): Use lowercase for the letter part.
f8e0aa73
AJ
10650
10651 * types.ads (Get_Hex_String): Returns the hexadecimal representation
10652 for a word. This is currently used only for CRC. In previous version,
10653 the checksum was using a representation with all letter being
10654 upper-case. With the new implementation (using CRC) we do not remove
10655 the 32th bit of the CRC, so we can have an upper-case starting letter
10656 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
10657 It is ambigous since the CRC was optional and could be followed by
10658 options like EB, EE. So now this routines uses lower-case letter for
10659 the hexadecimal representation. Strange enough only lower case letters
cfac6e9f 10660 where checked in Scan_ALI (even if this was not a possible case).
f8e0aa73 10661
cfac6e9f 10662 * gnatvsn.ads (Library_Version): changed to 3.15a.
f8e0aa73
AJ
10663
10664 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
cfac6e9f 10665 for the compiler.
f8e0aa73
AJ
10666
10667 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
cfac6e9f 10668 for the compiler.
f8e0aa73 10669
cfac6e9f
PO
10670 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
10671 Add 2001 to copyright notice
10672 (Accumulate_Checksum): Modify to use System.CRC32.
f8e0aa73
AJ
10673
10674 * ali-util.ads: Redo changes of previous revision to continue to use
cfac6e9f 10675 the word Checksum. Add 2001 to copyright notice.
f8e0aa73 10676
cfac6e9f
PO
10677 * ali.adb: Undo some of previous changes, not needed.
10678 Keep the change for lower case letters in the checksum.
f8e0aa73 10679
cfac6e9f
PO
10680 * ali.ads: Undo previous change not needed.
10681
10682 * bcheck.adb: Undo most of previous change, not needed.
10683 But do use Checksums_Match for checksum comparison.
f8e0aa73 10684
cfac6e9f
PO
10685 * gnatls.adb: Undo most of previous change, not needed.
10686 But do use Checksums_Match for comparing checksums.
f8e0aa73 10687
cfac6e9f 10688 * lib-load.adb: Undo previous change, not needed.
f8e0aa73 10689
cfac6e9f 10690 * lib-writ.adb: Undo previous change, not needed.
f8e0aa73
AJ
10691
10692 * lib-writ.ads: Document that checksums use lower case,
cfac6e9f 10693 not upper case letters.
f8e0aa73 10694
cfac6e9f 10695 * scans.adb: Undo previous change, not needed
f8e0aa73 10696
cfac6e9f 10697 * scans.ads: Undo previous change, not needed.
f8e0aa73 10698
cfac6e9f 10699 * scn-nlit.adb: Undo previous changes, not needed.
f8e0aa73 10700
cfac6e9f 10701 * scn-slit.adb: Undo previous change, not needed. Fix header format.
f8e0aa73 10702
cfac6e9f
PO
10703 * scn.adb:
10704 (Accumulate_Checksum): Use System.CRC32.
10705 (Initialize_Checksum): New procedure.
10706 Remove other changes of previous revision.
f8e0aa73 10707
cfac6e9f 10708 * sinput-p.adb: Undo previous change, not needed.
f8e0aa73 10709
cfac6e9f
PO
10710 * sinput.adb: Undo previous change, not needed.
10711
10712 * sinput-l.adb: Undo previous change, not needed.
f8e0aa73
AJ
10713
10714 * sinput.ads: Undo previous change, not needed. Keep only comment
cfac6e9f 10715 on new checksum algorithm
f8e0aa73 10716
cfac6e9f
PO
10717 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
10718 Also remove a-tags and a-stream from GNAT sources.
f8e0aa73 10719
cfac6e9f 10720 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
f8e0aa73 10721
cfac6e9f
PO
10722 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
10723
4d6d06a5
GB
107242001-10-11 Geert Bosch <bosch@gnat.com>
10725
10726 * einfo.h: Regenerate.
10727
10728 * nmake.ads: Regenerate.
10729
10730 * nmake.adb: Regenerate.
10731
10732 * sinfo.h: Regenerate.
10733
10734 * treeprs.adb: Regenerate.
10735
c97412e2
GB
107362001-10-10 Geert Bosch <bosch@gnat.com>
10737
10738 * gnat-style.texi: New file describing coding guidelines for Ada.
f8e0aa73 10739
b83018ca
ES
107402001-10-10 Ed Schonberg <schonber@gnat.com>
10741
f8e0aa73 10742 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
b83018ca
ES
10743 is Flag174.
10744
e834fe1f
GB
107452001-10-10 Geert Bosch <bosch@gnat.com>
10746
10747 * snames.ads: Add new names for project facility.
10748
10749 * snames.adb: Update to reflect snames.ads changes.
10750
10751 * snames.h: Update to reflect snames.ads changes.
10752
b30668b7
VC
107532001-10-10 Vincent Celier <celier@gnat.com>
10754
10755 * make.adb:
10756 (Add_Switches): reflect the changes for the switches attributes
10757 Default_Switches indexed by the programming language,
10758 Switches indexed by the file name.
10759 (Collect_Arguments_And_Compile): Idem.
10760 Reflect the attribute name changes.
f8e0aa73 10761
b30668b7
VC
10762 * prj-attr.adb:
10763 (Initialisation_Data): Change the names of some packages and
10764 attributes.
10765 (Initialize): process case insensitive associative arrays.
f8e0aa73 10766
b30668b7
VC
10767 * prj-attr.ads:
10768 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
f8e0aa73 10769
b30668b7
VC
10770 * prj-dect.adb:
10771 (Parse_Attribute_Declaration): For case insensitive associative
10772 arrays, set the index string to lower case.
f8e0aa73 10773
b30668b7
VC
10774 * prj-env.adb:
10775 Reflect the changes of the project attributes.
f8e0aa73 10776
b30668b7
VC
10777 * prj-nmsc.adb:
10778 Replace Check_Naming_Scheme by Ada_Check and
10779 Language_Independent_Check.
f8e0aa73 10780
b30668b7
VC
10781 * prj-nmsc.ads:
10782 Replaced Check_Naming_Scheme by 2 procedures:
10783 Ada_Check and Language_Independent_Check.
f8e0aa73 10784
b30668b7
VC
10785 * prj-proc.adb:
10786 (Process_Declarative_Items): For case-insensitive associative
10787 arrays, set the index string to lower case.
10788 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
10789 Prj.Nmsc.Check_Naming_Scheme.
f8e0aa73 10790
b30668b7
VC
10791 * prj-tree.adb:
10792 (Case_Insensitive): New function
10793 (Set_Case_Insensitive): New procedure
f8e0aa73 10794
b30668b7
VC
10795 * prj-tree.ads:
10796 (Case_Insensitive): New function
10797 (Set_Case_Insensitive): New procedure
10798 (Project_Node_Record): New flag Case_Insensitive.
f8e0aa73 10799
b30668b7
VC
10800 * prj-util.adb:
10801 (Value_Of): new function to get the string value of a single
10802 string variable or attribute.
f8e0aa73 10803
b30668b7
VC
10804 * prj-util.ads:
10805 (Value_Of): new function to get the string value of a single
10806 string variable or attribute.
f8e0aa73 10807
b30668b7
VC
10808 * prj.adb:
10809 (Ada_Default_Spec_Suffix): New function
10810 (Ada_Default_Impl_Suffix): New function
10811 Change definitions of several constants to reflect
10812 new components of record types.
f8e0aa73 10813
b30668b7
VC
10814 * prj.ads:
10815 (Naming_Data): Change several components to reflect new
10816 elements of naming schemes.
10817 (Project_Data): New flags Sources_Present and
10818 Language_Independent_Checked.
10819 (Ada_Default_Spec_Suffix): New function.
10820 (Ada_Default_Impl_Suffix): New function.
f8e0aa73 10821
b30668b7
VC
10822 * snames.ads:
10823 Modification of predefined names for project manager: added
10824 Implementation, Specification_Exceptions, Implementation_Exceptions,
10825 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
10826 Default_Switches, _Languages, Builder, Cross_Reference,
10827 Finder. Removed Body_Part, Specification_Append, Body_Append,
10828 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
10829 Gnatlink.
f8e0aa73 10830
b30668b7
VC
10831 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
10832 Add comments.
f8e0aa73 10833
b30668b7
VC
10834 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
10835 not that it is Nil_Variable_Value.
f8e0aa73 10836
b30668b7
VC
10837 * prj.ads: Add ??? for uncommented declarations
10838
662e57b4
ES
108392001-10-10 Ed Schonberg <schonber@gnat.com>
10840
f8e0aa73
AJ
10841 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
10842 constant, do not indicate possible modification, so that gigi can
662e57b4
ES
10843 treat it as a bona fide constant.
10844
72e4357f
RD
108452001-10-10 Robert Dewar <dewar@gnat.com>
10846
10847 * sem_prag.adb: Add processing for pragma External.
f8e0aa73 10848
72e4357f 10849 * snames.ads: Add entry for pragma External.
f8e0aa73 10850
72e4357f 10851 * par-prag.adb: Add pragma External.
f8e0aa73 10852
72e4357f
RD
10853 * snames.adb: Updated to match snames.ads.
10854
7bc1c7df
ES
108552001-10-10 Ed Schonberg <schonber@gnat.com>
10856
10857 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
10858 a dynamic task if the allocator appears in an indexed assignment
10859 or selected component assignment.
f8e0aa73
AJ
10860
10861 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
10862 For a dynamic task in an assignment statement, use target of
7bc1c7df
ES
10863 assignment to generate meaningful name.
10864
c84700e7
ES
108652001-10-10 Ed Schonberg <schonber@gnat.com>
10866
f8e0aa73 10867 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
c84700e7
ES
10868 a generic package.
10869
10870 * einfo.ads: Body_Entity is also defined for generic package.
10871 Documentation change only
f8e0aa73
AJ
10872
10873 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
10874 others_choice for a discriminated component initialization,
10875 convert discriminant references into the corresponding discriminals.
10876
10877 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
10878 only if original type is private and expression has to be wrapped
c84700e7 10879 in a conversion.
f8e0aa73
AJ
10880
10881 * checks.adb:
10882 (Apply_Constraint_Check): Do not perform length check
c84700e7 10883 if expression is an aggregate with only an others_choice.
f8e0aa73 10884 (Length_N_Cond): two references to the same in_parameter
c84700e7
ES
10885 (typically the discriminal in an init_proc) denote the same value.
10886 Two useful optimization uncovered by bugfixes above.
10887
d8d80dcd
RD
108882001-10-10 Robert Dewar <dewar@gnat.com>
10889
f8e0aa73 10890 * xeinfo.adb: Change int to char in translation of enumeration types.
d8d80dcd
RD
10891 This fixes a problem in the C representation of component alignment.
10892 Add 2001 to copyright notice
10893
a8fee948
RK
108942001-10-10 Richard Kenner <kenner@gnat.com>
10895
f8e0aa73 10896 * decl.c: (validate_size): Do check size of object of integral type
a8fee948
RK
10897 if it is a packed array type.
10898
c2d7fe59
RK
108992001-10-10 Richard Kenner <kenner@gnat.com>
10900
f8e0aa73 10901 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
c2d7fe59
RK
10902 VAR_DECL for constant if not Is_Public but -O0.
10903
fb75e100
RK
109042001-10-10 Richard Kenner <kenner@gnat.com>
10905
10906 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
10907
1724557a
GB
109082001-10-10 Geert Bosch <bosch@gnat.com>
10909
f8e0aa73 10910 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
1724557a
GB
10911 use '/' as switch character, allowing for absolute file names.
10912
9f2f9eb6
JM
109132001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
10914
10915 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
10916 FSF address.
10917
8fecf41d
GB
109182001-10-08 Geert Bosch <bosch@gnat.com>
10919
10920 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
10921 Automatically build utilities when files need to be regenerated.
10922
589f1edf
GB
109232001-10-08 Geert Bosch <bosch@gnat.com>
10924
10925 * xsnames.adb: New utility for updating snames.ads and snames.adb
10926
67f28219
ZW
109272001-10-08 Zack Weinberg <zack@codesourcery.com>
10928
10929 * Make-lang.in (ADAFLAGS): Add -W -Wall.
10930 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
10931 (gnat1): Also depend on attribs.o.
10932 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
10933 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
10934 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
10935 (ADAFLAGS): Add -W -Wall.
10936 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
10937 take out CFLAGS.
10938
10939 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
10940 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
10941 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
10942 Use $(ADAC), not $(CC), as compilation command.
10943
10944 (gnattools): Depend directly on tools to build, don't use
10945 recursive make.
10946 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
10947
10948 * einfo.h, sinfo.h: New files (autogenerated).
10949
295ef2bb
RH
109502001-10-08 Richard Henderson <rth@redhat.com>
10951
10952 * comperr.adb (Abort_In_Progress): New.
10953 (Compiler_Abort): Use it to prevent recursion.
10954
5c736541
RD
109552001-10-08 Robert Dewar <dewar@gnat.com>
10956
10957 * atree.adb: Set Error_Posted in Error node, helps error recovery.
67f28219
ZW
10958
10959 * par-endh.adb (Output_End_Expected): We should also not test
5c736541 10960 Error_Posted on the Error node, since now it is always set.
67f28219
ZW
10961
10962 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
5c736541 10963 to help error recovery. Part of general work on 9407-004.
67f28219 10964
5c736541 10965 * par.adb: Add ??? for misuse of error
67f28219 10966
5c736541
RD
10967 * sem_res.adb:
10968 (Resolve): Defend against Error, fixes 9407-003.
10969 (Resolve_Discrete_Subtype_Indication): Defend against Error.
67f28219
ZW
10970
10971 * sinfo.ads (N_Error): Now has Etype field (which will be set
5c736541
RD
10972 to Any_Type to help error recovery).
10973
a153ae15
RK
109742001-10-08 Richard Kenner (kenner@gnat.com)
10975
10976 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
10977 Consistently set MEM attributes from expression; fixes
10978 bootstrap failure on x86.
10979
743f3c7b
GB
109802001-10-08 Geert Bosch (bosch@gnat.com)
10981
10982 * 5oosinte.adb: Add 2001 to copyright notice.
10983
210c4ef4
GB
109842001-10-08 Geert Bosch (bosch@gnat.com)
10985
10986 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
10987
10988 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
10989
cc712abf
JM
109902001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
10991
10992 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
10993
4c4abc0f
GB
109942001-10-05 Geert Bosch (bosch@gnat.com)
10995
10996 * adaint.h: Small formatting fix.
10997
7f50e2e3
GB
109982001-10-04 Geert Bosch <bosch@gnat.com>
10999
11000 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
11001 Arg is int, not FILE *, in dummy version of functions.
67f28219 11002
7f50e2e3
GB
11003 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
11004 Arg is int, not FILE *.
11005
5d1a9698
GB
110062001-10-04 Geert Bosch <bosch@gnat.com>
11007
11008 * 3lsoccon.ads: Added file, missed with initial check ins.
67f28219 11009
5d1a9698
GB
11010 * 4lintnam.ads: Fix header format.
11011 Change Linux to GNU/Linux.
67f28219 11012
5d1a9698
GB
11013 * 5iosinte.adb: Change Linux to GNU/Linux.
11014
11015 * 5iosinte.ads: Change Linux to GNU/Linux.
67f28219 11016
5d1a9698 11017 * 5itaprop.adb: Change Linux to GNU/Linux.
67f28219 11018
5d1a9698
GB
11019 * 5itaspri.ads: Change Linux to GNU/Linux.
11020 Update copyright notice.
67f28219 11021
5d1a9698 11022 * 5lintman.adb: Change Linux to GNU/Linux.
67f28219 11023
5d1a9698 11024 * 5lml-tgt.adb: Change Linux to GNU/Linux.
67f28219 11025
5d1a9698 11026 * 5losinte.ads: Change Linux to GNU/Linux.
67f28219 11027
5d1a9698 11028 * 5lsystem.ads: Change Linux to GNU/Linux.
67f28219 11029
5d1a9698 11030 * 5qosinte.adb: Change Linux to GNU/Linux.
67f28219 11031
5d1a9698 11032 * 5qosinte.ads: Change Linux to GNU/Linux.
67f28219 11033
5d1a9698 11034 * 5qparame.ads: Change Linux to GNU/Linux.
67f28219 11035
5d1a9698 11036 * 5qtaprop.adb: Change Linux to GNU/Linux.
67f28219 11037
5d1a9698
GB
11038 * 5qtaspri.ads: Change Linux to GNU/Linux.
11039 Add 2001 to copyright notice.
67f28219 11040
5d1a9698
GB
11041 * 5vintman.ads: Change Linux to GNU/Linux.
11042 Fix header format. Add 2001 to copyright notice.
67f28219 11043
5d1a9698 11044 * g-soccon.ads: Change Linux to GNU/Linux.
67f28219 11045
5d1a9698
GB
11046 * g-trasym.ads: Change Linux to GNU/Linux.
11047 Add 2001 to copyright notice.
67f28219 11048
5d1a9698 11049 * memtrack.adb: Change Linux to GNU/Linux.
67f28219 11050
5d1a9698
GB
11051 * s-intman.ads: Change Linux to GNU/Linux.
11052 Add 2001 to copyright notice. Fix header format.
67f28219 11053
5d1a9698 11054 * s-stache.adb: Change Linux to GNU/Linux.
67f28219 11055
5d1a9698 11056 * adaint.c: Change Linux to GNU/Linux.
67f28219 11057
5d1a9698 11058 * cio.c: Change Linux to GNU/Linux.
67f28219 11059
5d1a9698 11060 * cstreams.c: Change Linux to GNU/Linux.
67f28219 11061
5d1a9698 11062 * init.c: Change Linux to GNU/Linux.
67f28219 11063
5d1a9698 11064 * gmem.c: Change Linux to GNU/Linux.
67f28219 11065
5d1a9698
GB
11066 * tracebak.c: Change Linux to GNU/Linux.
11067
11068
c25ca2d7
GB
110692001-10-02 Geert Bosch <bosch@gnat.com>
11070
11071 * misc.c (insert_default_attributes): Add dummy version.
This page took 1.622604 seconds and 5 git commands to generate.