1 2007-03-09 Roger Sayle <roger@eyesopen.com>
3 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
4 fold with the result of buildN.
5 * decl.c (gnat_to_gnu_entity): Likewise.
6 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
7 * utils.c (finish_record_type, merge_sizes, max_size, convert):
9 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
10 nonbinary_modular_operation, build_binary_op, build_unary_op,
11 build_cond_expr): Likewise.
13 * utils.c (convert): Use fold_build1 when casting values to void.
14 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
15 fold_convert instead of convert when appropriate.
17 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
19 * Make-lang.in: Add install-pdf target as copied from
22 2007-02-28 Andreas Schwab <schwab@suse.de>
24 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
25 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
26 (doc/gnat-style.info): Likewise.
28 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
30 * gnat-style.texi: Standardize title page.
31 * gnat_rm.texi: Likewise.
32 * gnat_ugn.texi: Likewise.
34 2007-02-25 Mark Mitchell <mark@codesourcery.com>
36 * decl.c (annotate_value): Adjust for refactoring of tree_map
39 2007-02-24 Mark Mitchell <mark@codesourcery.com>
41 * decl.c (annotate_value): Adjust for refactoring of tree_map
44 2007-02-21 Ed Schonberg <schonberg@adacore.com>
47 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
48 untagged derived type, add hidden components to keep discriminant
49 layout consistent, when a given discriminant of the derived type
50 constraints several discriminants of the parent type.
52 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
53 Sandra Loosemore <sandra@codesourcery.com>
55 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
56 build the call expression.
57 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
58 * utils.c (max_size) <tcc_exceptional>: Delete.
59 <tcc_vl_exp>: New case.
60 <tcc_expression>: Delete CALL_EXPR subcase.
61 (build_global_cdtor): Use build_call_nary instead of build3.
62 * utils2.c (build_call_1_expr): Likewise.
63 (build_call_2_expr): Likewise.
64 (build_call_0_expr): Likewise.
65 (build_call_alloc_dealloc): Likewise.
67 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
69 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
70 get_action_description_for): Replace _Unwind_Word with _uleb128_t
71 and _Unwind_SWord with _sleb128_t.
73 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
75 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
76 * decl.c: Include gt-ada-decl.h.
77 (annotate_value_cache): New.
78 (annotate_value): Use it instead of TREE_COMPLEXITY.
80 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
82 * misc.c, utils2.c: Fix comment typos.
84 2007-01-24 Roger Sayle <roger@eyesopen.com>
86 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
87 TREE_CONSTANT_OVERFLOW.
88 (allocatable_size_p, annotate_value): Likewise.
89 * trans.c (gnat_to_gnu): Likewise.
90 * utils.c (unchecked_convert): Likewise.
91 * utils2.c (build_simple_component_ref): Likewise.
93 2007-01-23 Richard Guenther <rguenther@suse.de>
96 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
97 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
98 (gnatboot3): Likewise.
99 (GNATBIND): Do not define.
100 * Makefile.in (GNATBIND): Do not define.
102 2007-01-08 Richard Guenther <rguenther@suse.de>
104 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
105 * trans.c (gnat_to_gnu): Likewise.
107 2006-12-07 Geoffrey Keating <geoffk@apple.com>
109 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
110 * adaint.c: Likewise.
112 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
114 Merge from gimple-tuples-branch:
115 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
117 * ada-tree.h (lang_tree_node): Handle gimple tuples.
118 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
121 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
123 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
124 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
127 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
130 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
131 if the initializer takes into account the padding.
133 2006-11-11 Richard Guenther <rguenther@suse.de>
135 * trans.c (maybe_stabilize_reference): Remove handling of
136 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
138 2006-11-05 Arnaud Charlet <charlet@adacore.com>
141 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
142 (To_Target_Priority): New function.
144 2006-10-31 Robert Dewar <dewar@adacore.com>
146 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
147 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
148 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
149 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
150 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
151 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
152 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
153 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
154 a-szbzha.adb: Minor reformatting. Fix header.
156 * a-numaux-x86.adb: Add parentheses for use of unary minus
157 * a-ngcefu.adb: Supply missing parentheses for unary minus
158 * a-ngcoty.adb: Add parens for use of unary minus
159 * a-ngelfu.adb: Add missing parens for unary minus
160 * a-tifiio.adb: Add parentheses for uses of unary minus
162 2006-10-31 Robert Dewar <dewar@adacore.com>
163 Bob Duff <duff@adacore.com>
164 Ed Schonberg <schonberg@adacore.com>
166 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
167 with multiplying operator.
168 (Expected_Type_Is_Any_Real): New function to determine from the Parent
169 pointer whether the context expects "any real type".
170 (Resolve_Arithmetic_Op): Do not give an error on calls to the
171 universal_fixed "*" and "/" operators when they are used in a context
172 that expects any real type. Also set the type of the node to
173 Universal_Real in this case, because downstream processing requires it
174 (mainly static expression evaluation).
175 Reword some continuation messages
176 Add some \\ sequences to continuation messages
177 (Resolve_Call): Refine infinite recursion case. The test has been
178 sharpened to eliminate some false positives.
179 Check for Current_Task usage now includes entry barrier, and is now a
180 warning, not an error.
181 (Resolve): If the call is ambiguous, indicate whether an interpretation
182 is an inherited operation.
183 (Check_Aggr): When resolving aggregates, skip associations with a box,
184 which are priori correct, and will be replaced by an actual default
185 expression in the course of expansion.
186 (Resolve_Type_Conversion): Add missing support for conversion from
187 a class-wide interface to a tagged type. Minor code cleanup.
188 (Valid_Tagged_Converion): Add support for abstact interface type
190 (Resolve_Selected_Component): Call Generate_Reference here rather than
191 during analysis, and use May_Be_Lvalue to distinguish read/write.
192 (Valid_Array_Conversion): New procedure, abstracted from
193 Valid_Conversion, to incorporate accessibility checks for arrays of
194 anonymous access types.
195 (Valid_Conversion): For a conversion to a numeric type occurring in an
196 instance or inlined body, no need to check that the operand type is
197 numeric, since this has been checked during analysis of the template.
198 Remove legacy test for scope name Unchecked_Conversion.
200 * sem_res.ads: Minor reformatting
202 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
203 (PE_Current_Task_In_Entry_Body): New exception code
204 (SE_Restriction_Violation): Removed, not used
206 * a-except.ads: Update comments.
208 * types.h, types.ads: Add definition for Validity_Check
209 (PE_Current_Task_In_Entry_Body): New exception code
210 (SE_Restriction_Violation): Removed, not used
212 2006-10-31 Thomas Quinot <quinot@adacore.com>
214 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
217 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
218 Jose Ruiz <ruiz@adacore.com>
220 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
221 part of Ada.Calendar: all subprogram raise Unimplemented.
222 (Split_W_Offset): Temp function body, raising Unimplemented
224 * a-calend.ads, a-calend-vms.ads:
225 Add imported variable Invalid_TZ_Offset used to designate targets unable
226 to support time zones.
227 (Unimplemented): Temporary function raised by the body of new
229 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
230 unit provides handling of leap seconds and is used by the new Ada 2005
231 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
232 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
233 version returns an extra value which is the offset to UTC.
235 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
236 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
237 (Split_W_Offset): New function body.
238 (Time_Of): When a date is close to UNIX epoch, compute the time for
239 that date plus one day (that amount is later substracted after
240 executing mktime) so there are no problems with time zone adjustments.
242 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
244 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
245 a-catizo.ads, a-catizo.adb: New files.
247 * impunit.adb: Add new Ada 2005 entries
249 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
250 Rename all occurences of "__gnat_localtime_r" to
251 "__gnat_localtime_tzoff".
252 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
253 zone data and calculate the GMT offset.
254 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
255 Use the field "tm_gmtoff" to extract the GMT offset.
256 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
257 the external variable "timezone" to calculate the GMT offset.
259 2006-10-31 Arnaud Charlet <charlet@adacore.com>
260 Jose Ruiz <ruiz@adacore.com>
262 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
263 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
264 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
265 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
266 System.Any_Priority to a POSIX priority on the target.
268 * system-linux-ia64.ads:
269 Extend range of Priority types on Linux to use the whole range made
270 available by the system.
272 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
273 function maps from System.Any_Priority to a POSIX priority on the
275 (PTHREAD_PRIO_PROTECT): Set real value.
276 (PTHREAD_PRIO_INHERIT): Now a function.
277 (SIGCPUFAIL): New signal.
278 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
279 are documented as reserved by the OS.
281 * system-aix.ads: Use the full range of priorities provided by the
284 * s-taprop-posix.adb: Call new function To_Target_Priority.
285 (Set_Priority): Take into account Task_Dispatching_Policy and
286 Priority_Specific_Dispatching pragmas when determining if Round Robin
287 must be used for scheduling the task.
289 * system-linux-x86_64.ads, system-linux-x86.ads,
290 system-linux-ppc.ads: Extend range of Priority types on Linux to use
291 the whole range made available by the system.
293 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
294 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
295 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
296 when deallocating the TCB in order to avoid potential references to
298 (Set_Priority): Take into account Task_Dispatching_Policy and
299 Priority_Specific_Dispatching pragmas when determining if Round Robin
300 or FIFO within priorities must be used for scheduling the task.
302 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
303 the Thread field (to be used internally by the run-time system) and the
304 kernel-level task id in the LWP field (to be used by the debugger).
305 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
306 instance, and propagate the current task options to the spawned task.
307 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
308 (Initialize): Set Round Robin dispatching when the corresponding pragma
311 2006-10-31 Robert Dewar <dewar@adacore.com>
313 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
314 system-linux-hppa.ads, system-hpux-ia64.ads,
315 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
316 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
317 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
318 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
319 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
320 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
321 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
322 Default_Bit_Order) to kill constant condition warnings for references
325 2006-10-31 Vincent Celier <celier@adacore.com>
326 Eric Botcazou <ebotcazou@adacore.com>
328 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
329 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
330 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
331 Ext_To, when building the library file name
333 * mlib-tgt-vxworks.adb: ditto.
334 (Get_Target_Suffix): Add support for x86 targets.
336 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
338 * mlib-tgt-darwin.adb:
339 Use Append_To, instead of Ext_To, when building the library file name
340 (Flat_Namespace): New global variable.
341 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
342 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
343 (Link_Shared_Libgcc): Delete.
344 (Build_Dynamic_Library): Adjust for above changes.
346 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
348 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
350 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
351 (Initialize): Add type conversions required by above change.
353 2006-10-31 Jose Ruiz <ruiz@adacore.com>
355 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
356 (getpid): New body for this function that uses the underlying taskIdSelf
357 function for VxWorks 5 and VxWorks 6 in kernel mode.
358 (unsigned_int): New type, modular to allow logical bit operations.
359 (taskOptionsGet): New imported function.
361 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
362 field to be compliant with the type used by the corresponding operating
365 2006-10-31 Pascal Obry <obry@adacore.com>
366 Eric Botcazou <ebotcazou@adacore.com>
367 Vincent Celier <celier@adacore.com>
369 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
370 ASCII version of the registry API. This is needed as the GNAT runtime
371 is now UNICODE by default.
373 (get_gcc_version): Do not hardcode the return value.
374 (__gnat_file_time_name): On Windows properly set the default returned
375 value to -1 which corresponds to Invalid_Time.
376 (__gnat_fopen): New routine. A simple wrapper on all plateforms
377 except on Windows where it does conversion for unicode support.
378 (__gnat_freopen): Idem.
379 (__gnat_locate_exec_on_path): If environment variable PATH does not
380 exist, return a NULL pointer
382 * adaint.h: (__gnat_fopen): Declare.
383 (__gnat_freopen): Likewise.
385 * mingw32.h (_tfreopen): Define this macro here for older MingW
387 Activate the unicode support on platforms using a MingW runtime
388 version 3.9 or newer.
390 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
391 This is needed for proper unicode support on Windows.
394 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
395 Nicolas Setton <setton@adacore.com>
396 Olivier Hainque <hainque@adacore.com>
397 Gary Dismukes <dismukes@adacore.com>
399 * gigi.h: (tree_code_for_record_type): Declare.
400 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
401 (get_global_renaming_pointers): Rename to
402 invalidate_global_renaming_pointers.
403 (static_ctors): Delete.
404 (static_dtors): Likewise.
405 (gnat_write_global_declarations): Declare.
406 (create_var_decl): Adjust descriptive comment to indicate that the
407 subprogram may return a CONST_DECL node.
408 (create_true_var_decl): Declare new function, similar to
409 create_var_decl but forcing the creation of a VAR_DECL node.
410 (get_global_renaming_pointers): Declare.
411 (add_global_renaming_pointer): Likewise.
413 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
415 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
416 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
418 (gnat_to_gnu_entity): Remove From_With_Type from computation for
420 <E_Access_Type>: Use the Non_Limited_View as the full view of the
421 designated type if the pointer comes from a limited_with clause. Make
422 incomplete designated type if it is in the main unit and has a freeze
424 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
425 Underlying_Full_View similarly. Return earlier if the full view already
426 has an associated tree.
427 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
428 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
429 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
430 reference type built for objects with an address clause.
431 Use create_true_var_decl with const_flag set for
432 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
434 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
435 for Character and Wide_Character types. This info is read by the
436 dwarf-2 writer, and is needed to be able to use the command "ptype
437 character" in the debugger.
438 (gnat_to_gnu_entity): When generating a type representing
439 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
440 so that debug writers can distinguish it from ordinary integers.
441 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
442 addition to TREE_READONLY to assert the constantness of variables for
443 elaboration purposes.
444 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
445 parameters to call new Einfo function First_Formal_With_Extras.
446 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
447 protected type with its corresponding discriminant, to obtain a usable
449 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
450 for a multiple elaboration of the "equivalent" type.
451 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
452 into record_global_renaming_pointer.
453 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
454 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
455 <E_Array_Subtype>: Likewise.
456 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
457 incomplete subtypes and incomplete subtypes of incomplete types visible
458 through a limited with clause.
459 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
460 the base index type for the maximum size of the array only if they are
462 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
463 expression into a SAVE_EXPR if stabilization failed.
465 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
466 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
467 by lower level compilation passes.
468 (gnat_genericize): New function, lowering a function body to GENERIC.
469 Turn the type of RESULT_DECL into a real reference type if the decl
470 has been marked DECL_BY_REFERENCE, and adjust references to the latter
472 (gnat_genericize_r): New function. Tree walking callback for
474 (convert_from_reference, is_byref_result): New functions. Helpers for
476 (create_type_decl): Call gnat_pushdecl before calling
477 rest_of_decl_compilation, to make sure that field TYPE_NAME of
478 type_decl is properly set before calling the debug information writers.
479 (write_record_type_debug_info): The heuristics which compute the
480 alignment of a field in a variant record might not be accurate. Add a
481 safety test to make sure no alignment is set to a smaller value than
482 the alignment of the field type.
483 (make_dummy_type): Use the Non_Limited_View as the underlying type if
484 the type comes from a limited_with clause. Do not loop on the full view.
485 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
486 (dummy_node_table): New global variable, moved from decl.c.
487 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
488 (save_gnu_tree): Use above macros.
489 (get_gnu_tree): Likewise.
490 (present_gnu_tree): Likewise.
491 (init_dummy_type): New function, moved from decl.c. Use above macros.
492 (make_dummy_type): Likewise.
493 (tree_code_for_record_type): New function extracted from make_dummy_type
494 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
495 (static_ctors): Change it to a vector, make static.
496 (static_dtors): Likewise.
497 (end_subprog_body): Adjust for above change.
498 (build_global_cdtor): Moved from trans.c.
499 (gnat_write_global_declarations): Emit global constructor and
500 destructor, and call cgraph_optimize before emitting debug info for
502 (global_decls): New global variable.
503 (gnat_pushdecl): Store the global declarations in global_decls, for
505 (gnat_write_global_declarations): Emit debug information for global
507 (create_var_decl_1): Former create_var_decl, with an extra argument to
508 state whether the creation of a CONST_DECL is allowed.
509 (create_var_decl): Behavior unchanged. Now a wrapper around
510 create_var_decl_1 allowing CONST_DECL creation.
511 (create_true_var_decl): New function, similar to create_var_decl but
512 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
513 (create_field_decl): Do not always mark the field as addressable
514 if its type is an aggregate.
515 (global_renaming_pointers): New static variable.
516 (add_global_renaming_pointer): New function.
517 (get_global_renaming_pointers): Likewise.
519 * misc.c (gnat_dwarf_name): New function.
520 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
521 (gnat_post_options): Add comment about structural alias analysis.
522 (gnat_parse_file): Do not call cgraph_optimize here.
523 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
525 * trans.c (process_freeze_entity): Don't abort if we already have a
526 non dummy GCC tree for a Concurrent_Record_Type, as it might
527 legitimately have been elaborated while processing the associated
528 Concurrent_Type prior to this explicit freeze node.
529 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
530 exception handler volatile if it is of variable size.
531 (process_type): Remove bypass for types coming from a limited_with
533 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
534 actual, convert the corresponding gnu_actual to the real destination
536 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
537 originally TREE_READONLY but whose elaboration cannot be performed
539 Part of fix for F504-021.
540 (tree_transform, subprogram cases): Change loops on formal parameters to
541 call new Einfo function First_Formal_With_Extras.
542 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
543 stemming from type conversion for the lhs.
544 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
545 number of bits per unit for components of records.
546 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
547 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
548 with At_End_Proc after the SJLJ EH cleanup.
549 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
551 (elaborate_all_entities): Do not retest type_annotate_only.
552 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
553 result type of an abstract subprogram, which may be an itype associated
554 with an anonymous access result (related to AI-318-02).
555 (build_global_cdtor): Move to utils.c.
556 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
557 this choice is not a null tree nor an integer constant.
558 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
559 on the body of elaboration routines instead of mark_unvisited.
560 (add_stmt): Do not mark the tree.
561 (add_decl_expr): Tweak comment.
562 (mark_unvisited): Delete.
563 (unshare_save_expr): New static function.
564 (call_to_gnu): Issue an error when making a temporary around a
565 procedure call because of non-addressable actual parameter if the
566 type of the formal is by_reference.
567 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
568 after building the elaboration routine.
570 2006-10-31 Bob Duff <duff@adacore.com>
572 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
573 as finalization-started, so we can raise Program_Error on 'new'.
575 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
576 collection has already started.
578 * s-finimp.ads (Collection_Finalization_Started): Added new special
579 flag value for indicating that a collection's finalization has started.
581 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
582 create a task whose master has already waited for dependent tasks.
584 2006-10-31 Robert Dewar <dewar@adacore.com>
586 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
588 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
589 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
590 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
591 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
592 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
593 a-except-2005.ads: Add pragma Preelaborable_Warning
595 2006-10-31 Robert Dewar <dewar@adacore.com>
596 Jose Ruiz <ruiz@adacore.com>
598 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
600 * ali.adb (Get_Name): Properly handle scanning of wide character names
601 encoded with brackets notation.
602 (Known_ALI_Lines): Add S lines to this list.
603 (Scan_ALI): Acquire S (priority specific dispatching) lines.
604 New flag Elaborate_All_Desirable in unit table
606 * ali.ads (Priority_Specific_Dispatching): Add this range of
607 identifiers to be used for Priority_Specific_Dispatching table entries.
608 (ALIs_Record): Add First_Specific_Dispatching and
609 Last_Specific_Dispatching that point to the first and last entries
610 respectively in the priority specific dispatching table for this unit.
611 (Specific_Dispatching): Add this table for storing each S (priority
612 specific dispatching) line encountered in the input ALI file.
613 New flag Elaborate_All_Desirable in unit table
615 * bcheck.adb: (Check_Configuration_Consistency): Add call to
616 Check_Consistent_Dispatching_Policy.
617 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
618 verifying that the use of Priority_Specific_Dispatching,
619 Task_Dispatching_Policy, and Locking_Policy is consistent across the
622 * bindgen.adb: (Public_Version_Warning): function removed.
623 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
624 required information from ALI files in order to initialize the table
625 containing the specific dispatching policy.
626 (Gen_Adainit_Ada): Generate the variables required for priority specific
627 dispatching entries (__gl_priority_specific_dispatching and
628 __gl_num_specific_dispatching).
629 (Gen_Adainit_C): Generate the variables required for priority specific
630 dispatching entries (__gl_priority_specific_dispatching and
631 __gl_num_specific_dispatching).
632 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
634 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
635 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
637 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
638 a call to gnat_set_globals.
639 Generate a string containing settings from
640 Priority_Specific_Dispatching pragma entries.
641 (Gen_Object_Files_Options): Do not include the runtime libraries when
642 pragma No_Run_Time is specified.
644 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
645 consistency with s-intman-posix.adb.
646 (__gnat_error_handler, case FreeBSD): Account for the fact that the
647 handler is installed with SA_SIGINFO.
648 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
649 FreeBSD ZCX support, copied from Linux version.
650 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
651 sigfillset, and sigemptyset so the routines defined by MaRTE.
652 (__gl_priority_specific_dispatching): Add this variable that stores the
653 string containing priority specific dispatching policies in the
655 (__gl_num_specific_dispatching): Add this variable that indicates the
656 highest priority for which a priority specific dispatching pragma
658 (__gnat_get_specific_dispatching): Add this routine that returns the
659 priority specific dispatching policy, as set by a
660 Priority_Specific_Dispatching pragma appearing anywhere in the current
661 partition. The input argument is the priority number, and the result
662 is the upper case first character of the policy name.
663 (__gnat_set_globals): Now a dummy function.
664 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
665 mechargs instead of sigargs, as the latter can be retrieved from the
666 former and sigargs is not what we want on ia64.
667 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
669 (__gnat_adjust_context_for_raise, ia64-vms): New function.
670 (tasking_error): Remove unused symbol.
671 (_abort_signal): Move this symbol to the IRIX specific part since this
672 is the only target that uses this definition.
673 (Check_Abort_Status): Move this symbol to the IRIX specific part since
674 this is the only target that uses this definition.
675 (Lock_Task): Remove unused symbol.
676 (Unlock_Task): Remove unused symbol.
678 * lib-writ.adb (Write_ALI): Output new S lines for
679 Priority_Specific_Dispatching pragmas.
680 Implement new flag BD for elaborate body desirable
682 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
683 (Specific_Dispatching): Add this table for storing the entries
684 corresponding to Priority_Specific_Dispatching pragmas.
685 Document new BD flag for elaborate body desirable
687 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
690 2006-10-31 Javier Miranda <miranda@adacore.com>
692 * a-tags.ads, a-tags.adb:
693 (Predefined_DT): New function that improves readability of the code.
694 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
695 Inherit_DT): Use the new function Predefined_DT to improve code
697 (Register_Interface_Tag): Update assertion.
698 (Set_Interface_Table): Update assertion.
699 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
700 determining progenitor interfaces in Tags.
701 (Inherit_CPP_DT): New subprogram.
703 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
704 analysis of the thunk code.
705 (Expand_Interface_Conversion): Handle run-time conversion of
706 access to class wide types.
707 (Expand_Dispatching_Call): When generating the profile for the
708 subprogram itype for a dispatching operation, properly terminate the
709 formal parameters chaind list (set the Next_Entity of the last formal
711 (Collect_All_Interfaces): Removed. This routine has been moved to
712 sem_util and renamed as Collect_All_Abstract_Interfaces.
713 (Set_All_DT_Position): Hidden entities associated with abstract
714 interface primitives are not taken into account in the check for
715 3.9.3(10); this check is done with the aliased entity.
716 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
717 interfacing with CPP by default.
718 (Expand_Interface_Conversion): Add missing support for static conversion
719 from an interface to a tagged type.
720 (Collect_All_Interfaces): Add new out formal containing the list of
721 abstract interface types to cleanup the subprogram Make_DT.
722 (Make_DT): Update the code to generate the table of interfaces in case
723 of abstract interface types.
724 (Is_Predefined_Dispatching_Alias): New function that returns true if
725 a primitive is not a predefined dispatching primitive but it is an
726 alias of a predefined dispatching primitive.
727 (Make_DT): If the ancestor of the type is a CPP_Class and we are
728 compiling under full ABI compatibility mode we avoid the generation of
729 calls to run-time services that fill the dispatch tables because under
730 this mode we currently inherit the dispatch tables in the IP subprogram.
731 (Write_DT): Emit an "is null" indication for a null procedure primitive.
732 (Expand_Interface_Conversion): Use an address as the type of the formal
733 of the internally built function that handles the case in which the
734 target type is an access type.
736 2006-10-31 Robert Dewar <dewar@adacore.com>
738 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
740 2006-10-31 Robert Dewar <dewar@adacore.com>
742 * bindusg.ads, bindusg.adb:
743 Change to package and rename procedure as Display, which
744 now ensures that it only outputs usage information once.
746 2006-10-31 Jose Ruiz <ruiz@adacore.com>
748 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
751 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
754 2006-10-31 Robert Dewar <dewar@adacore.com>
755 Ed Schonberg <schonberg@adacore.com>
757 * treepr.adb: Use new subtype N_Membership_Test
759 * checks.ads, checks.adb: Add definition for Validity_Check
760 (Range_Or_Validity_Checks_Suppressed): New function
761 (Ensure_Valid): Test Validity_Check suppressed
762 (Insert_Valid_Check): Test Validity_Check suppressed
763 (Insert_Valid_Check): Preserve Do_Range_Check flag
764 (Validity_Check_Range): New procedure
765 (Expr_Known_Valid): Result of membership test is always valid
766 (Selected_Range_Checks): Range checks cannot be applied to discriminants
767 by themselves. Disabling those checks must also be done for task types,
768 where discriminants may be used for the bounds of entry families.
769 (Apply_Address_Clause_Check): Remove side-effects if address expression
770 is non-static and is not the name of a declared constant.
771 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
772 Code cleanup and new error messages.
773 (Enable_Range_Check): Test for some cases of suppressed checks
774 (Generate_Index_Checks): Suppress index checks if index checks are
775 suppressed for array object or array type.
776 (Apply_Selected_Length_Checks): Give warning for compile-time detected
777 length check failure, even if checks are off.
778 (Ensure_Valid): Do not generate a check on an indexed component whose
779 prefix is a packed boolean array.
780 * checks.adb: (Alignment_Checks_Suppressed): New function
781 (Apply_Address_Clause_Check): New procedure, this is a completely
782 rewritten replacement for Apply_Alignment_Check
783 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
784 we request a discriminal value only in case of discriminants.
785 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
786 assignments where the target subtype is unconstrained and the target
787 object is a parameter or dereference (other aliased cases are known
788 to be unconstrained).
790 2006-10-31 Robert Dewar <dewar@adacore.com>
792 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
793 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
794 vms_conv.adb: Fix bad table increment values (much too small)
796 * table.adb (Realloc): Make sure we get at least some new elements
797 Defends against silly small values for table increment
799 2006-10-31 Robert Dewar <dewar@adacore.com>
800 Ed Schonberg <schonberg@adacore.com>
801 Bob Duff <duff@adacore.com>
803 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
804 entities. Move other fields around to make this possible
805 (Is_Derived_Type): Add missing call to Is_Type.
806 (Extra_Formals): New function for subprograms, entries, subprogram
808 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
809 (First_Formal_With_Extras): New function for subprogs, entries, subp
811 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
812 Add node information for E_Return_Statement.
813 (Elaborate_Body_Desirable): New flag
814 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
815 to be Is_Inherently_Limited_Type, because return-by-reference has
816 no meaning in Ada 2005.
817 (E_Return_Statement): New entity kind.
818 (Return_Applies_To): Field of E_Return_Statement.
819 (Is_Return_Object): New flag in object entities.
820 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
821 (Must_Have_Preelab_Init): New flag
822 (Known_To_Have_Preelab_Init): New flag
823 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
824 (Is_Visible_Formal): New flag on entities in formal packages.
825 (Low_Bound_Known): New flag
826 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
828 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
829 output when Id is an incomplete subtype.
831 2006-10-31 Robert Dewar <dewar@adacore.com>
833 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
834 Avoid abbreviation Creat
835 (Finalize): List all sources in extended mail source if -gnatl
837 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
838 (Finalize): Implement new -gnatl=xxx switch to output listing to file
839 (Set_Specific_Warning_On): New procedure
840 (Set_Specific_Warning_Off): New procedure
841 Add implementation of new insertion \\
842 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
843 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
845 (Error_Msg_Internal): Make sure that we set Last_Killed to
846 True when a message from another package is suppressed.
847 Implement insertion character ~ (insert string)
848 (First_Node): Minor adjustments to get better placement.
851 Implement new -gnatl=xxx switch to output listing to file
854 Implement new -gnatl=xxx switch to output listing to file
856 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
857 (Commands_To_Stdout): New flag
858 Implement new -gnatl=xxx switch to output listing to file
859 New switch Dump_Source_Text
860 (Warn_On_Deleted_Code): New warning flag for -gnatwt
861 Define Error_Msg_Line_Length
862 (Warn_On_Assumed_Low_Bound): New switch
864 * osint.ads, osint.adb
865 (Normalize_Directory_Name): Fix bug.
866 Implement new -gnatl=xxx switch to output listing to file
867 (Concat): Removed, replaced by real concatenation
868 Make use of concatenation now allowed in compiler
869 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
870 we find the 'lib' or 'bin' directory even when the tool has been
871 invoked with a relative path.
872 (Executable_Name): New function taking string parameters.
874 * osint-c.ads, osint-c.adb:
875 Implement new -gnatl=xxx switch to output listing to file
877 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
880 Implement new -gnatl=xxx switch to output listing to file
881 Recognize new -gnatL switch
882 (no longer keep in old warning about old style usage)
883 Use concatenation to simplify code
884 Recognize -gnatjnn switch
885 (Scan_Front_End_Switches): Clean up handling of -gnatW
886 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
888 2006-10-31 Robert Dewar <dewar@adacore.com>
890 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
891 (Set_Specific_Warning_Off): New procedure
892 (Warning_Specifically_Suppressed): New function
893 (Validate_Specific_Warnings): New procedure
894 (Output_Msg_Text): Complete rewrite to support -gnatjnn
896 * err_vars.ads: Implement insertion character ~ (insert string)
898 2006-10-31 Bob Duff <duff@adacore.com>
899 Ed Schonberg <schonberg@adacore.com>
901 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
902 the parent part is a build-in-place function call, generate assignments.
903 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
904 are build-in-place function calls.
905 (Replace_Self_Reference): New subsidiary of
906 Make_OK_Assignment_Statement, to replace an access attribute that is a
907 self-reference into an access to the appropriate component of the
908 target object. Generalizes previous mechanism to handle self-references
910 (Is_Self_Referential_Init): Remove, not needed.
911 (Is_Self_Referential_Init): New predicate to simplify handling of self
912 referential components in record aggregates.
913 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
914 check for presence of entity before checking for self-reference.
915 (Has_Default_Init_Comps): Return True if a component association is a
916 self-reference to the enclosing type, which can only come from a
917 default initialization.
918 (Make_OK_Assignment_Statement): If the expression is of the form
919 Typ'Acc, where Acc is an access attribute, the expression comes from a
920 default initialized self-referential component.
921 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
922 that has been derived from several abstract interfaces we must also
923 initialize the tags of the secondary dispatch tables.
925 2006-10-31 Ed Schonberg <schonberg@adacore.com>
926 Thomas Quinot <quinot@adacore.com>
927 Javier Miranda <miranda@adacore.com>
928 Robert Dewar <dewar@adacore.com>
931 (Expand_Access_To_Protected_Op): If the context indicates that an access
932 to a local operation may be transfered outside of the object, create an
933 access to the wrapper operation that must be used in an external call.
934 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
935 target, pass the Valid attribute applied to a floating-point prefix on
936 to the back end without expansion.
937 (Storage_Size): Use the new run-time function Storage_Size to retrieve
938 the allocated storage when it is specified by a per-object expression.
939 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
940 Nothing to do here, the attribute has been rewritten during semantic
942 (Expand_Attribute_Reference): Handle expansion of the new Priority
944 (Find_Fat_Info): Handle case of universal real
945 (Expand_Access_To_Protected_Op): Fix use of access to protected
946 subprogram from inside the body of a protected entry.
947 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
948 'Access and 'Unrestricted_Access, to transform the attribute reference
950 (Is_Constrained_Aliased_View): New predicate to help determine whether a
951 subcomponent's enclosing variable is aliased with a constrained subtype.
952 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
953 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
954 an aliased prefix must be known to be constrained in order to use True
955 for the attribute value, and now it's possible for some aliased views
958 2006-10-31 Robert Dewar <dewar@adacore.com>
960 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
961 (Expand_Entity_Reference): Correct error of not handling subprogram
962 formals in current_value processing.
964 2006-10-31 Javier Miranda <miranda@adacore.com>
965 Robert Dewar <dewar@adacore.com>
966 Ed Schonberg <schonberg@adacore.com>
967 Gary Dismukes <dismukes@adacore.com>
969 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
970 register in the final list objects containing class-wide interfaces;
971 otherwise we incorrectly register the tag of the interface in the final
973 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
974 generate the wrapper if the parent primitive is abstract. This is
975 required to report the correct error message.
976 (Expand_N_Subtype_Indication): Do validity checks on range
977 (Clean_Task_Names): If an initialization procedure includes a call to
978 initialize a task (sub)component, indicate that the procedure will use
980 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
981 compatibility for interfacing with CPP by default.
982 (Expand_N_Object_Declaration): Only build an Adjust call when the
983 object's type is a nonlimited controlled type.
984 * exp_ch3.adb: Add with and use of Exp_Ch6.
985 (Expand_N_Object_Declaration): Check for object initialization that is a
986 call to build-in-place function and apply Make_Build_In_Place_Call_In_
987 Object_Declaration to the call.
988 (Freeze_Type): When the designated type of an RACW was not frozen at the
989 point where the RACW was declared, validate the primitive operations
990 with respect to E.2.2(14) when it finally is frozen.
991 (Build_Initialization_Call,Expand_Record_Controller): Rename
992 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
993 return-by-reference has no meaning in Ada 2005.
994 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
995 to register tag of the immediate ancestor interfaces in the
997 (Init_Secondary_Tags): Moved to the specification to allow the
998 initialization of extension aggregates with abstract interfaces.
999 (Build_Master_Renaming): Make public, for use by function declarations
1000 whose return type is an anonymous access type.
1001 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
1002 Insert_List_Before_And_Analyze after the generation of the specs
1003 associated with null procedures.
1004 (Expand_Tagged_Root): Update documentation in its specification.
1005 (Init_Secondary_Tags): Update documentation.
1006 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
1007 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
1008 then generate code to inherit the contents of the dispatch table
1009 directly from the ancestor.
1010 (Expand_Record_Controller): Insert controller component after tags of
1011 implemented interfaces.
1012 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
1013 create null procedure overridings when null procedures are inherited
1015 (Make_Null_Procedure_Specs): New procedure to generate null procedure
1016 declarations for overriding null primitives inherited from interfaces.
1017 (Is_Null_Interface_Procedure): New function in
1018 Make_Null_Procedure_Specs.
1019 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
1020 immediate ancestor of a tagged type is an abstract interface type we
1021 must generate the specification of the predefined primitives associated
1022 with controlled types (because the dispatch table of the ancestor is
1023 null and hence these entries cannot be inherited). This is required to
1024 elaborate well the dispatch table.
1026 2006-10-31 Javier Miranda <miranda@adacore.com>
1027 Ed Schonberg <schonberg@adacore.com>
1028 Bob Duff <duff@adacore.com>
1029 Gary Dismukes <dismukes@adacore.com>
1030 Robert Dewar <dewar@adacore.com>
1032 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
1034 (Expand_N_In): Do validity checks on range
1035 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
1036 (Expand_N_Allocator): For "new T", if the object is constrained by
1037 discriminant defaults, allocate the right amount of memory, rather than
1038 the maximum for type T.
1039 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
1040 when the allocator is initialized by a build-in-place call, since the
1041 allocator is already rewritten as a reference to the function result,
1042 and this prevents an unwanted duplication of the function call.
1043 Add with and use of Exp_Ch6.
1044 (Expand_Allocator_Expresssion): Check for an allocator whose expression
1045 is a call to build-in-place function and apply
1046 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
1047 untagged designated types).
1048 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
1049 optimization if source or target is biased.
1050 (Expand_N_Allocator): Add comments for case of an allocator within a
1051 function that returns an anonymous access type designating tasks.
1052 (Expand_N_Allocator): apply discriminant checks for access
1053 discriminants of anonymous access types (AI-402, AI-416)
1055 2006-10-31 Bob Duff <duff@adacore.com>
1056 Robert Dewar <dewar@adacore.com>
1057 Gary Dismukes <dismukes@adacore.com>
1058 Ed Schonberg <schonberg@adacore.com>
1060 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
1062 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
1063 (Expand_N_Assignment_Statement): Call
1064 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
1065 build-in-place function call. Currently, this can happen only for
1066 assignments that come from aggregates.
1067 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
1068 in order to alleviate the upward compatibility introduced by AI-318.
1069 (Expand_N_Extended_Return_Statement): Add support for handling the
1070 return object as a build-in-place result.
1071 (Expand_Non_Function_Return): Implement simple return statements nested
1072 within an extended return.
1073 (Enable_New_Return_Processing): Turn on the new processing of return
1075 (Expand_Non_Function_Return): For a return within an extended return,
1076 don't raise Program_Error, because Sem_Ch6 now gives a warning.
1077 (Expand_N_Extended_Return_Statement): Implement AI-318
1078 (Expand_Simple_Function_Return): Ditto.
1079 (Expand_N_If_Statement): Handle new -gnatwt warning
1080 (Expand_N_Case_Statement): Handle new -gnatwt warning
1081 (Expand_N_Assignment): Handle assignment to the Priority attribute of
1083 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
1084 validity checking of assignments to elementary record components.
1085 (Expand_N_Return_Statement): return Class Wide types on the secondary
1086 stack independantly of their controlled status since with HIE runtimes,
1087 class wide types are not potentially controlled anymore.
1089 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
1092 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
1093 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
1094 it expects a block, procedure, or task. The return statement will get
1095 turned into a block, and Expand_Cleanup_Actions will happen then.
1097 2006-10-31 Robert Dewar <dewar@adacore.com>
1098 Ed Schonberg <schonberg@adacore.com>
1099 Bob Duff <duff@adacore.com>
1100 Gary Dismukes <dismukes@adacore.com>
1102 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
1104 (Expand_Inlined_Call): Tagged types are by-reference types, and
1105 therefore should be replaced by a renaming declaration in the expanded
1106 body, as is done for limited types.
1107 (Expand_Call): If this is a call to a function with dispatching access
1108 result, propagate tag from context.
1109 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
1111 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
1112 build-in-place when the right-hand side of an assignment is a
1113 build-in-place function call.
1114 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
1115 of the explicit dereference of the allocator to the result subtype of
1116 the build-in-place function. This is needed to satisfy type checking
1117 in cases where the caller's return object is created by an allocator for
1118 a class-wide access type and the type named in the allocator is a
1120 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
1121 conversion of the reference to the declared object to the result subtype
1122 of the build-in-place function. This is needed to satisfy type checking
1123 in cases where the declared object has a class-wide type. Also, in the
1124 class-wide case, change the type of the object entity to the specific
1125 result subtype of the function, to avoid passing a class-wide object
1126 without explicit initialization to the back end.
1127 (Register_Interface_DT_Entry): Moved outside the body of
1128 Freeze_Subprogram because this routine is now public; it is called from
1129 Check_Dispatching_Overriding to handle late overriding of abstract
1130 interface primitives.
1131 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
1132 adding an implicit access actual on a call to a build-in-place function.
1133 (Expand_Actuals): Test for an actual parameter that is a call to a
1134 build-in-place function and apply
1135 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
1136 (Is_Build_In_Place_Function): New function to determine whether an
1137 entity is a function whose calls should be handled as build-in-place.
1138 (Is_Build_In_Place_Function_Call): New function to determine whether an
1139 expression is a function call that should handled as build-in-place.
1140 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
1141 calls to build-in-place functions as the initialization of an allocator.
1142 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
1143 handling calls to build-in-place functions in contexts that do not
1144 involve init of a separate object (for example, actuals of subprogram
1146 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
1147 handling calls to build-in-place functions as the initialization of an
1149 (Detect_Infinite_Recursion): Add explicit parameter Process to
1150 instantiation of Traverse_Body to avoid unreferenced warning.
1151 (Check_Overriding_Inherited_Interfaces): Removed.
1152 (Register_Interface_DT_Entry): Code cleanup.
1153 (Register_Predefined_DT_Entry): Code cleanup.
1154 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
1155 inlined statements if within a transient scope.
1156 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
1157 formal parameters with occurrences of actuals in inlined body, establish
1158 visibility on the proper view of the actual's subtype for the body's
1160 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
1161 compatibility mode and we have an imported CPP subprogram because
1162 for now we assume that imported CPP primitives correspond with
1163 objects whose constructor is in the CPP side (and therefore we
1164 don't need to generate code to register them in the dispatch table).
1165 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
1166 aligned selected component.
1167 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
1168 the actual of an in-mode parameter is a type conversion.
1169 (Expand_Actuals): If the call does not come from source and the actual
1170 is potentially misaligned, let gigi handle it rather than rejecting the
1171 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
1172 Class Wide types as returning by reference independantly of their
1173 controlled status since with HIE runtimes class wide types are not
1174 potentially controlled anymore.
1176 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1178 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
1179 references that are private components of the protected object.
1180 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
1181 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
1182 instantiation to deal with warnings.
1183 (Initialize_Protection): If expression for priority is non-static, use
1184 System_Priority as its expected type, in case the expression has not
1187 2006-10-31 Robert Dewar <dewar@adacore.com>
1189 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
1190 initialization of Homonym_Len.
1191 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
1192 names from fully qualified name. Fixes problem of duplicate
1193 external names differing only in the presence of such a block name.
1195 2006-10-31 Thomas Quinot <quinot@adacore.com>
1196 Pablo Oliveira <oliveira@adacore.com>
1198 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
1199 subprogram Ids, even if they are not yet assigned.
1200 (Build_Subprogram_Id): It is now this function that will take care of
1201 calling Assign_Subprogram_Ids if necessary.
1202 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
1203 should be done only once they are assigned.
1204 (Build_From_Any_Function, case of tagged types): Add missing call to
1206 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
1207 type for an RACW type.
1208 (Add_RACW_Features): When processing an RACW declaration for which the
1209 designated type is already frozen, enforce E.2.2(14) rules immediately.
1210 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
1211 special reordering of controlling formals.
1213 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
1214 associated stub type for an RACW type.
1216 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1218 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
1219 fixed-point operations in an integer context, i.e. as operands of a
1220 conversion to an integer type, indicate that result must be rounded.
1222 2006-10-31 Robert Dewar <dewar@adacore.com>
1224 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
1225 cases, pass the encoding method, since it is now required by the run
1228 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
1229 assumption that Str'First = 1.
1230 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
1231 it on to the Value_Wide_Wide_Character call.
1232 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
1233 properly handles a string of the form quote-encoded_wide_char-quote.
1235 * s-wchcnv.adb: Minor reformatting
1237 2006-10-31 Javier Miranda <miranda@adacore.com>
1239 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
1240 run-time membership test to ensure that the constructed object
1241 implements the target abstract interface.
1243 2006-10-31 Robert Dewar <dewar@adacore.com>
1245 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
1246 Machine_Attribute pragma internally to implement the user pragma.
1247 Add processing for pragma Interface so that it is now completely
1248 equivalent to pragma Import.
1250 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
1251 so that it can be applied to all entities, including record components
1252 and enumeration literals.
1253 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
1254 priority ranges are correct, verify compatibility against task
1255 dispatching and locking policies, and if everything is correct an entry
1256 is added to the table containing priority specific dispatching entries
1257 for this compilation unit.
1258 (Delay_Config_Pragma_Analyze): Delay processing
1259 Priority_Specific_Dispatching pragmas because when processing the
1260 pragma we need to access run-time data, such as the range of
1261 System.Any_Priority.
1262 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
1263 Allow pragma Unreferenced as a context item
1264 Add pragma Preelaborable_Initialization
1265 (Analyze_Pragma, case Interface): Interface is extended so that it is
1266 now syntactically and semantically equivalent to Import.
1267 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
1268 insertion characters.
1269 Add handling for Pragma_Wide_Character_Encoding
1270 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
1271 never supercedes a real restriction, and that a real restriction
1272 always supercedes a warning.
1273 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
1276 2006-10-31 Bob Duff <duff@adacore.com>
1277 Ed Schonberg <schonberg@adacore.com>
1278 Robert Dewar <dewar@adacore.com>
1280 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
1281 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
1282 Is_Inherently_Limited_Type, because return-by-reference has no meaning
1284 (Find_Node_To_Be_Wrapped): Use new method of determining the result
1285 type of the function containing a return statement, because the
1286 Return_Type field was removed. We now use the Return_Applies_To field.
1288 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
1289 (Build_Task_Image_Decl): If procedure is not called from an
1290 initialization procedure, indicate that function that builds task name
1291 uses the sec. stack. Otherwise the enclosing initialization procedure
1292 will carry the indication.
1293 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
1294 N_Object_Declaration instead.
1295 (Kill_Dead_Code): New interface to implement -gnatwt warning for
1296 conditional dead code killed, and change implementation accordingly.
1297 (Insert_Actions): Add N_Return_Object_Declaration case.
1298 Correct comment to mention N_Extension_Aggregate node.
1299 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
1300 attempts to save information for global variables which cannot be
1302 (Get_Current_Value_Condition): Handle conditions the other way round
1303 (constant on left). Also handle right operand of AND and AND THEN
1304 (Set_Current_Value_Condition): Corresponding changes
1305 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
1306 (Get_Current_Value_Condition): Handle simple boolean operands
1307 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
1308 (Get_Current_Value_Condition): If the variable reference is within an
1309 if-statement, does not appear in the list of then_statments, and does
1310 not come from source, treat it as being at unknown location.
1311 (Get_Current_Value_Condition): Enhance to allow while statements to be
1312 processed as well as if statements.
1313 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
1315 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
1316 of loop. This is safe now that we fixed Kill_Current_Values.
1317 (OK_To_Do_Constant_Replacement): Check whether current scope is
1318 Standard, before examining outer scopes.
1320 2006-10-31 Vincent Celier <celier@adacore.com>
1322 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
1323 When True, apply VMS treatment to children of packages A, G, I and S.
1326 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
1328 2006-10-31 Robert Dewar <dewar@adacore.com>
1329 Ed Schonberg <schonberg@adacore.com>
1331 * freeze.adb: Add handling of Last_Assignment field
1332 (Warn_Overlay): Supply missing continuation marks in error msgs
1333 (Freeze_Entity): Add check for Preelaborable_Initialization
1335 * g-comlin.adb: Add Warnings (Off) to prevent new warning
1337 * g-expect.adb: Add Warnings (Off) to prevent new warning
1339 * lib-xref.adb: Add handling of Last_Assignment field
1340 (Generate_Reference): Centralize handling of pragma Obsolescent here
1341 (Generate_Reference): Accept an implicit reference generated for a
1342 default in an instance.
1343 (Generate_Reference): Accept a reference for a node that is not in the
1344 main unit, if it is the generic body corresponding to an subprogram
1347 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
1349 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
1351 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
1353 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
1354 use clauses, to avoid messages on packages used to qualify, and also
1355 to avoid messages from obsolescent units.
1356 (Warn_On_Useless_Assignments): Don't generate messages for imported
1357 and exported variables.
1358 (Warn_On_Useless_Assignments): New procedure
1359 (Output_Obsolescent_Entity_Warnings): New procedure
1360 (Check_Code_Statement): New procedure
1362 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
1363 Change name Is_Ada_2005 to Is_Ada_2005_Only
1364 (Last_Assignment): New field for useless assignment warning
1366 2006-10-31 Olivier Hainque <hainque@adacore.com>
1368 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
1369 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
1371 2006-10-31 Bob Duff <duff@adacore.com>
1372 Robert Dewar <dewar@adacore.com>
1373 Ed Schonberg <schonberg@adacore.com>
1375 * g-awk.adb (Default_Session, Current_Session): Compile this file in
1376 Ada 95 mode, because it violates the new rules for AI-318.
1378 * g-awk.ads: Use overloaded subprograms in every case where we used to
1379 have a default of Current_Session. This makes the code closer to be
1380 correct for both Ada 95 and 2005.
1382 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
1383 code, relying on the fact that the compiler generates a warning
1384 instead of an error in -gnatg mode.
1386 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
1387 E_Return_Statement entity kind.
1388 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
1390 * par.adb (P_Interface_Type_Definition): Addition of one formal to
1391 report an error if the reserved word abstract has been previously found.
1392 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
1394 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
1395 parenthesized range attribute usage
1396 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
1398 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
1399 in the syntax for extended_return_statement. This is not in the latest
1400 RM, but the ARG is expected to issue an AI allowing this.
1401 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
1402 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
1403 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
1404 P_Return_Statement): Parse the new syntax for extended_return_statement.
1406 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
1407 Output_End_Missing): Add error-recovery code for the new
1408 extended_return_statement syntax; that is, the new E_Return entry on
1411 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
1412 limited to nonlimited, because otherwise we violate the new Ada 2005
1413 rules about returning limited types in function Create_AST_Handler in
1416 * sem.adb (Analyze): Add cases for new node kinds
1417 N_Extended_Return_Statement and N_Return_Object_Declaration.
1419 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
1420 type is in the same category as type of context before applying check,
1421 to prevent anomalies in instantiations.
1422 (Resolve_Aggregate): Remove test for limited components in aggregates.
1423 It's unnecessary in Ada 95, because if it has limited components, then
1424 it must be limited. It's wrong in Ada 2005, because limited aggregates
1426 (Resolve_Record_Aggregate): Move check for limited types later, because
1427 OK_For_Limited_Init requires its argument to have been resolved.
1428 (Get_Value): When copying the component default expression for a
1429 defaulted association in an aggregate, use the sloc of the aggregate
1430 and not that of the original expression, to prevent spurious
1431 elaboration errors, when the expression includes function calls.
1432 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
1433 were missing. We also didn't handle qualified expressions. Now also
1434 allow function calls. Use new common routine OK_For_Limited_Init.
1435 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
1436 with space can upper case letter).
1438 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
1439 Has_Static_Discriminants flag
1440 (Record_Type_Declaration): Diagnose an attempt to declare an interface
1441 type with discriminants.
1442 (Process_Range_Expr_In_Decl): Do validity checks on range
1443 (Build_Discriminant_Constraints): Use updated form of
1444 Denotes_Discriminant.
1445 (Process_Subtype): If the subtype is a private subtype whose full view
1446 is a concurrent subtype, introduce an itype reference to prevent scope
1448 (Build_Derived_Record_Type, Collect_Interface_Primitives,
1449 Record_Type_Declaration): The functionality of the subprograms
1450 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
1451 is now performed by a single routine.
1452 (Build_Derived_Record_Type): If the type definition includes an explicit
1453 indication of limitedness, then the type must be marked as limited here
1454 to ensure that any access discriminants will not be treated as having
1455 a local anonymous access type.
1456 (Check_Abstract_Overriding): Issue a detailed error message when an
1457 abstract subprogram was not overridden due to incorrect mode of its
1459 (Analyze_Private_Extension_Declaration): Add support for the analysis of
1460 synchronized private extension declarations. Verify that the ancestor is
1461 a limited or synchronized interface or in the generic case, the ancestor
1462 is a tagged limited type or synchronized interface and all progenitors
1463 are either limited or synchronized interfaces.
1464 Derived_Type_Declaration): Check for presence of private extension when
1465 dealing with synchronized formal derived types.
1466 Process_Full_View): Enchance the check done on the usage of "limited" by
1467 testing whether the private view is synchronized.
1468 Verify that a synchronized private view is completed by a protected or
1470 (OK_For_Limited_Init_In_05): New function.
1471 (Analyze_Object_Declaration): Move check for limited types later,
1472 because OK_For_Limited_Init requires its argument to have been resolved.
1473 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
1474 in order to alleviate the upward compatibility introduced by AI-318.
1475 (Constrain_Corresponding_Record): If the constraint is for a component
1476 subtype, mark the itype as frozen, to avoid out-of-scope references to
1477 discriminants in the back-end.
1478 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
1479 this subprogram against wrong sources.
1480 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
1481 discriminant of limited type completed with a protected type, when the
1482 discriminant is used to constrain a private component of the type, and
1483 expansion is disabled.
1484 (Find_Type_Of_Object): Do not treat a return subtype that is an
1485 anonymous subtype as a local_anonymous_type, because its accessibility
1486 level is the return type of the enclosing function.
1487 (Check_Initialization): In -gnatg mode, turn the error "cannot
1488 initialize entities of limited type" into a warning.
1489 (OK_For_Limited_Init): Return true for generated nodes, since it
1490 sometimes violates the legality rules.
1491 (Make_Incomplete_Declaration): If the type for which an incomplete
1492 declaration is created happens to be the currently visible entity,
1493 preserve the homonym chain when removing it from visibility.
1494 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
1495 inherited subprograms.
1496 (Access_Definition): If this is an access to function that is the return
1497 type of an access_to_function definition, context is a type declaration
1498 and the scope of the anonymous type is the current one.
1499 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
1500 incomplete subtype to the set of private dependents of the original
1502 (Constrain_Discriminated_Type): Emit an error message whenever an
1503 incomplete subtype is being constrained.
1504 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
1505 corresponding subtype of the full view of the original incomplete type.
1506 (Check_Incomplete): Properly detect invalid usage of incomplete types
1509 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
1511 * g-catiio.ads, g-catiio.adb (Value): New function.
1512 Given an input String, try and parse a valid Time value.
1514 2006-10-31 Vincent Celier <celier@adacore.com>
1516 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
1517 Integer_Address arithmetic, as in Set_Valid.
1519 2006-10-31 Arnaud Charlet <charlet@adacore.com>
1520 Robert Dewar <dewar@adacore.com>
1522 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
1523 handling executable extension manually and duplicating code.
1525 * make.adb: Implement new -S switch
1526 (Gnatmake): Use new function Osint.Executable_Name instead
1527 of handling executable extension manually.
1529 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
1530 is specified, the executable name ends with this suffix.
1531 Take advantage of Osint.Executable_Name instead of duplicating code.
1533 * switch-m.adb: Recognize new gnatmake -S switch
1535 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
1537 (Get_Target_Parameters): Set Executable_Extension_On_Target if
1540 * makeusg.adb: Add line for gnatmake -S switch
1542 2006-10-31 Vincent Celier <celier@adacore.com>
1544 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
1545 call it with -static-libgcc, as there are some platforms, such as
1546 Darwin, where one of these two switches is compulsory to link.
1548 2006-10-31 Vincent Celier <celier@adacore.com>
1550 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
1551 instead of ADA_PROJECT_PATH, for the project path.
1552 (Gnatls): When displaying the project path directories, use host dir
1555 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
1556 names in the project path, as absolute paths may correspond to
1557 multi-valued VMS logical names.
1559 2006-10-31 Vincent Celier <celier@adacore.com>
1561 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
1563 (Locate_Regular_File): Ditto
1564 (Change_Dir): Remove, no longer used
1565 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
1566 on Windows. Get it calling Get_Current_Dir.
1567 (OpenVMS): Remove imported boolean, no longer needed.
1568 (Normalize_Pathname)[VMS]: Do not resolve directory names.
1569 (Pid_To_Integer): New function to convert a Process_Id to Integer
1571 2006-10-31 Thomas Quinot <quinot@adacore.com>
1573 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
1574 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
1576 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
1579 2006-10-31 Robert Dewar <dewar@adacore.com>
1581 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
1582 initial letter o as a zero.
1584 2006-10-31 Robert Dewar <dewar@adacore.com>
1586 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
1588 2006-10-31 Robert Dewar <dewar@adacore.com>
1590 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
1592 (Layout_Variant_Record): Retrieve the discriminants from the entity
1593 rather than from the type definition, because in the case of a full
1594 type for a private type we need to take the discriminants from the
1596 (Layout_Component_List): When applying the Max operator to variants with
1597 a nonstatic size, check whether either operand is static and scale that
1598 operand from bits to storage units before applying Max.
1599 (Layout_Type): In VMS, if a C-convention access type has no explicit
1600 size clause (and does not inherit one in the case of a derived type),
1601 then the size is reset to 32 from 64.
1603 2006-10-31 Vincent Celier <celier@adacore.com>
1605 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
1606 its file has already been loaded, according to the unit being loaded,
1607 not to the current value of Multiple_Unit_Index.
1609 2006-10-31 Thomas Quinot <quinot@adacore.com>
1610 Eric Botcazou <ebotcazou@adacore.com>
1611 Arnaud Charlet <charlet@adacore.com>
1613 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
1614 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
1616 (a-except.o): Pass it to the compiler.
1617 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
1618 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
1619 a-calend-mingw.adb version.
1621 * Makefile.rtl: Added s-dsaser.
1622 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
1623 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
1624 Ada.Dispatching.Round_Robin.
1625 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
1627 * Make-lang.in: Remove all references to gt-ada-decl.h.
1628 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
1630 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
1631 Update dependencies.
1633 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
1635 2006-10-31 Vincent Celier <celier@adacore.com>
1637 * mlib-utl.adb (Initialized): Remove, no longer used
1638 (Initialize): Remove, no longer used
1639 (Ar): If Ar_Exec is null, get the location of the archive builder and,
1640 if there is one, the archive indexer. Fail if the archive builder cannot
1642 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
1645 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1647 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
1648 Process_Body_Clauses): If the context of a body includes a use clause
1649 for P.Q then a with_clause for P in the same body is not redundant,
1650 even if the spec also has a with_clause on P.
1651 Add missing continuation mark to error msg
1652 (Build_Limited_Views): A limited view of a type is tagged if its
1653 declaration includes a record extension.
1654 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
1655 node, even if the subunit has errors. This avoids malfunction by
1656 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
1657 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
1658 generation of obsolescent messages for with statements (cannot do
1659 this too early, or we cannot implement avoiding the messages in the
1660 case of obsolescent units withing obsolescent units).
1661 (Install_Siblings): If the with_clause is on a remote descendant of
1662 an ancestor of the current compilation unit, find whether there is
1663 a sibling child unit that is immediately visible.
1664 (Remove_Private_With_Clauses): New procedure, invoked after completing
1665 the analysis of the private part of a nested package, to remove from
1666 visibility the private with_clauses of the enclosing package
1668 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
1669 now centralized in Generate_Reference.
1670 (Install_Limited_Context_Clauses): Remove superfluous error
1671 message associated with unlimited view visible through use
1672 and renamings. In addition, at the point in which the error
1673 is reported, we add the backslash to the text of the error
1674 to ensure that it is reported as a single error message.
1675 Use new // insertion for some continuation messages
1676 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
1677 to create implicit with_clause for parent unit mentioned in original
1678 limited_with_clause.
1679 (Install_Limited_With_Unit): Set entity of parent identifiers if the
1680 unit is a child unit. For ASIS queries.
1681 (Analyze_Subunit): If the subunit appears within a child unit, make all
1682 ancestor child units directly visible again.
1684 2006-10-31 Robert Dewar <dewar@adacore.com>
1686 * par-ch10.adb (P_Context_Clause): Minor error message fix
1688 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
1689 Javier Miranda <miranda@adacore.com>
1691 * par-ch12.adb: Grammar update and cleanup.
1692 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
1693 support for synchronized derived type definitions.
1694 Add the new actual Abstract_Present to every call to
1695 P_Interface_Type_Definition.
1696 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
1697 a formal object declaration with an access definition or a subtype mark
1698 with a null exclusion.
1699 (P_Generic_Association): Handle association with box, and others_choice
1700 with box, to support Ada 2005 partially parametrized formal packages.
1702 2006-10-31 Robert Dewar <dewar@adacore.com>
1703 Javier Miranda <miranda@adacore.com>
1705 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
1706 (P_Type_Declaration): Remove barrier against the reserved word "limited"
1707 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
1708 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
1710 (P_Type_Declaration): Add the new actual Abstract_Present to every call
1711 to P_Interface_Type_Definition.
1712 (P_Interface_Type_Definition): Addition of one formal to report an error
1713 if the reserved word abstract has been previously found.
1714 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
1715 object renaming declaration with an access definition or subtype mark
1716 with a possible null exclusion.
1718 * par-ch9.adb: Minor error msg fix
1720 * par-load.adb: Add missing continuation mark to error msg
1722 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
1724 2006-10-31 Vincent Celier <celier@adacore.com>
1726 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
1727 unknown attribute in unknown package or in package that does not need
1729 (Parse_Package_Declaration): Do not issue warning for unknown package in
1732 2006-10-31 Vincent Celier <celier@adacore.com>
1734 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
1735 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
1738 2006-10-31 Vincent Celier <celier@adacore.com>
1740 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
1741 on VMS, change "__" to '.' before checking the name.
1742 (Record_Ada_Source): Always add the source file name in the list of
1743 of sources, even if it is not the first time, as it is for another
1745 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
1746 dot, instead of replacing only the first '_'.
1748 * prj-part.adb (Parse): Convert project file path to canonical form
1750 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
1751 extended, the project id of the project extending it is recorded in its
1752 data, even when it has already been processed as an imported project.
1754 2006-10-31 Robert Dewar <dewar@adacore.com>
1756 * repinfo.adb (List_Entities): Don't list entities from renaming
1759 2006-10-31 Arnaud Charlet <charlet@adacore.com>
1760 Robert Dewar <dewar@adacore.com>
1762 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
1763 only a restriction warning is active for the given restriction. This is
1764 desirable because we do not want to modify code in the case where only
1766 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
1767 causes overriding of real restrictions.
1768 Take advantage of new No_Restrictions constant.
1770 * raise.h: (__gnat_set_globals): Change profile.
1772 2006-10-31 Arnaud Charlet <charlet@adacore.com>
1774 * rtsfind.adb: Remove s-polint from comment as it exists no more.
1777 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
1778 Move all the entities in obsolete package System.PolyORB_Interface to
1779 System.Partition_Interface.
1780 (RE_Storage_Size): New function in System.Tasking.
1781 (RE_Get_Ceiling): New entity.
1782 (RE_Set_Ceiling): New entity.
1783 (RO_PE_Get_Ceiling): New entity.
1784 (RO_RE_Set_Ceiling): New entity.
1785 (Inherit_CPP_DT): New entity
1787 2006-10-31 Robert Dewar <dewar@adacore.com>
1789 * scng.adb (Scan, case of numeric literal): Better msg for identifier
1790 starting with a digit.
1792 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1793 Thomas Quinot <quinot@adacore.com>
1794 Javier Miranda <miranda@adacore.com>
1795 Gary Dismukes <dismukes@adacore.com>
1797 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
1798 properly an attempt to apply Unchecked_Access to a protected operation.
1799 (OK_Self_Reference): New subprogram to check the legality of an access
1800 attribute whose prefix is the type of an enclosing aggregate.
1801 Generalizes previous mechanism to handle attribute references nested
1802 arbitrarily deep within the aggregate.
1803 (Analyze_Access_Attribute): An access attribute whose prefix is a type
1804 can appear in an aggregate if this is a default-initialized aggregate
1805 for a self-referential type.
1806 (Resolve_Attribute, case Access): Ditto.
1807 Add support for new implementation defined attribute Stub_Type.
1808 (Eval_Attribute, case Attribute_Stub_Type): New case.
1809 (Analyze_Attribute, case Attribute_Stub_Type): New case.
1810 (Stream_Attribute_Available): Implement using new subprogram from
1811 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
1812 Has_Specified_Stream_Attribute flag.
1813 Disallow Storage_Size and Storage_Pool for access to subprogram
1814 (Resolve_Attribute, case 'Access et al): Take into account anonymous
1815 access types of return subtypes in extended return statements. Remove
1816 accessibility checks on anonymous access types when Unchecked_Access is
1818 (Analyze_Attribute): Add support for the use of 'Class to convert
1819 a class-wide interface to a tagged type.
1820 Add support for the attribute Priority.
1821 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
1822 whether the designated type is discriminated with a constrained partial
1823 view and require static matching in that case.
1824 Add local variable Des_Btyp. The Designated_Type
1825 of an access to incomplete subtype is either its non-limited view if
1826 coming from a limited with or its etype if regular incomplete subtype.
1828 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
1829 Fix predicate to identify and allow cases of (expander-generated)
1830 references to tag of designated object of a RACW.
1831 (Validate_Static_Object_Name): In Ada 2005, a formal object is
1832 non-static, and therefore cannot appear as a primary in a preelaborable
1834 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
1835 Has_Read_Write_Attributes.
1836 (Has_Read_Write_Attributes): Reimplement in termes of
1837 Has_Stream_Attribute_Definition.
1838 (Missing_Read_Write_Attributes): When checking component types in a
1839 record, unconditionally call Missing_Read_Write_Attributes recursively
1840 (remove guard checking for Is_Record_Type / Is_Access_Type).
1842 2006-10-31 Robert Dewar <dewar@adacore.com>
1844 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
1845 useless assignments here and conditionalize it on absence of exception
1847 (Analyze_Exception_Handlers): Small code reorganization of error
1848 detection code, for new handling of formal packages.
1850 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1851 Hristian Kirtchev <kirtchev@adacore.com>
1853 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
1854 that has been constant-folded, preserve information of original tree,
1856 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
1857 generated private extension declaration if the formal derived type is
1858 synchronized. Carry synchronized present over to the generated private
1860 (Validate_Derived_Type_Instance): Ensure that the actual of a
1861 synchronized formal derived type is a synchronized tagged type.
1862 (Instantiate_Formal_Package): When creating the instantiation used to
1863 validate the actual package of a formal declared without a box, check
1864 whether the formal itself depends on a prior actual.
1865 (Instantiate_Formal_Subprogram): Create new entities for the defining
1866 identifiers of the formals in the renaming declaration, for ASIS use.
1867 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
1868 a renaming declaration or a subtype declaration for an actual in an
1869 instance, capture location information of declaration in generic, for
1871 (Instantiate_Formal_Package): Add comments on needed additional tests.
1872 AI-317 (partial parametrization) is fully implemented.
1873 (Validate_Private_Type_Instance): Add check for actual which
1874 must have preelaborable initialization
1875 Use new // insertion for some continuation messages
1876 (Analyze_Formal_Object_Declaration): Change usage of Expression to
1877 Default_Expression. Add type retrieval when the declaration has an
1878 access definition. Update premature usage of incomplete type check.
1879 (Check_Access_Definition): New subsidiary routine. Check whether the
1880 current compilation version is Ada 05 and the supplied node has an
1882 (Instantiate object): Alphabetize local variables. Handle the creation
1883 of new renaming declarations with respect to the kind of definition
1884 used - either an access definition or a subtype mark. Guard against
1885 unnecessary error message in the context of anonymous access types after
1886 they have been resolved. Add check for required null exclusion in a
1887 formal object declaration.
1888 (Switch_View): A private subtype of a non-private type needs to be
1889 switched (the base type can have been switched without its private
1890 dependents because of the last branch of Check_Private_View.
1891 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
1893 (Instantiate_Type): Emit an error message whenever a class-wide type of
1894 a tagged incomplete type is used as a generic actual.
1895 (Find_Actual_Type): Extend routine to handle a component type in a child
1896 unit that is imported from a formal package in a parent.
1897 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
1898 agree on constrainedness, rather than checking against ultimate ancestor
1899 (Instantiate_Subprogram_Body): Create a cross-reference link to the
1900 generic body, for navigation purposes.
1902 2006-10-31 Robert Dewar <dewar@adacore.com>
1903 Thomas Quinot <quinot@adacore.com>
1905 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
1907 (New_Stream_Subprogram): When processing an attribute definition clause
1908 for a stream-oriented subprogram, record an entity node occurring at
1909 the point of clause to use for checking the visibility of the clause,
1910 as defined by 8.3(23) as amended by AI-195.
1911 (New_Stream_Subprogram): New procedure, factoring behaviour from both
1912 New_Stream_Function and New_Stream_Procedure.
1913 (New_Stream_Function, New_Stream_Procedure): Removed.
1914 (Analyze_Attribute_Definition_Clause, case Address): Check new
1915 Alignment_Check check
1917 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1918 Javier Miranda <miranda@adacore.com>
1919 Robert Dewar <dewar@adacore.com>
1921 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
1922 generate the same errors compiling under -gnatc.
1923 (Try_Object_Operation): If no candidate interpretation succeeds, but
1924 there is at least one primitive operation with the right name, report
1925 error in call rather than on a malformed selected component.
1926 (Analyze_Selected_Component): If the prefix is an incomplete type from
1927 a limited view, and the full view is available, use the full view to
1928 determine whether this is a prefixed call to a primitive operation.
1929 (Operator_Check): Verify that a candidate interpretation is a binary
1930 operation before checking the type of its second formal.
1931 (Analyze_Call): Add additional warnings for function call contexts not
1933 (Analyze_Allocator): Move the check for "initialization not allowed for
1934 limited types" after analyzing the expression. This is necessary,
1935 because OK_For_Limited_Init looks at the structure of the expression.
1936 Before analysis, we don't necessarily know what sort of expression it
1937 is. For example, we don't know whether F(X) is a function call or an
1938 indexed component; the former is legal in Ada 2005; the latter is not.
1939 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
1940 were missing. We also didn't handle qualified expressions. Now also
1941 allow function calls. Use new common routine OK_For_Limited_Init.
1942 (Analyze_Type_Conversion): Do not perform some legality checks in an
1943 instance, because the error message will be redundant or spurious.
1944 (Analyze_Overloaded_Selected_Component): Do not do style check when
1945 setting an entity, since we do not know it is the right entity yet.
1946 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
1947 (Analyze_Overloaded_Selected_Component): Same change
1948 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
1949 since regular incomplete subtypes are transformed into corresponding
1950 subtypes of their full views.
1951 (Complete_Object_Operation): Treat name of transformed subprogram call
1952 as coming from source, for browsing purposes.
1953 (Try_Primitive_Operation): If formal is an access parameter, compare
1954 with base type of object to determine whether it is a primitive
1956 (Operator_Check): If no interpretation of the operator matches, check
1957 whether a use clause on any candidate might make the operation legal.
1958 (Try_Class_Wide_Operation): Check whether the first parameter is an
1959 access type whose designated type is class-wide.
1961 2006-10-31 Robert Dewar <dewar@adacore.com>
1962 Ed Schonberg <schonberg@adacore.com>
1963 Gary Dismukes <dismukes@adacore.com>
1965 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
1966 warn on infinite loops.
1967 Add \\ to some continuation messages
1968 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
1969 (Process_Bounds): If the bounds are integer literals that result from
1970 constant-folding, and they carry a user-defined type, preserve that type
1971 rather than treating this as an integer range.
1972 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
1973 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
1974 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
1975 left hand side of assignment.
1976 (Analyze_Assignment): Add suport to manage assigments to the attribute
1977 priority of a protected object.
1978 (Check_Possible_Current_Value_Condition): Allow fully qualified names
1979 not just identifiers.
1980 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
1981 or AND THEN for possible tracking.
1982 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
1983 case of while loops so we can track values in the loop body.
1985 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1986 Hristian Kirtchev <kirtchev@adacore.com>
1987 Bob Duff <duff@adacore.com>
1989 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
1990 procedure cannot be a protected operation (it is a basic_declaration,
1991 not a subprogram_declaration).
1992 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
1993 Subp. Add logic for entry processing.
1994 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
1995 Determine whether an entry or subprogram of a protected or task type
1996 override an inherited primitive of an implemented interface.
1997 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
1998 Update the actual used in calls to Check_Overriding_Indicator.
1999 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
2000 generate the proper reference to the parent unit, for cross-reference.
2001 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
2003 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
2004 (Add_Extra_Formal): Revise procedure to allow passing in associated
2005 entity, scope, and name suffix, and handle setting of the new
2006 Extra_Formals field.
2007 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
2008 pass new parameters. Add support for adding the new extra access formal
2009 for functions whose calls are treated as build-in-place.
2010 (Analyze_A_Return_Statement): Correct casing in error message.
2011 Move Pop_Scope to after Analyze_Function_Return, because an extended
2012 return statement really is a full-fledged scope. Otherwise, visibility
2013 doesn't work right. Correct use of "\" for continuation messages.
2014 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
2015 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
2016 the node doesn't get properly marked as analyzed.
2017 (Analyze_Subprogram_Body): If subprogram is a function that returns
2018 an anonymous access type that denotes a task, build a Master Entity
2020 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
2021 proper usage of null exclusion in a result definition.
2022 (Process_Formals): Code cleanup and new error message.
2023 (Process_Formals): Detect incorrect application of null exclusion to
2025 (Conforming_Types): Handle conformance between [sub]types and itypes
2026 generated for entities that have null exclusions applied to them.
2027 (Maybe_Primitive_Operation): Add an additional type retrieval when the
2028 base type is an access subtype. This case arrises with null exclusions.
2029 (New_Overloaded_Entity): Do not remove the overriden entity from the
2030 homonym chain if it corresponds with an abstract interface primitive.
2031 (Process_Formals): Replace membership test agains Incomplete_Kind with a
2032 call to the synthesized predicate Is_Incomplete_Type.
2033 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
2035 (Analyze_Subprogram_Declaration): Check that abstract interface
2036 primitives are abstract or null.
2037 (Analyze_Subprogram_Specification): Remove previous check for abstract
2038 interfaces because it was not complete.
2039 (Has_Interface_Formals): Removed.
2041 2006-10-31 Ed Schonberg <schonberg@adacore.com>
2042 Javier Miranda <miranda@adacore.com>
2044 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
2045 of Analyze_Package_Body, to create Itype references for anonymous
2046 access types created in the package declaration, whose designated types
2047 may have only a limited view.
2048 (Analyze_Package_Specification): For the private part of a nested
2049 package, install private_with_clauses of enclosing compilation unit if
2050 we are in its visible part.
2051 (Declare_Inherited_Private_Subprograms): Complete barrier
2052 to ensure that the primitive operation has an alias to some parent
2053 primitive. This is now required because, after the changes done for the
2054 implementation of abstract interfaces, the contents of the list of
2055 primitives has entities whose alias attribute references entities of
2056 such list of primitives.
2057 (Analyze_Package_Specification): Simplify code that handles parent units
2058 of instances and formal packages.
2059 (Uninstall_Declarations): Check the convention consistency among
2060 primitive overriding operations of a tagged record type.
2062 2006-10-31 Robert Dewar <dewar@adacore.com>
2063 Hristian Kirtchev <kirtchev@adacore.com>
2064 Javier Miranda <miranda@adacore.com>
2065 Ed Schonberg <schonberg@adacore.com>
2067 * sem_ch8.adb: Minor error msg rewording
2068 (Undefined): When checking for misspellings, invert arguments (to get
2069 expected and found set right)
2070 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
2071 (Analyze_Generic_Renaming): Same fix
2072 (Use_One_Package): Do not take into account the internal entities of
2073 abstract interfaces during the analysis of entities that are marked
2074 as potentially use-visible.
2075 (Find_Type): Handle the case of an attribute reference for
2076 implementation defined attribute Stub_Type (simply let the analysis of
2077 the attribute reference rewrite it).
2078 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
2079 type that appears in a Use_Type clause.
2080 (Analyze_Object_Renaming): Add support for renaming of the Priority
2082 (Find_Type): In Ada 2005, a task type can be used within its own body,
2083 when it appears in an access definition.
2084 (Analyze_Object_Renaming): Remove warning on null_exclusion.
2085 (Analyze_Object_Renaming): Introduce checks for required null exclusion
2086 in a formal object declaration or in a subtype declaration.
2087 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
2088 (Check_Null_Exclusion): New local routine to
2089 Analyze_Subprogram_Renaming. Check whether the formals and return
2090 profile of a renamed subprogram have required null exclusions when
2091 their counterparts of the renaming already impose them.
2092 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
2093 Determine whether an entity is inside a generic scope.
2094 (In_Open_Scope): First pass of documentation update.
2095 (Find_Expanded_Name): Add support for shadow entities associated with
2096 limited withed packages. This is required to handle nested packages.
2097 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
2098 that makes a renaming of a limited withed package illegal.
2100 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
2101 Ed Schonberg <schonberg@adacore.com>
2103 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
2104 Check_Overriding_Indicator.
2105 (Analyze_Task_Definition): Ditto.
2106 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
2107 (Check_Overriding_Indicator): To find overridden interface operation,
2108 examine only homonyms that have an explicit subprogram declaration, not
2109 inherited operations created by an unrelated type derivation.
2110 (Check_Overriding_Indicator): When checking for the presence of "null"
2111 in a procedure, ensure that the queried node is a procedure
2113 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
2114 type when the formal is an access to variable.
2115 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
2116 (Analyze_Task_Type): Same addition
2117 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
2118 provide navigation capabilities for entries.
2120 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
2121 Ed Schonberg <schonberg@adacore.com>
2122 Javier Miranda <miranda@adacore.com>
2123 Gary Dismukes <dismukes@adacore.com>
2125 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
2126 inherited from an interface ancestor by another interface in the
2127 context of an instance as 'late'.
2128 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
2129 of a call to a function that dispatches on access result.
2130 (Check_Dispatching_Operation): In case of late overriding of a primitive
2131 that covers abstract interface subprograms we register it in all the
2132 secondary dispatch tables associated with abstract interfaces.
2133 (Check_Dispatching_Call): Add check that a dispatching call is not made
2134 to a function with a controlling result of a limited type. This is a
2135 current implementation restriction.
2136 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
2137 (Check_Dispatching_Operation): Do no emit a warning if the controlling
2138 argument is an interface type that is a generic formal.
2139 (Is_Interface_Subprogram): Removed.
2140 (Check_Dispatching_Operation): If the subprogram is not a dispatching
2141 operation, check the formals to handle the case in which it is
2142 associated with an abstract interface type.
2144 2006-10-31 Robert Dewar <dewar@adacore.com>
2145 Ed Schonberg <schonberg@adacore.com>
2147 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
2148 Add new calls to this procedure during traversal
2149 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
2150 another unit if expansion is disabled.
2152 2006-10-31 Robert Dewar <dewar@adacore.com>
2154 * sem_eval.adb (Compile_Time_Compare): Make use of information from
2155 Current_Value in the conditional case, to evaluate additional
2156 comparisons at compile time.
2158 2006-10-31 Ed Schonberg <schonberg@adacore.com>
2159 Hristian Kirtchev <kirtchev@adacore.com>
2160 Javier Miranda <miranda@adacore.com>
2162 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
2163 subprogram type to provide better diagnostics in case of ambiguity.
2164 (Covers): Handle coverage of formal and actual anonymous access types in
2165 the context of generic instantiation.
2166 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
2167 abstract interface types; this is required to handle concurrent types
2168 with discriminants and abstract interface types.
2169 (Covers): Include type coverage of both regular incomplete subtypes and
2170 incomplete subtypes of incomplete type visibles through a limited with
2173 2006-10-31 Robert Dewar <dewar@adacore.com>
2174 Hristian Kirtchev <kirtchev@adacore.com>
2175 Ed Schonberg <schonberg@adacore.com>
2177 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
2178 messages for entities in packages which are not used.
2179 (Collect_Synchronized_Interfaces): New procedure.
2180 (Overrides_Synchronized_Primitive): New function.
2181 (Denotes_Discriminant): Extend predicate to apply to task types.
2182 Add missing continuation marks in error msgs
2183 (Unqualify): New function for removing zero or more levels of
2184 qualification from an expression. There are numerous places where this
2185 ought to be used, but we currently only deal properly with zero or one
2187 (In_Instance); The analysis of the actuals in the instantiation of a
2188 child unit is not within an instantiation, even though the parent
2189 instance is on the scope stack.
2190 (Safe_To_Capture_Value): Exclude the case of variables that are
2192 (Check_Obsolescent): Removed
2193 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
2194 is an aliased view, even when rewritten as a reference to the target
2195 object in an assignment.
2196 (Get_Subprogram_Entity): New function
2197 (Known_To_Be_Assigned): New function
2198 (Type_Access_Level): Compute properly the access level of a return
2199 subtype that is an anonymous access type.
2200 (Explain_Limited_Type): Correct use of "\" for continuation messages.
2201 (Is_Transfer): The new extended_return_statement causes a transfer of
2203 (Has_Preelaborable_Initialization): New function
2204 (Has_Null_Exclusion): New function. Given a node N, determine whether it
2205 has a null exclusion depending on its Nkind.
2206 Change Is_Lvalue to May_Be_Lvalue
2207 (May_Be_Lvalue): Extensive additional code to deal with subprogram
2208 arguments (IN parameters are not Lvalues, IN OUT parameters are).
2209 (Safe_To_Capture_Value): Extend functionality so it can be used for
2210 the current value condition case.
2211 (Has_Compatible_Alignment): New function
2212 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
2213 objects to handle the Ada 2005 case, where aliasedness no longer implies
2214 that the object is constrained. In particular, for dereferenced names,
2215 the designated object must be assumed to be unconstrained.
2216 (Kill_Current_Values): Properly deal with the case where we encounter
2217 a loop in the scope chain.
2218 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
2220 (Compile_Time_Constraint_Error): Improve error message in error case
2222 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
2223 associated with entities of abstract interface primitives.
2224 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
2226 2006-10-31 Robert Dewar <dewar@adacore.com>
2228 * s-osinte-tru64.adb:
2229 Mark Asm statements Volatile to prevent warnings (seems a
2230 reasonable change anyway)
2233 * s-mastop-irix.adb: Add Volatile to Asm statements
2234 Suppresses warning, and seems appropriate in any case
2236 * s-osinte-vms.adb: Add Volatile to Asm statement
2238 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
2240 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
2242 Add call to Check_Code_Statement
2244 2006-10-31 Robert Dewar <dewar@adacore.com>
2245 Ed Schonberg <schonberg@adacore.com>
2246 Bob Duff <duff@adacore.com>
2248 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
2249 Synchronized_Present): Add Formal_Derived_Type_Definition and
2250 Private_Extension_Declaration to the list of assertions.
2251 (Is_Entry_Barrier_Function): New flag
2252 (Has_Self_Reference): New flag on aggregates, to indicate that they
2253 contain a reference to the enclosing type, inserted through a default
2255 (Next_Rep_Item): Move from Node4 to Node5.
2256 (Entity): Add this field for N_Attribute_Definition_Clause.
2257 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
2258 (N_Return_Object_Declaration): Remove this node kind. We now use
2259 N_Object_Declaration instead.
2260 (Actual_Designated_Subtype): Move to a different place to make room in
2261 N_Extended_Return_Statement.
2262 (Procedure_To_Call): Move to a different place to make room in
2263 N_Extended_Return_Statement.
2264 (Return_Type): Removed this field to make room in return statements
2266 (Return_Statement_Entity): New field in return statements, in part to
2267 replace Return_Type, and in part to support the fact that return
2268 statements are now pushed on the scope stack during semantic analysis.
2269 (Return_Object_Declarations): New field to support extended return
2271 (N_Extended_Return_Statement): New node for extended_return_statement
2273 (N_Return_Object_Declaration): New node for part of
2274 extended_return_statement nonterminal. Needed because all the necessary
2275 fields won't fit in N_Extended_Return_Statement.
2276 Generic_associations now carry the Box_Present flag, to indicate a
2277 default for an actual in a partially parametrized formal package.
2279 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
2280 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
2281 and for the new predefined dispatching policies: EDF_Across_Priorities,
2282 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
2283 Introduce new name Stub_Type for implementation defined attribute.
2284 Add pragma Preelaborable_Initialization
2285 Add entry for Priority attribute.
2286 Add Pragma_Wide_Character_Encoding
2287 (Get_Convention_Name): Given a convention id, this function returns the
2288 corresponding name id from the names table.
2290 2006-10-31 Ed Schonberg <schonberg@adacore.com>
2291 Robert Dewar <dewar@adacore.com>
2292 Bob Duff <duff@adacore.com>
2294 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
2295 print null exclusion twice in the case of an access definition,
2296 Implement new -gnatL switch
2297 Remove N_Return_Object_Declaration. We now use
2298 N_Object_Declaration instead. Implement the case for
2299 N_Extended_Return_Statement. Alphabetize the cases.
2300 Add cases for new nodes N_Extended_Return_Statement and
2301 N_Return_Object_Declaration. The code is not yet written.
2302 Update the output for N_Formal_Object_Declaration
2303 and N_Object_Renaming_Declaration.
2304 (Write_Itype): Account for the case of a modular integer subtype whose
2305 base type is private.
2307 2006-10-31 Arnaud Charlet <charlet@adacore.com>
2309 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
2310 Remove elaboration code, now done in the binder.
2312 * s-rident.ads: Make this unit Preelaborate.
2313 (No_Restrictions): New constant used to clean up code and follow
2314 preelaborate constraints.
2317 Add System.Restrictions dependence, referenced directly from the
2318 binder generated file.
2320 2006-10-31 Gary Dismukes <dismukes@adacore.com>
2322 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
2323 True when AAMP extended floating-point is in use (48-bit). Change type
2324 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
2325 the two byte array types on AFloat. Change type of IV_Ilf overlay
2326 variable from Byte8 to ByteLF. Add appropriate initializations of
2327 floating-point overlays for AAMP cases.
2329 2006-10-31 Javier Miranda <miranda@adacore.com>
2331 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
2332 (Get_Ceiling): New subprogram that returns
2333 the ceiling priority of the protected object.
2334 (Set_Ceiling): New subprogram that sets the new ceiling priority of
2335 the protected object.
2337 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
2339 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
2341 2006-10-31 Jose Ruiz <ruiz@adacore.com>
2343 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
2344 requeuing to the same protected object to give higher priority tasks
2345 the opportunity to execute.
2347 2006-10-31 Robert Dewar <dewar@adacore.com>
2349 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
2350 add more precise check for the character sequence that follows '[' to
2351 avoid possible confusion in case if '[' is the last character of a
2353 (Scan_Wide): Always allow brackets encoding
2355 2006-10-31 Olivier Hainque <hainque@adacore.com>
2357 * s-stchop.ads: make this unit preelaborate. This is desirable in
2358 general and made mandatory by the use of this unit by s-taprop which
2359 is itself preelaborate.
2361 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
2362 Td_Events component.
2364 2006-10-31 Vincent Celier <celier@adacore.com>
2366 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
2369 2006-10-31 Vincent Celier <celier@adacore.com>
2371 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
2373 2006-10-31 Vincent Celier <celier@adacore.com>
2375 * makegpr.adb (Check_Compilation_Needed): Take into account path names
2377 (Check_Compilation_Needed): When checking a C or C++ source, do not
2378 resolve symbolic links.
2379 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
2380 When not in verbose mode and Ellipse is True, display "..." for the
2381 first argument with Display set to False.
2382 (Build_Global_Archive): Always set Display True for the first object
2383 file. Call Display_Command with Ellipse set to True.
2385 2006-10-31 Matt Heaney <heaney@adacore.com>
2387 * a-crbtgo.ads: Commented each subprogram
2389 * a-crbtgo.adb: Added reference to book from which algorithms were
2392 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
2393 indicate which child.
2394 (Generic_Conditional_Insert): changed parameter name from "Success" to
2396 (Generic_Unconditional_Insert_With_Hint): improved algorithm
2398 * a-coorse.adb (Replace_Element): changed parameter name in call to
2399 conditional insert operation.
2401 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
2403 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
2406 * a-ciorse.adb (Replace_Element): changed parameter name in call to
2407 conditional insert operation.
2409 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
2412 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
2413 instead of mode inout.
2415 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
2417 (Generic_Read): preserve existing buckets array if possible
2418 (Generic_Write): don't send buckets array length anymore
2420 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
2421 instead of mode inout.
2423 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
2424 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
2426 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
2427 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
2428 (Replace_Element): local operation is now an instantiation
2430 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
2431 check current length.
2432 (Generic_Replace_Element): new operation
2434 2006-10-31 Doug Rupp <rupp@adacore.com>
2436 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
2437 Call TBK$SYMBOLIZE without omitting parameters.
2439 2006-10-31 Vincent Celier <celier@adacore.com>
2441 * symbols-processing-vms-ia64.adb,
2442 symbols-processing-vms-alpha.adb (Process): Do not include symbols
2443 that come from generic instantiations in bodies.
2445 2006-10-31 Pat Rogers <rogers@adacore.com>
2447 * a-rttiev.ads, a-rttiev.adb:
2448 This is a significant redesign primarily for the sake of automatic
2449 timer task termination but also to fix a design flaw.
2450 Therefore we are now using an RTS lock, instead of a protected
2451 object, to provide mutual exclusion to the queue of pending events
2452 and the type Timing_Event is no longer a protected type.
2454 2006-10-31 Robert Dewar <dewar@adacore.com>
2455 Cyrille Comar <comar@adacore.com>
2456 Ben Brosgol <brosgol@adacore.com>
2458 * debug.adb: Update flags documentation
2460 * gnat_ugn.texi: Add documentation for new -gnatwq switch
2461 Clean up documentation for several other warning switches
2462 Clarify how task stack size can be specified with various
2463 versions of Windows.
2464 Add note that -gnatVo includes ranges including loops
2465 Add documentation for -gnatL switch
2466 Add note on elaboration warning for initializing variables
2467 Add documentation for new -gnatwt warning switch
2468 Document new form of pragma Warnings (On|Off, string)
2469 Add comment on use of pragma Warnings to control warnings
2470 Add documentation for -gnatjnn switch
2471 Modify section on interfacing with C for VMS 64-bit.
2472 Add doc for -gnatVe/E
2473 Add documentation of new warning flags -gnatww/-gnatwW
2474 Add warnings about address clause overlays to list of warnings
2475 (Exception Handling Control): Document that the option --RTS must be
2476 used consistently for gcc and gnatbind.
2477 Clarify that inlining is not always possible
2478 Update documentation on pragma Unchecked_Union.
2481 Add documentation for new extended version of pragma Obsolescent
2482 Add documentation for implementation defined attribute 'Stub_Type.
2483 Add note on use of Volatile in asm statements
2484 Add documentation on use of pragma Unreferenced in context clause
2485 Document new form of pragma Warnings (On|Off, pattern)
2486 Document pragma Wide_Character_Encoding
2487 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
2488 enforced if code generation is active.
2489 Add section on pragma Suppress to document GNAT specific check
2491 Clarify difference between No_Dispatching_Calls & No_Dispatch.
2492 Add documentation for pragma Restrictions (No_Elaboration_Code)
2495 Add comments on layout of subprogram local variables in the
2496 presence of nested subprograms.
2500 * elists.ads: Minor reformatting
2501 Node returns Node_Or_Entity_Id (doc change only)
2503 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
2505 * g-arrspl.ads (Create): Update comments.
2507 * sem.ads: Add details on the handling of the scope stack.
2509 * usage.adb: Update documentation.
2511 * validsw.ads, validsw.adb:
2512 Add definition of Validity_Check_Components and implement -gnatVe/E
2514 * vms_data.ads: Add missing VMS qualifiers.
2516 * s-addope.ads: Add documentation on overflow and divide by zero
2518 2006-10-31 Robert Dewar <dewar@adacore.com>
2519 Thomas Quinot <quinot@adacore.com>
2520 Arnaud Charlet <charlet@adacore.com>
2522 * fmap.adb: Put routines in alpha order
2524 * g-boumai.ads: Remove redundant 'in' keywords
2526 * g-cgi.adb: Minor reformatting
2528 * g-cgi.ads: Remove redundant 'in' keywords
2530 * get_targ.adb: Put routines in alpha order
2532 * prj-attr.ads: Minor reformatting
2534 * s-atacco.ads: Minor reformatting
2536 * scn.adb: Put routines in alpha order
2538 * sinput-l.adb: Minor comment fix
2540 * sinput-p.adb: Minor comment fix
2542 * s-maccod.ads: Minor reformatting
2544 * s-memory.adb: Minor reformatting
2546 * s-htable.adb: Fix typo in comment.
2548 * s-secsta.adb: Minor comment update.
2550 * s-soflin.adb: Minor reformatting
2553 Add comment about odd qualification in Storage_Offset declaration
2556 Remove unnecessary 'in' keywords for formal parameters.
2558 * treeprs.adt: Minor reformatting
2560 * urealp.adb: Put routines in alpha order
2562 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
2565 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
2567 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
2569 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
2570 workaround as on other platforms.
2572 * g-eacodu-vms.adb: Remove redundant 'in' keywords
2573 * g-expect-vms.adb: Remove redundant 'in' keywords
2575 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
2576 clear error message if the list-of-files file cannot be opened.
2578 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
2579 equality operator is always visible.
2581 * lang.opt: Woverlength-strings: New option.
2584 Update copyright, since nmake.ads and nmake.adb have changed.
2586 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
2587 (Binder_Output_Time_Stamps_Set): removed.
2588 (Old_Binder_Output_Time_Stamp): idem.
2589 (New_Binder_Output_Time_Stamp): idem.
2590 (Recording_Time_From_Last_Bind): idem.
2591 (Recording_Time_From_Last_Bind): Make constant.
2593 * output.ads, output.adb (Write_Str): Allow LF characters
2594 (Write_Spaces): New procedure
2596 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
2598 * inline.adb: Minor reformatting
2600 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
2602 * s-mastop-vms.adb: Remove redundant 'in' keywords
2604 * s-osprim-vms.adb: Remove redundant 'in' keywords
2606 * s-trafor-default.adb: Remove redundant 'in' keywords
2608 * 9drpc.adb: Remove redundant 'in' keywords
2610 * s-osinte-mingw.ads: Minor reformatting
2612 * s-inmaop-posix.adb: Minor reformatting
2614 * a-direio.ads: Remove quotes from Compile_Time_Warning message
2616 * a-exexda.adb: Minor code reorganization
2618 * a-filico.adb: Minor reformatting
2620 * a-finali.adb: Minor reformatting
2622 * a-nudira.ads: Remove quote from Compile_Time_Warning message
2624 * a-numeri.ads: Minor reformatting
2626 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
2628 * exp_pakd.ads: Fix obsolete comment
2630 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
2631 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
2632 Probably not a bug, but certainly neater and more efficient.
2634 * a-tienio.adb: Minor reformatting
2636 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
2637 Avoid assuming low bound of string is 1.
2639 * gnatbind.adb: Change Bindusg to package and rename procedure as
2640 Display, which now ensures that it only outputs usage information once.
2641 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
2643 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
2646 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
2648 (Match): Add pragma Assert to ensure that Matches'First is zero
2650 * g-regpat.ads (Match): Document that Matches lower bound must be zero
2652 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
2653 documented preconditions (also kills warnings about bad indexes).
2655 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
2657 (Build_Import_Library): Ditto;
2659 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
2661 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
2663 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
2664 lower bound of choice table is 1.
2666 * sem_case.ads (Analyze_Choices): Document that lower bound of
2669 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
2672 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
2673 and add appropriate Assert pragma to suppress warnings.
2675 * atree.h, atree.ads, atree.adb
2676 Change Elist24 to Elist25
2677 Add definitions of Field28 and Node28
2678 (Traverse_Field): Use new syntactic parent table in sinfo.
2680 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
2682 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
2684 * exp_tss.adb: Put routines in alpha order
2686 * fe.h: Remove redundant declarations.
2688 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
2690 * utils.c (builtin_function): Rename to gnat_builtin_function.
2691 Move common code to add_builtin_function.
2692 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
2693 gnat_builtin_function.
2694 * gigi.h (builtin_function): Rename to gnat_builtin_function.
2695 Change the signature.
2697 2006-10-16 Brooks Moses <bmoses@stanford.edu>
2699 * Makefile.in: Add TEXI2PDF definition.
2700 * Make-lang.in: Add "ada.pdf" target.
2702 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
2704 * decl.c, utils.c: Fix comment typos.
2705 * utils.c: Fix a typo.
2707 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
2709 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
2710 on "pure" Ada subprograms if SJLJ exceptions are used.
2711 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
2712 on the declaration node of JMPBUF_SAVE.
2713 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
2714 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
2715 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
2717 2006-08-20 Laurent GUERBY <laurent@guerby.net>
2720 g-socket.adb (Bind_Socket): Call Set_Address.
2722 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
2725 * decl.c (same_discriminant_p): New static function.
2726 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
2727 subtype and we have discriminants, fix up the COMPONENT_REFs
2728 for the discriminants to make them reference the corresponding
2729 fields of the parent subtype after it has been built.
2731 2006-09-15 Roger Sayle <roger@eyesopen.com>
2734 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
2735 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
2737 2006-09-13 Olivier Hainque <hainque@adacore.com>
2740 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
2741 of a SAVE_EXPR, just make the operand addressable/not-readonly and
2742 let the common gimplifier code make and propagate a temporary copy.
2743 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
2744 out/in-out actuals and defer setting the addressable/readonly bits
2747 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
2750 * decl.c (components_to_record): Defer emitting debug info for the
2751 record type associated with the variant until after we are sure to
2754 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
2757 * gigi.h (gnat_internal_attribute_table): Declare.
2758 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
2759 * utils.c (gnat_internal_attribute_table): New global variable.
2760 (builtin_function): Always call decl_attributes on the builtin.
2761 (handle_const_attribute): New static function.
2762 (handle_nothrow_attribute): Likewise.
2764 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2766 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
2768 2006-06-23 Olivier Hainque <hainque@adacore.com>
2770 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
2771 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
2773 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
2774 Eric Botcazou <ebotcazou@adacore.com>
2777 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
2778 check-gnat into check-acats.
2780 2006-06-17 Karl Berry <karl@gnu.org>
2782 * gnat-style.texi (@dircategory): Use "Software development"
2783 instead of "Programming", following the Free Software Directory.
2785 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2788 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
2790 2006-06-06 Laurent GUERBY <laurent@guerby.net>
2793 mlib-utl.adb: Use Program_Name.
2795 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
2797 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
2798 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
2799 trans.c, utils.c: Fix comment typos. Follow spelling
2801 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
2804 2006-05-19 Nicolas Setton <setton@adacore.com>
2806 * misc.c (gnat_dwarf_name): New function.
2807 (LANG_HOOKS_DWARF_NAME): Define to it.
2809 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
2811 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
2812 (ada/misc.o): Likewise.
2813 (ada/utils.o): Likewise.
2815 2006-04-08 Aurelien Jarno <aurel32@debian.org>
2817 * Makefile.in: Add Ada support for GNU/kFreeBSD.
2818 * s-osinte-kfreebsd-gnu.ads: New file.
2820 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
2822 * Make-lang.in: Rename docdir to gcc_docdir.
2824 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
2826 * gigi.h (get_ada_base_type): Delete.
2827 * utils2.c (get_ada_base_type): Likewise.
2828 * trans.c (convert_with_check): Operate in the real base type.
2830 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2832 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
2834 2006-03-02 Richard Sandiford <richard@codesourcery.com>
2836 * utils.c (create_var_decl): Use have_global_bss_p when deciding
2837 whether to make the decl common.
2839 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2841 * Make-lang.in (Ada): Remove.
2842 (.PHONY): Remove Ada
2844 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2846 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
2847 aggregate, check the interpretations of the other operand to find one
2848 that may be a boolean array.
2850 (Analyze_Selected_Component): Fix flow-of-control typo in case where
2851 the prefix is a private extension.
2853 2006-02-17 Eric Botcazou <botcazou@adacore.com>
2856 * utils2.c (find_common_type): If both input types are BLKmode and
2857 have the same constant size, keep using the first one.
2859 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
2861 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
2863 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
2865 2006-02-17 Jose Ruiz <ruiz@adacore.com>
2867 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
2868 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
2869 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
2870 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
2871 Abort_Defer/Undefer pairs to avoid the possibility of a task being
2872 aborted while owning a lock.
2874 2006-02-17 Javier Miranda <miranda@adacore.com>
2875 Robert Dewar <dewar@adacore.com>
2877 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
2878 through an access to class-wide interface we force the displacement of
2879 the pointer to the allocated object to reference the corresponding
2880 secondary dispatch table.
2881 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
2882 if Long_Shifts are supported on the target, even if 64 bit divides
2883 are not supported (configurable run time mode).
2884 (Expand_N_Type_Conversion): Do validity check if validity checks on
2885 operands are enabled.
2886 (Expand_N_Qualified_Expression): Do validity check if validity checks
2887 on operands are enabled.
2889 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2891 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
2892 must be materialized when the renamed expression is an explicit
2895 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2897 * freeze.adb (Statically_Discriminated_Components): Return false if
2898 the bounds of the type of the discriminant are not static expressions.
2900 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
2901 the bounds of the discriminant type are not static.
2903 2006-02-17 Robert Dewar <dewar@adacore.com>
2905 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
2906 then we close To if it is valid.
2908 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
2910 * init.c (facility_resignal_table): new array
2911 (__gnat_default_resignal_p): enhance default predicate to resignal if
2912 VMS condition has one of the predefined facility codes.
2914 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
2916 * Makefile.in: Use VMS64 specialized versions of several units in
2917 Interfaces.C hierarchy to be compatible with HP C default size choices.
2918 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
2920 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2922 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
2923 instantiation, the corresponding entity is the related_instance of the
2924 wrapper package created for the instance.
2926 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2928 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
2929 the current instance is nested within another instance in a child unit.
2931 2006-02-17 Javier Miranda <miranda@adacore.com>
2932 Ed Schonberg <schonberg@adacore.com>
2934 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
2935 type we cannot inherit the primitive operations; we inherit the
2936 Corresponding_Record_Type (which has the list of primitive operations).
2937 (Check_Anonymous_Access_Types): When creating anonymous access types for
2938 access components, use Rewrite in order to preserve the tree structure,
2940 (Analyze_Object_Declaration): For limited types with access
2941 discriminants with defaults initialized by an aggregate, obtain
2942 subtype from aggregate as for other mutable types.
2943 (Derived_Type_Declaration): If the derived type is a limited interface,
2944 set the corresponding flag (Is_Limited_Record is not sufficient).
2946 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2948 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
2949 to inline a function that returns an unconstrained type, the return
2950 expression must be the first variable declared in the body of the
2953 2006-02-17 Javier Miranda <miranda@adacore.com>
2955 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
2956 abstract interface type, the static analysis is not enough to know if
2957 the interface is implemented or not by the source tagged type. Hence
2958 we must pass the work to the expander to generate the required code to
2959 evaluate the conversion at run-time.
2960 (Resolve_Equality_Op): Do not apply previous
2961 transformation if expansion is disasbled, to prevent anomalies when
2962 locating global references in a generic unit.
2964 2006-02-17 Vincent Celier <celier@adacore.com>
2966 * snames.ads, snames.adb: New standard names for new project attributes:
2967 archive_builder, archive_indexer, compiler_pic_option,
2968 config_body_file_name, config_body_file_name_pattern,
2969 config_file_switches, config_file_unique, config_spec_file_name,
2970 config_spec_file_name_pattern, default_builder_switches,
2971 default_global_compiler_switches, default_language,
2972 dependency_file_kind, global_compiler_switches, include_path,
2973 include_path_file, language_kind, linker_executable_option,
2974 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
2975 roots, runtime_project.
2977 2006-02-17 Matthew Heaney <heaney@adacore.com>
2979 * a-convec.ads, a-convec.adb:
2980 (operator "&"): handle potential overflow for large index types
2981 (Insert): removed Contraint_Error when using large index types
2982 (Insert_Space): removed Constraint_Error for large index types
2983 (Length): moved constraint check from Length to Insert
2985 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
2987 Explicit raise statements now include an exception message.
2988 (operator "&"): handle potential overflow for large index types
2989 (Insert): removed Contraint_Error when using large index types
2990 (Insert_Space): removed Constraint_Error for large index types
2991 (Length): moved constraint check from Length to Insert
2993 2006-02-17 Robert Dewar <dewar@adacore.com>
2995 * s-wchcnv.adb: Document handling of [ on output (we do not change
2996 this to ["5B"] and the new comments say why not.
2999 Add note for -gnatVo that this now includes the cases of type
3000 conversions and qualified expressions.
3001 Add comments on handling of brackets encoding for Text_IO
3003 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
3004 Thomas Quinot <quinot@adacore.com>
3005 Robert Dewar <dewar@adacore.com>
3006 Javier Miranda <miranda@adacore.com>
3008 * expander.adb: Fix typo in comment
3010 * exp_pakd.adb: Fix typo
3011 Minor comment reformatting.
3013 * g-dyntab.adb: Minor reformatting
3015 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
3016 aliased subprograms to look for the abstract interface subprogram.
3018 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
3020 * env.c (__gnat_setenv): Use size_t.
3021 (__gnat_unsetenv): Likewise.
3022 (__gnat_clearenv): Likewise.
3024 2006-02-16 Arnaud Charlet <charlet@adacore.com>
3026 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
3028 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3030 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
3031 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
3032 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
3033 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
3034 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
3035 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
3036 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
3037 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
3038 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
3041 2006-02-13 Jose Ruiz <ruiz@adacore.com>
3043 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
3044 protection against race conditions is not needed.
3045 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
3047 (Set_Specific_Handler): Add mutual exclusive access to the specific
3049 (Specific_Handler): Add mutual exclusive access for retrieving the
3052 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
3055 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
3056 Fall_Back_Handler and Specific_Handler.
3058 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
3059 termination handlers.
3060 Set two different owerflow depending on the maximal stack size.
3062 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
3063 protection against race conditions is not needed when executing the
3064 task termination handler.
3066 2006-02-13 Robert Dewar <dewar@adacore.com>
3068 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
3069 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
3070 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
3071 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
3072 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
3073 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
3074 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
3075 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
3076 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
3077 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
3078 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
3079 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
3080 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
3081 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
3082 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
3083 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
3084 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
3085 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
3086 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
3087 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
3088 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
3089 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
3090 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
3091 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
3092 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
3093 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
3094 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
3095 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
3096 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
3097 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
3098 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
3099 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
3100 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
3101 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
3104 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
3106 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
3107 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
3108 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
3109 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
3110 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
3111 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
3112 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
3113 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
3114 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
3116 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3118 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
3119 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
3120 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
3121 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
3122 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
3123 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
3124 replaced by anonymous access type.
3125 (pthread_sigmask): Now take an access sigset_t
3127 * s-osinte-hpux.ads: Ditto.
3128 (pthread_mutex_t, pthread_cond_t): Update definitions to support
3129 properly 32 and 64 bit ABIs.
3131 2006-02-13 Pascal Obry <obry@adacore.com>
3133 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
3134 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
3135 s-taprop-linux.adb, s-taprop-solaris.adb,
3136 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
3137 adjustement is already done when calling this routine.
3139 2006-02-13 Pascal Obry <obry@adacore.com>
3141 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
3142 table to take advantage of the 16 priority levels available on Windows
3143 2000 and XP. On NT4 there are only 7 priority levels, this is properly
3144 supported by this new mapping.
3146 2006-02-13 Nicolas Setton <setton@adacore.com>
3148 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
3149 (get_encoding): New subprogram. Extracts the encodings from an encoded
3152 2006-02-13 Pascal Obry <obry@adacore.com>
3153 Nicolas Roche <roche@adacore.com>
3154 Arnaud Charlet <charlet@adacore.com>
3156 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
3158 (__gnat_try_lock): Add unicode support by using a specific section on
3160 (__gnat_get_current_dir): Idem.
3161 (__gnat_open_read): Idem.
3162 (__gnat_open_rw): Idem.
3163 (__gnat_open_create): Idem.
3164 (__gnat_create_output_file): Idem.
3165 (__gnat_open_append): Idem.
3166 (__gnat_open_new): Idem.
3167 (__gnat_file_time_name): Idem.
3168 (__gnat_set_file_time_name): Idem.
3169 (__gnat_stat): Idem.
3170 (win32_no_block_spawn): Idem.
3171 (__gnat_locate_exec_on_path): Idem.
3172 (__gnat_opendir): New routine.
3173 (__gnat_closedir): Idem.
3174 (__gnat_readdir): Add new parameter length (pointer to int). Update
3175 implementation to use it and add specific Win32 code for Unicode
3177 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
3178 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
3179 (convert_addresses): Do not define this dummy routine on VMS.
3181 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
3182 runtime Unicode support will be activated.
3183 (S2WS): String to Wide-String conversion. This version just copy a
3184 string in non Unicode version.
3185 (WS2S): Wide-String to String conversion. This version just copy a
3186 string in non Unicode version.
3188 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
3189 (Open): Now import __gnat_opendir from adaint.c.
3190 (Read): Change the implementation to support unicode characters. It is
3191 not possible to use strlen() on Windows as this version supports only
3192 standard ASCII characters. So the length of the directory entry is now
3193 returned from the imported __gnat_readdir routine.
3194 Update copyright notice.
3196 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
3197 (opendir): Moved to adaint.c.
3199 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
3200 (Get_Directory): Fix wrong indexing.
3201 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
3202 __gnat_getenv from env.c
3203 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
3206 * env.h, env.c: New file.
3208 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
3209 adaint.c by __gnat_getenv from env.c
3211 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
3212 adaint.c by __gnat_getenv from env.c
3214 * Make-lang.in: Add env.o in the list of C object needed by gnat1
3216 Update dependencies.
3218 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3219 Olivier Hainque <hainque@adacore.com>
3220 Eric Botcazou <ebotcazou@adacore.com>
3222 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
3224 * gigi.h (value_factor_p): Add prototype and description, now public.
3226 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
3227 promotion for field with rep clause if the associated size was proven
3229 Expand comments describing attempts to use a packable type.
3230 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
3231 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
3232 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
3233 necessary since these are not different types and pointers may
3234 actually designate any subtype in this hierarchy.
3235 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
3236 discriminants but put them into record only if not Unchecked_Union;
3237 pass flag to components_to_record showing Unchecked_Union.
3238 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
3239 components before variants; don't set TYPE_UNCHECKED_UNION_P.
3240 (components_to_record): New argument UNCHECKED_UNION.
3241 Remove special case code for Unchecked_Union and instead use main code
3245 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
3246 variable with the expression being built, only its inner field.
3248 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
3249 emit_sequence_entry_statements.
3250 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
3251 (establish_gnat_vms_condition_handler): Move before
3252 Subprogram_Body_to_gnu.
3253 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
3254 for a subprogram if it has a foreign convention or is exported.
3255 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
3256 substituted for a CONST_DECL.
3257 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
3258 Etype to assoc_to_constructor.
3259 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
3260 discriminants of Unchecked_Union.
3261 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
3262 don't need cluttering preprocessor directives.
3263 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
3264 condition handler as current in the compiled function.
3265 (body_with_handlers_p): New function. Tell whether a given sequence of
3266 statements node is attached to a package or subprogram body and involves
3267 exception handlers possibly nested within inner block statements.
3268 (emit_sequence_entry_statements): New function, to emit special
3269 statements on entry of sequences when necessary. Establish GNAT
3270 condition handler in the proper cases for VMS.
3271 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
3272 emit_sequence_entry_statements.
3274 * utils2.c (find_common_type): If both input types are BLKmode and
3275 have a constant size, use the smaller one.
3276 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
3279 * utils.c (value_factor_p): Make public, to allow uses from other gigi
3281 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
3282 (convert, case UNION_TYPE): Remove special treatment for unchecked
3286 (update_pointer_to): Update variants of pointer types to unconstrained
3287 arrays by attaching the list of fields of the main variant.
3289 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3290 Robert Dewar <dewar@adacore.com>
3292 * a-exexpr.adb, a-exexpr-gcc.adb
3293 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
3294 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
3295 Remove code unused for exception propagation for the compiler itself
3296 from a-except.adb and update to still share separate packages.
3298 * a-except.ads, a-except.adb: Ditto.
3299 Add comments that this version is now used only by the compiler and
3300 other basic tools. The full version that includes the Ada 2005 stuff
3301 is in separate files a-except-2005.ads/adb. The reason is that we do
3302 not want to cause bootstrap problems with compilers not recognizing
3304 Add exception reason code PE_Implicit_Return
3305 Add new exception reason code (Null Exception_Id)
3307 * a-except-2005.adb, a-except-2005.ads: New files.
3309 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
3311 * s-wchcon.adb: New file.
3313 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
3314 (traceback.o deps): Likewise.
3315 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
3316 Activate build of GMEM instrumentation library on VMS targets.
3317 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
3318 Use a-except-2005.ads/adb for all run-time library builds unless
3319 specified otherwise.
3320 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
3321 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
3322 Use s-parame.adb on all native platforms.
3323 Use s-parame-vxworks.adb on all vxworks platforms.
3324 Add env.c env.h in LIBGNAT_SRCS
3325 Add env.o in LIBGNAT_OBJS
3326 (GNATMAKE_OBJS): Remove ctrl_c.o object.
3327 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
3328 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
3329 supports VxWorks 6 RTPs.
3330 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
3331 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
3333 * types.h, types.ads (Terminate_Program): New exception
3334 Add comment on modifying multiple versions of a-except.adb when the
3335 table of exception reasons is modified.
3336 Add exception reason code PE_Implicit_Return
3337 Add new exception reason code (Null Exception_Id)
3339 * clean.adb (Initialize): Get the target parameters before checking
3340 if target is OpenVMS. Move the OpenVMS specific code here from package
3341 body elaboration code.
3343 2006-02-13 Thomas Quinot <quinot@adacore.com>
3344 Vincent Celier <celier@adacore.com>
3345 Robert Dewar <dewar@adacore.com>
3347 * ali-util.adb (Get_File_Checksum): Update to account for change in
3348 profile of Initialize_Scanner.
3350 * gprep.adb (Gnatprep): Update to account for change in profile of
3352 (Process_One_File): Same.
3354 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
3355 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
3356 that behaviour using the new Unit information recorded in the source
3357 files table, rather than going through all units every time.
3358 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
3359 (Get_Source_Unit): Same.
3361 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
3362 change in profile of Initialize_Scanner.
3363 (Prepare_To_Preprocess): Same.
3365 * lib.ads: Fix typo in comment (templace -> template).
3367 * prj-part.adb (Parse_Single_Project): Update to account for change in
3368 profile of Initialize_Scanner.
3370 * scn.adb (Initialize_Scanner): Account for change in profile of
3371 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
3372 Also record the association of the given Source_File_Index to the
3373 corresponding Unit_Number_Type.
3375 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
3377 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
3378 Remove Unit formal for generic scanner: this formal
3379 is only relevant to Scn (the scanner instance used to parse Ada source
3380 files), not to other instances. Update comment accordingly.
3381 (Scan): Use new function Snames.Is_Keyword_Name.
3383 * sinfo-cn.adb: Fix typo in comment.
3385 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
3388 * sinput.ads (Source_File_Record): New component Unit, used to capture
3389 the unit identifier (if any) associated to a source file.
3391 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
3392 Unit in Source_File_Record.
3394 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
3395 in profile of Initialize_Scanner.
3397 * scans.adb (Initialize_Ada_Keywords): New procedure
3399 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
3400 Ada keywords in the Namet table, without the need to call
3403 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
3404 (Is_Keyword_Name): New function
3406 * snames.ads: Add subtype Configuration_Pragma_Names
3407 Add pragma Ada_2005 (synonym for Ada_05)
3408 (Is_Keyword_Name): New function
3410 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
3412 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3414 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
3417 * a-stwima.adb (To_Set): Add extra check when N = 0.
3419 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
3421 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3423 * s-parame-mingw.adb, s-parame-linux.adb,
3424 s-parame-solaris.adb: Removed, replaced by s-parame.adb
3426 * s-parame-vxworks.ads: Fix typo.
3428 * s-parame-vxworks.adb: New file.
3430 * s-parame.adb: Version now used by all native platforms.
3431 (Default_Stack_Size): Use 2 megs for default stack size and use
3432 __gl_default_stack_size when available.
3433 (Minimum_Stack_Size): Use 12K.
3435 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
3436 (Create_Task): Refine implementation taking advantage of the XP stack
3437 size support. On XP, we now create the thread using the flag
3438 STACK_SIZE_PARAM_IS_A_RESERVATION.
3440 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
3442 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
3443 XP and 0 on older Windows versions.
3445 * interfac-vms.ads: Removed, no longer used.
3447 2006-02-13 Matthew Heaney <heaney@adacore.com>
3449 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
3450 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
3451 a-cohase.adb: All explicit raise statements now include an exception
3454 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
3455 (Update_Element_Preserving_Key): renamed op to just Update_Element.
3456 Explicit raise statements now include an exception message
3458 * a-cihase.ads, a-cohase.ads: Removed comment.
3460 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
3461 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
3462 a-szbzha.adb, a-szfzha.ads: New files.
3464 2006-02-13 Matthew Heaney <heaney@adacore.com>
3466 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
3469 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
3471 * lang.opt: Wvariadic-macros: New option.
3472 Wold-style-definition: Likewise.
3473 Wmissing-format-attribute: Likewise.
3475 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
3476 -Wold-style-definition and -Wmissing-format-attribute.
3478 2006-02-13 Robert Dewar <dewar@adacore.com>
3480 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
3482 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
3484 2006-02-13 Nicolas Roche <roche@adacore.com>
3486 * a-envvar.adb, a-envvar.ads: New files.
3488 2006-02-13 Douglas Rupp <rupp@adacore.com>
3490 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
3492 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
3494 2006-02-13 Pat Rogers <rogers@adacore.com>
3496 * a-rttiev.adb, a-rttiev.ads: New files.
3498 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
3500 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
3501 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
3503 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
3505 2006-02-13 Robert Dewar <dewar@adacore.com>
3507 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
3508 sem_case.adb: Minor code reorganization (not Present should be No)
3510 2006-02-13 Geert Bosch <bosch@adacore.com>
3511 Gary Dismukes <dismukes@adacore.com>
3513 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
3514 0, since the lower bound of the actual string may be greater than one.
3517 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
3518 layout is requested.
3520 2006-02-13 Vincent Celier <celier@adacore.com>
3522 * back_end.adb (Scan_Compiler_Arguments): Check if
3523 Search_Directory_Present is True and, if it is, add the argument in
3524 the source search directory path.
3526 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
3527 Search_Directory_Present to True.
3529 2006-02-13 Joel Brobecker <brobecke@adacore.com>
3531 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
3532 volatile, to tell the compiler to preserve this variable at any level
3534 (Gen_Versions_Ada): Temporarily work around codegen bug.
3536 2006-02-13 Vincent Celier <celier@adacore.com>
3538 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
3539 gcc to link with option -shared-libgcc.
3540 (Gnatlink): Remove duplicate switches -shared-libgcc
3542 2006-02-13 Robert Dewar <dewar@adacore.com>
3544 * gnatvsn.ads (Current_Year): New constant, used to easily update
3545 copyright on all GNAT tools.
3547 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
3550 2006-02-13 Robert Dewar <dewar@adacore.com>
3552 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
3553 after hyphen (small aesthetic change useful for a range of numbers
3555 Suppress range checks for a couple of assignments which otherwise
3556 cause validity checks with validity checking turned on.
3558 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
3559 Improvement in error message for object.
3560 (Rep_Item_Too_Late): Remove '!' in warning message.
3562 2006-02-13 Robert Dewar <dewar@adacore.com>
3563 Eric Botcazou <ebotcazou@adacore.com>
3565 * err_vars.ads: Suppress range checks for a couple of assignments
3566 which otherwise cause validity checks with validity checking turned on.
3569 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
3570 Make message unconditional if it is a warning.
3571 (Error_Msg_NEL): Always output warning messages.
3572 Suppress range checks for a couple of assignments which otherwise
3573 cause validity checks with validity checking turned on.
3575 * errout.ads (Message Insertion Characters): Document that '!' is
3576 implied by '?' in error messages.
3578 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
3579 (Gnat1drv): Use a goto to end of main subprogram instead of
3580 Exit_Program (E_Success) so that finalization can occur normally.
3582 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
3584 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
3587 2006-02-13 Vincent Celier <celier@adacore.com>
3589 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
3590 Unchecked_Conversion functions.
3591 (Modification_Time): Use direct conversion of OS_Time to Calendar time
3592 when OpenVMS returns False.
3594 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
3595 a-dirval.adb (OpenVMS): New Boolean function
3597 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3598 Thomas Quinot <quinot@adacore.com>
3600 * checks.adb (Build_Discriminant_Checks): If the expression being
3601 checks is an aggregate retrieve the values of its discriminants to
3602 generate the check, rather than creating a temporary and a reference
3604 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
3605 (Install_Null_Excluding_Check): Ditto
3606 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
3607 not for the renamed object, so that the actual itype is attached in the
3610 2006-02-13 Robert Dewar <dewar@adacore.com>
3611 Vincent Celier <celier@adacore.com>
3613 * debug.adb: Eliminate numeric switches for binder/gnatmake
3615 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
3616 switches for the compiler.
3617 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
3618 (Scan_Make_Switches): When failing with an illegal switch, output an
3619 error message with the full switch.
3620 Eliminate numeric switches for binder/gnatmake
3622 * switch.ads, switch.adb (Bad_Switch): New procedure
3624 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
3625 Remove 0-9 as debug flag character possibilities
3626 -d is now controlling the primary stack size when its value is a
3627 positive. Also add checks against invalid values, and support for kb,
3628 mb. Ditto for -D switch.
3630 2006-02-13 Robert Dewar <dewar@adacore.com>
3631 Serguei Rybin <rybin@adacore.com>
3633 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
3634 save/restore routines.
3635 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
3636 were not always properly handled previously.
3637 Since we are changing the tree format anyway, also get rid of the
3638 junk obsolete Immediate_Errors flag.
3639 (Tree_Read): Change the way of reading Tree_Version_String - now we
3640 read the version string from the tree even if its length is not the
3641 same as the length of the version string computed from Gnatvsn.
3642 (Search_Directory_Present): New Boolean flag for the compiler.
3643 Define Tree_Version_String as a dynamic string.
3644 (Default_Stack_Size): new variable, used to handle switch -d.
3647 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
3649 Add pragma Ada_2005 (synonym for Ada_05)
3650 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
3651 were not always properly handled previously.
3653 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
3654 explicit Ada_95 to Ada_2005.
3656 2006-02-13 Javier Miranda <miranda@adacore.com>
3657 Robert Dewar <dewar@adacore.com>
3658 Ed Schonberg <schonberg@adacore.com>
3660 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
3661 against errors in the source program: a private types for which the
3662 corresponding full type declaration is missing and pragma CPP_Virtual
3664 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
3665 (Is_Known_Null): New flag
3666 (Has_Pragma_Pure): New flag
3667 (No_Return): Present in all entities, set only for procedures
3668 (Is_Limited_Type): A type whose ancestor is an interface is limited if
3669 explicitly declared limited.
3670 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
3671 entities. Only used for component marked Is_Tag. If present it stores
3672 the Offset_To_Top function used to provide this value in tagged types
3673 whose ancestor has discriminants.
3675 * exp_ch2.adb: Update status of new Is_Known_Null flag
3677 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
3679 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
3680 the categorization sense if Is_Pure was set by pragma Pure_Function.
3682 2006-02-13 Quentin Ochem <ochem@adacore.com>
3683 Olivier Hainque <hainque@adacore.com>
3685 * bindusg.adb: Updated documentation for -d and -D switches.
3687 * raise.h (__gnat_set_globals): added new parameter for
3690 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
3691 (__gnat_handle_vms_condition): Adjust context before raise.
3692 (__gnat_install_handler): Restore the global vector setup for GCC
3693 versions before 3.4, as the frame based circtuitry is not available
3695 (__gnat_set_globals): added a parameter default_stack_size
3696 (__gl_default_stack_size): new variable.
3698 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3700 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
3701 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
3702 does not exist in the Ada RM.
3703 (Compatible_Int_Bounds): Determine whether two integer range bounds
3704 are of equal length and have the same start and end values.
3705 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
3706 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
3707 aggregate when it is part of an object declaration.
3708 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
3709 constrains discriminants of its parent, add explicitly the discriminant
3710 constraints of the ancestor by retrieving them from the
3711 stored_constraint of the parent.
3713 2006-02-13 Robert Dewar <dewar@adacore.com>
3715 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
3716 attribute Mechanism_Code is applied to renamed subprogram, modify
3717 prefix to point to base subprogram.
3718 Max/Min attributes now violate Restriction No_Implicit_Conditionals
3720 * sinfo.ads: Document that Mechanism_Code cannot be applied to
3721 renamed subprograms so that the front-end must replace the prefix
3724 2006-02-13 Javier Miranda <miranda@adacore.com>
3725 Gary Dismukes <dismukes@adacore.com>
3727 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
3728 availability of RE_Interface_Tag.
3729 (Build_Initialization_Call): Fix wrong access to the discriminant value.
3730 (Freeze_Record_Type): Do not generate the tables associated with
3731 timed and conditional dispatching calls through synchronized
3732 interfaces if compiling under No_Dispatching_Calls restriction.
3733 When compiling for Ada 2005, for a nonabstract
3734 type with a null extension, call Make_Controlling_Function_Wrappers
3735 and insert the wrapper function declarations and bodies (the latter
3736 being appended as freeze actions).
3737 (Predefined_Primitive_Bodies): Do not generate the bodies of the
3738 predefined primitives associated with timed and conditional
3739 dispatching calls through synchronized interfaces if we are
3740 compiling under No_Dispatching_Calls.
3741 (Build_Init_Procedure): Use RTE_Available to check if a run-time
3742 service is available before generating a call.
3743 (Make_Controlling_Function_Wrappers): New procedure.
3744 (Expand_N_Full_Type_Declaration): Create a class-wide master for
3745 access-to-limited-interfaces because they can be used to reference
3746 tasks that implement such limited interface.
3747 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
3748 procedure spec and body of the Offset_To_Top function that is generated
3749 when the parent of a type with discriminants has secondary dispatch
3751 (Init_Secondary_Tags): Handle the case in which the parent of the type
3752 containing secondary dispatch tables has discriminants to generate the
3753 correct arguments to call Set_Offset_To_Top.
3754 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
3756 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
3757 Add Wide_[Wide_]Expanded_Name.
3758 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
3759 the same functionality of Get_Prim_Op_Address but applied to predefined
3760 primitive operations because the pointers to the predefined primitives
3761 are now saved in a separate table.
3762 (Parent_Size): Modified to get access to the separate table of primitive
3763 operations or the parent type.
3764 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
3765 functionality of Set_Prim_Op_Address but applied to predefined primitive
3767 (Set_Signature): New subprogram used to store the signature of a DT.
3768 (Displace): If the Offset_To_Top value is not static then call the
3769 function generated by the expander to get such value; otherwise use
3770 the value stored in the table of interfaces.
3771 (Offset_To_Top): The type of the actual has been changed to Address to
3772 give the correct support to tagged types with discriminants. In this
3773 case this value is stored just immediately after the tag field.
3774 (Set_Offset_To_Top): Two new formals have been added to indicate if the
3775 offset_to_top value is static and hence pass this value to the run-time
3776 to store it in the table of interfaces, or else if this value is dynamic
3777 and then pass to the run-time the address of a function that is
3778 generated by the expander to provide this value for each object of the
3781 * rtsfind.ads (Default_Prin_Op_Count): Removed.
3782 (Default_Prim_Op_Count): New entity
3783 (Get_Predefined_Prim_Op_Address): New entity
3784 (Set_Predefined_Prim_Op_Address): New entity
3785 (RE_Set_Signature): New entity
3787 2006-02-13 Thomas Quinot <quinot@adacore.com>
3788 Ed Schonberg <schonberg@adacore.com>
3790 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
3791 Make_Adjust_Call done for a newly-allocated object.
3793 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
3794 in a subprogram are wrapped in a cleanup block, indicate that the
3795 subprogram contains an inner block with an exception handler.
3796 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
3797 Adjust call is for a newly-allocated object. In that case we must not
3798 assume that the finalization list chain pointers are correct (since they
3799 come from a bit-for-bit copy of the original object's pointers) so if
3800 the attach level would otherwise be zero (no change), we set it to 4
3801 instead to cause the pointers to be reset to null.
3803 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
3804 reset chain pointers to null.
3806 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3808 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
3809 string, and the context requires a loop for the assignment (e.g.
3810 because the left-hand side is packed), generate a unique name for the
3811 temporary that holds the string, to prevent spurious name clashes.
3813 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3814 Javier Miranda <miranda@adacore.com>
3815 Robert Dewar <dewar@adacore.com>
3816 Gary Dismukes <dismukes@adacore.com>
3818 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
3819 return unconstrained arrays.
3821 (Expand_Call): An indirect call through an access parameter of a
3822 protected operation is not a protected call.
3823 Add circuit to raise CE in Ada 2005 mode following call
3825 (Register_DT_Entry): Do nothing if
3826 the run-time does not give support to abstract interfaces.
3827 (Freeze_Subprogram): In case of dispatching operations, do not generate
3828 code to register the operation in the dispatch table if the source
3829 is compiled with No_Dispatching_Calls.
3830 (Register_Predefined_DT_Entry): Generate code that calls the new
3831 run-time subprogram Set_Predefined_Prim_Op_Address instead of
3832 Set_Prim_Op_Address.
3834 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
3835 on array assignments if the right-hand side is a function call that has
3836 been inlined. Check is performed on the assignment in the block.
3837 (Process_Bounds): If bounds and range are overloaded, apply preference
3838 rule for root operations to disambiguate, and diagnose true ambiguity.
3839 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
3840 a tag-indeterminate right-hand side even when Expander_Active is True.
3841 Needed to ensure that dispatching calls to T'Input are allowed and
3842 get the tag of the target class-wide object.
3844 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
3845 an inherited primitive operation that already overrides several
3846 abstract interface primitives. For transitivity, the new entity must
3847 also override all the abstract interface primitives covered by the
3848 inherited overriden primitive.
3849 Emit warning if new entity differs from homograph in same scope only in
3850 that one has an access parameter and the other one has a parameter of
3851 a general access type with the same designated type, at the same
3852 position in the signature.
3853 (Make_Inequality_Operator): Use source locations of parameters and
3854 subtype marks from corresponding equality operator when creating the
3855 tree structure for the implicit declaration of "/=". This does not
3856 change anything in behaviour except that the decoration of the
3857 components of the subtree created for "/=" allows ASIS to get the
3858 string images of the corresponding identifiers.
3859 (Analyze_Return_Statement): Remove '!' in warning message.
3860 (Check_Statement_Sequence): Likewise.
3861 (Analyze_Subprogram_Body): For an access parameter whose designated type
3862 is an incomplete type imported through a limited_with clause, use the
3863 type of the corresponding formal in the body.
3864 (Check_Returns): Implicit return in No_Return procedure now raises
3865 Program_Error with a compile time warning, instead of beging illegal.
3866 (Has_Single_Return): Function returning unconstrained type cannot be
3867 inlined if expression in unique return statement is not an identifier.
3868 (Build_Body_To_Inline): It is possible to inline a function call that
3869 returns an unconstrained type if all return statements in the function
3870 return the same local variable. Subsidiary procedure Has_Single_Return
3871 verifies that the body conforms to this restriction.
3873 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
3874 same type, and one of them is of an anonymous access type, convert
3875 the other operand to it, so that this is a valid binary operation for
3877 (Resolve_Type_Conversion): Handle subtypes of protected types and
3878 task types when accessing to the corresponding record type.
3879 (Resolve_Allocator): Add '\' in 2-line warning message.
3880 Remove '!' in warning message.
3881 (Resolve_Call): Add '\' in 2-line warning message.
3882 (Valid_Conversion): Likewise.
3883 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
3884 resulting type may be an access type with an implicit dereference.
3885 Obtain the proper component from the designated type.
3886 (Make_Call_Into_Operator): Handle properly a call to predefined equality
3887 given by an expanded name with prefix Standard, when the operands are
3888 of an anonymous access type.
3889 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
3890 Explicit_Dereference and Resolve_Selected_Component, to verify that the
3891 prefix of the expression is not of an incomplete type. Allows full
3892 diagnoses of all semantic errors.
3893 (Resolve_Actuals): If the actual is an allocator whose directly
3894 designated type is a class-wide interface we build an anonymous
3895 access type to use it as the type of the allocator. Later, when
3896 the subprogram call is expanded, if the interface has a secondary
3897 dispatch table the expander will add a type conversion to force
3898 the displacement of the pointer.
3899 (Resolve_Call): If a function that returns an unconstrained type is
3900 marked Inlined_Always and inlined, the call will be inlined and does
3901 not require the creation of a transient scope.
3902 (Check_Direct_Boolean_Op): Removed
3903 (Resolve_Comparison_Op): Remove call to above
3904 (Resolve_Equality_Op): Remove call to above
3905 (Resolve_Logical_Op): Inline above, since this is only call.
3906 (Valid_Conversion): Handle properly conversions between arrays of
3907 convertible anonymous access types.
3910 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
3911 the literal in an unchecked conversion, because GCC 4.x needs a static
3912 value for a string bound.
3914 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3915 Hristian Kirtchev <kirtchev@adacore.com>
3917 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
3918 components of the corresponding record, take into account component
3919 definitions that are access definitions.
3920 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
3921 procedure is not considered a dispatching call and will be expanded
3924 2006-02-13 Javier Miranda <miranda@adacore.com>
3926 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
3927 controlling argument of the dispatching call is an abstract interface
3928 class-wide type then we use it directly.
3929 Check No_Dispatching_Calls restriction.
3930 (Default_Prim_Op_Position): Remove the code that looks for the last
3931 entity in the list of aliased subprograms. This code was wrong in
3933 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
3934 when the source is compiled with the No_Dispatching_Calls restriction.
3935 (Init_Predefined_Interface_Primitives): No need to inherit primitives
3936 if we are compiling with restriction No_Dispatching_Calls.
3937 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
3938 subprograms if we are compiling under No_Dispatching_Calls restriction.
3939 (Make_DT): Generate a dispatch table with a single dummy entry if
3940 we are compiling with the No_Dispatching_Calls restriction. In
3941 addition, in this case we don't generate code that calls to the
3942 following run-time subprograms: Set_Type_Kind, Inherit_DT.
3943 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
3944 of this subprogram if compiling with the No_Dispatching_Calls
3946 (Expand_Type_Conversion): Instead of using the actual parameter,
3947 the argument passed as parameter to the conversion function was
3948 erroneously referenced by the expander.
3949 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
3950 Set_Predefined_Primitive_Op_Address and Set_Signature.
3951 (Expand_Dispatching_Call): Generate call to
3952 Get_Predefined_Prim_Op_Address for predefined primitives.
3953 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
3954 predefined primitives.
3955 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
3956 primitives we reserve one dummy entry to ensure that the tag does not
3957 point to some memory that is associated with some other object. In
3958 addition, remove all the old code that generated the assignments
3959 associated with the signature of the dispatch table and replace them
3960 by a call to the new subprogram Set_Signature.
3961 (Set_All_DT_Position): Change the algorithm because now we have a
3962 separate dispatch table associated with predefined primitive operations.
3963 (Expand_Interface_Conversion): In case of non-static offset_to_top
3964 add explicit dereference to get access to the object after the call
3965 to displace the pointer to the object.
3966 (Expand_Interface_Thunk): Modify the generation of the actual used
3967 in the calls to the run-time function Offset_To_Top to fulfil its
3969 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
3971 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3973 * exp_dist.adb (Copy_Specification): For access parameters, copy
3974 Null_Exclusion flag, which will have been set for stream subprograms
3977 2006-02-13 Pascal Obry <obry@adacore.com>
3979 * expect.c (__gnat_expect_portable_execvp): New implementation. The
3980 previous implementation was using the C runtime spawnve routine but
3981 the corresponding wait was using directly the Win32 API. This was
3982 causing some times a lock when waiting for an event using
3983 WaitForSingleObject in __gnat_waitpid. This new implementation uses
3984 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
3985 API fixes this problem.
3987 2006-02-13 Robert Dewar <dewar@adacore.com>
3989 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
3992 2006-02-13 Thomas Quinot <quinot@adacore.com>
3994 * exp_pakd.ads: Fix typos in comments.
3996 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
3997 array reference that is an explicit dereference, mark the converted
3998 (packed) array reference as analyzed to prevent a forthcoming
3999 reanalysis from resetting its type to the original (non-packed) array
4002 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4003 Javier Miranda <miranda@adacore.com>
4004 Eric Botcazou <ebotcazou@adacore.com>
4006 * exp_util.ads, exp_util.adb (Find_Prim_Op,
4007 Is_Predefined_Primitive_Operation): When
4008 searching for the predefined equality operator, verify that operands
4010 (Is_Predefined_Dispatching_Operation): Remove the code that looks
4011 for the last entity in the list of aliased subprograms. This code
4012 was wrong in case of renamings.
4013 (Set_Renamed_Subprogram): New procedure
4014 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
4015 Exp_Type constant computed when entering this subprogram.
4016 (Known_Null): New function
4017 (OK_To_Do_Constant_Replacement): New function
4018 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
4019 (Side_Effect_Free): An attribute reference 'Input is not free of
4020 side effect, unlike other attributes that are functions. (from code
4022 (Remove_Side_Effects): Expressions that involve packed arrays or records
4023 are copied at the point of reference, and therefore must be marked as
4024 renamings of objects.
4025 (Is_Predefined_Dispatching_Operation): Return false if the operation is
4026 not a dispatching operation.
4029 (Remove_Side_Effects): Lift enclosing type conversion nodes for
4030 elementary types in all cases.
4032 2006-02-13 Javier Miranda <miranda@adacore.com>
4034 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
4035 task types when accessing to the corresponding record type.
4036 Remove '!' in warning message.
4038 2006-02-13 Olivier Hainque <hainque@adacore.com>
4040 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
4041 to avoid useless and space inefficient overalignments on targets where
4042 Max_Alignment is larger than 16.
4044 2006-02-13 Pascal Obry <obry@adacore.com>
4046 * g-catiio.adb (Sec_Number): New type used to compute the number of
4047 seconds since 1-1-1970.
4048 (Image) [Natural]: The parameter was an Integer, as we can't deal with
4049 negative numbers (years, months...) it is better to have a Natural here.
4051 (Image) [Number]: Change parameter from Long_Integer to Number.
4052 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
4053 overflow for dates past year 2038.
4055 2006-02-13 Matthew Heaney <heaney@adacore.com>
4057 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
4060 2006-02-13 Arnaud Charlet <charlet@adacore.com>
4062 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
4064 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
4065 finalization can occur normally.
4067 2006-02-13 Vincent Celier <celier@adacore.com>
4069 * gnatcmd.adb (Rules_Switches): New table
4070 (Add_To_Rules_Switches): New procedure
4071 (GNATCmd): For command CHECK, put all options following "-rules" in the
4072 Rules_Switches table. Append these -rules switches after the -cargs
4075 2006-02-13 Robert Dewar <dewar@adacore.com>
4077 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
4078 These two cases were generating incorrect output, and if this unit
4079 was built with checks on, generated a discriminant mismatch constraint
4082 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4083 Robert Dewar <dewar@adacore.com>
4085 * lib-xref.adb (Get_Type_Reference): For a private type whose full
4086 view is an array type, indicate the component type as well, for
4087 navigation purposes.
4088 (Generate_Reference): Don't consider array ref on LHS to be a case
4089 of violating pragma Unreferenced.
4090 Do not give Ada 2005 warning except on real reference.
4092 2006-02-13 Vincent Celier <celier@adacore.com>
4094 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
4095 main source, add switch -mdebug-main=_ada_ so that the executable can
4096 be debugged by the standard VMS debugger.
4097 (Gnatmake): Set No_Main_Subprogram to True when there is no main
4098 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
4099 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
4100 of the last source, as the binding and linking phases are never
4102 Set all executable obsolete when rebuilding a library.
4104 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
4107 2006-02-13 Javier Miranda <miranda@adacore.com>
4110 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
4111 code to improve the error message reported when the program has
4112 declarations of abstract interface types and it is not compiled with
4114 (P_Access_Definition): Reorganize the code to improve the error
4115 message reported when the new Ada 2005 syntax for anonymous
4116 access types is used and the program is not compiled with the
4119 2006-02-13 Robert Dewar <dewar@adacore.com>
4121 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
4122 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
4125 2006-02-13 Javier Miranda <miranda@adacore.com>
4127 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
4128 against source containing syntax errors.
4130 2006-02-13 Vincent Celier <celier@adacore.com>
4132 * prj.adb (Reset): Initialize the first element of table Namings with
4133 the standard naming data.
4135 2006-02-13 Vincent Celier <celier@adacore.com>
4137 * prj.ads (Error_Warning): New enumeration type
4139 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
4140 unknown, use the location of the project to report the error.
4141 (When_No_Sources): New global variable
4142 (Report_No_Ada_Sources): New procedure
4143 (Check): New parameter When_No_Sources. Set value of global variable
4145 (Find_Sources): Call Report_No_Ada_Sources when appropriate
4146 (Get_Sources_From_File): Ditto
4147 (Warn_If_Not_Sources): Better warning messages indicating the unit name
4150 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
4151 Call Prj.Proc.Process with parameter When_No_Sources.
4153 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
4154 Call Recursive_Check with parameter When_No_Sources.
4155 (Recursive_Check): New parameter When_No_Sources. Call itself and
4156 Prj.Nmsc.Check with parameter When_No_Sources.
4157 (Process): New parameter When_No_Sources. Call Check with parameter
4159 (Copy_Package_Declarations): New procedure to copy renamed parameters
4160 and setting the location of the declared attributes to the location
4161 of the renamed package.
4162 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
4165 2006-02-13 Vincent Celier <celier@adacore.com>
4167 * prj-makr.adb (Make): Preserve the comments from the original project
4169 When removing nodes (attributes Source_Dirs, Source_Files,
4170 Source_List_File and package Naming), save the comments and attach the
4171 saved comments to the newly created nodes.
4172 Do not add a with clause for the naming package if one already exists.
4174 2006-02-13 Javier Miranda <miranda@adacore.com>
4175 Gary Dismukes <dismukes@adacore.com>
4176 Robert Dewar <dewar@adacore.com>
4178 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
4180 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
4181 aliased entities to look for the overriden abstract interface
4183 (Is_Interface_Subprogram): Complete documentation.
4184 (Check_Dispatching_Operation): Do not generate code to register the
4185 operation in the dispatch table if the source is compiled with
4186 restriction No_Dispatching_Calls.
4187 (Override_Dispatching_Operation): Check for illegal attempt to override
4188 No_Return procedure with procedure that is not No_Return
4189 (Check_Dispatching_Call): Suppress the check for an abstract operation
4190 when the original node of an actual is a tag-indeterminate attribute
4191 call, since the attribute, which must be 'Input, can never be abstract.
4192 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
4193 call to the Input attribute (even when rewritten).
4194 (Propagate_Tag): Augment comment to indicate the possibility of a call
4195 to an Input attribute.
4197 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
4198 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
4200 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
4201 No_Wide_Characters is no longer partition-wide
4202 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
4205 2006-02-13 Douglas Rupp <rupp@adacore.com>
4207 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
4209 2006-02-13 Javier Miranda <miranda@adacore.com>
4211 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
4212 handles default-initialized components to keep separate the management
4213 of this feature but also avoid the unrequired resolution and
4214 expansion of components that do not have partially initialized
4216 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
4217 (Check_Bounds): Likewise.
4218 (Check_Length): Likewise.
4220 2006-02-13 Javier Miranda <miranda@adacore.com>
4221 Ed Schonberg <schonberg@adacore.com>
4223 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
4224 abstract interface type call analyze_and_resolve to expand the type
4225 conversion into the corresponding displacement of the
4226 reference to the base of the object.
4227 (Eval_Attribute, case Width): For systems where IEEE extended precision
4228 is supported, the maximum exponent occupies 4 decimal digits.
4229 (Accessibility_Message): Add '\' in 2-line warning message.
4230 (Resolve_Attribute): Likewise.
4231 (case Attribute_Access): Significantly revise checks
4232 for illegal access-to-subprogram Access attributes to properly enforce
4233 the rules of 3.10.2(32/2).
4234 Diagnose use of current instance with an illegal attribute.
4236 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
4238 (Enclosing_Generic_Unit): New function to return a node's innermost
4239 enclosing generic declaration node.
4240 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
4241 (Type_Access_Level): The accessibility level of anonymous acccess types
4242 associated with discriminants is that of the current instance of the
4243 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
4244 (Compile_Time_Constraint_Error): Handle case of conditional expression.
4245 (Kill_Current_Values_For_Entity): New function
4246 (Enter_Name): Change formal type to Entity_Id
4248 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
4249 Ed Schonberg <schonberg@adacore.com>
4250 Gary Dismukes <dismukes@adacore.com>
4252 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
4253 Analyze_Compilation_Unit.
4254 Detect and warn on redundant with clauses detected in a package spec
4255 and/or body when -gnatwr is used.
4256 (Analyze_Context): Analyze config pragmas before other items
4257 (Install_Context_Items): Don't analyze config pragmas here
4258 (Install_Limited_Withed_Unit): Set limited entity of package in
4259 with_clause so that cross-reference information or warning messages on
4260 unused packages can be properly generated
4261 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
4262 has Error_Posted set. Prevent infinite loops in illegal programs.
4263 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
4264 to the point of the error test requiring the current unit to be private.
4265 This ensures that private with clauses are not exempted from the basic
4266 checking for being a descendant of the same library unit parent as a
4267 withed private descendant unit.
4268 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
4269 handle private with clauses properly, as well as to account for cases
4270 where the withed unit is a public descendant of a private ancestor
4271 (in which case the current unit must be a descendant of the private
4272 ancestor's parent). The spec comments were updated accordingly. Also,
4273 the old error message in this subprogram was replaced with error
4274 messages that mirror the errors tested and reported by
4275 Check_Private_Child_Unit.
4276 Parameter and variable names improved for readability.
4277 (Install_Limited_Context_Clauses): Remove test for a withed unit being
4278 private as the precondition for calling
4279 Check_Private_Limited_Withed_Unit since that subprogram has been
4280 revised to test public units as well as private units.
4282 2006-02-13 Thomas Quinot <quinot@adacore.com>
4283 Robert Dewar <dewar@adacore.com>
4284 Ed Schonberg <schonberg@adacore.com>
4285 Javier Miranda <miranda@adacore.com>
4287 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
4288 that Scope_Stack.First = 1.
4289 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
4290 were not always properly handled previously.
4291 (Formal_Entity): Complete rewrite, to handle properly some complex case
4292 with multiple levels of parametrization by formal packages.
4293 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
4294 to the corresponding derived type declaration for proper semantics.
4296 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
4297 (Check_Component): Enforce restriction on components of
4298 unchecked_unions: a component in a variant cannot contain tasks or
4300 (Unchecked_Union): Allow nested variants and multiple discriminants, to
4302 Add pragma Ada_2005 (synonym for Ada_05)
4303 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
4304 were not always properly handled previously.
4305 Document that pragma Propagate_Exceptions has no effect
4306 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
4307 (Set_Convention_From_Pragma): Check that if a convention is
4308 specified for a dispatching operation, then it must be
4309 consistent with the existing convention for the operation.
4310 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
4311 longer required to specify an vtable-ptr component in the record. For
4312 compatibility reasons we leave the support for the previous definition.
4313 (Analyze_Pragma, case No_Return): Allow multiple arguments
4315 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
4316 non-overrideen inherited operation with a controlling result as
4317 illegal only its implicit declaration comes from the derived type
4318 declaration of its result's type.
4319 (Check_Possible_Deferred_Completion): Relocate the object definition
4320 node of the subtype indication of a deferred constant completion rather
4321 than directly analyzing it. The analysis of the generated subtype will
4322 correctly decorate the GNAT tree.
4323 (Record_Type_Declaration): Check whether this is a declaration for a
4324 limited derived record before analyzing components.
4325 (Analyze_Component_Declaration): Diagnose record types not explicitly
4326 declared limited when a component has a limited type.
4327 (Build_Derived_Record_Type): Code reorganization to check if some of
4328 the inherited subprograms of a tagged type cover interface primitives.
4329 This check was missing in case of a full-type associated with a private
4331 (Constant_Redeclaration): Check that the subtypes of the partial and the
4332 full view of a constrained deferred constant statically match.
4333 (Mentions_T): A reference to the current type in an anonymous access
4334 component declaration must be an entity name.
4335 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
4336 class_wide type to refer to full type, not to the incomplete one.
4337 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
4338 available. Required to give support to the certified run-time.
4339 (Analyze_Component_Declaration): In case of anonymous access components
4340 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
4341 (Process_Discriminants): For an access discriminant, use the
4342 discriminant specification as the associated_node_for_itype, to
4343 simplify accessibility checks.
4345 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4346 Javier Miranda <miranda@adacore.com>
4348 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
4349 abstract interpretations on an operator, remove interpretations that
4350 yield Address or a type derived from it, if one of the operands is an
4352 (Try_Object_Operation.Try_Primitive_Operation,
4353 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
4354 location when creating the new reference to a primitive or class-wide
4355 operation as a part of rewriting a subprogram call.
4356 (Try_Primitive_Operations): If context requires a function, collect all
4357 interpretations after the first match, because there may be primitive
4358 operations of the same type with the same profile and different return
4359 types. From code reading.
4360 (Try_Primitive_Operation): Use the node kind to choose the proper
4361 operation when a function and a procedure have the same parameter
4363 (Complete_Object_Operation): If formal is an access parameter and prefix
4364 is an object, rewrite as an Access reference, to match signature of
4365 primitive operation.
4366 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
4367 by an expanded name with prefix Standard, when the operands are of an
4368 anonymous access type.
4369 (Remove_Abstract_Operations): If the operation is abstract because it is
4370 inherited by a user-defined type derived from Address, remove it as
4371 well from the set of candidate interpretations of an overloaded node.
4372 (Analyze_Membership_Op): Membership test not applicable to cpp-class
4375 2006-02-13 Bob Duff <duff@adacore.com>
4377 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
4378 redundant use clauses.
4379 In particular, if the scope of two use clauses overlaps, but one is not
4380 entirely included in the other, we should not warn. This can happen
4381 with nested packages.
4382 (Analyze_Subprogram_Renaming): Protect the compiler against previously
4383 reported errors. The bug was reported when the compiler was built
4384 with assertions enabled.
4385 (Find_Type): If the node is a 'Class reference and the prefix is a
4386 synchronized type without a corresponding record, return the type
4389 2006-02-13 Javier Miranda <miranda@adacore.com>
4391 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
4392 if this is the full-declaration associated with a private declaration
4393 that implement interfaces, then the private type declaration must be
4395 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
4396 as aliased. The use of the 'access attribute is not available for such
4397 object (for this purpose the object should be explicitly marked as
4398 aliased, but being an anonymous type this is not possible).
4400 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4401 Robert Dewar <dewar@adacore.com>
4403 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
4404 compilation unit is an elaboration scope.
4405 (Add_Task_Proc): Add '\' in 2-line warning message.
4406 (Activate_All_Desirable): Deal with case of unit with'ed by parent
4408 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4409 Javier Miranda <miranda@adacore.com>
4411 * sem_type.adb (Write_Overloads): Improve display of candidate
4413 (Add_One_Interp): Do not add to the list of interpretations aliased
4414 entities corresponding with an abstract interface type that is an
4415 immediate ancestor of a tagged type; otherwise we have a dummy
4416 conflict between this entity and the aliased entity.
4417 (Disambiguate): The predefined equality on universal_access is not
4418 usable if there is a user-defined equality with the proper signature,
4419 declared in the same declarative part as the designated type.
4420 (Find_Unique_Type): The universal_access equality operator defined under
4421 AI-230 does not cover pool specific access types.
4422 (Covers): If one of the types is a generic actual subtype, check whether
4423 it matches the partial view of the other type.
4425 2006-02-13 Thomas Quinot <quinot@adacore.com>
4427 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
4428 line. This is necessary to allow In_Extended_Main_Unit to provide
4429 correct results for itypes while writing out expanded source.
4430 (Close_File): No need to update the source_index_table here since it's
4431 now done for each line.
4433 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4434 Robert Dewar <dewar@adacore.com>
4436 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
4437 preserve the source unit where the itype is declared, and prevent a
4439 (Note_Implicit_Run_Time_Call): New procedure
4440 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
4443 * sprint.ads: Document use of $ for implicit run time routine call
4445 2006-02-13 Quentin Ochem <ochem@adacore.com>
4447 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
4450 2006-02-13 Bob Duff <duff@adacore.com>
4452 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
4453 Scan_Unsigned, so we do not scan leading blanks and sign twice.
4454 Integer'Value("- 5") and Integer'Value("-+5") now correctly
4455 raise Constraint_Error.
4457 * s-vallli.adb (Scan_Long_Long_Integer): Call
4458 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
4459 do not scan leading blanks and sign twice.
4460 Integer'Value("- 5") and Integer'Value("-+5") now correctly
4461 raise Constraint_Error.
4463 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
4464 Scan_Long_Long_Unsigned): Split out most of the processing from
4465 Scan_Long_Long_Unsigned out into
4466 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
4467 This prevents scanning leading blanks and sign twice.
4468 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
4471 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
4472 out most of the processing from Scan_Unsigned out into
4473 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
4474 This prevents scanning leading blanks and sign twice.
4476 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
4477 use with Modular'Value attribute.
4478 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
4481 2006-02-13 Robert Dewar <dewar@adacore.com>
4483 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
4485 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
4487 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
4488 (PPC VxWorks): Likewise.
4489 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
4490 (forced_callee): Make non-inlinable and non-pure.
4491 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
4493 2006-02-13 Arnaud Charlet <charlet@adacore.com>
4494 Ben Brosgol <brosgol@adacore.com>
4495 Robert Dewar <dewar@adacore.com>
4497 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
4499 Document that gnatbind -M option is for cross environments only.
4500 Added description of using gnatmem to trace gnat rtl allocs and deallocs
4501 Add note on use of $ to label implicit run time calls
4502 Add documentation for -gnatyI (check mode IN)
4503 Updated chapter on compatibility with HP Ada
4505 Ran spell and corrected errors
4506 Add documentation for gnatbind -d and rework documentation of -D
4508 Add subprogram/data elimination section.
4509 Minor editing of annex A.
4510 Add section for gnatcheck.
4511 Add documentation for restriction No_Dispatching_Calls
4512 Add documentation for pragma Ada_2005
4513 Remove mention of obsolete pragma Propagate_Exceptions
4514 Document that pragma Unreferenced can appear after DO in ACCEPT
4515 Clarify Pure_Function for library level units
4516 Mention Max/Min in connection with No_Implicit_Conditionals
4517 No_Wide_Characters restriction is no longer partition-wide
4518 Add a nice example for Universal_Literal_String attribute
4519 Document that pragma No_Return can take multiple arguments
4521 * ug_words: Added entry for gnatcheck
4523 * g-ctrl_c.ads (Install_Handler): Enhance comments
4525 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
4527 * g-trasym.ads: Add documentation on how to do off line symbolic
4528 traceback computation.
4530 * s-fatgen.adb: Add comments for Unaligned_Valid
4532 * stand.ads: Fix typo in comment
4534 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4536 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
4538 2006-02-06 Roger Sayle <roger@eyesopen.com>
4540 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
4542 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4545 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
4546 implementation that calls __main.
4548 2006-01-25 Peter O'Gorman <peter@pogma.com>
4551 * Makefile.in (GCC_LINK): Remove quotes.
4552 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
4555 (powerpc-darwin): Pass -shared-libgcc when building shared library.
4557 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4560 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
4562 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4564 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
4566 2005-12-12 Arnaud Charlet <charlet@adacore.com>
4568 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
4571 2005-12-12 Arnaud Charlet <charlet@adacore.com>
4573 * Make-lang.in: Update dependencies
4575 2005-12-12 Arnaud Charlet <charlet@adacore.com>
4577 * Make-lang.in: Add rule for ada/exp_sel.o
4579 2005-12-12 Arnaud Charlet <charlet@adacore.com>
4581 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
4583 2005-12-09 Arnaud Charlet <charlet@adacore.com>
4585 * gnatvsn.ads (Library_Version): Bump to version 4.2
4586 (ASIS_Version_Number): Bumped.
4588 2005-12-09 Doug Rupp <rupp@adacore.com>
4590 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
4591 Ada bind file prefix on VMS from b$ to b__.
4592 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
4595 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
4596 Targparm.OpenVMS_On_Target.
4597 (Object_Suffix): Initialize with target object suffix.
4598 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
4600 * butil.adb: Change some Hostparm.OpenVMS checks to
4601 Targparm.OpenVMS_On_Target.
4603 * clean.adb: Change some Hostparm.OpenVMS checks to
4604 Targparm.OpenVMS_On_Target.
4605 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
4606 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
4607 Ada bind file prefix on VMS from b$ to b__.
4609 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
4610 --GCC so that Get_Target_Parameters can find system.ads.
4611 (Gnatlink): Call Get_Target_Parameters in mainline.
4612 Initialize standard packages for Targparm.
4613 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
4614 (Process_Args): Also Check for object files with target object
4616 (Make_Binder_File_Names): Create with target object extension.
4617 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
4620 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
4621 Targparm.OpenVMS_On_Target.
4622 ({declaration},Build_Library,Check_Library): Change Ada bind file
4623 prefix on VMS from b$ to b__.
4625 * osint-b.adb: Change some Hostparm.OpenVMS checks to
4626 Targparm.OpenVMS_On_Target.
4627 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
4630 * targext.c: New file.
4632 * Makefile.in: add support for vxworks653 builds
4633 (../../vxaddr2line): gnatlink with targext.o.
4634 (TOOLS_LIBS): Move targext.o to precede libgnat.
4635 (init.o, initialize.o): Minor clean up in dependencies.
4636 (GNATLINK_OBJS): Add targparm.o, snames.o
4637 Add rules fo building targext.o and linking it explicitly with all
4639 Also add targext.o to gnatlib.
4641 * Make-lang.in: Add rules for building targext.o and linking it in
4642 with gnat1 and gnatbind.
4643 Add entry for exp_sel.o.
4645 * osint.adb Change some Hostparm.OpenVMS checks to
4646 Targparm.OpenVMS_On_Target.
4647 (Object_File_Name): Use target object suffix.
4649 * osint.ads (Object_Suffix): Remove, no longer used.
4650 (Target_Object_Suffix): Initialize with target object suffix.
4652 * rident.ads: Add special exception to license.
4654 * targparm.adb (Get_Target_Parameters): Set the value of
4655 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
4657 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
4659 * targparm.ads: Add special exception to license.
4661 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
4663 (Copy_File): Make sure from file is closed if error on to file
4664 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
4666 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
4667 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
4669 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
4670 target object suffix.
4672 2005-12-09 Jose Ruiz <ruiz@adacore.com>
4673 Quentin Ochem <ochem@adacore.com>
4674 Florian Villoing <villoing@adacore.com>
4676 * a-taster.ads, a-taster.adb: New files.
4678 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
4679 link to the version that does nothing. This way the task termination
4680 routine is not executed twice for the environment task when finishing
4681 because of an unhandled exception.
4683 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
4684 handler because of an unhandled exception.
4686 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
4687 System.Tasking.Utilities instead of that in System.Tasking.Stages.
4689 * s-finimp.adb (initialization code): Modify the soft link for the
4690 finalization of the global list instead of Adafinal.
4692 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
4693 non-tasking version of the soft link for task termination. We do
4694 nothing since if we are using the non-tasking version it
4695 means that the task termination functionality is not used.
4696 (Null_Finalize_Global_List): Add this null version for the procedure
4697 in charge of finalizing the global list for controlled objects.
4698 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
4699 instead for handling run-time termination in a more flexible way.
4700 (Adafinal_NT): This new procedure will take care of finalizing the
4701 global list for controlled objects if needed, but no tasking
4704 * s-tarest.adb (Task_Lock): Do not try to lock again the
4705 Global_Task_Lock if we already own it. Otherwise, we get blocked in
4706 some run-time operations.
4707 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
4708 until all nested locks have been released.
4709 (Task_Wrapper): Call the fall-back task termination handler. It
4710 applies to all tasks but the environment task.
4711 (Finalize_Global_Tasks): Add the call for the task termination
4712 procedure for the environment task.
4713 (Task_Wrapper): suppress warnings around declaration of
4714 Secondary_Stack_Address.
4716 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
4717 moved to the Common_ATCB record.
4718 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
4720 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
4723 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
4724 Fall_Back_Handler, and Specific_Handler.
4726 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
4727 defined in Ada.Task_Termination, to avoid circular dependencies.
4728 (Termination_Handler): Redefine this type here, alredy defined in
4729 Ada.Task_Termination, for avoiding circular dependencies.
4730 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
4731 for storing task termination handlers. In addition,
4732 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
4733 Common_ATCB because it is used by both the regular and the restricted
4735 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
4736 Common_ATCB because it is used by both the regular and the restricted
4738 (Common_ATCB): Added a dynamic task analyzer field.
4740 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
4741 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
4742 (Task_Wrapper): Call the task termination handler. It applies to all
4743 tasks but the environment task.
4744 (Finalize_Global_Tasks): Call the task termination procedure for the
4745 environment task. The call to Finalize_Global_List is now performed
4746 using the soft links mechanism.
4747 (Task_Wrapper): added dynamic stack analysis.
4749 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
4750 potentially blocking operations has been moved from
4751 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
4752 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
4753 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
4754 this run-time check.
4756 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
4757 of task termination procedure.
4758 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
4759 link for the task termination procedure.
4761 * bindusg.adb: (Bindusg): Added documentation for -u option.
4763 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
4764 (Get_Main_C): Add handling of dynamic stack analysis.
4765 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
4767 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
4768 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
4769 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
4771 * opt.ads: Added flags used by dynamic stack measurement.
4772 (Max_Line_Length): Remove (not used anymore)
4774 * s-io.ads, s-io.adb (Standard_Error): new subprogram
4775 (Standart_Output): new subprogram
4776 (Set_Output): new subprogram
4777 (Put): now uses the value of Current_Out to know if the output has to be
4778 send to stderr or stdout.
4780 * s-stausa.ads: Complete implementation.
4782 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
4784 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
4785 list of Ada 05 files.
4786 (GNAT Library Units): Add AltiVec files.
4788 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
4789 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
4790 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
4792 2005-12-09 Nicolas Setton <setton@adacore.com>
4794 * adaint.c (__gnat_locate_regular_file): Return immediately if
4797 2005-12-09 Javier Miranda <miranda@adacore.com>
4798 Hristian Kirtchev <kirtchev@adacore.com>
4800 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
4801 to the specification because the frontend generates code that uses this
4803 (Set_Interface_Table): Add missing assertion.
4804 Update documentation describing the run-time structure.
4805 (Displace): New subprogram that displaces the pointer to the object
4806 to reference one of its secondary dispatch tables.
4807 (IW_Membership): Modified to use the new table of interfaces.
4808 (Inherit_TSD): Modified to use the new table of interfaces.
4809 (Register_Interface_Tag): Use the additional formal to fill the
4810 contents of the new table of interfaces.
4811 (Set_Interface_Table): New subprogram that stores in the TSD the
4812 pointer to the table of interfaces.
4813 (Set_Offset_To_Top): Use the additional formal to save copy of
4814 the offset value in the table of interfaces.
4815 Update structure of GNAT Primary and Secondary dispatch table diagram.
4816 Add comment section on GNAT dispatch table prologue.
4817 (Offset_To_Signature): Update the constant value of the Signature field.
4818 (Dispatch_Table): Update comment on hidden fields in the prologue.
4819 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
4820 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
4821 the type of formal parameter T to Tag, introduce additional assertions.
4822 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
4824 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
4826 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
4827 in all the calls to Expand_Interface_Thunk. Instead of referencing the
4828 record component containing the tag of the secondary dispatch table we
4829 have to use the Offset_To_Top run-time function to get this information;
4830 otherwise if the pointer to the base of the object has been displace
4831 we get a wrong value if we use the 'position attribute.
4833 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
4834 all the calls to Expand_Interface_Thunk.
4835 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
4836 interfaces; hence the call to Set_Interface_Table was clearly wrong.
4837 (Collect_All_Interfaces): Modify the internal subprogram Collect to
4838 ensure that the interfaces implemented by the ancestors are placed
4839 at the header of the generated list.
4840 (Expand_Interface_Conversion): Handle the case in which the displacement
4841 associated with the interface conversion is not statically known. In
4842 this case we generate a call to the new run-time subprogram Displace.
4843 (Make_DT): Generate and fill the new table of interfaces.
4844 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
4845 Get_Tagged_Kind and Set_Tagged_Kind.
4846 (Tagged_Kind): New function that determines the tagged kind of a type
4847 with respect to limitedness and concurrency and returns a reference to
4849 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
4850 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
4851 primary dispatch table for a type.
4852 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
4853 secondary dispatch table respectively of a tagged type.
4855 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
4856 (Expand_Interface_Conversion): New subprogram to indicate if the
4857 displacement of the type conversion is statically known.
4858 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
4860 * rtsfind.ads (RE_Offset_To_Top): New entity
4861 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
4862 accessible to users.
4863 (Re_Displace): New entity
4864 (RE_Interface_Data): New entity
4865 (RE_Set_Interface_Data): New_Entity
4866 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
4867 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
4868 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
4869 RE_TK_Tagged, RE_TK_Task.
4871 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
4872 Init_Secondary_Tags_Internal to allow its use with interface types and
4873 also to generate the code for the new additional actual required
4874 by Set_Offset_To_Top.
4875 (Build_Init_Statements): In case of components associated with abstract
4876 interface types there is no need to generate a call to its IP.
4877 (Freeze_Record_Type): Generate Select Specific Data tables only for
4879 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
4880 the bodies and specifications of the predefined primitive operations
4881 dealing with dispatching selects and abort, 'Callable, 'Terminated only
4882 for concurrent types.
4884 * exp_sel.ads, exp_sel.adb: New files.
4886 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
4887 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
4888 properly protected objects and attach handler in the case of the
4890 Move embeded package Select_Expansion_Utilities into a separate external
4892 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
4893 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
4894 (Build_K, Build_S_Assignment): New subprograms, part of the select
4895 expansion utilities.
4896 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
4897 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
4898 where the trigger is a dispatching procedure of a limited tagged type.
4900 2005-12-09 Olivier Hainque <hainque@adacore.com>
4902 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
4903 pointer initialization values. Make a SAVE_EXPR instead. Add comments
4904 about the use and expansion of SAVE_EXPRs in the various possible
4905 renaming handling cases.
4906 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
4907 abusing DECL_FCONTEXT.
4909 2005-12-09 Matthew Heaney <heaney@adacore.com>
4911 * a-convec.adb (Merge): Added assertions to check whether vector params
4914 * a-coinve.adb (Merge): Added assertions to check whether vector params
4917 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
4919 (Cursor'Read): raises PE
4921 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
4922 to its default value.
4924 * a-cihama.adb: Manually check whether cursor's key and elem are
4927 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
4928 (Merge): Assert that target and source lists are in order
4929 (Swap): Declare non-const temporaries, to pass to Splice
4931 * a-cdlili.ads: (Splice): Changed param name and param mode
4933 * a-cdlili.adb: (Splice): Changed param name and param mode
4934 (Merge): Assert that target and source lists are in order
4935 (Swap): Declare non-const temporaries, to pass to Splice
4937 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
4938 (Write): declare Stream param as not null
4940 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
4941 an exception message.
4943 2005-12-09 Thomas Quinot <quinot@adacore.com>
4944 Robert Dewar <dewar@adacore.com>
4946 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
4947 which is the absolute maximum length we can support.
4949 * frontend.adb: For the processing of configuration pragma files,
4950 remove references to Opt.Max_Line_Length, which is not checked anymore.
4952 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
4955 * scn.adb, scng.adb:
4956 Always check line length against the absolute supported maximum,
4957 Hostparm.Max_Line_Length.
4959 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
4960 value for the maximum line length is Max_Line_Length (not
4961 Column_Number'Last).
4962 Minor error msg update
4963 (Set_Style_Check_Options): New interface returning error msg
4964 Minor code reorganization (processing for 'M' was out of alpha order)
4966 * switch-c.adb: New interface for Set_Style_Check_Options
4968 * stylesw.ads (Set_Style_Check_Options): New interface returning error
4971 2005-12-09 Javier Miranda <miranda@adacore.com>
4973 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
4974 with IP subprogram were only supported if there were limited types.
4976 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
4977 records with IP subprogram were only supported if there were limited
4980 2005-12-09 Olivier Hainque <hainque@adacore.com>
4981 Eric Botcazou <ebotcazou@adacore.com>
4983 * trans.c (tree_transform, emit_check): Adjust calls to
4984 build_call_raise, passing the now expected GNAT_NODE argument.
4986 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
4987 source line information than what the current global locus indicates
4990 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
4991 field has overflowed.
4992 (build_call_raise): Add a GNAT_NODE argument to convey better source
4993 line information than what the current global locus indicates when
4995 (build_component_ref): Adjust call to build_call_raise.
4997 2005-12-09 Pascal Obry <obry@adacore.com>
4999 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
5000 the iterator is quitting iteration on parent directory.
5002 2005-12-09 Javier Miranda <miranda@adacore.com>
5004 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
5005 and the assignment to a class-wide object, before the assignment we
5006 generate a run-time check to ensure that the tag of the Target is
5007 covered by the tag of the source.
5009 2005-12-09 Robert Dewar <dewar@adacore.com>
5011 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
5012 parameter in call to Image_Wide_Character.
5014 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
5015 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
5016 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
5017 annoying FFFE/FFFF inconsistency.
5019 2005-12-09 Robert Dewar <dewar@adacore.com>
5020 Javier Miranda <miranda@adacore.com>
5021 Ed Schonberg <schonberg@adacore.com>
5023 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
5025 (Find_Interface): New subprogram that given a tagged type and one of its
5026 component associated with the secondary table of an abstract interface
5027 type, return the entity associated with such abstract interface type.
5028 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
5029 base type to create anonymous subtype, because entity may be a locally
5030 declared subtype or generic actual.
5031 (Find_Interface): New subprogram that given a tagged type and one of its
5032 component associated with the secondary table of an abstract interface
5033 type, return the entity associated with such abstract interface type.
5035 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
5036 conversion cannot be handled at compile time. In this case we pass this
5037 information to the expander to generate the appropriate code.
5039 2005-12-09 Robert Dewar <dewar@adacore.com>
5040 Ed Schonberg <schonberg@adacore.com>
5041 Gary Dismukes <dismukes@adacore.com>
5042 Javier Miranda <miranda@adacore.com>
5043 Hristian Kirtchev <kirtchev@adacore.com>
5045 * einfo.adb (Itype_Printed): New flag
5046 (Is_Limited_Type): Derived types do not inherit limitedness from
5047 interface progenitors.
5048 (Is_Return_By_Reference_Type): Predicate does not apply to limited
5051 * einfo.ads (Itype_Printed): New flag
5052 Move Is_Wrapper_Package to proper section
5053 Add missing Inline for Is_Volatile
5055 * output.ads, output.adb (Write_Erase_Char): New procedure
5056 (Save/Restore_Output_Buffer): New procedures
5057 (Save/Restore_Output_Buffer): New procedures
5059 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
5060 Add missing support for anonymous access type
5061 (Write_Id): Insert calls to Write_Itype
5062 (Write_Itype): New procedure to output itypes
5064 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
5065 use of "limited" in declaration.
5067 * sinfo.ads, sinfo.adb:
5068 Formal derived types can carry an explicit "limited" indication.
5070 * sem_ch3.adb: Add with and use of Targparm.
5071 (Create_Component): If Frontend_Layout_On_Target is True and the
5072 copied component does not have a known static Esize, then reset
5073 the size and positional fields of the new component.
5074 (Analyze_Component_Declaration): A limited component is
5075 legal within a protected type that implements an interface.
5076 (Collect_Interfaces): Do not add to the list the interfaces that
5077 are implemented by the ancestors.
5078 (Derived_Type_Declaration): If the parent of the full-view is an
5079 interface perform a transformation of the tree to ensure that it has
5080 the same parent than the partial-view. This simplifies the job of the
5081 expander in order to generate the correct object layout, and it is
5082 needed because the list of interfaces of the full-view can be given in
5084 (Process_Full_View): The parent of the full-view does not need to be
5085 a descendant of the parent of the partial view if both parents are
5087 (Analyze_Private_Extension_Declaration): If declaration has an explicit
5088 "limited" the parent must be a limited type.
5089 (Build_Derived_Record_Type): A derived type that is explicitly limited
5090 must have limited ancestor and progenitors.
5091 (Build_Derived_Type): Ditto.
5092 (Process_Full_View): Verify that explicit uses of "limited" in partial
5093 and full declarations are consistent.
5094 (Find_Ancestor_Interface): Remove function.
5095 (Collect_Implemented_Interfaces): New procedure used to gather all
5096 implemented interfaces by a type.
5097 (Contain_Interface): New function used to check whether an interface is
5099 (Find_Hidden_Interface): New function used to determine whether two
5100 lists of interfaces constitute a set equality. If not, the first
5101 differing interface is returned.
5102 (Process_Full_View): Improve the check for the "no hidden interface"
5103 rule as defined by AI-396.
5105 2005-12-09 Robert Dewar <dewar@adacore.com>
5107 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
5108 types, not on record subtypes.
5109 (Freeze_Entity): Code cleanup. Add barrier to the loop
5110 that generates the references for primitive operations. This allows to
5111 remove an unnecessary exception handler.
5112 Code reformatting and comment clean ups.
5114 2005-12-09 Vincent Celier <celier@adacore.com>
5116 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
5117 If GNAT CHECK is called with a project file, but with no
5118 source on the command line, call gnatcheck with all the compilable
5119 sources of the project.
5120 Take into account the new command Check, for gnatcheck. Treat as for
5121 other ASIS tools: take into account project, specific package Check and
5123 For ASIS tools, add the switches in package Compiler for
5124 the invocation of the compiler.
5126 * prj-attr.adb: Add package Check and its attributes
5128 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
5130 * vms_conv.adb (Initialize): Change Params of command Check to
5132 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
5133 Add data for new command Check
5135 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
5137 Add qualifiers for Check command options
5138 (Command_Type): New command Check
5140 2005-12-09 Thomas Quinot <quinot@adacore.com>
5142 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
5143 command line switch overruns the output buffer.
5145 2005-12-09 Robert Dewar <dewar@adacore.com>
5147 * sem_prag.adb: Processing for new pragma Complete_Representation
5148 (Analyze_Pragma, case Debug): Implement two argument form.
5150 * par-prag.adb: Entry for new pragma Complete_Representation
5151 (Prag, case Debug): Recognize two argument form of pragma Debug
5152 New interface for Set_Style_Check_Options.
5154 * sem_ch13.adb: Implement new pragma Complete_Representation.
5156 * snames.adb, snames.ads, snames.h: Entry for new pragma
5157 Complete_Representation.
5159 2005-12-09 Gary Dismukes <dismukes@adacore.com>
5161 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
5162 available user-specified stream attributes on limited parameters to
5163 also test the type directly rather than only its underlying type (for
5164 Ada 95) and, in the case of Ada 2005, to check that the user-specified
5165 attributes are visible at the point of the subprogram declaration.
5166 For Ada 2005, the error message is modified to indicate that the
5167 type's stream attributes must be visible (again, only for -gnat05).
5169 2005-12-09 Ed Schonberg <schonberg@adacore.com>
5171 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
5172 anonymous access types.
5174 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
5175 matching of anonymous access types and anonymous access to subprogram
5176 types. 'R'M 4.9.1 (2/2).
5178 2005-12-09 Ed Schonberg <schonberg@adacore.com>
5180 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
5181 rule prematurely when operands are universal, remaining ambiguities
5182 will be removed during resolution.
5185 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
5186 that are Ada 2005 functions.
5187 (Has_Abstract_Interpretation): Subsidiary to
5188 Remove_Conversions, to remove ambiguities caused by abstract operations
5189 on numeric types when operands are universal.
5191 2005-12-09 Robert Dewar <dewar@adacore.com>
5193 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
5194 for case where spec is categorized.
5196 2005-12-09 Javier Miranda <miranda@adacore.com>
5198 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
5199 types use the corresponding record type. This was not needed before
5200 the implementation of Ada 2005 synchronized types because
5201 concurrent types were never tagged types in Ada 95.
5203 2005-12-09 Ed Schonberg <schonberg@adacore.com>
5205 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
5206 first subtype of the type of the expression to verify that it is a
5209 2005-12-09 Robert Dewar <dewar@adacore.com>
5211 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
5214 2005-12-09 Quentin Ochem <ochem@adacore.com>
5215 Robert Dewar <dewar@adacore.com>
5216 Ed Falis <falis@adacore.com>
5217 Florian Villoing <villoing@adacore.com>
5218 Thomas Quinot <quinot@adacore.com>
5219 Arnaud Charlet <charlet@adacore.com>
5221 * gnat_ugn.texi: Created section "Stack Related Tools"
5222 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
5223 "Stack Related Tools"
5224 Added subsection "Static Stack Usage Analysis"
5225 Added subsection "Dynamic Stack Usage Analysis"
5226 Include documentation of itypes in sprint listing (-gnatG)
5227 Documented gnatbind -D switch (default sec stack size for fixed sec
5229 Added Interrupt_State and Persistent_BSS to list of configuration
5231 Add missing doc for maximum value of nnn in -gnatyMnnn
5233 * gnat_rm.texi: Document the AltiVec binding.
5234 Add documentation for pragma Complete_Representation
5235 Shortened an overly long line (> 79 chars)
5236 Clarify documentation of unchecked conversion in implementation
5238 Document two argument form of pragma Debug
5240 * types.ads (Column_Number): Update documentation.
5242 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
5243 library level Finalize_Storage_Only objects (these are not attached to
5244 any finalization list).
5246 * system-mingw.ads: (Underlying_Priorities): Update comment.
5248 2005-12-09 Robert Dewar <dewar@adacore.com>
5250 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
5251 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
5252 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
5253 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
5254 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
5255 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
5256 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
5257 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
5260 2005-12-09 Robert Dewar <dewar@adacore.com>
5262 * s-vaflop-vms-alpha.adb: (Ne_F): New function
5263 (Ne_G): New function
5265 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
5267 (Rewrite_Comparison): Handle case where operation is not a comparison
5268 and ignore, and also handle type conversion case.
5270 2005-12-09 Thomas Quinot <quinot@adacore.com>
5272 * exp_aggr.ads: Fix typo in comment.
5273 ???-mark Convert_Aggr_In_Assignment as needing documentation.
5275 2005-12-09 Gary Dismukes <dismukes@adacore.com>
5277 * layout.adb: Replace various uses of byte by storage unit throughout.
5278 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
5279 static size, convert to storage units before returning, to conform to
5282 2005-12-09 Matthew Gingell <gingell@adacore.com>
5284 * g-exctra.ads: Fix typo in comment.
5286 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5288 * utils.c: Minor reformatting.
5290 2005-12-09 Robert Dewar <dewar@adacore.com>
5293 Further comment fixes to make the status of the default file clear
5295 * s-bitops.adb: Clarify comment for Bits_Array
5297 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
5299 * Make-lang.in (ada.install-normal): Remove.
5301 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
5303 * Make-lang.in: Remove all dependencies on s-gtype.
5305 2005-12-05 Richard Guenther <rguenther@suse.de>
5307 * utils.c (convert): Use fold_convert where appropriate.
5309 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
5311 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
5314 2005-12-02 Richard Guenther <rguenther@suse.de>
5316 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
5318 2005-12-01 Roger Sayle <roger@eyesopen.com>
5320 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
5323 2005-11-23 Laurent GUERBY <laurent@guerby.net>
5325 * mlib-prj.adb (Build_Library): Initialize Delete.
5327 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
5329 * socket.c: Add extern int h_errno for rtems since networking header
5330 files are not available at this point in a tool bootstrap. Newlib
5331 only has basic C library header files.
5333 2005-11-19 Richard Guenther <rguenther@suse.de>
5334 Roger Sayle <roger@eyesopen.com>
5337 * misc.c (internal_error_function): Don't use vsprintf to format
5338 the error message text, instead use pp_format_text and the new
5339 pretty printer APIs. This allows handling of %qs, %w, etc.
5341 2005-11-18 Laurent GUERBY <laurent@guerby.net>
5344 * Makefile.in: Use s-auxdec-empty for RTEMS.
5346 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5349 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
5350 a temporary if taking the address of something that is neither
5351 reference, declaration, or constant, since the gimplifier
5352 can't handle that case.
5354 2005-11-17 Laurent GUERBY <laurent@guerby.net>
5357 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
5359 2005-11-16 Richard Guenther <rguenther@suse.de>
5361 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
5363 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
5366 * raise-gcc.c: Add missing stdarg.h include.
5368 2005-11-16 Richard Guenther <rguenther@suse.de>
5370 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
5371 (ada/misc.o): Likewise.
5373 2005-11-14 Thomas Quinot <quinot@adacore.com>
5375 * g-soccon.ads: Minor reformatting. Update comments.
5377 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
5378 gain visibility on the declaration of struct timeval.
5380 * g-soccon-freebsd.ads,
5381 g-soccon-darwin.ads,
5386 g-soccon-solaris.ads,
5389 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
5391 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
5392 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
5393 g-soccon-linux-x86.ads: New files.
5395 * g-socthi-mingw.adb:
5396 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
5398 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
5399 (time_t, suseconds_t): New types constructed to match the tv_sec
5400 and tv_usec fields of C struct timeval.
5401 (Timeval): Construct structure in terms of the new types.
5402 (Host_Errno): New function (imported from socket.c), returns last hosts
5405 * g-socthi-vxworks.adb: Add error handling circuitry.
5407 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
5408 components of struct timeval.
5409 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
5410 (Check_Selector): In error conditions, clear internal socket sets to
5411 avoid a memory leak.
5412 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
5413 Send_Timeout, Receive_Timeout.
5415 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
5416 the tv_sec and tv_usec fields of C struct timeval.
5417 (Timeval): Construct structure in terms of the new types.
5418 (Host_Errno): New function (imported from socket.c), returns last hosts
5421 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
5422 hosts database last error code.
5424 * gen-soccon.c: Complete value expansion should not be performed on
5425 TARGET, as it has the form of a math expression, and some components
5426 may be platform-defined macros.
5427 For VxWorks, generate the OK and ERROR values.
5428 New constants giving the sizes of the components of C struct timeval.
5430 2005-11-14 Robert Dewar <dewar@adacore.com>
5431 Ed Schonberg <schonberg@adacore.com>
5434 * types.ads: Include All_Checks in Suppress_Array
5436 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
5437 not(a=b), since we no longer do this rewriting, and hence it is not
5439 (Elaboration_Checks_Suppressed): Add special casing to
5440 deal with different cases of static and dynamic elaboration checks (all
5441 checks does not count in the first case, but does in the second).
5442 (Expr_Known_Valid): Do not assume that the result of any arbitrary
5443 function call is valid, since this is not the case.
5444 (Ensure_Valid): Do not apply validity check to a real literal
5445 in a universal or fixed context
5447 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
5448 elementary types using the operator in standard. It is cleaner not to
5449 modify the programmers intent, especially in the case of floating-point.
5450 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
5451 it did not matter because we always rewrote a/=b to not(a=b).
5452 (Expand_Allocator_Expression): For an allocator expression whose nominal
5453 subtype is an unconstrained packed type, convert the expression to its
5454 actual constrained subtype.
5455 Implement warning for <= or >= where < or > not possible
5456 Fix to Vax_Float tests (too early in many routines, causing premature
5457 Vax_Float expansions.
5459 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
5460 to be used with packages and generic packages as well as with
5462 (Suppress): Set All_Checks, but not Elaboration_Check, for case
5463 of pragma Suppress (All_Checks)
5464 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
5465 a string literal for precise control over warnings.
5466 Avoid raise of pragma in case of unrecognized pragma and just return
5469 * sem_prag.ads: Minor reformatting
5471 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
5472 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
5473 Switch. Do not handle any exception.
5474 Include -gnatwx as part of -gnatg (warn on redundant parens)
5475 Allow optional = after -gnatm
5476 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
5477 longer sets Elaboration_Checks.
5478 Code to set warning mode moved to Sem_Warn
5479 so that it can be shared by pragma processing.
5481 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
5484 * s-taprop-solaris.adb:
5485 Change some <= to =, to avoid new warning
5487 * a-exexda.adb, prj-proc.adb:
5488 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
5489 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
5491 2005-11-14 Robert Dewar <dewar@adacore.com>
5493 * exp_vfpt.adb: Handle /= case
5494 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
5495 so that we do not get duplicate scaling for fixed point conversions.
5497 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
5499 2005-11-14 Matthew Gingell <gingell@adacore.com>
5501 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
5502 Increase default priority on Lynx from 15 to 17, and meet the Ada
5503 requirement that Default_Priority be ((Priority'First +
5504 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
5506 2005-11-14 Vincent Celier <celier@adacore.com>
5508 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5509 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5510 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
5511 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
5512 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
5513 mlib-tgt-lynxos.adb (DLL_Prefix): New function
5515 2005-11-14 Doug Rupp <rupp@adacore.com>
5517 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
5520 2005-11-14 Arnaud Charlet <charlet@adacore.com>
5522 * s-traces-default.adb, s-trafor-default.ads,
5523 s-tratas-default.adb: Fix compilation errors.
5525 2005-11-14 Jose Ruiz <ruiz@adacore.com>
5527 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
5528 raising the exception so the memory used is freed.
5530 2005-11-14 Arnaud Charlet <charlet@adacore.com>
5532 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
5533 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
5534 (convert_address): Update comments and list of platforms using this.
5536 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
5539 2005-11-14 Pascal Obry <obry@adacore.com>
5540 Vincent Celier <celier@adacore.com>
5542 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
5545 * memroot.adb: Remove redundant with/use clause on
5546 System.Storage_Elements.
5548 2005-11-14 Arnaud Charlet <charlet@adacore.com>
5550 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
5551 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
5552 related code to a-exexpr.adb
5553 (Save_Occurrence_And_Private): Move GCC EH related code to
5555 (Raise_Current_Excep): Add new variable Id with pragma
5556 volatile, to ensure that the variable lives on stack.
5558 * a-exexpr-gcc.adb, raise-gcc.c: New file.
5560 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
5562 Move GCC EH related code to a-exexpr-gcc.adb
5564 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
5566 Split the Linux version of g-soccon into separate variants for 32 and 64
5568 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
5569 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
5570 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
5571 of host variable $(RANLIB_FLAGS).
5572 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
5573 Code clean up: remove unused/obsolete targets.
5574 (EH_MECHANISM): New variable introduced to differenciate between the
5575 two EH mechanisms statically.
5576 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
5577 (LIBGNAT_OBJS): Add raise-gcc.o
5578 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
5579 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
5580 supports VxWorks 6 RTPs.
5581 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
5582 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
5584 * raise.c: Move all GCC EH-related routines to raise-gcc.c
5586 2005-11-14 Jose Ruiz <ruiz@adacore.com>
5588 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
5589 deferral level, when abort is not allowed, to a later stage (the
5591 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
5592 it will not get changed by the generated code. It was previously done
5595 2005-11-14 Thomas Quinot <quinot@adacore.com>
5596 Olivier Hainque <hainque@adacore.com>
5597 Eric Botcazou <ebotcazou@adacore.com>
5600 Factor common code to build a storage type for an unconstrained object
5601 from a fat or thin pointer type and a constrained object type.
5602 (annotate_value): Handle BIT_AND_EXPR.
5603 (annotate_rep): Don't restrict the back annotation of inherited
5604 components to the type_annotate_only case.
5605 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
5606 we are not defining the type.
5607 <E_Record_Type>: Likewise.
5608 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
5609 to get advantage of the new maybe_stabilize_reference interface, to
5610 ensure that what we reference is indeed stabilized instead of relying
5611 on assumptions on what the stabilizer does.
5612 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
5613 type imported through a limited_with clause, use its non-limited view.
5614 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
5616 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
5617 of #if sections + explicit comparisons of convention identifiers.
5618 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
5619 before early-returning for certain types when code generation is
5621 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
5622 nullification of gnu_expr we do for objects with address clause and
5623 that we are not defining.
5624 (elaborate_expression_1): Do not create constants when creating
5625 variables needed by the debug info: the dwarf2 writer considers that
5626 CONST_DECLs is used only to represent enumeration constants, and emits
5628 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
5629 object with an address clause into an indirect reference, drop the
5630 initializing expression.
5632 (STACK_CHECK_BUILTIN): Delete.
5633 (STACK_CHECK_PROBE_INTERVAL): Likewise.
5634 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
5635 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
5636 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
5637 corresponding to the renamed object as ignored for debugging purposes.
5639 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
5640 related): For a prefix that is a dereference of a fat or thin pointer,
5641 if there is an actual subtype provided by the front-end, use that
5642 subtype to build an actual type with bounds template.
5643 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
5644 is provided by the front-end, use that subtype to compute the size of
5645 the deallocated object.
5646 (gnat_to_gnu): When adding a statement into an elaboration procedure,
5647 check for a potential violation of a No_Elaboration_Code restriction.
5648 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
5649 with extra arguments to control whether to recurse through non-values
5650 and to let the caller know if the stabilization has succeeded.
5651 (gnat_stabilize_reference): Now a simple wrapper around
5652 maybe_stabilize, for common uses without restriction on lvalues and
5653 without need to check for the success indication.
5654 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
5655 pass false instead of 0 as the FORCE argument which is a bool.
5656 (Identifier_to_gnu): Remove checks ensuring that an renamed object
5657 attached to a renaming pointer has been properly stabilized, as no such
5658 object is attached otherwise.
5659 (call_to_gnu): Invoke create_var_decl to create the temporary when the
5660 function uses the "target pointer" return mechanism.
5661 Reinstate conversion of the actual to the type of the formal
5662 parameter before any other specific treatment based on the passing
5663 mechanism. This turns out to be necessary in order for PLACEHOLDER
5664 substitution to work properly when the latter type is unconstrained.
5666 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
5668 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
5669 with extra arguments to control whether to recurse through non-values
5670 and to let the caller know if the stabilization has succeeded.
5672 * utils2.c (gnat_build_constructor): Only sort the fields for possible
5673 static output of record constructor if all the components are constant.
5674 (gnat_build_constructor): For a record type, sort the list of field
5675 initializers in increasing bit position order.
5676 Factor common code to build a storage type for an unconstrained object
5677 from a fat or thin pointer type and a constrained object type.
5678 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
5679 types variants, and process special cases of VIEW_CONVERT expressions
5680 as their NOP_EXPR counterpart to ensure we get to the
5681 CORRESPONDING_VARs associated with CONST_DECls.
5682 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
5683 on the right-hand side.
5685 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
5687 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
5688 are converting back to its original type.
5689 (convert) <JM input>: Fallthrough regular conversion code instead of
5690 extracting the object if converting to a type variant.
5691 (create_var_decl): When a variable has an initializer requiring code
5692 generation and we are at the top level, check for a potential violation
5693 of a No_Elaboration_Code restriction.
5694 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
5695 SIZE and SIZE_UNIT which we need for later back-annotations.
5696 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
5697 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
5698 is an unchecked union.
5699 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
5700 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
5701 main variant, just replace the VIEW_CONVERT_EXPR.
5702 <UNION_TYPE>: Revert 2005-03-02 change.
5704 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
5706 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
5708 2005-11-14 Matthew Heaney <heaney@adacore.com>
5710 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
5711 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
5712 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
5713 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
5714 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
5715 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
5716 Compiles against the spec for ordered maps described in sections
5717 A.18.6 of the most recent (August 2005) AI-302 draft.
5719 2005-11-14 Olivier Hainque <hainque@adacore.com>
5721 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
5722 to ensure bias adjustments take place when need be and to prevent
5723 occurrences of intermediate overflows.
5725 2005-11-14 Matthew Gingell <gingell@adacore.com>
5726 Olivier Hainque <hainque@adacore.com>
5728 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
5731 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
5732 tracebacks on ia64 HP-UX and provide explanatory comment.
5733 Enable backtraces on ia64 GNU/Linux.
5734 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
5735 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
5737 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
5738 Javier Miranda <miranda@adacore.com>
5740 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
5741 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
5742 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
5743 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
5745 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
5746 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
5749 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
5750 subprogram that generates the external name associated with a
5751 secondary dispatch table.
5752 (Get_Secondary_DT_External_Name): New subprogram that generates the
5753 external name associated with a secondary dispatch table.
5755 2005-11-14 Emmanuel Briot <briot@adacore.com>
5757 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
5758 line in the ALI file to include both an instantiation reference, and a
5761 2005-11-14 Vincent Celier <celier@adacore.com>
5763 * clean.adb (Check_Project): Look for Ada code in extending project,
5764 even if Ada is not specified as a language.
5765 Use new function DLL_Prefix for DLL_Name
5766 (Clean_Interface_Copy_Directory): New procedure
5767 (Clean_Library_Directory): New procedure
5768 (Clean_Directory): Remove procedure, no longer used
5769 (Clean_Project): Do not delete any file in an externally built project
5771 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
5772 directory of an extending project, even when there are no Ada source
5774 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
5775 (Set_Ada_Paths.Add.Recursive_Add): Ditto
5777 * mlib-prj.adb (Check_Library): For all library projects, get the
5778 library file timestamp.
5779 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
5780 (Build_Library): Use new function DLL_Prefix for the DLL_Name
5781 (Clean): Remove procedure, no longer used
5782 (Ultimate_Extension_Of): New function
5783 (Build_Library): When cleaning the library directory, only remove an
5784 existing library file and any ALI file of a source of the project.
5785 When cleaning the interface copy directory, remove any source that
5786 could be a source of the project.
5788 * prj.ads, prj.adb (Project_Empty): Add values of new components
5789 Library_TS and All_Imported_Projects.
5790 (Project_Empty): Add values for new components of Project_Data:
5791 Library_ALI_Dir and Display_Library_ALI_Dir
5793 * prj-attr.adb: New project level attribute name Library_ALI_Dir
5795 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
5796 attribute Library_ALI_Dir.
5797 (Check_Library_Attributes): The library directory cannot be the same as
5798 any source directory of the project tree.
5799 (Check_Stand_Alone_Library): The interface copy directory cannot be
5800 the same as any source directory of the project tree.
5802 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
5803 all temporary files.
5805 2005-11-14 Robert Dewar <dewar@adacore.com>
5806 Ed Schonberg <schonberg@adacore.com>
5808 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
5809 (Check_Elab_Call): A call within a protected body is never an
5810 elaboration call, and does not require checking.
5811 (Same_Elaboration_Scope): Take into account protected types for both
5813 (Activate_Elaborate_All_Desirable): New procedure
5815 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
5818 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
5819 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
5821 * lib-writ.ads, lib-writ.adb:
5822 Implement new AD/ED for Elaborate_All/Elaborate desirable
5823 Use new Elaborate_All_Desirable flag in N_With_Clause node
5825 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
5826 N_Free_Statement nodes.
5827 Define new class N_Subprogram_Instantiation
5828 Add Elaborate_Desirable flag to N_With_Clause node
5829 Add N_Delay_Statement (covering two kinds of delay)
5831 * debug.adb: Introduce d.f flag for compiler
5832 Add -da switch for binder
5834 2005-11-14 Ed Schonberg <schonberg@adacore.com>
5835 Cyrille Comar <comar@adacore.com>
5837 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
5838 for task component, in the case of a limited aggregate. The enclosed
5839 object declaration will create it earlier. Otherwise, in the case of a
5840 nested aggregate, the object may appear in the wrong scope.
5841 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
5842 (Gen_Assign): If the component being assigned is an array type and the
5843 expression is itself an aggregate, wrap the assignment in a block to
5844 force finalization actions on the temporary created for each row of the
5846 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
5847 structures are initialized after all discriminants are set so that
5848 they can be accessed even when their offset is dynamic.
5850 2005-11-14 Robert Dewar <dewar@adacore.com>
5851 Hristian Kirtchev <kirtchev@adacore.com>
5853 * sem_attr.adb: Implement Machine_Rounding attribute
5854 (Analyze_Access_Attribute): The access attribute may appear within an
5855 aggregate that has been expanded into a loop.
5856 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
5857 'Terminated whenever the prefix is of a task interface class-wide type.
5858 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
5859 the prefix is of a task interface class-wide type.
5861 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
5864 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
5865 Remove pragma Inline for [Unaligned_]Valid.
5866 Add comments that Valid routines do not work for Vax_Float
5868 * exp_attr.adb: Implement Machine_Rounding attribute
5870 * snames.h: Add entry for Machine_Rounding attribute
5872 2005-11-14 Javier Miranda <miranda@adacore.com>
5873 Robert Dewar <dewar@adacore.com>
5874 Hristian Kirtchev <kirtchev@adacore.com>
5876 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
5877 and related): For a prefix that is an explicit dereference of an
5878 access to unconstrained packed array type, annotate the dereference
5879 with an actual subtype so GIGI can make a correct size computation.
5880 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
5881 'Unrestricted_Access, if the designated type is an interface we
5882 add a type conversion to force the displacement of the pointer
5883 to the secondary dispatch table.
5884 Use Universal_Real instead of Long_Long_Float when we need a high
5885 precision float type for the generated code (prevents gratuitous
5886 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
5887 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
5888 'Terminated for task interface class-wide objects. Generate a call to
5889 the predefined dispatching routine used to retrieve the _task_id from
5890 a task corresponding record.
5891 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
5893 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
5894 (Check_Dispatching_Operation): Protect the frontend againts
5895 previously detected errors.
5897 * Makefile.rtl: Add new instantiations of system.fat_gen
5899 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
5900 Change name of instantiated package for better consistency
5901 with newly added system.fat_gen instantiations.
5903 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
5904 s-fvagfl.ads: New files.
5906 2005-11-14 Cyrille Comar <comar@adacore.com>
5907 Thomas Quinot <quinot@adacore.com>
5909 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
5910 assignment of a value of a tagged type that has been rewritten to a
5911 block statement, it is known by construction that no checks are
5912 necessary for the statements within the block: analyze it with checks
5914 (Expand_N_If_Statement): When killing a dead then-branch in an
5915 if-statement that has elsif_parts, recompute the Current_Value node
5916 for any entity whose value is known from the condition of the first
5918 (Expand_N_Return_Statement): When returning a mutable record, convert
5919 the return value into its actual subtype in order to help the backend
5920 to return the actual size instead of the maximum. This is another
5921 aftermath of not returning mutable records on the sec-stack anymore.
5923 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
5924 handling of error msg for suspicious reverse range iteration.
5925 (Check_Possible_Current_Value_Condition): Move declaration from body to
5926 spec, to allow this subprogram to be called from exp_ch5.
5928 2005-11-14 Thomas Quinot <quinot@adacore.com>
5930 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
5931 generate a set of nested array aggregates instead of a single flat
5932 aggregate for multi-dimensional arrays.
5934 2005-11-14 Pascal Obry <obry@adacore.com>
5936 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
5937 by spawnve is a process handle, no need to convert. Add a parameter
5938 close to control wether the process handle must be closed.
5939 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
5940 a process handle, not need to convert.
5941 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
5943 * g-expect.adb: (Kill): Document the new close parameter.
5944 (Close): Do not release the process handle in the kill there as
5945 waitpid() is using it.
5946 (Send_Signal): Release the process handle.
5948 2005-11-14 Robert Dewar <dewar@adacore.com>
5950 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
5951 need a high precision float type for the generated code (prevents
5952 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
5955 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
5956 need a high precision float type for the generated code (prevents
5957 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
5959 (Expand_Width_Attribute): In configurable run-time, the attribute is not
5960 allowed on non-static enumeration subtypes. Force a load error to emit
5961 the correct diagnostic.
5963 2005-11-14 Thomas Quinot <quinot@adacore.com>
5964 Robert Dewar <dewar@adacore.com>
5965 Ed Schonberg <schonberg@adacore.com>
5967 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
5968 subtype to compute the size of the designated object at run-time,
5969 create such a subtype and store it in the Actual_Designated_Subtype
5970 attribute of the N_Free_Statement.
5971 Generate itype for classwide designated object in both cases of
5972 user-specified storage pool: specific and class-wide, not only in the
5974 Raise CE when trying to set a not null access type object to null.
5975 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
5976 an explicit loop, because freeze nodes make its position variable.
5978 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
5981 2005-11-14 Javier Miranda <miranda@adacore.com>
5983 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
5984 Build_Stream_Procedure): Add the null-excluding attribute to the first
5986 This has no semantic meaning under Ada95 mode but it is a
5987 requirement under Ada05 mode.
5989 * par-ch3.adb (P_Access_Definition): Addition of warning message if
5990 the null exclusion is used under Ada95 mode
5991 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
5992 (P_Access_Definition): Remove assertion that forbids the use of
5993 the null-exclusion feature in Ada95.
5995 2005-11-14 Robert Dewar <dewar@adacore.com>
5997 * impunit.adb: Exclude container helper units not intended for use by
6000 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6002 * freeze.adb (Freeze_Entity): For an access formal that is an access
6003 to subprogram, freeze the anonymous subprogram type at the same time,
6004 to prevent later freezing in the wrong scope, such as the enclosing
6006 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
6007 subprogram whenever available.
6009 2005-11-14 Arnaud Charlet <charlet@adacore.com>
6012 * gnatvsn.ads (Library_Version): Bump to 4.1
6014 2005-11-14 Robert Dewar <dewar@adacore.com>
6016 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
6017 Storage_Offset to avoid wrap around causing invalid results.
6019 2005-11-14 Pascal Obry <obry@adacore.com>
6021 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
6023 (Scan_Bind_Arg): Fail with an error message if -M option is used
6024 on a native compiler.
6026 2005-11-14 Robert Dewar <dewar@adacore.com>
6027 Vincent Celier <celier@adacore.com>
6029 * gprep.adb: Implement -C switch to scan comments
6031 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
6033 * scans.ads: Comment updates (including new use of Tok_Comment in
6036 * opt.ads: Add documentation for flags that are used by gprmake,
6037 currently and in the next version of gprmake.
6038 (Verbosity_Level): New variable
6039 Add Replace_In_Comments switch
6041 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
6043 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
6045 2005-11-14 Arnaud Charlet <charlet@adacore.com>
6047 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
6048 message, friendlier.
6050 2005-11-14 Robert Dewar <dewar@adacore.com>
6052 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
6054 2005-11-14 Doug Rupp <rupp@adacore.com>
6056 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
6058 2005-11-14 Robert Dewar <dewar@adacore.com>
6060 * interfac.ads: Change declarations of IEEE float types so that we no
6061 longer need a separate version of this package for VMS.
6063 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6065 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
6066 internal entity created for the declaration of a child subprogram body
6067 with no spec as coming from source, to generate proper cross-reference
6070 2005-11-14 Vincent Celier <celier@adacore.com>
6072 * make.adb (Compile_Sources): Change verbose message to minimum
6073 verbosity level High for "is in an Ada library", "is a read-only
6074 library" and "is an internal library",
6075 (Create_Binder_Mapping_File): Path name of ALI file for library project
6076 must include the library directory, not the object directory.
6077 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
6078 for new switches -vl, -vm and -vh.
6079 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
6080 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
6081 (Compile_Sources): Do not attempt to compile if an ALI file is missing
6082 in a project that is externally built.
6083 (Compute_All_Imported_Projects): New procedure
6084 (Gnatmake): Check if importing libraries should be regenerated because
6085 at least an imported library is more recent.
6086 (Initialize): For each project compute the list of the projects it
6087 imports directly or indirectly.
6088 (Add_Library_Search_Dir): New procedure, used in place of
6089 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
6090 put in the search paths.
6091 (Add_Source_Search_Dir): New procedure, used in place of
6092 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
6093 put in the search paths.
6094 (Mark_Directory): Resolve the absolute path the directory before marking
6097 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
6098 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
6099 Switch. Do not handle any exception.
6100 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
6101 so that the switch is recognized as valid.
6102 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
6104 2005-11-14 GNAT Script <nobody@adacore.com>
6106 * Make-lang.in: Makefile automatically updated
6108 2005-11-14 Pascal Obry <obry@adacore.com>
6110 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
6112 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
6113 In both cases the last argument was dropped.
6115 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
6117 * namet.h: (Column_Numbe): New type.
6118 (Get_Column_Number): Define to sinput__get_column_number.
6119 (Instantiation): Define to sinput__instantiation.
6120 (Get_Column_Number): Declare.
6121 (Instantiation): Likewise.
6123 2005-11-14 Robert Dewar <dewar@adacore.com>
6125 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
6126 syntax, which could cause compiler hangs.
6128 2005-11-14 Vincent Celier <celier@adacore.com>
6130 * prj-ext.adb: Take into account new environment variable
6131 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
6133 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
6134 normalize its path name, making it absolute and resolving symbolic
6135 links, and replace the original if resolved path is different.
6137 2005-11-14 Vincent Celier <celier@adacore.com>
6139 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
6140 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
6142 2005-11-14 Emmanuel Briot <briot@adacore.com>
6144 * prj-pp.adb (Print): Do not output the with statement if the
6145 associated name is empty, which happens for virtual extending projects.
6146 (Print): Preserve the "extends all" attribute when printing the project.
6148 * prj-tree.ads (String_Value_Of): Add comment about returned value for
6149 a virtual extending project.
6151 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6153 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
6154 rhs of an assignment even if the type is unconstrained, when the
6155 context is non-expanding.
6156 In an inlined body, if the context type is private,
6157 resolve with its full view, which must be a composite type.
6159 2005-11-14 Robert Dewar <dewar@adacore.com>
6160 Ed Schonberg <schonberg@adacore.com>
6162 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
6163 Do not give obsolescent warning on with of subprogram (since we
6165 (Analyze_With_Clause): Add test for obsolescent package
6166 (Install_Context_Clauses): If the unit is the body of a child unit, do
6167 not install twice the private declarations of the parents, to prevent
6168 circular lists of Use_Clauses in a parent.
6169 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
6170 compiling body of child unit.
6171 Use new class N_Subprogram_Instantiation
6172 (Expand_With_Clause): If this is a private with_clause for a child unit,
6173 appearing in the context of a package declaration, then the implicit
6174 with_clauses generated for parent units are private as well.
6175 (License_Check): Do not generate message if with'ed unit is internal
6177 2005-11-14 Gary Dismukes <dismukes@adacore.com>
6178 Ed Schonberg <schonberg@adacore.com>
6179 Thomas Quinot <quinot@adacore.com>
6181 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
6182 names are internal, because they will not have a corresponding partner
6183 in the actual package.
6184 (Analyze_Formal_Package): Move the setting of the formal package spec's
6185 Generic_Parent field so that it occurs prior to analyzing the package,
6186 to allow proper operation of Install_Parent_Private_Declarations.
6187 (Analyze_Package_Instantiation): Set the instantiated package entity's
6188 Package_Instantiation field.
6189 (Get_Package_Instantiation_Node): Move declaration to package spec.
6190 Retrieve the N_Package_Instantiation node when the Package_Instantiation
6192 (Check_Generic_Child_Unit): Within an inlined call, the only possible
6193 instantiation is Unchecked_Conversion, for which no parents are needed.
6194 (Inline_Instance_Body): Deinstall and record the use_clauses for all
6195 parent scopes of a scope being removed prior to inlining an instance
6197 (Analyze_Package_Instantiation): Do not perform front-end inlining when
6198 the current context is itself an instance within a non-instance child
6199 unit, to prevent scope stack errors.
6200 (Save_References): If the node is an aggregate that is an actual in a
6201 call, rewrite as a qualified expression to preserve some type
6202 information, to resolve possible ambiguities in the instance.
6203 (Instance_Parent_Unit): New global variable to record the ultimate
6204 parent unit associated with a generic child unit instance (associated
6205 with the existing Parent_Unit_Visible flag).
6206 (type Instance_Env): New component Instance_Parent_Unit for stacking
6207 parents recorded in the global Instance_Parent_Unit.
6208 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
6210 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
6211 it's not a top-level unit, and only do this if Instance_Parent_Unit is
6212 not already set. Replace test of Is_Child_Unit with test of parent's
6213 scope against package Standard. Add comments and a ??? comment.
6214 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
6215 on a child instance parent to test that the parent equals
6216 Instance_Parent rather than simply checking that the unit is not a
6218 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
6219 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
6220 a formal interface are ancestors of the corresponding actual.
6221 (Validate_Formal_Interface_Type): Additional legality checks.
6222 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
6223 interface types with ancestors.
6224 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
6225 to diagnose attempts to use generic within its own declaration.
6227 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6228 Javier Miranda <miranda@adacore.com>
6230 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
6232 (Build_Private_Derived_Type): The entity of the created full view of the
6233 derived type does not come from source. If after installing the private
6234 declarations of the parent scope the parent is still private, use its
6235 full view to construct the full declaration of the derived type.
6236 (Build_Derived_Record_Type): Relax the condition that controls the
6237 execution of the check that verifies that the partial view and
6238 the full view agree in the set of implemented interfaces. In
6239 addition, this test now only takes into account the progenitors.
6240 (Derive_Interface_Subprograms): No need to derive subprograms
6241 of ancestors that are interfaces.
6242 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
6244 Change name Is_Package to Is_Package_Or_Generic_Package
6245 (Complete_Subprograms_Derivation): Handle the case in which the full
6246 view is a transitive derivation of the ancestor of the partial view.
6247 (Process_Full_View): Rename local subprogram Find_Interface_In_
6248 Descendant to Find_Ancestor_Interface to leave the code more clear.
6249 Remove wrong code that avoids the generation of an error message
6250 when the immediate ancestor of the partial view is an interface.
6251 In addition some minor reorganization of the code has been done to
6252 leave it more clear.
6253 (Analyze_Type_Declaration): If type has previous incomplete tagged
6254 partial view, inherit properly its primitive operations.
6255 (Collect_Interfaces): Make public, for analysis of formal
6257 (Analyze_Interface_Declaration): New procedure for use for regular and
6258 formal interface declarations.
6259 (Build_Derived_Record_Type): Add support for private types to the code
6260 that checks if a tagged type implements abstract interfaces.
6261 (Check_Aliased_Component_Type): The test applies in the spec of an
6263 (Access_Type_Declaration): Clean up declaration of malformed type
6264 declared as an access to its own classwide type, to prevent cascaded
6266 (Collect_Interfaces): For private extensions and for derived task types
6267 and derived protected types, the parent may be an interface that must
6268 be included in the interface list.
6269 (Access_Definition): If the designated type is an interface that may
6270 contain tasks, create Master_Id for it before analyzing the expression
6271 of the declaration, which may be an allocator.
6272 (Record_Type_Declaration): Set properly the interface kind, for use
6273 in allocators, the creation of master id's for task interfaces, etc.
6275 2005-11-14 Javier Miranda <miranda@adacore.com>
6276 Ed Schonberg <schonberg@adacore.com>
6278 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
6279 omitted in case of stream attribute subprograms.
6280 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
6281 appear immediately after a subprogram body, when there is no previous
6282 subprogram declaration.
6283 Change name Is_Package to Is_Package_Or_Generic_Package
6284 (Process_Formals): A non null qualifier on a non null named access
6285 type is not an error, and is a warning only if Redundant_Constructs
6288 2005-11-14 Gary Dismukes <dismukes@adacore.com>
6289 Ed Schonberg <schonberg@adacore.com>
6291 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
6292 nested within Analyze_Package_Specification to install the private
6293 declarations and use clauses within each of the parent units of a
6294 package instance of a generic child package.
6295 (Analyze_Package_Specification): When entering a private part of a
6296 package associated with a generic instance or formal package, the
6297 private declarations of the parent must be installed (by calling new
6298 procedure Install_Parent_Private_Declarations).
6299 Change name Is_Package to Is_Package_Or_Generic_Package
6300 (Preserve_Full_Attributes): For a synchronized type, the corresponding
6301 record is absent in a generic context, which does not indicate a
6304 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6306 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
6307 not try to rewrite a renamed stream attribute, because the operations
6308 on the type may not have been generated.
6309 Handle properly a renaming_as_body generated for a stream operation
6310 whose default is abstract because the object type itself is abstract.
6311 (Find_Type): If the type is incomplete and appears as the prefix of a
6312 'Class reference, it is tagged, and its list of primitive operations
6313 must be initialized properly.
6314 (Chain_Use_Clauses): When chaining the use clauses that appear in the
6315 private declaration of a parent unit, prior to compiling the private
6316 part of a child unit, find on the scope stack the proper parent entity
6317 on which to link the use clause.
6318 (Note_Redundant_Use): Emit a warning when a redundant use clause is
6320 (Analyze_Object_Renaming): An attribute reference is not a legal object
6321 if it is not a function call.
6323 2005-11-14 Robert Dewar <dewar@adacore.com>
6324 Ed Schonberg <schonberg@adacore.com>
6326 * sem_eval.adb: Implement d.f flag
6327 (Subtype_Statically_Match): A generic actual type has unknown
6328 discriminants when the corresponding actual has a similar partial view.
6329 If the routine is called to validate the signature of an inherited
6330 operation in a child instance, the generic actual matches the full view,
6332 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
6333 Ed Schonberg <schonberg@adacore.com>
6334 Robert Dewar <dewar@adacore.com>
6335 Thomas Quinot <quinot@adacore.com>
6337 * sem_res.adb (Resolve_Call): Provide a better error message whenever
6338 a procedure call is used as a select statement trigger and is not an
6339 entry renaming or a primitive of a limited interface.
6340 (Valid_Conversion): If the operand has a single interpretation do not
6341 remove address operations.
6342 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
6343 statement to inhibit warning.
6344 (Resolve_Unary_Op): Do not produce a warning when
6345 processing an expression of the form -(A mod B)
6346 Use Universal_Real instead of Long_Long_Float when we need a high
6347 precision float type for the generated code (prevents gratuitous
6348 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
6349 (Resolve_Concatenation_Arg): Improve error message when argument is an
6350 ambiguous call to a function that returns an array.
6351 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
6352 there is an implicit operator in the given scope if we are within an
6353 instance: legality check has been performed on the generic.
6354 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
6355 after resolving operand, to avoid false warnings on overloaded calls.
6357 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6358 Javier Miranda <miranda@adacore.com>
6361 * sem_type.adb (Covers): In an inlined body, a composite type matches
6362 a private type whose full view is a composite type.
6363 (Interface_Present_In_Ancestor): Protect the frontend against
6364 previously detected errors to ensure that its compilation
6365 with assertions enabled gives the same output that its
6366 compilation without assertions.
6367 (Interface_Present_In_Ancestor): Add support for private types.
6368 Change name In_Actual to In_Generic_Actual (clean up)
6369 (Disambiguate): New predicate In_Actual, to recognize expressions that
6370 appear in the renaming declaration generated for generic actuals, and
6371 which must be resolved in the outer context.
6373 2005-11-14 Robert Dewar <dewar@adacore.com>
6374 Thomas Quinot <quinot@adacore.com>
6375 Hristian Kirtchev <kirtchev@adacore.com>
6376 Ed Schonberg <schonberg@adacore.com>
6378 * sem_util.ads, sem_util.adb: Change name Is_Package to
6379 Is_Package_Or_Generic_Package.
6380 (Check_Obsolescent): New procedure.
6381 (Set_Is_Public): Remove obsolete junk test.
6382 (Set_Public_Status): Do not set Is_Public on an object whose declaration
6383 occurs within a handled_sequence_of_statemets.
6384 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
6385 for a parameterless procedure.
6386 (Enter_Name): Recognize renaming declarations created for private
6387 component of a protected type within protected operations, so that
6388 the source name of the component can be used in the debugger.
6390 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6391 Robert Dewar <dewar@adacore.com>
6393 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
6394 of a generic subprogram are not visible outside the body.
6395 (Set_Warning_Switch): New procedure (code to set warning mode moved
6396 here from Switch.C so that it can be shared by pragma processing.
6397 (Check_References): Special case warning for non-modified non-imported
6399 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
6400 form with a string literal argument
6402 2005-11-14 Javier Miranda <miranda@adacore.com>
6404 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
6406 (Write): Addition of "not null" to the anonymous access.
6407 (Read): Addition of "not null" to the anonymous access.
6408 (Write): Addition of "not null" to the anonymous access.
6410 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
6411 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
6412 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
6413 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
6414 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
6415 "not null" to the anonymous access.
6417 2005-11-14 Robert Dewar <dewar@adacore.com>
6419 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
6422 2005-11-14 Vincent Celier <celier@adacore.com>
6424 * switch.adb (Bad_Switch): New procedure
6425 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
6426 message when in error.
6428 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
6429 Too_Many_Output_Files): Remove declarations, no longer used.
6430 (Scan_Nat): New parameter Switch
6432 (Bad_Switch): New procedure
6434 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
6435 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
6436 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
6437 to Osint.Fail. Do not handle any exception.
6439 2005-11-14 Vincent Celier <celier@adacore.com>
6441 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
6442 designates a non existent directory.
6444 2005-11-14 Robert Dewar <dewar@adacore.com>
6446 * xgnatugn.adb: Replace invalid membership test by 'Valid
6448 2005-11-14 Vincent Celier <celier@adacore.com>
6450 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
6451 there is no object directory.
6453 2005-11-14 Robert Dewar <dewar@adacore.com>
6455 * usage.adb: Minor adjustment to output format, use nn instead of nnn
6456 (so that -gnateInnn does not run into next column)
6458 2005-11-14 Ed Falis <falis@adacore.com>
6460 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
6463 2005-11-14 Cyrille Comar <comar@adacore.com>
6465 * s-chepoo.ads: Add comments on Dereference.
6466 Remove unnecessary inherited abstract primitives.
6469 2005-11-14 Robert Dewar <dewar@adacore.com>
6471 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
6472 node parameter, not needed, since it is available as Declaration_Node.
6474 2005-11-14 Geert Bosch <bosch@adacore.com>
6476 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
6477 grammatically correct.
6479 2005-11-14 Vincent Celier <celier@adacore.com>
6481 * s-fileio.ads: Correct spelling error in comment
6483 2005-11-14 Cyrille Comar <comar@adacore.com>
6484 Robert Dewar <dewar@adacore.com>
6485 Vincent Celier <celier@adacore.com>
6486 Ben Brosgol <brosgol@adacore.com>
6487 Jose Ruiz <ruiz@adacore.com>
6488 Pascal Obry <obry@adacore.com>
6491 Document that -fstack-check is needed for strict compliance with the
6492 Ada 95 Reference Manual.
6493 Correct reference to VAX systems to meet HP guidelines
6494 Add documentation for new gnatmake switches -vl, -vm and -vh
6495 Replace DEC Ada by HP Ada
6496 Replace DIGITAL by HP
6497 Remove empty section on tools in compatibility section
6498 Clarify the Windows convention semantics.
6499 Document the Win32 calling convention.
6500 The Stdcall, Win32 and DLL convention are synonyms.
6501 Add a note in -gnatR description about zero size record components
6502 Note on new >= and <= warnings for -gnatwc
6503 Document that equal sign after -gnatm is optional.
6504 Note that strip is working fine on DLL built with a Library
6505 Project. The restriction apply only to DLL built with gnatdll.
6506 Update section about the way to debug a DLL.
6507 Update information about the DLL convention.
6508 Document -C switch for gnatprep
6509 Document new attribute Library_ALI_Dir
6510 Update elaboration doc to include implicit Elaborate pragmas now
6511 generated for subprogram instantiations.
6512 Document limitation on executable names that include spaces for --GCC,
6513 --GNATBIND, and --GNATLINK switches.
6514 Document that -w causes -gnatws to be added at start of gcc switches
6516 * gnat_rm.texi: Document that -mieee is needed for generating infinite
6517 and NaN values in case of overflow on machines that are not fully
6518 compliant with the IEEE floating-point standard.
6519 Create a section describing the set of compiler options needed for
6520 strict compliance with the Ada 95 Reference Manual.
6521 Add documentation for pragma Obsolescent applied to a package
6522 Clarify potential issues of mixed language programs related to the
6523 I/O buffering enabling in the elaboration of the GNAT runtime.
6524 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
6525 This documentation only patch adds extra documentsion for pragma
6526 Restrictions (No_Elaboration_Code), explaining why it is not possible
6527 to document this restriction in terms of allowed source constructs.
6528 Document string literal form of pragma Warnings
6529 Document new attribute Library_ALI_Dir
6530 Add documentation on stable attributes in project files that was missing
6532 * gnat-style.texi: Indicate that paragraphs within a single comment
6533 should be separated by empty comment lines
6535 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
6538 * bindusg.adb: Minor cleanup, put -m before -M for consistency
6540 2005-11-14 Robert Dewar <dewar@adacore.com>
6542 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
6543 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
6544 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
6545 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
6546 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
6547 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
6548 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
6549 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
6550 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
6551 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
6552 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
6553 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
6554 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
6555 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
6556 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
6557 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
6558 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
6559 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
6560 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
6561 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
6562 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
6563 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
6564 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
6565 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
6566 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
6567 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
6568 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
6569 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
6570 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
6571 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
6572 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
6573 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
6574 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
6575 system-interix.ads, system-solaris-sparc.ads,
6576 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
6577 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
6578 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
6579 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
6580 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
6581 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
6582 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
6583 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
6584 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
6585 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
6586 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
6587 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
6588 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
6589 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
6590 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
6591 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
6592 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
6593 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
6594 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
6595 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
6596 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
6597 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
6598 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6599 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
6600 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
6601 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
6602 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
6603 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
6604 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
6605 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
6606 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
6607 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
6608 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
6609 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
6610 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
6611 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
6612 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
6613 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
6614 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
6615 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
6616 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
6617 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
6618 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
6619 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
6620 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
6621 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
6622 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
6623 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
6624 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
6625 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
6626 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
6627 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
6628 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
6629 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
6630 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
6631 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
6632 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
6633 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
6634 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
6635 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
6636 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
6637 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
6638 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
6639 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
6640 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
6641 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
6642 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
6643 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
6644 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
6645 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
6646 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
6647 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
6648 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
6649 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
6650 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
6651 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
6652 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
6653 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
6654 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
6655 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
6656 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
6657 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
6658 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
6659 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
6660 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
6661 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
6662 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
6663 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
6664 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
6665 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
6666 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
6667 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
6668 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
6669 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
6670 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
6671 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
6672 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
6673 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
6674 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
6675 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
6676 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
6677 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
6678 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
6679 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
6680 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
6681 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
6682 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
6683 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
6684 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
6685 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
6686 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
6687 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
6688 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
6689 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
6690 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
6691 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
6692 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
6693 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
6694 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
6695 a-numaux-darwin.ads, a-numaux-darwin.adb,
6696 a-swuwha.ads, a-stunha.ads: Minor reformatting
6698 2005-11-14 Robert Dewar <dewar@adacore.com>
6701 * osint-m.adb: Add pragma Elaborate_All for Osint
6703 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
6706 * trans.c (call_to_gnu): Restore statement lost in translation.
6708 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
6710 * init.c: Use the Linux-specific section for the IA-64/Linux target.
6711 (__gnat_adjust_context_for_raise): Add conditional code so that the
6712 IA-64 is also supported.
6714 2005-11-03 James E Wilson <wilson@specifix.com>
6717 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
6718 TREE_OVERFLOW check.
6720 2005-09-21 Olivier Hainque <hainque@adacore.com>
6723 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
6724 as we create them to store a size in bits.
6726 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
6734 * utils2.c (build_return_expr): New helper function.
6735 * gigi.h (build_return_expr): Declare it.
6736 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
6737 of manually building the RETURN_EXPR tree.
6738 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
6739 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
6740 build_binary_op for the "target pointer" case. Use build_return_expr
6741 instead of manually building the RETURN_EXPR tree.
6743 2005-09-16 Laurent GUERBY <laurent@guerby.net>
6746 * s-tpinop.ads: Make this unit Preelaborate.
6748 2005-09-16 Andreas Jaeger <aj@suse.de>
6750 * socket.c: Add string.h for memcpy.
6752 2005-09-05 Arnaud Charlet <charlet@adacore.com>
6754 * dec-io.ads, dec-io.adb: Removed, no longer used.
6756 2005-09-01 Arnaud Charlet <charlet@adacore.com>
6758 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
6760 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
6761 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
6762 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
6763 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
6764 dependent units are Preelaborate.
6765 (Initialize): Call Interrupt_Managemeent.Initialize and
6766 OS_Primitives.Initialize to ensure proper initialization of this unit.
6767 Remove use of System.Soft_Links
6768 Make this unit Preelaborate.
6770 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
6771 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
6772 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
6773 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
6774 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
6775 s-tratas.ads, s-tasinf.ads: Minor reformatting.
6776 Add pragma Preelaborate, since these packages are suitable for this
6780 * s-traent-vms.ads, s-intman-dummy.adb,
6781 s-taprop-dummy.adb: Make this unit Preelaborate.
6783 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
6784 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
6785 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
6786 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
6787 s-intman-solaris.adb, s-intman-irix-athread.adb,
6788 s-intman-irix.adb: Mark this unit Preelaborate.
6789 (Initialize): New procedure.
6792 * s-taspri-linux.ads: Removed.
6794 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
6795 as done by other implementations (e.g. posix).
6797 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
6798 responsible for deferring abort.
6799 Mark this unit Preelaborate.
6801 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
6802 proper initialization of the tasking run-time.
6804 * s-tasdeb.ads: Mark this unit Preelaborate.
6805 (Known_Tasks): Add explicit default value to avoid elaboration code.
6807 * s-inmaop-vms.adb (Elaboration code): Add call to
6808 Interrupt_Management.Initialize since the elaboration code depends on
6809 proper initialization of this package.
6811 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
6812 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
6813 s-osprim-posix.adb: Make this unit Preelaborate.
6815 * a-calend.adb: Add call to OS_Primitives.Initialize
6817 * a-elchha.adb: Update use of Except.Id.Full_Name.
6819 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
6821 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
6822 Move with clauses outside Warnings Off now that dependent units are
6824 Use raise xxx with "..."; Ada 2005 form.
6826 * a-taside.ads, a-taside.adb:
6827 Remove some dependencies, to make it easier to make this unit truly
6829 Rewrite some code to be conformant with Preelaborate rules.
6831 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
6832 marked Preelaborate in the future.
6834 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
6835 these units Preelaborate.
6837 * s-exctab.adb: Update use of Except.Id.Full_Name.
6839 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
6840 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
6841 Set_Exc_Stack_Addr): Removed, no longer used.
6842 Remove reference to *Machine_State_Addr*, no longer needed.
6844 * s-stalib.ads: Mark this unit as Preelaborate[_05].
6845 (Exception_Data): Full_Name is now a System.Address so that this unit
6846 can be made Preelaborate.
6847 Clean up/simplify code thanks to Full_Name being a System.Address.
6848 Remove obsolete pragma Suppress (All_Checks), no longer needed.
6850 * s-taskin.ads, s-taskin.adb:
6851 Move with clauses outside Warnings Off now that dependent units are
6853 Make this unit Preelaborate.
6854 (Initialize): New proceduure, replace elaboration code and makes the
6855 set up of the tasking run-time cleaner.
6856 (Detect_Blocking): Now a function instead of a deferred boolean, to
6857 obey Preelaborate rules.
6859 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
6860 soft links, no longer used.
6862 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
6863 packages are suitable for this categorization.
6865 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
6866 since we compile run-time sources in Ada 2005 mode.
6867 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
6868 avoid having s-taprop*.adb depend on s-soflin and to avoid code
6870 Remove reference to *Machine_State_Addr*, no longer needed.
6872 2005-09-01 Arnaud Charlet <charlet@adacore.com>
6874 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
6875 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
6876 Remove reference to System.Exceptions.
6878 * s-mastop-x86.adb: Removed, no longer used.
6880 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
6882 * a-excach.adb: Minor reformatting.
6884 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
6885 instead fix new warnings that were hidden by this change.
6886 (AAA, ZZZ): Removed, replaced by...
6887 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
6888 are used instead of constants, to help make Ada.Exception truly
6890 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
6891 Raise_Storage_Error): File is now a System.Address, to simplify code.
6892 (Elab code): Removed, no longer used.
6893 (Null_Occurrence): Remove Warnings Off and make this construct
6895 Remove code related to front-end zero cost exception handling, since
6896 it is no longer used.
6897 Remove -gnatL/-gnatZ switches.
6899 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
6900 Update use of Except.Msg.
6902 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
6903 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
6904 to front-end zero cost exception handling, since it is no longer used.
6905 Remove -gnatL/-gnatZ switches.
6907 * lib-writ.ads: Minor reformatting
6910 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
6912 * Make-lang.in: Remove references to s-except.ads
6914 * s-except.ads: Removed, no longer used.
6916 * s-mastop.ads, s-mastop.adb:
6917 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
6918 Remove reference to System.Exceptions.
6920 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
6921 switch-b.adb: Remove code related to front-end zero cost exception
6922 handling, since it is no longer used.
6923 Remove -gnatL/-gnatZ switches.
6925 2005-09-01 Robert Dewar <dewar@adacore.com>
6926 Gary Dismukes <dismukes@adacore.com>
6927 Javier Miranda <miranda@adacore.com>
6929 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
6930 type by valid test and generate warning.
6931 (Tagged_Membership): Generate call to the run-time
6932 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
6933 Change formal name Subtype_Mark to Result_Definition in several calls to
6934 Make_Function_Specification.
6935 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
6936 check for proper accessibility of the operand of a class-wide allocator.
6937 The check can be left out if checks are suppressed or if the expression
6938 has a specific tagged type whose level is known to be safe.
6940 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
6941 generates the run-time check associated with null-excluding entities.
6942 (Expand_N_Return_Statement): Add tests to determine if the accessibility
6943 check on the level of the return expression of a class-wide function
6944 can be elided. The check usually isn't needed if the expression has a
6945 specific type (unless it's a conversion or a formal parameter). Also
6946 add a test for whether accessibility checks are suppressed. Augment
6947 the comments to describe the conditions for performing the check.
6949 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
6950 Javier Miranda <miranda@adacore.com>
6951 Gary Dismukes <dismukes@adacore.com>
6952 Ed Schonberg <schonberg@adacore.com>
6954 * a-tags.adb (IW_Membership): Give support to
6955 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
6956 subprogram has been extended to look for the tag in the ancestors tag
6958 Update the structure of the GNAT Dispatch Table to reflect the
6959 additional two tables used in dispatching selects.
6960 Introduce appropriate array types and record components in
6961 Type_Specific_Data to reflect the two tables.
6962 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
6963 the TSD of a tag, indexed by position.
6964 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
6965 operation kind in the TSD of a tag, indexed by position.
6967 * a-tags.ads: Introduce an enumeration type to capture different
6968 primitive operation kinds. Define a constant reflecting the number of
6969 predefined primitive operations.
6970 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
6971 of an entry wrapper.
6972 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
6973 callable entity of a primitive operation.
6975 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
6976 primitive operations used in dispatching selects for limited
6977 interfaces, limited tagged, task and protected types what implement a
6979 (Freeze_Type): Generate the bodies of the primitive operations used in
6980 dispatching selects for limited tagged, task and protected types that
6981 implement a limited interface. Generate statements to populate the two
6982 auxiliary tables used for dispatching in select statements.
6983 (Freeze_Record_Type): Add call to initialize the dispatch table entries
6984 associated with predefined interface primitive operations.
6985 (Build_Dcheck_Function): Change Set_Subtype_Mark to
6986 Set_Result_Definition.
6987 (Build_Variant_Record_Equality): Change Subtype_Mark to
6989 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
6990 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
6991 (Build_Assignment): Simplify the code that adds the run-time-check.
6992 (Expand_N_Object_Declaration): Code cleanup.
6994 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
6995 entries when there is a protected type that implements a limited
6998 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
6999 common routines used in expansion of dispatching selects.
7000 (Add_Private_Declarations): Select the appropriate protection type when
7001 there is a protected type that implements a limited interface.
7002 (Build_Parameter_Block): Generate a wrapped parameter block.
7003 (Build_Protected_Subprogram_Body): Select the appropriate type for
7004 locking entries when there is a protected type that implements a
7006 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
7007 classified as entry wrappers.
7008 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
7009 asynchronous selects.
7010 (Expand_N_Conditional_Entry_Call): Add support for expansion of
7011 dispatching conditional selects.
7012 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
7013 protection when there is a protected type that implements limited
7015 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
7017 (Extract_Dispatching_Call): Extract the entity of the name of a
7018 dispatching call, the object parameter, actual parameters and
7019 corresponding formals.
7020 (Make_Initialize_Protection): Correct logic of protection initialization
7021 when there is a protected type that implements a limited interface.
7022 (Parameter_Block_Pack): Populate a wrapped parameter block with the
7023 values of actual parameters.
7024 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
7025 block and assign them to the original actual parameters.
7027 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
7028 (Build_Protected_Sub_Specification): Change the type and name of the
7029 last formal to account for the increased variety of protection modes.
7031 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
7032 entities. Used to save the value of the Is_Hidden attribute when the
7033 limited-view is installed.
7034 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
7035 the attribute of procedures classified as entry wrappers.
7036 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
7037 entity of a primitive wrapper.
7038 (Write_Entity_Flags): Output the name and value of the
7039 Is_Primitive_Wrapper attribute.
7040 (Write_Field27_Name): Output the name and entity of the field Wrapped_
7042 (Underlying_Type): If we have an incomplete entity that comes from
7043 the limited view then we return the Underlying_Type of its non-limited
7044 view if it is already available.
7045 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
7046 including operators.
7047 (Write_Field26_Name): Add entry for Overridden_Operation
7048 (Overridden_Operation): New attribute of functions and procedures.
7050 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
7051 predefined position in the dispatch table for the primitive operations
7052 used in dispatching selects.
7053 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
7054 predefined primitive operations and replace it with
7055 Default_Prim_Op_Count.
7056 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
7057 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
7058 the names of the generated primitive operations used in dispatching
7060 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
7061 case of abstract interface types. They will be inherit by the objects
7062 implementing the interface.
7063 (Make_DT): There is no need to inherit the dispatch table of the
7064 ancestor interface for the elaboration of abstract interface types.
7065 The dispatch table will be inherited by the object implementing the
7067 (Copy_Secondary_DTs): Add documentation.
7068 (Validate_Position): Improve this static check in case of
7069 aliased subprograms because aliased subprograms must have
7071 (Init_Predefined_Interface_Primitives): New subprogram that initializes
7072 the entries associated with predefined primitives of all the secondary
7074 (Build_Anonymous_Access_Type): Removed.
7075 (Expand_Interface_Actuals): With the previous cleanup there is no need
7076 to build an anonymous access type. This allows further cleanup in the
7077 code generated by the expander.
7078 (Expand_Interface_Conversion): If the actual is an access type then
7079 build an internal function to handle the displacement. If the actual
7080 is null this function returns null because no displacement is
7081 required; otherwise performs a type conversion that will be
7082 expanded in the code that returns the value of the displaced actual.
7083 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
7084 conversions that have no effect in the generated code because no
7085 displacement is required. Code cleanup; use local variables to
7086 avoid repeated calls to the subprogram directly_designated_type().
7088 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7089 Classify the primitive operations used in dispatching selects as
7091 (Implements_Limited_Interface): Determine whether some type either
7092 directly implements a limited interface or extends a type that
7093 implements a limited interface.
7094 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
7095 (Expand_Subtype_From_Expr): Do not build actual subtype if the
7096 expression is limited.
7097 (Find_Interface_Tag): Add code to handle class-wide types and
7098 entities from the limited-view.
7100 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
7101 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
7102 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
7103 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
7106 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
7107 of procedure name or prefix that appears as a trigger in a triggering
7110 * uintp.ads: Introduce constants Uint_11 and Uint_13.
7112 2005-09-01 Arnaud Charlet <charlet@adacore.com>
7114 * s-tataat.adb, a-tasatt.adb:
7115 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
7117 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
7118 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
7119 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
7122 2005-09-01 Arnaud Charlet <charlet@adacore.com>
7123 Jose Ruiz <ruiz@adacore.com>
7125 * s-taprop-vxworks.adb:
7126 Move with clauses outside Warnings Off now that dependent units are
7128 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
7129 initialization of this unit.
7130 (Specific): Add new procedures Initialize and Delete so that this
7131 package can be used for VxWorks 5.x and 6.x
7132 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
7133 differences between VxWorks 5.x and 6.x
7135 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
7137 Use only Preelaborate-compatible constructs.
7139 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
7140 Primitives.Operations.
7141 (Delete, Initialize): New procedures.
7143 * s-osinte-vxworks.adb: Body used to handle differences between
7145 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
7147 * s-osinte-vxworks.ads: Minor reformatting.
7148 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
7149 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
7151 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
7152 between Vxworks 5 and 6.
7153 (taskLock, taskUnlock): Removeed, no longer used.
7155 * adaint.c: The wait.h header is not located in the sys directory on
7156 VxWorks when using RTPs.
7157 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
7159 (__gnat_dup): dup is available on Vxworks when using RTPs.
7160 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
7162 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
7164 * expect.c: The wait.h header is not located in the sys directory on
7165 VxWorks when using RTPs.
7167 2005-09-01 Thomas Quinot <quinot@adacore.com>
7169 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
7171 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
7173 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
7174 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
7175 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
7176 g-soccon-freebsd.ads: Add new constants:
7178 SO_RCVTIMEO/SO_SNDTIMEO
7182 Move all target-specific file inclusions and macro definitions to
7183 gsocket.h, in order to ensure that any C code in socket.c will see a
7184 set of constants that is consistent with the contents of g-soccon.ads.
7186 * gsocket.h: Code imported from gen-soccon.c:
7187 Move all target-specific file inclusions and macro definitions to
7188 gsocket.h, in order to ensure that any C code in socket.c will see a set
7189 of constants that is consistent with the contents of g-soccon.ads.
7190 This change also makes gen-soccon self-contained (removing dependencies
7191 upon GCC internal headers).
7193 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
7195 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
7197 * socket.c: Minor reformatting.
7199 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7200 Thomas Quinot <quinot@adacore.com>
7202 * fname-sf.adb, mlib-tgt.ads,
7203 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
7204 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
7205 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
7206 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
7207 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
7208 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
7209 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
7210 makegpr.adb: Remove redundant use_clauses.
7212 2005-09-01 Arnaud Charlet <charlet@adacore.com>
7214 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
7215 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
7216 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
7217 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
7218 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
7219 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
7220 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
7221 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
7222 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7223 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
7224 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
7225 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
7226 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
7227 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
7228 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
7229 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7230 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
7231 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
7232 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
7233 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7234 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
7235 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
7236 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
7237 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
7238 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
7239 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
7240 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
7241 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
7242 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
7243 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
7244 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
7245 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
7246 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
7247 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
7248 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
7249 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
7250 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
7251 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
7252 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
7253 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
7254 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
7255 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
7256 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
7257 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
7258 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
7259 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
7260 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
7261 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
7262 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
7263 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
7264 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
7265 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
7266 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
7267 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
7268 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
7269 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
7270 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
7271 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
7272 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
7273 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
7274 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
7275 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
7276 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
7277 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
7278 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
7279 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
7280 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
7281 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
7282 and always use the no parameter form for consistency.
7284 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
7286 2005-09-01 Robert Dewar <dewar@adacore.com>
7288 * binde.adb: Minor reformatting
7289 (Find_Elab_Order): Output warning if -p used with static elab order
7291 2005-09-01 Robert Dewar <dewar@adacore.com>
7293 * checks.adb (Check_Needed): New procedure, deals with removing checks
7294 based on analysis of short-circuited forms. Also generates warnings for
7295 improper use of non-short-circuited forms.
7298 2005-09-01 Robert Dewar <dewar@adacore.com>
7300 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
7303 2005-09-01 Robert Dewar <dewar@adacore.com>
7305 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
7307 Implement new insertion char < (conditional warning)
7308 * errutil.adb, erroutc.adb: Implement new insertion char <
7309 (conditional warning).
7310 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
7311 (Error_Msg_Warn): New variable for < insertion char.
7312 * prj-nmsc.adb: Implement new errout insertion char < (conditional
7314 (Check_For_Source): Change value of Source_Id only after the current
7315 source has been dealt with.
7317 2005-09-01 Robert Dewar <dewar@adacore.com>
7318 Doug Rupp <rupp@adacore.com>
7320 * exp_attr.adb: Handle vax fpt for 'Valid attribute
7321 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
7322 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
7323 (Valid_D, Valid_F, Valid_G): New functions
7325 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7326 Hristian Kirtchev <kirtchev@adacore.com>
7327 Javier Miranda <miranda@adacore.com>
7329 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
7330 from object notation, the original node is unanalyzed and carries no
7331 semantic information, so that accessiblity checks must be performed on
7332 the type of the actual itself.
7333 (Expand_N_Subprogram_Declaration): Change last actual parameter for
7334 compatibility with Build_Protected_Sub_Specification.
7335 (Check_Overriding_Inherited_Interfaces): Add suport to handle
7336 overloaded primitives.
7337 (Register_Interface_DT_Entry): Use the new name of the formal
7338 the the calls to Expand_Interface_Thunk
7340 * exp_dbug.ads: Augment comments on encoding of protected types to
7341 include the generation of dispatching subprograms when the type
7342 implements at least one interface.
7344 * lib.ads: Extend information in Load_Stack to include whether a given
7345 load comes from a Limited_With_Clause.
7347 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
7348 whether a potential circularity is harmless, because it includes units
7349 loaded through a limited_with clause. Extends previous treatment which
7350 did not handle properly arbitrary combinations of limited and
7351 non-limited clauses.
7353 2005-09-01 Nicolas Setton <setton@adacore.com>
7355 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
7356 to be encoded as typ___XBLU_lowerbound__upperbound instead of
7357 typ___XB_lowerbound__upperbound.
7359 2005-09-01 Thomas Quinot <quinot@adacore.com>
7361 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
7362 dummy access formal for RACW/RAS TypeCode TSS.
7363 (Build_TypeCode_Call): Do not generate dummy null access actual for
7364 calls to the TypeCode TSS.
7366 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7368 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
7369 fully qualified name, to distinguish instances with the same local name.
7371 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
7374 2005-09-01 Robert Dewar <dewar@adacore.com>
7376 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
7379 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
7381 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
7382 (Free): New deallocation procedure for filter elements
7383 (Close): Deallocate any existing filter for the concerned connection
7385 2005-09-01 Laurent Pautet <pautet@adacore.com>
7387 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
7388 position set is provided, we compute one in order to reduce the maximum
7389 length of the keys. This computation first selects a character
7390 position between 1 and the minimum length of the keys in order to
7391 avoid reducing one of the keys to an empty string.
7392 (Initialize, Compute): When the ratio V to K is too low, the algorithm
7393 does not converge. The initialization procedure now comes with a
7394 maximum number of iterations such that when exceeded, an exception is
7395 raised in Compute. The user can initialize this ratio to another value
7397 Reformating and updated headers.
7399 2005-09-01 Javier Miranda <miranda@adacore.com>
7401 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
7402 that given an entity T creates and returns an Itype that duplicates the
7403 contents of T. The returned Itype has the null-exclusion
7404 attribute set to True, and its Etype attribute references T
7405 to keep the association between the two entities.
7406 Update copyright notice
7408 * sem_aggr.adb (Check_Can_Never_Be_Null,
7409 Aggregate_Constraint_Checks, Resolve_Aggregate,
7410 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
7412 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
7414 2005-09-01 Gary Dismukes <dismukes@adacore.com>
7415 Robert Dewar <dewar@adacore.com>
7416 Hristian Kirtchev <kirtchev@adacore.com>
7418 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
7421 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
7423 Call Set_Result_Definition instead of Set_Subtype_Mark.
7424 (P_Subprogram_Specification): Add parsing of anonymous access result
7425 plus null exclusions. Call Set_Result_Definition instead of
7428 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
7429 (P_Access_Type_Definition): Add parsing for an anonymous access result
7430 subtype, plus parsing for null exclusions. Call Set_Result_Definition
7431 instead of Set_Subtype_Mark.
7433 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
7434 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
7435 (Result_Definition): New function for N_Function_Specifications.
7436 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
7437 N_Function_Specification.
7438 (Set_Null_Exclusion_Present): Allow this flag for
7439 N_Function_Specification.
7440 (Set_Result_Definition): New procedure for N_Function_Specifications.
7441 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
7442 and N_Function_Specification.
7444 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
7445 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
7446 Add support for LIMITED NEW for Ada 2005 AI-419
7447 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
7448 syntax for anonymous access results.
7449 Replace Subtype_Mark field by Result_Definition in
7450 N_Function_Specification and N_Access_Definition specs.
7451 Add Null_Exclusion_Present to spec of N_Function_Specification.
7452 (Result_Definition): New function for N_Function_Specification and
7453 N_Access_Function_Definition.
7454 (Set_Result_Definition): New procedure for N_Function_Specification and
7455 N_Access_Function_Definition.
7457 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
7458 Result_Definition for cases of N_Access_Function_Definition and
7459 N_Function_Specification.
7460 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
7462 2005-09-01 Vincent Celier <celier@adacore.com>
7464 * lib-writ.adb: Update Copyright notice
7465 (Write_With_Lines): On platforms where file names are case-insensitive,
7466 record the file names in lower case.
7467 (Write_ALI): For D lines, on platforms where file names are
7468 case-insensitive, record the file names in lower case.
7470 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7471 Emmanuel Briot <briot@adacore.com>
7473 * lib-xref.adb (Output_Overridden_Op): Display information on
7474 overridden operation.
7476 * lib-xref.ads: Add documentation on overridden operations.
7478 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
7481 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
7482 overriding entity information.
7484 2005-09-01 Vincent Celier <celier@adacore.com>
7486 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
7487 including those that are inherited.
7489 2005-09-01 Robert Dewar <dewar@adacore.com>
7491 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
7493 * par-prag.adb: Implement new pragma Debug_Policy
7495 * sem_prag.adb Implement new pragma Debug_Policy
7496 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
7497 Component_Size attribute specification. Give warning for ignored pragma
7500 * snames.h, snames.ads, snames.adb: Introduce entries in
7501 Preset_Names for Name_Disp_Asynchronous_Select,
7502 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
7503 Name_Disp_Timed_Select.
7504 New pragma Debug_Policy
7506 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
7508 Switch -gnata also sets Debug_Pragmas_Enabled
7510 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
7511 handle an explicit -gnata when compiling predefined files.
7513 2005-09-01 Vincent Celier <celier@adacore.com>
7515 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
7516 directories of projects that have no Ada sources.
7518 2005-09-01 Robert Dewar <dewar@adacore.com>
7520 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
7521 (makes a difference for wide characters)
7523 * widechar.adb, widechar.ads:
7524 Add Wide_Char_Byte_Count feature to count chars vs bytes
7526 2005-09-01 Thomas Quinot <quinot@adacore.com>
7527 Ed Schonberg <schonberg@adacore.com>
7528 Robert Dewar <dewar@adacore.com>
7530 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
7531 'Address attribute reference with an overloaded prefix, use the
7532 location of the prefix (not the location of the attribute reference) as
7534 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
7535 a function renaming thereof, is a valid prefix for 'Size (where it is
7536 intepreted as a function call).
7537 (Statically_Denotes_Entity): New predicate to determine whether the
7538 prefix of an array attribute can be considered static.
7541 (Eval_Attr): Fix failure to evaluate Component_Size for
7542 unconstrained arrays (resulted in wrong value in packed case, since
7543 back end cannot handle this case)
7545 2005-09-01 Robert Dewar <dewar@adacore.com>
7547 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
7548 error msgs for most common cases.
7549 Use new errout insertion char < (conditional warning)
7551 2005-09-01 Javier Miranda <miranda@adacore.com>
7552 Ed Schonberg <schonberg@adacore.com>
7554 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
7555 become local to the whole package.
7556 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
7557 the package was already analyzed the new algorithm "replaces" the
7558 real entities by the shadow ones. This is required to ensure that
7559 the order of these entities in the homonym chains does not change;
7560 otherwise we can have undefined references at linking time because
7561 in case of conflicts the external name of the entities will have
7562 a suffix that depends on the order of the entities in the chain.
7563 (Remove_Limited_With_Clause): Complementary code that completes the
7564 new algorithm and replaces the shadow entities by the real ones.
7565 (Install_Limited_Withed_Unit): When unchaining entities before the
7566 installation of the shadow entities, only regular entities of the
7567 public part must be taken into account. This is required to
7568 keep this routine in synch with the work done by Remove_Limited_
7570 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
7571 even if unit is analyzed, because the analysis of the unit is
7572 idempotent in any case, and the limited view of the unit may have to
7573 be installed for proper visibility.
7574 (Expand_Limited_With_Clause): Even if the unit in the implicit
7575 with_clause has been analyzed already, a limited view of the package
7576 must be built for the current context, if it does not exist yet.
7578 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7579 Javier Miranda <miranda@adacore.com>
7580 Gary Dismukes <dismukes@adacore.com>
7582 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
7583 defining entity for the instance body, make a new defining identifier
7584 rather than copying the entity of the spec, to prevent accidental
7585 sharing of the entity list.
7586 (Check_Private_View): When exchanging views of private types, build the
7587 list of exchanged views as a stack, to ensure that on exit the exchanges
7588 are undone in the proper order.
7589 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
7590 Restore the compilation environment in case of instantiation_error.
7591 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
7592 for an anonymous access result.
7593 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
7594 (Formal_Entity): Handle properly the case of a formal package that
7595 denotes a generic package renaming.
7597 2005-09-01 Thomas Quinot <quinot@adacore.com>
7599 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
7600 clause if the array aggregate is surrounded by parentheses.
7602 2005-09-01 Cyrille Comar <comar@adacore.com>
7603 Gary Dismukes <dismukes@adacore.com>
7604 Ed Schonberg <schonberg@adacore.com>
7605 Javier Miranda <miranda@adacore.com>
7607 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
7609 to check if a type is Constrained in cases related to code generation
7610 (rather than semantic checking) since otherwise we do not generate
7611 similar code for mutable private types depending if their
7612 discriminants are visible or not.
7613 (Check_Abstract_Overriding): Do not complain about failure to override
7614 the primitive operations used in dispatching selects since they will
7615 always be overriden at the freeze point of the type.
7616 (Access_Definition): Separate out handling for resetting the scope
7617 of an anonymous access function result type. Retrieve the scope
7618 of the associated function rather than using Current_Scope, which
7619 does not have a consistent value (depends on whether we're in the
7620 middle of analyzing formal parameters). Add ??? comment about
7621 finding a cleaner way to handle the special cases of scope setting.
7622 (Process_Incomplete_Dependents): A protected operation is never a
7623 dispatching operation (only its wrapper may be).
7624 (Build_Derived_Record_Type): In case of tagged private types that
7625 implement interfaces add derivation of predefined primitive
7627 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
7628 by two parameters that are used in case of derivation from abstract
7629 interface types: No_Predefined_Prims is used to avoid the derivation
7630 of predefined primitives from the interface, and Predefined
7631 Prims_Only is used to complete the derivation predefined primitives
7632 in case of private tagged types implementing interfaces.
7633 Fix typo in comments
7634 (Find_Interface_In_Descendant): Protect the frontend against
7635 wrong code with large circularity chains.
7636 (Is_Private_Overriding): Add support for entities overriding interface
7637 subprograms. The test failed because Entities associated with overriden
7638 interface subprograms are always marked as hidden (and used to build
7639 the secondary dispatch table); in this case the overriden entity is
7640 available through the field abstract_interface_alias (cf. override_
7641 dispatching_operation)
7642 (Access_Definition): Set the scope of the type to Current_Scope for the
7643 case of a function with an anonymous access result type.
7644 (Access_Subprogram_Declaration): Handle creation of the type entity for
7645 an access-to-function type with an anonymous access result.
7646 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
7647 in handling for N_Access_Function_Definition.
7648 (Analyze_Subtype_Declaration): Modify the text of error message.
7649 (Derived_Type_Declaration): Modify the text of error message.
7650 (Process_Subtype): Modify the text of error message plus cleanup
7651 of one redundant error message.
7652 (Analyze_Component_Declaration): Code cleanup.
7653 (Analyze_Object_Declaration): Code cleanup.
7654 (Analyze_Subtype_Declaration): Propagate the null-exclusion
7655 attribute in case of access types. Code cleanup.
7656 (Array_Type_Declaration): Code cleanup.
7657 (Process_Discriminants): Create the new null-excluding itype
7658 if required. Code cleanup.
7659 (Process_Subtype): Create the new null-excluding itype if
7660 required. Code cleanup.
7661 (Build_Derived_Record_Type): Code cleanup to avoid calling
7662 twice the subprogram derive_subprograms in case of private
7663 types that implement interfaces. In this particular case the
7664 subprogram Complete_Subprograms_Derivation already does the
7665 job associated with the second call.
7667 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
7668 conversion to the full view when generating an operation for a
7669 discriminant whose type may currently be private.
7671 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7672 Javier Miranda <miranda@adacore.com>
7674 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
7675 V (Obj.F), the rewriting does not involve the indexed component, but
7676 only the selected component itself.
7677 Do not apply the transformation if the analyzed node is an actual of a
7678 call to another subprogram.
7679 (Complete_Object_Operation): Retain the entity of the
7680 dispatching operation in the selector of the rewritten node. The
7681 entity will be used in the expansion of dispatching selects.
7682 (Analyze_One_Call): Improve location of the error message associated
7684 (Analyze_Selected_Component): No need to resolve prefix when it is a
7685 function call, resolution is done when parent node is resolved, as
7687 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
7688 when attempting to resolve a call transformed from its object notation.
7689 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
7690 of the argument list for each interpretation of the operation.
7691 (Try_Object_Operation): The designated type of an access parameter may
7692 be an incomplete type obtained through a limited_with clause, in which
7693 case the primitive operations of the type are retrieved from its full
7695 (Analyze_Call): If this is an indirect call, and the return type of the
7696 access_to_subprogram is incomplete, use its full view if available.
7698 2005-09-01 Javier Miranda <miranda@adacore.com>
7699 Gary Dismukes <dismukes@adacore.com>
7701 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
7702 access types the null-exclusion and access-to-constant attributes must
7704 (Analyze_Return_Statement): When the result type is an anonymous access
7705 type, apply a conversion of the return expression to the access type
7706 to ensure that appropriate accessibility checks are performed.
7707 (Analyze_Return_Type): For the case of an anonymous access result type,
7708 generate the Itype and set Is_Local_Anonymous_Access on the type.
7709 Add ??? placeholder for check to disallow returning a limited object
7710 in Ada 2005 unless it's an aggregate or a result of a function call.
7711 Change calls from Subtype_Mark to Result_Definition.
7712 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
7713 Result_Definition in call to Make_Function_Specification.
7714 (Build_Body_To_Inline): Change Set_Subtype_Mark to
7715 Set_Result_Definition.
7716 (Make_Inequality_Operator): Change formal Subtype_Mark to
7717 Result_Definition in call to Make_Function_Specification.
7718 (Process_Formals): Create the new null-excluding itype if required.
7719 (New_Overloaded_Entity): For an entity overriding an interface primitive
7720 check if the entity also covers other abstract subprograms in the same
7721 scope. This is required to handle the general case, that is, overriding
7722 other interface primitives and overriding abstract subprograms inherited
7723 from some abstract ancestor type.
7724 (New_Overloaded_Entity): For an overriding entity that comes from
7725 source, note the operation that it overrides.
7726 (Check_Conformance, Type_Conformant): Addition of one new formal
7727 to skip controlling formals in the analysis. This is used to
7728 handle overloading of abstract interfaces.
7729 (Base_Types_Match): Add missing case for types imported from
7730 limited-with clauses
7731 (New_Overloaded_Entity): Add barrier to protect the use of
7732 the "alias" attribute.
7734 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7736 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
7737 verify that the procedure and the entry are mode conformant.
7738 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
7739 as a different operator, which is often a cut-and-paste error.
7741 2005-09-01 Javier Miranda <miranda@adacore.com>
7742 Ed Schonberg <schonberg@adacore.com>
7744 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
7745 used in controlling parameters exclude null because it is necessary to
7746 read the tag to dispatch, and null has no tag.
7747 (Override_Dispatching_Operation): If the previous operation is inherited
7748 from an interface, it becomes hidden and does not participate in later
7751 2005-09-01 Javier Miranda <miranda@adacore.com>
7752 Ed Schonberg <schonberg@adacore.com>
7753 Gary Dismukes <dismukes@adacore.com>
7755 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
7756 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
7757 the expander will generate the corresponding run-time check to evaluate
7759 (Resolve_Call): Check for legal type of procedure name or prefix that
7760 appears as a trigger in a triggering alternative.
7761 (Valid_Conversion): If expression is ambiguous and the context involves
7762 an extension of System, remove System.Address interpretations.
7763 (Resolve_Qualified_Expression): Reject the case of a specific-type
7764 qualification applied to a class-wide argument. Enhance comment
7765 to explain checking of Original_Node.
7766 (Resolve_Type_Conversion): The location of the error message was not
7767 general enough to handle the general case and hence it has been removed.
7768 In addition, this patch improves the text of the message.
7769 (Resolve_Type_Conversion): Add missing support for access to interface
7771 (Resolve_Type_Conversion): If the target is a class-wide interface type,
7772 do not expand if the expression is the actual in a call, because proper
7773 expansion will take place when the call itself is expanded.
7774 (Resolve_Allocator): If the context is an unchecked conversion, the
7775 allocator inherits its storage pool, if any, from the target type of
7778 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7779 Javier Miranda <miranda@adacore.com>
7781 * sem_type.adb (Add_One_Interp): If a candidate operation is an
7782 inherited interface operation that has an implementation, use the
7783 implementation to avoid spurious ambiguities.
7784 (Interface_Present_In_Ancestor): In case of concurrent types we can't
7785 use the Corresponding_Record_Typ attribute to look for the interface
7786 because it is set by the expander (and hence it is not always
7787 available). For this reason we traverse the list of interfaces
7788 (available in the parent of the concurrent type).
7789 (Interface_Present_In_Ancestor): Handle entities from the limited view
7791 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7793 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
7794 from the list of required components.
7795 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
7796 primitive procedure of a limited interface with a controlling first
7798 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
7800 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
7801 capture if it is generated in the second operand of a short-circuit
7803 Do not capture values for variables with address clauses.
7804 (Is_Object_Reference): Treat a function call as an object reference only
7805 if its type is not Standard_Void_Type.
7807 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7809 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
7810 to a variable that is statically known to be constant.
7812 2005-09-01 Geert Bosch <bosch@adacore.com>
7813 Robert Dewar <dewar@adacore.com>
7815 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
7816 (VAXGF_Safe_First): Idem.
7818 2005-09-01 Robert Dewar <dewar@adacore.com>
7819 Arnaud Charlet <charlet@adacore.com>
7821 * g-dirope.ads: Minor reformatting
7822 Document that bounds of result of Base_Name match the input index
7824 Add documentation on environment variable syntax for Expand_Path
7826 * gnat_ugn.texi: Update documentation to include mention of -m switches
7827 Document new treatment of wide characters in max line length
7829 Remove -gnatL/-gnatZ switches, no longer used.
7830 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
7833 * gnat_rm.texi: Add doc for two argument form of pragma
7834 Float_Representation.
7835 Add documentation for pragma No_Strict_Aliasing
7836 Add note that explicit component clause overrides pragma Pack.
7837 Add documentation of pragma Debug_Policy
7839 2005-09-01 Matthew Heaney <heaney@adacore.com>
7841 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
7842 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
7843 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
7844 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
7845 draft (Draft 13, August 2005) of Ada Amendment 1.
7847 2005-09-01 Arnaud Charlet <charlet@adacore.com>
7849 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
7850 Note that the platform-specific version of g-soccon.ads for VMS is now
7851 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
7852 really is a package spec).
7853 Replace s-taspri-linux.ads by s-taspri-posix.ads
7854 Remove references to s-mastop-x86.adb
7856 * system-vxworks-xscale.ads: Removed, no longer used.
7857 * s-vxwork-xscale.ads: Removed, no longer used.
7859 2005-09-01 Robert Dewar <dewar@adacore.com>
7861 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
7862 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
7863 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
7864 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
7865 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
7866 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
7867 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
7868 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
7869 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
7870 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
7871 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
7872 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
7873 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
7874 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
7875 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
7876 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
7877 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
7878 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
7879 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
7880 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
7881 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
7883 2005-08-29 Arnaud Charlet <charlet@adacore.com>
7887 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
7889 2005-08-29 Arnaud Charlet <charlet@adacore.com>
7890 Doug Rupp <rupp@adacore.com>
7892 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
7894 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
7895 this code in the GNAT run-time.
7897 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
7900 * init.c (__gnat_error_handler [many]): Mark "msg" as const
7901 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
7903 (__gnat_inside_elab_final_code): Moved here from
7904 Standard_Library and only defined for the compiler.
7905 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
7906 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
7907 using RTPs because directly vectored Interrupt routines are not
7908 supported on this configuration.
7909 (getpid): Do not redefine this function on VxWorks when using RTPs
7910 because this primitive is well supported by the RTP libraries.
7911 (copy_msg): Correct the code that checks for buffer overflow.
7912 Discovered during code reading.
7914 2005-08-29 Olivier Hainque <hainque@adacore.com>
7916 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
7917 a library level mutable variable with an initializer, tell
7918 build_allocator to ignore the initializer's size. It may not be large
7919 enough for all the values that might be assigned to the variable later
7922 2005-08-29 Arnaud Charlet <charlet@adacore.com>
7923 Eric Botcazou <ebotcazou@adacore.com>
7925 * trans.c: Protect < in error msg with quote
7926 Replace GCC_ZCX by Back_End_Exceptions.
7927 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
7928 has been sufficiently aligned in the record.
7930 2005-08-15 James E. Wilson <wilson@specifix.com>
7932 * system-linux-alpha.ads: Change ia64 to alpha.
7934 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
7936 * decl.c, utils.c: Fix comment typos.
7938 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
7940 * decl.c, init.c, initialize.c: Fix comment typos.
7942 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
7944 Make CONSTRUCTOR use VEC to store initializers.
7945 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
7947 * trans.c (extract_values): Likewise.
7948 * utils.c (convert, remove_conversions): Likewise.
7949 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
7950 gnat_build_constructor): Likewise.
7952 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
7954 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
7956 (compare_field_bitpos): Likewise.
7958 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
7960 * utils.c (create_var_decl): Only set DECL_COMMON on
7961 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
7962 VAR_OR_FUNCTION_DECL_P.
7964 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
7966 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
7969 2005-07-07 Pascal Obry <obry@adacore.com>
7971 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
7972 returned type on Windows.
7974 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
7977 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
7978 exception in this case.
7979 Simplify the code as "Image (Image'Range)" = "Image".
7981 2005-07-07 Vincent Celier <celier@adacore.com>
7983 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
7984 the destructor/constructor attributes for <lib>final/<lib>init.
7986 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
7988 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
7990 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
7991 type if the parameter is not passed by copy but reference by default.
7993 2005-07-07 Javier Miranda <miranda@adacore.com>
7995 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
7996 Reimplementation of the support for abstract interface types in order
7997 to leave the code more clear and easy to maintain.
7999 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
8000 abstract interface types in order to leave the code clearer and easier
8003 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
8004 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
8005 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
8006 appropriate entry of the secondary dispatch table.
8007 (Make_DT): Add code to inherit the secondary dispatch tables of
8010 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
8011 implementing both functionalities by means of a common routine, each
8012 routine has its own code.
8014 2005-07-07 Javier Miranda <miranda@adacore.com>
8016 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
8018 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
8021 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
8024 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
8025 use of tag incomplete types.
8027 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
8028 give support to tagged incomplete types.
8030 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
8031 expression is a discriminant reference and its type is private, as can
8032 happen within a stream operation for a mutable record, use the full
8033 view of the type to resolve the case alternatives.
8034 (Analyze_Assignment): Check wrong dereference of incomplete types.
8036 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
8039 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
8042 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
8043 N_Incomplete_Type_Declaration nodes.
8045 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
8046 Tag_Present to give support to tagged incomplete types:
8048 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
8051 2005-07-07 Olivier Hainque <hainque@adacore.com>
8054 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
8055 definitions for the Unwind wrappers in the compiler case.
8057 2005-07-07 Ed Schonberg <schonberg@adacore.com>
8058 Javier Miranda <miranda@adacore.com>
8060 * par-load.adb (Load): If a child unit is loaded through a limited_with
8061 clause, each parent must be loaded as a limited unit as well.
8063 * sem_ch10.adb (Previous_Withed_Unit): Better name for
8064 Check_Withed_Unit. Return true if there is a previous with_clause for
8065 this unit, whether limited or not.
8066 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
8068 (Is_Visible_Through_Renamings): New local subprogram of install_limited
8069 _withed_unit that checks if some package installed through normal with
8070 clauses has a renaming declaration of package whose limited-view is
8071 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
8072 of the current Draft document for Ada 2005.
8073 (Analyze_Context): Complete the list of compilation units that
8074 are allowed to contain limited-with clauses. It also contains
8075 checks that were previously done by Install_Limited_Context_Clauses.
8076 This makes the code more clear and easy to maintain.
8077 (Expand_Limited_With_Clause) It is now a local subprogram of
8078 Install_Limited_Context_Clauses, and contains the code that adds
8079 the implicit limited-with clauses for parents of child units.
8080 This functionality was prevously done by Analyze_Context.
8082 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
8085 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
8086 been erroneously named in a limited-with clause of its own context.
8087 In this case the error has been previously notified by Analyze_Context.
8089 2005-07-07 Ed Schonberg <schonberg@adacore.com>
8091 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
8092 generic package that contains local declarations with the same name.
8093 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
8095 2005-07-07 Bernard Banner <banner@adacore.com>
8097 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
8098 ia64 platform only on platforms that you the GCC unwind library
8099 rather than the system unwind library.
8101 2005-07-07 Thomas Quinot <quinot@adacore.com>
8103 * expect.c: Minor reformatting
8105 2005-07-07 Sergey Rybin <rybin@adacore.com>
8107 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
8110 * gnat_ugn.texi: Add description for new gnatpp option
8113 2005-07-04 Thomas Quinot <quinot@adacore.com>
8115 * g-expect-vms.adb, g-expect.ads, g-expect.adb
8116 (Get_Command_Output): New subprogram to launch a process and get its
8117 standard output as a string.
8119 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
8120 Olivier Hainque <hainque@adacore.com>
8122 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
8123 fetch a code-range descriptor associated with the machine state. On
8124 failure set the machine state's PC to 0; on success, pass the
8125 descriptor to exc_virtual_unwind.
8127 * init.c (Tru64 section): New function __gnat_set_code_loc.
8129 2005-07-04 Vincent Celier <celier@adacore.com>
8131 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
8132 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
8133 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
8134 Remove all auto-initialization code, as this is now done through the
8135 constructor mechanism.
8137 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
8138 __gnat_sals_init_using_constructors): New functions.
8140 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
8141 Linker_Constructor and Linker_Destructor when switch -a is used.
8143 * bindusg.adb: Add line for new switch -a
8145 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
8146 (Gnatbind): When switch -a is used, check if it is allowed
8148 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
8150 2005-07-04 Joel Brobecker <brobecker@adacore.com>
8152 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
8153 This prevents us from hitting a limitation during the debug info
8154 generation when using stabs.
8155 (Prims_Ptr): Likewise.
8157 2005-07-04 Gary Dismukes <dismukes@adacore.com>
8158 Ed Schonberg <schonberg@adacore.com>
8159 Javier Miranda <miranda@adacore.com>
8161 * checks.adb (Null_Exclusion_Static_Checks): In the case of
8162 N_Object_Declaration, only perform the checks if the Object_Definition
8163 is not an Access_Definition.
8165 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
8166 where the parent of an the access definition is an N_Object_Declaration
8167 when determining the Associated_Node_For_Itype and scope of an
8168 anonymous access-to-subprogram type.
8170 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
8171 Corresponding_Spec on the body created for a null procedure. Add ???
8172 comment. Remove New_Copy_Tree call on body argument to
8175 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
8176 discriminants, use the type of the actual as well, because the
8177 discriminants may be read by the called subprogram.
8179 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
8180 access type we do not need to handle non-limited views.
8181 (Build_Derived_Record_Type): Additional check to check that in case of
8182 private types, interfaces are only allowed in private extensions.
8184 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
8186 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
8187 <Pragma_Linker_Destructor>: Likewise.
8189 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
8190 Pragma_Linker_Destructor.
8192 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
8193 ATTR_LINK_DESTRUCTOR.
8194 (static_ctors, static_dtors): New variables.
8196 * misc.c (gnat_expand_body): Output current function as constructor
8197 and destructor if requested.
8199 * par-prag.adb: Add processing for pragma Linker_Constructor and
8202 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
8203 extracted from Check_Interrupt_Or_Attach_Handler.
8204 (Check_Interrupt_Or_Attach_Handler): Invoke it.
8205 Implement pragma Linker_Constructor and Linker_Destructor with the
8206 help of Find_Unique_Parameterless_Procedure.
8207 Replace Name_Alias with Name_Target for pragma Linker_Alias.
8209 * snames.h, snames.ads, snames.adb:
8210 Add Name_Linker_Constructor and Name_Linker_Destructor.
8211 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
8212 * snames.adb: Remove Name_Alias.
8214 * trans.c: Include cgraph.h.
8215 (build_global_cdtor): New function.
8216 (Compilation_Unit_to_gnu): Build global constructor and destructor if
8218 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
8220 (addressable_p) <COMPONENT_REF>: Unconditionally test
8221 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
8223 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
8224 variable if it is external.
8226 (static_ctors, static_dtors): New global variables.
8227 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
8228 <ATTR_LINK_DESTRUCTOR>: Likewise.
8229 (end_subprog_body): Chain function as constructor and destructor
8232 * exp_util.adb (Force_Evaluation): Unconditionally invoke
8233 Remove_Side_Effects with Variable_Ref set to true.
8234 (Remove_Side_Effects): Handle scalar types first. Use a renaming
8235 for non-scalar types even if Variable_Ref is true and for class-wide
8238 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8240 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
8241 to prevent spurious warnings.
8243 2005-07-04 Thomas Quinot <quinot@adacore.com>
8245 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
8246 Itypes. Itypes are really unexpected there.
8247 (Build_TypeCode_Function): Generalise special processing for Itypes to
8248 handle the case of numeric implicit base types as well as enumerated
8251 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8253 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
8254 controlled, indicate the expected type of the dereference that is
8255 created for the call to Deep_Finalize, to prevent spurious errors when
8256 the designated type is private and completed with a derivation from
8257 another private type.
8259 2005-07-04 Vincent Celier <celier@adacore.com>
8261 * make.adb (Change_To_Object_Directory): When unable to change the
8262 current dir to the object directory, output the full path of the
8265 2005-07-04 Matthew Gingell <gingell@adacore.com>
8267 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
8269 * indepsw-linux.adb: Replace by...
8271 * indepsw-gnu.adb: ...this new file
8273 2005-07-04 Vincent Celier <celier@adacore.com>
8275 * mlib-prj.adb (Auto_Initialize): New constant String
8276 (SALs_Use_Constructors): New Boolean function
8277 (Build_Library): Call gnatbind with Auto_Initialize switch when
8278 SALs_Use_Constructors returns True.
8280 * mlib-tgt.ads: Minor reformatting
8282 * mlib-utl.ads: Minor reformatting
8284 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
8286 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8288 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
8289 single protected declarations can have an interface list.
8290 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
8291 with seriously malformed entry declarations, and lead to compilation
8294 2005-07-04 Javier Miranda <miranda@adacore.com>
8296 * par-load.adb: Load the context items in two rounds.
8298 2005-07-04 Robert Dewar <dewar@adacore.com>
8300 * scng.adb: Do not consider Mod used as an attribute to be a keyword
8302 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8303 Javier Miranda <miranda@adacore.com>
8305 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
8306 type extension needs a limited view.
8307 Remove previous restriction on private types available through the
8308 limited-view (only tagged private types were previously allowed).
8309 (Install_Withed_Unit): In the code that implements the
8310 legality rule given in AI-377, exclude a child unit with the name
8311 Standard, because it is a homonym of the Standard environment package.
8313 2005-07-04 Thomas Quinot <quinot@adacore.com>
8315 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
8316 overloaded function call, carry interpretations from the original tree
8319 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8321 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
8322 types check whether some designated type is a limited view, and use
8323 the non-limited view if available.
8325 2005-07-04 Gary Dismukes <dismukes@adacore.com>
8327 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
8328 constraint of full view of a private view T1 if present, when T2 is a
8329 discriminated full view.
8331 2005-07-04 Thomas Quinot <quinot@adacore.com>
8333 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
8334 actual that is a view conversion of a bit packed array reference.
8336 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8338 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
8339 present before checking whether an interface type covers a synchronized
8342 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8344 * sem_util.adb (Is_Object_Reference): An indexed or selected component
8345 whose prefix is an implicit dereference is an object reference. Removes
8346 spurious errors when compiling with -gnatc.
8348 2005-07-04 Robert Dewar <dewar@adacore.com>
8351 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
8353 2005-07-04 Matthew Gingell <gingell@adacore.com>
8355 * tracebak.c: Enable tracebacks on ia64 platforms
8357 2005-07-04 Vincent Celier <celier@adacore.com>
8359 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
8360 the GNAT BIND command, as gnatbind accepts multiples ALI files with
8361 the -L or -n switches.
8363 2005-07-04 Vincent Celier <celier@adacore.com>
8365 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
8366 correctly computed and the main project data is not modified while
8368 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
8369 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
8370 c++linker as this does not work on some platforms.
8372 2005-07-04 Matthew Heaney <heaney@adacore.com>
8374 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
8376 * a-coinve.adb: Perform constraint checks explicitly.
8378 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8379 Thomas Quinot <quinot@adacore.com>
8381 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
8382 new target gen-soccon.
8384 2005-07-04 Robert Dewar <dewar@adacore.com>
8386 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
8388 2005-07-04 Thomas Quinot <quinot@adacore.com>
8390 * g-socket.ads (Check_Selector): Minor rewording of comment.
8392 2005-07-04 Vincent Celier <celier@adacore.com>
8394 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
8396 2005-07-04 Thomas Quinot <quinot@adacore.com>
8398 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
8400 2005-07-04 Sergey Rybin <rybin@adacore.com>
8402 * gnat_ugn.texi: Add description of --eol gnatpp option
8404 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
8405 Thomas Quinot <quinot@adacore.com>
8407 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
8408 if the user wants all calls of a subprogram to be flagged,
8409 independently of whether they are made from within the same unit or
8411 Mention restriction for pragma Linker_Alias on some platforms.
8412 Document pragma Linker_Constructor and Linker_Destructor.
8413 Rewrite documentation of Weak_External, Linker_Section and
8414 Linker_Alias pragmas.
8416 2005-07-04 Arnaud Charlet <charlet@adacore.com>
8418 * s-stausa.ads, s-stausa.adb: New files.
8420 2005-06-30 Kelley Cook
8422 * all files: Update FSF address in copyright headers.
8423 * gen-soccon.co (main): Output new FSF address in generated files.
8425 2005-06-28 Paul Brook <paul@codesourcery.com>
8427 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
8429 2005-06-14 Olivier Hainque <hainque@adacore.com>
8430 Eric Botcazou <ebotcazou@adacore.com>
8432 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
8433 exc_unwind, now that we are generating proper .debug_frame output for
8436 * tracebak.c: Remove the mips-irix section, as we are now using the
8437 s-mastop based unwinder again.
8438 Under SPARC/Solaris, take into account the stack bias to compute the
8439 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
8442 2005-06-14 Doug Rupp <rupp@adacore.com>
8444 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
8446 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
8448 2005-06-14 Pascal Obry <obry@adacore.com>
8450 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
8451 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
8452 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
8455 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
8456 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
8457 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
8458 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
8459 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
8460 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
8461 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
8462 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
8463 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
8464 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
8465 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
8466 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
8467 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
8468 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
8469 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
8470 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
8471 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
8472 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
8473 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
8474 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
8475 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
8476 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
8477 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
8478 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
8479 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
8480 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
8481 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
8482 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
8483 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
8484 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
8485 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
8486 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
8487 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
8488 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
8489 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
8490 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
8491 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
8492 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
8493 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
8494 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
8495 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
8496 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
8497 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
8498 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
8499 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
8500 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
8501 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
8502 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
8503 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
8504 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
8505 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
8506 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
8507 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
8508 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
8509 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
8510 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
8511 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
8512 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
8513 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
8514 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
8515 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
8516 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
8517 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
8518 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
8519 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
8520 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
8521 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
8522 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
8523 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
8524 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
8525 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
8526 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
8527 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
8528 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
8529 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
8530 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
8531 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8532 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
8533 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
8534 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
8535 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
8536 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
8537 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
8538 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
8539 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
8540 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
8541 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
8542 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
8543 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
8544 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
8545 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
8546 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
8547 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
8548 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
8549 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
8550 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
8551 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
8552 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
8553 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
8554 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
8555 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
8556 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
8557 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
8558 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
8559 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
8560 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
8561 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
8562 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
8563 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
8564 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
8565 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
8566 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
8567 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
8568 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
8569 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
8570 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
8571 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
8572 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
8573 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
8574 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
8575 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
8576 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
8577 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
8578 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
8579 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
8580 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
8581 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
8582 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
8583 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
8584 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
8585 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
8586 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
8587 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
8589 2005-06-14 Jose Ruiz <ruiz@adacore.com>
8590 Arnaud Charlet <charlet@adacore.com>
8592 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
8593 longer protected objects. They have been replaced by lower-level
8594 suspension objects made up by a mutex and a condition variable (or
8595 their equivalent given a particular OS) plus some internal data to
8596 reflect the state of the suspension object.
8597 (Initialize, Finalize): Add this initialization procedure for
8598 Suspension_Object, which is a controlled type.
8599 (Finalize): Add the finalization procedure for Suspension_Object,
8600 which is a controlled type.
8602 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
8603 Ada.Synchronous_Task_Control because there is no longer a need for a
8604 VxWorks specific version of this package. Target dependencies
8605 has been moved to System.Task_Primitives.Operations.
8607 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
8609 (InitializeCriticalSection, EnterCriticalSection,
8610 LeaveCriticalSection, DeleteCriticalSection): Replace the type
8611 pCriticalSection by an anonymous access type so that we avoid problems
8612 of accessibility to local objects.
8614 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
8615 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
8616 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
8617 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
8618 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
8619 set the environment task mask here.
8620 (Current_State): Add this function that returns the state of the
8622 (Set_False): Add this procedure that sets the state of the suspension
8624 (Set_True): Add this procedure that sets the state of the suspension
8625 object to True, releasing the task that was suspended, if any.
8626 (Suspend_Until_True): Add this procedure that blocks the calling task
8627 until the state of the object is True. Program_Error is raised if
8628 another task is already waiting on that suspension object.
8629 (Initialize): Add this procedure for initializing the suspension
8630 object. It initializes the mutex and the condition variable which are
8631 used for synchronization and queuing, and it sets the internal state
8633 (Finalize): Add this procedure for finalizing the suspension object,
8634 destroying the mutex and the condition variable.
8636 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
8637 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
8638 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
8639 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
8640 which provides a low-level abstraction (using operating system
8641 primitives) for Ada.Synchronous_Task_Control.
8642 This object is made up by a mutex (for ensuring mutual exclusion), a
8643 condition variable (for queuing threads until the condition is
8644 signaled), a Boolean (State) indicating whether the object is open,
8645 and a Boolean (Waiting) reflecting whether there is a task already
8646 suspended on this object.
8648 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
8649 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
8650 s-intman-vms.ads, s-intman-mingw.adb,
8651 (Initialize_Interrupts): Removed, no longer used.
8653 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
8654 (Setup_Interrupt_Mask): New procedure.
8656 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
8658 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
8660 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
8661 this is no longer done in the body of s-taprop
8662 (Server_Task): Explicitely test for Pending_Action in case
8663 System.Parameters.No_Abort is True.
8665 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
8666 is no longer done in the body of s-taprop
8668 2005-06-14 Robert Dewar <dewar@adacore.com>
8670 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
8671 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
8672 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
8673 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
8674 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
8675 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
8676 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
8677 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
8678 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
8679 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
8680 system-linux-hppa.ads, system-vms_64.ads,
8681 system-vxworks-alpha.ads: Minor comment update for
8682 AI-362 (unit is Pure).
8684 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
8685 Add pragma Pure_05 for AI-362
8686 Make remaining conversion functions obsolescent in Ada 95
8688 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
8689 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
8690 Add entries for a-wichun and a-zchuni
8691 Add a-widcha a-zchara for AI-395
8692 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
8694 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
8695 Add entries for a-wichun.o and a-zchuni.o
8696 Entries for a-widcha.o and a-zchara.o
8697 Add entry for a-chacon.o
8699 * a-ztenau.adb: Add with of Ada.Characters.Conversions
8701 * a-chacon.ads, a-chacon.adb: New files.
8703 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
8704 categorization violations.
8706 * a-strmap.ads: Add pragma Pure_05 for AI-362
8707 * a-strmap.ads: Add note on implicit categorization for AI-362
8709 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
8711 * par-prag.adb: Dummy entry for pragma Persistent_BSS
8712 Set Ada_Version_Explicit, for implementation of AI-362
8713 Add processing for pragma Pure_05 and Preelaborate_05
8714 Add entry for Assertion_Policy pragma
8716 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
8717 when needed for proper processing of categorization stuff
8720 For several cases, make errors in preealborate units warnings,
8721 instead of errors, if GNAT_Mode is set. For AI-362.
8723 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
8724 preelaborate unit is now warning if in GNAT mode
8726 * s-stoele.ads: Document AI-362 for pragma preelaborate
8728 2005-06-14 Doug Rupp <rupp@adacore.com>
8730 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
8731 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
8732 Default_Exception_Msg_Max_Length: new parameter.
8734 * a-except.ads: (Exception_Msg_Max_Length): Set to
8735 System.Parameters.Default_Exception_Msg_Max_Length
8736 Add pragma Preelaborate_05 for AI-362
8737 Add warnings off to allow categorization violations for AI-362
8739 2005-06-14 Vincent Celier <celier@adacore.com>
8741 * gnatsym.adb: Adapt to modification of package Symbols: procedure
8742 Process is now in package Processing.
8744 * symbols.ads, symbols.adb:
8745 (Processing): New package, containing procedure Process
8747 * symbols-vms-alpha.adb:
8748 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
8750 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
8751 symbols-processing-vms-ia64.adb: New files.
8753 2005-06-14 Pascal Obry <obry@adacore.com>
8755 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
8756 implementation. This new version generates the proper DllMain routine
8757 to initialize the SAL. The DllMain is generated in Ada and compiled
8758 before being added as option to the library build command.
8760 2005-06-14 Doug Rupp <rupp@adacore.com>
8761 Pascal Obry <obry@adacore.com>
8763 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
8764 call to decc$translate_vms.
8765 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
8766 need to remove those quotes before catenating the filename.
8767 (__gnat_locate_exec_on_path): improvements to the Win32 section:
8768 * avoid allocating the memory twice for better efficiency;
8769 * allocate 32K buffer for environment expansion as suggested by MSDN;
8770 * prepend ".;" to the path so that current directory is searched too.
8772 2005-06-14 Robert Dewar <dewar@adacore.com>
8774 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
8775 instead of raising CE (AI-241)
8776 Add warnings off to allow categorization violations for AI-362
8778 2005-06-14 Robert Dewar <dewar@adacore.com>
8780 * ali-util.adb, gnatbind.adb: Remove references to
8781 Force_RM_Elaboration_Order.
8783 * switch-b.adb: Remove recognition of -f switch
8785 2005-06-14 Pascal Obry <obry@adacore.com>
8787 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
8788 implementation which is slightly more efficient.
8790 2005-06-14 Gary Dismukes <dismukes@adacore.com>
8791 Javier Miranda <miranda@adacore.com>
8792 Ed Schonberg <schonberg@adacore.com>
8793 Hristian Kirtchev <kirtchev@adacore.com>
8795 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
8796 allocator's designated type is a class-wide type, and compiling for
8797 Ada 2005, emit a run-time check that the accessibility level of the
8798 type given in the allocator's expression is not deeper than the level
8799 of the allocator's access type.
8801 (Tagged_Membership): Modified to gives support to abstract interface
8804 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
8806 (Descendant_Tag): New predefined function
8807 (Is_Descendant_At_Same_Level): New predefined function
8808 (Get_Access_Level): New private function
8809 (Set_Access_Level): New private procedure
8810 (IW_Membership): New function. Given the tag of an object and the tag
8811 associated with an interface, evaluate if the object implements the
8813 (Register_Interface_Tag): New procedure used to initialize the table of
8814 interfaces used by the IW_Membership function.
8815 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
8816 of the dispatch table.
8817 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
8818 table of interfaces of the parent.
8819 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
8820 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
8821 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
8822 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
8823 Ada 2005 semantics for the new predefined function.
8825 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
8826 call to Descendant_Tag rather than Internal_Tag.
8827 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
8828 the accessibility level of the attribute's Item parameter is not deeper
8829 than the level of the attribute's prefix type. Tag_Error is raised if
8830 the check fails. The check is only emitted for Ada_05.
8831 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
8832 requested stream attribute, use it.
8833 (Expand_N_Attribute_Reference): If the designated type is an interface
8834 then rewrite the referenced object as a conversion to force the
8835 displacement of the pointer to the secondary dispatch table.
8836 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
8837 is a dereference of an object with a constrained partial view.
8839 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
8840 type is a class-wide type, emit a run-time check that the accessibility
8841 level of the returned object is not deeper than the level of the
8842 function's master (only when compiling for Ada 2005).
8844 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
8845 Action_Nb_Arg): Add entries for new Get_Access_Level and
8846 Set_Access_Level routines in these tables.
8847 (Make_DT): Generate a call to set the accessibility level of the
8848 tagged type in its TSD.
8849 (Make_DT): Code cleanup. The functionality of generating all the
8850 secondary dispatch tables has been moved to freeze_record_type.
8851 (Make_Abstract_Interface_DT): Minor code cleanup.
8852 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
8853 this subprogram implements a new algorithm that provides the
8854 same functionality and it is more clear in case of primitives
8855 associated with abstract interfaces.
8856 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
8857 clean up, the functionality of this subprogram is now provided
8858 by Set_All_DT_Position.
8859 (Write_DT): New subprogram: a debugging procedure designed to be called
8860 within gdb to display the dispatch tables associated with a tagged
8862 (Collect_All_Interfaces): New subprogram that collects the whole list
8863 of interfaces that are directly or indirectly implemented by a tagged
8865 (Default_Prim_Op_Position): New subprogram that returns the fixed
8866 position in the dispatch table of the default primitive operations.
8867 (Expand_Interface_Actuals): New subprogram to generate code that
8868 displaces all the actuals corresponding to class-wide interfaces to
8869 reference the interface tag of the actual object.
8870 (Expand_Interface_Conversion): New subprogram. Reference the base of
8871 the object to give access to the interface tag associated with the
8872 secondary dispatch table.
8873 (Expand_Interface_Thunk): New subprogram that generates the code of the
8874 thunk. This is required for compatibility with the C+ ABI.
8875 (Make_Abstract_Interface_DT): New subprogram that generate the
8876 declarations for the secondary dispatch tables associated with an
8878 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
8879 attribute for each primitive operation covering interface subprograms
8880 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
8881 These subprograms were upgraded to give support to abstract interfaces
8883 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
8884 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
8885 RE_Set_Access_Level.
8886 (RE_Unit_Table): Add entries for new Ada.Tags operations.
8887 Add support to call the followig new run-time subprograms:
8888 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
8890 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
8891 match its full declaration when both have an access definition with
8892 statically matching designated subtypes.
8893 (Analyze_Component_Declaration): Delete commented out code that was
8894 incorrectly setting the scope of an anonymous access component's type.
8895 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
8896 an access discriminant when the containing type is nonlimited.
8897 (Make_Incomplete_Type_Declaration): Create an incomplete type
8898 declaration for a record type that includes self-referential access
8900 (Check_Anonymous_Access_Types): Before full analysis of a record type
8901 declaration, create anonymous access types for each self-referential
8903 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
8904 an access component in this context is a Local_Anonymous_Access, for
8905 proper accessibility checks.
8906 (Access_Definition): Set properly the scope of the anonymous access type
8907 created for a stand-alone access object.
8908 (Find_Type_Of_Object): An object declaration may be given with an access
8910 (Complete_Subprograms_Derivation): New subprogram used to complete
8911 type derivation of private tagged types implementing interfaces.
8912 In this case some interface primitives may have been overriden
8913 with the partial-view and, instead of re-calculating them, they
8914 are included in the list of primitive operations of the full-view.
8915 (Build_Derived_Record_Type): Modified to give support to private
8916 types implemening interfaces.
8917 (Access_Definition): Reject ALL on anonymous access types.
8918 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
8919 type derivation to occur at a deeper accessibility level than the
8921 For the case of derivation within a generic body however, disallow the
8922 derivation if the derived type has an ancestor that is a formal type
8923 declared in the formal part of an enclosing generic.
8924 (Analyze_Object_Declaration): For protected objects, remove the check
8925 that they cannot contain interrupt handlers if not declared at library
8927 (Add_Interface_Tag_Components): New subprogram to add the tag components
8928 corresponding to all the abstract interface types implemented by a
8929 record type or a derived record type.
8930 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
8931 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
8932 Process_Full_View, Record_Type_Declaration): Modified to give
8933 support to abstract interface types
8934 (Collect_Interfaces): New subprogram that collects the list of
8935 interfaces that are not already implemented by the ancestors
8936 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
8937 when partial view has no discriminants and full view has defaults.
8938 (Constrain_Access): Reject a constraint on a general access type
8939 if the discriminants of the designated type have defaults.
8940 (Access_Subprogram_Declaration): Associate the Itype node with the inner
8941 full-type declaration or subprogram spec. This is required to handle
8942 nested anonymous declarations.
8943 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
8944 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
8945 Process_Full_View, Record_Type_Declaration): Modified to give
8946 support to abstract interface types
8947 (Derive_Subprograms): Addition of a new formal to indicate if
8948 we are in the case of an abstact-interface derivation
8949 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
8950 to the specification because it is requied to analyze all the
8951 identifiers found in a list of interfaces
8953 * debug.adb: Complete documentation of flag "-gnatdZ"
8955 * exp_ch3.adb: Implement config version of persistent_bss pragma
8956 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
8957 testing for TSS presence to properly enforce visibility rules.
8958 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
8959 Make_Abstract_Interfaces_DT to generate the secondary tables
8960 associated with abstract interfaces.
8961 (Build_Init_Procedure): Modified to initialize all the tags
8963 (Component_Needs_Simple_Initialization): Similar to other tags,
8964 interface tags do not need initialization.
8965 (Freeze_Record_Type): Modified to give support to abstract interface
8967 (Expand_N_Object_Declaration): Do not generate an initialization for
8968 a scalar temporary marked as internal.
8970 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
8971 in-out parameter that is a component in an initialization procedure,
8972 whose constraint might depend on discriminants, and that may be
8973 misaligned because of packing or representation clauses.
8974 (Is_Legal_Copy): New predicate to determine whether a possibly
8975 misaligned in-out actual can actually be passed by copy/return. This
8976 is an error in case the type is by_reference, and a warning if this is
8977 the consequence of a DEC import pragma on the subprogram.
8978 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
8980 (Expand_Inlined_Call): Mark temporary generated for the return value as
8981 internal, so that no useless scalar normalization is generated for it.
8982 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
8983 null procedure can always be inlined.
8984 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
8985 procedure, generate an explicit empty body for it.
8987 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
8988 Given a type implementing an interface, returns the corresponding
8989 access_disp_table value.
8990 (Find_Interface_Tag): New subprogram. Given a type implementing an
8991 interface, returns the record component containing the tag of the
8993 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
8994 previous ones that return the corresponding tag and access_disp_table
8996 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
8997 is a predefined primitive operation.
8998 (Expand_Subtype_From_Expr): If the expression is a selected component
8999 within an initialization procedure, compute its actual subtype, because
9000 the component may depend on the discriminants of the enclosing record.
9002 * i-cpp.ads, i-cpp.adb:
9003 This package has been left available for compatibility with previous
9004 versions of the frontend. As part of the new layout this is now a
9005 dummy package that uses declarations available at a-tags.ads
9007 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
9008 "constant access" and "aliased [constant] access" when not compiling
9010 Suppress Ada 2005 keyword warning if -gnatwY used
9011 (P_Identifier_Declarations): Add support for object declarations with
9013 (Private_Extension_Declaration): Complete the documentation
9014 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
9015 attribute in case of private extension declaration
9016 (P_Type_Declaration): Mark as "abstract" the type declarations
9017 corresponding with protected, synchronized and task interfaces
9018 (P_Declarative_Items): "not" and "overriding" are overriding indicators
9019 for a subprogram or instance declaration.
9021 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
9022 instantiation that is a dispatching operation has controlling access
9023 parameters that are null excluding.
9024 Save and restore Ada_Version_Explicit, for implementation of AI-362
9025 (Validate_Derived_Type_Instance): Add check for abstract interface
9027 (Analyze_Formal_Package): Establish Instantiation source for the copy of
9028 the generic that is created to represent the formal package.
9029 (Analyze_Package_Instantiation): Instantiate body immediately if the
9030 package is a predefined unit that contains inlined subprograms, and
9031 we are compiling for a Configurable_Run_Time.
9032 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
9033 If the program has a null default, generate an empty body for it.
9035 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
9036 error message condition, null procedures are correctly detected now.
9037 (New_Overloaded_Entity): Bypass trivial overriding indicator check
9038 for subprograms in the context of protected types. Instead, the
9039 indicator is examined in Sem_Ch9 while analysing the subprogram
9041 (Check_Overriding_Indicator): Check consistency of overriding indicator
9042 on subprogram stubs as well.
9043 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
9045 (Analize_Subprogram_Specification): When analyzing a subprogram in which
9046 the type of the first formal is a concurrent type, replace this type
9047 by the corresponding record type.
9048 (Analyze_Subprogram_Body): Undo the previous work.
9049 (Analyze_Procedure_Call): If the call has the form Object.Op, the
9050 analysis of the prefix ends up analyzing the call itself, after which
9052 (Has_Interface_Formals): New subprogram subsidiary to analyze
9053 subprogram_specification that returns true if some non
9054 class-wide interface subprogram is found
9055 (New_Overloaded_Entity): Modified to give support to abstract
9057 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
9058 access to subprograms must be recursive.
9059 (Is_Unchecked_Conversion): Improve the test that recognizes
9060 instantiations of Unchecked_Conversion, and allows them in bodies that
9061 are to be inlined by the front-end. When the body comes from an
9062 instantiation, a reference to Unchecked_Conversion will be an
9063 Expanded_Name, even though the body has not been analyzed yet.
9064 Replace Is_Overriding and Not_Overriding in subprogram_indication with
9065 Must_Override and Must_Not_Override, to better express intent of AI.
9066 (Analyze_Subprogram_Body): If an overriding indicator is given, check
9067 that it is consistent with the overrinding status of the subprogram
9069 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
9071 If the subprogram is a null procedure, indicate that it does not need
9074 * sem_disp.adb (Check_Controlling_Type): Give support to entities
9075 available through limited-with clauses.
9076 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
9077 allowed as the last primitive of a tagged type if it has no previous
9079 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
9080 to give support to abstract interface types
9082 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
9083 in the case where the target type is an anonymous access type of an
9084 object or component (that is, when Is_Local_Anonymous_Access is true).
9085 Prevent the special checks for conversions of access discriminants in
9086 the case where the discriminant belongs to a nonlimited type, since
9087 such discriminants have their accessibility level defined in the same
9088 way as a normal component of an anonymous access type.
9089 (Resolve_Allocator): When an allocator's designated type is a class-wide
9090 type, check that the accessibility level of type given in the
9091 allocator's expression or subtype indication is not statically deeper
9092 than the level of the allocator's access type.
9093 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
9094 name in a discriminant constraint of a record component.
9095 (Resolve_Explicit_Dereference): Do not check whether the type is
9096 incomplete when the dereference is a use of an access discriminant in
9097 an initialization procedure.
9098 (Resolve_Type_Conversion): Handle conversions to abstract interface
9100 (Valid_Tagged_Conversion): The conversion of a tagged type to an
9101 abstract interface type is always valid.
9102 (Valid_Conversion): Modified to give support to abstract interface types
9103 (Resolve_Actuals): Enable full error reporting on view conversions
9104 between unrelated by_reference array types.
9105 The rule for view conversions of arrays with aliased components is
9106 weakened in Ada 2005.
9107 Call to obsolescent subprogram is now considered to be a violation of
9108 pragma Restrictions (No_Obsolescent_Features).
9109 (Check_Direct_Boolean_Operator): If the boolean operation has been
9110 constant-folded, there is nothing to check.
9111 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
9112 check on possible violation of restriction No_Direct_Boolean_Operators
9113 until after expansion of operands, to prevent spurious errors when
9114 operation is constant-folded.
9116 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
9117 Has_Compatible_Type): Modified to give support to abstract interface
9119 (Interface_Present_In_Ancestor): New function to theck if some ancestor
9120 of a given type implements a given interface
9122 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
9123 prefix is a parameterless function that returns an access_to_procedure.
9124 (Transform_Object_Operation): Handle properly function calls of the
9125 form Obj.Op (X), which prior to analysis appear as indexed components.
9126 (Analyze_One_Call): Complete the error notification to help new Ada
9128 (Analyze_Allocator): For an allocator without an initial value, where
9129 the designated type has a constrained partial view, a discriminant
9130 constraint is illegal.
9132 2005-06-14 Robert Dewar <dewar@adacore.com>
9134 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
9135 do with treatment of Set_Col when positioned at end of line character.
9137 2005-06-14 Robert Dewar <dewar@adacore.com>
9139 * atree.adb: (Elist*): Protect against uninitialized field
9141 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9143 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
9144 for an attribute reference that returns an access type.
9145 (Apply_Discriminant_Check): No need for check if (designated) type has
9146 constrained partial view.
9148 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
9149 both bound checks, rather than a conjunction.
9150 (Insert_Valid_Check): If the expression is an actual that is an indexed
9151 component of a bit-packed array, force expansion of the packed element
9152 reference, because it is specifically inhibited elsewhere.
9154 2005-06-14 Vincent Celier <celier@adacore.com>
9156 * clean.adb (Clean_Project): Correctly delete executable specified as
9157 absolute path names.
9159 * make.adb (Gnatmake): Allow relative executable path names with
9160 directory information even when project files are used.
9161 (Change_To_Object_Directory): Fail gracefully when unable to change
9162 current working directory to object directory of a project.
9163 (Gnatmake): Remove exception handler that could no longer be exercized
9164 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
9165 may be deallocated by Normalize_Arguments.
9166 (Collect_Arguments): Eliminate empty arguments
9168 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
9169 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
9170 (Check_Project): Return False when Project is No_Project. Return True
9171 when All_Projects is True.
9172 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
9173 All_Projects to True.
9176 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9177 Javier Miranda <miranda@adacore.com>
9178 Thomas Quinot <quinot@adacore.com>
9179 Robert Dewar <dewar@adacore.com>
9180 Hristian Kirtchev <kirtchev@adacore.com>
9181 Gary Dismukes <dismukes@adacore.com>
9183 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
9184 anonymous access types, to indicate that the accessibility level of
9185 the type is determined by that of the enclosing declaration.
9186 (Has_Persistent_BSS): New flag
9187 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
9188 of this attribute with functions.
9189 (Is_Primitive_Wrapper): Remove the barrier.
9190 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
9191 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
9193 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
9194 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
9196 (Is_Pure_Unit_Access_Type): New flag
9197 (Abstract_Interfaces): Complete the assertion to cover all usages.
9198 (Set_Is_Interface): Complete the assertion to cover all usages.
9199 (Is_Primitive_Wrapper): New attribute.
9200 (Is_Obsolescent): Now applies to all entities (though it is only set
9201 for subprograms currently)
9202 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
9203 which solves various problems concerning access subtypes.
9204 (Has_Persistent_BSS): New flag
9205 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
9206 Remove these subprograms because this attribute is currently
9209 Has_Specified_Stream_Input (Flag190)
9210 Has_Specified_Stream_Output (Flag191)
9211 Has_Specified_Stream_Read (Flag192)
9212 Has_Specified_Stream_Write (Flag193)
9213 Present in all type and subtype entities. Set for a given view if the
9214 corresponding stream-oriented attribute has been defined by an
9215 attribute definition clause. When such a clause occurs, a TSS is set
9216 on the underlying full view; the flags are used to track visibility of
9217 the attribute definition clause for partial or incomplete views.
9218 (Is_Pure_Unit_Access_Type): New flag
9219 Clarify use of Is_Internal.
9220 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
9221 internally generated to wrap the invocation of tasks and protected
9222 types that implement interfaces.
9223 (Implementation_Base_Type): Documentation correction
9224 (Is_Obsolescent): Now applies to all entities (though it is only set
9225 for subprograms currently)
9226 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
9227 which solves various problems concerning access subtypes.
9229 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
9230 for examined parameters. Identify unequal parameter list lengths as
9231 non-conformant parameters.
9232 (Overriding_Possible): Do not check for "All" qualifier in declaration
9233 of controlling access parameter, following prescription of AI-404.
9234 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
9235 that build the procedure body that wraps an entry invocation
9236 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
9237 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
9238 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
9239 give support to abstract interface types
9241 * freeze.adb (Freeze_Entity): Issue error message if
9242 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
9243 type has no storage pool (Ada 2005) AI-366.
9244 Also modified to give support to abstract interface types
9245 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
9246 Inline_Always pragma.
9248 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
9249 now begin an entry declaration.
9250 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
9251 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
9252 a subprogram declaration preceded by an overriding indicator.
9253 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
9254 declarations or subprogram declarations preceded by reserved words
9255 "not" or "overriding".
9256 (P_Entry_Declaration): Update comment. Parse and check overriding
9257 indicator, set semantic flags of entry declarations.
9258 (P_Task): New error message in case of private applied
9259 to a task type declaration.
9260 (P_Protected): New error message in case of private applied
9261 to a task type declaration.
9263 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
9264 in which the full view of a type implementing an interface is a
9266 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
9267 Declare_Inherited_Private_Subprograms): If an explicit operation
9268 overrides an operation that is inherited in the private part, mark the
9269 explicit one as overriding, to enable overriding indicator checks.
9270 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
9271 full view to partial view, to simplify handling in back-end.
9273 * sprint.adb: Print interface lists where needed: derived types,
9274 protected types, task types.
9275 output "is null" for null procedures. Part of implementation of
9277 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
9278 relaxation of rules for access types in pure, shared passive partitions.
9280 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
9281 first read discriminants into temporary objects, performing checks on
9282 the read values, then possibly performing discriminant checks on the
9283 actual (if it is constrained), and only finally reading the components
9284 into a constrained temporary object.
9285 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
9286 case of reading discriminants of a mutable record type to recognize
9287 the new form of the code generated by
9288 Build_Mutable_Record_Read_Procedure.
9290 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
9291 of a simple call to Make_TSS_Name.
9292 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
9293 buffer, in order for Is_TSS to work correctly on local TSS names.
9295 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
9296 Is_Local_Anonymous_Access to check legaliy of attributes in the
9297 context of access components and stand-alone access objects.
9298 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
9299 treated as available for a limited private type if there is an
9300 attribute_definition_clause that applies to its full view, but not in
9301 other cases where the attribute is available for the full view
9302 (specifically, the sole fact that the full view is non-limited does not
9303 make the attribute available for the partial view).
9304 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
9305 non-overloaded intrinsic subprogram.
9306 (Check_Stream_Attribute): Reject an attribute reference for an
9307 unavailable stream attribute even if the prefix is not a limited type
9308 (case of a 'Input attribute reference for an abstract, non-classwide
9310 (Stream_Attribute_Available): New function to determine whether a stream
9311 attribute is available at a place.
9312 (Check_Attribute): Use Stream_Attribute_Available instead of just
9313 testing for TSS presence on the implementation base type.
9314 (Analyze_Attribute): Modified to give support to task interfaces.
9315 (Analyze_Access_Attribute): Add error check for use of an Access (or
9316 Unrestricted_Access) attribute with a subprogram marked as
9318 (Analyze_Attribute, case Attribute_Address): Add error check for use of
9319 an Address attribute with a subprogram marked as Inline_Always.
9320 Update Eval_Attribute to handle new value of Width from AI-395
9322 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
9323 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
9324 Factor common code across the stream-oriented attribute circcuits into
9325 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
9326 processing is functionally identical to the previous duplicated one,
9327 except that an expression that denotes an abstract subprogram will now
9328 be rejected, as mandated by AI-195 item 5.
9330 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
9331 Is_Local_Anonymous_Access to apply accessibility checks to access
9332 components and stand-alone access objects.
9333 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
9335 (Is_Potentially_Persistent_Type): New function
9336 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
9337 a heap-object whose type has a constrained partial view, the object is
9338 unconstrained and the component may depend on a discriminant, making its
9341 * sinfo.ads, sinfo.adb
9342 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
9343 (Must_Override): Flag applicable to N_Entry_Declaration.
9344 Indicate that interface_list can appear in single task and single
9345 protected declarations.
9346 Replace Is_Overriding and Not_Overriding with Must_Override and
9347 Must_Not_Override, to better express intent of AI.
9348 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
9349 of an overriding indicator in a subprogram or instance.
9350 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
9351 Add the overriding indicator [[not] overriding] construct to the
9352 following grammar productions:
9354 GENERIC_INSTANTIATION
9355 SUBPROGRAM_SPECIFICATION
9357 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
9358 can start with an overriding indicator.
9360 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
9361 flags accordingly on subrogram specifications or instances.
9364 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
9365 overriding_indicator, if present, is consistent with status of spec.
9366 Improve error message for null-excluding checks on controlling access
9368 (Check_In_Previous_With_Clause): Protect the frontend against
9369 previously reported critical errors in the context clauses.
9370 Save and restore Ada_Version_Explicit, for implementation of AI-362
9371 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
9372 operation verify that controlling formals of the renamed entity that
9373 are access parameters are explicitly non-null.
9374 (Find_Expanded_Name): Improve error message when prefix is an illegal
9375 reference to a private child unit.
9377 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
9378 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
9379 Rewrite to correspond to new wide character names in AI-395
9381 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
9384 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9385 Robert Dewar <dewar@adacore.com>
9387 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
9388 code, not on the bodies of predefined operations, to cut down on
9391 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9393 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
9394 be expanded in place. The size computation does not require a
9395 subtraction, which would raise an exception on a compiler built with
9396 assertions when the upper bound is Integer'first.
9397 (Flatten): For an array of composite components, take into account the
9398 size of the components to determine whether it is safe to expand the
9399 array into a purely positional representation.
9401 2005-06-14 Thomas Quinot <quinot@adacore.com>
9403 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
9404 denoting a formal parameter into account.
9406 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9408 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
9409 the entry_call alternative of a conditional entry call, wrap the
9410 conditional entry call itself.
9412 2005-06-14 Nicolas Setton <setton@adacore.com>
9413 Ed Schonberg <schonberg@adacore.com>
9415 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
9416 the "simple_choice" member in a variant record, in accordance with the
9417 description in the package spec: the information output for a constant
9418 should be "S number", not "SS number".
9419 (Get_Encoded_Name): Return at once if not generating code. Avoids name
9420 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
9422 2005-06-14 Thomas Quinot <quinot@adacore.com>
9424 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
9425 RACW without any primitives, do not generate the if statement for
9426 dispatching by name in the PolyORB/DSA case, as it would be malformed
9427 (it would have an Elsif_Parts list that is not No_List, but with a
9430 2005-06-14 Robert Dewar <dewar@adacore.com>
9432 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
9434 2005-06-14 Jose Ruiz <ruiz@adacore.com>
9436 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
9437 can determine whether pragma Suppress_Exception_Locations is in effect.
9439 * utils2.c (build_call_raise): Do not pass the file name to the
9440 exception handler if pragma Suppress_Exception_Locations is in effect.
9441 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
9443 2005-06-14 Emmanuel Briot <briot@adacore.com>
9445 * g-debpoo.adb (Deallocate, Dereference): Improve output.
9447 2005-06-14 Nicolas Roche <roche@adacore.com>
9449 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
9451 (Next_Level): Fix minor bug in handling of ../dir case
9452 (Read): Add dir separator to Directory name so that "" is understood as
9455 2005-06-14 Pascal Obry <obry@adacore.com>
9457 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
9458 releasing the items.
9460 2005-06-14 Vincent Celier <celier@adacore.com>
9461 Cyrille Comar <comar@adacore.com>
9463 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
9464 with output file descriptor and with output file name.
9465 (Dup, Dup2): Now global procedures as they are used by two subprograms
9466 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
9468 2005-06-14 Thomas Quinot <quinot@adacore.com>
9471 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
9473 (Create_Selector): Bind listening socket used to create the signalling
9474 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
9475 Set listen backlog to 1 to ensure that we detect socket theft by a
9476 failure of our own connect(2) call.
9477 (Check_Selector): Improve documentation of the selector mechanism.
9478 (Broadcast_Inet_Addr): New constant.
9480 2005-06-14 Gary Dismukes <dismukes@adacore.com>
9482 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
9483 type which turns out to be an incomplete and incorrect fix.
9484 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
9485 of the type is declared in a record (for determination of insertion
9487 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
9488 a private type and ensure that the primary entity is used for the type
9489 of the newly created function's V formal by taking the Etype of the
9492 2005-06-14 Javier Miranda <miranda@adacore.com>
9493 Jose Ruiz <ruiz@adacore.com>
9494 Robert Dewar <dewar@adacore.com>
9495 Ed Schonberg <schonberg@adacore.com>
9497 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
9498 that indicates if we are parsing a compilation unit found in a
9499 limited-with clause.
9500 It is use to avoid the circularity check.
9502 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
9503 we are parsing a compilation unit found in a limited-with clause. This
9504 is use to avoid the circularity check.
9506 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
9507 unit as a consequence of parsing a limited-with clause. This is used
9508 to avoid the circularity check.
9510 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
9511 (Analyze_Context): Limited-with clauses are now allowed
9512 in more compilation units.
9513 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
9514 againts previously reported critical errors in context clauses
9515 (Install_Limited_Withed_Unit): Code cleanup plus static detection
9516 of two further errors: renamed subprograms and renamed packages
9517 are not allowed in limited with clauses.
9518 (Install_Siblings): Do not install private_with_clauses on the package
9519 declaration for a non-private child unit.
9520 (Re_Install_Parents): When a parent of the subunit is reinstalled,
9521 reset visibility of child units properly.
9522 (Install_Withed_Unit): When a child unit appears in a with_clause of its
9523 parent, it is immediately visible.
9525 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9526 Emmanuel Briot <briot@adacore.com>
9528 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
9529 declared within an inlined body as referenced, to prevent spurious
9531 (Output_One_Ref): If an entity renames an array component, indicate in
9532 the ALI file that this aliases (renames) the array. Capture as well
9533 function renamings that rename predefined operations.
9534 Add information about generic parent for package and subprogram
9536 (Get_Type_Reference): For a subtype that is the renaming of an actual in
9537 an instantiation, use the first_subtype to ensure that we don't generate
9538 cross-reference information for internal types.
9539 For objects and parameters of a generic private type, retain the '*'
9540 indicator to distinguish such an entity from its type.
9542 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
9543 to store information about instantiated entities.
9545 * ali.adb (Scan_ALI): Add support for parsing the reference to the
9548 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
9549 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
9552 2005-06-10 Doug Rupp <rupp@adacore.com>
9553 Arnaud Charlet <charlet@adacore.com>
9554 Olivier Hainque <hainque@adacore.com>
9555 Jose Ruiz <ruiz@adacore.com>
9557 * Make-lang.in: Add initialize.o when needed.
9558 Remove obsolete references to RT_FLAGS.
9559 Add missing dependencies for sdefault.o
9561 * initialize.c: New file.
9563 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
9564 [VMS] cond_signal_table: Fix problem in declaration.
9565 [VMS] __gnat_error_handler: rewrite.
9566 Move all __gnat_initialize() routines to initialize.c
9567 Specialize the former "hpux" section to "hppa hpux", as this is what the
9568 section really is here for and we now have other hpux ports that need
9570 (__gnat_adjust_context_for_raise) i386-linux: First version of this
9571 function for this target. Adjust PC by one in the machine context. This
9572 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
9573 it is more reliable to do that in the signal handler itself.
9574 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
9575 flags, so that the handler is passed the context structure to adjust
9577 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
9578 SA_SIGINFO sigaction should look like. Call
9579 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
9580 Machine_State_Operations stuff.
9581 Add conditional code so that the x86_64 is also supported.
9583 2005-06-14 Pascal Obry <obry@adacore.com>
9585 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
9588 2005-06-14 Robert Dewar <dewar@adacore.com>
9590 * opt.ads, opt.adb: New flags for persistent_bss mode
9591 Add Ada_Version_Explicit, for implementation of AI-362
9592 Add Assertions_Enabled_Config and associated handling
9593 Needed since setting can be changed with Assertion_Policy pragma
9594 Add new flag Warn_On_Ada_2005_Compatibility
9596 * switch-c.adb: Recognize -gnatwy/Y
9597 Set Ada_Version_Explicit, for implementation of AI-362
9598 The -gnatg switch now includes -gnatyu
9600 * usage.adb: Add -gnatwy/Y
9601 Remove wrong asterisk on -gnatwX line
9602 Add line for -gnatyu switch
9604 2005-06-14 Vincent Celier <celier@adacore.com>
9606 * osint.adb (Add_Default_Search_Dirs): Put source and object
9607 directories of project files before directories coming from
9608 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
9610 2005-06-14 Robert Dewar <dewar@adacore.com>
9613 * par-ch2.adb (Scan_Pragma_Argument): New procedure
9614 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
9616 2005-06-14 Vincent Celier <celier@adacore.com>
9618 * prep.adb (Preprocess): Ignore error when scanning the first token of
9621 2005-06-14 Vincent Celier <celier@adacore.com>
9623 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
9624 (Check_Stand_Alone_Library): If the specified reference symbol file does
9625 not exist, only issue a warning when the symbol policy is not
9626 Controlled. And, when symbol policy is Compliant, set the symbol
9627 policy to Autonomous.
9629 2005-06-14 Vincent Celier <celier@adacore.com>
9631 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
9632 when the project file in a with clause is not the last one, that is the
9633 project file name is followed by a comma.
9634 * prj-pp.adb: (First_With_In_List): New Boolean global variable
9635 (Print): Issue list of project files separated by commas in with clauses
9636 according to the values returned by Is_Not_Last_In_List.
9637 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
9638 (Set_Is_Not_Last_In_List): New procedure
9640 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
9642 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
9644 2005-06-14 Robert Dewar <dewar@adacore.com>
9646 * scng.adb: Add call to new Check_EOF routine
9647 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
9648 Add some comments regarding wide character handling
9650 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
9652 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
9654 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
9655 characters are now considered graphic characters and hence yield false
9658 * nmake.adt: Modify header so that xnmake does not generate output
9659 files with multiple blank lines.
9661 * treeprs.adt: Remove a blank line so that output from xtreeprs does
9662 not have an extra blank line
9664 2005-06-14 Gary Dismukes <dismukes@adacore.com>
9666 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
9667 expression when the component type is an anonymous access type to
9668 ensure that appropriate accessibility checks are done.
9670 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
9671 expression of an assignment when the target object is of an anonymous
9672 access type. This ensures that required accessibility checks are done.
9673 (One_Bound): Move the check for type Universal_Integer to
9675 (Process_Bounds): Check whether the type of the preanalyzed range is
9676 Universal_Integer, and in that case set Typ to Integer_Type prior
9677 to setting the type of the original range and the calls to One_Bound.
9679 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9681 * sem_case.adb (Expand_Others_Choice): Improve warning.
9683 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9685 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
9686 constraint of full view if present, when other type is discriminated.
9687 (Eval_Relational_Op): Recognize tests of pointer values against Null,
9688 when the pointer is known to be non-null, and emit appropriate warning.
9690 2005-06-14 Robert Dewar <dewar@adacore.com>
9691 Ed Schonberg <schonberg@adacore.com>
9694 * sem_prag.adb: Implement pragma Persistent_BSS
9695 Remove obsolete pragma Persistent_Data, Persistent_Object
9696 Set Ada_Version_Explicit, for implementation of AI-362
9697 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
9698 Add processing for pragma Pure_05 and Preelaborate_05
9699 Add processing for Assertion_Policy pragma
9700 Add pragma identifiers for Assert
9701 (Analyze_Pragma, case Assert): Check number of arguments
9702 (Process_Inline): Additional guard against an illegal program, where the
9703 argument of the pragma is undefined, and warnings on redundant
9704 constructs are enabled.
9705 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
9706 Ada_05 to this pragma, specifying that the pragma is only active in
9708 (Check_Arg_Order): New procedure
9709 Add appropriate calls to this procedure throughout
9710 Also throughout, check entity name before doing any other checks
9712 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
9713 Remove obsolete pragma Persistent_Data, Persistent_Object
9714 Add entries for pragma Pure_05 and Preelaborate_05
9715 Add entries for Assertion_Policy pragma and associated names
9716 Add some names for pragma argument processing
9718 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
9720 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9722 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
9723 appears within a negation (either from source or as a rewriting of
9724 inequality) adjust text of warning accordingly.
9726 2005-06-14 Thomas Quinot <quinot@adacore.com>
9728 * s-strxdr.adb: Follow AI95-00132
9730 2005-06-14 Arnaud Charlet <charlet@adacore.com>
9732 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
9734 2005-06-14 Arnaud Charlet <charlet@adacore.com>
9735 Jose Ruiz <ruiz@adacore.com>
9737 * s-tposen.adb, s-tpobop.adb
9738 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
9740 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
9741 there is no violation of the Max_Entry_Queue_Length restriction (if it
9742 has been set); Program_Error is raised otherwise.
9743 (Requeue_Call): Before requeuing the task on the target entry queue we
9744 check that there is no violation of the Max_Entry_Queue_Length
9745 restriction (if it has been set); Program_Error is raised otherwise.
9747 2005-06-14 Robert Dewar <dewar@adacore.com>
9749 * styleg.adb: Fix several remaining problems in -gnatyu switch
9750 Blank line count not reset at start
9751 Scanning outside source buffer in some cases
9752 Confusing message for blanks at end of file
9753 Non-empty blank lines not recognized
9755 * nmake.adt: Modify header so that xnmake does not generate output
9756 files with multiple blank lines.
9758 * treeprs.adt: Remove a blank line so that output from xtreeprs does
9759 not have an extra blank line
9761 2005-06-14 Sergey Rybin <rybin@adacore.com>
9763 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
9765 2005-06-14 Doug Rupp <rupp@adacore.com>
9766 Vincent Celier <celier@adacore.com>
9768 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
9771 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
9772 Remove "Library" command.
9773 Change keyword for style check -gnatyd from NOCRLF to
9775 Remove useless second style check keyword NONE
9776 Remove help documentation for inexistent style check keyword
9778 Add help documentation for style check keywords DOS_LINE_ENDINGS,
9779 UNNECESSARY_BLANK_LINES and XTRA_PARENS
9780 Add UNNECESSARY_BLANK_LINES for -gnatyu
9781 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
9783 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
9785 2005-06-14 Vincent Celier <celier@adacore.com>
9787 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
9788 gprmake was invoked with -d.
9789 (Compile_Sources): If -d was used, output the "completed ..." message
9790 for each compilation.
9791 (Scan_Arg): Recognize new switch -d
9792 When -c and at least one main is specified, set
9793 Unique_Compile to True to guarantee that no other sources will be
9796 2005-06-14 Matthew Heaney <heaney@adacore.com>
9798 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
9799 * a-swuwha.ads, a-swuwha.adb: New files
9801 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
9802 * a-szuzha.ads, a-szuzha.adb: New files.
9804 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
9805 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
9806 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
9807 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
9808 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
9809 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
9810 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
9811 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
9812 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
9813 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
9816 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
9817 Olivier Hainque <hainque@adacore.com>
9818 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9819 Pascal Obry <obry@adacore.com>
9821 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
9823 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
9824 making a temporary around a procedure call because of non-addressable
9826 (process_freeze_entity): If entity is a private type, capture size
9827 information that may have been computed for the full view.
9828 (tree_transform, case N_Allocator): If have initializing expression,
9829 check type for Has_Constrained_Partial_View and pass that to
9831 (tree_transform, case N_Return_Statement): Pass extra arg to
9834 * decl.c (annotate_value): Remove early return if -gnatR is not
9836 (gnat_to_gnu_field): Don't make a packable type for a component clause
9837 if the position is byte aligned, the field is aliased, and the clause
9838 size isn't a multiple of the packable alignment. It serves no useful
9839 purpose packing-wise and would be rejected later on.
9840 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
9843 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
9844 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
9846 (create_concat_name): Idem.
9848 2005-06-10 Robert Dewar <dewar@adacore.com>
9849 Eric Botcazou <ebotcazou@adacore.com>
9850 Ben Brosgol <brosgol@adacore.com>
9851 Cyrille Comar <comar@adacore.com>
9852 Sergey Rybin <rybin@adacore.com>
9853 Pascal Obry <obry@adacore.com>
9855 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
9856 Document second argument (Ada_05) of pragma Obsolescent
9857 Add note that call to subprogram marked with pragma Obsolescent
9858 is now considered to be a violation of program Restrictions
9859 (No_Obsolescent_Features).
9860 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
9861 that only machine-dependent attributes are supported.
9864 Commented out menu lines and empty section for gnatclean examples
9866 Fix some over long lines
9867 Clarify and enhance documentation of ADA_PROJECT_PATH.
9868 Rework section 2.11.2(3) about linking with a non-GNU compiler.
9869 Mention new switch -fcallgraph-info.
9870 Mention new switch -fstack-usage.
9871 For gnatpp, replace '-notab' with '-N' and add this option to Index
9872 Corrected VMS example.
9873 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
9875 Add documentation for -gnatyu switch (unnecessary blank lines)
9876 Document new switch -U for GNAT PRETTY and GNAT METRIC
9877 Add note about Stdcall being handled as C convention on non Windows OS.
9878 Remove some junk typo in description of gnatbind -S switch
9879 Remove reference to Extensions_Allowed pragma
9880 Document the new order of the directories to be searched (source and
9881 object directories of project files before directories in ADA_*_PATH
9882 environment variables.
9884 * g-trasym.ads: Document that IRIX is supported
9886 2005-06-10 Arnaud Charlet <charlet@adacore.com>
9888 * Makefile.in: Add initialize.o when needed.
9889 Adapt to new VMS package body Symbols and subunits
9890 No specialized version of a-sytaco is needed for VxWorks.
9892 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
9893 * a-zchara.ads, a-widcha.ads: New files.
9895 * system-hpux-ia64.ads: New file.
9897 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
9898 is imported from the VxWorks kernel.
9900 2005-06-14 Robert Dewar <dewar@adacore.com>
9902 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
9903 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
9904 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
9905 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
9906 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
9907 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
9908 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
9909 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
9910 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
9911 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
9912 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
9913 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
9915 2005-06-14 Thomas Quinot <quinot@adacore.com>
9917 * xeinfo.adb: Fix typo in comment
9919 2005-06-14 Javier Miranda <miranda@adacore.com>
9921 * repinfo.ads: Fix typo in comment
9923 2005-06-14 Gary Dismukes <dismukes@adacore.com>
9925 * s-finimp.adb (Parent_Tag): Delete this imported function (function
9926 Parent_Tag is now in the visible part of Ada.Tags).
9927 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
9928 using imported function.
9930 2005-06-14 Bernard Banner <banner@adacore.com>
9932 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
9933 also apply for handling support for VxSim 653.
9935 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
9937 * xsnames.adb: Add automatic generation of snames.h.
9939 2005-06-14 Thomas Quinot <quinot@adacore.com>
9941 * gen-soccon.c: Add IP_MULTICAST_IF constant
9942 Minor reformatting and adjustments to prevent warnings.
9944 2005-06-14 Pascal Obry <obry@adacore.com>
9946 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
9948 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
9950 * trans.c (gnat_gimplify_expr): Call
9951 recompute_tree_invarant_for_addr_expr when we change
9952 the operand of the ADDR_EXPR.
9954 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9956 * misc.c: Don't include errors.h.
9958 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9960 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
9962 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
9964 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
9966 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
9968 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
9971 * Makefile.in: Make TGT_LIB behave correctly.
9973 2005-04-23 DJ Delorie <dj@redhat.com>
9975 * misc.c: Adjust warning() callers.
9977 2005-04-16 Laurent GUERBY <laurent@guerby.net>
9980 * a-nudira.adb (Value): Check for valid string.
9981 * a-nuflra.adb (Value): Likewise.
9983 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
9985 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
9987 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
9989 * adaint.c, init.c, tracebak.c: Fix comment typos.
9990 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
9992 2005-04-07 Laurent GUERBY <laurent@guerby.net>
9993 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9995 * Makefile.in: Add make ifeq define for hppa linux tasking support.
9996 * system-hpux.ads: Define Signed_Zeros to be True.
9997 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
9999 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
10001 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
10002 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
10005 2005-03-30 Tom Tromey <tromey@redhat.com>
10007 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
10009 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10011 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
10013 2005-03-29 Robert Dewar <dewar@adacore.com>
10015 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
10016 fixed-point expression has value that is not a multiple of the Small
10019 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
10021 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
10024 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
10026 2005-03-29 Vincent Celier <celier@adacore.com>
10028 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
10029 (Build_Dynamic_Library.Version_String): Return the empty string when
10030 Lib_Version is empty or when the symbol policy is not Autonomous.
10032 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
10033 a symbol is not in the reference symbol file, increase the Major ID
10034 and set the Minor ID to 0.
10035 Use gsmatch=lequal instead of gsmatch=equal
10037 2005-03-29 Doug Rupp <rupp@adacore.com>
10039 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
10040 name and translate.
10042 2005-03-29 Javier Miranda <miranda@adacore.com>
10044 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
10045 (Inherit_DT): The first formal has been redefined as a Tag.
10046 This allows us the removal of the subprogram Get_TSD.
10047 (TSD): Replace the call to Get_TSD by the actual code.
10049 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
10050 (Make_DT): Upgrade the call to Inherit_TSD according to the
10051 new interface: the first formal is now a Tag.
10053 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
10054 redefined as a Tag.
10055 This change allows us to remove the subprogram Get_TSD.
10056 (CPP_Get_TSD): Subprogram removed.
10057 (TSD): Replace the call to CPP_Get_TSD by the actual code.
10059 * rtsfind.ads: Remove support to call the run-time
10062 2005-03-29 Robert Dewar <dewar@adacore.com>
10064 * errutil.adb, errout.adb:
10065 Minor comment updates on Line_Terminator references
10067 * par-ch10.adb: Add ??? comment about line terminator
10069 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
10070 (check dos line terminator).
10071 (Check_Line_Max_Length): New procedure, split off from the existing
10072 Check_Line_Terminator routine. Separating this out allows -gnatyf to
10073 be properly recognized.
10075 * styleg.adb: Add ??? comment for line terminator reference
10077 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
10078 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
10080 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
10081 (check dos line terminator).
10082 (Check_Line_Max_Length): New procedure, split off from the existing
10083 Check_Line_Terminator routine. Separating this out allows -gnatyf to
10084 be properly recognized.
10086 * stylesw.ads, stylesw.adb:
10087 Add handling for new -gnatyd switch (check dos line terminator)
10089 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
10090 Recognize -gnatwb/-gnatwB switches
10091 Include Warn_On_Bad_Fixed_Value for -gnatg
10094 Add line for new -gnatyd switch (check dos line terminator)
10096 * usage.adb: Add lines for -gnatwb/-gnatwB
10098 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
10100 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
10102 * gnat_ugn.texi: Fix overlong lines
10103 Document new -gnatyd switch
10104 Document new -gnatwb/-gnatwB switches
10106 2005-03-29 Ed Schonberg <schonberg@adacore.com>
10108 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
10109 order to retrieve the component list of the type, before examining
10110 individual components.
10112 * sem_type.adb (Covers): Types are compatible if one is the base type
10113 of the other, even though their base types might differ when private
10114 views are involved.
10116 2005-03-29 Thomas Quinot <quinot@adacore.com>
10118 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
10119 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
10120 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
10121 analyzed if expansion is disabled (which could otherwise cause spurious
10122 error messages if expansion has been disabled due to previous
10123 (unrelated) errors).
10125 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
10126 is disabled, the entity denoted by the argument is the access type
10127 itself, not an underlying record type, so there is no need to go back
10128 to the Corresponding_Remote_Type.
10130 2005-03-29 Gary Dismukes <dismukes@adacore.com>
10131 Robert Dewar <dewar@adacore.com>
10133 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
10134 expand a call to an instance of
10135 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
10136 Constructor actual of the instance. A class-wide membership
10137 check is also generated, to ensure that the tag passed to the instance
10138 denotes a type in the class.
10139 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
10140 of Name_Generic_Dispatching_Constructor.
10142 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
10143 05 unit for AI-260-02).
10145 * a-tgdico.ads: New file.
10147 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
10148 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
10150 * snames.ads, snames.adb (Preset_Names): Add entry for
10151 Generic_Dispatching_Constructor.
10154 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
10155 character type cases.
10156 (Analyze_Subprogram_Renaming): Add special handling for
10157 the case of renaming of stream attributes when the renaming denotes a
10158 generic formal subprogram association for an abstract formal subprogram.
10159 Check that the attribute is a primitive stream attribute (and not
10160 a class-wide stream attribute) and then rewrite the attribute name
10161 as the name of the appropriate compiler-generated stream primitive.
10163 2005-03-29 Robert Dewar <dewar@adacore.com>
10165 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
10167 (Is_Possibly_Unaligned_Object): Correct typo that
10168 resulted in inaccurate result for unaligned scalars within records.
10170 2005-03-29 Ed Schonberg <schonberg@adacore.com>
10172 * freeze.adb (Freeze_Record_Type): If the type of the component is an
10173 itype whose parent is controlled and not yet frozen, do not create a
10174 freeze node for the itype if expansion is disabled.
10176 2005-03-29 Vincent Celier <celier@adacore.com>
10178 * make.adb (Gnatmake): Don't fail if the main project file is declared
10179 as having no Ada sources. Do not display message "no sources to
10180 compile" in quiet output.
10182 2005-03-29 Doug Rupp <rupp@adacore.com>
10184 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
10187 2005-03-29 Robert Dewar <dewar@adacore.com>
10189 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
10192 2005-03-29 Robert Dewar <dewar@adacore.com>
10194 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
10195 missing TYPE Improve the error message generated when compiling a
10196 limited interface in Ada83 or Ada95 mode.
10198 2005-03-29 Robert Dewar <dewar@adacore.com>
10200 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
10201 rather than proceed ahead using a junk attribute name.
10203 2005-03-29 Vincent Celier <celier@adacore.com>
10205 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
10207 * prj-part.adb (Parse_Single_Project): Set the location of a project
10208 on its defining identifier, rather than on the reserved word "project".
10210 * prj-proc.adb (Expression): Adapt to the fact that default of external
10211 references may be string expressions, not always literal strings.
10212 (Recursive_Process): Set Display_Name equal to Name
10213 when Location is No_Location, that is when there is no actual file.
10214 Get the Display_Name of the project from the source, when it is not a
10216 (Process): Use the Display_Name in error messages
10218 * prj-strt.adb (External_Reference): Allow default to be string
10219 expressions, not only literal strings.
10221 2005-03-29 Vincent Celier <celier@adacore.com>
10223 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
10224 file and the reference symbol file to be the same file.
10226 2005-03-29 Thomas Quinot <quinot@adacore.com>
10228 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
10229 forbid conversion of a local access-to-subprogram type to a remote one.
10231 * sem_util.adb (Wrong_Type): For a record type that is the expanded
10232 equivalent type for a remote access-to-subprogram type, go back to the
10233 original RAS entity when displaying an error message, so the casing is
10234 the original source casing.
10236 2005-03-29 Robert Dewar <dewar@adacore.com>
10238 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
10241 2005-03-29 Ed Schonberg <schonberg@adacore.com>
10243 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
10244 subtype if code is being pre-analyzed, to prevent un-expanded
10245 references to protected formals, among others.
10246 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
10247 interpretation that can be a call, include the result of the call as a
10248 possible interpretation of the dereference.
10250 * sem_ch5.adb (Process_Bounds): Determine type of range by
10251 pre-analyzing a copy of the original range, and then analyze the range
10252 with the expected type.
10254 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
10255 with an overloaded prefix where not all interpretations yield an
10256 access to subprogram, do not rewrite node as a call.
10257 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
10258 the node as a call once the context identifies the interpretation of
10259 the prefix whose call yields the context type.
10260 (Valid_Conversion): For the case of a conversion between
10261 local access-to-subprogram types, check subtype conformance using
10262 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
10263 detailed error message.
10265 2005-03-29 Ed Schonberg <schonberg@adacore.com>
10267 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
10268 indicator, indicate that the formal can never be null.
10269 (Process_Formals): If a formal has a non_null indicator, insert the
10270 resulting subtype immediately before the enclosing subprogram decl,
10271 and not at the beginning of the corresponding declarative part, to
10272 prevent access before elaboration (Ada2005).
10274 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10277 * utils.c (finish_record_type): Use variable_size when setting sizes.
10279 2005-03-29 Robert Dewar <dewar@adacore.com>
10281 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
10282 guarantee Unix style line terminators for the output files, even when
10283 running on windows.
10285 2005-03-29 Robert Dewar <dewar@adacore.com>
10287 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
10288 buffer if an exception is raised.
10290 2005-03-29 Ed Falis <falis@adacore.com>
10292 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
10295 2005-03-29 Robert Dewar <dewar@adacore.com>
10297 * sem_util.ads: Minor reformatting
10298 * gnat_rm.texi: Minor editing.
10300 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
10302 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
10303 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
10305 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10307 * adaint.c (__gnat_portable_spawn): Adjust cast.
10309 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
10311 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
10313 2005-03-17 Pascal Obry <obry@adacore.com>
10315 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
10318 * expect.c (__gnat_waitpid): Moved here from adaint.c.
10319 Reimplement under Win32 using Win32 API.
10321 (__gnat_kill) [Win32]: Properly close the process handle before leaving
10324 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
10326 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
10327 (DECL_RENAMED_OBJECT): New accessor macro.
10328 (SET_DECL_RENAMED_OBJECT): New setter macro.
10330 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
10331 object in all cases. Attach the renamed object to the VAR_DECL.
10332 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
10333 field is not prescribed.
10335 * misc.c (gnat_handle_option): Handle -gnatO separately.
10336 (gnat_print_decl) <VAR_DECL>: New case.
10337 Print the DECL_RENAMED_OBJECT node.
10339 * lang.opt: Declare separate -gnatO option.
10341 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
10342 pointer, replace it with the renamed object.
10343 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
10344 pointer type if the source is not a fat pointer type whose underlying
10345 array has the same non-zero alias set as that of the destination array.
10347 2005-03-17 Javier Miranda <miranda@adacore.com>
10349 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
10350 (Get_Inheritance_Depth): Removed.
10351 (Set_Inheritance_Depth): Removed.
10353 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
10354 subprogram Get_Expanded_Name because it is not referenced by the
10357 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
10358 (CPP_Get_Inheritance_Depth): Removed.
10359 (CPP_Set_Inheritance_Depth): Removed.
10361 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
10363 2005-03-17 Robert Dewar <dewar@adacore.com>
10365 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
10366 3, since we now expect GCC 3 to do all the work.
10368 2005-03-17 Javier Miranda <miranda@adacore.com>
10370 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
10371 of one barrier to avoid wrong usage of this attribute.
10373 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
10374 First_Private_Entity.
10376 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
10377 the subprogram against wrong usage.
10378 Adapt the code to traverse the entities in the
10379 scope of a record_type because in addition to its usage regarding
10380 packages, this subprogram is also called by Expand_N_Freeze_Entity
10381 to install the visible declarations of the enclosing scope of a
10382 record_type_with_private to establish the proper visibility before
10383 freezing the entity and related subprograms.
10385 2005-03-17 Ed Schonberg <schonberg@adacore.com>
10387 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
10390 2005-03-17 Thomas Quinot <quinot@adacore.com>
10392 * exp_ch3.adb (Check_Attr): New subprogram.
10393 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
10394 into a new Check_Attr subprogram, in order to provide a more
10395 explanatory error message (including the name of the missing attribute).
10396 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
10397 subprogram determines whether a default implementation exists for a
10398 given stream attribute.
10399 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
10400 Determine whether to generate a default implementation for each stream
10401 attribute separately, as this depends on the specific attribute.
10403 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
10404 limited extension where a stream attribute is missing for a limited
10405 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
10406 generate a bogus reference to the missing attribute to prevent
10407 cascaded errors. Instead, generate a null statement.
10409 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
10410 available for a limited type if it has been specified for an ancestor
10413 2005-03-17 Ed Schonberg <schonberg@adacore.com>
10415 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
10416 entity is an operator.
10418 2005-03-17 Thomas Quinot <quinot@adacore.com>
10420 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
10421 spec, to make this predicate available to other units.
10423 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
10426 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
10427 when no distribution runtime library is available.
10429 * sem_res.adb, sem_dist.adb: Disable expansion of remote
10430 access-to-subprogram types when no distribution runtime library is
10432 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
10433 predicate available to other units.
10435 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
10436 spec, to make this predicate available to other units.
10438 2005-03-17 Vincent Celier <celier@adacore.com>
10440 * make.adb (Insert_Project_Sources): Make sure the Q is always
10443 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
10444 the default for the tree, not the global default naming.
10446 * prj-proc.adb (Recursive_Process): No need to put the default naming
10447 in the project data, it's already there.
10449 2005-03-17 Doug Rupp <rupp@adacore.com>
10451 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
10453 * 5xcrtl.ads: Renamed to...
10454 * s-crtl-vms64.ads: ...this new file
10456 2005-03-17 Robert Dewar <dewar@adacore.com>
10459 * namet.adb (Copy_One_Character): Set proper wide character encoding
10460 for upper half character if we have upper half encoding.
10462 2005-03-17 Robert Dewar <dewar@adacore.com>
10464 * par.adb (Par): Improved msg for attempt to recompile predefined unit
10466 2005-03-17 Thomas Quinot <quinot@adacore.com>
10468 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
10469 tagged limited type, the TSS is a newly built renaming declaration:
10470 insert it using Set_TSS, not Copy_TSS.
10472 2005-03-17 Javier Miranda <miranda@adacore.com>
10474 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
10475 Try_Object_Operation): Analyze the object that is accessible
10476 through the prefix of the subprogram call before we apply
10477 the transformation of the object-operation notation.
10479 2005-03-17 Jose Ruiz <ruiz@adacore.com>
10481 * s-taprob.adb (Initialize_Protection): Initialize the protected
10482 object's owner to Null_Task.
10483 (Lock): If pragma Detect_Blocking is in effect and the caller of this
10484 procedure is already the protected object's owner then Program_Error
10485 is raised. In addition the protected object's owner is updated.
10486 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
10487 of this procedure is already the protected object's owner then
10488 Program_Error is raised.
10489 In addition the protected object's owner is updated.
10490 (Unlock): Remove the ownership of the protected object.
10492 * s-taprob.ads (Protection): Add the field Owner, used to store the
10493 protected object's owner.
10494 This component is needed for detecting one type of potentially blocking
10495 operations (external calls on a protected subprogram with the same
10496 target object as that of the protected action). Document the rest of
10499 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
10500 Initialize the protected object's owner to Null_Task.
10501 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
10502 caller of this procedure is already the protected object's owner then
10503 Program_Error is raised.
10504 Do not raise Program_Error when this procedure is called from a
10506 (Unlock_Entries): Remove the ownership of the protected object.
10507 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
10508 of this procedure is already the protected object's owner then
10509 Program_Error is raised.
10510 Do not raise Program_Error when this procedure is called from
10511 a protected action.
10513 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
10514 used to store the protected object's owner.
10516 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
10517 effect and this procedure (a potentially blocking operation) is called
10518 from whithin a protected action, Program_Error is raised.
10519 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
10520 and this procedure (a potentially blocking operation) is called from
10521 whithin a protected action, Program_Error is raised.
10523 2005-03-17 Vincent Celier <celier@adacore.com>
10524 Nicolas Setton <setton@adacore.com>
10526 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
10527 switch, not supported by the linker on Darwin. Add '_' before
10528 <library>init, as this character is added unconditionally by the
10530 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
10531 correct one ".dylib". This fixes detection of the archive files when
10532 building library projects.
10534 2005-03-17 Vincent Celier <celier@adacore.com>
10536 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
10537 -gnat83, -gnat95 and -gnat05.
10539 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
10541 * gnat_ugn.texi: Document gnatmem restriction
10543 2005-03-17 Thomas Quinot <quinot@adacore.com>
10545 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
10548 2005-03-17 Robert Dewar <dewar@adacore.com>
10550 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
10551 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
10552 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
10554 * casing.adb: Comment improvements
10556 2005-03-17 Pascal Obry <obry@adacore.com>
10558 * g-expect.adb: Minor reformatting.
10560 2005-03-15 Zack Weinberg <zack@codesourcery.com>
10562 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
10563 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
10566 2005-03-15 Vincent Celier <celier@adacore.com>
10568 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
10569 Add new parameter In_Tree to specify the project tree: needed
10570 by the project manager. Adapt to changes in project manager
10571 using new parameter In_Tree.
10573 2005-03-15 Jakub Jelinek <jakub@redhat.com>
10575 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
10576 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
10577 ada/bldtools to avoid make -jN failures.
10579 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
10581 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
10582 to NULL_TREE on entry.
10584 2005-03-15 Robert Dewar <dewar@adacore.com>
10586 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
10587 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
10588 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
10589 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
10590 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
10591 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
10592 system-interix.ads, system-solaris-sparc.ads,
10593 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
10594 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
10595 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
10596 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
10597 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
10598 Compiler_System_Version to be False.
10600 * opt.ads: Add new flag Opt.Address_Is_Private
10602 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
10603 Add new parameter Compiler_System_Version to avoid checking for
10604 completeness of parameters when compiler is compiling itself.
10605 Allows old versions of GNAT to be compiled with new compiler.
10607 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
10609 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
10610 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
10612 (Stack_Base_Available): New flag.
10613 (Get_Page_Size): New overloaded functions imported from C.
10614 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
10615 PROT_ON, PROT_OFF): New constants.
10616 (mprotect): New function imported from C.
10617 (pthread_teb_t): New record type.
10619 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
10620 (Create_Task): Account for the Yellow Zone and the guard page.
10622 2005-03-15 Vincent Celier <celier@adacore.com>
10624 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10625 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
10626 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
10627 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
10628 Library_File_Name_For): Add new parameter In_Tree
10629 to specify the project tree: needed by the project manager.
10630 Adapt to changes in project manager using new parameter In_Tree.
10631 Remove local imports, use functions in System.CRTL.
10633 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
10634 to use the project manager.
10636 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
10637 In_Tree to designate the project tree. Adapt to changes in the project
10638 manager, using In_Tree.
10640 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
10641 Copy_Interface_Sources): Add new parameter In_Tree to specify the
10642 project tree: needed by the project manager.
10643 (Build_Library): Check that Arg'Length >= 6 before checking if it
10644 contains "--RTS=...".
10646 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
10647 Library_File_Name_For): Add new parameter In_Tree to specify the
10648 project tree: needed by the project manager.
10650 * prj.ads, prj.adb: Major modifications to allow several project trees
10651 in memory at the same time.
10652 Change tables to dynamic tables and hash tables to dynamic hash
10653 tables. Move tables and hash tables from Prj.Com (in the visible part)
10654 and Prj.Env (in the private part). Move some constants from the visible
10655 part to the private part. Make other constants deferred.
10656 (Project_Empty): Make it a variable, not a function
10657 (Empty_Project): Add parameter Tree. Returns the data with the default
10658 naming data of the project tree Tree.
10659 (Initialize): After updating Std_Naming_Data, copy its value to the
10660 component Naming of Project Empty.
10661 (Register_Default_Naming_Scheme): Use and update the default naming
10662 component of the project tree, instead of the global variable
10664 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
10665 Tree is not defaulted, return the default naming data of the Tree.
10666 (Initial_Buffer_Size): Constant moved from private part
10667 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
10668 variables initialized in procedure Initialize.
10669 (Add_To_Buffer): Add two in out parameters to replace global variables
10670 Buffer and Buffer_Last.
10671 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
10673 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
10675 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
10676 for the project tree.
10677 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
10678 constant at the beginning of the package spec, so that they cane be used
10679 in subprograms before their full declarations.
10680 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
10681 (Empty_Project): Add parameter of type Project_Node_Ref
10682 (Private_Project_Tree_Data): Add component Default_Naming of type
10684 (Buffer, Buffer_Last): remove global variables
10685 (Add_To_Buffer): Add two in out parameters to replace global variables
10686 Buffer and Buffer_Last.
10687 (Current_Packages_To_Check): Remove global variable
10688 (Empty_Name): Move to private part
10689 (No-Symbols): Make it a constant
10690 (Private_Project_Tree_Data): New type for the private part of the
10692 (Project_Tree_Data): New type for the data of a project tree
10693 (Project_Tree_Ref): New type to designate a project tree
10694 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
10695 for the project tree.
10697 * prj-attr.ads: Add with Table; needed, as package Prj no longer
10698 imports package Table.
10700 * prj-com.adb: Remove empty, no longer needed body
10702 * prj-com.ads: Move most of the content of this package to package Prj.
10704 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
10705 designate the project node tree and Packages_To_Check to replace
10706 global variable Current_Packages_To_Check.
10707 Add new parameters In_Tree and Packages_To_Check to local subprograms,
10708 when needed. Adapt to changes in project manager with project node tree
10711 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
10712 project tree to most subprograms. Move tables and hash tables to
10713 private part of package Prj.
10714 Adapt to changes in project manager using project tree In_Tree.
10716 * prj-makr.adb (Tree): New constant to designate the project node tree
10717 Adapt to change in project manager using project node tree Tree
10719 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
10720 display the Library_Src_Dir and the Library_Dir.
10721 Add new parameter In_Tree to designate the project node tree to most
10722 subprograms. Adapt to changes in the project manager, using project tree
10724 (Check_Naming_Scheme): Do not alter the casing on platforms where
10725 the casing of file names is not significant.
10726 (Check): Add new parameter In_Tree to designate the
10728 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
10729 designate the project tree.
10730 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
10732 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
10733 to replace those that were in the private part of package Prj.
10734 Add new parameter In__Tree to designate the project node tree to most
10735 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
10736 (Post_Parse_Context_Clause): When specifying the project node of a with
10737 clause, indicate that it is a limited with only if there is "limited"
10738 in the with clause, not necessarily when In_Limited is True.
10739 (Parse): Add new parameter In_Tree to designate the project node tree
10741 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
10742 designate the project node tree. Adapt to change in Prj.Tree with
10743 project node tree In_Tree.
10745 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
10746 tree In_Tree in the call to function Empty_Process to give its initial
10747 value to the project data Processed_Data.
10748 Add new parameters In_Tree to designate the project tree and
10749 From_Project_Node_Tree to designate the project node tree to several
10750 subprograms. Adapt to change in project manager with project tree
10751 In_Tree and project node tree From_Project_Node_Tree.
10753 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
10754 to replace those that were in the private part of package Prj.
10755 Add new parameter In_Tree to designate the project node tree to most
10756 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
10758 * prj-tree.ads, prj-tree.adb: Add new parameter of type
10759 Project_Node_Tree_Ref to most subprograms.
10760 Use this new parameter to store project nodes in the designated project
10762 (Project_Node_Tree_Ref): New type to designate a project node tree
10763 (Tree_Private_Part): Change table to dynamic table and hash tables to
10764 dynamic hash tables.
10766 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
10767 the project tree to most subprograms. Adapt to changes in project
10768 manager using project tree In_Tree.
10770 * makegpr.adb (Project_Tree): New constant needed to use project
10773 2005-03-15 Olivier Hainque <hainque@adacore.com>
10775 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
10776 for sigactions with SA_SIGINFO set. Call
10777 __gnat_adjust_context_for_raise before raising, to perform the
10778 potentially required adjustments to the machine context for the GCC
10781 * raise.h (__gnat_adjust_context_for_raise): New prototype.
10783 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
10784 Adjust PC by one in the provided machine context.
10785 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
10786 so that the handler is passed the context structure to adjust prior to
10788 (__gnat_error_handler) HPUX: Adjust the signature to match what an
10789 SA_SIGINFO sigaction should look like. Call
10790 __gnat_adjust_context_for_raise before actually raising.
10791 (__gnat_adjust_context_for_raise): Default noop to help PC
10792 adjustments before raise from signal handlers.
10793 (__gnat_error_handler): Indirectly call a predicate function to
10794 determine if a condition should be resignaled or not.
10795 (__gnat_set_resignal_predicate): User interface to modify the predicate.
10796 (__gnat_default_resignal_p): Default GNAT predicate.
10798 2005-03-15 Doug Rupp <rupp@adacore.com>
10800 * adaint.c: Prefix #include of VMS system header files with vms/
10801 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
10802 Do not define a dummy function "convert_addresses" under Darwin,
10805 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
10808 2005-03-15 Nicolas Setton <setton@adacore.com>
10810 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
10813 2005-03-15 Robert Dewar <dewar@adacore.com>
10815 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
10818 * a-retide.ads: Minor comment changes
10820 2005-03-15 Robert Dewar <dewar@adacore.com>
10822 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
10823 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
10824 Realloc_For_Chunk to private part of package.
10825 New subprograms for AI-301
10827 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
10828 Get_Line procedure.
10829 Avoid unnecessary use of Get/Set_Wide_String
10831 2005-03-15 Robert Dewar <dewar@adacore.com>
10834 * a-stunau.ads, a-stunau.adb:
10835 Change interface to allow efficient (and correct) implementation
10836 The previous changes to allow extra space in unbounded strings had
10837 left this interface a bit broken.
10839 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
10841 * g-spipat.ads, g-spipat.adb: New interface for Get_String
10842 Minor reformatting (function specs)
10844 * g-spitbo.adb: New interface for Get_String
10846 * g-spitbo.ads: Minor reformatting
10848 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
10850 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
10852 2005-03-15 Javier Miranda <miranda@adacore.com>
10853 Robert Dewar <dewar@adacore.com>
10854 Thomas Quinot <quinot@adacore.com>
10855 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10857 * atree.ads, atree.adb: Add support for Elist24 field
10859 * atree.h: Fix wrong definition of Field27
10860 Add support for Elist16 field
10861 Add support for Elist24 field
10863 * einfo.ads, einfo.adb (Abstract_Interfaces,
10864 Set_Abstract_Interfaces): New subprograms.
10865 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
10867 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
10868 entities rather than a single node.
10869 (Is_Interface, Set_Is_Interface): New subprogram
10870 (First_Tag_Component): New syntesized attribute
10871 (Next_Tag_Component): New synthesized attribute
10872 (Write_Entity_Flags): Upgraded to write Is_Interface
10873 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
10874 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
10875 (Task_Body_Procedure): New subprogram to read this attribute.
10876 (Set_Task_Body_Procedure): New subprogram to set this attribute.
10877 (Has_Controlled_Component): Now applies to all entities.
10878 This is only a documentation change, since it always worked to apply
10879 this to other than composite types (yielding false), but now this is
10881 Update documentation on Must_Be_Byte_Aligned for new spec
10883 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
10884 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
10885 uses of the Access_Disp_Table attribute to reference the first dispatch
10886 table associated with a tagged type. As
10887 part of the implementation of abstract interface types,
10888 Access_Disp_Table has been redefined to contain a list of dispatch
10889 tables (rather than a single dispatch table).
10890 Similarly, upgrade all the references to Tag_Component by the
10891 new attribute First_Tag_Component.
10892 (Find_Inherited_TSS): Moved to exp_tss.
10893 Clean up test in Expand_N_Object_Declaration for cases
10894 where we need to do a separate assignment of the initial value.
10895 (Expand_N_Object_Declaration): If the expression in the
10896 declaration of a tagged type is an aggregate, no need to generate an
10897 additional tag assignment.
10898 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
10900 Bit packed array ops are only called if operands are known to be
10902 (Component_Equality): When returning an N_Raise_Program_Error statement,
10903 ensure that its Etype is set to Empty to avoid confusing GIGI (which
10904 expects that only expressions have a bona fide type).
10905 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
10906 determine the amount of data to be copied.
10908 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
10909 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
10910 INTERFACE_TYPE_DEFINITION ::=
10911 [limited | task | protected | synchronized] interface
10912 [AND interface_list]
10914 * par-ch3.adb (P_Type_Declaration): Modified to give support to
10916 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
10918 (P_Interface_Type_Definition): New subprogram that parses the new
10919 syntax rule of Ada 2005 interfaces
10920 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
10921 messages by the correct RENAMES (quotes removed).
10923 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
10924 attribute First_Tag_Component.
10926 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
10927 (Interface_List, Set_Interface_List): New subprograms.
10928 (Interface_Present, Set_Interface_Present): New subprograms.
10929 (Limited_Present, Set_Limited_Present): Available also in derived
10930 type definition nodes.
10931 (Protected_Present, Set_Protected_Present): Available also in
10932 record type definition and
10933 derived type definition nodes.
10934 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
10935 (Task_Present, Set_Task_Present): New subprogram.
10936 (Task_Body_Procedure): Removed.
10937 (Set_Task_Body_Procedure): Removed.
10938 These subprogram have been removed because the attribute
10939 Task_Body_Procedure has been moved to the corresponding task type
10940 or task subtype entity to leave a field free to store the list
10941 of interfaces implemented by a task (for AI-345)
10942 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
10943 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
10944 expression flag Do_Range_Check
10945 (Exception_Junk): Change to Flag7 to accomodate above change
10946 (Box_Present, Default_Name, Specification, Set_Box_Present,
10947 Set_Default_Name, Set_Specification): Expand the expression
10948 "X in N_Formal_Subprogram_Declaration" into the corresponding
10949 two comparisons. Required to use the csinfo tool.
10951 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
10952 "with string" given.
10954 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
10957 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
10960 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
10961 attribute Task_Body_Procedure rather than the old semantic field that
10962 was available in the task_type_declaration node.
10964 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
10965 interface type definitions.
10966 (P_Formal_Derived_Type_Definition): Modified to handle the list of
10969 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
10970 task type declaration.
10971 (P_Protected): Modified to handle the list of interfaces in a
10972 protected type declaration.
10974 2005-03-15 Doug Rupp <rupp@adacore.com>
10975 Vincent Celier <celier@adacore.com>
10977 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
10978 (Gen_Output_File_C): Likewise.
10979 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
10981 2005-03-15 Thomas Quinot <quinot@adacore.com>
10983 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
10984 is an N_Raise_Constraint_Error node, create a new copy of it without
10985 going through a call to Duplicate_Subexpr.
10987 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
10988 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10989 Nicolas Setton <setton@adacore.com>
10990 Ed Schonberg <schonberg@adacore.com>
10996 * decl.c (gnat_to_gnu_field): Reject aliased components with a
10997 representation clause that prescribes a size not equal to the rounded
10998 size of their types.
10999 (gnat_to_gnu_entity, case E_Component): Always look at
11000 Original_Record_Component if Present and not the entity.
11001 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
11002 of tagged extension types by not making field for components that are
11004 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
11005 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
11006 expression to the type of the object when the object is constant.
11007 Reverse defer_debug_incomplete_list before traversing it, so that trees
11008 are processed in the order at which they were added to the list. This
11009 order is important when using the stabs debug format.
11010 If we are deferring the output of debug information, also defer this
11011 output for a function return type.
11012 When adding fields to a record, prevent emitting debug information
11013 for incomplete records, emit the information only when the record is
11015 (components_to_record): New parameter defer_debug.
11016 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
11017 (gnat_to_gnu_field_decl): New function.
11018 (substitution_list, annotate_rep): Call it.
11019 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
11020 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
11021 No longer update discriminants to not be a COMPONENT_REF.
11022 (copy_alias_set): Strip padding from input type; also handle
11023 unconstrained arrays properly.
11025 * gigi.h (write_record_type_debug_info): New function.
11026 Convert to use ANSI-style prototypes. Remove unused
11027 declarations for emit_stack_check, elab_all_gnat and
11028 set_second_error_entity.
11029 (gnat_to_gnu_field_decl): New decl.
11031 * utils.c (write_record_type_debug_info): New function.
11032 (finish_record_type): Delegate generation of debug information to
11033 write_record_type_debug_info.
11034 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
11035 (update_pointer_to): Fix pasto.
11036 (convert) <UNION_TYPE>: Accept slight type variations when
11037 converting to an unchecked union type.
11039 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
11040 replace the N_Freeze_Entity with a null statement.
11042 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
11043 within a constrained subcomponent of an enclosing record, place the
11044 freeze nodes in the scope stack entry for the enclosing record.
11045 (Undelay_Type): New Subprogram.
11046 (Set_Small_Size): Pass T, the type to modify; all callers changed.
11047 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
11048 within records; allow them to have freeze nodes if their base types
11051 * exp_util.adb (Remove_Side_Effects): Properly test for
11052 Expansion_Delayed and handle case when it's inside an
11053 N_Qualified_Expression.
11055 * sem_ch3.adb (Derived_Type_Declaration): New predicate
11056 Comes_From_Generic, to recognize accurately that the parent type in a
11057 derived type declaration can be traced back to a formal type, because
11058 it is one or is derived from one, or because its completion is derived
11060 (Constrain_Component_Type): If component comes from source and has no
11061 explicit constraint, no need to constrain in in a subtype of the
11063 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
11064 Minor change to propagate Is_Ada_2005 flag
11066 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
11067 Expansion_Delayed is False.
11068 (assoc_to_constructor): Ignore fields that have a
11069 Corresponding_Discriminant.
11070 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
11071 function returns "by target", dereference the target pointer using the
11072 type of the actual return value.
11073 <all>: Be prepared for a null gnu_result.
11074 (processed_inline_subprograms): Check flag_really_no_inline
11075 instead of flag_no_inline.
11076 (set_second_error_entity): Remove unused function.
11077 (gnat_to_gnu, case N_Selected_Component): Call
11078 gnat_to_gnu_field_decl.
11079 (assoc_to_constructor): Likewise.
11081 2005-03-15 Robert Dewar <dewar@adacore.com>
11082 Ed Schonberg <schonberg@adacore.com>
11083 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11085 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
11086 Must_Be_Byte_Aligned for cases where we do not need to use a
11087 System.Pack_nn unit.
11089 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
11091 Needed now that we do some processing for IN parameters as well. This
11092 may well fix some unrelated errors.
11093 (Expand_Call): Handle case of unaligned objects (in particular those
11094 that come from packed arrays).
11095 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
11096 renamed entity is an inherited operation, re-expand the call using the
11097 original operation, which is the one to call.
11098 Detect attempt to inline parameterless recursive subprogram.
11099 (Represented_As_Scalar): Fix to work properly with private types
11100 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
11101 accurate estimate. Yields True in far fewer cases than before,
11102 improving the quality of code that depends on this test.
11104 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
11105 over both visible and private declarations to remove them from tree,
11106 and mark subprograms declared in package as eliminated, to prevent
11107 spurious use in subsequent compilation of generic units in the context.
11109 * exp_util.ads: Minor cleanup in variable names
11111 * sem_eval.ads, sem_eval.adb: Minor reformatting
11112 (Compile_Time_Known_Bounds): New function
11114 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11116 * exp_ch7.adb (Convert_View): Use base types of underlying types when
11117 determining whether an unchecked conversion is needed for the argument
11118 of an initialization call.
11120 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11122 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
11123 that appears in the instantiation rather than the internal subtype
11124 generated in the wrapper package, to avoid anomalies in gigi when the
11125 target is derived from a private type whose full view is an access type.
11127 2005-03-15 Robert Dewar <dewar@adacore.com>
11129 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
11131 Add documentation to replace the use of this flag
11132 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
11135 2005-03-15 Thomas Quinot <quinot@adacore.com>
11137 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
11138 here from exp_attr so it can be shared between exp_attr and exp_dist.
11139 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
11140 all TSS names, not a subset thereof, and the previous name introduced
11141 an unnecessarily confusion that a distinction might exist between
11142 "OK" TSS names and some "not OK" TSS names.
11144 2005-03-15 Doug Rupp <rupp@adacore.com>
11146 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
11149 2005-03-15 Pascal Obry <obry@adacore.com>
11150 Eric Botcazou <ebotcazou@adacore.com>
11154 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
11155 when IN_RTS. This is to work around a bootstrap path problem.
11157 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
11158 table and pass it to __gnat_install_SEH_handler().
11159 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
11161 * lang.opt: Fix specification of -fRTS=.
11163 2005-03-15 Doug Rupp <rupp@adacore.com>
11164 Bernard Banner <banner@adacore.com>
11165 Vincent Celier <celier@adacore.com>
11166 Arnaud Charlet <charlet@adacore.com>
11169 This change works fine when gnatlib is built from the gcc directory,
11170 but does not work when using the libada Makefile, since GCC_FOR_TARGET
11171 is not passed to ada/Makefile.in, so more work is needed by a
11172 Makefile/configure expert.
11174 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
11175 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
11176 Setup gnatlink switch -M for x86_64 linux, as it is already setup
11178 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
11179 Run ranlib on libgccprefix.a
11180 Define PREFIX_OBJS for Darwin, to build libgccprefix.
11181 (ADA_INCLUDE_SRCS): Split Ada packages.
11183 2005-03-15 Robert Dewar <dewar@adacore.com>
11185 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
11187 * impunit.adb: Add GNAT.UTF_32
11189 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
11191 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
11192 now uses GNAT.UTF_32).
11194 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
11195 capabilities for categorizing characters using Unicode categories
11197 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11199 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
11200 instantiation that has been rewritten as a package body, retrieve spec
11201 to generate proper name for implicit_with_clause.
11202 (Install_Parents): Recognize a parent that is an instantiation but has
11203 been rewritten as a package declaration during analysis.
11205 2005-03-15 Javier Miranda <miranda@adacore.com>
11206 Ed Schonberg <schonberg@adacore.com>
11208 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
11209 parameter reported some error we immediately return. This improves the
11210 behaviour of the frontend in case of errors.
11211 (Install_Parent, Remove_Parent): Introduce new flag
11212 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
11213 ancestor of a generic child unit, when the child is being instantiated.
11214 (Inline_Instance_Body): If we are compiling the private
11215 part or the body of a child unit, restore the proper visibility of the
11216 parents after compiling the instance body.
11218 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11219 Javier Miranda <miranda@adacore.com>
11222 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
11223 of a private type, in which case it is underlying_type that denotes
11224 the proper task. Also modified to use the new entity attribute
11225 that is directly available in the task type and task subtype entities
11226 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
11227 arrays when other dimensions than the first are constrained by
11228 discriminants of an enclosing record.
11229 (Insert_Explicit_Dereference): If the prefix is an indexed component or
11230 a combination of indexed and selected components, find ultimate entity
11231 and generate the appropriate reference for it, to suppress spurious
11233 (Note_Possible_Modification): If an entity name has no entity, return.
11234 (Is_Variable): A function call never denotes a variable.
11235 (Requires_Transient_Scope): For record types, recurse only on
11236 components, not on internal subtypes that may have been generated for
11237 constrained components.
11239 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11241 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
11242 Eliminated as candidates for resolution. Both efficient, and avoids
11243 anomalies with operators declared in deleted code.
11244 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
11245 expansion is disabled (as when compiling a generic) to prevent spurious
11246 warnings on prefixes of selected components.
11248 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11250 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
11251 attached to a list before checking whether it appears in the private
11252 declarations of the current package.
11253 (Make_Inequality_Operator): Insert declaration in proper declarative
11254 list rather than just setting the Parent field, so that
11255 Is_Private_Declaration can handle it properly.
11257 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11259 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
11260 a renaming a body, check that the renamed subprogram in not intrinsic.
11261 (Find_Direct_Name): If several use_visible entities hide
11262 each other, and the context is a predefined file compiled through
11263 rtsfind, keep only the entity that comes from a predefined file.
11265 2005-03-15 Geert Bosch <bosch@adacore.com>
11267 * s-fatgen.adb (Valid): Extend special exceptions to account for long
11268 long float padding to also cover AMD64 and IA64.
11270 2005-03-15 Gary Dismukes <dismukes@adacore.com>
11272 * s-imgwch.adb: Add with and use of Interfaces.
11273 (Img_Wide_Character): Change type of Val to Unsigned_16.
11274 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
11276 2005-03-15 Matthew Gingell <gingell@adacore.com>
11278 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
11280 2005-03-15 Robert Dewar <dewar@adacore.com>
11282 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
11284 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
11286 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
11288 2005-03-15 Robert Dewar <dewar@adacore.com>
11290 * s-bitops.adb, s-bitops.ads,
11291 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
11292 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
11293 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
11294 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
11295 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
11296 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
11297 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
11298 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
11301 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
11303 * utils2.c (build_binary_op): Fix typo.
11305 2005-03-15 Doug Rupp <rupp@adacore.com>
11307 * s-crtl.ads (popen,pclose): New imports.
11309 2005-03-15 Cyrille Comar <comar@adacore.com>
11311 * comperr.adb (Compiler_Abort): remove references to obsolete
11312 procedures in the bug boxes for various GNAT builds.
11314 2005-03-15 Vincent Celier <celier@adacore.com>
11316 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
11318 2005-03-15 Geert Bosch <bosch@adacore.com>
11319 Arnaud Charlet <charlet@adacore.com>
11320 Robert Dewar <dewar@adacore.com>
11321 Cyrille Comar <comar@adacore.com>
11322 Sergey Rybin <rybin@adacore.com>
11324 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
11325 too specific and long-winded to be appropriate for the GNAT User's
11327 Warn about use of GCC switches not documented in the GNAT User's Guide,
11328 as these may cause generated code to not conform to Ada semantics.
11329 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
11330 Add documentation for -gnat95 and -gnat05 switches
11331 Remove paragraph documenting obsolete way to refer to third party
11333 Add a few references to Ada_05 that were missing.
11334 Update documentation on -gnatZ/-gnatL.
11335 Document limitation when using -m64 under Solaris.
11336 Change the "Name Casing" subsection of the pretty-printer section
11337 according to the changes in the dictionary processing.
11339 * gnat_rm.texi: Document the Ada_05 pragma.
11340 Section on record representation clauses describes the new more
11341 relaxed rules about placement of large packed bit array components.
11342 Add documentation of GNAT.UTF_32
11344 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
11346 * misc.c (gnat_post_options): Turn off structural
11349 2005-03-08 Laurent Guerby <laurent@guerby.net>
11351 * system-linux-sparc.ads: Fix typo in previous commit.
11353 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
11354 Laurent Guerby <laurent@guerby.net>
11357 * system-linux-sparc.ads: New.
11358 * Makefile.in: Add sparc linux entry.
11360 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
11362 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
11363 parameters as unused.
11365 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
11366 Partial merge from libada-gnattools-branch:
11368 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
11369 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
11370 into code in gnattools/Makefile.in. Remove direct dependencies on
11371 stamp-tools by tools clauses.
11372 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
11373 * config-lang.in: Add gnattools to $lang_dirs.
11375 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
11378 * utils.c (gnat_type_for_mode): Return null instead of ICE because
11379 we asked for an unknown mode.
11381 2005-02-12 Richard Henderson <rth@redhat.com>
11383 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
11384 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
11386 2005-02-10 Andreas Jaeger <aj@suse.de>
11388 * init.c (__gnat_initialize): Mark parameter as unused.
11390 2005-02-09 Doug Rupp <rupp@adacore.com>
11392 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
11393 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
11395 2005-02-09 Doug Rupp <rupp@adacore.com>
11397 * gnatchop.adb (dup, dup2),
11398 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
11400 * gnatlbr.adb (mkdir),
11401 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
11403 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
11405 2005-02-09 Doug Rupp <rupp@adacore.com>
11407 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
11409 2005-02-09 Robert Dewar <dewar@adacore.com>
11410 Thomas Quinot <quinot@adacore.com>
11411 Javier Miranda <miranda@adacore.com>
11412 Pascal Obry <obry@adacore.com>
11413 Ed Schonberg <schonberg@adacore.com>
11414 Doug Rupp <rupp@adacore.com>
11415 Gary Dismukes <dismukes@adacore.com>
11416 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11418 * g-zstspl.ads: New file.
11420 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
11422 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
11424 Add definition of Wide_Wide_Space for AI-285
11426 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
11427 interface (to support Ada 95 and Ada 2005 units).
11428 Add Unbounded_IO files
11429 Add entries for Wide_Wide packages for AI-285
11430 Add list of containers packages to Ada 2005 unit list
11432 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
11433 support new Unbounded_IO package cleanly.
11435 * g-utf_32.ads, g-utf_32.adb: New files.
11437 * Makefile.rtl: Add entry for g-utf_32
11438 Add new files for Unbounded_IO
11439 Adjust make file for new AI-285 wide wide packages
11440 Add AI-302 containers to the run time.
11442 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
11443 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
11444 subprograms for AI-301.
11446 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
11448 * a-stunau.ads: Minor comment correction
11450 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
11452 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
11453 (Check_RPC): Update to match changes in expanded code.
11454 Clean up unused entity.
11456 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
11457 was not taken into account.
11458 This includes proper initialization with Normalize_Scalars.
11459 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
11460 normalize scalars cases (particularly the latter) to do a better job
11461 of finding invalid representations.
11463 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
11465 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
11468 * exp_dist.adb: Add support for wide wide character type
11469 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
11470 private part, generate stub bodies at the end of the private part,
11471 not the visible part.
11472 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
11474 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
11475 generic wrapper to execute final processing after completing the
11476 expansion of the RPC receiver for an RACW.
11478 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
11479 packages and attributes.
11480 (Preset_Names): Addition of the new reserved words of Ada 2005,
11481 that is interface, overriding and synchronized.
11482 (Get_Pragma_Id): Give support to the use of the new reserved word
11483 "interface" as a pragma name.
11484 (Is_Pragma_Name): Give support to the use of the new reserved word
11485 "interface" as a pragma name.
11486 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
11487 attribute implementation.
11489 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
11490 checks to entities that are output parameters of Asm operations.
11491 Handle the Stream_Size attribute.
11492 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
11494 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
11496 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
11497 for second parameter being 0.0.
11498 Add support for wide wide character type.
11499 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
11501 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
11502 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
11503 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
11504 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
11505 for wide wide character cases.
11507 * cstand.adb: Create entities for Wide_Wide_Character and
11510 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
11511 accordance with AI-258.
11512 Add new declarations for 16/32 bit C character types (Part of AI285)
11514 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
11515 (Obsolescent_Warning): New field
11516 (Rep_Clause): New local subprogram used to share code. Returns the rep
11517 clause for which the name is given in parameter.
11518 (Has_Stream_Size_Clause): New routine.
11519 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
11520 (Address_Clause): Implementation is now using Rep_Clause.
11521 (Alignment_Clause): Idem.
11522 (Size_Clause): Idem.
11524 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
11525 entity in non-Ada 2005 mode and generate warning.
11527 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
11528 (Prag): Code cleanup. Remove old gnat pragma "overriding"
11530 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
11531 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
11532 on the named unit if the pragma is not in the current compilation unit,
11533 so that elaboration calls in the current unit can set up an elaboration
11534 dependency on the named unit, as needed.
11535 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
11536 subprogram as well as for subprograms declared within a package.
11537 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
11540 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
11541 to z) to avoid some instances of duplication for Wide_Wide packages.
11543 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
11546 * scn.adb: Char_Literal_Value field is now a Uint
11548 * scng.adb: Significant rewrite to handle new Ada 2005 features
11549 allowing wide and wide wide characters in program text, e.g. for
11550 identifiers, as described in AI-285.
11551 (Set_Reserved): New procedure, makes setting up keywords cleaner.
11552 (Initialize_Scanner): Register the new reserved words of Ada 2005.
11553 (Scan): Give support to the new reserved words.
11555 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
11556 warning notifying that interface, overriding, and synchronized are
11557 new reserved words.
11558 (P_Pragma): Allow the use of the new reserved word "interface" as
11561 * gnatls.adb, gnatbind.adb,
11562 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
11563 identifiers named "interface" to "SAL_Interface".
11565 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
11566 (Structured Exception handling).
11567 (Gen_Main_C): Idem.
11570 (Gen_Main_Ada): Set the default exit code if specified.
11571 (Gen_Main_C): Likewise.
11573 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
11574 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
11576 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
11579 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
11580 has a collision with the new Ada 2005 "interface" reserved word.
11582 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
11583 generate a warning notifying that interface, overriding, and
11584 synchronized are new reserved words.
11586 * scans.ads (Token_Type): Addition of the tokens corresponding to the
11587 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
11588 and Tok_Synchronized.
11590 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
11591 "dispatching" rather than "primitive" operations, since dispatching
11592 calls are now allowed to abstract formal subprograms (which are not
11594 Char_Literal_Value field is now a Uint
11595 (Resolve_Slice): If the prefix is an access to an unconstrained array,
11596 compute the actual subtype of the designated object to impose the proper
11598 (Resolve_Selected_Component): Do not insert an access check if the
11599 prefix is an access type: such a node is expanded into an explicit
11600 dereference, on which the access check is performed anyway. Removes
11601 expensive duplicate checks.
11602 (Resolve_Call): Use new flag Is_Obsolescent and field
11603 Obsolescent_Warning so that pragma Obsolescent works on library
11605 Add support for wide wide character type
11606 (Resolve_Allocator): Replace the error message on wrong null-exclusion
11607 value by a warning message.
11608 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
11609 as fixed-point, and one of the operands is non-static and universal, it
11610 can only be an illegal exponentiation operation, in which case there is
11611 no real value to retrieve.
11613 * exp_strm.adb: Add support for wide wide character type
11614 (Build_Elementary_Input_Call): Compute the size of the stream element by
11615 querying the rep chain to find the Stream_Attribute attribute value.
11616 (Build_Elementary_Write_Call): Ditto.
11618 * sem_aggr.adb: Char_Literal_Value field is now a Uint
11619 Add support for wide wide character type
11620 Replace the error messages on wrong null-exclusion value by warnings
11621 as described in Ada 2005.
11622 (Resolve_Extension_Aggregate): Document the fact that the error
11623 message on class-wide expressions in extensions aggregates.
11625 * sem_case.adb: Add support for wide wide character type
11627 * sem_ch13.adb: Add support for wide wide character type
11628 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
11630 * sem_ch3.adb: Add support for wide wide character type
11631 (Process_Subtype): If constraint is illegal for the type, set Ekind of
11632 now-useless Itype, to prevent cascaded errors on a compiler built
11635 * sem_ch8.adb: Add with and use of Sem_Disp.
11636 (Analyze_Subprogram_Renaming): Replace unclean uses of
11637 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
11638 of Corresponding_Spec to Empty).
11639 (Attribute_Renaming): Replace use of Corresponding_Spec with
11640 Corresponding_ Formal_Spec and simplify condition.
11641 (Use_One_Package): Check that scope of homonym of identifier is defined,
11642 before checking whether it is a wrapper package.
11643 Add support for wide wide character type
11645 * sem_eval.adb: Add support for wide wide character type.
11646 (Eval_Arithmetic_Op): Check for compile time known signed integer
11647 overflow in the non-static case.
11648 (Subtypes_Statically_Match): A formal scalar type and its base type do
11649 not statically match.
11651 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
11652 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
11654 (Unit_Declaration_Node): Ditto.
11655 (Is_Variable_Prefix): For the case of an indexed component whose prefix
11656 has a packed array type, the prefix has been rewritten into a type
11657 conversion. Determine variable-ness from the converted expression.
11658 Handle wide wide character cases.
11660 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
11662 * stringt.ads, stringt.adb: Handle full UTF-32 range.
11663 Remove ["0A"] from comment, since it can look like a line terminator.
11664 Currently we don't permit this, but this is under discussion by the
11665 ARG, and it is easy enough to use a different example.
11667 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
11668 handling UTF-32 encoding for wide wide character.
11669 Implement new brackets coding ["hhhhhhhh"]
11670 Add UTF-8 encodings for full UTF-32 range
11672 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
11674 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
11675 bit range Add full UTF-32 support.
11676 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
11677 notify that constraint error will be raised at run-time
11678 because a null value is assigned to a null-excluding object.
11679 Remove some obsolete declarations and make Char_Code
11682 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
11683 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
11684 Rcheck subprograms.
11686 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
11687 wrong null-exclusion value by a warning message.
11688 (Enable_Range_Check): Do range check if the prefix is an
11689 explicit dereference whose designated object is an unconstrained array.
11690 Current algorithm for removing duplicate checks is over-eager in this
11693 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
11694 null-exclusion value by a warning message
11696 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
11697 completely. Add support for Uint2 field
11699 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
11700 exp_prag.adb: Char_Literal_Value field is now a Uint.
11702 * exp_util.adb (Insert_Actions): Replace
11703 N_Formal_Subprogram_Declaration by
11704 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
11705 Char_Literal_Value field is now a Uint.
11707 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
11708 defined for subprogram renaming declarations. When set, the field
11709 indicates the defining entity of a corresponding formal subprogram
11710 when the renaming corresponds to a formal subprogram association in an
11712 (Set_Corresponding_Formal_Spec): New procedure to return
11713 Corresponding_Formal_Spec field.
11714 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
11715 (which is now a subtype).
11716 Char_Literal_Value field is now a Uint
11718 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
11719 pointer to the base of the dispatch table.
11720 Minor changes to comments.
11721 (Controlling_Type): New function for determining the tagged type
11722 associated with a tagged primitive subprogram.
11723 (Expand_Dispatching_Call): Add support for a controlling actual that is
11724 directly a value of type Ada.Tag rather than a tagged object.
11726 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
11727 describing the new layout.
11728 (Dispatch_Table): The expander computes the actual array size, allocates
11729 the Dispatch_Table record accordingly, and generates code that displaces
11730 the base of the record after the Typeinfo_Ptr component. The access to
11731 these components is done by means of local functions.
11732 (Offset_To_Top): New function.
11733 (Typeinfo_Ptr): New function.
11734 (Get_TSD): Modified to access the new position of the TSD.
11735 (Set_TSD): Modified to save the TSD in its new position.
11737 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
11738 case of formal abstract subprograms. Add check and message for -gnat05.
11741 * sem_ch12.adb: Add with and use for Sem_Disp.
11742 (Analyze_Associations): Minor change from "=" to "in" for use of
11743 N_Formal_Subtype_Declaration (which is now a subtype).
11744 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
11745 N_Formal_Subtype_Declaration (which is now a subtype).
11746 (Analyze_Formal_Subprogram): Add handling for
11747 N_Formal_Abstract_Subprogram, marking the formal as abstract and
11748 dispatching, setting the controlling status of the formal parameters
11749 and result, and issuing an error if there is no controlling type for
11750 the formal subprogram.
11751 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
11752 which is an unclean use of that field, we set the new field
11753 Corresponding_Formal_Spec to make the formal subprogram available to
11754 processing in Analyze_Subprogram_Declaration.
11755 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
11756 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
11757 Constrained, so that it is is does not statically match its anonymous
11760 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
11761 abstract formal subprograms in error check for functions returning
11762 abstract types. Set scope of new designator for
11763 a parameterless subprogram, so that it is available when checking the
11764 body for nested subprograms, before full analysis of said body.
11765 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
11766 subprogram only if inner one comes from source.
11767 (Analyze_Function_Call): If the call is given in object notation, the
11768 analysis of the name rewrites the node and analyzes it with the proper
11769 argument list. After analyzing the name, if the call has been rewritten
11770 and the result type is set, no further analysis is needed.
11771 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
11772 mark in function specification, in a context where the formals are
11773 visible and hide outer homographs.
11775 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
11776 as the tagged type for the cases of abstract formal subprograms and
11777 renamings of those. Clean up spec comments.
11778 (Check_Dispatching_Context): Add error message to indicate "abstract
11779 procedure", covering the case of a call to a formal abstract procedure
11780 that has statically tagged operands.
11781 (Check_Dispatching_Call): Check for the case of an actual given by
11782 a tag-indeterminate function call whose type is an ancestor of the
11783 containing call's associated tagged type. This situation can occur
11784 for inherited primitives with function defaults. In this case we
11785 use the tagged type's tag directly as the controlling argument for
11787 (Expand_Call): Name change on call to Expand_Dispatch_Call.
11789 * sprint.adb (Sprint_Node_Actual): Split
11790 N_Formal_Subprogram_Declaration into two alternatives for the new
11791 cases N_Formal_Abstract_Subprogram_Declaration and
11792 N_Formal_Concrete_Subprogram_Declaration.
11793 Char_Literal_Value field is now a Uint.
11795 * trans.c: Get rid of junk Uint2 reference.
11796 Char_Literal_Value field is now a Uint.
11797 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
11798 (gigi): Correct third arg to gimplify_body.
11800 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
11801 (TYPE_LANG_FLAG_0): Check for record or union.
11803 * treepr.adb: Char_Literal_Value field is now a Uint
11805 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
11808 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
11809 Add full UTF-32 support
11810 Char_Code is now 32 bits
11812 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
11813 wide character UTF_32 line terminators.
11814 Initialize Main_Source_File to avoid error when no main
11817 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
11818 (Main_Source_File) when no main source has been loaded, to avoid
11821 2005-02-09 Robert Dewar <dewar@adacore.com>
11823 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
11824 Fix name of Set routine
11826 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
11829 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
11830 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
11833 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
11834 forms of Get_Line subprograms for AI-301.
11836 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
11837 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
11838 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
11839 a-stwima.ads: Minor reformatting.
11841 2005-02-09 Doug Rupp <rupp@adacore.com>
11842 Thomas Quinot <quinot@adacore.com>
11844 * adaint.c, adaint.h
11845 [VMS] (to_ptr32): New function.
11846 (MAYBE_TO_PTR32): New macro.
11847 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
11849 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
11850 [VMS] (#define fork()): Remove since unneccessary.
11851 (__gnat_set_close_on_exec): New routine to support
11852 GNAT.OS_Lib.Set_Close_On_Exec.
11854 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
11855 the parent side as close-on-exec so that they are not inherited by the
11858 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
11859 set or clear the FD_CLOEXEC flag on a file descriptor.
11861 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
11862 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11866 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
11867 on the field if Pragma Component_Alignment (Storage_Unit).
11868 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
11869 side-effects as if it were a constant; also make SAVE_EXPR to protect
11871 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
11873 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
11874 (components_to_record): Test it.
11875 Fix improper usage of REFERENCE_CLASS_P.
11877 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
11880 * utils2.c: Minor reformatting.
11882 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
11883 handle other cases like RECORD_TYPE.
11885 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
11887 2005-02-09 Ed Schonberg <schonberg@adacore.com>
11889 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
11890 component of an array of arrays in an assignment context, and the
11891 aggregate has component associations that require sliding on
11892 assignment, force reanalysis of the aggregate to generate a temporary
11893 before the assignment.
11894 (Must_Slide): Make global to the package, for use in Gen_Assign.
11896 2005-02-09 Ed Schonberg <schonberg@adacore.com>
11898 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
11899 unchecked union with no inferable discriminants, return a
11900 Raise_Program_Error node, rather than inserting it at the point the
11902 (Expand_Record_Equality, Component_Equality): Handle properly the case
11903 where some subcomponent is an unchecked union whose generated equality
11904 code raises program error.
11906 2005-02-09 Doug Rupp <rupp@adacore.com>
11908 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
11909 [VMS] (#define exit hack): Remove.
11911 2005-02-09 Pascal Obry <obry@adacore.com>
11912 Arnaud Charlet <charlet@adacore.com>
11914 * init.c (__gnat_initialize): Add a new parameter eh which contains the
11915 address of the exception registration. The Win32 version of this
11916 routine calls __gnat_install_SEH_handler() to initialize the SEH
11917 (Structured Exception Handling) handler.
11918 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
11919 SEH (Structured Exception Handling) now.
11920 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
11921 (__gnat_initialize for ppc-vxworks): Adjust comments and the
11922 preprocessor condition protecting the call to the extra eh setup
11923 subprogram, which is only available for the ppc target.
11924 (__gnat_clear_exception_count): replaced reference to
11925 variable taskIdCurrent by call to taskIdSelf(), cleaner.
11927 * seh_init.c: New file.
11929 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
11930 (GNATBIND_OBJS): Idem.
11932 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
11933 routine takes a new parameter (a pointer to the exception registration
11934 for the SEH (Structured Exception Handling) support.
11936 * raise.h: (__gnat_install_SEH_handler): New prototype.
11937 Update copyright notice.
11939 * s-tassta.adb (Task_Wrapper): Declare the exception registration
11940 record and initialize it by calling __gnat_install_SEH_handler.
11942 2005-02-09 Vincent Celier <celier@adacore.com>
11944 * make.adb (Gnatmake): Do not fail when the main project has no object
11947 2005-02-09 Doug Rupp <rupp@adacore.com>
11949 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
11950 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
11951 [VMS]: Add translations for g-enblsp.adb.
11953 * s-asthan-vms.adb: Removed.
11954 * s-asthan-vms-alpha.adb: Added.
11956 2005-02-09 Pascal Obry <obry@adacore.com>
11958 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
11959 (LIBGNAT_OBJS): Add seh_init.o.
11961 2005-02-09 Arnaud Charlet <charlet@adacore.com>
11964 * Makefile.in: Link all gnat tools with -static-libgcc, since
11965 -shared-libgcc is now used by default on some systems (e.g. linux with
11967 Remove references to Makefile.prolog/generic, no longer used.
11969 2005-02-09 Vincent Celier <celier@adacore.com>
11971 * prj-makr.adb (Process_Directory): Put file name in canonical case
11972 before matching against the patterns.
11973 If gnatname has been invoked as <prefix>-gnatname
11974 then invoke the compiler as <prefix>-gcc, not just "gcc".
11976 2005-02-09 Ed Schonberg <schonberg@adacore.com>
11978 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
11979 with expansion disabled. The actual subtype is needed among other
11980 places when the selected component appears in the context of a loop
11981 bound, and denotes a packed array.
11982 (Operator_Check): Always use the first subtype in the
11983 error message, to avoid the appearance of internal base types.
11984 (Transform_Object_Operation): Copy each actual in full
11985 to the parameter associations of the constructed call, rather than
11986 using the shallow copy mechanism of New_Copy_List. This ensures that
11987 the chaining of named associations is done properly.
11988 (Complete_Object_Operation): Rewrite node, rather than
11989 replacing it, so that we can trace back to the original selected
11992 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
11993 and calls that use object notation, if the called function is not
11994 declared in a withed unit, place the elaboration constraint on the
11995 unit in the context that makes the function accessible.
11996 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
11997 imposes an elaboration constraint between two packages.
11999 2005-02-09 Ed Schonberg <schonberg@adacore.com>
12001 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
12002 views of a private type after handling its private dependents, to
12003 maintain proper stack discipline between entry and exit from the
12006 2005-02-09 Cyrille Comar <comar@adacore.com>
12008 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
12009 Minor reformatting.
12011 2005-02-09 Arnaud Charlet <charlet@adacore.com>
12013 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
12014 fields for foreign threads.
12016 2005-02-09 Doug Rupp <rupp@adacore.com>
12018 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
12019 recursion warnings when compiled with -gnatdm.
12021 2005-02-09 Robert Dewar <dewar@adacore.com>
12023 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
12024 Slight fix to documentation of -gnaty with no parameters
12026 * xr_tabls.ads: Add ??? comment for missing overall comment
12028 * xsinfo.adb: Make default file name be sinfo.h, since this is what
12029 we now use by default.
12031 * xsnames.adb: Adjust end of file test to look for five space followed
12032 by '#' instead of six spaces. The format of xsnames.adb was modified
12033 in the last update.
12035 * a-numeri.ads: Add reference to AI-388 for greek letter pi
12038 * clean.adb: Minor reformatting.
12040 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
12041 gnatname.adb: Minor reformatting
12042 Add 2005 to copyright output when utility is run
12044 * csets.adb: Eliminate obsolete comment
12046 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
12049 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
12051 2005-02-09 Sergey Rybin <rybin@adacore.com>
12053 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
12054 the difference between compact and incompact layout and add the record
12055 representation clause to the example illustrating different layouts.
12056 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
12057 component clauses").
12059 2005-02-09 Florian Villoing <villoing@adacore.com>
12061 * gnat_ugn.texi: Fix typos.
12062 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
12064 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
12065 in the generated documentation.
12067 2005-02-09 Arnaud Charlet <charlet@adacore.com>
12069 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
12071 Update linker wrapper when linking with non GNU C++.
12073 2005-02-09 Pascal Obry <obry@adacore.com>
12076 Document the procedure to debug the DllMain routine on Windows.
12077 Add note about -funwind-tables and mixed Ada and C/C++ programming in
12079 Document new BIND qualifer /RETURN_CODES=VMS.
12081 2005-02-09 Ben Brosgol <brosgol@adacore.com>
12083 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
12084 Edited gnatmetric chapter
12086 2005-02-09 Robert Dewar <dewar@adacore.com>
12089 Changes to document new wide wide character support
12091 Update documentation on Normalize_Scalars and Initialize_Scalars
12093 2005-02-09 Pascal Obry <obry@adacore.com>
12095 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
12097 2005-02-09 Jose Ruiz <ruiz@adacore.com>
12099 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
12100 from the VxWorks kernel) that is needed for getting the active
12101 priority of the different tasks.
12103 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
12104 Use a pragma Elaborate_Body in the spec file instead.
12105 Noticed by code reading.
12107 2005-02-09 Thomas Quinot <quinot@adacore.com>
12109 * exp_util.ads: Minor correction in comment.
12111 2005-02-09 Arnaud Charlet <charlet@adacore.com>
12113 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
12114 since this procedure is now too complex to be worth inlining.
12116 2005-02-09 Richard Henderson <rth@redhat.com>
12118 * utils.c (gnat_define_builtin): Remove.
12119 (gnat_install_builtins): Use build_common_builtin_nodes.
12121 2005-02-09 Arnaud Charlet <charlet@adacore.com>
12123 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
12124 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
12125 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
12126 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
12127 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
12128 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
12129 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
12130 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
12131 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
12132 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
12133 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
12134 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
12135 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
12136 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
12137 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
12138 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
12139 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
12140 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
12141 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
12142 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
12143 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
12144 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
12145 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
12146 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
12147 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
12148 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
12149 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
12150 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
12151 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
12152 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
12153 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
12154 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
12155 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
12156 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
12159 2005-01-27 Laurent GUERBY <laurent@guerby.net>
12161 * Makefile.in: Fix a-intnam.ads from previous commit,
12162 add 2005 to copyright.
12163 * a-intman-rtems.ads: Renamed to...
12164 * a-intnam-rtems.ads:
12166 2005-01-27 Laurent GUERBY <laurent@guerby.net>
12168 * Makefile.in: Rename GNAT RTEMS specific files.
12169 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
12170 5rosinte.ads, 5rparame.adb: Replaced by files below.
12171 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
12172 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
12174 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
12175 Laurent GUERBY <laurent@guerby.net>
12178 * 5rosinte.ads: Add No_Key constant.
12179 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
12180 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
12182 2005-01-26 Laurent GUERBY <laurent@guerby.net>
12185 * i-cobol.adb (Valid_Numeric): Handle zero length case.
12187 2005-01-20 Richard Henderson <rth@redhat.com>
12189 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
12190 a-intnam-linux.ads and system-linux-alpha.ads.
12191 * a-intnam-linux-alpha.ads: Remove file.
12192 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
12193 * system-linux-alpha.ads: New file.
12195 2005-01-18 Jakub Jelinek <jakub@redhat.com>
12198 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
12199 set to the new string.
12201 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
12203 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
12206 2005-01-18 Richard Henderson <rth@redhat.com>
12208 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
12209 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
12211 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
12213 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
12215 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
12216 (GCC_ZCX_Support): Likewise.
12218 2005-01-11 Bastian Blank <waldi@debian.org>
12220 * system-linux-s390.ads: Define Preallocated_Stacks.
12221 * system-linux-s390x.ads: Likewise.
12223 2005-01-04 Arnaud Charlet <charlet@adacore.com>
12225 * gnat_ugn.texi: Fix texi errors with null variables.
12227 2005-01-03 Thomas Quinot <quinot@adacore.com>
12229 * gen-soccon.c: New utility program to generate g-soccon.ads
12232 * socket.c, gsocket.h: Split inclusion of system header files into a
12233 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
12235 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
12236 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12237 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
12238 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
12239 should not be edited by hand anymore, but should be regenerated using
12242 2005-01-03 Robert Dewar <dewar@adacore.com>
12243 Ed Schonberg <schonberg@adacore.com>
12244 Vincent Celier <celier@adacore.com>
12246 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
12247 on/off, since this is an obsolescent feature, for which we now generate
12250 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
12251 warning mode is set and obsolescent usage of this attribute occurs.
12252 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
12253 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
12254 predates, and partly motivates, the adoption of the AI.
12255 Implement new Ada 2005 attribute Mod
12257 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
12260 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
12262 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
12263 pragma restrictions.
12264 New entry for Ada 2005 attribute Mod.
12267 Add recognition of new pragma Restrictions No_Dependence
12268 Recognize restriction No_Obsolescent_Features at parse time
12270 * bcheck.adb: Add circuitry for checking for consistency of
12271 No_Dependence restrictions.
12273 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
12276 * restrict.ads, restrict.adb: Add subprograms to deal with
12277 No_Dependence restrictions.
12279 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
12282 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
12283 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
12285 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
12286 dummy parameter to scng instantiation.
12287 Needed for new restriction No_Obsolescent_Features
12289 * scn.adb: (Obsolescent_Check): New procedure
12290 Needed for new restriction No_Obsolescent_Features
12292 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
12293 specified by AI-285, needed for implementation of AI-388 (adding greek
12294 pi to Ada.Numerics).
12295 Add new generic formal to scng, needed for new restriction
12296 No_Obsolescent_Features.
12298 * s-rident.ads: Add new restriction No_Obsolescent_Features.
12300 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
12301 restrictions lines.
12302 (Scan_ALI): When finding an unexpected character on an R line, raise
12303 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
12304 Ignore_Errors is True, default restrictions are set and scanning of the
12305 ALI file continues with the next line. Also, when Bad_R_Line is raised
12306 and Ignore_Errors is True, skip to the end of le line.
12308 * sem_ch10.adb: Check that explicit with's do not violate
12309 No_Dependence restrictions.
12310 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
12311 illegal context clauses containing child units of instance.
12313 * sem_prag.adb: Processing and checking for new No_Dependence
12315 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
12316 analyze and check the External argument.
12318 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
12320 2005-01-03 Robert Dewar <dewar@adacore.com>
12322 * atree.adb: Add a fifth component to entities
12323 This allows us to add 32 flags and four new fields
12325 * atree.ads: Add a fifth component to entities
12326 This allows us to add 32 flags and four new fields
12328 * einfo.ads, einfo.adb: Document new fields and new flags now available
12329 Add routines for printing new fields
12331 * treepr.adb: Call routines to print out additional fields if present
12333 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12335 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
12336 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
12338 * Makefile.in: Add support to build shared Ada libraries on solaris x86
12339 Remove gpr2make, replaced by gprmake.
12340 Remove references to gnatmem and libaddr2line.
12341 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
12342 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
12343 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
12344 a-numaux-darwin.ads and a-numaux-darwin.adb
12345 Enable mlib-tgt-lynxos.adb on lynxos.
12347 * Make-lang.in: Remove rules for gpr2make.
12348 When generating sdefault.adb, do not call Relocate_Path
12349 on S3 for function Target_Name, as it is not a path.
12350 Remove references to gnatmem and libaddr2line.
12352 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
12355 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
12357 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
12358 address is incompatible with its base type alignment constraints when
12359 this can be decided statically.
12361 2005-01-03 Olivier Hainque <hainque@adacore.com>
12363 * decl.c (compatible_signatures_p): New function. The intended purpose
12364 is to check if two function signatures for a call-site and a callee are
12365 compatible enough for the call to be valid. The underlying purpose is
12366 to check if a call to a mapped builtin is using the right interface.
12367 The current code actually does not check antyhing - this a placeholder
12368 for future refinements.
12369 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
12370 builtin calls for convention Intrinsic.
12372 * gigi.h (builtin_decl_for): Declare (new function).
12374 * utils.c (gnat_install_builtins): Install the target specific builtins.
12375 (builtin_decl_for): New function, provide a dummy body for now.
12377 2005-01-03 Geert Bosch <bosch@adacore.com>
12379 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
12380 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
12381 (Pred): Implement in terms of Succ.
12383 * trans.c (convert_with_check): Reimplement conversion of float to
12386 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12387 Vincent Celier <celier@adacore.com>
12389 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
12390 bounds can be negative, and must be declared Int, not Nat.
12392 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
12393 array is checked after using the index in the array.
12395 * makegpr.adb (Add_Switches): Check if there is a package for the
12396 processor. If there is no package, do not look for switches.
12398 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12400 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
12401 generation of predefined stream operations (specs and bodies) should
12402 proceed. Under various restrictions these subprograms must not be
12405 2005-01-03 Thomas Quinot <quinot@adacore.com>
12408 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
12409 amount of PCS-specific code in RACW stubs generation.
12410 (Copy_Specification): Set Etype on copied formal parameter entities, as
12411 this information is needed for PolyORB stubs generation.
12412 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
12413 variable Dynamic_Async.
12414 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
12415 (Build_RPC_Receiver_Specification): Make generic again, as recent
12416 changes have allowed RPC receivers to have the same profile for both
12417 variants of the PCS.
12418 Reorganise RPC receiver generation to reduce differences between the
12419 structure of GARLIC and PolyORB RPC receivers.
12420 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
12422 Simplify elaboration code for RCI packages.
12424 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
12425 generation to reduce differences between the structure of GARLIC and
12426 PolyORB RPC receivers.
12428 * s-stratt.adb: Fix typo in comment.
12430 2005-01-03 Thomas Quinot <quinot@adacore.com>
12432 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
12433 copied from Make_Init_Call).
12435 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
12436 reads and assignments on a temporary variable declared with appropriate
12439 2005-01-03 Robert Dewar <dewar@adacore.com>
12441 * i-c.adb (To_C): Raise CE if string is null and Append_Null
12443 2005-01-03 Robert Dewar <dewar@adacore.com>
12445 * i-cstrin.adb (Update): Do not append a null in form called with a
12446 String. This avoids unintended behavior.
12448 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12451 * init.c: Fix warnings on Free BSD section.
12453 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12456 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
12459 2005-01-03 Vincent Celier <celier@adacore.com>
12461 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
12462 libraries when Unique_Compile is True (-u switch).
12465 2005-01-03 Robert Dewar <dewar@adacore.com>
12467 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
12468 upper case letter or underscore after W, as allowed by spec.
12470 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12472 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
12473 darwin port by using proper type definitions from header files.
12474 Use SIGTERM instead of SIGABRT for SIGADAABORT.
12476 2005-01-03 Robert Dewar <dewar@adacore.com>
12478 * par.adb: Enhance error message handling for configuration file
12481 2005-01-03 Robert Dewar <dewar@adacore.com>
12483 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
12484 removed during the previous update (test properly for case of dividing
12485 largest negative number by -1, which generates overflow).
12487 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12488 Sergey Rybin <rybin@adacore.com>
12490 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
12491 to use as the defining identifier for a formal package.
12492 (Remove_Parent): If the instance takes place within (an instance of)
12493 a sibling, preserve private declarations of common parent.
12495 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12497 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
12498 to determine whether one of the operands is a fixed-point type for
12499 which a user-defined multiplication or division operation might be
12502 * sem_res.adb (Valid_Conversion): The legality rules for conversions
12503 of access types are symmetric in Ada 2005: either designated type can
12506 2005-01-03 Vincent Celier <celier@adacore.com>
12508 * s-fileio.adb (Temp_File_Record): Change length of string component
12509 Name from L_tmpnam + 1 to max_path_len + 1.
12511 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12513 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
12514 Self_Id.Deferral_Level = 0.
12515 (Do_Pending_Action): Move this function to the spec.
12517 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
12518 Do_Pending_Action explicitely when needed, in case we're using
12519 No_Abort restrictions.
12521 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
12522 deferral level since it will not get changed by the generated code.
12523 Keeping a default value of 1 would prevent some operations (e.g.
12524 select or delay) to proceed successfully.
12526 2005-01-03 Ben Brosgol <brosgol@adacore.com>
12527 Robert Dewar <dewar@adacore.com>
12528 Cyrille Comar <comar@adacore.com>
12530 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
12531 porting guide chapter (vms version).
12532 Revised doc title (removed "for native platforms") and subtitle.
12533 Add discussion on warning flag for obsolescent features. First we
12534 note that it applies to obsolete GNAT features, which was previously
12535 omitted. Second we contrast the behavior with that of the new
12536 Ada 2005 AI-368 restriction No_Obsolescent_Features.
12537 Preliminary rewriting of GNAT & libraries chapter in order to take
12538 into account default project locations & new project manager
12541 2005-01-03 Robert Dewar <dewar@adacore.com>
12543 * cstand.adb (Create_Operators): Clean up format and documentation of
12544 unary and binary operator result tables. No change in code, just
12545 reformatting and addition of comments.
12547 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
12548 sem_ch2.adb: Minor reformatting
12550 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
12551 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
12552 comments for Tree_Read and Tree_Write.
12554 2005-01-03 Pascal Obry <obry@adacore.com>
12556 * exp_attr.ads: Minor reformatting.
12558 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
12560 * comperr.adb (Compiler_Abort): Add specialized message for GAP
12563 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12565 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
12566 whether the ancestor type is private, as may be the case with nested
12569 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
12572 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
12574 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
12576 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
12577 * utils2.c (build_unary_op): Likewise.
12579 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12581 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
12583 2004-12-19 Richard Henderson <rth@redhat.com>
12585 * trans.c (gigi): Update gimplify_body call.
12587 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
12589 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
12591 2004-12-07 Ed Falis <falis@adacore.com>
12593 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
12594 current task being suspended.
12596 * init.c (__gnat_clear_exception): added to reset VxWorks exception
12598 (__gnat_map_signal): removed test for current task being suspended.
12600 2004-12-07 Gary Dismukes <dismukes@adacore.com>
12602 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
12603 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
12604 targets (such as AAMP).
12606 2004-12-07 Ed Schonberg <schonberg@adacore.com>
12608 * atree.adb (Visit_Itype): Create a new name for the generated itype,
12609 because the back-end may otherwise treat it as a redefinition of the
12612 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
12614 * back_end.adb (Scan_Back_End_Switches): Accept --param.
12616 * lang-specs.h: Accept --param.
12618 2004-12-07 Vincent Celier <celier@adacore.com>
12620 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
12621 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
12622 Current_Body_Suffix => Ada_Body_Suffix).
12623 Take into account Externally_Built attribute.
12625 * clean.adb (In_Extension_Chain): Always return False when one of the
12626 parameter is No_Project.
12627 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
12628 Ada_Language_Index).
12629 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
12630 Process_Languages for procedure Parse).
12632 * gnatcmd.adb (Carg_Switches): New table.
12633 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
12634 Adapt to name changes in package Prj (Current_Spec_Suffix =>
12635 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
12637 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
12638 Header_Num and function Hash are now declared in package Prj,
12641 * prj.adb (Suffix_Of): New function.
12642 (Set (Suffix)): New procedure.
12643 (Hash): One function moved from Prj.Com
12644 (Is_Present, Language_Processing_Data_Of): New functions
12645 (Set): Two new procedures
12646 (Add_Language_Name, Display_Language_Name): New procedures
12648 * prj.ads: (Suffix_Of): New function
12649 (Set (Suffix)): New procedure
12650 Add several types and tables for multi-language support.
12651 (Header_Num): Type moved from Prj.Com
12652 (Hash): Two functions moved from Prj.Com
12653 (Is_Present, Language_Processing_Data_Of): New functions
12654 (Set): Two new procedures
12655 (Add_Language_Name, Display_Language_Name): New procedures
12656 (Naming): Component name changes:
12657 Current_Spec_Suffix => Ada_Spec_Suffix,
12658 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
12659 Impl_Suffixes, Supp_Suffixes.
12660 (Project_Data): New components: Externally_Built, Supp_Languages,
12661 First_Language_Processing, Supp_Language_Processing, Default_Linker,
12662 Default_Linker_Path.
12664 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
12665 new package Language_Processing with its attributes (Compiler_Driver,
12666 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
12667 Binder_Driver, Default_Linker).
12669 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
12670 (Header_Num): Type moved to package Prj
12672 * prj-env.adb: Adapt to name changes in package Prj
12673 (Current_Spec_Suffix => Ada_Spec_Suffix,
12674 Current_Body_Suffix => Ada_Body_Suffix).
12676 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
12677 default to the project path, except the "-" is one of the directories
12678 in env var ADA_PROJECT_PATH.
12679 (Current_Project_Path): Global variable, replacing Project_Path
12680 that was in the body of Prj.Part.
12681 (Project_Path): New function
12682 (Set_Project_Path): New procedure
12683 Initialize Current_Project_Path during elaboration of the package
12684 Remove dependency on Prj.Com, no longer needed
12686 * prj-ext.ads (Project_Path): New function
12687 (Set_Project_Path): New procedure
12689 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
12690 suffix is defined for language <lang>.
12691 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
12692 accessing directly the components of Naming.
12693 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
12694 Reorganise of this package.
12695 Break procedure Check in several procedures.
12697 * prj-nmsc.ads: Replace all procedures (Ada_Check,
12698 Other_Languages_Check and Language_Independent_Check) with a single
12701 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
12702 Process_Languages, no longer needed.
12704 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
12705 Current_Project_Path.
12706 Remove elaboration code, moved to the body of Prj.Ext
12707 Use new function Prj.Ext.Project_Path instead of old variable
12709 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
12710 When comparing with project paths on the stack, first put the resolved
12711 path in canonical case.
12712 (Parse_Single_Project): Set the path name of the project file in the
12713 tree to the normalized path.
12715 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
12716 parameter Process_Languages, no longer needed.
12717 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
12718 Other_Languages_Check.
12720 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
12721 to store the resolved canonical path of the project file.
12722 Remove dependency to Prj.Com, no longer needed
12724 * prj-util.adb: Adapt to name changes in package Prj
12725 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
12728 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
12729 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
12730 Externally_Built, Include_Option, Language_Processing.
12732 * makegpr.adb: Numerous changes due to changes in packages
12735 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
12736 default to the project path, except whe "-" is one of the directories
12737 in env var ADA_PROJECT_PATH.
12738 (Gnatls): In verbose mode, add the new section "Project Search Path:"
12740 2004-12-07 Robert Dewar <dewar@adacore.com>
12742 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
12744 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
12747 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
12748 flag. No longer needed now that we handle this in gnat1drv.adb.
12750 * repinfo.ads: Minor reformatting
12752 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12753 Olivier Hainque <hainque@adacore.com>
12754 Eric Botcazou <ebotcazou@adacore.com>
12756 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
12757 TYPE_SIZE_UNIT of result type if SIZE is not specified.
12758 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
12759 of a bitfield, which we know is useless and causes trouble because of
12760 alignment implications.
12762 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
12764 (process_attributes): Clear DECL_COMMON again when a section attribute
12766 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
12767 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
12768 (create_field_decl): Special case ADDRESSABLE negative to mean
12769 "no bitfield creation", to be used by make_aligning_type. Don't
12770 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
12771 fields claimed addressable still have to be bitfields. Use
12772 value_factor_p instead of a raw binop construction to check for the
12773 position's alignment.
12775 2004-12-07 Geert Bosch <bosch@adacore.com>
12777 * eval_fat.adb: Revert previous change.
12779 2004-12-07 Thomas Quinot <quinot@adacore.com>
12780 Ed Schonberg <schonberg@adacore.com>
12782 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
12783 with an implicit dereference as its prefix, use
12784 Insert_Explicit_Dereference instead of merely rewriting the prefix into
12785 an explicit dereference. This ensures that a reference to the original
12786 prefix is generated, if appropriate.
12788 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
12789 dereference is rewritten to an explicit one, generate a reference to
12790 the entity denoted by its prefix using the original prefix node, so
12791 the dereference can be properly recorded as a read of the denoted
12792 access value, if appropriate.
12794 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
12795 emitting 'assigned but never read' warning on a variable on the basis
12796 that it has an access type.
12797 (Check_References): Emit unreferenced warning when the scope is a
12800 2004-12-07 Robert Dewar <dewar@adacore.com>
12801 Ed Schonberg <schonberg@adacore.com>
12803 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
12806 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
12807 leaving call unchanged.
12808 This deals with the case where the pragma Import specified
12809 an external name, to be handled by the back end.
12811 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
12812 subprogram which is Imported with convention Intrinsic if an
12813 External_Name argument is specified.
12814 (Process_Import_Or_Interface): Properly diagnose link name argument.
12815 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
12816 with Sem_Ch6.Cannot_Inline.
12817 (Process_Inline): Provide separate warning for inapplicable inline
12819 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
12820 treatment is uniform on different targets.
12822 2004-12-07 Ed Schonberg <schonberg@adacore.com>
12824 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
12825 construct is rewritten, preserve end label to permit source navigation.
12827 2004-12-07 Thomas Quinot <quinot@adacore.com>
12829 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
12830 Specific_Build_Stub_Target): New subprograms.
12831 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
12832 the PCS implementation used, using the above PCS-customized subprograms.
12833 Minor reformatting.
12834 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
12835 for generation of DSA code targeted to the PolyORB PCS.
12836 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
12837 implementation of the partition communication subsystem in ancillary
12839 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
12840 PolyORB_Support.Build_Stub_Type): New subrograms containing the
12841 PCS-specific part of Add_Stub_Type.
12842 (Insert_Partition_Check): Use runtime library function to perform
12845 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
12846 (RE_Same_Partition): New entity, from s-parint.
12848 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
12850 2004-12-07 Gary Dismukes <dismukes@adacore.com>
12852 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
12853 Output the copyright message on a separate line from the version
12856 2004-12-07 Joel Brobecker <brobecker@adacore.com>
12858 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
12859 compile-time warning.
12861 2004-12-07 Robert Dewar <dewar@adacore.com>
12863 * g-regpat.adb: (Match): Change a misuse of or to or else
12865 2004-12-07 Ed Schonberg <schonberg@adacore.com>
12868 (Generate_Reference): Handle properly a reference to an entry formal,
12869 when an accept statement has a pragma Unreferenced for it.
12871 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
12872 and the Has_Pragma_Unreferenced flag for each formal before analyzing
12873 the body, to ensure that warnings are properly emitted for each accept
12874 statement of a given task entry.
12876 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
12878 * Makefile.in: Add support for foreign threads on VMS.
12880 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12882 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
12884 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
12886 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
12888 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
12890 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
12892 2004-12-07 Robert Dewar <dewar@adacore.com>
12894 * nlists.adb (Prepend_Debug): Remove parameters and nest within
12896 (Remove_Next_Debug): Same fix
12898 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
12899 maintain back pointers now, though we did not used to, and comments
12901 (Prepend): Remove pragma Inline.
12902 (Remove_Next): Same cleanup
12904 2004-12-07 Thomas Quinot <quinot@adacore.com>
12906 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
12907 used to record an implicit dereference as a read operation on its
12908 prefix when operating under -gnatc. Necessary to avoid spurious
12909 'variable assigned but never read' warnings in that mode.
12910 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
12911 is a non-overloaded implicit dereference, call the above subprogram to
12912 ensure proper recording of references.
12914 2004-12-07 Gary Dismukes <dismukes@adacore.com>
12916 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
12917 to be resolved later as part of Analyze_Iteration_Scheme's call to
12920 2004-12-07 Ed Schonberg <schonberg@adacore.com>
12922 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
12923 prefix is not a scalar type, place error message on prefix, not on
12926 2004-12-07 Bernard Banner <banner@adacore.com>
12928 * vxaddr2line.adb: Add support for x86 vxworks
12930 2004-12-07 Thomas Quinot <quinot@adacore.com>
12932 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
12933 documentation of the behaviour of these functions when passed an IP
12934 address that has no record in the system hosts database and no reverse
12937 * cstand.adb, a-tags.ads: Fix typos in comment.
12939 2004-12-07 Robert Dewar <dewar@adacore.com>
12941 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
12942 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
12943 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
12944 s-poosiz.ads: Minor reformatting
12946 * make.adb: Minor reformatting
12947 Add some ??? comments asking for more comments
12949 * s-poosiz.adb: Minor reformatting
12950 Add comments on alignment requirement
12952 * sinfo.ads: Remove obsolete comment and fix typo.
12954 2004-12-07 Vincent Celier <celier@adacore.com>
12955 Sergey Rybin <rybin@adacore.com>
12957 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
12958 Files" with the new tool and package names.
12959 Reformatting to suppress most of the warnings for line too long
12960 Document the new section "Project Search Path:" in the output of
12962 Add gnatmetric section
12964 2004-12-07 Vincent Celier <celier@adacore.com>
12966 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
12967 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
12968 and -eit to -ept. Added qualifier
12969 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
12971 2004-11-27 Andreas Schwab <schwab@suse.de>
12973 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
12975 2004-11-25 Arnaud Charlet <charlet@adacore.com>
12977 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
12978 internal implementation unit GNAT.Sockets.Thin,
12979 as their usage for sockets is non-portable (using the read and write
12980 functions from the system runtime library is fine on UNIX but won't
12981 work under Windows).
12983 * mingw32.h: Update copyright notice.
12985 2004-11-25 Arnaud Charlet <charlet@adacore.com>
12987 * ada-tree.h: Minor reformatting of previous change to avoid lines
12988 longer than 79 characters.
12990 2004-11-25 Olivier Hainque <hainque@adacore.com>
12992 * tb-gcc.c: GCC infrastructure based implementation of
12995 2004-11-24 Steven Bosscher <stevenb@suse.de>
12997 * misc.c (gnat_post_options): Don't clear
12998 flag_inline_functions.
13000 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
13003 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
13006 2004-11-21 Andreas Jaeger <aj@suse.de>
13008 * stylesw.adb: Change Style_Check_Subprogram_Order to
13009 Style_Check_Order_Subprograms.
13011 2004-11-18 Arnaud Charlet <charlet@adacore.com>
13013 * adaint.h, adaint.c
13014 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
13016 Add also a cast to kill another warning.
13017 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
13018 parameter with the priority class of the parent process instead of
13019 always using the NORMAL_PRIORITY_CLASS.
13020 (__gnat_dup): New function.
13021 (__gnat_dup2): New function.
13022 (__gnat_is_symbolic_link): Enable the effective body of this
13023 function when __APPLE__ is defined.
13025 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
13028 2004-11-18 Olivier Hainque <hainque@adacore.com>
13030 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
13031 address of which may be used to represent "others" and "all others"
13032 choices in exception tables, instead of the current harcoded
13033 (void *)0 and (void *)1.
13034 (Setup_Exception): Do nothing in the GNAT SJLJ case.
13036 * gigi.h (others_decl, all_others_decl): New decls representing the
13037 new Others_Value and All_Others_Value objects.
13038 (struct attrib): Rename "arg" component as "args", since GCC expects a
13039 list of arguments in there.
13041 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
13042 corresponding objects exported by a-exexpr, instead of hardcoded dummy
13045 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
13046 others_decl and all_others_decl instead of hardcoded dummy addresses
13047 to represent "others" and "all others" choices, which is cleaner and
13048 more flexible with respect to the possible eh pointer encoding policies.
13050 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
13051 (process_attributes): Account for the naming change of the "args"
13052 attribute list entry component.
13054 * decl.c (build_attr_list): Rename into prepend_attributes to allow
13055 cumulating attributes for different entities into a single list.
13056 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
13057 attributes for the current entity and propagate first subtype
13058 attributes to other subtypes.
13059 <E_Procedure>: Attribute arguments are attr->args and not
13060 attr->arg any more.
13061 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
13062 argument provided, as this is what GCC expects. Use NULL_TREE instead
13065 2004-11-18 Robert Dewar <dewar@adacore.com>
13067 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
13068 Minor reformatting througout (including new function specs)
13069 Add ??? comments asking for clarification.
13071 2004-11-18 Thomas Quinot <quinot@adacore.com>
13073 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
13074 incomplete duplicate implementation of this subprogram from butil.
13076 2004-11-18 Thomas Quinot <quinot@adacore.com>
13078 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
13079 procedures factors the common processing for building an RPC receiver
13080 for an RCI package or an RACW type.
13081 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
13082 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
13083 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
13085 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
13087 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
13089 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
13090 distribution subprogram identifiers that are either subprogram numbers
13092 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
13093 string distribution identifiers assigned to a given subprogram.
13094 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
13095 (Add_RAS_Dereference_TSS): Add comments.
13096 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
13097 is not referenced yet because it will be used by the PolyORB DSA
13099 (Insert_Partition_Check): Remove fossile code.
13100 (First_RCI_Subprogram_Id): Document this constant.
13101 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
13103 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
13104 replaced with calls to Get_Library_Unit_Name_String. Previously there
13105 were several instances of the same code in different locations in the
13106 compiler; this checkin completes the replacement of all of these
13107 instances with calls to a common subprogram.
13108 Minor reformatting.
13110 * sem_dist.adb: Remove comment noting that RPC receiver generation
13111 should be disabled for RACWs that implement RASs.
13112 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
13114 * sem_util.ads, sem_util.adb (Has_Stream): New function
13115 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
13116 qualified name of a library unit into the name buffer.
13117 (Note_Possible_Modification): Generate a reference only
13118 if the context comes from source.
13120 * snames.ads (PCS_Names): New subtype corresponding to names of
13121 supported implementations of the Partition Communication Subsystem
13122 (PCS) (i.e. the runtime library support modules for the distributed
13125 2004-11-18 Robert Dewar <dewar@adacore.com>
13126 Ed Schonberg <schonberg@adacore.com>
13128 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
13129 (Has_Rep_Pragma): New function
13130 (Has_Attribute_Definition_Clause): New function
13131 (Record_Rep_Pragma): Moved here from sem_ch13.adb
13132 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
13134 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
13136 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
13137 (Expand_Pragma_Psect_Object): New procedure
13138 These procedures contain the revised and cleaned up processing for
13139 these two pragmas. This processing was formerly in Sem_Prag, but
13140 is more appropriately moved here. The cleanup involves making sure
13141 that the pragmas are properly attached to the tree, and that no
13142 nodes are improperly shared.
13144 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
13145 pragmas to Exp_Prag, which is more appropriate.
13146 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
13147 check for duplicates Remove use of Is_Psected flag, no longer needed.
13148 Use new Make_String_Literal function with string.
13150 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
13151 that are functions return universal values, that have to be converted
13152 to the context type.
13153 Use new Make_String_Literal function with string.
13154 (Get_Stream_Convert_Pragma): New function, replaces the use of
13155 Get_Rep_Pragma, which had to be kludged to work in this case.
13157 * freeze.adb: Use new Has_Rep_Pragma function
13159 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
13160 function with string.
13161 Use new Has_Rep_Pragma function.
13163 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
13166 2004-11-18 Robert Dewar <dewar@adacore.com>
13168 * errout.ads, errout.adb: (First_Sloc): New function
13170 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
13171 check (-gnatyx) instead of being included as a redundant construct
13174 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
13175 Style_Check_Order_Subprograms.
13177 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
13178 stylesw.adb: Add Style_Check_Xtra_Parens
13180 * usage.adb: Add line for -gnatyx (check extra parens)
13182 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
13184 2004-11-18 Ed Schonberg <schonberg@adacore.com>
13185 Robert Dewar <dewar@adacore.com>
13187 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
13188 discriminant of a constrained subtype, analyze the copy of the
13189 corresponding constraint, because in some cases it may be only
13190 partially analyzed.
13191 Removes long-lived ??? comments.
13193 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
13194 handled controlled or secondary-stack expressions within the
13195 iteration_scheme of a loop.
13197 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
13198 bounds that may contain functions calls, to prevent memory leaks when
13199 the bound contains a call to a function that uses the secondary stack.
13200 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
13201 generate temporaries for loop bounds that might contain function calls
13202 that require secondary stack and/or finalization actions.
13204 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
13205 selected component and the selector is overloadable (not just a
13206 function) treat as function call, Analyze_Call will disambiguate if
13208 (Analyze_Selected_Component): Do not generate an actual subtype for the
13209 selected component if expansion is disabled. The actual subtype is only
13210 needed for constraint checks.
13211 (Analyze_Allocator): If restriction No_Streams is set, then do
13212 not permit objects to be declared of a stream type, or of a
13213 composite type containing a stream.
13215 * restrict.ads: Remove the a-stream entry from Unit_Array, since
13216 No_Streams no longer prohibits with'ing this package.
13218 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
13219 discriminants, but the parent base has unknown discriminants, there is
13220 no discriminant constraint to inherit. Such a discrepancy can arise
13221 when the actual for a formal type with unknown discriminants is a
13222 similar private type whose full view has discriminants.
13223 (Analyze_Object_Declaration): If restriction No_Streams is set, then
13224 do not permit objects to be declared of a stream type, or of a
13225 composite type containing a stream.
13227 2004-11-18 Ed Schonberg <schonberg@adacore.com>
13229 * exp_dbug.ads: Update documentation to reflect simpler encoding for
13230 protected operations.
13232 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
13233 generated name, it complicates decoding in gdb and hinders debugging
13234 of protected operations.
13235 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
13236 flag for the protected entry barrier function.
13237 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
13238 flag for the protected entry function.
13240 2004-11-18 Nicolas Setton <setton@adacore.com>
13242 * expect.c: Define __unix__ when __APPLE__ is defined.
13244 * Makefile.in: Inform the value of the variable GMEM_LIB in the
13245 Darwin-specific section.
13247 * lang-specs.h: Change the placement of the %1 marker.
13248 Works around the fact that gcc adds -fPIC by default under Darwin.
13250 2004-11-18 Ed Schonberg <schonberg@adacore.com>
13252 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
13253 type of the object with the packed array type, set the Analyzed flag
13254 on the object if it is an entity or simple indexed component, to avoid
13255 spurious type errors.
13257 2004-11-18 Gary Dismukes <dismukes@adacore.com>
13259 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
13260 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
13261 separate line from the version message.
13263 2004-11-18 Ed Falis <falis@adacore.com>
13265 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
13267 (init_float): Eliminate initialization of floating point status for
13268 AE653. The instructions have no effect for vThreads.
13270 2004-11-18 Vincent Celier <celier@adacore.com>
13272 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
13273 gnatbind is invoked with -shared.
13275 2004-11-18 Jose Ruiz <ruiz@adacore.com>
13277 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
13278 for Detect_Blocking which is redundant with the check done within the
13279 procedure Protected_Single_Entry_Call.
13280 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
13281 Detect_Blocking which is redundant with the check done within the
13282 procedure Protected_Single_Entry_Call.
13284 2004-11-18 Vincent Celier <celier@adacore.com>
13286 * makegpr.adb (Compile): Put the compiling switches (in package
13287 Compiler and on the command line) immediately after "-c", instead of
13288 at the end of the command line invocation of the compiler, when
13289 compiling a non-Ada file.
13290 (Build_Global_Archive): When there is no need to rebuild the archive,
13291 set Global_Archive_Exists, so that the archive is passed to the linker
13294 2004-11-18 Robert Dewar <dewar@adacore.com>
13295 Sergey Rybin <rybin@adacore.com>
13298 Remove extra paren check from list of checks for redundant constructs
13299 Add documentation of new -gnatyx style check (check extra parens)
13300 Remove paragraph about gnatelim debug options.
13302 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
13303 objects rather than forbidding dependencies on the package Ada.Streams.
13305 * sinfo.ads: Add ??? note that we should document pragmas passed to
13308 * g-expect.ads: Fix a few typos in the comments.
13310 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
13312 * misc.c (gnat_handle_option): Use %< and %> for quoting in
13315 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13317 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
13319 2004-11-07 Andreas Schwab <schwab@suse.de>
13321 * Makefile.in (install-gnatlib): Remove spurious hyphen.
13323 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
13326 * Makefile.in (darwin): Set soext to .dylib.
13328 2004-10-26 Vincent Celier <celier@gnat.com>
13329 Thomas Quinot <quinot@act-europe.fr>
13331 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
13332 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
13333 there is no use of GNAT.Sockets.Constants.
13334 Remove remaining pragma Import for C_Write
13335 Remove C_Read and C_Write from internal implementation unit
13336 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
13337 the read and write functions from the system runtime library is fine
13338 on UNIX but won't work under Windows).
13340 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
13341 (Check_Selector): Use C_Recv instead of C_Read.
13342 Selectors are the GNAT.Sockets abstraction to perform a select()
13343 call on a set of descriptors. To allow abortion of an ongoing
13344 select operation, some data is written to a dedicated socket that
13345 is always monitored.
13346 Under Windows, the write and read library functions cannot operate
13347 on sockets, so we need to use send and recv instead, which is portable
13348 across all supported platforms.
13350 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
13351 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
13352 (using the read and write functions from the system runtime library is
13353 fine on UNIX but won't work under Windows).
13355 2004-10-26 Nicolas Setton <setton@act-europe.fr>
13357 * mlib-tgt-darwin.adb: New file.
13359 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13360 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
13361 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
13362 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
13365 * Makefile.in: Add support for building shared libraries under Darwin.
13366 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
13367 the low level EH init subprogram to be called from __gnat_initialize.
13369 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
13370 indicates which options to pass to the archive indexer.
13372 * mlib-utl.adb: Add support for calling ranlib with additional
13373 options. This is needed for instance under Mac OS X.
13374 (Ranlib_Options): New global variable, used to store the potential
13375 options to pass to ranlib.
13376 (Ar): Use Ranlib_Options when spawning ranlib.
13377 (Initialize): Set the value of ranlib option.
13379 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
13381 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
13382 instead of 8K, to reflect the real potential needs for stack-checking
13385 2004-10-26 Pascal Obry <obry@gnat.com>
13387 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
13389 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
13390 Windows only the initial thread stack size can be set so it is good to
13391 start we a low stack size.
13392 The OS will adjust the size as needed.
13394 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
13395 Nicolas Setton <setton@act-europe.fr>
13397 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
13398 "__unix__" instead of "unix".
13399 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
13400 sections were just mistakenly ignored. The former is
13401 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
13402 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
13403 of hpux. This prevents an unwanted definition of the symbol
13404 convert_addresses in adaint.o.
13406 2004-10-26 Gary Dismukes <dismukes@gnat.com>
13408 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
13409 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
13411 2004-10-26 Cyrille Comar <comar@act-europe.fr>
13413 * a-filico.ads, a-filico.adb: fix incorrect header.
13415 2004-10-26 Javier Miranda <miranda@gnat.com>
13417 * a-ststio.ads: Fix typo in identifier
13419 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
13421 * sem_ch4.adb: Minor reformatting.
13423 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13425 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
13426 enabled, check the result of unary and binary operations when the
13427 expression is the right-hand side of an assignment.
13429 2004-10-26 Vincent Celier <celier@gnat.com>
13431 * clean.adb (Delete): Do not output warnings when in quiet output and
13432 not in verbose mode.
13433 (Force_Deletions): New Boolean flag, defaulted to False
13434 (Delete): Only delete a file if it is writable, and when
13435 Force_Deletions is True.
13436 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
13437 (Usage): Line for new switch -f
13438 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
13441 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
13443 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
13444 JM type only if its size matches that of the wrapper. When a size is
13445 prescribed and the field is not aliased, remove the wrapper of a JM
13446 type only if the size is not greater than that of the packed array.
13447 (gnat_to_gnu_entity): Change the extension of packed array wrappers
13450 2004-10-26 Geert Bosch <bosch@gnat.com>
13452 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
13453 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
13454 (Pred): Implement in terms of Succ.
13456 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13458 * exp_aggr.adb (Safe_Component): An aggregate component that is an
13459 unchecked conversion is safe for in-place use if the expression of the
13460 conversion is safe.
13461 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
13462 be expandable in place even if the aggregate does not come from source.
13463 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
13464 designated object of an allocator in place, rather than building it
13465 first on the stack. The previous scheme forces a full copy of the array,
13466 and may be altogether unsusable if the size of the array is too large
13467 for stack allocation.
13469 2004-10-26 Robert Dewar <dewar@gnat.com>
13471 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
13472 compares if the component is atomic.
13474 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
13475 array assignment if the component type is atomic.
13477 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13478 Eric Botcazou <ebotcazou@act-europe.fr>
13480 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
13481 is aliased and is a by_reference type, do not pass by copy.
13482 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
13483 detect whether the call is in the right side of an assignment or
13484 the expression of an object declaration. Recurse on component
13485 association within aggregates.
13486 Call it in the condition that determines whether the temporary is
13487 necessary for correct stack-checking.
13489 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
13491 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
13492 RACW_Type, used in the PolyORB version.
13493 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
13494 version and the GARLIC version.
13496 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
13497 Rename RCI_Info to RCI_Locator for better consistency between the
13498 GARLIC and PolyORB versions of the distributed systems annex.
13499 (DSA_Implementation_Name): This enumeration lists the possible
13500 implementations of the Partition Communication Subsystem for the
13501 Distributed Systems Annex (DSA). The three available implementations
13502 are the dummy stub implementation (No_DSA), and two versions based on
13503 two different distribution runtime libraries: GARLIC and PolyORB. Both
13504 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
13506 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
13509 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
13510 between the GARLIC and PolyORB versions of the distributed systems
13512 Remove RE_Unbounded_Reclaim_Pool since it is unused.
13514 2004-10-26 Gary Dismukes <dismukes@gnat.com>
13516 * gnat1drv.adb: Suppress calling the back end when
13517 Frontend_Layout_On_Target is true.
13519 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
13521 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
13522 Set_Read_Only): New subprograms.
13523 These new routines allow the user to set or unset the Owner execute
13524 and Owner write permission flags on a file.
13526 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
13527 GNAT.OS_Lib.Set_Executable instead of rolling our own.
13529 2004-10-26 Matthew Gingell <gingell@gnat.com>
13531 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
13533 2004-10-26 Pascal Obry <obry@gnat.com>
13535 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
13536 memory before the faulting page we properly test the process read
13537 access for this address using appropriate Win32 routine.
13538 (HPUX sections): guard with "__hpux__" instead of "hpux".
13540 2004-10-26 Robert Dewar <dewar@gnat.com>
13542 * lib-xref.adb (Generate_Reference): Don't complain about reference to
13543 entry parameter if pragma Unreferenced set, since we do not properly
13544 handle the case of multiple parameters.
13546 2004-10-26 Vincent Celier <celier@gnat.com>
13548 * prj-env.adb: (Contains_ALI_Files): New Boolean function
13549 (Ada_Objects_Path.Add): For a library project, add to the object path
13550 the library directory only if there is no object directory or if the
13551 library directory contains ALI files.
13552 (Set_Ada_Paths.Add.Recursive_Add): Ditto
13554 2004-10-26 Vincent Celier <celier@gnat.com>
13556 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
13557 extension of library projects.
13559 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
13560 path defaults to ".:<prefix>/lib/gnat".
13561 (Parse): For an extending all project, allow direct import of a project
13562 that is virtually extended.
13564 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
13565 the specified name is directly imported, return its ID. Otherwise, if
13566 an extension of this project is imported, return the ID of the
13569 2004-10-26 Robert Dewar <dewar@gnat.com>
13571 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
13572 (Sub3): New procedure, used by Scaled_Divide
13573 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
13574 correct more than one instance of failure to propagate carries
13576 (Double_Divide): Handle overflow case of largest negative number
13577 divided by minus one.
13579 * s-arit64.ads (Double_Divide): Document that overflow can occur in
13580 the case of a quotient value out of range.
13583 2004-10-26 Robert Dewar <dewar@gnat.com>
13585 * s-bitops.adb (Bit_Eq): Remove redundant check.
13587 * s-bitops.ads: Minor comment updates
13588 Change some occurrences of Address to System.Address
13590 * s-carsi8.ads: Fix minor cut-and-paste error in comments
13592 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13594 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
13595 accessibility check to prefix that is a protected operation.
13597 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13599 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
13600 empty, post message on stub.
13602 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13603 Javier Miranda <miranda@gnat.com>
13605 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
13606 current instance appears within a unit that is directly in the context
13608 Used to determine whether the body of the instance should be analyzed
13609 immediately after its spec, to make its subprogram bodies available
13610 for front-end inlining.
13611 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
13612 constraint is not allowed on the component type (AARM 12.5.3(3))
13614 2004-10-26 Cyrille Comar <comar@act-europe.fr>
13616 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
13617 'Storage_Pool): enhance, document & limit detection of non-sharable
13620 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
13622 * s-pooglo.ads: Add more documentation now that this pool is properly
13625 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13627 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
13628 or protected type with discriminants, do not constrain the
13629 corresponding record type if the subtype declaration has no
13630 discriminant constraints. This can be the case in source code, or in
13631 the subtype declaration created to rename an actual type within an
13634 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13636 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
13637 different kind of stub (possibly wrong name for file), do not check
13639 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
13640 includes call to some function that returns an unconstrained type, do
13643 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13645 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
13646 appear in the code for the main unit. Dependencies among units in the
13647 context of the main unit are established when those other units are
13648 compiled. Otherwise spurious elaboration constraints can generate
13649 incorrect elaboration circularities.
13651 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
13652 Ed Schonberg <schonberg@gnat.com>
13654 * sem_util.adb (Is_Aliased_View): Defend against the case where this
13655 subprogram is called with a parameter that is not an object name. This
13656 situation arises for some cases of illegal code, which is diagnosed
13657 later, and in this case it is wrong to call Is_Aliased, as that might
13658 cause a compiler crash.
13659 (Explain_Limited_Type): Refine previous fix to include
13660 inherited components of derived types, to provide complete information.
13662 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
13663 is the prival for a protected object.
13664 It is necessary to mark this entity as a variable, in addition to
13665 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
13666 modified to avoid checking the Aliased flag on entities that are not
13667 objects. (Checking that flag for non-objects is erroneous and could
13668 lead to a compiler crash).
13670 2004-10-26 Robert Dewar <dewar@gnat.com>
13672 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
13673 X_Frac = 0.5, then we know that the number X must be positive.
13674 (Succ): Remove the same redundant test, and also fix the primary test
13675 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
13677 (Decompose): Add fuller comments to spec
13679 2004-10-26 Pascal Obry <obry@gnat.com>
13681 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
13682 validity (process must have read access). Set to 0 in all other cases.
13683 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
13684 violation on Win32.
13685 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
13686 segmentation violation.
13688 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
13690 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
13691 whose type is a constructed subtype of an aliased object with an
13692 unconstrained nominal subtype, convert the actual to the constructed
13693 subtype before taking its address.
13695 2004-10-26 Vincent Celier <celier@gnat.com>
13697 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
13698 (Is_Path_Name_Case_Sensitive): New function
13700 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
13701 (Base_Name, Simple_Name, Current_Directory, Compose,
13702 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
13705 2004-10-26 Cyrille Comar <comar@act-europe.fr>
13706 Vasiliy Fofanov <fofanov@act-europe.fr>
13707 Vincent Celier <celier@gnat.com>
13709 * gnat_ugn.texi: Generalize "finding memory problems" section into a
13710 "memory management issues" section and document some of the useful
13711 memory pools provided as part of the GNAT library.
13712 Remove "virtual" from declaration of A::method2 in
13713 the simple example of Ada/C++ mixed system.
13714 Library Projects may be virtually extended: their virtual extensions
13715 are not Library Projects.
13716 Added section on extending project hierarchies.
13718 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
13720 * adaint.c (__gnat_get_libraries_from_registry): Cast value
13722 (__gnat_portable_spawn): Remove const.
13724 * mingw32.h (MAXPATHLEN): Check for previous definition.
13726 2004-10-17 Matthias Klose <doko@debian.org>
13728 * gnatvsn.ads: Set gnat library version to 4.0.
13730 2004-10-05 Vincent Celier <celier@gnat.com>
13732 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
13734 2004-10-04 Laurent GUERBY <laurent@guerby.net>
13737 * Makefile.in: Define and use RANLIB_FLAGS.
13739 2004-10-04 Pascal Obry <obry@gnat.com>
13741 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
13742 other x86 platforms).
13744 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
13746 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
13747 in general and triggers stack alignment adjustment for thread entry
13748 points on targets where this is necessary.
13750 2004-10-04 Bernard Banner <banner@gnat.com>
13753 * Makefile.in: Add section for powerpc linux
13754 Add variant i-vxwork-x86.ads
13756 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
13758 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
13760 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
13761 table registration calls when need be. Ensures no reference to the crt
13762 ctors symbol are issued in the SJLJ case, which avoids possible
13763 undefined symbol errors in the case of modules to be statically linked
13766 2004-10-04 Javier Miranda <miranda@gnat.com>
13768 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
13769 in-line the code corresponding to subprogram Analyze_Actuals. In
13770 addition, analyze the actuals only in case of subprogram call.
13772 2004-10-04 Ed Falis <falis@gnat.com>
13774 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
13776 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
13778 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
13779 in the documentation.
13781 2004-10-04 Robert Dewar <dewar@gnat.com>
13783 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
13785 (Analyze_Block_Statement): Add circuitry to detect following dead code
13786 (Check_Unreachable_Code): Handle case of block exit
13788 2004-10-04 Robert Dewar <dewar@gnat.com>
13790 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
13791 (XMatchD): Avoid warning for Logic_Error call
13793 2004-10-04 Robert Dewar <dewar@gnat.com>
13795 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
13796 consider expressions buried within a procedure actual to be an actual.
13797 This caused some blowups with uses of packed slices within a procedure
13800 2004-10-04 Robert Dewar <dewar@gnat.com>
13802 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
13803 longer need to be initialized to zero.
13804 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
13805 initialized to zero.
13807 * checks.adb (Expr_Known_Valid): Packed arrays are now always
13808 considered valid, even if the representation is modular. That's correct
13809 now that we no longer initialize packed modular arrays to zero.
13811 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
13812 suffixes. These are now documented as the only cases in which the
13813 debugger ignores outer records.
13814 Previously, the spec allowed arbitrary suffixes for this purpose.
13815 Change name of LJM to JM for packed array pad records
13816 Create separate section on packed array handling, and add a whole new
13817 set of comments to this section describing the situation with packed
13818 modular types and justification requirements depending on endianness.
13820 2004-10-04 Robert Dewar <dewar@gnat.com>
13822 * a-except.adb: Add a comment for last change
13824 * einfo.ads: Minor spelling correction in comment
13826 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
13828 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
13831 * sem_util.ads: Minor comment update
13833 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13835 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
13836 Inline_Always when in Configurable_Run_Time mode.
13838 * sem_prag.adb (Process_Convention): If entity is an inherited
13839 subprogram, apply convention to parent subprogram if in same scope.
13840 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
13841 when in Configurable_Run_Time mode.
13843 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13845 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
13846 class_wide type after component list has been inherited.
13848 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13850 * sem_ch12.adb (Check_Generic_Actuals): New predicate
13851 Denotes_Previous_Actual, to handle properly the case of a private
13852 actual that is also the component type of a subsequent array actual.
13853 The visibility status of the first actual is not affected when the
13854 second is installed.
13855 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
13856 make fully recursive the treatment of formals of packages declared
13858 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
13859 the above on exit from an instantiation.
13860 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
13861 current instantiation which is now complete.
13862 (Analyze_Package_Instantiation): No instantiated body is needed if the
13863 main unit is generic. Efficient, and avoid anomalies when a instance
13864 appears in a package accessed through rtsfind.
13866 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13868 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
13869 do not generate a declaration for a temporary if the call is part of a
13870 library-level instantiation.
13872 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13874 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
13875 searching for a limited component to flag.
13877 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
13878 expansion of Input, to account for the fact that the implicit call
13879 generated by the attribute reference must freeze the user-defined
13880 stream subprogram. This is only relevant to 'Input, because it can
13881 appear in an object declaration, prior to the body of the subprogram.
13883 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
13884 expansion can proceed and further errors uncovered.
13885 (Minor clean up): Fix cases of using | instead of \ for continuation
13888 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13890 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
13892 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
13893 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
13894 Use gcc_assert and gcc_unreachable.
13896 * decl.c (gnat_to_gnu_entity, case object): Check and process a
13897 specified alignment before validating size.
13898 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
13899 stripped-down declaration for the type of the inner field when making
13902 * utils.c (finish_record_type): Do not compute the size in units
13903 incrementally. Instead compute it once for the rep clause case.
13904 Use gcc_assert and gcc_unreachable.
13906 2004-10-04 Vincent Celier <celier@gnat.com>
13908 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
13910 (Is_Valid_Path_Name): Take '/' as a directory separator.
13912 2004-10-04 Vincent Celier <celier@gnat.com>
13914 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
13915 (Extended_Project) only if Extended_Project is defined, to avoid
13917 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
13919 (Parse_Single_Project): Ditto.
13921 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
13922 Add_To_Project_Path for virtual projects.
13924 2004-10-04 Vincent Celier <celier@gnat.com>
13926 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13927 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
13928 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
13929 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
13930 parameter Options_2.
13932 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
13933 Build_Dynamic_Library with an empty Options_2.
13935 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
13938 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
13939 directory separator, if any.
13940 (Gprmake): Do not allow mains on the command line for library projects.
13941 Do not attempt to link when the project is a library project.
13942 (Library_Opts): New table to store Library_Options.
13943 (Build_Library): If Library_Options is specified, pass these options
13944 when building a shared library.
13946 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
13948 * s-tposen.adb (Service_Entry): The object must be always unlocked at
13949 the end of this procedure now that the unlock operation was inserted
13952 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
13954 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
13955 corresponding to the Preallocated_Stacks flags in System.
13956 (Get_Target_Parameters): Including the processing for
13957 Preallocated_Stacks.
13959 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
13960 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
13961 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
13962 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
13963 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
13964 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
13965 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
13966 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
13967 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13968 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13969 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
13970 used to signal whether the compiler creates the required stacks and
13971 descriptors for the different tasks (when True) or it is done by the
13972 underlying operating system at run time (when False).
13973 It is initially set to False in all targets.
13975 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
13976 if it is supported by the target.
13977 (Make_Task_Create_Call): Pass the stack address if it has been
13978 previously created. Otherwise pass a Null_Address.
13980 * snames.adb: Add _stack.
13982 * snames.ads: Add Name_uStack. Required to allow the expander to
13983 statically allocated task stacks.
13985 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
13986 Stack_Address argument.
13987 Check that its value is equal to Null_Address because this target does
13988 not support the static stack allocation.
13990 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
13992 * usage.adb: Change "pragma inline" to "pragma Inline" in information
13995 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
13997 * exp_dist.adb: Split declaration of asynchronous flag out of
13998 Add_RACW_Read_Attribute.
13999 Minor reformatting for better alignment with PolyORB version.
14000 Store the entity for the asynchronous flag of an RACW, rather than the
14001 expression, in the asynchronous flags table. This will allow this flag
14002 to be used in other subprograms beside Add_RACW_Read_Attribute.
14004 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
14006 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
14007 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
14008 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
14009 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
14010 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
14011 sockets constant MSG_NOSIGNAL (Linux-specific).
14012 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
14013 all Send operations.
14014 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
14015 from trigerring SIGPIPE.
14016 Rename components to avoid clash with Ada 2005 possible reserved
14018 (Check_Selector): When the select system call returns with an error
14019 condition, propagate Socket_Error to the caller.
14021 2004-10-01 Jan Hubicka <jh@suse.cz>
14023 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
14025 2004-09-23 Robert Dewar <dewar@gnat.com>
14028 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
14029 instead do this at freeze time (we won't do it if there is an address
14031 Change "pragma inline" to "pragma Inline" in information and error
14033 Minor reformatting.
14035 * freeze.adb (Check_Address_Clause): Remove previous change, not the
14036 right way of doing things after all.
14037 (Freeze_Entity): For object, set Is_Public for imported entities
14038 unless there is an address clause present.
14040 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
14042 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
14043 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
14044 ensures proper handling of types with rep clauses, which might have
14045 their TYPE_SIZE set already.
14047 2004-09-21 Robert Dewar <dewar@gnat.com>
14049 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
14050 packed array types in both little- and big-endian cases. This change
14051 ensures that we no longer count on the unused bits being initialized
14052 for such types (and in particular ensures that equality testing will
14053 only read the relevant bits).
14054 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
14055 These changes mean that we no longer need to initialize small packed
14057 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
14058 optimization to an LJM field as to its parent field.
14060 * ada-tree.h, trans.c, utils.c, utils2.c:
14061 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
14063 2004-09-20 Jan Hubicka <jh@suse.cz>
14065 * utils.c (gnat_finalize): Remove.
14066 (end_subprog_body): Directly call cgraph_finalize_function;
14067 do not lower the nested functions.
14069 2004-09-20 Robert Dewar <dewar@gnat.com>
14072 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
14073 if an address clause is present, since that means that the Import
14076 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
14078 * 5tsystem.ads: Removed, no longer used.
14080 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
14081 Zack Weinberg <zack@codesourcery.com>
14083 * ada-tree.def: Use tree_code_class enumeration constants
14084 instead of code letters.
14085 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
14086 Update for new tree-class enumeration constants.
14088 2004-09-17 Vincent Celier <celier@gnat.com>
14090 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
14091 capabilities of the general project manager.
14093 2004-09-09 Vincent Celier <celier@gnat.com>
14095 * a-direct.ads: Add pragma Ada_05
14096 (Directory_Entry_Type): Give default value to component Kind to avoid
14097 not initialized warnings.
14099 * a-direct.adb (Current_Directory): Remove directory separator at the
14101 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
14102 an existing directory.
14103 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
14104 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
14105 Convert the result to File_Size.
14107 * prj.ads: (Project_Error): New exception
14109 * prj-attr.adb: Except in procedure Initialize, Fail comes from
14110 Prj.Com, not from Osint.
14111 (Attrs, Package_Attributes): Tables moved to private part of spec
14112 (Add_Attribute, Add_Unknown_Package): Moved to new child package
14114 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
14115 Prj.Project_Error after call to Fail.
14116 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
14117 Fail. Check that package name is not already in use.
14119 * prj-attr.ads: Comment updates to indicate that all subprograms may be
14120 used by tools, not only by the project manager, and to indicate that
14121 exception Prj.Prj_Error may be raised in case of problem.
14122 (Add_Unknown_Package, Add_Attribute): Moved to new child package
14124 (Attrs, Package_Attributes): Table instantiations moved from the body to
14125 the private part to be accessible from Prj.Attr.PM body.
14127 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
14128 from new package Prj.Attr.PM.
14129 (Parse_Attribute_Declaration): Call Add_Attribute from new package
14132 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
14134 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
14135 instead of Elaboration_Checks).
14137 * a-calend.adb: Minor reformatting
14139 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14141 * gigi.h (maybe_pad_type): New declaration.
14142 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
14144 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
14146 * cuintp.c: Convert to use buildN.
14148 * decl.c (maybe_pad_type): No longer static.
14149 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
14151 Convert to use buildN.
14153 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
14154 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
14155 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
14157 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
14158 (gnat_gimplify_expr, case ADDR_EXPR): New case.
14159 Convert to use buildN.
14161 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
14162 TREE_READONLY for const.
14163 Convert to use buildN.
14165 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
14166 (create_var_decl): Refine when TREE_STATIC is set.
14167 Convert to use buildN.
14169 2004-09-09 Gary Dismukes <dismukes@gnat.com>
14171 * gnat_ugn.texi: Delete text relating to checking of ali and object
14174 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
14177 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
14179 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
14180 pragmas recognized by GNAT.
14182 * gnat_rm.texi: Document pragma Detect_Blocking.
14184 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
14185 raise Program_Error if called from a protected operation.
14187 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
14188 the protected action nesting level.
14189 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
14190 protected action nesting level.
14191 (Unlock): When pragma Detect_Blocking is active decrease the protected
14192 action nesting level.
14194 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
14195 Protected_Action_Nesting.
14197 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
14198 Common_ATCB record. It contains the dynamic level of protected action
14199 nesting for each task. It is needed for checking whether potentially
14200 blocking operations are called from protected operations.
14201 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
14202 Detect_Blocking is active or not in the partition.
14204 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
14205 raise Program_Error if called from a protected operation.
14206 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
14207 Program_Error if called from a protected operation.
14208 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
14209 Program_Error if called from a protected operation.
14211 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
14212 raise Program_Error if called from a protected operation.
14214 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
14215 raise Program_Error if called from a protected operation, and increase
14216 the protected action nesting level.
14217 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
14218 Program_Error if called from a protected operation, and increase the
14219 protected action nesting level.
14220 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
14221 protected action nesting level.
14223 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
14224 raise Program_Error if called from a protected operation, and increase
14225 the protected action nesting level.
14226 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
14227 Program_Error if called from a protected operation, and increase the
14228 protected action nesting level.
14229 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
14230 raise Program_Error if called from a protected operation.
14231 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
14232 active, raise Program_Error if called from a protected operation.
14233 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
14234 protected action nesting level.
14236 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
14237 insertion of the statement raising Program_Error. The run time
14238 contains the required machinery for handling that.
14240 * sem_util.ads: Change comment associated to procedure
14241 Check_Potentially_Blocking_Operation.
14242 This procedure does not insert a call for raising the exception because
14243 that is currently done by the run time.
14245 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
14247 * init.c: Add the global variable __gl_detect_blocking that indicates
14248 whether pragma Detect_Blocking is active (1) or not (0). Needed for
14249 making the pragma available at run time.
14250 (__gnat_set_globals): Pass and update the detect_blocking parameter.
14252 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
14253 pragma Detect_Blocking is active.
14255 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
14257 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
14258 DB is found in the ali file. Any unit compiled with pragma
14259 Detect_Blocking active forces its effect in the whole partition.
14261 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
14262 Detect_Blocking is active and delay is called from a protected
14265 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
14266 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
14267 Detect_Blocking is active (0 otherwise).
14268 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
14269 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
14272 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
14274 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
14275 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
14278 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
14279 (Register_Receiving_Stub): Add Subp_Info formal parameter.
14280 Update API in placeholder implemetation of s-parint to reflect changes
14281 in distribution runtime library.
14283 * sem_ch3.adb (Expand_Derived_Record): Rename to
14284 Expand_Record_Extension.
14286 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
14287 primitive operations of potentially distributed object types that have
14288 non-controlling anonymous access formals.
14290 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
14292 New implementation of expansion for remote access-to-subprogram types,
14293 based on the RACW infrastructure.
14294 This version of sem_dist is compatible with PolyORB/DSA as well as
14297 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
14298 Asynchrronous that applies to a remote access-to-subprogram type, mark
14299 the underlying RACW type as asynchronous.
14301 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
14302 __gnat_using_gnu_linker to 1.
14304 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
14305 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
14306 GNAT.Perfect_Hash_Generators, and remove the empty
14307 GNAT.Perfect_Hash package.
14309 * atree.adb: Minor reformatting
14311 * exp_ch3.adb (Expand_Derived_Record): Rename to
14312 Expand_Record_Extension.
14313 (Build_Record_Init_Proc.Build_Assignment): The default expression in
14314 a component declaration must remain attached at that point in the
14315 tree so New_Copy_Tree copies it if the enclosing record type is derived.
14316 It is therefore necessary to take a copy of the expression when building
14317 the corresponding assignment statement in the init proc.
14318 As a side effect, in the case of a derived record type, we now see the
14319 original expression, without any rewriting that could have occurred
14320 during expansion of the ancestor type's init proc, and we do not need
14321 to go back to Original_Node.
14323 * exp_ch3.ads (Expand_Derived_Record): Rename to
14324 Expand_Record_Extension.
14326 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
14327 Returns the RACW type used to implement a remote access-to-subprogram
14329 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
14330 New subprograms. Used to create a proxy tagged object for a remote
14331 subprogram. The proxy object is used as the designated object
14332 for RAS values on the same partition (unless All_Calls_Remote applies).
14333 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
14334 System.Partition_Interface.Get_Unique_Remote_Pointer.
14335 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
14336 Renamed from Add_RAS_*_Attribute.
14337 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
14339 New implementation of expansion for remote access-to-subprogram types,
14340 based on the RACW infrastructure.
14342 * exp_dist.ads (Copy_Specification): Update comment to note that this
14343 function can copy the specification from either a subprogram
14344 specification or an access-to-subprogram type definition.
14346 2004-09-09 Ed Schonberg <schonberg@gnat.com>
14348 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
14349 in an instance, between an explicit subprogram an one inherited from a
14350 type derived from an actual.
14352 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
14353 add a polling call if the subprogram is to be inlined by the back-end,
14354 to avoid repeated calls with multiple inlinings.
14356 * checks.adb (Apply_Alignment_Check): If the expression in the address
14357 clause is a call whose name is not a static entity (e.g. a dispatching
14358 call), treat as dynamic.
14360 2004-09-09 Robert Dewar <dewar@gnat.com>
14362 * g-trasym.ads: Minor reformatting
14364 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
14365 packed arrays, since unused bits are expected to be zero for a
14368 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
14370 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
14373 2004-09-09 Pascal Obry <obry@gnat.com>
14375 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
14376 enable map file generation. Add the right option to generate the map
14377 file if Map_File is set to True.
14379 * gnatdll.adb (Gen_Map_File): New variable.
14380 (Syntax): Add info about new -m (Map_File) option.
14381 (Parse_Command_Line): Add support for -m option.
14382 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
14383 Minor reformatting.
14385 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
14387 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
14388 new gnatdist implementation.
14389 Define a subpackage isolating the output routines specific to this
14392 2004-09-09 Joel Brobecker <brobecker@gnat.com>
14394 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
14396 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
14398 2004-09-09 Cyrille Comar <comar@act-europe.fr>
14400 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
14403 * opt.ads: Add Ada_Version_Runtime constant used to decide which
14404 version of the language is used to compile the run time.
14406 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
14408 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
14409 of variable length temporaries for function return now that the
14410 back-end and gigi support it.
14412 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14414 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
14416 * trans.c (struct stmt_group): Delete field GLOBAL.
14417 (gnat_init_stmt_group): Do not initialize it.
14418 (call_to_gnu): Use save_expr, not protect_multiple_eval.
14419 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
14420 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
14421 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
14422 (start_stmt_group): Likewise.
14423 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
14425 * utils2.c (ggc.h): Include.
14426 (build_call_raise): Call build_int_cst, not build_int_2.
14428 * utils.c (gnat_init_decl_processing): Fix arg to
14429 build_common_tree_nodes.
14430 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
14431 (gnat_define_builtin): Set built_in_decls.
14432 (init_gigi_decls): Call build_int_cst, not build_int_2.
14434 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
14435 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
14436 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
14437 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
14438 SET_TYPE_MODULE): Use them.
14439 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
14440 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
14441 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
14442 SET_TYPE_ADA_SIZE): Likewise.
14443 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
14444 (DECL_CONST_CORRESPONDING_VAR,
14445 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
14446 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
14447 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
14448 (TYPE_RM_SIZE_NUM): New macro.
14449 (TYPE_RM_SIZE): Modified to use above.
14451 * cuintp.c: (build_cst_from_int): New function.
14452 (UI_To_gnu): Use it.
14454 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
14455 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
14456 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
14457 MIN_EXPR for the size, copy it into new.
14459 2004-09-01 Robert Dewar <dewar@gnat.com>
14461 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
14462 packed indexed component where array is an IN OUT formal. This
14463 generated garbage code previously.
14465 * gnat_ugn.texi: Document -fverbose-asm
14467 * gnat-style.texi: Minor updates (note that boolean constants and
14468 variables are joined with AND/OR rather than short circuit forms).
14470 2004-09-01 Ed Schonberg <schonberg@gnat.com>
14472 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
14473 it is an upward conversion of an untagged type with no representation
14476 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
14478 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
14479 System.Partition_Interface.
14481 * checks.adb (Apply_Access_Checks): Do not generate checks when
14482 expander is not active (but check for unset reference to prefix of
14485 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
14486 pragma Debug as an if statement with a constant condition, for
14487 consistent treatment of entity references contained within the
14488 enclosed procedure call.
14490 2004-09-01 Vincent Celier <celier@gnat.com>
14492 * bindgen.adb: (Set_EA_Last): New procedure
14493 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
14495 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
14496 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
14497 linked without errors.
14498 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
14500 (Gen_Exception_Table_C): Correct same bugs
14502 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
14504 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
14505 on Windows, make sure that the drive letter is in upper case.
14507 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
14508 Windows, when the drive letter is added and Case_Sensitive is True, the
14509 drive letter is forced to upper case.
14511 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
14512 to Options_2 for the call to MLib.Utl.Gcc.
14514 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
14515 directory separator when defining BASE_DIR.
14517 2004-09-01 Pascal Obry <obry@gnat.com>
14519 * gprcmd.adb (Extend): Do not output trailing directory separator. This
14520 is not needed and it confuses Windows GNU/make which does not report
14521 directory terminated by a slash as a directory.
14522 (gprcmd): Idem for "pwd" internal command.
14524 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
14525 target names rewrite to fix regressions with recent version of
14526 GNU/make. Starting with GNU/make 3.80 the pipe character was not
14527 handled properly anymore.
14529 2004-09-01 Andreas Schwab <schwab@suse.de>
14531 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
14532 * raise.c [!IN_RTS]: Undef abort.
14534 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
14536 * utils2.c (build_allocator): Use ssize_int.
14538 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
14540 2004-08-27 Andreas Schwab <schwab@suse.de>
14542 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
14544 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
14545 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14547 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
14549 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
14551 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
14552 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
14553 * utils.c (init_gigi_decls): Likewise.
14554 * utils2.c (build_call_raise, build_allocator): Likewise.
14556 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
14558 * utils.c (gnat_init_decl_processing): Adjust
14559 build_common_tree_nodes call.
14561 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
14563 * utils2.c (build_allocator): Use build_int_cst for negative
14566 2004-08-18 Richard Henderson <rth@redhat.com>
14568 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
14570 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
14572 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
14574 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
14575 (gnat_to_gnu): Likewise.
14577 2004-08-16 Pascal Obry <obry@gnat.com>
14579 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
14580 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
14581 option and not mdll anymore. Update comment.
14583 2004-08-16 Pascal Obry <obry@gnat.com>
14585 * bld.adb (Put_Include_Project): Properly handle directory separators
14588 2004-08-16 Ed Schonberg <schonberg@gnat.com>
14590 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
14591 decreasing the number of allocated junk nodes while searching for the
14592 appropriate subprogram.
14594 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
14596 * cuintp.c (UI_To_gnu): Use build_int_cst..
14597 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
14598 * utils.c (init_gigi_decls): Likewise.
14599 * utils2.c (build_call_raise): Likewise.
14601 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
14603 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
14604 for a global aliased object with a variable size and an unconstrained
14605 nominal subtype, pretend there is no initializer if the one we have is
14606 incomplete, and avoid referencing an inexistant component in there. The
14607 part we have will be rebuilt anyway and the reference may confuse
14608 further operations.
14610 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
14612 * einfo.ads: Minor reformatting
14614 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
14615 restrictions in the ALI if we only want to warn about violations.
14617 2004-08-13 Vincent Celier <celier@gnat.com>
14619 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
14620 when creating a new Unit_Record in table Units.
14622 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
14623 that are violated, if any.
14625 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
14626 add directory separator if path already ends with a directory separator.
14628 2004-08-13 Ed Schonberg <schonberg@gnat.com>
14630 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
14631 unit, this is an attempt to inline a construct that is not available in
14632 the current restricted mode, so abort rather than trying to continue.
14634 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
14635 discriminants that rename those of the parent, recover names of
14636 original discriminants for the constraint on the full view of the
14638 (Complete_Private_Subtype): Do not create a subtype declaration if the
14639 subtype is an itype.
14641 * gnat_rm.texi: Added section on implementation of discriminated
14642 records with default values for discriminants.
14644 2004-08-13 Ed Schonberg <schonberg@gnat.com>
14647 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
14648 the second operand is overloaded.
14650 2004-08-10 Richard Henderson <rth@redhat.com>
14652 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
14653 add __builtin_alloca.
14655 2004-08-10 Richard Henderson <rth@redhat.com>
14657 * config-lang.in (boot_language): Yes.
14659 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
14661 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
14662 from complaining on potential uninitialized reference.
14663 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
14664 new specification and test explicitly for non-zero return value.
14666 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
14667 returning C.int, to avoid using a derived boolean type.
14669 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
14670 Duplicate_Subexpr_No_Checks in preference to direct use of
14671 Remove_Side_Effects and New_Copy_Tree.
14672 Clear Comes_From_Source on prefix of 'Size attribute reference.
14674 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
14675 g-socthi-vxworks.adb: Change calls to
14676 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
14677 and test explicitly for non-zero return value.
14679 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
14680 (Is_Socket_In_Set): Declare imported function as returning C.int, to
14681 avoid using a derived boolean type.
14683 2004-08-09 Albert Lee <lee@gnat.com>
14685 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
14687 2004-08-09 Pascal Obry <obry@gnat.com>
14689 * gnat_ugn.texi: Document new way to build DLLs on Windows using
14690 GCC's -shared option.
14692 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
14693 Options_2 parameter (options put after object files).
14695 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
14697 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
14698 ignore overflows on low and high bounds of an index to also account for
14699 differences in signedness between sizetype and gnu_index_subtype.
14700 These are as legitimate as the ones caused by a lower TYPE_PRECISION
14703 2004-08-09 Robert Dewar <dewar@gnat.com>
14705 * s-solita.ads, s-solita.adb: Minor reformatting
14707 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
14708 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
14709 obsolescent section
14710 Add note that No_Implicit_Conditionals does not suppress
14711 run time constraint checks.
14713 * vms_conv.ads: Minor reformatting
14715 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
14716 and necessary for following change).
14717 (Mark): Return new format Mark_Id containing sec stack address
14718 (Release): Use sec stack address from Mark_Id avoiding Self call
14720 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
14721 pointer (cleanup and necessary for following change).
14722 Define Mark_Id as record containing address of secondary stack, that way
14723 Release does not need to find the stack again, decreasing the number of
14724 calls to Self and improving efficiency.
14726 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
14728 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
14729 case variable into the individual case branches when possible.
14731 * sem_ch11.adb: Minor reformatting
14733 * prj.ads: Correct spelling of suffixs
14735 * prj-nmsc.adb: Minor reformatting
14736 Correct spelling suffixs throughout (also in identifiers)
14738 * freeze.adb: Minor spelling correction
14740 * exp_ch2.adb: Cleanups to handling of Current_Value
14741 (no functional effect).
14743 * bld.adb: Correct spelling of suffixs
14745 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
14747 2004-08-09 Ed Schonberg <schonberg@gnat.com>
14750 * sem_ch7.adb (Install_Private_Declarations): In the body of the
14751 package or of a child, private entities are both immediately_visible
14754 2004-08-09 Ed Schonberg <schonberg@gnat.com>
14756 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
14757 there are no range checks on the value of the literal.
14759 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
14760 wrapped is the triggering alternative of an asynchronous select, action
14761 statements mustbe inserted before the select itself.
14763 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
14764 case where the prefix is a protected function call.
14765 (Resolve_Attribute, case 'Access): The attribute reference on a
14766 subprogram is legal in a generic body if the subprogram is declared
14769 2004-08-09 Vincent Celier <celier@gnat.com>
14771 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
14772 languages, otherwise building the library may fail with unresolved
14774 (Compile_Sources): Do not build libraries if -c switch is used
14776 * gnatlink.adb (Process_Args): New switches -M and -Mmap
14777 (Write_Usage): If map file creation is supported, output new switches
14779 (Gnatlink): When -M is specified, add the necessary switch(es) to the
14780 gcc call, when supported.
14782 * Makefile.in: Added indepsw.o to the object list for gnatlink
14783 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
14785 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
14786 indepsw.adb, indepsw.ads: New files.
14788 2004-08-09 Bernard Banner <banner@gnat.com>
14790 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
14792 * Makefile.in: add section for vxworks x86
14794 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
14796 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
14797 per-object constrained components where the discriminant is of an
14799 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
14800 the parent initialization procedure for derived Unchecked_Unions.
14801 Instead, derived Unchecked_Unions build their own initialization
14803 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
14804 Check the body of the subprogram for details.
14805 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
14806 functions for derived Unchecked_Union types by introducing a condition.
14807 Allow the creation of TSS equality functions for Unchecked_Unions.
14808 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
14809 Add formal parameter Discr to function signature. Discr is used to
14810 control the generated case statement for Unchecked_Union types.
14811 (Make_Eq_If): Rename formal parameter Node to E in function signature.
14813 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
14815 Check the body of the subprogram for details.
14816 (Expand_Composite_Equality): Augment composite type equality to include
14817 correct handling of Unchecked_Union components.
14818 (Expand_N_In): Add condition to detect illegal membership tests when the
14819 subtype mark is a constrained Unchecked_Union and the expression lacks
14820 inferable discriminants, and build a Raise_Program_Error node.
14821 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
14822 to detect types that contain components of unconstrained Unchecked_Union
14823 subtype. Add condition to detect equality between types that have an
14824 unconstrained Unchecked_Union component, and build a Raise_Program_Error
14825 node. Add condition to detect equality between Unchecked_Union types
14826 that lack inferable discriminants, and build a Raise_Program_Error node.
14827 Otherwise build a TSS equality function call.
14828 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
14829 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
14830 with the operand lacking inferable discriminants, and build a Raise_
14831 Program_Error node.
14832 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
14833 composite equality.
14834 (Has_Inferable_Discriminants): Implement new predicate for objects and
14835 expressions of Unchecked_Union type. Check the body of subprogram for
14837 (Has_Unconstrained_UU_Components): Add function
14838 Component_Is_Unconstrained_UU. It is used to detect whether a single
14839 component is of an unconstrained Unchecked_Union subtype. Add function
14840 Variant_Is_Unconstrained_UU. It is used to detect whether a single
14841 component inside a variant is of an unconstrained Unchecked_Union type.
14843 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
14844 inferred discriminant values. Add condition to generate a case
14845 statement with an inferred discriminant as the switch.
14846 (Make_Component_List_Assign): Introduce a Boolean flag that determines
14847 the behaviour of the subprogram in the presence of an Unchecked_Union.
14848 Add condition to trigger the usage of the inferred discriminant value
14849 as the generated case statement switch.
14850 (Make_Field_Assign): Introduce a Boolean flag that determines the
14851 behaviour of the subprogram in the presence of an Unchecked_Union. Add
14852 condition to trigger the usage of the inferred discriminant value as
14853 the right-hand side of the generated assignment.
14855 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
14856 parameter generation when dealing with Unchecked_Unions.
14858 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
14859 checks for Unchecked_Unions.
14861 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
14863 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
14864 Raise_Program_Error nodes for the execution of Read and Write
14865 attributes of Unchecked_Union types and the execution of Input and
14866 Output attributes of Unchecked_Union types that lack default
14867 discriminant values.
14869 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
14870 Unchecked_Union. Add procedure Check_Component. It is used to inspect
14871 per-object constrained components of Unchecked_Unions for being
14872 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
14873 check individual components withing a variant.
14875 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
14876 comparison of Unchecked_Unions.
14877 (Resolve_Equality_OP): Remove guard that prevents equality between
14880 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
14881 of component subtypes for Unchecked_Union components.
14882 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
14883 since it is the actual subtype.
14885 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
14886 pass of Unchecked_Union subtypes as generic actuals to formal types
14887 that lack known_discriminant_parts or that are derived Unchecked_Union
14888 types, and do nothing. In any other case, produce an error message.
14890 * sem_ch3.adb (Analyze_Component_Declaration): Add function
14891 Contains_POC. It determines whether a constraint uses the discriminant
14892 of an enclosing record type.
14893 Add condition to detect per-object constrained component and set the
14895 (Derived_Type_Declaration): Remove guard that prevents derivation from
14896 Unchecked_Union types.
14897 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
14900 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
14901 references to Unchecked_Union discriminants.
14903 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
14904 formal generation when dealing with Unchecked_Unions.
14905 (Set_Actual_Subtypes): Add condition to prevent generation of actual
14906 subtypes for Unchecked_Unions.
14908 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
14909 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
14910 completions of discriminated partial views by Unchecked_Unions and
14911 produce an error message.
14913 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14915 * trans.c (struct stmt_group): New field, GLOBAL.
14916 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
14917 (struct elab_info): New struct.
14918 (elab_info_list, gnu_elab_proc_stack): New variables.
14919 (Compilation_Unit_to_gnu): New procedure.
14920 (gigi): Call it and also handle elaboration procs we've saved.
14921 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
14922 global field from parent.
14923 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
14924 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
14925 (start_stmt_group): Initialize global field from parent.
14926 (add_decl_expr): Set to global for current statement group.
14927 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
14930 * utils.c (global_bindings_p): True when no current_function_decl; no
14931 longer check current_binding_level.
14933 2004-08-09 Ben Brosgol <brosgol@gnat.com>
14935 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
14938 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
14940 2004-08-06 Andreas Schwab <schwab@suse.de>
14942 * utils.c (gnat_define_builtin): Remove second parameter of
14944 (begin_subprog_body): Likewise.
14946 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
14948 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
14949 optimization, not supported by the tree-ssa back-end.
14951 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
14953 * s-mastop-irix.adb: Update comments.
14955 * a-except.adb (Exception_Information): Raise Constraint_Error if
14956 exception Id is Null_Id.
14957 This is required behavior, which is more reliably and clearly checked
14958 at the top level interface level.
14960 2004-07-26 Javier Miranda <miranda@gnat.com>
14962 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
14963 call if a component has no default_expression and the box is used.
14965 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
14966 default_expression and you use box, it behaves as if you had declared a
14967 stand-alone object.
14968 (Resolve_Record_Aggregate): If a component has no default_expression and
14969 you use box, it behaves as if you had declared a stand-alone object.
14971 * sem_ch10.adb (Install_Siblings): Do not make visible the private
14972 entities of private-with siblings.
14974 2004-07-26 Ed Schonberg <schonberg@gnat.com>
14976 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
14977 for a component of an itype, set the parent pointer for analysis,
14978 there is no list in which to insert it.
14980 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
14981 bona-fide renamings, not for inherited operations.
14983 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
14984 actual for a formal that is an access parameter, create local
14985 finalization list even if the expression is not an aggregate.
14987 2004-07-26 Ed Schonberg <schonberg@gnat.com>
14990 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
14991 Diagnose properly illegal subprogram renamings that are library units.
14993 2004-07-26 Ed Schonberg <schonberg@gnat.com>
14996 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
14997 conversion rewritten as an unchecked conversion, check that original
14998 expression is a variable.
15000 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
15001 unchecked_conversion, create new node rather than rewriting in place,
15002 to preserve original construct.
15004 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15006 * gigi.h (gnat_expand_body): Deleted.
15008 * Make-lang.in: (trans.o): Depends on function.h.
15010 * misc.c: (gnat_expand_body): Moved to here.
15012 * trans.c (gnat_expand_body_1): Deleted.
15013 (gnat_expand_body): Moved from here.
15014 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
15015 (add_stmt): Check for marked visited with global_bindings_p.
15016 (gnat_gimplify_expr, case COMPONENT_REF): New case.
15017 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
15019 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
15020 VIEW_CONVERT_EXPR if not operation type.
15022 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
15025 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
15026 changes: reformatting of negation operators, removing unneeded
15027 inequality comparison with zero, converting equality comparisons with
15028 zero to negations, changing int/0/1 to bool/false/true, replace calls
15029 to gigi_abort with abort, and various other similar changes.
15031 2004-07-26 Vincent Celier <celier@gnat.com>
15033 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
15036 * make.adb (Gnatmake): Fail when a library is not present and there is
15037 no object directory.
15039 * mlib-prj.adb (Check_Library): No need to check if the library needs
15040 to be rebuilt if there is no object directory, hence no object files
15041 to build the library.
15043 * opt.ads (Setup_Projects): New Boolean flag.
15045 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
15047 Create directory when Kind /= "" and in "gnat setup". Report error if
15048 directory cannot be created.
15049 (Ada_Check): Create library interface copy dir if it does not exist
15050 and we are in "gnat setup".
15051 (Find_Sources): No error if in "gnat setup" and no Ada sources were
15053 (Language_Independent_Check): Create object directory, exec directory
15054 and/or library directory if they do not exist and we are in
15057 * vms_conv.ads: (Command_Type): New command Setup.
15059 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
15061 * vms_data.ads: Add qualifiers/switches for new built-in command
15064 2004-07-25 Richard Henderson <rth@redhat.com>
15066 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
15067 DECL_IGNORED_P on RESULT_DECL.
15069 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
15071 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
15072 allocation and potentially overflowing update with
15073 Tailored_Exception_Information. Use the sec-stack free procedural
15074 interface to output Exception_Information instead.
15076 * a-except.adb (To_Stderr): New subprogram for character, and string
15077 version moved from a-exextr to be visible from other separate units.
15078 (Tailored_Exception_Information): Remove the procedural version,
15079 previously used by the default Last_Chance_Handler and not any more.
15080 Adjust various comments.
15082 * a-exexda.adb: Generalize the exception information procedural
15083 interface, to minimize the use of secondary stack and the need for
15084 local buffers when the info is to be output to stderr:
15085 (Address_Image): Removed.
15086 (Append_Info_Character): New subprogram, checking for overflows and
15087 outputing to stderr if buffer to fill is of length 0.
15088 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
15089 (Append_Info_Address, Append_Info_Exception_Name,
15090 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
15091 Append_Info_Basic_Exception_Traceback,
15092 Append_Info_Exception_Information): New subprograms.
15093 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
15094 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
15095 Exception_Info_Maxlength, Exception_Name_Length,
15096 Exception_Message_Length): New subprograms.
15097 (Exception_Information): Use Append_Info_Exception_Information.
15098 (Tailored_Exception_Information): Use
15099 Append_Info_Basic_Exception_Information.
15100 Export services for the default Last_Chance_Handler.
15102 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
15103 other separate units.
15105 2004-07-20 Vincent Celier <celier@gnat.com>
15107 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
15109 2004-07-20 Ed Schonberg <schonberg@gnat.com>
15111 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
15112 emit itype references for the designated types of component types that
15113 are declared outside of the full record declaration, and that may
15114 denote a partial view of that record type.
15116 2004-07-20 Ed Schonberg <schonberg@gnat.com>
15119 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
15120 which is the designated type in an access component declaration, to the
15121 list of incomplete dependents of the parent type, to avoid elaboration
15122 issues with out-of-scope subtypes.
15123 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
15124 full view of the parent.
15126 2004-07-20 Ed Schonberg <schonberg@gnat.com>
15129 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
15130 entities that are hidden, such as references to generic actuals
15131 outside an instance.
15133 2004-07-20 Javier Miranda <miranda@gnat.com>
15135 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
15136 support to the new notation.
15137 (Analyze_Selected_Component): Add call to Try_Object_Operation.
15139 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
15141 * s-taprob.adb: Adding the elaboration code required for initializing
15142 the tasking soft links that are common to the full and the restricted
15145 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
15146 restricted run time has been moved to the package
15147 System.Soft_Links.Tasking.
15149 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
15150 restricted run time has been moved to the package
15151 System.Soft_Links.Tasking.
15153 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
15155 * s-solita.ads, s-solita.adb: New files.
15157 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15159 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
15160 Case_Statement_to_gnu): Split off from gnat_to_gnu.
15161 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
15162 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
15163 Exception_Handler_to_gnu_zcx): Likewise.
15165 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
15167 * gigi.h (builtin_function): Declare.
15169 2004-07-15 Robert Dewar <dewar@gnat.com>
15171 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
15174 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
15175 access values as an example of a warning.
15177 * gnat_rm.texi: Document new attribute Has_Access_Values
15179 * gnat-style.texi: Document that box comments belong on nested
15182 * sem_util.ads (Has_Access_Values): Improved documentation
15184 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
15186 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
15187 (Process_Interface_Name): Call to this new procedure
15188 (Set_Extended_Import_Export_External_Name): Call to this new procedure
15190 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
15192 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
15194 * einfo.ads: Minor comment typo fixed
15196 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
15198 * snames.adb: Add _atcb.
15200 * snames.ads: Add Name_uATCB.
15202 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
15203 (in the expanded code) when using the restricted run time.
15205 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
15206 a in parameter in order to allow ATCBs to be preallocated (in the
15209 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
15210 order to allow ATCBs to be preallocated. In case of error, the ATCB is
15211 deallocated in System.Tasking.Stages.
15213 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
15214 order to allow ATCBs to be preallocated.
15216 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
15217 here. It was previously done in Initialize_ATCB.
15219 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
15221 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
15222 Restricted run time.
15224 * exp_ch3.adb: When using the Restricted run time, pass the
15225 preallocated Ada_Task_Control_Block when creating a task.
15227 2004-07-15 Ed Schonberg <schonberg@gnat.com>
15229 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
15230 function call that is itself an actual in an enclosing call, diagnose
15231 problem here rather than assuming that resolution will catch it.
15233 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
15234 the local copy of a generic unit for a formal package, and the generic
15235 is a child unit, install private part of ancestors before compiling
15236 private part of spec.
15238 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
15239 use scope entities rather than tree structures, to handle properly
15240 parent units that are instances rewritten as bodies for inlining
15243 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
15244 Remove_Parents): Handle properly a parent unit that is an
15245 instantiation, when the unit has been rewritten as a body for inlining
15248 * par.adb (Goto_List): Global variable to collect goto statements in a
15249 given unit, for use in detecting natural loops.
15251 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
15252 use in detecting natural loops.
15254 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
15255 backwards goto's, and rewrite as a infinite loop, to improve locality
15258 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
15259 subcomponent that includes an indexed reference, to prevent the
15260 generation of copies that would miscompile the desired assignment
15262 (Build_Task_Image_Decls): Add a numeric suffix to
15263 generated name for string variable, to avoid spurious conflicts with
15264 the name of the type of a single protected object.
15266 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
15267 loop with an explicit exit statement, to avoid generating an
15268 out-of-range value with 'Succ leading to spurious constraint_errors
15269 when compiling with -gnatVo.
15271 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
15273 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
15274 might not be analyzed yet, even if its Etype is already set (case of an
15275 unchecked conversion built using Unchecked_Convert_To, for example).
15276 If the prefix has already been analyzed, this will be a nop anyway.
15278 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
15279 controller type, or an assignment of a record type with controlled
15280 components, copy only user data, and leave the finalization chain
15281 pointers untouched.
15283 2004-07-15 Vincent Celier <celier@gnat.com>
15285 * make.adb (Collect_Arguments): Improve error message when attempting
15286 to compile a source not part of any project, when -x is not used.
15288 * prj.ads: (Defined_Variable_Kind): New subtype
15290 * prj-attr.adb (Register_New_Package): Two new procedures to register
15291 a package with or without its attributes.
15292 (Register_New_Attribute): Mew procedure to register a new attribute in a
15294 New attribute oriented subprograms: Attribute_Node_Id_Of,
15295 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
15296 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
15298 New package oriented subprograms: Package_Node_Id_Of,
15299 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
15301 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
15303 (Package_Node_Id): Now a private, self initialized type
15304 (Register_New_Package): New procedure to register a package with its
15306 New attribute oriented subprograms: Attribute_Node_Id_Of,
15307 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
15308 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
15310 New package oriented subprograms: Package_Node_Id_Of,
15311 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
15313 * prj-dect.adb (Parse_Attribute_Declaration,
15314 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
15316 * prj-makr.adb (Make): Parse existing project file before creating
15317 other files. Fail if there was an error during parsing.
15319 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
15320 new spec of Prj.Attr.
15322 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
15323 to new spec of Prj.Attr.
15325 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15327 * utils2.c: Fix typo in comment.
15329 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15331 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
15332 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
15334 2004-07-14 Andreas Schwab <schwab@suse.de>
15336 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
15338 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15340 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
15342 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
15345 * misc.c (gnat_types_compatible_p): New function.
15346 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
15347 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
15349 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
15350 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
15351 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
15352 (mark_visited): Don't mark dummy type.
15353 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
15354 parameter, we must remove any LJM building from GNU_NAME.
15355 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
15356 (pos_to_constructor): Use int_const_binop.
15357 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
15360 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
15361 (gnat_pushlevel): Set TREE_USE on BLOCK node.
15362 (gnat_install_builtins): Add __builtin_memset.
15364 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
15366 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
15367 for a renaming, stabilize the initialization expression if we are at a
15368 local level. At the local level, uses of the renaming may be performed
15369 by a direct dereference of the initializing expression, and we don't
15370 want possible variables there to be evaluated for every use.
15372 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
15373 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
15374 them on the way. Account for the fact that we may introduce side
15375 effects in the process.
15377 2004-07-13 Richard Henderson <rth@redhat.com>
15379 * misc.c (default_pass_by_ref): Use pass_by_reference.
15381 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
15383 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
15384 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
15386 2004-07-08 Richard Henderson <rth@redhat.com>
15388 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
15391 2004-07-06 Vincent Celier <celier@gnat.com>
15393 * vms_conv.ads: Minor reformatting.
15394 Alphabetical order for enumerated values of type Command_Type, to have
15395 the command in alphabetical order for the usage.
15397 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
15398 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
15400 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
15402 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
15403 (Add_Archive_Path): Only add the global archive if there is one.
15404 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
15405 or not any object file to put in the global archive, and don't build
15406 a global archive if there is none.
15407 (X_Switches): New table
15408 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
15409 in the X_Switches table, if any.
15410 (Initialize): Make sure the X_Switches table is empty
15411 (Scan_Arg): Record -X switches in table X_Switches
15413 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
15415 * make.adb: Minor comment fix
15417 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
15418 invoked with directory information, add the directory in front of the
15421 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
15422 invoked with directory information, add the directory in front of the
15425 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
15426 when Keep_Temporary_Files is False.
15427 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
15428 directory information, add the directory in front of the path.
15429 When not on VMS, handle new switch -dn before the command to set
15430 Keep_Temporary_Files to True.
15431 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
15434 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
15435 invoked with directory information, add the directory in front of the
15438 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
15440 * snames.ads, snames.adb (Name_Stub): New name for the distributed
15443 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
15444 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
15446 * g-socket.adb (To_Timeval): Fix incorrect conversion of
15447 Selector_Duration to Timeval for the case of 0.0.
15449 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
15450 documentation from Evolve_And_Then.
15452 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
15454 * s-taprop-tru64.adb, s-taprop-os2.adb,
15455 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
15457 2004-07-06 Robert Dewar <dewar@gnat.com>
15459 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
15460 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
15461 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
15462 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
15463 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
15464 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
15465 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
15466 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
15467 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
15468 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
15469 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
15470 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
15471 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
15472 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
15473 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
15474 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
15475 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
15476 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
15477 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
15478 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
15479 vms_data.ads: Minor reformatting,
15480 Fix bad box comment format.
15482 * gnat_rm.texi: Fix minor grammatical error
15484 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
15486 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
15487 more cases of discriminated records to be recognized as not needing a
15489 (Has_Access_Values): New function.
15491 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
15493 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
15494 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
15495 with LRM terminology).
15496 Change terminology in comments primitive type => elementary type.
15498 2004-07-06 Ed Schonberg <schonberg@gnat.com>
15501 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
15502 parameters do not impose any requirements on the presence of a body.
15504 2004-07-06 Ed Schonberg <schonberg@gnat.com>
15507 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
15508 compilation unit and is in an open scope at the point of instantiation,
15509 assume that a body may be present later.
15511 2004-07-06 Ed Schonberg <schonberg@gnat.com>
15513 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
15514 Improve error message when specified size is not supported.
15516 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
15517 is never a primitive operation.
15519 2004-07-05 Andreas Schwab <schwab@suse.de>
15521 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
15522 RECORD_OR_UNION_CHECK.
15523 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
15525 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
15527 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
15528 dependency on xgnatugn, instead build it via a submake.
15529 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
15531 2004-07-04 Richard Henderson <rth@redhat.com>
15533 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
15535 2004-07-01 Richard Henderson <rth@redhat.com>
15537 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
15538 * utils.c (max_size): Likewise.
15540 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15542 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
15543 and rest_of_type_compilation; add arg to create_*_decl.
15544 (annotate_decl_with_node): Deleted.
15545 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
15546 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
15547 (get_current_block_context, gnat_pushdecl): New declarations.
15548 (gnat_init_stmt_group): Likewise.
15549 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
15550 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
15551 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
15552 (gnat_init): Call gnat_init_stmt_group.
15553 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
15554 (gnu_pending_elaboration_list): Deleted.
15555 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
15556 (gigi): Rearrange initialization calls and move some to last above.
15557 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
15558 Delete calls to add_decl_expr; add arg to create_*_decl.
15559 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
15560 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
15561 begin_subprog_body and call it.
15562 Don't push and pop ggc context.
15563 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
15564 (add_stmt): Remove handling of DECL_EXPR from here.
15565 If not in function, mark visited.
15566 (add_decl_expr): Put global at top level.
15567 Check for cases of DECL_INITIAL we have to handle here.
15568 (process_type): Add extra arg to create_type_decl.
15569 (build_unit_elab): Rework to just gimplify.
15570 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
15571 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
15572 (get_pending_elaborations, pending_elaborations_p): Likewise.
15573 (push_pending_elaborations, pop_pending_elaborations): Likewise.
15574 (get_elaboration_location, insert_elaboration_list): Likewise.
15575 (gnat_binding_level): Renamed from ada_binding_level.
15576 (init_gnat_to_gnu): Don't clear pending_elaborations.
15577 (global_bindings_p): Treat as global if no current_binding_level.
15578 (set_current_block_context): New function.
15579 (gnat_pushdecl): Renamed from pushdecl; major rework.
15580 All callers changed.
15581 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
15582 (finish_record_type): Call call pushdecl for stub decl.
15583 (function_nesting_depth): Deleted.
15584 (begin_subprog_body): Delete obsolete code.
15585 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
15587 2004-06-28 Robert Dewar <dewar@gnat.com>
15589 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15590 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
15591 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
15592 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
15593 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
15595 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
15596 deal with problem of inefficient slices on machines with strict
15597 alignment, when the slice is a component of a composite.
15599 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
15600 machines, we need the check there as well.
15602 2004-06-28 Ed Schonberg <schonberg@gnat.com>
15604 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
15605 determine safe copying direction for overlapping slice assignments
15606 when component is controlled.
15608 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
15609 formal derived type in the actual for a formal package are visible in
15610 the enclosing instance.
15612 2004-06-28 Ed Schonberg <schonberg@gnat.com>
15615 * sem_util.adb (Trace_Components): Diagnose properly an illegal
15616 circularity involving a private type whose completion includes a
15617 self-referential component.
15618 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
15619 renaming or an instantiation from an implicit derived operation.
15621 2004-06-28 Pascal Obry <obry@gnat.com>
15623 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
15625 (Library_File_Name_For): Idem.
15627 2004-06-28 Matthew Gingell <gingell@gnat.com>
15629 * g-traceb.ads: Add explanatory note on the format of addresses
15630 expected by addr2line.
15632 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
15634 * Makefile.in: Force debugging information on s-tasdeb.adb,
15635 a-except.adb and s-assert.adb needed by the debugger.
15637 2004-06-28 Vincent Celier <celier@gnat.com>
15639 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
15643 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
15645 * prj.adb: Minor reformatting
15646 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
15648 * prj.ads: Comment updates
15650 (Project_Data): Change Flag1 to Need_To_Build_Lib.
15651 Remove Flag2: not used.
15653 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
15656 * gnat_ugn.texi: Put a "null;" declaration in one project file example
15658 * gnat_rm.texi: Document Empty declarations "null;".
15660 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
15661 front of the linker options.
15662 (Link_Foreign): Put the global archives and the libraries in front of
15663 the linker options.
15665 2004-06-28 Javier Miranda <miranda@gnat.com>
15667 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
15668 (RTU_Loaded): Code cleanup
15669 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
15670 withed predefined units.
15672 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
15673 explicitly withed predefined units.
15674 Fix typo in comment
15676 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
15677 explicitly withed predefined units.
15679 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15681 * ada-tree.def (DECL_STMT): Deleted.
15682 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
15683 (DECL_STMT_VAR): Deleted.
15684 * decl.c: add_decl_stmt now add_decl_expr.
15685 * gigi.h: Likewise.
15686 * trans.c: Likewise.
15687 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
15688 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
15689 (add_stmt): Only handle padded type here.
15690 (add_stmt_with_node): Allow gnat_node to not be present.
15691 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
15692 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
15693 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
15694 make a SAVE_EXPR for the entire fat pointer.
15695 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
15696 (create_index_type): Make a DECL_EXPR.
15697 (end_subprog_body): Don't call allocate_struct_function here but
15700 2004-06-25 Pascal Obry <obry@gnat.com>
15702 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
15703 Relocatable from Build_Dynamic_Library call.
15705 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
15706 Relocatable are now synonym.
15708 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
15710 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
15711 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
15714 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
15715 Lib_Address and Relocatable.
15716 (Default_DLL_Address): Removed.
15718 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15719 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
15720 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
15721 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
15722 (Default_DLL_Address): Removed.
15724 * mlib-tgt-mingw.adb: Ditto.
15725 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
15727 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
15728 the initial thread stack size.
15730 * a-strmap.ads: Move package L to private part as it is not used in
15731 the spec. Found while reading code.
15733 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
15735 * tracebak.c: Introduce support for a GCC infrastructure based
15736 implementation of __gnat_backtrace.
15738 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
15739 any more. Use accessors instead. This eases maintenance and relaxes
15740 some alignment constraints.
15741 (_GNAT_Exception structure): Remove the Ada specific fields
15742 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
15744 (is_handled_by, __gnat_eh_personality): Replace component references to
15745 exception structure by use of the new accessors.
15747 * init.c (__gnat_initialize): Adjust comments to match the just
15748 reverted meaning of the -static link-time option.
15750 * adaint.c (convert_addresses): Arrange not to define a stub for
15751 mips-irix any more, as we now want to rely on a real version from a
15752 recent libaddr2line.
15754 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
15755 the personality routine can use them and not have to rely on a C
15756 counterpart of the record anymore. This simplifies maintenance and
15757 relaxes the constraint of having Standard'Maximum_Alignment match
15759 Update comments, and add a section on the common header alignment issue.
15761 2004-06-25 Geert Bosch <bosch@gnat.com>
15763 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
15764 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
15766 2004-06-25 Robert Dewar <dewar@gnat.com>
15768 * gnat_rm.texi: Fix section on component clauses to indicate that the
15769 restriction on byte boundary placement still applies for bit packed
15771 Add comment on stack usage from Initialize_Scalars
15773 * gnat_ugn.texi: Add documentation for -gnatyLnnn
15775 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
15776 limiting nesting level.
15778 * usage.adb: Add line for -gnatyLnnn switch
15780 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
15781 sem_ch13.adb, exp_aggr.adb: Minor reformatting
15783 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
15784 type as well as on the subtype. This corrects a problem in freeze in
15785 setting alignments of atomic types.
15787 * sem_eval.ads: Minor comment typo fixed
15789 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
15790 level. Minor reformatting.
15792 * fname.adb (Is_Predefined_File_Name): Require a letter after the
15793 minus sign. This means that file names like a--b.adb will not be
15794 considered predefined.
15796 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
15797 record Test new flag and give diagnostic for bad component clause.
15798 (Freeze_Entity): Set alignment of array from component alignment in
15799 cases where this is safe to do.
15801 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
15804 * cstand.adb: (Create_Standard): Set alignment of String to 1
15806 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
15808 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
15809 code in the common constrained array cases.
15811 * a-storio.adb: Change implementation to avoid possible alignment
15812 problems on machines requiring strict alignment (data should be moved
15813 as type Buffer, not type Elmt).
15815 * checks.adb (Apply_Array_Size_Check): Improve these checks by
15816 killing the overflow checks which we really do not need (64-bits is
15819 2004-06-25 Vincent Celier <celier@gnat.com>
15821 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
15822 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
15823 inconditionally for the main project.
15824 (Recursive_Add_Archives.Add_Archive_Path): New procedure
15825 (Link_Executables.Check_Time_Stamps): New procedure
15826 (Link_Executables.Link_Foreign): New procedure
15827 Changes made to reduce nesting level of this package
15828 (Check): New procedure
15829 (Add_Switches): When not in quiet output, check that a switch is not
15830 the concatenation of several valid switches. If it is, issue a warning.
15831 (Build_Global_Archive): If the global archive is rebuilt, linking need
15833 (Compile_Sources): Rebuilding a library archive does not imply
15834 rebuilding the global archive.
15835 (Build_Global_Archive): New procedure
15836 (Build_Library): New name for Build_Archive, now only for library
15838 (Check_Archive_Builder): New procedure
15839 (Create_Global_Archive_Dependency_File): New procedure
15840 (Gprmake): Call Build_Global_Archive before linking
15841 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
15843 (Scan_Arg): Display the Copyright notice when -v is used
15845 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
15848 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
15850 Add new GNAT LIST qualifier /FILES=
15851 Added qualifier /DIRECTORY= to GNAT METRIC
15852 Added qualifier /FILES= to GNAT METRIC
15853 Added qualifier /FILES to GNAT PRETTY
15855 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
15856 to take into account both versions of the switch.
15858 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
15859 always be the last switch to the gcc driver. Disable switch storing so
15860 that switches automatically added by the gcc driver are not put in the
15863 * prj.adb (Project_Empty): Take into account changes in components of
15866 * prj.ads (Languages_Processed): New enumaration value All_Languages.
15868 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
15869 used. Split Boolean component Ada_Sources_Present in two Boolean
15870 components Ada_Sources_Present and Other_Sources_Present.
15873 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
15874 instead of Sources_Present.
15875 (Set_Ada_Paths.Add.Recursive_Add): Ditto
15877 * prj-nmsc.adb: Minor reformatting
15878 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
15879 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
15880 Check_Ada_Naming_Scheme.
15881 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
15884 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
15886 Make sure that all cycles where there is at least one "limited with"
15888 (Parse_Single_Project): New Boolean parameter In_Limited
15890 * prj-proc.adb (Recursive_Check): When Process_Languages is
15891 All_Languages, call first Prj.Nmsc.Ada_Check, then
15892 Prj.Nmsc.Other_Languages_Check.
15894 * prj-proc.adb (Process): Use Ada_Sources_Present or
15895 Other_Sources_Present (instead of Sources_Present) depending on
15898 * lang-specs.h: Keep -g and -m switches in the same order, and as the
15901 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
15902 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
15904 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
15907 * lib.ads (Disable_Switch_Storing): New procedure.
15909 * make.adb: Modifications to reduce nesting level of this package.
15910 (Check_Standard_Library): New procedure
15911 (Gnatmake.Check_Mains): New procedure
15912 (Gnatmake.Create_Binder_Mapping_File): New procedure
15913 (Compile_Sources.Compile): Add switch -gnatez as the last option
15914 (Display): Never display -gnatez
15916 * Makefile.generic:
15917 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
15919 * gnatcmd.adb (Check_Project): New function
15920 (Process_Link): New procedure to reduce nesting depth
15921 (Check_Files): New procedure to reduce the nesting depth.
15922 For GNAT METRIC, include the inherited sources in extending projects.
15923 (GNATCmd): When GNAT LS is invoked with a project file and no files,
15924 add the list of files from the sources of the project file. If this list
15925 is too long, put it in a temp text files and use switch -files=
15926 (Delete_Temp_Config_Files): Delete the temp text file that contains
15927 a list of source for gnatpp or gnatmetric, if one has been created.
15928 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
15929 in the project file is too large, create a temporary text file that
15930 list them and pass it to the tool with "-files=<temp text file>".
15931 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
15933 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
15934 generated file is in not in Ada.
15936 * gnatls.adb: Remove all parameters And_Save that are no longer used.
15937 (Scan_Ls_Arg): Add processing for -files=
15938 (Usage): Add line for -files=
15940 * g-os_lib.adb (On_Windows): New global constant Boolean flag
15941 (Normalize_Pathname): When on Windows and the path starts with a
15942 directory separator, make sure that the resulting path will start with
15945 * clean.adb (Clean_Archive): New procedure
15946 (Clean_Project): When there is non-Ada code, delete the global archive,
15947 the archive dependency files, the object files and their dependency
15948 files, if they exist.
15949 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
15951 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
15953 * sinfo.ads: Fix typo in comment.
15955 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
15956 the TSS for remote access-to-subprogram types, since these TSS are
15957 always present once the type has been analyzed.
15958 (RAS_E_Dereference): Same.
15960 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
15961 reference raises Bad_Attribute, mark the reference as analyzed so the
15962 node (and any children resulting from rewrites that could have occurred
15963 during the analysis that ultimately failed) is not analyzed again.
15965 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
15967 * exp_dist.adb: Minor comment fix.
15969 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
15970 type is an anonymous access type, no unchecked deallocation of the
15971 allocated object can occur. If the object is controlled, attach it with
15972 a count of 1. This allows attachment to the Global_Final_List, if
15973 no other relevant list is available.
15974 (Get_Allocator_Final_List): For an anonymous access type that is
15975 the type of a discriminant or record component, the corresponding
15976 finalisation list is the one of the scope of the type.
15978 2004-06-25 Ed Schonberg <schonberg@gnat.com>
15980 * sem_ch3.adb (Replace_Type): When computing the signature of an
15981 inherited subprogram, use the first subtype if the derived type
15982 declaration has no constraint.
15984 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
15985 before applying previous optimization. Minor code cleanup.
15987 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
15988 placed at the beginning of an unpacked record without explicit
15989 alignment, a slice of it will be aligned and does not need a copy when
15992 2004-06-25 Ed Schonberg <schonberg@gnat.com>
15996 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
15997 reference is written with expressions mimicking parameters.
15999 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
16002 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
16003 STEP 2a. The constraints of a full type declaration of a derived record
16004 type are checked for conformance with those declared in the
16005 corresponding private extension declaration. The message
16006 "not conformant with previous declaration" is emitted if an error is
16009 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
16011 * g-traceb.ads: Document the need for -E binder switch in the spec.
16013 * g-trasym.ads: Document the need for -E binder switch in the spec.
16015 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
16017 * sem_prag.adb: Add handling of pragma Detect_Blocking.
16019 * snames.h, snames.ads, snames.adb: Add entry for pragma
16022 * s-rident.ads: Change reference to pragma Detect_Blocking.
16024 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
16027 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
16028 to indicate whether pragma Detect_Blocking is active.
16030 * par-prag.adb: Add entry for pragma Detect_Blocking.
16032 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
16033 of not handling WITH.
16034 Note that this replaces the previous update which was incorrect.
16036 2004-06-25 Javier Miranda <miranda@gnat.com>
16038 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
16039 use-clauses to have a clean environment.
16041 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
16042 the installation of the use-clauses to stablish a clean environment in
16043 case of compilation of a separate unit; otherwise the call to
16044 use_one_package is protected by the barrier Applicable_Use.
16046 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
16047 the installation of the use-clauses to stablish a clean environment in
16048 case of compilation of a separate unit.
16049 (End_Use_Clauses): Minor comment cleanup.
16051 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
16053 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
16055 2004-06-23 Richard Henderson <rth@redhat.com>
16057 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
16059 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16061 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
16062 now bool instead of int.
16063 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
16064 * trans.c (gnu_switch_label_stack): New function.
16065 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
16066 elaboration of renamed entity returns.
16067 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
16068 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
16069 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
16070 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
16071 DECL_SIZE_UNIT and simplify variable-sized case.
16072 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
16073 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
16074 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
16075 (build_unit_elab): Disable for now.
16076 * utils.c (mark_visited): New function.
16077 (pushdecl): Walk tree to call it for global decl.
16078 (update_pointer_to): Update all variants of pointer and ref types.
16079 Add arg to COMPONENT_REF.
16080 (convert): Likewise.
16081 Move check for converting between variants lower down.
16082 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
16083 (build_allocator): Don't force type of MODIFY_EXPR.
16084 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
16085 put_var_into_stack.
16087 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16089 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
16090 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
16091 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
16093 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
16094 all callers changed.
16095 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
16096 the way that EXIT_STMT finds the loop label.
16097 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
16098 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
16099 (add_stmt): Use annotate_with_locus insted of setting directly.
16100 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
16101 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
16102 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
16103 (build_vms_descriptor): Add extra args to ARRAY_REF.
16104 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
16105 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
16107 (build_binary_op): Don't make explicit CONVERT_EXPR.
16108 Add extra rgs to ARRAY_REF.
16110 2004-06-14 Pascal Obry <obry@gnat.com>
16112 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
16113 Windows. Fix minor typo.
16115 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
16116 which is now supported on Windows. With this implementation using the
16117 Library Project feature is no different on Windows than on UNIX.
16119 2004-06-14 Vincent Celier <celier@gnat.com>
16121 * makegpr.adb (Compile_Sources): Nothing to do when there are no
16124 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
16126 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
16127 found, show the project name and the path of the previously parsed
16130 2004-06-14 Ed Schonberg <schonberg@gnat.com>
16132 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
16133 array, avoid copying the actual before the call.
16135 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
16137 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
16138 Instead, allocate memory on worst-case alignment assumptions, and then
16139 return an aligned address within the allocated zone.
16141 2004-06-14 Robert Dewar <dewar@gnat.com>
16143 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
16144 elab entities in predefined units in No_Run_Time_Mode.
16145 (Gen_Adainit_C): Same fix
16146 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
16147 units in No_Run_Time_Mode
16148 (Gen_Elab_Calls_C): Same fix
16150 * symbols-vms-alpha.adb: Minor reformatting
16152 * g-debpoo.ads: Minor reformatting
16154 * lib.adb (In_Same_Extended_Unit): Version working on node id's
16156 * lib.ads (In_Same_Extended_Unit): Version working on node id's
16158 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
16161 * make.adb: Minor reformatting
16163 * par-ch12.adb: Minor reformatting
16165 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
16167 * prj-strt.adb: Minor reformatting
16169 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
16172 * sem_attr.adb: Minor reformatting
16174 * sem_ch7.adb: Minor reformatting
16176 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
16177 for type in the same unit as the object declaration.
16179 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
16180 static string expressions and not just string literals.
16182 (Set_Warning): Reset restriction warning flag for restriction pragma
16183 Implement pragma Profile_Warnings
16184 Implement pragma Profile (Restricted)
16185 Give obolescent messages for old restrictions and pragmas
16187 * snames.h, snames.ads, snames.adb: Add new entry for pragma
16190 * s-rident.ads: Add declarations for restrictions required by profile
16191 Restricted and profile Ravenscar.
16193 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
16195 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
16196 configuration pragmas.
16198 2004-06-11 Vincent Celier <celier@gnat.com>
16200 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
16201 gnatsym, when symbol policy is Restricted.
16203 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
16204 gnatsym, when symbol policy is Restricted.
16206 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
16207 read the symbol file.
16208 (Finalize): Fail in symbol policy Restricted if a symbol in the original
16209 symbol file is not in the object files. Do not create a new symbol file
16210 when symbol policy is Restricted.
16212 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
16215 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
16217 (Usage): Line for new switch -R
16219 * make.adb (Initialize): When the platform is not VMS, add the
16220 directory where gnatmake is invoked in the front of the path, if
16221 gnatmake is invoked with directory information. Change the Scan_Args
16222 while loop to a for loop.
16223 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
16224 if Depth is equal or greater than the proposed depth, there is nothing
16226 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
16229 * prj.ads: Add new symbol policy Restricted.
16231 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
16232 with the new parameters Check_All_Labels and Case_Location.
16234 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
16235 (Library_Symbol_File needs to be defined).
16237 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
16238 and Case_Location If Check_All_Labels is True, check that all values of
16239 the string type are used, and output warning(s) if they are not.
16241 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
16244 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
16246 * gnat_ugn.texi: Update documentation about the library directory in
16249 * makegpr.adb (Display_Command): In verbose mode, also display the
16250 value of the CPATH env var, when the compiler is gcc.
16251 (Initialize): Change the Scan_Args while loop to a for loop
16252 (Compile_Individual_Sources): Change directory to object directory
16253 before compilations.
16255 * symbols.ads: New symbol policy Restricted.
16257 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
16259 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
16260 is now taken care of internally in the Exception_Propagation package
16261 and does not require clients assistance any more.
16263 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
16264 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
16265 functions. Helpers to maintain a predicate required in the handling of
16266 occurrence transfer between tasks.
16267 This is now handled internally and does not require clients assistance
16268 for the setup/propagate separation anymore.
16269 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
16270 allocation strategy, handle the Setup_And_Not_Propagated predicate and
16273 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
16274 raise_after_setup, now that everything is handled internally within the
16275 setup/propagation engine.
16277 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
16279 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
16280 Add additional conditions for the case of an actual being a simple
16281 name or literal. Improve inlining by preventing the generation
16282 of temporaries with a short lifetime (one use).
16284 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
16287 * einfo.ads: Minor comment updates for Has_Completion and
16288 E_Constant list of flags.
16290 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
16291 and constant redeclarations now set the Has_Completion flag of their
16292 defining identifiers.
16294 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
16295 Inspect_Deferred_Constant_Completion.
16296 Used to detect private deferred constants that have not been completed
16297 either by a constant redeclaration or pragma Import. Emits error message
16298 "constant declaration requires initialization expression".
16300 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
16301 completes a deferred constant.
16303 2004-06-11 Geert Bosch <bosch@gnat.com>
16305 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
16307 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
16308 calculating exponent for scaling denormal numbers.
16309 (Leading_Part): Properly raise Constraint_Error for zero or negative
16311 (Remainder): Properly raise Constraint_Error for zero divisor.
16313 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
16315 * sem_util.adb: Minor reformatting.
16317 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
16318 dereference when accessing the entry parameter record.
16319 (Check_Array_Type): Always check for possible implicit dereference.
16320 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
16321 Abort if a pointer is still present (denoting that an implicit
16322 dereference was left in the tree by the front-end).
16324 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
16325 dereference when accessing the entry parameter record.
16326 (Check_Array_Type): Always check for possible implicit dereference.
16327 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
16328 Abort if a pointer is still present (denoting that an implicit
16329 dereference was left in the tree by the front-end).
16331 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
16333 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
16334 message, like the compiler itself does. Easier to parse the output.
16336 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
16338 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
16339 be base names, and not includes directories.
16341 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
16343 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
16344 so that dependencies are properly taken into account by make.
16346 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
16349 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
16350 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
16352 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
16354 * Makefile.in (install-gnatlib): install target-specific run-time files.
16356 * Make-lang.in: Remove obsolete targets.
16358 2004-06-11 Ed Schonberg <schonberg@gnat.com>
16360 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
16361 specification, to catch misuses of program unit names.
16363 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
16364 superfluous conversions in an instance.
16366 2004-06-11 Ed Schonberg <schonberg@gnat.com>
16369 * sem_ch12.adb (Save_References): If operator node has been folded to
16370 enumeration literal, associated_node must be discarded.
16372 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
16374 * s-stchop-vxworks.adb: Add required pragma Convention to
16375 Task_Descriptor because it is updated by a C function.
16377 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
16380 * Makefile.in: Remove target specific SO_OPT on IRIX
16382 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16384 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
16385 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
16386 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
16387 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
16388 (STMT_STMT, USE_STMT): New statement codes.
16389 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
16390 * ada-tree.h: Reflect above changes.
16391 (struct tree_loop_id): Deleted.
16392 (union lang_tree_node, struct lang_decl, struct lang_type):
16393 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
16394 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
16395 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
16396 (IS_ADA_STMT): New macro.
16397 * decl.c (annotate_decl_with_node): New function.
16398 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
16399 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
16400 Call add_stmt_with_node to do needed assignments.
16401 Add call to update setjmp buffer directly, not via EXPR_STMT.
16402 (maybe_variable): Argment GNAT_NODE deleted.
16403 * gigi.h (maybe_variable): Likewise.
16404 (make_transform, add_stmt_with_node, set_block_for_group): New.
16405 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
16406 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
16407 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
16408 (set_lineno, set_lineno_from_sloc): Likewise.
16409 (record_code_position, insert_code_for): Likewise.
16410 (gnat_poplevel): Now returns void.
16411 (end_subprog_body): Now takes argument.
16412 * misc.c (cgraph.h, tree-inline.h): New includes.
16413 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
16414 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
16415 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
16416 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
16417 (gnat_parse_file): Don't set immediate_size_expand.
16418 Call cgraph functions.
16419 (gnat_expand_expr): Remove most cases.
16420 (record_code_position, insert_code_for): Remove from here.
16421 * trans.c (toplev.h, tree-gimple.h): Now included.
16422 (discard_file_names): Deleted.
16423 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
16424 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
16425 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
16426 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
16427 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
16428 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
16429 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
16430 (set_block_for_group, add_stmt_list): Likewise.
16431 (start_stmt_group): Renamed from start_block_stmt.
16432 (end_stmt_group): Likewise, from end_block_stmt.
16433 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
16434 (gigi): Don't set discard_file_names or call set_lineno.
16435 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
16436 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
16437 Numerous changes throughout to reflect new names and complete
16438 function-at-a-time implementation.
16439 (gnat_expand_stmt): Delete or comment out all cases.
16440 (process_inlined_subprograms): Use add_stmt.
16441 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
16442 call set_lineno; also remove unneeded block handling.
16443 (process_type): Remove unneeded block handling.
16444 (build_unit_elab): Remove calls to deleted functions.
16445 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
16446 (tree-dump.h): Likewise.
16447 (struct ada_binding_level): Add field jmpbuf_decl.
16448 (gnat_define_builtin, gnat_install_builtins): New.
16449 (gnat_gimplify_function, gnat_finalize): Likewise.
16450 (gnat_poplevel): No longer return BLOCK, set it instead.
16451 Remove code dealing with nested functions.
16452 (gnat_init_decl_processing): Also set size_type_node.
16453 Call gnat_install_builtins.
16454 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
16455 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
16456 Remove special-case for "main".
16457 (end_subprog_body): Add arg and rework for tree-ssa.
16458 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
16459 Add case for BOOLEAN_TYPE.
16460 * utils2.c (rtl.h): Now include.
16461 (build_call_raise): Test Debug_Flag_NN directly.
16462 (build_call_alloc_dealloc): Don't use local stack allocation for now.
16463 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
16464 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
16466 2004-06-07 Robert Dewar <dewar@gnat.com>
16468 * a-direct.ads, einfo.ads: Minor comment updates
16470 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
16471 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16472 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
16473 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
16474 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
16476 * s-interr-sigaction.adb: Remove unreferenced variable
16477 (Attached_Interrupts). Minor reformatting.
16478 Avoid use of variable I (replace by J).
16480 * par-ch10.adb: Fix text of one error message
16482 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
16483 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
16484 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
16485 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
16486 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
16487 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
16488 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
16489 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
16490 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
16491 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
16492 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
16495 2004-06-07 Doug Rupp <rupp@gnat.com>
16497 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
16499 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
16501 * mlib-tgt-vms-ia64.adb: New file.
16503 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
16504 Add mlib-tgt-vms-ia64.adb
16505 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
16506 Move to alpha specific ifeq section.
16507 Add VMS specific versions of symbols.adb
16508 Renaming of 5q vms files.
16510 * 5qsystem.ads renamed to system-vms_64.ads.
16512 2004-06-07 Vincent Celier <celier@gnat.com>
16514 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
16515 explain that when a time of day corresponding to the non existing hour
16516 on the day switching to DST is specified, Split may return a different
16519 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
16522 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
16523 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
16525 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
16527 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
16528 the linking options.
16529 (Build_Library.Check_Libs): On VMS, if there is a dependency on
16530 g-trasym.ads, set Gtrasymobj_Needed to True.
16532 * prj-attr.adb: Add new package Metrics for gnatmetric
16534 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
16535 canonical case to take into account files with upper case characters on
16537 (Ada_Check): Load the reference symbol file name in the name buffer to
16538 check it, not the symbol file name.
16540 * snames.ads, snames.adb: Add standard name Metrics (name of project
16541 file package for gnatmetric).
16543 * vms_conv.ads: Add Metric to Comment_Type
16545 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
16547 * vms_data.ads: Add qualifiers for GNAT METRIC
16549 * makegpr.adb (Link_Executables): Take into account the switches
16550 specified in package Linker of the main project.
16552 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
16554 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
16555 the index of the last element is Units.Last, not Units.Table'Last
16556 (which is usually not a valid index within the actually allocated
16557 storage for the table).
16559 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
16560 determines whether to generate a call to a checked storage pool
16561 Dereference action.
16562 Generate such a call only for a dereference that either comes from
16563 source, or is the result of rewriting a dereference that comes from
16566 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
16568 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
16570 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
16572 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
16573 file level, elaborate the stride for inner dimensions in alignment
16576 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
16579 2004-06-07 Javier Miranda <miranda@gnat.com>
16581 * exp_ch6.adb: Correct wrong modification in previous patch
16583 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
16585 * g-trasym.ads: Corrected comment to properly reflect level of support
16588 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
16590 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
16591 includes case of a variable referenced on the left hand side of an
16592 assignment, therefore remove redundant code. Variables and prefixes of
16593 indexed or selected components are now marked as referenced on left
16594 hand side. Warnings are now properly emitted when variables or prefixes
16595 are assigned but not read.
16597 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
16598 left hand side referenced variables. Private access types do not
16599 produce the warning "variable ... is assigned but never read".
16600 Add also additional checks to left hand side referenced variables.
16601 Aliased, renamed objects and access types do not produce the warning
16602 "variable ... is assigned but never read" since other entities may read
16603 the memory location.
16605 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
16607 * Makefile.in: In the powerpc/vxworks-specific section, restore
16608 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
16611 2004-06-07 Ed Schonberg <schonberg@gnat.com>
16613 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
16614 predefined operators.
16615 Removes spurious type errors from g-trasym-vms.adb.
16617 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
16618 distinct from the operator appearing in the source, call appropriate
16619 routine to insert conversions when needed, and complete resolution of
16621 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
16622 interpretations for rewritten right operand.
16623 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
16624 the other operand is overloaded and the context is a type conversion.
16626 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16628 * ada-tree.def (BLOCK_STMT): Now has two operands.
16631 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
16633 * gigi.h: (gnat_poplevel): Now returns a tree.
16635 * trans.c (end_block_stmt): Add arg; all callers changed.
16636 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
16637 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
16638 (add_stmt): Set TREE_TYPE.
16639 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
16640 (gnat_expand_stmt, case BREAK_STMT): New case.
16642 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
16644 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
16646 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
16647 procedure Set_Stack_Size that is not needed.
16649 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
16651 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
16652 used for gnatpp input file and for the files upon which it depends
16654 2004-06-07 Ben Brosgol <brosgol@gnat.com>
16656 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
16658 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
16660 * gnatvsn.ads: Bump version numbers appropriately.
16661 Add new build type.
16663 2004-06-07 Pascal Obry <obry@gnat.com>
16665 * gnat_ugn.texi: Improve comments about imported names and link names
16666 on Windows. Add a note about the requirement to use -k gnatdll's option
16667 when working with a DLL which has stripped stdcall symbols (no @nn
16670 2004-05-27 Vincent Celier <celier@gnat.com>
16672 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
16673 COMMENTS_LAYOUT=UNTOUCHED
16675 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
16676 symbols-vms-alpha.adb
16678 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
16680 * sem.ads: Clarify documentation on checks suppression.
16682 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
16684 2004-05-27 Ed Schonberg <schonberg@gnat.com>
16686 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
16687 the case of multiple derivations.
16688 (Is_Object_Reference): For a selected component, verify that the prefix
16689 is itself an object and not a value.
16691 * sem_ch12.adb (Same_Instantiated_Constant): New name for
16692 Same_Instantiated_Entity.
16693 (Same_Instantiated_Variable): Subsidiary to
16694 Check_Formal_Package_Instance, to recognize actuals for in-out generic
16695 formals that are obtained from a previous formal package.
16696 (Instantiate_Subprogram_Body): Emit proper error when
16697 generating code and the proper body of a stub is missing.
16699 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
16700 has a universal interpretation, do the disambiguation here.
16702 * exp_ch4.adb (Expand_N_Type_Conversion,
16703 Expand_N_Unchecked_Type_Conversion): Special handling when target type
16704 is Address, to avoid typing anomalies when Address is a visible integer
16707 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
16708 to determine whether a subprogram should not be marked Pure, even when
16709 declared in a pure package.
16711 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
16713 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
16715 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
16716 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
16717 Update the documentation about the Ravenscar profile, following the
16718 definition found in AI-249.
16720 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
16721 setting the Profile (Ravenscar). This must be done in addition to
16722 setting the required restrictions.
16724 * rtsfind.ads: Add the set of operations defined in package
16727 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
16730 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
16732 lang-specs.h: Always require -c or -S and always redirect to /dev/null
16733 if -gnatc or -gnats is passed.
16735 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
16737 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
16738 a significant reference. Warnings are now properly emitted when a
16739 discriminated type is not referenced.
16741 * lib-xref.adb (Generate_Reference): A deferred constant completion,
16742 record representation clause or record type discriminant does not
16743 produce a reference to its corresponding entity. Warnings are now
16744 properly emitted when deferred constants and record types are not
16747 2004-05-27 Geert Bosch <bosch@gnat.com>
16749 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
16750 Fixes ACATS Annex G tests.
16752 2004-05-27 Robert Dewar <dewar@gnat.com>
16754 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
16757 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
16759 * s-interr.adb (Server_Task): Take into account case of early return
16760 from sigwait under e.g. linux.
16762 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
16764 * gnat_ugn.texi: Add description for the new gnatpp options:
16765 -rnb - replace the original source without creating its backup copy
16766 -c0 - do not format comments
16768 2004-05-24 Geert Bosch <bosch@gnat.com>
16770 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
16771 with 192 bits of precision, sufficient to reduce a double-extended
16772 arguments X with a maximum relative error of T'Machine_Epsilon, for X
16773 in -2.0**32 .. 2.0**32.
16774 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
16775 reduction by the processor, which only uses a 68-bit approximation of
16777 (Tan): Always reduce arguments and compute function either using
16778 the processor's fptan instruction, or by dividing sin and cos as needed.
16780 2004-05-24 Doug Rupp <rupp@gnat.com>
16782 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
16783 gcc error on 32/64 bit VMS.
16785 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
16787 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
16788 since this is what we get for stack overflows although not documented
16790 Document the issues which may require adjustments to our signal
16793 2004-05-24 Ed Schonberg <schonberg@gnat.com>
16795 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
16796 enclosing dynamic scope if the instantiation is within a generic unit.
16798 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
16800 * exp_dbug.ads: Fix typo.
16802 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
16803 Rename it to its proper name: system-linux-ia64.ads
16804 (stamp-gnatlib1): Remove extra target specific run time files when
16805 setting up the rts directory.
16807 2004-05-24 Javier Miranda <miranda@gnat.com>
16809 * einfo.ads, einfo.adb (Limited_Views): Removed.
16810 (Limited_View): New attribute that replaces the previous one. It is
16811 now a bona fide package with the limited-view list through the
16812 first_entity and first_private attributes.
16814 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
16815 limited-private-with clause.
16816 (Install_Limited_Withed_Unit): Install the private declarations of a
16817 limited-private-withed package. Update the installation of the shadow
16818 entities according to the new structure (see Build_Limited_Views)
16819 (Build_Limited_Views): Replace the previous implementation of the
16820 limited view by a package entity that references the first shadow
16821 entity plus the first shadow private entity (required for limited-
16822 private-with clause)
16823 (New_Internal_Shadow_Entity): Code cleanup.
16824 (Remove_Limited_With_Clause): Update the implementation to undo the
16825 new work carried out by Build_Limited_Views.
16826 (Build_Chain): Complete documentation.
16827 Replace Ada0Y by Ada 0Y in comments
16830 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
16831 types the level of accessibility depends on the enclosing type
16834 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
16835 entities. Complete documentation of previous change.
16837 2004-05-24 Robert Dewar <dewar@gnat.com>
16839 * namet.adb: Minor reformatting
16840 Avoid use of name I (replace by J)
16841 Minor code restructuring
16843 * sem_ch6.adb: Minor reformatting
16845 * lib-writ.adb: Do not set restriction as active if this is a
16846 Restriction_Warning case.
16848 * sem_prag.adb: Reset restriction warning flag if real pragma
16849 restriction encountered.
16851 * s-htable.adb: Minor reformatting
16852 Change rotate count to 3 in Hash (improves hash for small strings)
16854 * 5qsystem.ads: Add comments for type Address (no literals allowed).
16856 * gnat_ugn.texi: Add new section of documentation "Code Generation
16857 Control", which describes the use of -m switches.
16859 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
16861 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
16862 through the DECL_INITIAL for renamed variables.
16864 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
16866 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
16868 2004-05-19 Joel Brobecker <brobecker@gnat.com>
16870 * exp_dbug.ads: Correct comments concerning handling of overloading,
16871 since we no longer use $ anymore.
16873 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
16875 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
16876 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
16877 with illegal subunits.
16879 2004-05-19 Ed Schonberg <schonberg@gnat.com>
16881 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
16882 body with front-end inlining enabled, check whether an inline pragma
16883 appears immediately after the body and applies to it.
16885 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
16886 enabled and the pragma appears after the body of the subprogram.
16888 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16890 Part of function-at-a-time conversion
16892 * misc.c (adjust_decl_rtl): Deleted.
16893 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
16896 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
16897 (add_decl_stmt, add_stmt, block_has_vars): New functions.
16898 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
16900 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
16901 when making a decl.
16902 (gnat_to_gnu_entity): Likewise.
16903 Use add_stmt to update setjmp buffer.
16904 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
16906 No longer call adjust_decl_rtl.
16907 (DECL_INIT_BY_ASSIGN_P): New macro.
16908 (DECL_STMT_VAR): Likewise.
16910 * trans.c (gigi): Call start_block_stmt to make the outermost
16912 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
16913 Call start_block_stmt and end_block_stmt temporarily.
16914 Use gnat_expand_stmt instead of expand_expr_stmt.
16915 (add_decl_stmt): New function.
16916 (tree_transform): Call it.
16917 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
16918 (end_block_stmt): Set type and NULL_STMT.
16919 (gnat_expand_stmt): Make recursize call instead of calling
16921 (gnat_expand_stmt, case DECL_STMT): New case.
16922 (set_lineno_from_sloc): Do nothing if global.
16923 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
16924 (start_block_stmt, add_stmt, end_block_stmt): New functions.
16925 (build_block_stmt): Call them.
16926 (gnat_to_code): Don't expand NULL_STMT.
16927 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
16929 (tree_transform): Likewise.
16930 (tree_transform, case N_Null_Statement): Return NULL_STMT.
16931 (gnat_expand_stmt, case NULL_STMT): New case.
16932 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
16935 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
16938 * utils.c (create_var_decl): Do not call expand_decl or
16940 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
16941 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
16943 (struct e_stack): Add chain_next to GTY.
16944 (struct binding_level): Deleted.
16945 (struct ada_binding_level): New struct.
16946 (free_block_chain): New.
16947 (global_binding_level, clear_binding_level): Deleted.
16948 (global_bindings_p): Rework to see if no chain.
16949 (kept_level_p, set_block): Deleted.
16950 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
16951 new data structure and work directly on BLOCK node.
16952 (gnat_poplevel): Similarly.
16953 (get_decls): Look at BLOCK_VARS.
16954 (insert_block): Work directly on BLOCK node.
16955 (block_has_var): New function.
16956 (pushdecl): Rework for new binding structures.
16957 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
16959 (build_subprog_body): Likewise.
16960 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
16962 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
16964 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
16965 (DECL_STMT_VAR): Likewise.
16967 2004-05-17 Robert Dewar <dewar@gnat.com>
16969 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
16972 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
16973 of restriction synonyums by using
16974 Restrict.Process_Restriction_Synonyms.
16976 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
16978 * s-restri.ads (Tasking_Allowed): Correct missing comment
16980 * s-rident.ads: Add entries for restriction synonyms
16982 * ali.adb: Fix some problems with badly formatted ALI files that can
16983 result in infinite loops.
16985 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
16986 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
16987 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16988 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
16989 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
16990 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
16991 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
16992 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
16993 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
16994 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
16995 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
16996 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
16997 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
16998 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
16999 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
17000 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
17001 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
17002 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
17003 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
17004 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
17005 to Task_Id (minor cleanup).
17007 2004-05-17 Vincent Celier <celier@gnat.com>
17009 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
17010 directory separator.
17012 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
17013 project being extended, if Languages is not declared in extending
17016 2004-05-17 Javier Miranda <miranda@gnat.com>
17018 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
17019 limited view of a visible sibling.
17021 2004-05-14 Robert Dewar <dewar@gnat.com>
17023 * gnat_ugn.texi: Minor change to -gnatS documentation
17025 * sprint.adb: Remove some instances of Assert (False) and for this
17026 purpose replace them by output of a ??? string.
17028 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
17031 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
17032 flag processing. This was suppressing required dependencies in
17033 No_Run_Time mode and is not needed since the binder does not generate
17034 references for things in libgnat anyway.
17036 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
17039 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
17041 * gnat_ugn.texi: Document AIX-specific issue with initialization of
17044 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
17045 action for the case of an actual parameter in an init proc call.
17047 2004-05-14 Ed Schonberg <schonberg@gnat.com>
17049 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
17050 subtype, check visible entities in base type.
17052 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
17053 actions if the object is a renaming.
17055 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
17056 Check_Formal_Package_Instance, to determine more precisely when the
17057 formal and the actual denote the same entity.
17059 2004-05-14 Javier Miranda <miranda@gnat.com>
17061 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
17063 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
17064 corresponding to a private_with must be removed from visibility; it
17065 will be made visible later, just before we analyze the private part of
17067 (Check_Private_Child_Unit): Allow private_with clauses in public
17069 (Install_Siblings): Make visible the private entities of private-withed
17071 (Install_Withed_Unit): Do not install the private withed unit if we
17072 are compiling a package declaration and the Private_With_OK flag was
17073 not set by the caller. These declarations will be installed later,
17074 just before we analyze the private part of the package.
17076 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
17077 during the evaluation of the expression that initializes the object,
17078 decorate it with the expected type to avoid cascade errors.
17081 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
17082 subprogram we have to install the private_with clauses after its
17083 specification has been analyzed (as documented in AI-262.TXT).
17085 * sem_ch8.adb (Has_Private_With): New function. Determines if the
17086 current compilation unit has a private with on a given entity.
17087 (Find_Direct_Name): Detect the Beaujolais problem described in
17090 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
17091 provides the functionality of the function Is_Ancestor that was
17092 previously available in sem_ch10. It has been renamed to avoid
17095 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
17097 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17099 * utils.c (build_vms_descriptor): Use SImode pointers.
17101 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
17103 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
17105 2004-05-14 GNAT Script <nobody@gnat.com>
17107 * Make-lang.in: Makefile automatically updated
17109 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
17111 Renaming of target specific files for clarity
17113 * Makefile.in: Rename GNAT target specific files.
17115 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
17116 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
17117 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
17118 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
17119 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
17120 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
17121 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
17122 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
17123 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
17124 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
17125 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
17126 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
17127 51osinte.adb, 51osinte.ads, 51system.ads,
17128 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
17129 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
17130 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
17131 56tpopsp.adb, 57system.ads, 58system.ads,
17132 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
17133 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
17134 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
17135 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
17136 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
17137 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
17138 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
17139 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
17140 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
17141 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
17142 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
17143 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
17144 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
17145 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
17146 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
17147 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
17148 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
17149 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
17150 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
17151 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
17152 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
17153 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
17154 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
17155 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
17156 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
17157 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
17158 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
17159 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
17160 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
17161 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
17162 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
17163 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
17164 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
17165 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
17166 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
17167 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
17168 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
17169 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
17170 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
17171 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
17173 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
17174 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
17175 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
17176 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
17177 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
17178 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
17179 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
17180 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
17181 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
17182 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
17183 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
17184 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
17185 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
17186 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
17187 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
17188 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
17189 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
17190 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
17191 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
17192 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
17193 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
17194 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
17195 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
17196 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
17197 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
17198 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
17199 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
17200 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
17201 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
17202 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
17203 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
17204 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
17205 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
17206 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
17207 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
17208 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
17209 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
17210 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
17211 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
17212 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
17213 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
17214 s-osinte-vms.ads, s-osinte-vxworks.adb,
17215 s-osinte-vxworks.ads, s-osprim-mingw.adb,
17216 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
17217 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
17218 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
17219 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
17220 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
17221 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
17222 s-stchop-vxworks.adb, s-taprop-dummy.adb,
17223 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
17224 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
17225 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
17226 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
17227 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
17228 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
17229 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
17230 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
17231 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
17232 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
17233 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
17234 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
17235 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
17236 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
17237 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
17238 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
17239 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
17240 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
17241 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
17242 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
17243 system-irix-o32.ads, system-linux-x86_64.ads,
17244 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
17245 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
17246 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
17247 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
17248 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
17249 system-vxworks-mips.ads, system-vxworks-ppc.ads,
17250 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
17253 2004-05-13 Zack Weinberg <zack@codesourcery.com>
17255 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
17257 2004-05-13 Diego Novillo <dnovillo@redhat.com>
17259 Merge from tree-ssa-20020619-branch.
17261 * config-lang.in (boot_language, build_by_default): Set
17263 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
17264 (max_size): Add static chain op for call_expr.
17266 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
17269 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
17271 2004-05-11 Roger Sayle <roger@eyesopen.com>
17273 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
17276 2004-05-10 Doug Rupp <rupp@gnat.com>
17278 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
17281 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
17283 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
17285 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
17286 Fixes undefined symbols in IA64 gnatlib.
17288 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
17290 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
17291 Short_Address). This will be moved to system.auxdec.
17293 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
17295 * sem_util.adb: Replace test for presence of a node that is always
17296 present with a call to Discard_Node.
17298 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
17299 Analyze on the library unit node after generation of distribution stub
17300 constructs. The call was a no-op because Unit_Node has already been
17301 Analyzed, and the tree fragments for the distribution stubs are
17302 analyzed as they are inserted in Exp_Dist.
17303 Update comment regarding to distribution stubs to reflect that we
17304 do not generate stub in separate files anymore.
17306 * einfo.ads: Clarify the fact that a tagged private type has the
17307 E_Record_Type_With_Private Ekind.
17309 * erroutc.adb: Minor reformatting
17311 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
17312 values if line length is increased using -gnatyM (noticed during code
17315 * eval_fat.adb: Minor reformatting
17316 Put spaces around exponentiation operator
17318 2004-05-10 Ed Schonberg <schonberg@gnat.com>
17321 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
17322 has been rewritten as an explicit dereference, retrieve type of
17323 original node to check for possibly unconstrained record type.
17325 2004-05-10 Ed Schonberg <schonberg@gnat.com>
17327 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
17328 overriding, use the operation of the parent unconditionally.
17330 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
17331 operation when either operand is a literal, to avoid further
17334 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
17335 overridden by a previous explicit declaration, mark the previous entity
17338 * sem_disp.adb (Check_Dispatching_Operation): New predicate
17339 Is_Visibly_Controlled, to determine whether a declaration of a
17340 primitive control operation for a derived type overrides an inherited
17341 one. Add warning if the explicit declaration does not override.
17343 2004-05-10 Vincent Celier <celier@gnat.com>
17345 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
17346 some cases when the sources are no longer present.
17348 * make.adb (Collect_Arguments): Fail if an external source, not part
17349 of any project need to be compiled, when switch -x has not been
17352 * makeusg.adb: Document new switch -x
17354 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
17355 defaulted to False.
17357 * switch-m.adb (Scan_Make_Switches): New switch -x
17359 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
17360 gnatmake switch -x.
17362 * gnat_ugn.texi: Document new gnatmake switch -x
17364 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
17366 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
17368 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
17369 (process_attributes): Likewise.
17371 2004-05-10 Joel Brobecker <brobecker@gnat.com>
17373 * s-inmaop.ads: Fix spelling mistake in one of the comments.
17375 2004-05-10 Robert Dewar <dewar@gnat.com>
17377 * gnat_ugn.texi: Document that for config pragma files, the maximum
17378 line length is always 32767.
17380 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
17381 literals is now allowed.
17383 * gnat-style.texi: Remove statement about splitting long lines before
17384 an operator rather than after, since we do not follow this rule at all.
17385 Clarify rule (really lack of rule) for spaces around exponentiation
17387 * sem_elim.adb: Allow concatenation of string literals as well as a
17388 single string literal for pragma arguments.
17390 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
17392 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
17393 written for append case.
17395 * frontend.adb: Changes to avoid checking max line length in config
17398 * g-os_lib.ads: Minor reformatting
17400 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
17401 wrong in any case. Instead use standard value. Noticed during code
17404 * opt.ads (Max_Line_Length): New field, used to implement removal of
17405 limitation on length of lines when scanning config pragma files.
17407 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
17408 makeutl.ads, makeutl.adb: Minor reformatting
17410 * scn.adb: Do not check line length while scanning config pragma files
17411 Do not check line length while scanning out license information
17413 * scng.adb: Changes to avoid line length checks while parsing config
17416 2004-05-10 GNAT Script <nobody@gnat.com>
17418 * Make-lang.in: Makefile automatically updated
17420 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
17422 * osint.adb (Find_Program_Name): Fix handling of VMS version
17425 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
17427 * g-os_lib.ads (Invalid_Time): New constant
17429 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
17430 return OS_Time instead of time_t to match what is imported by Ada.
17431 Now return -1 if the file doesn't exist, instead of a random value
17433 2004-05-05 Robert Dewar <dewar@gnat.com>
17435 * usage.adb: Add line for -gnatR?s switch
17437 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
17439 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
17440 and for Match (Data_First, Data_last)
17442 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
17443 written when we are dealing with multi-unit files.
17445 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
17447 * Makefile.in: Remove unused targets and variables.
17449 2004-05-05 Vincent Celier <celier@gnat.com>
17451 * switch-m.adb: New gnatmake switch -eI
17453 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
17454 of new gnatmake switch -eInnn.
17456 * makegpr.adb: Take into account new parameters Index and Src_Index in
17459 * clean.adb: Implement support for multi-unit sources, including new
17462 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
17465 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
17466 (Extract_From_Q): New out parameter Index
17467 (Mark, Is_Marked): Subprograms moved to Makeutl
17468 (Switches_Of): New parameter Source_Index
17469 (Add_Switch): New parameter Index
17470 (Check): New parameter Source_Index
17471 (Collect_Arguments): New parameter Source_Index
17472 (Collect_Arguments_And_Compile): New parameter Source_Index
17473 (Compile): New parameter Source_Index
17474 Put subprograms in alphabetical order
17475 Add support for multi-source sources, including in project files.
17477 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
17478 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
17481 * makeusg.adb: New gnatmake switch -eInnn
17483 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
17486 * opt.ads (Main_Index): New variable, defaulted to 0.
17488 * osint.ads, osinte.adb (Add_File): New parameter Index
17489 (Current_Source_Index): New function
17491 * prj.adb: Take into account new components Index and Src_Index
17493 * prj.ads (String_Element): New component Index
17494 (Variable_Value): New component Index
17495 (Array_Element): New component Src_Index
17497 * prj-attr.adb: Indicate that optional index may be specified for
17498 attributes Main, Executable, Spec, Body and some of Switches.
17500 * prj-attr.ads (Attribute_Kind): New values for optional indexes
17501 (Attribute_Record): New component Optional_Index
17503 * prj-com.ads (File_Name_Data): New component Index
17505 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
17507 * prj-env.adb (Put): Output optional index
17509 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
17510 attributes Spec and Body.
17512 * prj-nmsc.adb: Process optional indexes
17514 * prj-pp.adb: Ouput "at" for optional indexes
17516 * prj-proc.adb: Take into account optional indexes
17518 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
17519 Optional_Index. For string literal,
17520 process optional index when Optional_Index is True.
17521 (Parse_Expresion): New Boolean parameter Optional_Index
17523 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
17524 (Set_Source_Index_Of): New procedure
17526 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
17529 * prj-util.ads (Executable_Of): New parameter Index
17530 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
17531 New parameter Src_Index, defaulted to 0.
17533 2004-05-05 Ed Schonberg <schonberg@gnat.com>
17536 * sem_ch3.adb (Access_Definition): If this is an access parameter
17537 whose designated type is imported through a limited_with clause, do
17538 not add the enclosing subprogram to the list of private dependents of
17541 2004-05-05 Ed Schonberg <schonberg@gnat.com>
17544 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
17545 a limited_with clause, and the other is its non-limited view.
17547 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
17549 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
17551 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
17552 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
17553 Stand.Boolean_Literals to produce references to entities
17554 Standard_False and Standard_True from compile-time computed boolean
17557 * stand.ads (Boolean_Literals): New variable, provides the entity
17558 values for False and True, for use by the expander.
17560 2004-05-05 Doug Rupp <rupp@gnat.com>
17562 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
17563 5vinmaop.adb: Unchecked convert Short_Address vice Address
17565 * adaint.c, raise.c: Caste CRTL function return value
17566 to avoid gcc error on 32/64 bit IVMS.
17568 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
17571 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
17573 * 5qsystem.ads (Address): Declare as Long_Integer
17574 (Short_Address): Declare as 32 bit subtype of Address
17575 Declare abstract address operations to avoid gratuitous ambiguities.
17577 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
17579 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
17580 instead of the old Boolean_Entry_Barriers.
17581 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
17583 2004-05-05 GNAT Script <nobody@gnat.com>
17585 * Make-lang.in: Makefile automatically updated
17587 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
17589 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
17591 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
17594 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
17595 alone. Replacing object references by literals is inappropriate in a
17596 so low level context.
17598 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
17600 * a-exexpr.adb: Add comments
17602 2004-05-03 Joel Brobecker <brobecker@gnat.com>
17604 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
17605 declare the Ancestor_Tags array in Type_Specific_Data with a small size
17606 without risking a bounds check error when accessing one of its
17608 (Type_Specific_Data): Define Ancestor_Tags as a small array.
17609 This prevents us from hitting a limitation during the debug info
17610 generation when using stabs.
17612 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
17614 This prevents us from hitting a limitation during the debug info
17615 generation when using stabs.
17617 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
17619 lang-specs.h: Remove -gnatz* from specs.
17621 2004-05-03 Vincent Celier <celier@gnat.com>
17623 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
17625 * Make-lang.in, Makefile.in: Add gprmake
17627 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
17629 * sem_aggr.adb: Fix typo in comment.
17631 2004-05-03 Robert Dewar <dewar@gnat.com>
17633 * make.adb: Minor reformatting
17635 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
17637 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
17638 so that it works when address is not a private type.
17640 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
17641 properly with rewritten unchecked conversions. This prevents
17642 order-of-elaboration issues that can otherwise arise.
17643 (Minimum_Size): Don't check size of access types under VMS
17645 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
17646 interpretations of integer literals as type System.Address.
17648 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
17649 (Is_Descendent_Of): New function
17651 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
17653 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
17654 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
17655 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
17657 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
17658 of the old Max_Entry_Queue_Depth.
17660 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
17661 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
17662 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
17664 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
17665 New entry for proper handling of Max_Entry_Queue_Depth.
17666 New entry for proper handling of No_Dynamic_Interrupts.
17668 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
17669 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
17670 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
17671 the GNAT specific restriction Max_Entry_Queue_Depth.
17672 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
17673 the GNAT specific restriction No_Dynamic_Interrupts.
17675 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
17676 instead of the old Boolean_Entry_Barriers.
17677 Use the new restriction No_Dynamic_Attachment instead of the old
17678 No_Dynamic_Interrupts.
17680 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
17681 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
17683 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
17684 of the old Max_Entry_Queue_Depth.
17686 2004-05-03 GNAT Script <nobody@gnat.com>
17688 * Make-lang.in: Makefile automatically updated
17690 2004-04-29 Ed Schonberg <schonberg@gnat.com>
17692 * checks.adb (Enable_Range_Check): If the prefix of an index component
17693 is an access to an unconstrained array, perform check unconditionally.
17695 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17697 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
17700 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
17702 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
17703 alternate stack setting. There was no support for the tasking cases
17704 and the changes eventually caused a number of side-effect failures in
17705 the non-tasking case too.
17707 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
17709 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
17712 2004-04-29 Vincent Celier <celier@gnat.com>
17714 * make.adb (Gnatmake): Increase max size of argument array for
17715 gnatbind for the potential addition of -F.
17716 If there are Stand-Alone Library projects, invoke gnatbind with -F to
17717 be sure that elaboration flags will be checked.
17719 * switch-c.adb: Correct call to Scan_Pos for -gnateI
17721 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
17723 * sem_warn.adb (Check_References): Move '<access-variable> may be
17724 null' warning out of under Warn_On_No_Value_Assigned.
17726 2004-04-29 Ed Falis <falis@gnat.com>
17728 * gnat_ugn.texi: Fixed texi error
17730 2004-04-29 Robert Dewar <dewar@gnat.com>
17732 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
17733 abstract operations if they come from predefined files.
17735 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
17738 * s-addope.adb: Correct obvious error in mod function
17740 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
17742 * Makefile.in: Add target pairs for powerpc darwin*
17745 * a-intnam-darwin.ads, s-osinte-darwin.adb,
17746 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
17748 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
17750 * Makefile.in: Add target macro definitions for s390*-linux*.
17751 * system-linux-s390.ads: New file.
17752 * system-linux-s390x.ads: New file.
17754 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
17756 * gnat_ugn.texi: Correct argument to @setfilename.
17758 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
17760 * a-exexpr.adb (Unwind_Word): New data type.
17761 (Unwind_Exception): Use it as type of Private1 and Private2.
17763 * raise.c (db_action_for): Fix debug printf.
17765 2004-04-27 Ed Schonberg <schonberg@gnat.com>
17767 * a-wtmoio.ads: Formal type must be a modular type, not a signed
17770 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17772 * decl.c (gnat_to_gnu_entity, case object): Call
17773 __builtin_update_setjmp_buf.
17775 * gigi.h (update_setjmp_buf): Deleted.
17776 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
17778 * misc.c: (update_setjmp_buf): Deleted.
17780 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
17781 around block of RTL.
17783 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
17785 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
17787 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
17788 subprogram for which no pragma All_Calls_Remote applies, store the
17789 address of the real subprogram in the underlying record type, so local
17790 dereferences do not go through the PCS.
17792 2004-04-26 Robert Dewar <dewar@gnat.com>
17794 * i-c.ads: Add some type qualifications to avoid ambiguities when
17795 compiling with s-auxdec.ads and a non-private address type.
17797 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
17799 * Makefile.rtl: Fix error in previous check-in:
17800 Add s-addope.o to non tasking object list (rather than tasking object
17803 2004-04-26 Javier Miranda <miranda@gnat.com>
17805 * sem_aggr.adb: Fix typo in comments
17806 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
17807 Required to check the null-exclusion attribute.
17809 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
17810 case of anonymous access types in record and array components. For a
17811 component definition the level is the same of the enclosing composite
17814 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
17815 that are anonymous access types the level of accessibility depends on
17816 the enclosing type declaration. In order to have this information, set
17817 the scope of the anonymous access type to the enclosing record type
17819 (Array_Type_Declaration): In case of components that are anonymous
17820 access types the level of accessibility depends on the enclosing type
17821 declaration. In order to have this information, set the scope of the
17822 anonymous access type to the enclosing array type declaration.
17824 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
17827 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
17828 renaming of anonymous access-to-constant types allowed if and only if
17829 the renamed object is access-to-constant.
17831 * sem_util.adb (Type_Access_Level): In case of anonymous access types
17832 that are component_definition or discriminants of a nonlimited type,
17833 the level is the same as that of the enclosing component type.
17835 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
17837 * sem_elim.adb: Some minor code reorganization from code reading. Fix
17838 misprint in the function name (File_Name_Match).
17840 2004-04-23 Laurent GUERBY <laurent@guerby.net>
17842 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
17845 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17847 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
17849 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
17851 * adaint.c (__gnat_try_lock): No longer requires that the parent
17852 directory be writable, the directory itself is enough.
17853 (gnat_is_absolute_path): Change profile, so that the call from
17854 GNAT.OS_Lib can be made more efficient.
17856 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
17857 from GNAT.OS_Lib can be made more efficient.
17859 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
17860 one copy of the file name. Found by code reading.
17862 2004-04-23 Vincent Celier <celier@gnat.com>
17864 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
17865 Correct documentation on gnatmake switches transmitted to the compiler
17867 * ali.ads: Minor comment fix
17869 2004-04-23 Javier Miranda <miranda@gnat.com>
17871 * sem_ch6.adb: (Confirming Types): Code cleanup
17873 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
17874 subprogram types: E_Anonymous_Access_Subprogram_Type and
17875 E_Anonymous_Access_Protected_Subprogram_Type.
17877 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
17879 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
17880 whether a pragma All_Calls_Remote applies to the subprogram on which
17882 No functional change is introduced by this revision; the new parameter
17883 will be used to allow calls to local RCI subprograms to be optimized
17884 to not use the PCS in the case where no pragma All_Calls_Remote applies,
17885 as is already done in the PolyORB implementation of the DSA.
17887 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
17888 whether a pragma All_Calls_Remote applies to the subprogram on which
17890 No functional change is introduced by this revision; the new parameter
17891 will be used to allow calls to local RCI subprograms to be optimized
17892 to not use the PCS in the case where no pragma All_Calls_Remote applies,
17893 as is already done in the PolyORB implementation of the DSA.
17895 2004-04-23 Robert Dewar <dewar@gnat.com>
17897 * Makefile.rtl: Add entry for s-addope.o in run time library list
17898 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
17899 * s-addope.ads, s-addope.adb: New files.
17901 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
17902 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
17903 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
17904 System.Address to be non-private and signed.
17906 * sem_elim.adb: Minor reformatting (fairly extensive)
17907 Some minor code reorganization from code reading
17908 Add a couple of ??? comments
17910 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17912 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
17913 (tree_transform, case N_If_Statement): Remove non-determinism.
17915 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
17917 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
17919 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
17920 Eliminate' section.
17922 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
17923 no longer used as a parameter name for Eliminate pragma).
17925 2004-04-22 Laurent GUERBY <laurent@guerby.net>
17927 PR optimization/14984
17928 PR optimization/14985
17929 * trans.c (gigi): Fix non determinism leading to bootstrap
17930 comparison failures.
17932 2004-04-21 Pascal Obry <obry@gnat.com>
17934 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
17935 passed to spawnvp() to properly handle program pathname with spaces on
17938 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
17940 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
17941 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
17942 unlocked in case of exceptions.
17944 2004-04-21 Joel Brobecker <brobecker@gnat.com>
17946 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
17947 This function does not exist anymore.
17949 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
17951 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
17953 * link.c: Move variables to the __gnat name space.
17955 * Makefile.in: list link.o explicitly when needed.
17957 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
17959 2004-04-21 Javier Miranda <miranda@gnat.com>
17961 * einfo.adb (Original_Access_Type): New subprogram
17962 (Set_Original_Access_Type): New subprogram
17963 (Write_Field21_Name): Write the name of the new field
17965 * einfo.ads (Original_Access_Type): New field present in access to
17967 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
17968 E_Anonymous_Access_Protected_Subprogram_Type.
17970 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
17973 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
17974 to anonymous access to subprogram types.
17976 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
17977 to subprogram types.
17979 * sem_ch3.adb (Access_Definition): Complete decoration of entities
17980 corresponding to anonymous access to subprogram types.
17981 (Analyze_Component_Declaration): Add new actual to the call to
17982 subprogram replace_anonymous_access_to_protected_subprogram.
17983 (Array_Type_Declaration): Add new actual to the call to subprogram
17984 replace_anonymous_access_to_protected_subprogram.
17985 (Process_Discriminants): Add new actual to the call to subprogram
17986 replace_anonymous_access_to_protected_subprogram.
17987 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
17989 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
17992 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
17993 access to subprogram types.
17995 * sem_util.adb (Has_Declarations): Addition of package_specification
17998 2004-04-21 Ed Schonberg <schonberg@gnat.com>
18000 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
18001 inlined flags to renamed entity only if in current unit.
18003 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
18005 * s-parint.ads: Add DSA implementation marker.
18007 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
18008 value of System.Partition_Interface.DSA_Implementation to determine
18009 what version of the distributed systems annex is available (no
18010 implementation, GLADE, or PolyORB).
18012 2004-04-21 Joel Brobecker <brobecker@gnat.com>
18014 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
18016 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18018 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
18019 with new type if alias sets differ.
18020 Fixes ACATS c41103b.
18022 2004-04-21 Vincent Celier <celier@gnat.com>
18024 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
18025 Add array Lang_Args for the language specific compiling argument
18028 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
18030 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
18032 * gnat_rm.texi: Update the descripton of the Eliminate pragma
18033 according to the recent changes in the format of the parameters of the
18034 pragma (replacing Homonym_Number with Source_Location).
18036 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
18038 * 5isystem.ads: Removed, unused.
18040 * gnat_rm.texi: Redo 1.13 change.
18042 2004-04-19 Robert Dewar <dewar@gnat.com>
18044 * s-stoele.ads: Clean up definition of Storage_Offset (the new
18045 definition is cleaner, avoids the kludge of explicit Standard operator
18046 references, and also is consistent with a visible System.Address with
18047 no visible operations.
18049 * s-geveop.adb: Add declarations to avoid assumption of visible
18050 operations on type System.Address (since these might not be available
18051 if Address is a non-private type for which the operations
18052 are made abstract).
18054 * sem_eval.adb: Minor reformatting
18056 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
18057 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
18058 reformatting (new function spec format).
18060 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
18061 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
18062 s-caun64.adb: Add declarations to avoid assumption of visible
18063 operations on type System.Address (since these might not be available
18064 if Address is a non-private type for which the operations are made
18067 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
18069 * exp_intr.adb: Minor comment update
18071 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
18073 * 5omastop.adb: Add declarations to avoid assumption of visible
18074 operations on type System.Address (since these might not be available
18075 if Address is a non-private type for which the operations
18076 are made abstract).
18078 2004-04-19 Vincent Celier <celier@gnat.com>
18080 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
18082 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
18085 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
18087 Call Check with Process_Languages.
18088 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
18089 with Process_Languages.
18090 (Recursive_Check): New Boolean parameter Process_Languages. Call
18091 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
18094 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
18096 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
18097 parameter Ada_Main, defaulted to True.
18098 Check for Ada specific characteristics only when Ada_Main is True.
18100 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
18102 * prj.adb: (Project_Empty): Add new Project_Data components.
18104 * prj.ads: New types and tables for non Ada languages.
18105 (Project_Data): New components Languages, Impl_Suffixes,
18106 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
18107 Include_Path, Include_Data_Set.
18109 * prj-env.ads, prj-env.adb: Minor reformatting
18111 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
18112 Put subprograms in alphabetical order
18114 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
18115 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
18118 * mlib-prj.adb: Back out modification in last version, as they are
18120 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
18122 * make.adb: (Mains): Moved to package Makeutl
18123 (Linker_Opts): Moved to package Makeutl
18124 (Is_External_Assignment): Moved to package Makeutl
18125 (Test_If_Relative_Path): Moved to package Makeutl
18126 (Gnatmake): Move sorting of linker options to function
18127 Makeutl.Linker_Options_Switches.
18129 * makeutl.ads, makeutl.adb: New files.
18131 * Makefile.in: Add makeutl.o to the object files for gnatmake
18133 * makeusg.adb: Add line for new switch -eL.
18135 * gnatls.adb (Image): New function.
18136 (Output_Unit): If in verbose mode, output the list of restrictions
18137 specified by pragmas Restrictions.
18139 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
18142 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
18143 needed, to put it in the range 1970 (included) - 2026 (excluded).
18144 (Time_Of): Do not shift Unix_Min_Year (1970).
18145 Shift the date by multiple of 56 years, if needed, to put it in the
18146 range 1970 (included) - 2026 (excluded).
18148 * adaint.h, adaint.c (__gnat_set_executable): New function.
18150 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18152 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
18153 and pop GC context.
18154 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
18155 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
18156 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
18157 (tree_transform, case N_Code_Statement): Likewise.
18158 (gnat_expand_stmt, case LABEL_STMT): Don't look at
18159 LABEL_STMT_FIRST_IN_EH.
18160 (gnat_expand_stmt, case ASM_STMT): New case.
18162 * utils2.c (build_unary_op): Properly set TREE_READONLY of
18163 UNCONSTRAINED_ARRAY_REF.
18165 * utils.c (poplevel): Temporarily push/pop GC context around inline
18166 function expansion.
18168 * decl.c (maybe_variable): Properly set TREE_READONLY of
18169 UNCONSTRAINED_ARRAY_REF.
18170 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
18172 * ada-tree.def: (ASM_STMT): New.
18174 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
18175 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
18176 ASM_STMT_INPUT): New.
18177 (ASM_STMT_CLOBBER): Likewise.
18179 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
18181 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
18182 general rcheck mechanism to raise Program_Error for E.4(18), instead
18183 of a custom raiser in System.Partition_Interface.
18184 Part of general cleanup work before PolyORB integration.
18186 * snames.ads, snames.adb: Add new runtime library entities and names
18189 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
18191 (Build_Subprogram_Id): New subprogram provided by exp_dist
18192 Code reorganisation in preparation for PolyORB integration.
18194 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
18196 (Build_Subprogram_Id): New subprogram provided by exp_dist
18198 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
18199 actual parameter types for call to dereference of an
18200 access-to-subprogram type.
18202 * rtsfind.ads: Add new runtime library entities and names for PolyORB
18205 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
18206 instead, which has the same behaviour here since we never pass it a
18209 * link.c (run_path_option, Solaris case): Use -Wl, as for other
18212 * Makefile.in: adjust object file lists for gnatlink and gnatmake
18213 to account for new dependency upon Interfaces.C.Strings + link.o
18214 For x86 FreeBSD, use 86numaux.
18216 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
18217 from Mlib.Tgt to Mlib.
18219 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
18220 target-independent.
18222 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
18223 target-specific versions of this subprogram, now implemented as a
18224 target-independent function in Mlib.
18226 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
18227 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
18228 (Linker_Library_Path_Option): Remove target-specific versions of this
18229 subprogram, now implemented as a target-independent function in Mlib.
18231 * atree.adb: (Allocate_Initialize_Node): New subprogram.
18232 Factors out node table slots allocation.
18233 (Fix_Parents): New subprogram.
18234 Encapsulate the pattern of fixing up parent pointers for syntactic
18235 children of a rewritten node.
18236 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
18237 (Rewrite): Use New_Copy when creating saved copy of original node.
18238 (Replace): Use Copy_Node to copy nodes.
18240 2004-04-19 Javier Miranda <miranda@gnat.com>
18242 * sprint.adb (Sprint_Node_Actual): Give support to the new
18243 Access_To_Subprogram node available in Access_Definition nodes. In
18244 addition, give support to the AI-231 node fields: null-exclusion,
18245 all-present, constant-present.
18247 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
18249 * sinfo.ads, sinfo.adb:
18250 New field Access_To_Subprogram_Definition in Access_Definition nodes
18252 * sem_ch6.adb (Process_Formals): Move here the code that creates and
18253 decorates internal subtype declaration corresponding to the
18254 null-excluding formal. This code was previously in Set_Actual_Subtypes.
18255 In addition, carry out some code cleanup on this code. In case of
18256 access to protected subprogram call
18257 Replace_Anonymous_Access_To_Protected_Subprogram.
18258 (Set_Actual_Subtypes): Code cleanup.
18260 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
18261 Find_Type in case of anonymous access renamings. Add warning in case of
18262 null-excluding attribute used in anonymous access renaming.
18264 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
18267 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
18269 (Access_Definition): In case of anonymous access to subprograms call
18270 the corresponding semantic routine to decorate the node.
18271 (Access_Subprogram_Declaration): Addition of some comments indicating
18272 some code that probably should be added here. Detected by comparison
18273 with the access_definition subprogram.
18274 (Analyze_Component_Declaration): In case of access to protected
18275 subprogram call Replace_Anonymous_Access_To_Protected.
18276 (Array_Type_Declaration): In case of access to protected subprogram call
18277 Replace_Anonymous_Access_To_Protected_Subprogram.
18278 (Process_Discriminants): In case of access to protected subprogram call
18279 Replace_Anonymous_Access_To_Protected_Subprogram.
18281 * par.adb (P_Access_Definition): New formal that indicates if the
18282 null-exclusion part was present.
18283 (P_Access_Type_Definition): New formal that indicates if the caller has
18284 already parsed the null-excluding part.
18286 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
18287 (P_Identifier_Declarations): Code cleanup and give support to renamings
18288 of anonymous access to subprogram types.
18289 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
18290 (P_Array_Type_Definition): Give support to AI-254.
18291 (P_Component_Items): Give support to AI-254.
18292 (P_Access_Definition): New formal that indicates if the header was
18293 already parsed by the caller.
18294 (P_Access_Type_Definition): New formal that indicates if the caller has
18295 already parsed the null-excluding part.
18297 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
18298 call to P_Access_Definition.
18300 2004-04-19 Geert Bosch <bosch@gnat.com>
18302 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
18303 the delicate semantics of floating-point to integer conversion.
18304 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
18306 * eval_fat.adb (Machine_Mantissa): Moved to spec.
18307 (Machine_Radix): New function.
18309 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
18311 (Machine_Radix): New function also for use in conversion checks.
18313 2004-04-19 Ed Schonberg <schonberg@gnat.com>
18315 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
18317 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
18318 to decorate the access-to-protected subprogram and the equivalent type.
18320 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
18321 to anonymous access to subprogram types.
18323 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
18324 constant-folding, for legality checks in contexts that require an RM
18327 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
18328 temporary but stack checking is not enabled, increment serial number
18329 to so that symbol generation is consistent with and without stack
18332 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
18333 independent on whether stack checking is enabled, caller must check
18334 the corresponding flag.
18336 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
18338 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
18339 parent if it has discriminants.
18340 (Build_Derived_Private_Type): Constructed full view does
18341 not come from source.
18342 (Process_Discriminants): Default discriminants on a tagged type are
18343 legal if this is the internal completion of a private untagged
18346 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
18347 no constraint checks, because it corresponds to an existing object.
18349 * sem_prag.adb (Process_Convention): Pragma applies
18350 only to subprograms in the same declarative part, i.e. the same unit,
18351 not the same scope.
18353 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
18354 ignore type mismatch on a numeric conversion if expression comes from
18357 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
18359 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
18360 Homonym_Number parameter, add processing for Source_Location parameter
18362 (Check_Eliminated): Remove the check for homonym numbers, add the check
18363 for source location traces.
18365 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
18366 with Arg_Source_Location corresponding to the changes in the format of
18369 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
18370 Eliminate pragma corresponding to the changes in the format of the
18371 pragma: Homonym_Number is replaced with Source_Location, two ways of
18372 distinguishing homonyms are mutially-exclusive.
18374 2004-04-19 Joel Brobecker <brobecker@gnat.com>
18376 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
18378 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
18379 No_Dollar_In_Label, no longer necessary, as it is always True.
18380 (Strip_Suffixes): Likewise.
18382 2004-04-19 Gary Dismukes <dismukes@gnat.com>
18384 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
18385 modulus for compatibility with size clause on targets with 16-bit
18388 * layout.adb (Discrimify): In the case of private types, set Vtyp to
18389 full type to fix type mismatches on calls to size functions for
18390 discriminant-dependent array components.
18392 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
18394 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
18397 2004-04-19 Pascal Obry <obry@gnat.com>
18399 * mdll-utl.adb (Locate): New version is idempotent.
18401 2004-04-17 Laurent Guerby <laurent@guerby.net>
18403 PR ada/14988 (partial)
18404 * impunit.adb: Fix typo.
18406 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
18408 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
18409 and install-rts-cert targets. Remove all gnatlib and gnattools
18410 targets and all other rts-* targets (moved to libada). Remove (now)
18411 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
18412 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
18414 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18416 * trans.c (tree_transform): Shortcut returning error_mark_node for
18417 statements in annotate_only_mode.
18418 (tree_transform, case N_Label, case N_Return_Statement,
18419 N_Goto_Statement): Make statement tree instead of generating code.
18420 (tree_transform, case N_Assignment_Statement): No longer check
18421 type_annotate_only.
18422 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
18424 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
18426 (gnat_to_gnu): Collect any RTL generated and deal with it.
18427 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
18428 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
18429 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
18431 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
18433 * ada-tree.def (EXPR_STMT): Fix typo in name.
18434 (BLOCK_STMT, IF_STMT): New nodes.
18436 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
18437 LABEL_STMT_FIRST_IN_EH): New macros.
18438 (RETURN_STMT_EXPR): Likewise.
18440 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
18441 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
18443 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
18445 * atree.ads: Correct documentation on extended nodes.
18447 * link.c: Set run_path_option for FreeBSD.
18449 2004-04-08 Vincent Celier <celier@gnat.com>
18451 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
18452 one of the ALI file, do not link with DEC lib.
18454 * par.adb Remove the last two characters ("%s" or "%b") when checking
18455 if a language defined unit may be recompiled.
18457 2004-04-08 Ed Schonberg <schonberg@gnat.com>
18459 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
18460 removal of abstract operation leaves no possible interpretation for
18463 * sem_eval.adb (Eval_Qualified_Expression): Use
18464 Set_Raises_Constraint_Error on node when needed, so that it does not
18465 get optimized away by subsequent optimizations.
18467 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
18468 operands even when they are not wrapped in a type conversion.
18470 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
18472 * sem_prag.adb (Set_Exported): Warn about making static as result of
18473 export only when the export is coming from source. This may be not
18474 be true e.g. on VMS where we expand export pragmas for exception codes
18475 together with imported or exported exceptions, and we don't want the
18476 user to be warned about something he didn't write.
18478 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
18480 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
18481 duplication between normal entities and those declared as renamings.
18482 No functional change.
18484 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
18485 inline functions returning an unconstrained result.
18487 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
18489 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
18490 conform to what other front-ends do.
18492 2004-04-08 Doug Rupp <rupp@gnat.com>
18494 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
18497 2004-04-06 Pascal Obry <obry@gnat.com>
18499 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
18501 * osint.adb (Program_Name): Do not look past a directory separator.
18503 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
18505 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
18507 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
18508 requirement for preserving a copy of the original assignment node.
18510 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
18512 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
18514 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
18517 2004-04-06 Ed Schonberg <schonberg@gnat.com>
18519 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
18520 operator calls in functional notation, and apply
18521 Universal_Interpretation to operands, not to their type.
18523 2004-04-06 Robert Dewar <dewar@gnat.com>
18525 * 5wdirval.adb: Minor reformatting
18527 2004-04-06 Ed Falis <falis@gnat.com>
18529 * gnat_rm.texi: Improve a reference to the GCC manual
18531 2004-04-05 Vincent Celier <celier@gnat.com>
18533 * adaint.h, adaint.c: Add function __gnat_named_file_length
18535 * impunit.adb: Add Ada.Directories to the list
18537 * Makefile.in: Add VMS and Windows versions of
18538 Ada.Directories.Validity package body.
18540 * Makefile.rtl: Add a-direct and a-dirval
18542 * mlib-tgt.ads: Minor comment update.
18544 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
18545 a-direct.ads, a-direct.adb: New files.
18547 2004-04-05 Vincent Celier <celier@gnat.com>
18550 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
18551 just to the compiler.
18553 2004-04-05 Robert Dewar <dewar@gnat.com>
18555 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
18556 returned string is 1.
18558 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
18560 * eval_fat.ads: Minor reformatting
18562 * g-curexc.ads: Document that lower bound of returned string values
18565 * gnatlink.adb: Add ??? comment for previous change
18566 (need to document why this is VMS specific)
18568 * s-stoele.ads: Minor reformatting
18570 * tbuild.ads: Minor reformatting throughout (new function specs)
18572 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
18575 * scng.adb: Minor reformatting
18577 2004-04-05 Geert Bosch <bosch@gnat.com>
18579 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
18580 (Leading_Part): Still perform truncation to machine number if the
18581 specified radix_digits is greater or equal to machine_mantissa.
18583 2004-04-05 Javier Miranda <miranda@gnat.com>
18585 * par-ch3.adb: Complete documentation of previous change
18586 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
18587 (aliased must appear before constant).
18589 * par-ch4.adb: Complete documentation of previous change.
18591 * par-ch6.adb: Complete documentation of previous change.
18593 * sinfo.ads: Fix typo in commment.
18595 2004-04-05 Ed Schonberg <schonberg@gnat.com>
18597 * sem_ch3.adb (Inherit_Components): If derived type is private and has
18598 stored discriminants, use its discriminants to constrain parent type,
18599 as is done for non-private derived record types.
18601 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
18602 Ada 2005 AI-310: an abstract non-dispatching operation is not a
18603 candidate interpretation in an overloaded call.
18605 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
18606 expression is Null and target type is not an access type (e.g. a
18607 non-private address type).
18609 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
18611 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
18612 statement whose right-hand side is an inlined call, save a copy of the
18613 original assignment subtree to preserve enough consistency for
18614 Analyze_Assignment to proceed.
18616 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
18617 complete assignment subtree which is now unnecessary, as the expansion
18618 of inlined call has been improved to preserve a consistent assignment
18619 tree. Note_Possible_Modification must be called only
18620 after checks have been applied, or else unnecessary checks will
18623 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
18624 of explicit dereferences that do not Come_From_Source:
18625 - be selective on cases where we must go back to the dereferenced
18626 pointer (an assignment to an implicit dereference must not be
18627 recorded as modifying the pointer);
18628 - do not rely on Original_Node being present (Analyze_Assignment
18629 calls Note_Possible_Modification on a copied tree).
18631 * sem_warn.adb (Check_References): When an unset reference to a pointer
18632 that is never assigned is encountered, prefer '<pointer> may be null'
18633 warning over '<pointer> is never assigned a value'.
18635 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
18637 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
18640 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
18642 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
18643 libexc. We currently don't reference anything in this library and
18644 linking it in triggers linker warnings we don't want to see.
18646 * init.c: Update comments.
18648 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18650 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
18651 * utils.c (create_field_decl): Likewise.
18652 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
18654 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
18656 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
18657 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
18658 Add info directory entry and category.
18660 2004-04-02 Jan Hubicka <jh@suse.cz>
18662 * utils.c: Include function.h
18663 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
18665 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
18668 * Make-lang.in: Clean up generation of documentation
18670 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
18672 * xgnatug.adb: Removed, replaced by xgnatugn.adb
18674 * xgnatugn.adb: Replaces xgnatug.adb
18676 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
18678 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
18680 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
18681 gnat_ug_wnt.texi: Removed.
18683 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
18685 * utils2.c: Update copyright notice.
18687 2004-04-01 Robert Dewar <dewar@gnat.com>
18689 * checks.adb: Minor reformatting throughout
18690 Note that prev checkin added RM reference to alignment warning
18692 2004-04-01 Ed Schonberg <schonberg@gnat.com>
18694 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
18695 non-static when building aggregate for bit-packed array.
18697 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
18698 function call that is itself the actual in a procedure call, build
18701 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
18702 a string literal, create a temporary for it, constant folding only
18703 handles scalars here.
18705 2004-04-01 Vincent Celier <celier@gnat.com>
18707 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
18708 Error_Msg_SP): New empty procedures to instantiate the Scanner.
18709 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
18711 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
18712 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
18713 and get the checksum.
18715 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
18717 Increase the Marking_Label at the end of the Multiple_Main_Loop,
18718 instead of at the beginning.
18720 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
18722 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
18725 * osint.ads (Multi_Unit_Index_Character): New Character global variable
18727 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
18730 * par.adb: Remove test on file name to detect language defined units.
18731 Add test on unit name, after parsing, to detect language defined units
18732 that are not compiled with -gnatg (except System.RPC and its children)
18734 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
18735 following units without style checking.
18737 * switch-c.adb: Change -gnatC to -gnateI
18739 * usage.adb: Document new switch -gnateInnn
18741 * scng.adb (Accumulate_Token_Checksum): New procedure
18742 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
18743 word or literal number.
18744 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
18747 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
18750 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
18751 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
18752 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
18753 5vtpopde.adb: Add missing 'constant' keywords.
18755 2004-04-01 Javier Miranda <miranda@gnat.com>
18757 * par-ch4.adb: (P_Allocator): Code cleanup
18759 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
18762 * sinfo.ads: Complete documentation of previous change
18764 2004-04-01 Pascal Obry <obry@gnat.com>
18766 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
18767 only on VMS. This special handling was done because an old GNU/ld bug
18768 on Windows which has been fixed.
18770 2004-04-01 GNAT Script <nobody@gnat.com>
18772 * Make-lang.in: Makefile automatically updated
18774 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18776 * decl.c (gnat_to_gnu_entity, make_type_from_size):
18777 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
18778 * trans.c (tree_transform, convert_with_check): Likewise.
18779 * utils.c (gnat_signed_or_unsigned_type): Likewise.
18780 (build_vms_descriptor, unchecked_convert): Likewise.
18781 * utils2.c (nonbinary_modular_operation): Likewise.
18783 2004-03-29 Javier Miranda <miranda@gnat.com>
18785 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
18786 (Install_Null_Excluding_Check): Local subprogram that determines whether
18787 an access node requires a runtime access check and if so inserts the
18788 appropriate run-time check.
18789 (Apply_Access_Check): Call Install_Null_Excluding check if required
18790 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
18792 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
18794 * einfo.ads: Fix typo in comment
18796 * exp_ch3.adb (Build_Assignment): Generate conversion to the
18797 null-excluding type to force the corresponding run-time check.
18798 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
18799 type to force the corresponding run-time check.
18801 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
18802 the null-excluding type to force the corresponding run-time check.
18804 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
18805 case of access types unless they have the null-excluding attribute.
18807 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
18810 * exp_util.ads: Fix typo in comment
18812 * par.adb (P_Null_Exclusion): New subprogram
18813 (P_Subtype_Indication): New formal that indicates if the null-excluding
18814 part has been scanned-out and it was present
18816 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
18818 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
18819 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
18820 type to force the corresponding run-time check
18821 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
18823 (Resolve_Array_Aggregate): Carry out some static checks
18824 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
18826 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
18827 attribute must be set only if specified by means of the null-excluding
18828 part. In addition, we must also propagate the access-constant attribute
18830 (Access_Subprogram_Declaration, Access_Type_Declaration,
18831 Analyze_Component_Declaration, Analyze_Object_Declaration,
18832 Array_Type_Declaration, Process_Discriminants,
18833 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
18834 and carry out some static checks.
18835 (Build_Derived_Access_Type): Set the null-excluding attribute
18836 (Derived_Type_Declaration, Process_Subtype): Carry out some static
18839 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
18841 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
18843 * sem_ch6.adb (Process_Formals): Carry out some static checks.
18844 (Set_Actual_Subtypes): Generate null-excluding subtype if the
18845 null-excluding part was present; it is not required to be done here in
18846 case of anonymous access types.
18847 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
18850 * sem_res.adb (Resolve_Actuals): Carry out some static check
18851 (Resolve_Null): Allow null in anonymous access
18853 * sinfo.adb: New subprogram Null_Exclusion_Present
18854 All_Present and Constant_Present available on access_definition nodes
18856 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
18857 object_declaration, derived_type_definition, component_definition,
18858 discriminant_specification, access_to_object_definition,
18859 access_function_definition, allocator, access_procedure_definition,
18860 access_definition, parameter_specification, All_Present and
18861 Constant_Present flags available on access_definition nodes.
18863 2004-03-29 Robert Dewar <dewar@gnat.com>
18865 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
18866 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
18867 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
18868 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
18869 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
18870 sem_prag.adb: Updates to handle multiple units/file
18872 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
18874 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
18875 sem_util.adb: Minor reformatting
18877 * sem_ch12.adb: Add comment for previous change
18879 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
18881 * osint.adb (Executable_Prefix): Set Exec_Name to the current
18882 executable name when not initialized. Otherwise, use its current value.
18884 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
18885 initialize it to another executable name than the current one. This
18886 allows to configure paths for an executable name (gnatmake) different
18887 from the current one (gnatdist).
18889 2004-03-29 Ed Schonberg <schonberg@gnat.com>
18891 * exp_ch6.adb (Expand_Call): A call to a function declared in the
18892 current unit cannot be inlined if it appears in the body of a withed
18893 unit, to avoid order of elaboration problems in gigi.
18895 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
18896 information for protected (wrapper) operation as well, to simplify gdb
18899 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
18900 protected body, indicate that the entity for the generated spec comes
18901 from source, to ensure that references are properly generated for it.
18902 (Build_Body_To_Inline): Do not inline a function that returns a
18905 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
18906 apply convention to homonyms that are declared explicitly.
18908 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
18909 that renames an equality operator and the operands are overloaded,
18910 resolve them with the declared formal types, before rewriting as an
18913 2004-03-29 GNAT Script <nobody@gnat.com>
18915 * Make-lang.in: Makefile automatically updated
18917 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
18919 * memtrack.adb: Log realloc calls, which are treated as free followed
18922 2004-03-25 Vincent Celier <celier@gnat.com>
18924 * prj-makr.adb (Process_Directories): Detect when a file contains
18925 several units. Do not include such files in the config pragmas or
18926 in the naming scheme.
18928 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
18929 Resolve links only when not in Trusted_Mode.
18930 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
18931 Do not resolve links for the display names.
18933 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
18934 resolve links when computing the display names.
18936 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
18938 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
18939 attribute reference does not denote a subtype, it can be any
18940 expression that has a classwide type, potentially after an implicit
18941 dereference. In particular, the prefix can be a view conversion for
18942 a classwide type (for which Is_Object_Reference holds), but it can
18943 also be a value conversion for an access-to-classwide type. In the
18944 latter case, there is an implicit dereference, and the original node
18945 for the prefix does not verify Is_Object_Reference.
18947 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
18948 conversion of a discriminant-dependent component of a mutable object
18951 2004-03-25 Ed Schonberg <schonberg@gnat.com>
18953 * freeze.adb (Freeze_Entity): When an inherited subprogram is
18954 inherited, has convention C, and has unconstrained array parameters,
18955 place the corresponding warning on the derived type declaration rather
18956 than the original subprogram.
18958 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
18959 indication on renaming declaration, if formal has a box and actual
18962 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
18963 determine whether to generate an implicit or explicit reference to
18964 the renamed entity.
18966 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
18967 subprogram renaming comes from a defaulted formal subprogram in an
18970 2004-03-25 Gary Dismukes <dismukes@gnat.com>
18972 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
18973 value expressions to ensure that calls within a component definition
18974 will be checked (since those are evaluated during the record type's
18977 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
18979 * s-tpobop.adb: Code clean up:
18980 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
18982 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
18984 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
18986 * Makefile.in: Clean up in the ravenscar run time.
18988 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18990 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
18991 of No_Strict_Aliasing to build_pointer_type_for_mode.
18992 * utils.c (update_pointer_to): Walk pointer and ref chains.
18994 2004-03-22 Cyrille Comar <comar@act-europe.fr>
18996 * ali.ads: Fix Comment about Dynamic_Elab.
18998 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
18999 Has_RACW, Is_Generic, etc.)
19000 (Output_Object, Gnatls): Take into account ALI files not attached to
19003 2004-03-22 Vincent Celier <celier@gnat.com>
19005 * gprep.adb: Change all String_Access to Name_Id
19006 (Is_ASCII_Letter): new function
19007 (Double_File_Name_Buffer): New procedure
19008 (Preprocess_Infile_Name): New procedure
19009 (Process_Files): New procedure
19010 (Gnatprep): Check if output and input are existing directories.
19011 Call Process_Files to do the real job.
19013 2004-03-22 Robert Dewar <dewar@gnat.com>
19015 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
19016 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
19018 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
19020 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
19021 case when the source contains only comments.
19023 2004-03-22 Ed Schonberg <schonberg@gnat.com>
19025 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
19026 declaration for a child subprogram body that acts as a spec, indicate
19027 that the entity in the declaration needs debugging information.
19029 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
19030 full view if the subtype is created for a constrained record component;
19031 gigi has enough information to construct the record, and there is no
19032 place in the tree for the declaration.
19034 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
19035 serial number for the dummy body that is built for analysis, to avoid
19036 inconsistencies in the generation of internal names when compiling
19039 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
19041 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
19044 2004-03-22 GNAT Script <nobody@gnat.com>
19046 * Make-lang.in: Makefile automatically updated
19048 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19050 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
19051 * trans.c (tree_transform, emit_index_check): Likewise.
19052 * utils.c (build_template): Likewise.
19053 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
19054 (maybe_unconstrained_array, unchecked_convert): Likewise.
19055 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
19056 (build_unary_op): Likewise.
19057 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
19058 (fill_vms_descriptor): Likewise.
19059 (build_call_alloc_dealloc): Likewise.
19061 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
19063 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
19066 * gnat_ug.texi: Add info directory category and entry.
19067 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19068 gnat_ug_wnt.texi: Regenerate.
19070 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
19072 * ada-tree.h: Update copyright notice.
19073 Minor reformatting.
19075 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
19077 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
19078 as regular exception objects and not as mere integers representing the
19079 condition code. The latter approach required some dynamics to mask off
19080 severity bits, which did not fit well into the GCC table based model.
19081 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
19082 exception data objects. We don't it and it would conflict with the other
19083 external symbol we have to generate for such exceptions.
19085 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
19086 the special code for VMS exceptions, since these are now represented
19087 as regular exceptions objects.
19089 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19091 * decl.c (debug_no_type_hash): Remove.
19092 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
19093 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
19095 2004-03-19 Laurent Guerby <laurent@guerby.net>
19097 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
19098 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
19100 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19102 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
19103 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
19104 (TYPE_RM_SIZE_INT): Directly use type.values.
19105 (TREE_LOOP_ID): Clean up check.
19106 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
19107 TYPE_VALUES, not TYPE_FIELDS.
19108 * trans.c (convert_with_check): Delay access of bounds of basetype
19109 until sure is numeric.
19111 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
19113 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
19116 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
19117 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
19118 Specific.Set instead of direct call to e.g pthread_setspecific.
19120 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
19122 * adaint.c: Update comments.
19124 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
19125 GNATLIB_SHARED for FreeBSD.
19127 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
19129 * init.c [VxWorks]: Do not fix the stack size for the environment task.
19130 When needed (stack checking) the stack size is retrieved
19131 from the VxWorks kernel.
19133 * Makefile.in: Flag -nostdinc is required when building the run time
19134 for avoiding looking for files in the base compiler.
19135 Add the VxWorks specific version of the package body for
19136 System.Stack_checking.Operations (5zstchop.adb).
19138 * Make-lang.in: Add the object file for
19139 System.Stack_Checking.Operations.
19141 * Makefile.rtl: Add object file for the package
19142 System.Stack_Checking.Operations.
19144 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
19146 * s-stache.ads, s-stache.adb: Move the operations related to stack
19147 checking from this package to package System.Stack_Checking.Operations.
19148 This way, stack checking operations are only linked in the final
19149 executable when using the -fstack-check flag.
19151 2004-03-18 Doug Rupp <rupp@gnat.com>
19153 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
19156 * 5qsystem.ads, 5xcrtl.ads: New files.
19158 2004-03-18 Vincent Celier <celier@gnat.com>
19160 * prj.adb (Reset): Reset hash table Files_Htable
19162 * prj-env.adb (Source_Paths, Object_Paths): New tables.
19163 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
19164 the procedures Add_To_Path_File.
19165 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
19166 making sure that each directory is present only once and, for object
19167 dirs, when a directory already present is added, the duplicate is
19168 removed and the directory is always put as the last in the table.
19169 Write the path files at the end of these accumulations.
19171 * prj-nmsc.adb (Record_Source): Add source file name in hash table
19172 Files_Htable for all sources.
19174 * prj-proc.adb (Process): Remove restrictions between not directly
19175 related extending projects.
19177 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
19179 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
19180 (Find_Sources): Minor speed optimization.
19182 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
19183 parameter Trusted_Mode.
19185 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
19187 * scn.adb (Determine_License): Take into account a degenerated case
19188 when the source contains only comments.
19190 2004-03-18 Ed Schonberg <schonberg@gnat.com>
19192 * sem_warn.adb (Check_References): For a warning on a selected
19193 component that does not come from source, locate an uninitialized
19194 component of the record type to produce a more precise error message.
19196 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
19198 * 3zsoccon.ads: Fix multicast options.
19200 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
19203 2004-03-15 Robert Dewar <dewar@gnat.com>
19205 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
19206 pragma used for a private type.
19208 * lib-xref.adb (Generate_Reference): Do not generate warning if
19209 reference is in a different unit from the pragma Unreferenced.
19211 * 5vtpopde.adb: Minor reformatting
19212 Fix casing of To_Task_ID
19214 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
19215 flag if we have an unchecked conversion to an access type in the same
19218 2004-03-15 Geert Bosch <bosch@gnat.com>
19220 * a-ngcoty.adb (Modulus): In alternate formula for large real or
19221 imaginary parts, use Double precision throughout.
19223 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
19224 we want to be able to compile run-time with -gnata for testing, but
19225 this may also be instantiated in user code that is compiled with -gnata.
19227 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
19229 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
19230 codes. Having a separate type for this is useful to enforce consistency
19231 throughout the various run-time units.
19232 (Exception_Data): Use Exception_Code for Import_Code.
19234 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
19235 Natural and Integer in various places.
19236 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
19237 with the severity bits masked off.
19238 (Register_VMS_Exception): Handle the additional exception data pointer
19241 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
19242 component, now reflected by an exported accessor.
19243 (is_handled_by): New routine to compute whether the propagated
19244 occurrence matches some handler choice specification. Extracted out of
19245 get_action_description_for, and expanded to take care of the VMS
19247 (get_action_description_for): Use is_handled_by instead of an explicit
19248 complex condition to decide if the current choice at hand catches the
19249 propagated occurrence.
19251 * raise.h (Exception_Code): New type for C.
19253 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
19254 System.Standard_Library.Exception_Code, to allow references from the
19255 pragma import/export expander.
19257 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
19258 New accessors to allow easy access to GNAT exception data
19260 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
19261 redundant Handled_By_Others component, helper for the personality
19262 routine which will now be able to call the appropriate exception data
19265 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
19266 component of Standard_Exception_Type to be the closest possible to
19267 Exception_Code in System.Standard_Library, that we cannot get at this
19268 point. Expand a ??? comment to notify that this type node should
19269 probably be rewritten later on.
19271 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
19272 registration call to include a pointer to the exception object in the
19275 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
19276 instead of int and explicit bitmasks.
19278 2004-03-15 Vincent Celier <celier@gnat.com>
19280 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
19281 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
19283 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
19284 longer needed now that it is in the spec of
19285 System.Tasking.Task_Attributes.
19287 * adaint.h, adaint.c: (__gnat_create_output_file): New function
19289 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
19291 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
19293 * make.adb (Gnatmake): Do not check the executable suffix; it is being
19294 taken care of in Scan_Make_Arg.
19295 (Scan_Make_Arg): Add the executable suffix only if the argument
19296 following -o, in canonical case, does not end with the executable
19297 suffix. When in verbose mode and executable file name does not end
19298 with executable suffix, output the executable name, in canonical case.
19300 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
19301 to avoid warnings when instantiating Ada.Task_Attributes.
19304 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
19305 in the correct order.
19307 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
19308 redirect standard output and error to a file for the invocation of the
19309 compiler, then read the file.
19311 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
19312 directory, instead of the Value.
19313 (Find_Source_Dirs): Remove useless code & comments.
19315 2004-03-15 Ed Schonberg <schonberg@gnat.com>
19317 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
19318 tagged type is inherited, and the parent operation is not frozen yet,
19319 force generation of a freeze node for the inherited operation, so the
19320 corresponding dispatch entry is properly initialized.
19321 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
19322 when looking for user-defined equality operation.
19324 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
19325 boolean when locating primitive equality of tagged component.
19327 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
19328 bit-aligned field and the right-hand side a string literal, introduce
19329 a temporary before expanding assignment into a loop.
19331 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
19332 priority in full, to ensure that any expanded subepxressions of it are
19333 elaborated in the scope of the init_proc.
19335 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
19336 after object declaration, skipping over code that may have been
19337 generated for validity checks.
19339 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
19340 discriminants, ignore the known discriminants of its full view, if
19341 any, to check legality.
19343 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
19344 component if type has unknown discriminants.
19345 (Analyze_Private_Extension_Declaration): Discriminant constraint is
19346 null if type has unknown discriminants.
19348 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
19349 for end label when present.
19351 * s-fileio.adb (Open): When called with a C_Stream, use given name for
19352 temporary file, rather than an empty string.
19354 2004-03-15 Ed Falis <falis@gnat.com>
19356 * s-thread.adb: Removed, no longer used.
19358 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19360 * decl.c (target.h): Now include.
19361 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
19362 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
19363 (validate_size): For POINTER_TYPE, get smallest size permitted on
19366 * fe.h: Sort Einfo decls and add Set_Mechanism.
19368 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
19369 (ada/decl.o): Depends on target.h.
19371 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
19372 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
19374 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
19376 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
19378 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
19379 Insert_Dereference_Action when rewriting an implicit dereference into
19380 an explicit one, this will be taken care of during expansion of the
19381 explicit dereference.
19382 (Expand_N_Slice): Same. Always do the rewriting, even for the case
19383 of non-packed slices, since the dereference action generated by
19384 expansion of the explicit dereference is needed in any case.
19385 (Expand_N_Selected_Component): When rewriting an implicit dereference,
19386 analyze and resolve the rewritten explicit dereference so it is seen
19388 (Insert_Dereference_Action): This procedure is now called only for the
19389 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
19390 dereferences that do not come from source (including explicit
19391 dereferences resulting from rewriting implicit ones), but do not
19392 recursively insert a check for the dereference nodes contained within
19394 (Insert_Dereference_Action): Clarify and correct comment.
19396 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
19399 Move language detection to the top level.
19400 * config-lang.in: Build by default.
19402 2004-03-05 Robert Dewar <dewar@gnat.com>
19404 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
19406 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
19407 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
19408 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
19409 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
19410 unchecked conversion to spec to avoid warnings.
19412 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
19415 * 7stpopsp.adb: Correct casing in To_Task_ID call
19417 * a-strsea.ads, a-strsea.adb: Minor reformatting
19419 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
19421 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
19422 Adjust Max_Msg_Length to be clearly large enough.
19424 * fe.h: Define In_Same_Source_Unit
19426 * osint.adb: Add pragma Warnings Off to suppress warnings
19427 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
19430 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
19432 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
19434 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
19436 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
19438 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
19440 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
19441 node. We now do generate them for gcc back end.
19443 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
19446 * sinput-c.adb: Fix bad name in header.
19447 Add pragma Warnings Off to suppress aliasing warning.
19449 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
19451 * snames.h, snames.ads, snames.adb: Add entry for pragma
19452 No_Strict_Aliasing.
19454 2004-03-05 Vincent Celier <celier@gnat.com>
19456 * prj-com.ads: Add hash table Files_Htable to check when a file name
19457 is already a source of another project.
19459 * prj-nmsc.adb (Record_Source): Before recording a new source, check
19460 if its file name is not already a source of another project. Report an
19463 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
19464 source file name, call gnatpp with all the sources of the main project.
19466 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
19469 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
19470 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
19471 /RUNTIME_SYSTEM=, converted to --RTS=
19472 /NOTABS, converted to -notabs
19474 2004-03-05 Pascal Obry <obry@gnat.com>
19476 * make.adb: Minor reformatting.
19478 2004-03-05 Ed Schonberg <schonberg@gnat.com>
19480 Part of implemention of AI-262.
19481 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
19483 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
19486 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
19487 when component type is a partially constrained class-wide subtype.
19488 (Constrain_Discriminated_Type): If parent type has unknown
19489 discriminants, a constraint is illegal, even if full view has
19491 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
19492 with unknown discriminants whose full view is a discriminated record.
19494 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
19495 flag, to handle properly derivations of tagged types with unknown
19497 (Analyze_Package_Spec, Analyze_Package_Body): Install
19498 Private_With_Clauses before analyzing private part or body.
19500 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
19501 Has_Discriminants can be true for a given type (documentation).
19503 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
19505 * s-restri.ads: Fix license (GPL->GMGPL).
19507 * s-tassta.adb: Minor reformatting.
19509 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
19510 by calls to Exit_One_ATC_Level, since additional clean up is performed
19513 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
19514 by calls to Exit_One_ATC_Level, since additional clean up is performed
19517 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19519 * trans.c: Reflect GCC changes to fix bootstrap problem.
19520 Add warning for suspicious aliasing unchecked conversion.
19522 2004-03-05 GNAT Script <nobody@gnat.com>
19524 * Make-lang.in: Makefile automatically updated
19526 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
19528 * ali.adb (Read_Instantiation_Instance): Do not modify the
19529 current_file_num when reading information about instantiations, since
19530 this corrupts files in later references.
19532 2004-03-02 Vincent Celier <celier@gnat.com>
19534 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
19535 before checking if it is read-only.
19537 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
19538 of SRC_DIRS and eliminate duplicates.
19540 * gprcmd.adb: Replace command "path" with command "path_sep" to return
19541 the path separator.
19542 (Usage): Document path_sep
19544 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
19545 C++ compiler. No need for a script.
19546 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
19547 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
19550 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
19551 where there are Ada sources.
19552 (Set_Ada_Paths): Only add to the include path the source dirs of project
19554 (Add_To_Path): Add the Display_Values of the directories, not their
19557 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
19560 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
19562 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
19563 Value is canonicalized.
19564 (Language_Independent_Check): Do not copy Value to Display_Value when
19565 canonicalizing Value.
19567 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
19568 path to find limited with cycles.
19569 (Parse_Single_Project): Use canonical cased path to find the end of a
19572 2004-03-02 Ed Schonberg <schonberg@gnat.com>
19574 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
19575 and not a child unit.
19577 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
19578 appear in a with_clause.
19580 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
19581 only happen in type_annotate mode, do not try to elaborate it.
19583 * exp_util.adb (Force_Evaluation): If expression is a selected
19584 component on the left of an assignment, use a renaming rather than a
19585 temporary to remove side effects.
19587 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
19588 inlined instance body, which is analyzed before the end of the
19591 2004-03-02 Robert Dewar <dewar@gnat.com>
19593 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
19594 sem_ch4.adb: Use new feature for substitution of keywords in VMS
19596 * errout.ads, errout.adb: Implement new circuit for substitution of
19599 * sem_case.adb (Analyze_Choices): Place message properly when case is
19600 a subtype reference rather than an explicit range.
19602 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
19604 2004-03-02 Doug Rupp <rupp@gnat.com>
19606 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
19608 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
19610 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
19612 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19614 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
19617 2004-02-25 Robert Dewar <dewar@gnat.com>
19619 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
19620 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
19621 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
19622 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
19623 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
19624 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
19625 the defining instance of the type to avoid aliasing problems.
19626 Fix copyright header. Fix bad comments in package header.
19628 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
19630 2004-02-25 Ed Schonberg <schonberg@gnat.com>
19632 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
19633 rewritten as references when aliased through an address clause.
19635 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
19636 whether call can be interpreted as an indirect call to the result of a
19637 parameterless function call returning an access subprogram.
19639 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
19642 * exp_ch7.adb (Make_Clean): Remove generation of calls to
19643 Unlock[_Entries], since this is now done by Service_Entries directly.
19645 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
19647 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
19648 Requeue_Call for better code readability. Change spec and update calls:
19649 PO_Service_Entries now unlock the PO on exit.
19650 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
19651 PO_Service_Entries.
19653 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
19655 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
19657 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
19659 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
19660 protected subprogram call and analyzing the result of such expanding
19661 in case when the called protected subprogram is eliminated.
19663 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
19666 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
19668 * Makefile.in: Clean ups.
19670 2004-02-23 Ed Schonberg <schonberg@gnat.com>
19672 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
19673 protected operations if original subprogram is flagged as eliminated.
19674 (Expand_N_Subprogram_Body): For a protected operation, create
19675 discriminals for next operation before checking whether the operation
19678 * exp_ch9.adb (Expand_N_Protected_Body,
19679 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
19680 for internal protected operations if the original subprogram is
19683 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
19684 declared in a single protected object.
19686 2004-02-23 Vincent Celier <celier@gnat.com>
19688 * prj-attr.adb: Make attribute Builder'Executable an associative array,
19689 case insensitive if file names are case insensitive, instead of a
19690 standard associative array.
19692 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
19693 them as case insensitive on platforms where the file names are case
19696 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
19697 project file has already been parsed that canonical path are compared.
19699 2004-02-23 Robert Dewar <dewar@gnat.com>
19701 * sinput-c.ads: Correct bad unit title in header
19703 * freeze.adb: Minor reformatting
19705 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19707 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
19708 nonaddressable COMPONENT_REF that is removing padding that we are
19709 taking the address of, take the address of the padded record instead
19710 if item is variable size.
19712 2004-02-20 Robert Dewar <dewar@gnat.com>
19714 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
19716 2004-02-20 Ed Schonberg <schonberg@gnat.com>
19718 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
19719 itype references for the constrained designated type of a component
19720 whose base type is already frozen.
19722 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
19724 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
19725 avoid GCC warnings.
19727 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
19729 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
19730 identifier for a phantom package that rewrites the formal package
19731 declaration with a box. The Add semantic decorations for the defining
19732 identifier from the original node (that represents the formal package).
19734 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
19736 * Make-lang.in (ada/stamp-sdefault): Use the top level
19739 2004-02-19 Richard Henderson <rth@redhat.com>
19741 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
19743 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
19745 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
19746 Scan_ALI can be used for multiple ALI files without reinitializing
19749 2004-02-18 Robert Dewar <dewar@gnat.com>
19751 * debug.adb: Minor reformatting.
19753 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19755 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
19756 to zero if there is an address clause.
19758 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
19760 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
19762 2004-02-18 Gary Dismukes <dismukes@gnat.com>
19764 * layout.adb (Layout_Component_List): Revise generation of call to
19765 discriminant-checking function to pass selections of all of the type's
19766 discriminants rather than just the variant-controlling discriminant.
19768 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
19770 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
19771 fail in the current setup and triggers spurious system error messages.
19772 Pretend it occurred and failed instead.
19774 2004-02-18 Vincent Celier <celier@gnat.com>
19776 * bld.adb: Mark FLDFLAGS as saved
19777 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
19778 it is not the root project. Put each directory to be
19779 extended between double quotes to prevent it to be expanded on Windows.
19780 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
19781 the project file. Set them back to their initial values if they have not
19782 been set in the project file.
19784 * gprcmd.adb: (Gprdebug, Debug): New global variables
19785 (Display_Command): New procedure
19786 (Usage): Document new command "linkopts"
19787 Call Display_Command when env var GPRDEBUG has the value "TRUE"
19788 Implement new command "linkopts"
19789 Remove quotes that may be around arguments for "extend"
19790 Always call Normalize_Pathname with arguments formatted for the platform
19792 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
19793 Change @echo to @$(display) in target clean to be able to clean silently
19795 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
19797 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
19800 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
19801 = Extending_All when current project is an extending all project.
19803 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
19804 set to True only for LINK command, after Unix switch -o.
19805 (Process_Arguments): Set Output_File_Expected to True for LINK command
19806 after Unix switch -o. When Output_File_Expected is True, never add an
19807 extension to a file name.
19809 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
19810 option file name, only to the --for-linker= switch.
19811 (Option_File_Name): If option file name do not end with ".opt", append
19814 2004-02-18 GNAT Script <nobody@gnat.com>
19816 * Make-lang.in: Makefile automatically updated
19818 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
19820 * Make-lang.in (stamp-sdefault): Do not depend on
19823 2004-02-12 Zack Weinberg <zack@codesourcery.com>
19825 * config-lang.in: Disable Ada by default until probe logic for
19826 a bootstrap Ada compiler can be moved to the top level configure
19829 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
19831 * decl.c (components_to_record): Don't claim that the internal fields
19832 we make to hold the variant parts are semantically addressable, because
19835 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
19836 adjust the comment describing the modular type form when we can use it.
19837 (Install_PAT): Account for the Esiz renaming.
19839 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
19840 sc_onstack context indication before raising the exception to which
19841 the signal is mapped. Allows better handling of later signals possibly
19842 triggered by the resumed user code if the exception is handled.
19844 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
19846 * 5zinit.adb: Removed, no longer used.
19848 2004-02-12 Robert Dewar <dewar@gnat.com>
19850 * ali.adb: Remove separating space between parameters on R line. Makes
19851 format consistent with format used by the binder for Set_Globals call.
19853 * atree.ads, atree.adb: Minor reformatting (new function header format)
19855 * bindgen.adb: Add Run-Time Globals documentation section containing
19856 detailed documentation of the globals passed from the binder file to
19859 * gnatls.adb: Minor reformatting
19861 * init.c (__gnat_set_globals): Add note pointing to documentation in
19864 * lib-writ.ads, lib-writ.adb: Remove separating space between
19865 parameters on R line.
19866 Makes format consistent with format used by the binder for Set_Globals
19869 * osint.ads: Add 2004 to copyright notice
19872 * snames.ads: Correct capitalization of FIFO_Within_Priorities
19873 Noticed during code reading, documentation issue only
19875 * usage.adb: Remove junk line for obsolete C switch
19876 Noticed during code reading
19878 2004-02-12 Vincent Celier <celier@gnat.com>
19880 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
19881 extend for each directory, so that multiple /** directories are
19882 extended individually.
19883 (Recursive_Process): Set the default for LANGUAGES to ada
19885 * gprcmd.adb: Define new command "ignore", to do nothing.
19886 Implement new comment "path".
19888 * Makefile.generic: Suppress output when SILENT is set
19889 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
19890 used, so that the correct compiler is invoked.
19891 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
19892 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
19894 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
19896 * Makefile.in: Clean ups and remove obsolete targets.
19898 2004-02-12 Ed Schonberg <schonberg@gnat.com>
19900 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
19901 predicate declared in exp_util.
19903 * exp_util.adb: Add comments.
19905 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
19906 visibility before compiling context of the subunit.
19908 * sem_res.adb (Check_Parameterless_Call): If the context expects a
19909 value but the name is a procedure, do not attempt to analyze as a call,
19910 in order to obtain more telling diagnostics.
19912 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
19913 'Access on parameterless function calls.
19914 (Normalize_Actuals): For a parameterless function call with missing
19915 actuals, defer diagnostic until resolution of enclosing call.
19917 * sem_util.adb (Wrong_Type): If the context type is an access to
19918 subprogram and the expression is a procedure name, suggest a missing
19921 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
19922 Nathanael Nerode <neroden@gcc.gnu.org>
19926 Merge with libada-branch:
19927 * config-lang.in: Build libada only when ada is built.
19929 2004-02-09 Ed Schonberg <schonberg@gnat.com>
19931 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
19932 for a tagged type, verify that both formals have the same type.
19934 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
19935 temporary when the formal is an in-parameter and the actual a possibly
19938 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
19939 when expansion is disabled, to ensure proper name capture with
19940 overloaded literals. Condition can be of any boolean type, resolve
19943 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
19944 renaming is for a formal subprogram with a default operator name, and
19945 there is a usable operator that is visible at the point of
19948 2004-02-09 Robert Dewar <dewar@gnat.com>
19950 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
19951 rewrite to ignore errors in ali files, intended to allow tools downward
19952 compatibility with new versions of ali files.
19954 * ali.ads: Add new parameter Ignore_Errors
19956 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
19957 duplicating the error message giving the file with restrictions.
19959 * debug.adb: Add debug flag I for gnatbind
19961 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
19962 operators for the case where the operator is a defining operator.
19964 * exp_ch3.adb: Minor reformatting (new function spec format).
19966 * exp_ch4.adb: Add comment for previous change, and make minor
19967 adjustment to loop to always check for improper loop termination.
19968 Minor reformatting throughout (new function spec format).
19970 * gnatbind.adb: Implement -di debug flag for gnatbind
19972 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
19974 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
19976 * lib-load.adb: Fix bad assertion.
19977 Found by testing and code reading.
19978 Minor reformatting.
19980 * lib-load.ads: Minor reformatting.
19982 * lib-writ.adb: There is only one R line now.
19984 * lib-writ.ads: Add documentation on making downward compatible changes
19985 to ali files so old tools work with new ali files.
19986 There is only one R line now.
19987 Add documentation on format incompatibilities (with special GPS note)
19989 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
19991 * par-load.adb: Minor reformatting
19993 * sem_ch8.adb: Fix to error message from last update
19994 Minor reformatting and restructuring of code from last update
19996 * par-prag.adb, snames.adb, snames.ads, snames.h,
19997 sem_prag.adb: Implement pragma Profile.
19999 * stylesw.adb: Implement -gnatyN switch to turn off all style check
20002 * usage.adb: Add line for -gnatyN switch
20004 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
20006 2004-02-09 Albert Lee <lee@gnat.com>
20008 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
20010 2004-02-09 Ed Schonberg <schonberg@gnat.com>
20012 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
20015 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
20016 is nested in an instance that is not frozen yet, to avoid
20017 order-of-elaboration problems in gigi.
20019 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
20020 body the attribute is legal.
20022 2004-02-09 Robert Dewar <dewar@gnat.com>
20024 * s-rident.ads: Minor comment correction
20026 * targparm.adb: Remove dependence on uintp completely. There was
20027 always a bug in Make in that it called Targparm before initializing
20028 the Uint package. The old code appeared to get away with this, but
20029 the new code did not! This caused an assertion error in gnatmake.
20031 * targparm.ads: Fix bad comment, restriction pragmas with parameters
20032 are indeed fully supported.
20034 2004-02-06 Alan Modra <amodra@bigpond.net.au>
20036 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
20038 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
20040 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
20041 with targetm.calls.promote_prototypes.
20043 2004-02-04 Robert Dewar <dewar@gnat.com>
20045 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
20046 ali.ads, gprcmd.adb: Minor reformatting
20048 * bindgen.adb: Output restrictions string for new style restrictions
20051 * impunit.adb: Add s-rident.ads (System.Rident) and
20052 s-restri (System.Restrictions)
20054 * lib-writ.adb: Fix bug in writing restrictions string (last few
20057 * s-restri.ads, s-restri.adb: Change name Restrictions to
20058 Run_Time_Restrictions to avoid conflict with package name.
20059 Add circuit to read and acquire run time restrictions.
20061 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
20063 * restrict.ads, restrict.adb: Use the new restriction
20064 No_Task_Attributes_Package instead of the old No_Task_Attributes.
20066 * sem_prag.adb: No_Task_Attributes is a synonym of
20067 No_Task_Attributes_Package.
20069 * snames.ads, snames.adb: New entry for proper handling of
20070 No_Task_Attributes.
20072 * s-rident.ads: Adding restriction No_Task_Attributes_Package
20073 (AI-00249) that supersedes the GNAT specific restriction
20074 No_Task_Attributes.
20076 2004-02-04 Ed Schonberg <schonberg@gnat.com>
20079 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
20080 body, an identifier may be wrapped in an unchecked conversion.
20082 2004-02-04 Vincent Celier <celier@gnat.com>
20084 * lib-writ.ads: Comment update for the W lines
20086 * bld.adb: (Expression): An empty string list is static
20088 * fname-uf.adb: Minor comment update
20090 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
20092 * gnatbind.adb: Initialize Cumulative_Restrictions with the
20093 restrictions on the target.
20095 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
20097 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
20100 2004-02-02 Arnaud Charlet <charlet@gnat.com>
20102 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
20104 2004-02-02 Vincent Celier <celier@gnat.com>
20106 * gprcmd.adb (Check_Args): If condition is false, print the invoked
20107 comment before the usage.
20108 Gprcmd: Fail when command is not recognized.
20109 (Usage): Document command "prefix"
20111 * g-md5.adb (Digest): Process last block.
20112 (Update): Do not process last block. Store remaining characters and
20115 * g-md5.ads (Update): Document that several call to update are
20116 equivalent to one call with the concatenated string.
20117 (Context): Add fields to allow new Update behaviour.
20119 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
20120 defaulted to False.
20121 When May_Fail is True and no existing file can be found, return No_File.
20123 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
20126 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
20127 spec file name instead on the W line.
20129 2004-02-02 Robert Dewar <dewar@gnat.com>
20131 * ali.adb: Read and acquire info from new format restrictions lines
20133 * bcheck.adb: Add circuits for checking restrictions with parameters
20135 * bindgen.adb: Output dummy restrictions data
20136 To be changed later
20138 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
20139 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
20140 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
20141 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
20142 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
20144 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
20145 the warning message on access to possibly uninitialized variable S)
20146 Minor changes for new restrictions handling.
20148 * gnatbind.adb: Minor reformatting
20149 Minor changes for new restrictions handling
20150 Move circuit for -r processing here from bcheck (cleaner)
20152 * gnatcmd.adb, gnatlink.adb: Minor reformatting
20154 * lib-writ.adb: Output new format restrictions lines
20156 * lib-writ.ads: Document new R format lines for new restrictions
20159 * s-restri.ads/adb: New files
20161 * Makefile.rtl: Add entry for s-restri.ads/adb
20163 * par-ch3.adb: Fix bad error messages starting with upper case letter
20166 * restrict.adb: Major rewrite throughout for new restrictions handling
20167 Major point is to handle restrictions with parameters
20169 * restrict.ads: Major changes in interface to handle restrictions with
20170 parameters. Also generally simplifies setting of restrictions.
20172 * snames.ads/adb: New entry for proper handling of No_Requeue
20174 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
20175 restriction counting.
20176 Other minor changes for new restrictions handling
20178 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
20179 Restriction_Warnings now allows full parameter notation
20180 Major rewrite of Restrictions for new restrictions handling
20182 2004-02-02 Javier Miranda <miranda@gnat.com>
20184 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
20185 syntax rule for object renaming declarations.
20186 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
20187 component definitions.
20189 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
20191 (Array_Type_Declaration): Give support to access components. In addition
20192 it was also modified to reflect the name of the object in anonymous
20193 array types. The old code did not take into account that it is possible
20194 to have an unconstrained anonymous array with an initial value.
20195 (Check_Or_Process_Discriminants): Allow access discriminant in
20197 (Process_Discriminants): Allow access discriminant in non-limited types
20198 Initialize the new Access_Definition field in N_Object_Renaming_Decl
20199 node. Change Ada0Y to Ada 0Y in comments
20201 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
20202 equality operators.
20203 Change Ada0Y to Ada 0Y in comments
20205 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
20206 renamings Change Ada0Y to Ada 0Y in comments
20208 * sem_type.adb (Find_Unique_Type): Give support to the equality
20209 operators for universal access types
20210 Change Ada0Y to Ada 0Y in comments
20212 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
20214 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
20216 (N_Object_Renaming_Declaration): Addition of Access_Definition field
20217 Change Ada0Y to Ada 0Y in comments
20219 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
20220 component definition and object renaming nodes
20221 Change Ada0Y to Ada 0Y in comments
20223 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
20225 * restrict.adb: Use the new restriction identifier
20226 No_Requeue_Statements instead of the old No_Requeue for defining the
20227 restricted profile.
20229 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
20230 No_Requeue_Statements.
20232 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
20233 that supersedes the GNAT specific restriction No_Requeue. The later is
20234 kept for backward compatibility.
20236 2004-02-02 Ed Schonberg <schonberg@gnat.com>
20238 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
20239 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
20240 pragma and fix incorrect ones.
20242 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
20243 warning if the pragma is redundant.
20245 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
20247 * 5staprop.adb: Add missing 'constant' keywords.
20249 * Makefile.in: use consistent value for SYMLIB on
20250 platforms where libaddr2line is supported.
20252 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20254 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
20257 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
20259 * init.c (__gnat_install_handler): Setup an alternate stack for signal
20260 handlers in the environment thread. This allows proper propagation of
20261 an exception on stack overflows in this thread even when the builtin
20262 ABI stack-checking scheme is used without support for a stack reserve
20265 * utils.c (create_field_decl): Augment the head comment about bitfield
20266 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
20267 here, because the former is not accurate enough at this point.
20268 Let finish_record_type decide instead.
20269 Don't make a bitfield if the field is to be addressable.
20270 Always set a size for the field if the record is packed, to ensure the
20271 checks for bitfield creation are triggered.
20272 (finish_record_type): During last pass over the fields, clear
20273 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
20274 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
20275 from DECL_BIT_FIELD.
20277 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
20279 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
20280 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
20281 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
20283 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20285 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
20287 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
20288 (ZCX_By_Default): Likewise.
20289 (Front_End_ZCX_Support): Likewise.
20291 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
20292 (Initialize_Lock): Mark Level unreferenced.
20293 (Sleep): Mark Reason unreferenced.
20294 (Timed_Sleep): Likewise.
20295 (Wakeup): Likewise.
20296 (Exit_Task): Use Result.
20297 (Check_No_Locks): Mark Self_ID unreferenced.
20299 * 5gtasinf.adb (New_Sproc): Make Attr constant.
20300 (Bound_Thread_Attributes): Make Sproc constant.
20301 (New_Bound_Thread_Attributes): Likewise.
20303 2004-01-26 Ed Schonberg <schonberg@gnat.com>
20305 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
20306 one-dimensional array an slice assignments, when component type is
20309 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
20310 component type is controlled, and control_actions are in effect, use
20311 TSS procedure rather than generating inline code.
20313 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
20314 arrays with controlled components.
20316 2004-01-26 Vincent Celier <celier@gnat.com>
20318 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
20319 command line for the non VMS case.
20321 * gnatlink.adb (Process_Binder_File): When building object file, if
20322 GNU linker is used, put all object paths between quotes, to prevent ld
20323 error when there are unusual characters (such as '!') in the paths.
20325 * Makefile.generic: When there are sources in Ada and the main is in
20326 C/C++, invoke gnatmake with -B, instead of -z.
20328 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
20329 from VMS_Conversion.
20330 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
20331 specification of argument file on the command line.
20333 2004-01-26 Bernard Banner <banner@gnat.com>
20335 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
20337 2004-01-26 Ed Schonberg <schonberg@gnat.com>
20339 * snames.adb: Update copyright notice.
20340 Add info on slice assignment for controlled arrays.
20342 2004-01-23 Robert Dewar <dewar@gnat.com>
20344 * exp_aggr.adb: Minor reformatting
20346 * exp_ch9.adb: Minor code clean up
20348 Fix bad character in comment
20351 * targparm.adb (Get_Target_Parameters): Give clean abort error on
20352 unexpected end of file, along with more detailed message.
20354 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20356 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
20359 * decl.c (copy_alias_set): New function.
20360 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
20362 2004-01-23 Doug Rupp <rupp@gnat.com>
20364 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
20365 lib$${file} in case subsequent character is not a separator.
20367 2004-01-23 Vincent Celier <celier@gnat.com>
20369 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
20370 when the GCC version is at least 3.
20372 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
20373 Remove all "Opt.", to prepare for opt split
20375 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
20376 Extends_All. Set to True when the project parsed is an extending all
20377 project. Fails for importing an extending all project only when the
20378 imported project is an extending all project.
20379 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
20380 depending on the value of Extends_All returned.
20382 * prj-proc.adb (Process): Check that no project shares its object
20383 directory with a project that extends it, directly or indirectly,
20384 including a virtual project.
20385 Check that no project extended by another project shares its object
20386 directory with another also extended project.
20388 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
20389 Kind = N_With_Clause
20391 * prj-tree.ads: Minor reformatting
20392 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
20394 2004-01-23 Ed Schonberg <schonberg@gnat.com>
20396 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
20397 applies to a type with an incomplete view, use full view in Name of
20398 clause, for consistency with uses of Get_Attribute_Definition_Clause.
20400 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
20402 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
20403 SCHED_RR, since other values are not supported by this policy.
20404 (Initialize): Move initialization of mutex attribute to package
20405 elaboration, to prevent early access to this variable.
20407 * Makefile.in: Remove mention of Makefile.adalib, unused.
20409 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
20410 1ssecsta.ads: Removed, unused.
20412 2004-01-21 Javier Miranda <miranda@gnat.com>
20414 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
20415 entity if already built in the current scope.
20417 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
20418 reminder in internal scopes. Required for nested limited aggregates.
20420 2004-01-21 Doug Rupp <rupp@gnat.com>
20422 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
20423 VMS. Replace all occurences of libgnat- and libgnarl- with
20424 libgnat$(hyphen) and libgnarl$(hyphen).
20425 Fixed shared library build problem on VMS.
20427 2004-01-21 Robert Dewar <dewar@gnat.com>
20429 * mlib-prj.adb: Minor reformatting
20431 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
20433 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
20434 'constant' keywords for declaration of pointers that are not modified.
20436 * exp_pakd.adb: Fix English in comment.
20438 2004-01-21 Ed Schonberg <schonberg@gnat.com>
20441 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
20442 copy all attributes of the parent, including the foreign language
20445 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
20448 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
20449 for 'delay until' statement.
20451 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
20453 * Make-lang.in: Replace $(docdir) with doc.
20454 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
20455 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
20456 to use consistent MAKEINFO rule.
20457 (ada.man, ada.srcman): Dummy entry.
20458 (ADA_INFOFILES): Define.
20459 (ada.info, ada.srcinfo): New rules.
20461 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
20463 * utils.c: Update copyright notice, missed in previous change.
20465 2004-01-19 Vincent Celier <celier@gnat.com>
20467 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
20468 args if Bind is True. Set First_ALI, if not already done.
20469 (Build_Library): For Stand Alone Libraries, extract from one ALI file
20470 an eventual --RTS switch, for gnatbind, and all backend switches +
20471 --RTS, for linking.
20473 2004-01-19 Robert Dewar <dewar@gnat.com>
20475 * sem_attr.adb, memtrack.adb: Minor reformatting
20477 2004-01-19 Ed Schonberg <schonberg@gnat.com>
20479 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
20480 that rename enumeration literals. This is properly done in sem_eval.
20482 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
20483 to functions that rename enumeration literals.
20485 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
20486 functions that rename enumeration literals.
20488 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
20490 * Make-lang.in (utils.o): Depend on target.h.
20491 * utils.c: Include target.h.
20492 (process_attributes): Use targetm.have_named_sections instead
20493 of ASM_OUTPUT_SECTION_NAME.
20495 2004-01-16 Andreas Jaeger <aj@suse.de>
20497 * Makefile.in: Add $(DESTDIR).
20499 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
20501 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
20502 also when not defining if a Size clause applies. That information is
20505 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
20507 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
20508 symbolic links for the shared gnat run time when needed.
20510 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
20512 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
20513 for writing, and terminate with an error message if not.
20515 2004-01-15 Ed Schonberg <schonberg@gnat.com>
20517 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
20518 warning on an access to subprogram in an instance, when the target
20519 type is declared in the same generic unit.
20520 (Eval_Attribute): If 'access is known to fail accessibility check,
20521 rewrite as a raise statement.
20523 2004-01-15 GNAT Script <nobody@gnat.com>
20525 * Make-lang.in: Makefile automatically updated
20527 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
20529 * Make-lang.in (ada.srcextra): Dummy entry.
20531 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
20533 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
20535 2004-01-13 Ed Schonberg <schonberg@gnat.com>
20537 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
20538 components that are initialized with aggregates.
20540 2004-01-13 Vincent Celier <celier@gnat.com>
20542 * gnatlink.adb (Process_Binder_File): To find directory of shared
20543 libgcc, if "gcc-lib" is not a subdirectory, look for the last
20544 subdirectory "lib" in the path of the shared libgnat or libgnarl.
20546 * make.adb (Gnatmake): If GCC version is at least 3, link with
20547 -shared-libgcc, when there is at least one shared library project.
20549 * opt.ads (GCC_Version): New integer constant.
20551 * adaint.c (get_gcc_version): New function.
20553 2004-01-13 Robert Dewar <dewar@gnat.com>
20555 * sem_dist.adb, sem_res.adb, sem_util.adb,
20556 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
20557 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
20559 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
20561 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
20562 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
20565 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
20567 * misc.c: Remove trailing spaces.
20568 Update copyright notice missed in previous change.
20571 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
20574 * Makefile.generic: Update copyright.
20575 Add license notice.
20577 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
20578 of prefix/share/make.
20580 * Makefile.prolog: Update copyright.
20581 Add license notice.
20583 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
20585 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
20586 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
20587 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
20590 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
20593 2004-01-12 Javier Miranda <miranda@gnat.com>
20595 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
20596 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
20597 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
20598 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
20599 Component_Definition node.
20601 2004-01-12 Ed Falis <falis@gnat.com>
20603 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
20605 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
20607 * link.c: Change default libgnat kind to STATIC for FreeBSD.
20609 2004-01-12 Bernard Banner <banner@gnat.com>
20611 * Makefile.in: map 86numaux to a-numaux for x86_64
20613 2004-01-12 Ed Schonberg <schonberg@gnat.com>
20615 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
20616 generated to rename a generic actual, go to the actual itself, the
20617 subtype is not a user-visible entity.
20619 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
20620 part is a private subtype, reset the visibility of its full view, if
20621 any, to be consistent.
20624 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
20625 to use a generic package G as a formal package for another generic
20628 2004-01-12 Robert Dewar <dewar@gnat.com>
20630 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
20632 * usage.adb: Remove mention of obsolete -gnatwb switch
20633 Noticed during code reading
20635 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
20637 * 1ssecsta.adb: Minor changes for -gnatwa warnings
20639 2004-01-12 GNAT Script <nobody@gnat.com>
20641 * Make-lang.in: Makefile automatically updated
20643 2004-01-09 Mark Mitchell <mark@codesourcery.com>
20645 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
20647 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20649 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
20651 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
20653 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
20654 Update comment and copyright date.
20655 * stamp-xgnatug: Delete.
20657 2004-01-05 Robert Dewar <dewar@gnat.com>
20659 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
20660 be modified by the binder generated main program if the -D switch is
20663 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
20664 imported functions (since now we expect this to be done for imported
20667 * 5vtaprop.adb: Add several ??? for sections requiring more comments
20668 Minor reformatting throughout
20670 * 5zinit.adb: Minor reformatting
20671 Add 2004 to copyright date
20672 Minor changes to avoid -gnatwa warnings
20673 Correct some instances of using OR instead of OR ELSE (noted while
20674 doing reformatting)
20676 * sprint.adb: Minor updates to avoid -gnatwa warnings
20678 * s-secsta.ads, s-secsta.adb:
20679 (SS_Get_Max): New function to obtain high water mark for ss stack
20680 Default_Secondary_Stack is not a constant since it may be modified by
20681 the binder generated main program if the -D switch is used.
20683 * switch-b.adb: New -Dnnn switch for binder
20686 Make -gnatg imply all warnings currently in -gnatwa
20688 * vms_conv.adb: Minor reformatting
20689 Add 2004 to copyright notice
20690 Add 2004 to printed copyright notice
20692 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
20693 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
20694 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
20695 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
20696 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
20697 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
20698 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
20699 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
20700 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
20701 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
20702 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
20703 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
20704 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
20705 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
20706 checks.adb, clean.adb, cstand.adb, einfo.ads,
20707 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
20708 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
20709 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
20710 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
20711 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
20712 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
20713 Minor reformatting and code clean ups.
20714 Minor changes to prevent -gnatwa warnings
20716 * ali.adb: Minor reformatting and cleanup of code
20717 Acquire new SS indication of secondary stack use from ali files
20719 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
20720 (since now we expect this to be done for imported functions)
20722 * bindgen.adb: Generate call to modify default secondary stack size if
20725 * bindusg.adb: Add line for new -D switch
20727 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
20728 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
20729 Add circuitry for both records and arrays to avoid gigi
20730 processing if the type involved has non-bit-aligned components
20732 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
20733 N_String_Literal node always references an E_String_Literal_Subtype
20734 entity. This may not be true in the future.
20735 (Possible_Bit_Aligned_Component): Move processing of
20736 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
20738 * exp_ch6.adb (Expand_Thread_Body): Pick up
20739 Default_Secondary_Stack_Size as variable so that we get value modified
20740 by possible -Dnnn binder parameter.
20742 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
20743 (Type_May_Have_Bit_Aligned_Components): New function.
20745 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
20746 (Type_May_Have_Bit_Aligned_Components): New function.
20748 * fe.h: (Set_Identifier_Casing): Fix prototype.
20749 Add declaration for Sem_Elim.Eliminate_Error_Msg.
20750 Minor reformatting.
20752 * freeze.adb (Freeze_Entity): Add RM reference to error message about
20753 importing constant atomic/volatile objects.
20754 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
20755 unless explicit Pure_Function pragma given, to avoid insidious bug of
20756 call to non-pure imported function getting eliminated.
20758 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
20759 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
20760 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
20761 Add 2004 to printed copyright notice
20763 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
20766 * Makefile.rtl: Add entry for g-sestin.o
20767 g-sestin.ads: New file.
20769 * mdll.adb: Minor changes to avoid -gnatwa warnings
20771 * mlib-tgt.adb: Minor reformatting
20773 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
20774 New switch Sec_Stack_Used (GNAT, GNATBIND)
20775 Make Default_Secondary_Stack_Size a variable instead of a constant,
20776 so that it can be modified by the new -Dnnn bind switch.
20778 * rtsfind.adb (Load_Fail): Give full error message in configurable
20779 run-time mode if all_errors mode is set. This was not done in the case
20780 of a file not found, which was an oversight.
20781 Note if secondary stack unit is used by compiler.
20783 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
20784 ineffective elaborate all pragmas on non-visible packages (this
20785 happened when a renamed subprogram was called). Now the elaborate all
20786 always goes on the package containing the renaming rather than the one
20787 containing the renamed subprogram.
20789 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
20790 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
20792 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
20793 has an Etype that references an E_String_Literal.
20794 (Eval_String_Literal): Avoid assumption that N_String_Literal node
20795 always references an E_String_Literal_Subtype entity. This may not
20796 be true in the future.
20798 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
20801 * sem_res.adb (Resolve): Specialize msg for function name used in proc
20804 2004-01-05 Ed Falis <falis@gnat.com>
20806 * g-debuti.adb: Replaced direct boolean operator with short-circuit
20809 2004-01-05 Vincent Celier <celier@gnat.com>
20811 * bld.adb: Minor comment updates
20812 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
20815 * make.adb (Gnatmake): Special process for files to compile/check when
20816 -B is specified. Fail when there are only foreign mains in attribute
20817 Main of the project file and -B is not specified. Do not skip bind/link
20818 steps when -B is specified.
20820 * makeusg.adb: Document new switch -B
20822 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
20824 * switch-m.adb: (Scan_Make_Switches): Process -B switch
20826 * vms_data.ads: Add new GNAT PRETTY qualifier
20827 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
20829 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20831 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
20834 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
20835 Set_Identifier_Casing.
20837 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
20838 has size that overflows.
20840 2004-01-05 Gary Dismukes <dismukes@gnat.com>
20842 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
20843 -gnatwa warning on static condition.
20845 2004-01-05 Doug Rupp <rupp@gnat.com>
20847 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
20849 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
20851 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
20852 all attributes, including read-only attribute.
20854 2004-01-05 Pascal Obry <obry@gnat.com>
20856 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
20857 library naming scheme.
20859 * mlib-prj.adb (Build_Library): Generate different names for the static
20860 or dynamic version of the GNAT runtime. This is needed to support the
20861 new shared library naming scheme.
20862 (Process_Binder_File): Add detection of shared library in binder file
20863 based on the new naming scheme.
20865 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
20866 scheme for the shared runtime libraries.
20869 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
20871 (install-gnatlib): Do not create symlinks for shared libraries.
20872 (gnatlib-shared-default): Idem.
20873 (gnatlib-shared-dual-win32): New target. Not used for now as the
20874 auto-import feature does not support arrays/records.
20875 (gnatlib-shared-win32): Do not create copy for the shared libraries.
20876 (gnatlib-shared-vms): Fix shared runtime libraries names.
20878 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
20879 dependent runtime shared library name.
20881 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
20883 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
20886 2004-01-05 Ed Schonberg <schonberg@gnat.com>
20888 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
20889 protected objects when allocator has a subtype indication, not a
20890 qualified expression. Note that qualified expressions may have to be
20891 checked when limited aggregates are implemented.
20893 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
20894 pure, emit warning.
20895 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
20896 subprogram is imported, remove warning.
20898 2004-01-05 Geert Bosch <bosch@gnat.com>
20900 * s-poosiz.adb: Update copyright notice.
20901 (Allocate): Use Task_Lock to protect against concurrent access.
20902 (Deallocate): Likewise.
20904 2004-01-05 Joel Brobecker <brobecker@gnat.com>
20906 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
20909 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
20911 * gnat_ug.texi: Force a CVS commit by updating copyright.
20912 * gnat_ug_vxw.texi: Regenerate.
20913 * gnat_ug_wnt.texi: Regenerate.
20914 * gnat_ug_vms.texi: Regenerate.
20915 * gnat_ug_unx.texi: Regenerate.
20917 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
20919 * trans.c: Remove uses of "register" specifier in
20920 declarations of local variables.
20922 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
20924 * stamp-xgnatug: New stamp file.
20925 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
20926 (ada/doctools/xgnatug): Add $(build_exeext).
20927 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
20928 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
20930 2003-12-17 Ed Falis <falis@gnat.com>
20932 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
20935 * a-exextr.adb: Add context clause for
20936 Ada.Exceptions.Last_Chance_Handler.
20938 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
20940 * cstand.adb (Create_Standard): Change the way how the declaration of
20941 the Duration type is created (making it the same way as it is for all
20942 the other standard types).
20944 2003-12-17 Robert Dewar <dewar@gnat.com>
20946 * s-crtl.ads: Fix header format
20947 Change Pure to Preelaborate
20949 2003-12-17 Ed Schonberg <schonberg@gnat.com>
20951 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
20952 the expression type only if it is declared in the current unit.
20954 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
20955 are universal and already analyzed, as can occur in constrained
20956 subcomponents that depend on discriminants, when one constraint is a
20959 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
20960 type Any_Fixed is legal as the argument of a conversion, if only one
20961 fixed-point type is in context.
20963 2003-12-17 GNAT Script <nobody@gnat.com>
20965 * Make-lang.in: Makefile automatically updated
20967 2003-12-15 Robert Dewar <dewar@gnat.com>
20969 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
20972 2003-12-15 Vincent Celier <celier@gnat.com>
20974 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
20975 (Gnatchop): Do not set failure status when reporting the number of
20978 2003-12-15 Doug Rupp <rupp@gnat.com>
20980 * s-ctrl.ads: New file.
20982 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
20984 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
20985 (GNATBIND_OBJS): Add ada/s-crtl.o.
20987 * Makefile.in [VMS]: Clean up ifeq rules.
20989 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
20990 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
20991 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
20992 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
20993 s-tasdeb.adb: Update copyright.
20994 Import System.CRTL.
20995 Make minor modifications to use System.CRTL declared functions instead
20996 of importing locally.
20998 2003-12-15 GNAT Script <nobody@gnat.com>
21000 * Make-lang.in: Makefile automatically updated
21002 2003-12-11 Ed Falis <falis@gnat.com>
21004 * 5zinit.adb: Clean up.
21006 * 5zintman.adb (Notify_Exception): replaced case statement with a call
21007 to __gnat_map_signal, imported from init.c to support
21008 signal -> exception mappings that depend on the vxWorks version.
21011 Created and exported __gnat_map_signal to support signal -> exception
21012 mapping that is dependent on the VxWorks version.
21013 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
21015 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
21017 * 5wosinte.ads: Link with -mthreads switch.
21019 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
21021 * init.c (__gnat_install_handler [NetBSD]): Set
21022 __gnat_handler_installed, as done on all other platforms.
21023 Remove duplicated code.
21025 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
21027 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
21029 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
21031 * sinfo.ads: Fix inconsistent example code in comment.
21033 2003-12-11 Robert Dewar <dewar@gnat.com>
21035 * a-tiinau.adb: Add a couple of comments
21037 * sem_ch3.adb: Minor reformatting
21040 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
21041 Minor reformatting throughout
21043 2003-12-11 Ed Schonberg <schonberg@gnat.com>
21045 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
21046 bounds of a loop, create a separate block in order to generate proper
21047 cleanup actions to prevent memory leaks.
21049 * sem_res.adb (Resolve_Call): After a call to
21050 Establish_Transient_Scope, the call may be rewritten and relocated, in
21051 which case no further processing is needed.
21053 * sem_util.adb: (Wrong_Type): Refine previous fix.
21054 Fixes ACATS regressions.
21057 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
21060 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
21062 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
21063 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
21066 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
21069 2003-12-08 Robert Dewar <dewar@gnat.com>
21071 * 7sintman.adb: Minor reformatting
21073 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
21074 standard linker options to get standard libraries linked. We now plan
21075 to provide dummy versions of these libraries to match the appropriate
21076 configurable run-time (e.g. if a library is not needed at all, provide
21077 a dummy empty library).
21079 * targparm.ads: Configurable_Run_Time mode no longer affects linker
21080 options (-L parameters and standard libraries). What we plan to do is
21081 to provide dummy libraries where the libraries are not required.
21083 * gnatbind.adb: Minor comment improvement
21085 2003-12-08 Javier Miranda <miranda@gnat.com>
21087 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
21088 aggregate in the parent. Otherwise constants with limited aggregates
21089 are not supported. Add new formal to pass the component type (Ctype).
21090 It is required to call the corresponding IP subprogram in case of
21091 default initialized components.
21092 (Gen_Assign): In case of default-initialized component, generate a
21093 call to the IP subprogram associated with the component.
21094 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
21095 of aggregate with default initialized components.
21096 (Has_Default_Init_Comps): Improve implementation to recursively check
21097 all the present expressions.
21099 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
21100 to indicate that the initialization call corresponds to a
21101 default-initialized component of an aggregate.
21102 In case of default initialized aggregate with tasks this parameter is
21103 used to generate a null string (this is just a workaround that must be
21104 improved later). In case of discriminants, this parameter is used to
21105 generate a selected component node that gives access to the discriminant
21108 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
21109 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
21110 allocated aggregates with default-initialized components.
21112 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
21113 the box notation is used in positional aggregates.
21115 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
21117 * lib.ads: Fix typo in comment
21119 2003-12-08 Vincent Celier <celier@gnat.com>
21121 * prj.adb (Project_Empty): New component Unkept_Comments
21122 (Scan): Remove procedure; moved to Prj.Err.
21124 * prj.ads (Project_Data): New Boolean component Unkept_Comments
21125 (Scan): Remove procedure; moved to Prj.Err.
21127 * prj-dect.adb: Manage comments for the different declarations.
21129 * prj-part.adb (With_Record): New component Node
21130 (Parse): New Boolean parameter Store_Comments, defaulted to False.
21131 Set the scanner to return ends of line and comments as tokens, if
21132 Store_Comments is True.
21133 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
21134 comments are associated with these nodes. Store the node IDs in the
21136 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
21138 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
21139 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
21140 current project. Call Tree.Restore afterwards. Set the various nodes
21141 for comment storage (Next_End, End_Of_Line, Previous_Line,
21144 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
21145 defaulted to False.
21147 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
21148 to False. When Truncated is True, truncate the string, never go to the
21150 (Write_End_Of_Line_Comment): New procedure
21151 (Print): Process comments for nodes N_With_Clause,
21152 N_Package_Declaration, N_String_Type_Declaration,
21153 N_Attribute_Declaration, N_Typed_Variable_Declaration,
21154 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
21155 Process nodes N_Comment.
21157 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
21158 without comments and there are some comments, set the flag
21159 Unkept_Comments to True.
21160 (Scan): If there are comments, set the flag Unkept_Comments to True and
21161 clear the comments.
21162 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
21163 (Next_End_Nodes: New table
21164 (Comment_Zones_Of): New function
21165 (Scan): New procedure; moved from Prj. Accumulate comments in the
21166 Comments table and set end of line comments, comments after, after end
21168 (Add_Comments): New procedure
21169 (Save, Restore, Seset_State): New procedures
21170 (There_Are_Unkept_Comments): New function
21171 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
21172 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
21174 (First_Comment_After, First_Comment_After_End): New functions
21175 (First_Comment_Before, First_Comment_Before_End): New functions
21176 (Next_Comment): New function
21177 (End_Of_Line_Comment, Follows_Empty_Line,
21178 Is_Followed_By_Empty_Line): New functions
21179 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
21180 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
21181 (Set_Next_Comment): New procedure
21182 (Default_Project_Node): Associate comment before if the node can store
21185 * scans.ads (Token_Type): New enumeration value Tok_Comment
21186 (Comment_Id): New global variable
21188 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
21189 defaulted to False.
21190 (Scan): Store position of start of comment. If comments are tokens, set
21191 Comment_Id and set Token to Tok_Comment when scanning a comment.
21192 (Set_Comment_As_Token): New procedure
21194 * sinput-p.adb: Update Copyright notice
21195 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
21196 that no longer exists.
21198 2003-12-08 Javier Miranda <miranda@gnat.com>
21200 * sem_aggr.adb: Add dependence on Exp_Tss package
21201 Correct typo in comment
21202 (Resolve_Aggregate): In case of array aggregates set the estimated
21203 type of the aggregate before calling resolve. This is needed to know
21204 the name of the corresponding IP in case of limited array aggregates.
21205 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
21206 in case of default initialized array components.
21208 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
21209 types. Required to give support to limited aggregates in generic
21212 2003-12-08 Ed Schonberg <schonberg@gnat.com>
21214 * sem_ch3.adb (Check_Initialization): For legality purposes, an
21215 inlined body functions like an instantiation.
21216 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
21217 until bounds are analyzed, to diagnose premature use of type.
21219 * sem_util.adb (Wrong_Type): Improve error message when the type of
21220 the expression is used prematurely.
21222 2003-12-08 GNAT Script <nobody@gnat.com>
21224 * Make-lang.in: Makefile automatically updated
21226 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
21228 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
21229 they are automatically generated by Make-lang.in and cause nothing but
21230 maintenance troubles.
21232 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
21234 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
21235 version of this unit).
21237 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
21239 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
21240 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
21241 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
21242 the body of System.Interrupt_Management common to several targets.
21243 Update copyright notice when appropriate.
21245 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
21248 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
21249 to ensure that the kernel fills in the interrupted context structure
21250 before calling a signal handler, which is necessary to be able to
21251 unwind past it. Update the copyright notice.
21253 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
21255 * a-elchha.ads: New file.
21257 * a-elchha.adb: New default last chance handler. Contents taken from
21258 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
21260 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
21261 is moved to a-elchha.adb to provide a target-independent default last
21264 * Makefile.rtl: Add a-elchha.o
21266 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
21268 2003-12-05 Ed Schonberg <schonberg@gnat.com>
21270 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
21271 declared in an instance, do not inline the call if the instance is not
21272 frozen yet, to prevent order of elaboration problems.
21274 * sem_prag.adb: Add comments for previous fix.
21276 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
21278 * g-table.adb: Use the right variable in Set_Item.
21279 Update copyright notice.
21281 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
21283 * Makefile.in: Remove unused rules.
21285 2003-12-05 Vincent Celier <celier@gnat.com>
21287 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
21288 -nostdlib. Not needed here after all.
21290 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
21293 * adaint.h, adaint.c, g-os_lib.ads:
21294 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
21295 on some platforms (including FreeBSD), it is a 64 bit value.
21296 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
21298 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
21300 * gnatvsn.ads (Library_Version): Now contain only the relevant
21302 (Verbose_Library_Version): New constant.
21304 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
21305 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
21306 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
21308 * gnatlbr.adb: Clean up: replace Library_Version by
21309 Verbose_Library_Version.
21311 * make.adb, lib-writ.adb, exp_attr.adb:
21312 Clean up: replace Library_Version by Verbose_Library_Version.
21314 * 5lintman.adb: Removed.
21317 Update and simplify computation of LIBRARY_VERSION.
21318 Fix computation of GSMATCH_VERSION.
21319 5lintman.adb is no longer used: replaced by 7sintman.adb.
21321 2003-12-03 Robert Dewar <dewar@gnat.com>
21324 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
21325 name. Modified to consider small non-bit-packed arrays as troublesome
21326 and in need of component-by-component assigment expansion.
21328 2003-12-03 Vincent Celier <celier@gnat.com>
21330 * lang-specs.h: Process nostdlib as nostdinc
21332 * back_end.adb: Update Copyright notice
21333 (Scan_Compiler_Arguments): Process -nostdlib directly.
21335 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
21338 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
21339 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
21340 included in HIE_NONE_TARGET_PAIRS.
21342 2003-12-03 Ed Schonberg <schonberg@gnat.com>
21345 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
21346 is legal in an instance, because legality is cheched in the template.
21349 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
21350 appplied to an unchecked conversion of a formal parameter.
21353 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
21356 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
21358 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
21359 routines. The second one is new functionality to deal with backtracing
21360 through signal handlers.
21361 (unwind): Split into the two separate subroutines above.
21362 Update the documentation, and deal properly with sizeof (REG) different
21363 from sizeof (void*).
21365 2003-12-01 Nicolas Setton <setton@act-europe.fr>
21367 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
21368 so that the debugger can reliably access the value of the parameter,
21369 and therefore is able to display the exception name when an exception
21370 breakpoint is reached.
21372 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
21374 * fmap.adb: Fix typo in warning message.
21376 * g-socket.ads, g-socket.adb: Make Free a visible instance of
21377 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
21379 2003-12-01 Vincent Celier <celier@gnat.com>
21381 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
21383 (Build_Library): Get the switches only if Default_Switches is declared
21386 2003-12-01 Ed Schonberg <schonberg@gnat.com>
21388 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
21389 actuals that are indexed components, reanalyze actual to ensure that
21390 packed array references are properly expanded.
21392 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
21393 attempted assignment to a discriminant.
21395 2003-12-01 Robert Dewar <dewar@gnat.com>
21397 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
21400 * switch-c.adb: Minor reformatting of comments
21402 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
21404 * Makefile.in: Clean ups.
21406 2003-12-01 GNAT Script <nobody@gnat.com>
21408 * Make-lang.in: Makefile automatically updated
21410 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
21412 * 5wsystem.ads: Disable zero cost exception, not ready yet.
21414 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
21416 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
21417 to force serialization.
21419 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
21421 * g-socket.ads, g-socket.adb:
21422 Clarify documentation of function Stream. Introduce a Free procedure
21423 to release the returned Stream once it becomes unused.
21425 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
21427 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
21429 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
21430 since NT 4 cannot handle timeout values that are too large,
21431 e.g. DWORD'Last - 1.
21433 2003-11-26 Ed Schonberg <schonberg@gnat.com>
21436 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
21437 in procedure calls and whose expansion must be deferred.
21439 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
21443 (Build_Derived_Array_Type): Create operator for unconstrained type
21444 if ancestor is unconstrained.
21446 2003-11-26 Vincent Celier <celier@gnat.com>
21448 * make.adb (Project_Object_Directory): New global variable
21449 (Change_To_Object_Directory): New procedure
21450 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
21451 of Change_Dir directly. Do not change working directory to object
21452 directory of main project after each compilation.
21453 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
21455 Change to object directory of main project before binding step.
21456 (Initialize): Initialize Project_Object_Directory to No_Project
21459 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
21460 binding a Stand-Alone Library.
21462 * output.adb: Update Copyright notice
21463 (Write_Char): Output buffer when full
21465 2003-11-26 Robert Dewar <dewar@gnat.com>
21467 * sem_ch13.adb: (Check_Size): Reset size if size is too small
21470 (Check_Size): Fix documentation to include bit-packed array case
21472 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
21474 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
21476 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
21478 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
21481 * utils.c (init_gigi_decls): Change name of built-in setjmp to
21482 __builtin_setjmp, since this is apparently needed by recent
21485 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21487 * adadecode.c: Only include ctype.h if not IN_GCC.
21488 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
21490 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
21493 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
21494 signals and interrupts.
21496 * 5zintman.ads: New File.
21498 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
21499 add exception signals to the set of unmasked signals.
21502 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
21503 between signals and interrupts.
21504 Add to Unblocked_Signal_Mask the set of signals that are in
21508 Adding a check to see whether the Interrupt_ID we want to unmask is in
21509 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
21510 reason is that the index type of the Keep_Unmasked array is not always
21511 Interrupt_ID; it may be a subtype of Interrupt_ID.
21513 2003-11-24 Gary Dismukes <dismukes@gnat.com>
21516 (Remove_Side_Effects): Condition constantness of object created for a
21517 an unchecked type conversion on the constantness of the expression
21518 to ensure the correct value for 'Constrained when passing components
21519 of view-converted class-wide objects.
21521 2003-11-24 Robert Dewar <dewar@gnat.com>
21523 * par-load.adb (Load): Improve handling of misspelled and missing units
21524 Removes several cases of compilation abandoned messages
21526 * lib.adb: (Remove_Unit): New procedure
21528 * lib.ads: (Remove_Unit): New procedure
21530 * lib-load.adb: Minor reformatting
21532 2003-11-24 Vincent Celier <celier@gnat.com>
21535 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
21536 (Marking_Label): Label to mark processed source files. Incremented for
21538 (Gnatmake): Increase Marking_Labet for each executable
21539 (Is_Marked): Compare against marking label
21540 (Mark): Mark with marking label
21542 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
21545 Move the declaration of the TSD for System.Threads to System.Soft_Links.
21548 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
21549 (rts-cert): build a single relocatable object for the run-time lib.
21552 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
21555 Use gnatls rather than gcc to obtain the location of GNAT RTL for
21558 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
21560 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
21561 can not use it as before (that is, as a variable) when dumping it into
21562 the tree file. Add a local variable to store the result of this
21563 function and to be used as the string to be written into the tree.
21565 * scn.adb (Initialize_Scanner): Add comments explaining the recent
21568 * sinput.adb (Source_First, Source_Last): In case of
21569 Internal_Source_File, replace returning attributes of
21570 Internal_Source_Ptr (which is wrong) with returning attributes of
21573 2003-11-24 Ed Schonberg <schonberg@gnat.com>
21576 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
21577 used for implicit concatenation operators.
21581 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
21582 task bodies that are in the scope of a Suppress pragma.
21583 (Check_A Call): Use the flag to prevent spurious elaboration checks.
21585 * sinfo.ads, sinfo.adb:
21586 New flag No_Elaboration_Check on function/procedure calls, to properly
21587 suppress checks on calls in task bodies that are within a local suppress
21591 (Expand_Concatenate_Other): Use the proper integer type for the
21592 expression for the upper bound, to avoid universal_integer computations
21595 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
21597 * .cvsignore: Delete.
21599 2003-11-21 Andreas Schwab <schwab@suse.de>
21601 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
21603 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
21605 * 5wsystem.ads: Enable zero cost exception.
21607 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
21609 * 5ztiitho.adb: Remove an unreferenced variable.
21611 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
21613 * adaint.c: For FreeBSD, use mkstemp.
21615 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
21617 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
21619 2003-11-21 Robert Dewar <dewar@gnat.com>
21621 * bld.adb: Remove useless USE of gnatvsn
21623 * gnatchop.adb: Minor reformatting
21624 Clean up version handling to be more consistent
21626 * gnatxref.adb: Minor reformatting
21628 * gprcmd.adb: Minor reformatting
21629 Fix output of copyright to be more consistent with other tools
21631 2003-11-21 Vincent Celier <celier@gnat.com>
21633 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
21635 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
21637 * atree.adb (Initialize): Add initializations for global variables
21638 used in New_Copy_Tree.
21640 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
21641 Internal_Source_File as the actual).
21642 Put the set of statements creating Any_Character before the set of
21643 statements creating Any_Array to have Any_Character fully initialized
21644 when it is used in creating Any_Array.
21646 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
21647 not call Scan in case if the actual is Internal_Source_File
21648 Add 2003 to copyright note.
21650 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
21651 processing Internal_Source_File.
21653 * types.ads: Add the constant Internal_Source_File representing the
21654 source buffer for artificial source-code-like strings created within
21655 the compiler (the definition of Source_File_Index is changed).
21657 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
21659 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
21660 56system.ads: New file, FreeBSD version.
21662 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
21664 * Make-lang.in (ada.extraclean): Delete.
21666 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
21668 * gnatmem.adb: Clean up verbose output.
21670 * gprcmd.adb: Change copyright to FSF.
21672 2003-11-19 Vincent Celier <celier@gnat.com>
21674 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
21675 and Version (ignored).
21677 * symbols.ads: (Policy): New type
21678 (Initialize): New parameter Reference, Symbol_Policy and
21680 Remove parameter Force.
21681 Minor reformatting.
21683 * snames.ads, snames.adbadb: New standard names
21684 Library_Reference_Symbol_File and Library_Symbol_Policy
21687 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
21691 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
21693 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
21695 * prj.adb: (Project_Empty): New component Symbol_Data
21697 * prj.ads: (Policy, Symbol_Record): New types
21698 (Project_Data): New component Symbol_Data
21701 New attributes Library_Symbol_File, Library_Symbol_Policy and
21702 Library_Reference_Symbol_File.
21705 (Ada_Check): When project is a Stand-Alone library project, process
21706 attribute Library_Symbol_File, Library_Symbol_Policy and
21707 Library_Reference_Symbol_File.
21709 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
21710 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
21711 5sml-tgt.adb (Build_Dynamic_Library): New parameter
21712 Symbol_Data (ignored).
21714 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
21715 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
21716 functions Option_File_Name and Version_String. Set new options of
21717 gnatsym related to symbol file, symbol policy and reference symbol
21721 Extensive modifications to take into account the reference symbol file,
21722 the symbol policy, the library version and to put in the symbol file the
21723 minor and major IDs.
21725 * bld.adb (Process_Declarative_Items): Put second argument of
21726 gprcmd to_absolute between single quotes, to avoid problems with
21729 * bld-io.adb: Update Copyright notice.
21730 (Flush): Remove last character of a line, if it is a back slash, to
21731 avoid make problems.
21734 Implement new scheme with reference symbol file and symbol policy.
21736 * g-os_lib.ads: (Is_Directory): Clarify comment
21738 2003-11-19 Robert Dewar <dewar@gnat.com>
21740 * atree.adb: Move New_Copy_Tree global variables to head of package
21742 * errout.adb: Minor reformatting
21744 2003-11-19 Javier Miranda <miranda@gnat.com>
21746 * sem_ch4.adb: (Diagnose_Call): Improve error message.
21747 Add reference to Ada0Y (AI-50217)
21749 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
21750 sem_util.adb: Add reference to AI-50217
21752 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
21754 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
21756 * sem_aggr.adb: Complete documentation of AI-287 changes
21758 * par-ch4.adb: Document previous changes.
21760 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
21761 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
21764 * exp_aggr.adb: Add references to AI-287 in previous changes
21766 2003-11-19 Ed Schonberg <schonberg@gnat.com>
21769 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
21770 in the rewriting is the result of an inlined call.
21772 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
21773 parameter is a type conversion, use original node to construct the
21774 post-call assignment, because expression may have been rewritten, e.g.
21775 if it is a packed array.
21778 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
21779 body, just as it is in an instance.
21780 Categorization routines
21782 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
21783 Instantiate_Object): Set proper sloc reference for message on missing
21786 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
21788 * Makefile.in: Add FreeBSD libgnat pairs.
21790 * usage.adb: Fix typo in usage message.
21792 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
21794 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
21795 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
21796 pragma Thread_Body.
21797 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
21799 * s-thread.adb: This file is now a dummy implementation of
21802 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
21804 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
21806 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
21808 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
21809 instanciation references in the parent type description.
21811 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21813 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
21815 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
21816 TYPE_PRECISION directly from esize.
21818 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
21821 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
21823 * init.c: Initialization routines for FreeBSD
21825 * link.c: Link info for FreeBSD
21827 * sysdep.c: Add the case of FreeBSD
21829 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
21831 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
21832 already called in System.Threads.
21834 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
21835 environment task, as it has been moved to System.Threads.Initialization.
21837 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
21839 * adaint.c (__gnatlib_install_locks): Only reference
21840 __gnat_install_locks on VMS, since other platforms can avoid using
21841 --enable-threads=gnat
21843 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21845 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
21847 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
21848 TYPE_PACKED_ARRAY_TYPE_P.
21849 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
21851 Part of PR ada/12806
21852 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
21853 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
21855 2003-11-17 Vincent Celier <celier@gnat.com>
21857 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
21859 Do not set exit status to Failure when Warning is True.
21860 (Gnatchop): Make errors "no compilation units found" and
21861 "no source files written" warnings only.
21863 * make.adb (Gnatmake): When using a project file, set
21864 Look_In_Primary_Dir to False.
21865 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
21866 and Local_Configuration_Pragmas in the project where they are declared
21867 not an extending project which might have inherited them.
21869 * osint.adb (Locate_File): If Name is already an absolute path, do not
21870 look for a directory.
21872 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
21873 -gnats (Check_Syntax) is used, issue only a warning, not an error.
21875 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
21876 in objects of type Variable_Value.
21878 * prj.ads: (Variable_Value): New component Project
21880 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
21881 is in a project extended by Project.
21883 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
21884 Project of Variable_Values to this new parameter value.
21885 (Expression): Set component Project of Variable_Values.
21886 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
21887 Set the component Project in array elements.
21889 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
21891 * errout.adb: (Initialize): Add initialization for error nodes.
21893 * sem_ch12.adb (Initialize): Add missing initializations for
21894 Exchanged_Views and Hidden_Entities.
21896 2003-11-17 Ed Schonberg <schonberg@gnat.com>
21898 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
21899 already instantiated tree for use in subsequent inlining.
21900 (Analyze_Associations, Instantiate_Formal_Subprogram,
21901 Instantiate_Object): improve error message for mismatch in
21904 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
21905 instantiations of subprograms declared in instances.
21907 2003-11-17 Javier Miranda <miranda@gnat.com>
21909 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
21910 executed only under the Extensions_Allowed flag.
21912 2003-11-17 Robert Dewar <dewar@gnat.com>
21914 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
21916 (Address_Image): Fix bug of returning 0x instead of 0x0
21917 Minor reformatting (function specs).
21919 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
21920 (missed case of 33-63)
21922 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
21924 * s-thread.adb: Add comments for pragma Restriction
21926 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
21927 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
21929 2003-11-17 Ed Falis <falis@gnat.com>
21931 * s-thread.adb: Added No_Tasking restriction for this implementation.
21933 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
21935 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
21936 instanciation references in the parent type description.
21938 2003-11-17 GNAT Script <nobody@gnat.com>
21940 * Make-lang.in: Makefile automatically updated
21942 2003-11-16 Jason Merrill <jason@redhat.com>
21944 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
21945 and TAGS files that include them for each front end.
21947 2003-11-14 Andreas Jaeger <aj@suse.de>
21949 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
21950 is the canonical version.
21951 * misc.c (gnat_handle_option): Likewise.
21953 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
21955 * 5nsystem.ads: New file for x86_64-linux-gnu.
21957 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
21959 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
21961 * comperr.adb: Fix logic in previous change.
21963 2003-11-13 Vincent Celier <celier@gnat.com>
21965 * 5bml-tgt.adb (Build_Dynamic_Library): Use
21966 Osint.Include_Dir_Default_Prefix instead of
21967 Sdefault.Include_Dir_Default_Name.
21969 * gnatlbr.adb: Update Copyright notice
21970 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
21971 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
21972 instead of Sdefault.Object_Dir_Default_Name
21975 (Process_Binder_File): Never suppress the option following -Xlinker
21978 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
21979 Sdefault.Object_Dir_Default_Name.
21981 * osint.ads, osint.adb:
21982 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
21983 Minor reformatting.
21985 * vms_conv.ads: Minor reformating
21986 Remove GNAT STANDARD and GNAT PSTA
21989 Allow GNAT MAKE to have several files on the command line.
21990 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
21991 Sdefault.Object_Dir_Default_Name.
21993 Remove data for GNAT STANDARD
21996 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
21997 Remove data for GNAT STANDARD
21998 Remove options and documentation for -gnatwb/-gnatwB: these warning
21999 options no longer exist.
22001 2003-11-13 Ed Falis <falis@gnat.com>
22003 * 5zthrini.adb: (Init_RTS): Made visible
22006 (Register): Removed unnecessary call to taskVarGet that checked whether
22007 an ATSD was already set as a task var for the argument thread.
22010 Updated comment to reflect that this is a VxWorks version
22011 Added context clause for System.Threads.Initialization
22012 Added call to System.Threads.Initialization.Init_RTS
22014 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
22017 (Init_RTS): New procedure, for the initialization of the run-time lib.
22020 Remove dependancy on System.Init, so that this file can be used in the
22021 AE653 sequential run-time lib.
22023 2003-11-13 Robert Dewar <dewar@gnat.com>
22025 * bindgen.adb: Minor reformatting
22027 2003-11-13 Ed Schonberg <schonberg@gnat.com>
22030 (Apply_Discriminant_Check): Do no apply check if target type is derived
22031 from source type with no applicable constraint.
22034 (Ensure_System_Dependency): Do not apply the style checks that may have
22035 been specified for the main unit.
22038 (Find_Selected_Component): Further improvement in error message, with
22042 (Resolve): Handle properly the case of an illegal overloaded protected
22045 2003-11-13 Javier Miranda <miranda@gnat.com>
22048 (Has_Default_Init_Comps): New function to check the presence of
22049 default initialization in an aggregate.
22050 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
22051 extension aggregate of a limited record. In addition, a new formal
22052 was added to do not initialize the record controller (if any) during
22053 this recursive expansion of ancestors.
22054 (Init_Controller): Add support for limited record components.
22055 (Expand_Record_Aggregate): In case of default initialized components
22056 convert the aggregate into a set of assignments.
22058 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
22059 describing the new syntax.
22060 Nothing else needed to be done because this subprogram delegates part of
22061 its work to P_Precord_Or_Array_Component_Association.
22062 (P_Record_Or_Array_Component_Association): Give support to the new
22063 syntax for default initialization of components.
22066 (Resolve_Aggregate): Relax the strictness of the frontend in case of
22067 limited aggregates.
22068 (Resolve_Record_Aggregate): Give support to default initialized
22070 (Get_Value): In case of default initialized components, duplicate
22071 the corresponding default expression (from the record type
22072 declaration). In case of default initialization in the *others*
22073 choice, do not check that all components have the same type.
22074 (Resolve_Extension_Aggregate): Give support to limited extension
22078 (Check_Initialization): Relax the strictness of the front-end in case
22079 of aggregate and extension aggregates. This test is now done in
22080 Get_Value in a per-component manner.
22082 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
22083 expression corresponds to a limited aggregate. This test is now done
22086 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
22089 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
22090 present in an N_Component_Association node
22092 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
22094 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
22095 type-conformant entry only if they are homographs.
22097 2003-11-13 GNAT Script <nobody@gnat.com>
22099 * Make-lang.in: Makefile automatically updated
22101 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22103 * adadecode.c: Use <> form of include for ctype.h.
22104 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
22106 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22108 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
22109 Works around PR middle-end/6552.
22111 2003-11-10 Ed Falis <falis@gnat.com>
22113 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
22115 * 5zinit.adb: (Install_Handler): Moved back to spec
22116 (Install_Signal_Handlers): Deleted
22118 * 5zthrini.adb: Added context clause for System.Storage_Elements
22119 (Register): Only handles creation of taskVar; initialization moved to
22121 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
22122 Added declaration of environment task secondary stack and
22125 * s-thread.adb: Implement bodies for thread body processing
22128 Added comment identifying supported targets for pragma Thread_Body.
22130 2003-11-10 Pascal Obry <obry@gnat.com>
22132 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
22136 (Open): Properly check for string length before copying into the buffer.
22137 Raises Name_Error if buffer is too small. Note that this was a potential
22140 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
22142 * bindgen.adb, comperr.adb: Code clean ups.
22143 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
22145 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
22147 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
22149 2003-11-10 Vincent Celier <celier@gnat.com>
22152 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
22155 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
22157 * prj.adb: (Project_Empty): Add new boolean component Virtual
22159 * prj.ads: (Virtual_Prefix): New constant string
22160 (Project_Data): New boolean component Virtual
22162 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
22163 a library project is extended by a virtual extending project.
22166 Modifications throughout to implement extending-all project, including:
22167 (Virtual_Hash, Processed_Hash): New hash tables
22168 (Create_Virtual_Extending_Project): New procedure
22169 (Look_For_Virtual_Projects_For): New procedure
22172 (Process): After checking the projects, if main project is an
22173 extending-all project, set the object directory of all virtual extending
22174 project to the object directory of the main project.
22175 Adjust error message when a virtual extending project has the same
22176 object directory as an project being extended.
22177 (Recursive_Process): If name starts with the virtual prefix, set Virtual
22178 to True in the project data.
22181 (Default_Project_Node): Add new boolean component Extending_All
22182 (Is_Extending_All): New function
22183 (Set_Is_Extending_All): New procedure
22185 * prj-tree.ads: (Is_Extending_All): New function
22186 (Set_Is_Extending_All): New procedure
22187 (Project_Node_Record): New boolean component Extending_All
22189 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
22192 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
22194 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
22195 "gprcmd prefix" to define it.
22197 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
22199 * einfo.ads: Fix a typo and remove an extraneous word in comments.
22202 (Create_Dummy_Package_Unit): Set the scope of the entity for the
22203 created dummy package to Standard_Standard, not to itself, to
22204 defend other parts of the front-end against encoutering a cycle in
22208 (Analyze_With_Clause): When setting the entities for the successive
22209 N_Expanded_Names that constitute the name of a child unit, do not
22210 attempt to go further than Standard_Standard in the chain of scopes.
22211 This case arises from the placeholder units created by
22212 Create_Dummy_Package_Unit in the case of a with_clause for a
22213 nonexistent child unit.
22215 2003-11-10 Ed Schonberg <schonberg@gnat.com>
22218 (Expand_Thread_Body): Place subprogram on scope stack, so that new
22219 declarations are given the proper scope.
22222 (Check_Expr_Constants): Reject an expression that contains a constant
22223 created during expansion, and that appears after the object to which
22224 the address clause applies.
22226 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
22227 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
22228 that uses 'Range of a function call with controlled components, so
22229 that the function result can be finalized before starting the loop.
22232 (Find_Selected_Component): Improve error message when prefix is
22233 an implicit dereference of an incomplete type.
22235 2003-11-10 Robert Dewar <dewar@gnat.com>
22237 * opt.ads: New Print_Standard flag for -gnatS switch
22239 * sem_ch13.adb: Remove some additional checks for unaligned arrays
22241 * cstand.adb (Create_Standard): Print out package standard if -gnatS
22244 * debug.adb: Update doc for -gnatds to discuss relationship with new
22247 * sinfo.adb: Add new field Entity_Or_Associated_Node
22249 * sinfo.ads: Add new field Entity_Or_Associated_Node
22250 Update documentation for Associated_Node and Entity fields to clarify
22251 relationship and usage.
22254 (Write_Id): Properly process Associated_Node field in generic template
22257 Recognize new -gnatS switch for printing package Standard
22258 This replaces gnatpsta
22261 Add line for new -gnatS switch for printing package Standard
22262 This replaces gnatpsta
22264 2003-11-10 Andreas Jaeger <aj@suse.de>
22266 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
22269 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
22271 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
22274 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
22276 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
22279 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
22281 * sysdep.c: Add handling of cygwin.
22283 2003-11-10 GNAT Script <nobody@gnat.com>
22285 * Make-lang.in: Makefile automatically updated
22287 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
22290 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
22291 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
22292 Replace GNAT_ROOT by GCC_ROOT.
22294 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
22296 2003-11-06 Zack Weinberg <zack@codesourcery.com>
22298 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
22299 and update for changed meaning of GET_MODE_BITSIZE.
22301 2003-11-04 Doug Rupp <rupp@gnat.com>
22303 * sysdep.c: Problem discovered during IA64 VMS port.
22304 [VMS] #include <unixio.h> to get proper prototypes.
22307 Issues discovered/problems fixed during IA64 VMS port.
22308 [VMS] #define _POSIX_EXIT for proper semantics.
22309 [VMS] #include <unixio.h> for proper prototypes.
22310 [VMS] (fork): #define IA64 version.
22311 (__gnat_os_exit): Remove unnecessary VMS specific code.
22313 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22315 Part of PR ada/12806
22316 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
22320 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
22323 * targtyps.c, decl.c, misc.c,
22324 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
22325 routines to work around change in FP sizing semantics in GCC.
22328 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
22330 * gigi.h: (enumerate_modes): New function.
22332 * Make-lang.in: (ada/misc.o): Add real.h.
22334 * misc.c: (enumerate_modes): New function.
22336 2003-11-04 Robert Dewar <dewar@gnat.com>
22338 * 3vtrasym.adb: Minor reformatting
22339 Use terminology encoded/decoded name, rather than C++ specific notion
22340 of mangling (this is the terminology used throughout GNAT).
22342 * einfo.h: Regenerated
22344 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
22347 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
22349 * par-prag.adb: Add dummy entry for Thread_Body pragma
22352 Add entries for System.Threads entities for thread body processing
22355 (Analyze_Pragma, Access attributes): Check these are not applied to a
22356 thread body, since this is not permitted
22358 * sem_prag.adb: Add processing for Thread_Body pragma.
22362 (Resolve_Call): Check for incorrect attempt to call a thread body
22363 procedure with a direct call.
22365 * snames.ads, snames.adb: Add entry for Thread_Body pragma
22366 Add names associated with thread body expansion
22368 * snames.h: Add entry for Thread_Body pragma
22370 * s-thread.adb: Add entries for thread body processing
22371 These are dummy bodies so far
22373 * s-thread.ads: Add documentation on thread body handling.
22374 Add entries for thread body processing.
22376 2003-11-04 Javier Miranda <miranda@gnat.com>
22379 (Build_Limited_Views): Return after posting an error in case of limited
22380 with_clause on subprograms, generics, instances or generic renamings
22381 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
22382 on subprograms, generics, instances or generic renamings
22384 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
22386 * raise.c (setup_to_install): Correct mistake in last revision; two
22387 arguments out of order.
22389 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
22390 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
22391 notice, missed in previous change.
22392 Remove trailing blanks and other style errors introduced in previous
22395 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
22397 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
22398 rid of the wrapper for a LJM type, ensuring we don't do that if the
22399 field is addressable. This avoids potential low level type view
22400 mismatches later on, for instance in a by-reference argument passing
22403 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22405 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
22406 aligned at byte boundary.
22408 2003-11-04 Joel Brobecker <brobecker@gnat.com>
22410 * decl.c (components_to_record): Do not delete the empty variants from
22411 the end of the union type.
22413 2003-11-04 Ed Schonberg <schonberg@gnat.com>
22415 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
22416 operation for a derived type, an explicit declaration may use a local
22417 subtype of Boolean.
22419 2003-11-04 Vincent Celier <celier@gnat.com>
22421 * make.adb (Gnatmake): Allow main sources on the command line with a
22422 library project when it is only for compilation (no binding or
22425 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22427 * Makefile.in: Remove many duplicate variables.
22429 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
22431 * Make-lang.in (dvi): Move targets to $(docobjdir).
22432 (gnat_ug_vms.dvi): Simplify rule and adjust target.
22433 (gnat_ug_wnt.dvi): Likewise.
22434 (gnat_ug_unx.dvi): Likewise.
22435 (gnat_ug_vxw.dvi): Likewise.
22436 (gnat_rm.dvi): Likewise.
22437 (gnat-style.dvi): Likewise.
22439 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
22441 * gigi.h: Missed commit from update for C90.
22443 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
22445 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
22447 2003-10-31 Andreas Schwab <schwab@suse.de>
22449 * raise.c (get_action_description_for): Fix typo in last change.
22451 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
22454 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
22455 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
22457 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
22459 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
22460 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
22461 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
22462 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
22463 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
22465 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
22468 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
22469 numbers when symbol name is too long.
22471 2003-10-30 Ed Falis <falis@gnat.com>
22473 * g-signal.ads, g-signal.adb: New files
22475 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
22477 * Makefile.rtl: Introduce GNAT.Signals
22479 2003-10-30 Robert Dewar <dewar@gnat.com>
22481 * freeze.adb: Minor reformatting
22483 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
22485 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
22486 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
22487 New handling of Id_Check parameter to improve recognition of keywords
22488 used as identifiers.
22489 Update copyright notice to include 2003
22491 2003-10-29 Robert Dewar <dewar@gnat.com>
22493 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
22494 sem_ch10.adb: Minor reformatting
22496 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
22497 (Expand_Assign_Record): Test right hand side for bit unaligned as well
22499 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
22501 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
22502 Support for TBK$SYMBOLIZE-based symbolic traceback.
22504 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
22507 Revert previous change, that did not work well when pragma No_Run_Time
22508 was used in conjunction with a run-time other than ZFP.
22510 2003-10-29 Vincent Celier <celier@gnat.com>
22513 (Gnatmake): When there are no Ada mains in attribute Main, disable the
22514 bind and link steps only is switch -z is not used.
22516 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
22518 * Makefile.generic: Remove duplicated setting of CC.
22520 * Makefile.prolog: Set CC to gcc by default, to override make's
22523 * einfo.h: Regenerated.
22525 2003-10-29 Ed Schonberg <schonberg@gnat.com>
22527 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
22528 current body, after compiling subunit.
22530 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
22531 when in deleted code, because gigi needs properly ordered freeze
22532 actions to annotate types.
22534 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
22535 prevent the premature freezing of record type that contains
22536 subcomponents with a private type that does not yet have a completion.
22538 2003-10-29 Javier Miranda <miranda@gnat.com>
22541 (Analyze_Package_Instantiation): Check that instances can not be used in
22542 limited with_clauses.
22545 (Analyze_Package_Renaming): Check that limited withed packages cannot
22546 be renamed. Improve text on error messages related to limited
22549 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
22551 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
22552 Update copyright notice.
22554 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
22555 (Install_Limited_Context_Clauses): New subprogram that isolates all the
22556 checks required for limited context_clauses and installs the limited
22558 (Install_Limited_Withed_Unit): Complete its documentation.
22559 (Analyze_Context): Check that limited with_clauses are only allowed in
22561 (Install_Context): Call Install_Limited_Context_Clauses after the
22562 parents have been installed.
22563 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
22564 package as 'From_With_Type'; this mark indicates that the limited view
22565 is installed. Used to check bad usages of limited with_clauses.
22566 (Build_Limited_Views): Do not add shadow entities to the scope's list
22567 of entities. Do not add real entities to the Non_Limited_Views chain.
22568 Improve error notification.
22569 (Remove_Context_Clauses): Remove context clauses in two phases:
22570 limited views first and regular views later (to maintain the
22572 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
22573 its visible entities.
22575 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
22577 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
22578 with any type that Is_Fixed_Point_Type.
22580 * sinfo.ads: Fix documentation for Associated_Node attribute.
22582 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
22584 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
22585 both '-gnatc' and '-gnatt' are specified.
22587 * atree.adb (Initialize): Add initialization for Node_Count (set to
22590 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22592 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
22593 do not consider as Pure.
22595 Part of implementation of function-at-a-time:
22597 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
22598 (tree_transform): Add new argument to build_component_ref.
22599 (tree_transform, case N_Assignment_Statement): Make and return an
22601 (tree_transform): If result IS_STMT, set flags and return it.
22602 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
22604 * utils2.c (build_simple_component_ref, build_component_ref): Add new
22606 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
22607 (build_allocator): Likewise.
22609 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
22610 Add new arg to build_component_ref.
22611 (maybe_unconstrained_array, unchecked_convert): Likewise.
22613 * ada-tree.def (EXPR_STMT): New code.
22615 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
22617 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
22618 build_component_ref calls.
22620 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
22622 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
22623 (build_component_ref): Add new argument, NO_FOLD_P.
22625 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
22627 * Makefile.generic: Add missing substitution on object_deps handling.
22630 * Make-lang.in (check-ada): Enable ACATS test suite.
22632 2003-10-27 Robert Dewar <dewar@gnat.com>
22635 (Freeze_Array_Type): We do not need an initialization routine for types
22636 derived from String or Wide_String. They should be treated the same
22637 as String and Wide_String themselves. This caused problems with the
22638 use of Initialize_Scalars.
22641 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
22642 composites. This allows use of component clauses that are not byte
22646 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
22647 is an attempt to pack an array of atomic objects.
22649 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
22651 2003-10-27 Pascal Obry <obry@gnat.com>
22654 (Basename): Check for drive letters in a pathname only on DOS based OS.
22656 2003-10-27 Vincent Celier <celier@gnat.com>
22659 (Gnatmake): When unable to change dir to the object dir, display the
22660 content of the parent dir of the obj dir, to try to understand why this
22663 2003-10-27 GNAT Script <nobody@gnat.com>
22665 * Make-lang.in: Makefile automatically updated
22667 2003-10-27 Ed Schonberg <schonberg@gnat.com>
22670 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
22671 should not be done in Save/Restore_Scope_Stack, because it is performed
22675 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
22676 whether use clauses should be removed/restored.
22679 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
22680 whether use clauses should be removed/restored.
22682 2003-10-26 Andreas Jaeger <aj@suse.de>
22684 * Makefile.in: Remove duplicated lines.
22686 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
22688 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
22689 minimize the differences with ACT tree.
22691 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
22692 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
22693 Gnatvsn.Gnat_Static_Version_String to reduce differences between
22696 2003-10-24 Pascal Obry <obry@gnat.com>
22699 * adadecode.c (ostrcpy): New function.
22700 (__gnat_decode): Use ostrcpy of strcpy.
22701 (has_prefix): Set first parameter a const.
22702 (has_suffix): Set first parameter a const.
22703 Update copyright notice. Fix source name in header.
22704 Removes a trailing space.
22706 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
22709 Remove the test against being in No_Run_Time_Mode before generating a
22710 call to Register_Tag. It is redundant with the test against the
22711 availability of the function Register_Tag.
22713 2003-10-24 Vincent Celier <celier@gnat.com>
22715 * g-catiio.adb: (Month_Name): Correct spelling of February
22717 * make.adb: (Mains): New package
22718 (Initialize): Call Mains.Delete
22719 (Gnatmake): Check that each main on the command line is a source of a
22720 project file and, if there are several mains, each of them is a source
22721 of the same project file.
22722 (Gnatmake): When a foreign language is specified in attribute Languages,
22723 no main is specified on the command line and attribute Mains is not
22724 empty, only build the Ada main. If there is no Ada main, just compile
22725 the Ada sources and their closure.
22726 (Gnatmake): If a main is specified on the command line with directory
22727 information, check that the source exists and, if it does, that the path
22728 is the actual path of a source of a project.
22731 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
22732 Full_Path is True, return the full path instead of the simple file name.
22733 (Project_Of): New function
22736 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
22737 defaulted to False.
22738 (Project_Of): New function
22740 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
22742 * Makefile.generic:
22743 Ensure objects of main project are always checked and rebuilt if needed.
22744 Set CC to gcc by default.
22745 Prepare new handling of link by creating a global archive (not activated
22748 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
22749 stringt.h: Update copyright notice. Remove trailing blanks.
22750 Fix source name in header.
22752 2003-10-24 Robert Dewar <dewar@gnat.com>
22754 * sem_ch12.adb: Minor reformatting
22757 Minor reformatting (including new function return style throughout)
22760 Minor reformatting (including new function return style throughout)
22762 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
22764 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
22765 stringt.h: Update copyright notice. Remove trailing blanks.
22766 Fix source name in header.
22768 2003-10-24 GNAT Script <nobody@gnat.com>
22770 * Make-lang.in: Makefile automatically updated
22772 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
22774 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
22775 stringt.h: Convert to ISO C90 declarations and definitions.
22777 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
22780 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
22781 External_Tag attribute definition clauses.
22783 2003-10-23 Ed Schonberg <schonberg@gnat.com>
22786 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
22787 child unit, generate a fully qualified name to avoid spurious errors
22788 when the context contains renamings of different child units with
22789 the same simple name.
22791 * exp_dbug.ads: Add documentation on name qualification for renamings
22794 2003-10-23 Robert Dewar <dewar@gnat.com>
22796 * g-regpat.ads, g-regpat.adb: Minor reformatting
22798 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
22800 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
22802 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22804 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
22807 * urealp.h: (Machine): Update to proper definition.
22809 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
22811 * init.c, adaint.c: Minor reformatting.
22813 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
22815 * adaint.c (w32_epoch_offset): Define static const at file level.
22816 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
22817 rather than t_create, t_access in call to GetFileTime. Use union
22818 to convert between FILETIME and unsigned long long.
22819 (__gnat_file_time_name): Test for invalid file handle.
22820 (__gnat_set_filetime_name): Support win32 targets using
22821 w32api SetFileTime.
22823 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
22825 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
22827 * ctrl_c.c (__gnat_int_handler): Remove declaration.
22829 * decl.c (creat_concat_name): Const-ify prefix.
22831 * adaint.c: Include ctype.h if __MINGW32__.
22832 (__gnat_readlink): Mark arguments as possibly unused.
22833 (__gnat_symlink): Likewise.
22834 (__gnat_is_symbolic_link): Likewise.
22835 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
22837 (__gnat_file_time_name): Don't declare struct stat statbuf when
22839 (__gnat_is_absolute_path): Add parenthesis around condition of
22840 'if' statement to avoid warning.
22841 (__gnat_plist_init): Specify void as parameter.
22842 (plist_enter): Likewise.
22843 (plist_leave): Likewise.
22844 (remove_handle): Make static. Initialize prev.
22846 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
22849 * Makefile.in: Disable build of gnatpsta.
22850 * cstreams.c (__gnat_full_name): Minor improvements and clean up
22851 of previous change.
22853 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22855 * tracebak.c (MAX): Avoid redefinition warning.
22857 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
22858 Change msg to const char *.
22859 (__gnat_install_handler): Remove ss, unused.
22860 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
22862 * cstreams.c (__gnat_full_name): Declare p only when used.
22863 (__gnat_full_name) [sgi] Return buffer.
22865 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
22867 * mingw32.h: New file.
22868 * gnat_wrapper.adb: New file.
22870 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
22872 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
22873 string match a pre compiled regular expression (the corresponding
22874 version of the function working on a raw regular expression)
22875 Fix typos in various comments
22876 Update copyright notice in spec
22878 2003-10-21 Gary Dismukes <dismukes@gnat.com>
22881 (Component_Needs_Simple_Initialization): Return False when the type is a
22882 packed bit array. Revise spec comments to document this case.
22885 (Expand_Pragma_Import): Set any expression on the imported object to
22886 empty to avoid initializing imported objects (in particular this
22887 covers the case of zero-initialization of bit arrays).
22888 Update copyright notice.
22890 2003-10-21 Ed Schonberg <schonberg@gnat.com>
22893 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
22894 a subunit is missing.
22895 (Instantiate_Subprogram_Body): If body of function is missing, set type
22896 of return expression explicitly in dummy body, to prevent cascaded
22897 errors when a subunit is missing.
22901 (Access_Subprogram_Declaration): Verify that return type is valid.
22905 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
22910 (Corresponding_Discriminant): If the scope of the discriminant is a
22911 private type without discriminant, use its full view.
22914 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
22916 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
22917 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
22918 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
22919 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
22920 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
22921 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
22922 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
22923 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
22924 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
22925 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
22926 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
22927 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
22928 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
22929 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
22930 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
22931 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
22932 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
22933 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
22934 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
22935 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
22936 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
22937 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
22938 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
22939 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
22940 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
22941 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
22942 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
22943 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
22944 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
22945 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
22946 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
22947 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
22948 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
22949 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
22950 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
22951 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
22952 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
22953 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
22954 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
22955 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
22956 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
22957 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
22958 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
22959 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
22960 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
22961 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
22962 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
22963 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
22964 vms_conv.ads, vms_conv.adb, vms_data.ads,
22965 vxaddr2line.adb: Files added. Merge with ACT tree.
22967 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
22968 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
22969 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
22970 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
22971 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
22972 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
22973 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
22974 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
22975 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
22976 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
22978 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
22979 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
22980 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
22981 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
22982 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
22983 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
22984 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
22985 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
22986 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
22987 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
22988 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
22989 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
22990 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
22991 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
22992 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
22993 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
22994 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
22995 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
22996 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
22997 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
22998 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
22999 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
23000 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
23001 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
23002 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
23003 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
23004 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
23005 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
23006 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
23007 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
23008 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
23009 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
23010 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
23011 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
23012 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
23013 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
23014 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
23015 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
23016 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
23017 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
23018 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
23019 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
23020 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
23021 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
23022 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
23023 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
23024 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
23025 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
23026 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
23027 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
23028 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
23029 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
23030 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
23031 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
23032 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
23033 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
23034 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
23035 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
23036 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
23037 checks.adb, checks.ads, cio.c, comperr.adb,
23038 comperr.ads, csets.adb, cstand.adb, cstreams.c,
23039 debug_a.adb, debug_a.ads, debug.adb, decl.c,
23040 einfo.adb, einfo.ads, errout.adb, errout.ads,
23041 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
23042 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
23043 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
23044 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
23045 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
23046 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
23047 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
23048 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
23049 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
23050 fe.h, fmap.adb, fmap.ads, fname.adb,
23051 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
23052 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
23053 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
23054 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
23055 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
23056 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
23057 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
23058 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
23059 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
23060 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
23061 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
23062 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
23063 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
23064 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
23065 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
23066 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
23067 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
23068 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
23069 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
23070 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
23071 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
23072 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
23073 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
23074 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
23075 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
23076 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
23077 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
23078 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
23079 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
23080 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
23081 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
23082 layout.adb, lib.adb, lib.ads, lib-list.adb,
23083 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
23084 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
23085 link.c, live.adb, make.adb, make.ads,
23086 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
23087 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
23088 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
23089 misc.c, mkdir.c, mlib.adb, mlib.ads,
23090 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
23091 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
23092 namet.adb, namet.ads, namet.h, nlists.ads,
23093 nlists.h, nmake.adt, opt.adb, opt.ads,
23094 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
23095 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
23096 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
23097 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23098 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
23099 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
23100 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
23101 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
23102 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
23103 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
23104 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
23105 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
23106 prj-util.adb, prj-util.ads, raise.c, raise.h,
23107 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
23108 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
23109 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
23110 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
23111 scans.ads, scn.adb, scn.ads, s-crc32.adb,
23112 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
23113 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
23114 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
23115 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
23116 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
23117 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
23118 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
23119 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
23120 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
23121 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
23122 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
23123 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
23124 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
23125 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
23126 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
23127 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
23128 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
23129 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
23130 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
23131 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
23132 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
23133 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
23134 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
23135 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
23136 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
23137 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
23138 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
23139 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
23140 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
23141 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
23142 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
23143 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
23144 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
23145 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
23146 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
23147 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
23148 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
23149 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
23150 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23151 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
23152 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
23153 stringt.adb, stringt.ads, stringt.h, style.ads,
23154 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
23155 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
23156 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
23157 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
23158 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
23159 table.adb, table.ads, targparm.adb, targparm.ads,
23160 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
23161 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
23162 ttypes.ads, types.ads, types.h, uintp.adb,
23163 uintp.ads, uintp.h, uname.adb, urealp.adb,
23164 urealp.ads, urealp.h, usage.adb, utils2.c,
23165 utils.c, validsw.adb, validsw.ads, widechar.adb,
23166 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
23167 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
23168 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
23169 gnatvsn.ads: Merge with ACT tree.
23171 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
23173 2003-10-20 Mark Mitchell <mark@codesourcery.com>
23175 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
23176 (gnat_ug_vmx.info): Likewise.
23177 (gnat_ug_vxw.info): Likewise.
23178 (gnat_ug_wnt.info): Likewise.
23179 (gnat_rm.info): Likewise.
23180 (gnat-style.info): Likewise.
23182 * Make-lang.in (ada.install-info): Remove target.
23183 (info): New target.
23184 (install-info): Likewise.
23185 (gnat_ug_unx.info): Simplify rule.
23186 (gnat_ug_vmx.info): Likewise.
23187 (gnat_ug_vxw.info): Likewise.
23188 (gnat_ug_wnt.info): Likewise.
23189 (gnat_rm.info): Likewise.
23190 (gnat-style.info): Likewise.
23192 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
23194 * Make-lang.in: Replace uses of $(target_alias) with
23195 $(target_noncanonical).
23196 * ada/Makefile.in: Remove unused mention of $(target_alias).
23198 2003-10-06 Mark Mitchell <mark@codesourcery.com>
23200 * Make-lang.in (ada.info): Replace with ...
23202 (ada.dvi): Replace with ...
23205 2003-09-29 Zack Weinberg <zack@codesourcery.com>
23207 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
23208 initialize dconstp5 and dconstmp5.
23210 2003-09-28 Richard Henderson <rth@redhat.com>
23212 * trans.c (tree_transform): Update call to expand_asm_operands.
23214 2003-09-21 Richard Henderson <rth@redhat.com>
23216 * trans.c, utils.c: Revert.
23218 2003-09-21 Richard Henderson <rth@redhat.com>
23220 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
23223 2003-09-04 Michael Matz <matz@suse.de>
23225 * misc.c: Include "target.h".
23226 * Make-lang.in (misc.o): Add dependency on target.h.
23228 2003-09-03 DJ Delorie <dj@redhat.com>
23230 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
23233 2003-08-30 Zack Weinberg <zack@codesourcery.com>
23235 * Makefile.in: Update substitutions to match changes to
23236 configure. Use include directives instead of @-insertions
23237 to read in host and target fragments. Add a rule to
23238 regenerate ada/Makefile.
23240 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
23242 * lang-options.h: Remove.
23243 * lang.opt: Add help text.
23245 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
23247 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
23250 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
23252 * misc.c (gnat_handle_option): Don't handle filenames.
23254 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
23256 * Make-lang.in: Replace PWD with PWD_COMMAND.
23257 * Makefile.adalib: Likewise.
23258 * Makefile.in: Likewise.
23260 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
23262 * misc.c (gnat_argv): Revert last change.
23263 (gnat_handle_option, gnat_init_options): Copy arguments.
23265 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
23267 * misc.c (gnat_argv): Make const.
23269 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
23271 * misc.c (save_argc, save_argv): Keep non-static!
23273 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
23275 * misc.c (save_argc, save_argv): Make static.
23276 (gnat_init_options): New prototype.
23277 (gnat_init_options): Update.
23279 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
23281 * gnat_ug.texi: Remove unlikely characters from @vars.
23282 * gnat_ug_vms.texi: Regenerate.
23284 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
23286 * misc.c (record_code_position): Adjust emit_note call.
23288 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
23290 * misc.c (gnat_handle_option): Don't check for missing arguments.
23292 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
23294 * utils.c (end_subprog_body): Adjust expand_function_end call.
23296 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
23298 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
23301 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
23303 * lang.opt: Declare Ada.
23304 * misc.c (gnat_init_options): Update.
23306 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
23308 * utils.c (begin_subprog_body): Adjust init_function_start call.
23310 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
23312 * Make-lang.in: Update to use options.c and options.h.
23313 * misc.c: Include options.h not aoptions.h.
23314 (gnat_handle_option): Abort on unrecognized switch.
23315 (gnat_init_options): Request Ada switches.
23317 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
23319 * lang.opt: Add -Wall.
23320 * misc.c (gnat_handle_option): Handle it.
23322 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
23324 * misc.c (gnat_handle_option): Fix warnings.
23326 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
23328 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
23330 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
23332 * Make-lang.in: Update to handle command-line options.
23333 * lang.opt: New file.
23334 * misc.c: Include aoptions.h.
23335 (cl_options_count, cl_options): Remove.
23336 (gnat_handle_option): New.
23337 (gnat_decode_option): Remove.
23338 (LANG_HOOKS_DECODE_OPTION): Remove.
23339 (LANG_HOOKS_HANDLE_OPTION): Override.
23341 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
23343 * init.c, misc.c, trans.c, utils.c: Remove dead code.
23345 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
23347 * Makefile.in: Replace "host_canonical" with "host" for autoconf
23350 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
23352 * Make-lang.in: Update.
23353 * misc.c: Include opts.h. Define cl_options_count and cl_options.
23355 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
23357 * misc.c (gnat_init_options): Update.
23359 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
23361 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
23362 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
23363 __attribute__ ((__unused__)).
23365 2003-06-05 Jan Hubicka <jh@suse.cz>
23367 * Make-lang.in: Add support for stageprofile and stagefeedback
23369 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
23371 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
23372 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
23374 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
23376 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
23377 Remove non-VMS directive.
23378 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
23380 (Examples of gnatls Usage): Remove VMS alternative.
23382 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
23385 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
23386 and turn ZCX_By_Default back to False since the underlying support
23387 is not quite there yet.
23389 2003-06-01 Andreas Jaeger <aj@suse.de>
23391 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
23392 and ROUND_TYPE_SIZE_UNIT.
23394 2003-05-22 Geert Bosch <bosch@gnat.com>
23396 * gnat_rm.texi : Remove reference to Ada Core Technologies.
23398 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
23400 * trans.c (tree_transform): Use location_t and input_location
23402 (build_unit_elab): Likewise.
23403 * utils.c (create_label_decl): Likewise.
23405 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
23407 * trans.c (tree_transform, build_unit_elab,
23408 set_lineno): Rename lineno to input_line.
23409 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
23410 end_subprog_body): Likewise.
23411 * utils2.c (build_call_raise): Likewise.
23413 2003-05-01 Laurent Guerby <guerby@acm.org>
23416 * 5iosinte.ads: Increase pthread_cond_t size to match recent
23417 LinuxThread and NPTL version, merge from ACT.
23419 2003-04-28 Zack Weinberg <zack@codesourcery.com>
23421 * utils.c (convert): No need to clear TREE_CST_RTL.
23423 2003-04-23 Geert Bosch <bosch@gnat.com>
23425 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
23426 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
23427 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
23428 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
23429 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
23430 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
23431 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
23432 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
23433 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
23434 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
23435 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
23436 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
23437 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
23438 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
23439 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
23440 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
23441 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
23442 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
23443 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
23444 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
23445 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
23446 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
23447 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
23448 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
23449 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
23450 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
23451 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
23452 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
23453 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
23454 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
23455 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
23456 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
23457 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
23458 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
23459 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
23460 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
23461 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
23462 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
23463 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
23464 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
23465 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
23466 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
23467 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
23468 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
23469 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
23470 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
23471 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
23472 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
23473 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
23474 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
23475 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23476 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23477 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
23478 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
23479 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
23480 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
23481 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
23482 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
23483 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
23484 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
23485 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
23486 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
23487 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
23488 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
23489 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
23490 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
23491 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
23492 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
23493 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
23494 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
23495 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
23496 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
23497 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23498 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
23499 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
23500 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
23501 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
23502 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
23503 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
23504 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
23505 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
23506 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
23507 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
23508 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
23509 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
23510 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
23511 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
23512 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23513 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
23514 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
23515 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
23516 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
23517 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
23518 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
23519 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
23520 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
23521 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
23522 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
23523 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
23524 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
23525 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
23526 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
23527 ali.adb, ali.ads, alloc.ads, argv.c,
23528 atree.adb, atree.ads, atree.h, aux-io.c,
23529 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
23530 binde.adb, binde.ads, binderr.adb, binderr.ads,
23531 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
23532 butil.adb, butil.ads, cal.c, calendar.ads,
23533 casing.adb, casing.ads, ceinfo.adb, checks.adb,
23534 checks.ads, cio.c, comperr.adb, comperr.ads,
23535 config-lang.in, csets.adb, csets.ads, csinfo.adb,
23536 cstand.adb, cstand.ads, cuintp.c, debug.adb,
23537 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
23538 dec-io.ads, dec.ads, deftarg.c, directio.ads,
23539 einfo.adb, einfo.ads, elists.adb, elists.ads,
23540 elists.h, errno.c, errout.adb, errout.ads,
23541 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
23542 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
23543 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
23544 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
23545 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
23546 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
23547 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
23548 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
23549 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
23550 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
23551 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
23552 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
23553 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
23554 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
23555 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
23556 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
23557 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
23558 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
23559 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
23560 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
23561 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
23562 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
23563 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
23564 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
23565 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
23566 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
23567 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
23568 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
23569 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
23570 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
23571 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
23572 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
23573 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
23574 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
23575 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
23576 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
23577 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
23578 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
23579 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
23580 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
23581 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
23582 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
23583 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
23584 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
23585 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
23586 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
23587 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
23588 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
23589 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
23590 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
23591 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
23592 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
23593 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
23594 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
23595 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
23596 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
23597 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
23598 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
23599 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
23600 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
23601 lib.adb, lib.ads, live.adb, live.ads,
23602 machcode.ads, make.adb, make.ads, makeusg.adb,
23603 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
23604 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
23605 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
23606 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
23607 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
23608 mlib.ads, namet.adb, namet.ads, nlists.adb,
23609 nlists.ads, opt.adb, opt.ads, osint-b.adb,
23610 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
23611 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
23612 osint.ads, output.adb, output.ads, par-ch10.adb,
23613 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
23614 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
23615 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
23616 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
23617 par-tchk.adb, par-util.adb, par.adb, par.ads,
23618 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
23619 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
23620 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
23621 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
23622 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
23623 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
23624 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
23625 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
23626 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
23627 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
23628 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
23629 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
23630 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
23631 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
23632 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
23633 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
23634 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
23635 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
23636 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
23637 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
23638 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
23639 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
23640 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
23641 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
23642 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
23643 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
23644 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
23645 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
23646 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
23647 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
23648 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
23649 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
23650 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
23651 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
23652 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
23653 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
23654 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
23655 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
23656 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
23657 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
23658 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23659 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
23660 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
23661 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
23662 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
23663 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23664 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
23665 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
23666 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
23667 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
23668 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23669 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
23670 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
23671 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
23672 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
23673 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23674 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
23675 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
23676 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
23677 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
23678 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23679 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
23680 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
23681 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
23682 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
23683 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
23684 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
23685 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
23686 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
23687 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
23688 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
23689 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
23690 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
23691 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
23692 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
23693 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
23694 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
23695 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
23696 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
23697 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
23698 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
23699 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
23700 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
23701 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
23702 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
23703 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
23704 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
23705 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
23706 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
23707 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
23708 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
23709 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
23710 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
23711 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
23712 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
23713 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
23714 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
23715 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
23716 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
23717 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
23718 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23719 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
23720 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
23721 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
23722 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
23723 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
23724 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
23725 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
23726 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
23727 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
23728 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
23729 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
23730 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
23731 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
23732 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
23733 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23734 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
23735 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
23736 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
23737 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
23738 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
23739 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
23740 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
23741 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
23742 snames.ads, sprint.adb, sprint.ads, stand.adb,
23743 stand.ads, stringt.adb, stringt.ads, style.adb,
23744 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
23745 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
23746 switch-m.ads, switch.adb, switch.ads, system.ads,
23747 table.adb, table.ads, targparm.adb, targparm.ads,
23748 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
23749 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
23750 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
23751 ttypef.ads, ttypes.ads, types.adb, types.ads,
23752 uintp.adb, uintp.ads, uname.adb, uname.ads,
23753 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
23754 usage.adb, usage.ads, validsw.adb, validsw.ads,
23755 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
23756 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
23757 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
23758 formatting and other trivial changes from ACT.
23760 2003-04-12 Zack Weinberg <zack@codesourcery.com>
23762 * gigi.h, utils2.c (build_constructor):
23763 Rename gnat_build_constructor. Use build_constructor.
23764 * decl.c (gnat_to_gnu_entity)
23765 * trans.c (tree_transform, pos_to_constructor, extract_values)
23766 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
23767 (unchecked_convert)
23768 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
23769 (fill_vms_descriptor):
23772 2003-04-06 Zack Weinberg <zack@codesourcery.com>
23774 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
23775 * misc.c (gnat_tree_size): New function.
23776 (LANG_HOOKS_TREE_SIZE): Override.
23778 2003-04-03 Jason Merrill <jason@redhat.com>
23780 * misc.c (gnat_adjust_rli): #if 0.
23782 2003-03-31 Geert Bosch <bosch@gnat.com>
23785 * link.c : Fix misspelled "const" keyword
23787 2003-03-23 Mark Mitchell <mark@codesourcery.com>
23790 * utils2.c: Adjust calls to put_var_into_stack.
23792 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
23794 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
23796 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
23798 * misc.c (gnat_init): Update for new prototype.
23800 2003-03-05 Olivier Hainque <hainque@gnat.com>
23803 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
23804 warning, and fix return type for the IN_RTS && !SJLJ case.
23806 2003-03-04 Tom Tromey <tromey@redhat.com>
23808 * Make-lang.in (ada.tags): New target.
23810 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
23813 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
23814 wrapper, which name remains constant whatever underlying GCC
23817 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
23818 the stable interface needed for a-except.
23820 2003-03-02 Andreas Jaeger <aj@suse.de>
23822 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23823 gnat_ug_wnt.texi: Regenerate.
23825 2003-03-02 Laurent Guerby <guerby@acm.org>
23827 * Makefile.in (install-gnatlib): Match previous change there
23830 2003-02-28 Andreas Schwab <schwab@suse.de>
23832 * Make-lang.in (install-gnatlib): Change to ada directory before
23833 running make instead of using ada/Makefile directly.
23835 2003-02-18 Ben Elliston <bje@redhat.com>
23837 Part of PR ada/9406
23838 * gnat_ug.texi (Binder output file): Grammar fix.
23840 2003-02-18 Ben Elliston <bje@redhat.com>
23843 * 5qtaprop.adb (Sleep): Fix typo in comment.
23845 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
23847 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
23848 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23849 gnat_ug_wnt.texi: Regenerate.
23851 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
23853 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
23854 be created if necessary.
23855 (ada.install-common): Let $(DESTDIR)$(bindir) be created
23856 if necessary. Remove erroneous and redundant gnatchop
23857 installation commands. Test for gnatdll before attempting
23859 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
23860 and gnatdll from all plausible locations.
23862 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
23864 * utils2.c (build_unary_op): Don't check flag_volatile.
23865 * gnat_ug.texi: Remove -fvolatile from example.
23866 * gnat_ug_vxw.texi: Likewise.
23868 2003-01-29 Laurent Guerby <guerby@acm.org>
23871 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
23872 * Makefile.in: match previous change.
23873 * Make-lang.in: match previous change.
23875 2003-01-29 Joel Sherrill <joel@OARcorp.com>
23877 * 5rosinte.ads: Add SIGXCPU.
23878 * 5rtpopsp.adb: New file.
23879 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
23880 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
23881 specific file 5rtpopsp.adb.
23882 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
23883 is likely needed for all newlib targets.
23884 * init.c: Add RTEMS specific version of __gnat_initialize().
23886 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23888 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
23890 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23892 * init.c (__gnat_error_handler): Make msg const.
23894 * gmem.c (convert_addresses): Move declaration ...
23895 * adaint.h: ... here.
23896 * adaint.c (convert_addresses): Adapt addrs type to match
23899 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
23901 2003-01-24 Andreas Schwab <schwab@suse.de>
23903 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
23904 size_t to avoid warning.
23906 2003-01-21 Zack Weinberg <zack@codesourcery.com>
23908 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
23910 2003-01-09 Geoffrey Keating <geoffk@apple.com>
23912 * gnat_rm.texi: Remove RCS version number.
23914 * ada-tree.h (union lang_tree_node): Add chain_next option.
23916 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
23918 * Make-lang.in (ada.install-info, ada.install-common,
23919 ada.uninstall): Prepend $(DESTDIR) to the destination
23920 directory in all (un)installation commands.
23921 * Makefile.in (install-gnatlib, install-rts): Ditto.
23923 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
23925 * gnat_rm.texi, gnat_ug.texi: Use @copying.
23926 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23927 gnat_ug_wnt.texi: Regenerate.
23929 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
23931 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
23933 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
23934 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
23935 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
23936 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
23937 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
23938 $(srcdir)/doc/include/gcc-common.texi.
23940 2002-12-15 Geert Bosch <bosch@gnat.com>
23942 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
23944 2002-12-14 Geert Bosch <bosch@gnat.com>
23947 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
23948 case of a body created for a Renaming_As_Body, on which
23949 conformance checks are not performed.
23951 2002-11-30 Zack Weinberg <zack@codesourcery.com>
23953 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
23954 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
23955 not already included.
23956 * Make-lang.in: Update dependencies.
23958 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
23959 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
23960 solution to buffer overflow bug on GNU/Linux.
23962 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
23966 * bindgen.adb: Remove all references to Public_Version.
23967 * comperr.adb: Remove all references to Public_Version and
23968 GNATPRO_Version; correct bug reporting instructions.
23969 * comperr.ads: Change to match bug box.
23970 * gnatvsn.ads: Remove all references to Public version and
23973 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
23976 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
23980 * config-lang.in: Remove diff_excludes.
23982 2002-11-05 Graham Stott <graham.stott@btinternet.com>
23985 * trans.c (gnu_pending_elaboration_lists): New GC root.
23986 (build_unit_elab): Use..
23988 2002-10-30 Geert Bosch <bosch@gnat.com>
23991 * misc.c : Include optabs.h
23993 * Make-lang.in (misc.o): Add dependency on optabs.h
23995 2002-10-29 Geert Bosch <bosch@gnat.com>
23998 * Make-lang.in (gnatbind): Depend on CONFIG_H
24000 2002-10-29 Geert bosch <bosch@gnat.com>
24003 * misc.c: Unrevert misc.c (1.13)
24005 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
24007 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
24008 maintainership comments.
24010 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
24013 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
24014 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
24015 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
24016 7staprop.adb: Correct statements in comments about
24017 maintainership of GNAT.
24020 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
24021 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
24022 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
24023 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
24024 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
24025 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
24026 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
24027 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
24028 comments about maintainership of GNAT.
24030 PR ada/6919 (forward port of patch for PR ada/5904)
24031 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
24032 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
24033 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
24034 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
24035 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
24036 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
24037 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
24038 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
24039 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
24040 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
24041 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
24042 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
24043 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
24044 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
24045 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
24046 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
24047 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
24048 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
24049 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
24050 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
24051 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
24052 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
24053 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
24054 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
24055 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
24056 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
24057 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
24058 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
24059 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
24060 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
24061 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
24062 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
24063 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
24064 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
24065 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
24066 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
24067 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
24068 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
24069 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
24070 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
24071 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
24072 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
24073 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
24074 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
24075 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
24076 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
24077 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
24078 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
24079 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
24080 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
24081 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
24082 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
24083 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
24084 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
24085 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
24086 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
24087 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
24088 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
24089 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
24090 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
24091 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
24092 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
24093 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
24094 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
24095 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
24096 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
24097 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
24098 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
24099 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
24100 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
24101 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
24102 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
24103 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
24104 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
24105 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
24106 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
24107 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
24108 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
24109 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
24110 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
24111 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
24112 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
24113 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
24114 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
24115 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
24116 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
24117 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
24118 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
24119 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
24120 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
24121 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
24122 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
24123 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
24124 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
24125 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
24126 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
24127 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
24128 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
24129 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
24130 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
24131 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
24132 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
24133 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
24134 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
24135 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
24136 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
24137 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
24138 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
24139 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
24140 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
24141 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
24142 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
24143 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
24144 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
24145 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
24146 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
24147 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
24148 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
24149 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
24150 par-endh.adb par-labl.adb par-load.adb par-prag.adb
24151 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
24152 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
24153 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
24154 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
24155 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
24156 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
24157 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
24158 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
24159 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
24160 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
24161 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
24162 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
24163 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
24164 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
24165 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
24166 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
24167 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
24168 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
24169 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
24170 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
24171 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
24172 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
24173 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
24174 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
24175 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
24176 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
24177 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
24178 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
24179 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
24180 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
24181 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
24182 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
24183 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
24184 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
24185 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
24186 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
24187 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
24188 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
24189 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
24190 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
24191 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
24192 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
24193 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
24194 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
24195 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
24196 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
24197 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
24198 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
24199 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
24200 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
24201 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
24202 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
24203 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
24204 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
24205 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
24206 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
24207 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
24208 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
24209 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
24210 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
24211 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
24212 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
24213 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
24214 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
24215 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
24216 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
24217 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
24218 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
24219 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
24220 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
24221 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
24222 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
24223 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
24224 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
24225 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
24226 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
24227 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
24228 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
24229 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
24230 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
24231 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
24232 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
24233 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
24234 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
24235 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
24236 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
24237 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
24238 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
24239 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
24240 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
24241 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
24242 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
24243 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
24244 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
24245 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
24246 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
24247 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
24248 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
24249 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
24250 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
24251 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
24252 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
24253 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
24254 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
24255 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
24256 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
24257 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
24258 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
24259 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
24260 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
24261 stringt.ads stringt.h style.adb style.ads stylesw.adb
24262 stylesw.ads switch.adb switch.ads sysdep.c system.ads
24263 table.adb table.ads targparm.adb targparm.ads targtyps.c
24264 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
24265 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
24266 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
24267 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
24268 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
24269 usage.ads utils.c utils2.c validsw.adb validsw.ads
24270 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
24271 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
24272 xtreeprs.adb: Correct statements in comments about maintainership
24275 2002-09-23 Zack Weinberg <zack@codesourcery.com>
24277 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
24278 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
24279 * gnatvsn.ads: Gnat_Version_String is now a function.
24280 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
24281 copy the C version_string into a String and return it.
24282 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
24283 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
24284 Remove pragma Ident (Gnat_Version_String). If this was the
24285 sole use of package Gnatvsn, remove the with statement too.
24286 * gnat1drv.adb: Tweak -gnatv output.
24288 2002-09-17 Richard Henderson <rth@redhat.com>
24290 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
24291 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
24292 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
24293 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
24294 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
24295 and real_2expN instead of a loop.
24296 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
24297 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
24299 2002-08-25 Andre Leis <a.leis@gmx.net>
24300 David Billinghurst (David.Billinghurst@riotinto.com>
24302 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
24304 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24306 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
24307 Remove $(CONFIG_H) dependency.
24309 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
24311 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
24313 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24315 * adadecode.c (ada_demangle): Use xstrdup in lieu of
24317 * misc.c (gnat_decode_option): Likewise.
24319 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
24321 * make.adb (Add_Switch): Make Generic_Position a procedure. The
24322 function approach did not work well because of a side effect (the
24323 function call could reallocate the table which was being indexed
24324 using its result). Fixes ada/4851. [RESURRECTED]
24326 2002-07-01 Roger Sayle <roger@eyesopen.com>
24328 * ada/utils.c (builtin_function): Accept an additional parameter.
24330 2002-06-28 Andreas Jaeger <aj@suse.de>
24333 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
24336 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24338 * Makefile.in (SHELL): Set to @SHELL@.
24340 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24342 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
24343 array size calculation.
24345 2002-06-04 Andreas Jaeger <aj@suse.de>
24347 * Make-lang.in (gnatbind): Readd rule that has been lost in last
24350 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
24352 Merge from pch-branch:
24354 * config-lang.in (gtfiles): Add ada-tree.h.
24355 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
24356 (SET_TYPE_MODULUS): New.
24357 (SET_TYPE_INDEX): New.
24358 (SET_TYPE_DIGITS_VALUE): New.
24359 (SET_TYPE_RM_SIZE): New.
24360 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
24361 (SET_TYPE_ADA_SIZE): New.
24362 (SET_TYPE_ACTUAL_BOUNDS): New.
24363 (SET_DECL_CONST_CORRESPONDING_VAR): New.
24364 (SET_DECL_ORIGINAL_FIELD): New.
24365 (TREE_LOOP_ID): Correct typo.
24366 * decl.c: Use new macros.
24367 * utils.c: Include debug.h, use new macros.
24368 * utils2.c: Use new macros.
24370 * ada-tree.h: Update all macros for new tree description.
24371 (struct tree_loop_id): New.
24372 (union lang_tree_node): New.
24373 (struct lang_decl): New.
24374 (struct lang_type): New.
24375 * misc.c (gnat_mark_tree): Delete.
24376 (LANG_HOOKS_MARK_TREE): Delete.
24377 * trans.c (tree_transform): No longer any need to cast
24380 * utils.c (struct language_function): New dummy structure.
24382 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
24383 (misc.o): Likewise.
24384 (utils.o): Likewise; also gtype-ada.h.
24385 * Make-lang.in (gnat1): Add dependency on s-gtype.
24386 (gnatbind): Add dependency on $(CONFIG_H).
24387 * utils.c: Correct last #include.
24388 (stuct e_stack): Remove unnecessary 'static'.
24389 (mark_e_stack): Remove unused prototype.
24391 * scn-nlit.adb: Remove whitespace after version number to
24392 keep lines under 80 chars.
24393 * snames.adb: Likewise.
24394 * treepr.ads: Likewise.
24396 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
24397 (misc.o): Likewise.
24398 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
24399 * config-lang.in (gtfiles): New.
24400 * decl.c: Use gengtype for roots.
24401 * gigi.h: Use gengtype for roots.
24402 * trans.c: Use gengtype for roots.
24403 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
24405 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
24407 * misc.c (gnat_init): Adjust setting of internal_error_function.
24409 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
24411 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
24412 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
24413 gnat_ug_wnt.texi: Regenerate.
24415 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
24417 * 5ntaprop.adb (with System.OS_Primitives): Remove.
24419 * cstreams.c (max_path_len): Move from here ...
24420 * adaint.c (__gnat_max_path_len): ... to here.
24421 * adaint.c (__gnat_max_path_len): Declare.
24422 * g-dirope.adb (Max_Path): Adjust.
24423 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
24424 * i-cstrea.ads (max_path_len): Adjust.
24425 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
24426 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
24428 * Makefile.in, Make-lang.in: Documentation is now built in
24429 Make-lang.in. Store Info and generated Texinfo files in the
24431 * gnat_ug.texi: Remove CVS keywords, correct version number.
24432 Set file name correctly.
24434 * gnat_ug_*.texi: Add.
24435 * .cvsignore: Ignore generated Texinfo files.
24437 2002-05-30 Zack Weinberg <zack@codesourcery.com>
24439 * ada.h: Add MI guard macro.
24440 (SUBTYPE): Define constants with an anonymous enum, not static
24442 (IN): Cast constants to appropriate type before use.
24444 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
24446 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
24449 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24451 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
24452 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
24453 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
24454 (ALL_ADA_CFLAGS): Likewise.
24455 (ADA_INCLUDES): Likewise.
24456 Adapt for new working dir.
24457 (GNATBIND): Use Makefile.in version.
24458 (.SUFFIXES): Copy from Makefile.in.
24459 (ada-warn): Define.
24460 (.adb.o, .ads.o): Copy from Makefile.in.
24461 Added $(OUTPUT_OPTION).
24462 (GNAT1_C_OBJS): Moved from Makefile.in.
24463 Prefix with ada subdir.
24464 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
24465 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
24466 Adapt for new working dir.
24467 (EXTRA_GNATBIND_OBJS): Likewise.
24468 (ADA_BACKEND): Moved from Makefile.in.
24469 Renamed to avoid conflict with global BACKEND.
24471 (TARGET_ADA_SRCS): Moved from Makefile.in.
24472 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
24474 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
24475 (ada_extra_files): Moved from Makefile.in.
24476 Prefix with ada subdir.
24477 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
24478 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
24479 (ada/nmake.ads): Likewise.
24480 (update-sources): Moved from Makefile.in.
24481 Prefix with ada subdir.
24482 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
24483 (ADA_TREE_H): Likewise.
24484 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
24485 (ada/memtrack.o): Likewise.
24486 (ada/adadecode.o): Likewise.
24487 Update dependencies.
24488 (ada/adaint.o): New.
24489 (ada/argv.o): Moved from Makefile.in.
24490 Prefix with ada subdir.
24491 Update dependencies.
24492 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
24493 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
24494 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
24495 Prefix with ada subdir.
24496 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
24497 (GNAT DEPENDENCIES): Regenerate.
24498 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
24499 toplevel Makefile.in.
24500 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
24501 (TARGET_ADA_SRCS): Removed.
24502 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
24503 (GNATBIND_OBJS): Likewise.
24504 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
24505 (BACKEND): Removed.
24506 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
24507 (TREE_H): Likewise.
24508 (ada_extra_files): Likewise.
24509 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
24510 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
24511 (update-sources): Likewise.
24512 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
24513 (ADA_TREE_H): Likewise.
24514 (adadecoce.o): Likewise.
24515 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
24516 (GNAT DEPENDENCIES): Likewise.
24518 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24520 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
24521 * Makefile.in: Likewise.
24523 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24525 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
24526 Restore $(CONFIG_H) and prefix.o dependencies.
24527 (ada.stage[1-4]): Depend on stage?-start.
24529 * Makefile.in (b_gnatb.c): Depend on interfac.o.
24531 2002-05-02 Jim Wilson <wilson@redhat.com>
24533 * utils.c (finish_record_type): Change record_size to record_type.
24535 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
24537 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
24538 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
24539 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
24541 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
24543 * misc.c (gnat_parse_file): Update.
24545 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
24547 * misc.c (gnat_init): Don't set lang_attribute_common.
24549 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
24551 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
24553 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
24555 * gnat_ug.texi: New file.
24557 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
24558 instead of gfdl.texi
24560 * xgnatug.adb, ug_words: New files.
24562 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
24563 gnat_rm and gnat-style manuals.
24565 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
24567 * gigi.h (incomplete_type_error): Remove.
24568 * utils.c (incomplete_type_error): Remove.
24570 2002-04-16 Mark Mitchell <mark@codesourcery.com>
24572 * trans.c (tree_transform): Add has_scope argument to
24573 expand_start_stmt_expr.
24575 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
24577 * gigi.h (truthvalue_conversion): Rename.
24578 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
24579 * trans.c (tree_transform): Update.
24580 * utils2.c (truthvalue_conversion): Rename, update.
24581 (build_binary_op, build_unary_op): Update.
24583 2002-04-04 Laurent Guerby <guerby@acm.org>
24585 * make.adb: Implement -margs, remove restriction about file name placement.
24586 * makeusg.adb: Documentation update.
24587 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
24588 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
24590 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
24592 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
24593 (builtin_function): Similarly.
24595 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
24597 * decl.c (gnat_to_gnu_entity): Update.
24598 * gigi.h (mark_addressable): Rename.
24599 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
24600 * trans.c (tree_transform): Update.
24601 * utils.c (create_var_decl): Update.
24602 * util2.c (build_binary_op, build_unary_op,
24603 fill_vms_descriptor): Update.
24604 (mark_addressable): Rename, update.
24606 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
24608 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
24610 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
24611 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
24612 * trans.c (tree_transform, convert_with_check): Update.
24613 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
24616 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
24618 * gigi.h (finish_incomplete_decl): Rename.
24619 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
24620 * utils.c (gnat_init_decl_processing): Don't set hook.
24621 (finish_incomplete_decl): Rename.
24623 2002-03-29 Andreas Schwab <schwab@suse.de>
24625 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
24628 2001-03-28 Robert Dewar <dewar@gnat.com>
24631 (Remove_Checks): New procedure
24634 (Remove_Checks): New procedure
24637 Use new Duplicate_Subexpr functions
24638 (Duplicate_Subexpr_No_Checks): New procedure
24639 (Duplicate_Subexpr_No_Checks_Orig): New procedure
24640 (Duplicate_Subexpr): Restore original form (checks duplicated)
24641 (Duplicate_Subexpr): Call Remove_Checks
24644 (Duplicate_Subexpr_No_Checks): New procedure
24645 (Duplicate_Subexpr_No_Checks_Orig): New procedure
24646 Add 2002 to copyright notice
24648 * sem_util.adb: Use new Duplicate_Subexpr functions
24651 (Eval_Indexed_Component): This is the place to call
24652 Constant_Array_Ref and to replace the value. We simply merge
24653 the code of this function in here, since it is now no longer
24654 used elsewhere. This fixes the problem of the back end not
24655 realizing we were clever enough to see that this was
24657 (Expr_Val): Remove call to Constant_Array_Ref
24658 (Expr_Rep_Val): Remove call to Constant_Array_Ref
24660 (Constant_Array_Ref): Deal with string literals (patch
24661 suggested by Zack Weinberg on the gcc list)
24663 2001-03-28 Ed Schonberg <schonber@gnat.com>
24665 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
24666 Duplicate_Subexpr_Move_Checks.
24668 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
24669 Duplicate_Subexpr_Move_Checks.
24671 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
24672 value of array exists before retrieving it (it may a private
24673 protected component in a function).
24675 2002-03-28 Geert Bosch <bosch@gnat.com>
24677 * prj-pp.adb : New file.
24679 * prj-pp.ads : New file.
24681 2002-03-28 Andreas Jaeger <aj@suse.de>
24683 * Makefile.in (stamp-sdefault): Fix path for Makefile.
24685 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
24687 * misc.c (gnat_expand_expr): Move prototype.
24689 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
24691 * misc.c (insert_default_attributes): Remove.
24693 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
24695 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
24696 (gnat_init): Don't set hook.
24697 (gnat_expand_expr): Fix prototype.
24699 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
24701 * misc.c (ggc_p): Remove.
24703 2002-03-27 Geert Bosch <bosch@gnat.com>
24705 * prj-makr.ads, prj-makr.adb : New files.
24707 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
24709 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
24710 (lang_mark_tree): Make static, rename.
24712 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
24714 * misc.c (maybe_build_cleanup): Remove.
24716 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
24718 * gigi.h (yyparse): Remove.
24720 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
24722 * gnat_rm.texi: Sync with ACT version.
24723 (From Ben Brosgol <brosgol@gnat.com>)
24725 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
24727 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
24728 (gnat_init): Remove old hook.
24730 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
24732 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
24733 (yyparse): Rename gnat_parse_file.
24735 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
24737 Delete all lines containing "$Revision:".
24738 * xeinfo.adb: Don't look for revision numbers.
24739 * xnmake.adb: Likewise.
24740 * xsinfo.adb: Likewise.
24741 * xsnames.adb: Likewise.
24742 * xtreeprs.adb: Likewise.
24744 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24746 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
24747 gnat_tree_code_name): Delete.
24748 (tree_code_type, tree_code_length, tree_code_name): Define.
24749 (gnat_init): Don't try to copy into the various tree_code
24752 2002-03-11 Richard Henderson <rth@redhat.com>
24754 * Makefile.in (.NOTPARALLEL): Add fake tag.
24756 2002-03-07 Geert Bosch <bosch@gnat.com>
24758 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
24759 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
24760 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
24761 switch-m.adb, switch-m.ads : New files.
24763 2002-03-07 Geert Bosch <bosch@gnat.com>
24765 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
24766 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
24767 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
24768 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
24769 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
24770 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
24771 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
24772 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
24773 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
24774 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
24775 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
24776 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
24777 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
24778 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
24779 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
24780 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
24781 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
24782 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
24783 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
24784 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
24785 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
24786 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
24787 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
24788 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
24789 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
24790 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
24791 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
24792 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
24793 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
24794 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
24795 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
24796 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
24797 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
24798 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
24799 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
24800 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
24801 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
24802 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
24803 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
24804 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
24805 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
24806 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
24807 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
24808 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
24809 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
24810 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
24811 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
24812 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
24813 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
24814 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
24815 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
24816 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
24817 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
24818 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
24819 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
24820 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
24821 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
24822 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
24823 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
24824 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
24825 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
24826 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
24827 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
24828 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
24829 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
24830 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
24831 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
24832 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
24833 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
24834 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
24835 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
24836 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
24837 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
24838 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
24839 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
24840 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
24841 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
24842 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
24843 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
24844 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
24845 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
24846 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
24847 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
24848 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
24849 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
24850 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
24851 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
24852 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
24853 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
24854 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
24855 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
24856 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
24857 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
24858 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
24859 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
24860 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
24861 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
24863 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
24864 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
24865 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
24866 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
24868 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
24869 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
24871 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
24872 to mdll-fil.ad[bs] and mdll-util.ad[bs]
24874 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
24875 from mdllfile.ad[bs] and mdlltool.ad[bs]
24877 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24879 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
24880 lieu of explicit sizeof/sizeof.
24882 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
24884 * misc.c (copy_lang_decl): Remove.
24886 2002-02-27 Zack Weinberg <zack@codesourcery.com>
24888 * misc.c: Delete traditional-mode-related code copied from the
24889 C front end but not used, or used only to permit the compiler
24892 2002-02-07 Richard Henderson <rth@redhat.com>
24894 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
24895 * adaint.h (__gnat_to_gm_time): Update prototype.
24897 2002-01-30 Richard Henderson <rth@redhat.com>
24899 * trans.c (tree_transform) [N_Loop_Statement]: Use
24900 expand_exit_loop_top_cond.
24902 2001-12-23 Richard Henderson <rth@redhat.com>
24904 * utils.c (end_subprog_body): Push GC context around
24905 rest_of_compilation for nested functions.
24907 2001-12-23 Richard Henderson <rth@redhat.com>
24909 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
24911 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
24913 * gnat-style.texi (Declarations and Types): Remove ancient style
24914 rule which was mandated by code generation issues.
24916 * gnat-style.texi (header): Add @dircategory, @direntry.
24917 (title page): Remove date.
24918 (general) Add @./@: where approriate, and two spaces after the
24919 full stop at the end of a sentence. Use @samp markup when
24920 referring concrete lexical entities (keywords, attribute names
24921 etc.), and @syntax for ARM grammar elements. Use @r for English
24922 text in comments. Use @emph for emphasis. Change "if-statements"
24923 etc. to "if statements" (without @samp). Break long lines. Make
24924 casing of section names consistent.
24925 (Identifiers): Use @samp markup for variable names.
24926 (Comments): Use @samp markup for comment characters. Line-end
24927 comments may follow any Ada code, not just statements. Fix
24928 misspelling of "Integer" as "integer".
24929 (Loop statements): Do not use variable name "I", use "J".
24930 (Subprogram Declarations): Document alignment.
24931 (Subprogram Bodies, Block statements): Document empty line before
24934 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
24936 * make.adb (Add_Switch): Make Generic_Position a procedure. The
24937 function approach did not work well because of a side effect (the
24938 function call could reallocate the table which was being indexed
24939 using its result). Fixes ada/4851.
24941 2001-12-19 Robert Dewar <dewar@gnat.com>
24943 * bindgen.adb: Minor reformatting
24945 * cstand.adb: Minor reformatting
24947 * fmap.adb: Minor reformatting
24948 Change name from Add for Add_To_File_Map (Add is much too generic)
24949 Change Path_Name_Of to Mapped_Path_Name
24950 Change File_Name_Of to Mapped_File_Name
24951 Fix copyright dates in header
24954 Change name from Add for Add_To_File_Map (Add is much too generic)
24955 Change Path_Name_Of to Mapped_Path_Name
24956 Change File_Name_Of to Mapped_File_Name
24957 Fix copyright dates in header
24959 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
24960 Add use clause for Fmap.
24962 * make.adb: Minor reformatting
24964 * osint.adb: Minor reformatting. Change of names in Fmap.
24965 Add use clause for Fmap.
24967 * prj-env.adb: Minor reformatting
24969 * prj-env.ads: Minor reformatting
24971 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
24972 error found (there were odd exceptions to this general rule in
24973 -gnatec/-gnatem processing)
24975 2001-12-19 Olivier Hainque <hainque@gnat.com>
24977 * raise.c (__gnat_eh_personality): Exception handling personality
24978 routine for Ada. Still in rough state, inspired from the C++ version
24979 and still containing a bunch of debugging artifacts.
24980 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
24981 inspired from the C++ library.
24983 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
24984 exception handling integration.
24986 2001-12-19 Arnaud Charlet <charlet@gnat.com>
24988 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
24989 (HIE_SOURCES): Add s-secsta.ad{s,b}.
24990 (HIE_OBJS): Add s-fat*.o
24991 (RAVEN_SOURCES): Remove files that are no longer required. Add
24992 interrupt handling files.
24993 (RAVEN_MOD): Removed, no longer needed.
24995 2001-12-19 Robert Dewar <dewar@gnat.com>
24997 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
24998 Add 2001 to copyright date
25000 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
25001 need to force universal inlining for these cases.
25003 2001-12-19 Arnaud Charlet <charlet@gnat.com>
25005 * s-taprob.adb: Minor clean ups so that this unit can be used in
25008 * exp_ch7.adb: Allow use of secondary stack in HI mode.
25009 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
25011 2001-12-19 Vincent Celier <celier@gnat.com>
25013 * prj-tree.ads (Project_Node_Record): Add comments for components
25014 Pkg_Id and Case_Insensitive.
25016 2001-12-19 Pascal Obry <obry@gnat.com>
25018 * g-socket.adb: Minor reformatting. Found while reading code.
25020 2001-12-19 Robert Dewar <dewar@gnat.com>
25022 * prj-tree.ads: Minor reformatting
25024 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
25026 * config-lang.in (diff_excludes): Remove.
25028 2001-12-17 Ed Schonberg <schonber@gnat.com>
25030 * sem_res.adb (Resolve_Selected_Component): do not generate a
25031 discriminant check if the selected component is a component of
25032 the argument of an initialization procedure.
25034 * trans.c (tree_transform, case of arithmetic operators): If result
25035 type is private, the gnu_type is the base type of the full view,
25036 given that the full view itself may be a subtype.
25038 2001-12-17 Robert Dewar <dewar@gnat.com>
25040 * sem_res.adb: Minor reformatting
25042 * trans.c (tree_transform, case N_Real_Literal): Add missing third
25043 parameter in call to Machine (unknown horrible effects from this
25046 * urealp.h: Add definition of Round_Even for call to Machine
25047 Add third parameter for Machine
25049 2001-12-17 Ed Schonberg <schonber@gnat.com>
25051 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
25052 predefined units in No_Run_Time mode.
25054 2001-12-17 Richard Kenner <kenner@gnat.com>
25056 * misc.c (insn-codes.h): Now include.
25058 2001-12-17 Olivier Hainque <hainque@gnat.com>
25060 * a-except.adb: Preparation work for future integration of the GCC 3
25061 exception handling mechanism
25062 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
25063 to factorize previous code sequences and make them externally callable,
25064 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
25065 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
25066 Use the new notification routines.
25068 2001-12-17 Emmanuel Briot <briot@gnat.com>
25070 * prj-tree.ads (First_Choice_Of): Document the when others case
25072 2001-12-17 Arnaud Charlet <charlet@gnat.com>
25074 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
25075 HI-E mode, in order to support Ravenscar profile properly.
25077 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
25078 mode on 32 bits targets.
25080 2001-12-17 Vincent Celier <celier@gnat.com>
25082 * fmap.adb: Initial version.
25084 * fmap.ads: Initial version.
25086 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
25087 If search is successfully done, add to mapping.
25089 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
25092 (Gnatmake): Add new local variable Mapping_File_Name.
25093 Create mapping file when using project file(s).
25094 Delete mapping file before exiting.
25096 * opt.ads (Mapping_File_Name): New variable
25098 * osint.adb (Find_File): Use path name found in mapping, if any.
25100 * prj-env.adb (Create_Mapping_File): New procedure
25102 * prj-env.ads (Create_Mapping_File): New procedure.
25104 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
25107 * usage.adb: Add entry for new switch -gnatem.
25109 * Makefile.in: Add dependencies for fmap.o.
25111 2001-12-17 Ed Schonberg <schonber@gnat.com>
25113 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
25114 is a package instantiation rewritten as a package body.
25115 (Install_Withed_Unit): Undo previous change, now redundant.
25117 2001-12-17 Gary Dismukes <dismukes@gnat.com>
25120 (Compute_Length): Move conversion to Unsigned to callers.
25121 (Get_Max_Size): Convert Len expression to Unsigned after calls to
25122 Compute_Length and Determine_Range.
25123 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
25124 Compute_Length and Determine_Range.
25125 Above changes fix problem with length computation for supernull arrays
25126 where Max (Len, 0) wasn't getting applied due to the Unsigned
25127 conversion used by Compute_Length.
25129 2001-12-17 Arnaud Charlet <charlet@gnat.com>
25132 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
25133 System.Secondary_Stack.
25134 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
25136 Remove unused entity RE_Exception_Data.
25138 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
25140 * rident.ads (No_Secondary_Stack): New restriction.
25142 2001-12-17 Joel Brobecker <brobecke@gnat.com>
25144 * gnat_rm.texi: Fix minor typos. Found while reading the section
25145 regarding "Bit_Order Clauses" that was sent to a customer.
25146 Very interesting documentation!
25148 2001-12-17 Robert Dewar <dewar@gnat.com>
25150 * sem_case.adb (Choice_Image): Avoid creating improper character
25151 literal names by using the routine Set_Character_Literal_Name. This
25152 fixes bombs in certain error message cases.
25154 2001-12-17 Arnaud Charlet <charlet@gnat.com>
25156 * a-reatim.adb: Minor reformatting.
25158 2001-12-17 Ed Schonberg <schonber@gnat.com>
25160 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
25161 case where the formal is an extension of another formal in the current
25162 unit or in a parent generic unit.
25164 2001-12-17 Arnaud Charlet <charlet@gnat.com>
25166 * s-tposen.adb: Update comments. Minor reformatting.
25167 Minor code clean up.
25169 * s-tarest.adb: Update comments. Minor code reorganization.
25171 2001-12-17 Gary Dismukes <dismukes@gnat.com>
25173 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
25176 2001-12-17 Robert Dewar <dewar@gnat.com>
25178 * exp_attr.adb: Minor reformatting
25180 2001-12-17 Ed Schonberg <schonber@gnat.com>
25182 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
25183 derivations nested within a child unit: verify that the parent
25184 type is declared in an outer scope.
25186 2001-12-17 Robert Dewar <dewar@gnat.com>
25188 * sem_ch12.adb: Minor reformatting
25190 2001-12-17 Ed Schonberg <schonber@gnat.com>
25192 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
25193 warning if current unit is a predefined one, from which bodies may
25196 2001-12-17 Robert Dewar <dewar@gnat.com>
25198 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
25199 Fix header format. Add 2001 to copyright date.
25201 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
25202 which caused CE during compilation if checks were enabled.
25204 2001-12-17 Vincent Celier <celier@gnat.com>
25207 (Switches_Of): New function
25208 (Test_If_Relative_Path): New procedure
25209 (Add_Switches): Use new function Switches_Of
25210 (Collect_Arguments_And_Compile): Use new function Switches_Of.
25211 When using a project file, test if there are any relative
25212 search path. Fail if there are any.
25213 (Gnatmake): Only add switches for the primary directory when not using
25214 a project file. When using a project file, change directory to the
25215 object directory of the main project file. When using a project file,
25216 test if there are any relative search path. Fail if there are any.
25217 When using a project file, fail if specified executable is relative
25218 path with directory information, and prepend executable, if not
25219 specified as an absolute path, with the exec directory. Make sure
25220 that only one -o switch is transmitted to the linker.
25222 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
25225 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
25226 when using a non standard naming scheme.
25227 (Check_Ada_Naming_Scheme): Make sure that error messages
25228 do not raise exceptions.
25229 (Is_Illegal_Append): Return True if there is no dot in the suffix.
25230 (Language_Independent_Check): Check the exec directory.
25232 * prj.adb (Project_Empty): Add new component Exec_Directory
25235 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
25236 (Project_Data): Add component Exec_Directory
25238 * snames.adb: Updated to match snames.ads revision 1.215
25240 * snames.ads: Added Exec_Dir
25242 2001-12-17 Robert Dewar <dewar@gnat.com>
25244 * make.adb: Minor reformatting
25246 * prj-nmsc.adb: Minor reformatting
25248 * snames.adb: Updated to match snames.ads
25250 * snames.ads: Alphebetize entries for project file
25252 2001-12-17 Ed Schonberg <schonber@gnat.com>
25254 * trans.c (process_freeze_entity): Do nothing if the entity is a
25255 subprogram that was already elaborated.
25257 2001-12-17 Richard Kenner <kenner@gnat.com>
25259 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
25260 and Esize if object is referenced via pointer.
25262 2001-12-17 Ed Schonberg <schonber@gnat.com>
25264 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
25265 is discrete before analyzing choices.
25267 2001-12-17 Joel Brobecker <brobecke@gnat.com>
25269 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
25270 containing the name of the Ada Main Program. This string is mainly
25271 intended for the debugger.
25272 (Gen_Output_File_C): Do the equivalent change when generating a C file.
25274 2001-12-17 Robert Dewar <dewar@gnat.com>
25276 * ali.adb: Set new Dummy_Entry field in dependency entry
25278 * ali.ads: Add Dummy_Entry field to source dependency table
25280 * bcheck.adb (Check_Consistency): Ignore dummy D lines
25282 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
25284 * lib-writ.ads: Document dummy D lines for missing files.
25286 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
25288 2001-12-17 Robert Dewar <dewar@gnat.com>
25290 * ali.adb: Type reference does not reset current file.
25292 * ali.adb: Recognize and scan renaming reference
25294 * ali.ads: Add spec for storing renaming references.
25296 * lib-xref.ads: Add documentation for handling of renaming references
25298 * lib-xref.adb: Implement output of renaming reference.
25301 (Determine_Range): Document local variables
25302 (Determine_Range): Make sure Hbound is initialized. It looks as though
25303 there could be a real problem here with an uninitialized reference
25304 to Hbound, but no actual example of failure has been found.
25306 2001-12-17 Laurent Pautet <pautet@gnat.com>
25309 Fix comment of Shutdown_Socket and Close_Socket. These functions
25310 should not fail silently because if they are called twice, this
25311 probably means that there is a race condition in the user program.
25312 Anyway, this behaviour is consistent with the rest of this unit.
25313 When an error occurs, an exception is raised with the error message
25314 as exception message.
25316 2001-12-17 Robert Dewar <dewar@gnat.com>
25318 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
25319 that it happens before modification of Sloc values for -gnatD.
25321 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
25322 so that it happens before modification of Sloc values for -gnatD.
25324 * switch.adb: Minor reformatting
25326 2001-12-15 Richard Henderson <rth@redhat.com>
25328 * sem_ch7.adb: Wrap comment.
25330 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
25332 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
25333 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
25334 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
25335 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
25336 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
25337 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
25338 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
25339 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
25340 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
25341 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
25342 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
25343 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
25344 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
25345 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
25346 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
25347 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
25348 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
25349 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
25350 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
25351 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
25352 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
25353 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
25354 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
25355 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
25358 2001-12-14 Vincent Celier <celier@gnat.com>
25360 * osint.adb(Create_Debug_File): When an object file is specified,
25361 put the .dg file in the same directory as the object file.
25363 2001-12-14 Robert Dewar <dewar@gnat.com>
25365 * osint.adb: Minor reformatting
25367 * lib-xref.adb (Output_Instantiation): New procedure to generate
25368 instantiation references.
25370 * lib-xref.ads: Add documentation of handling of generic references.
25372 * ali.adb (Read_Instantiation_Ref): New procedure to read
25373 instantiation references
25375 * ali.ads: Add spec for storing instantiation references
25377 * bindusg.adb: Minor reformatting
25379 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25381 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25383 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25385 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25389 Add 2001 to copyright date
25390 Add entry for Latin-5 (Cyrillic ISO-8859-5)
25392 2001-12-14 Matt Gingell <gingell@gnat.com>
25394 * adaint.c: mktemp is a macro on Lynx and can not be used as an
25397 2001-12-14 Richard Kenner <kenner@gnat.com>
25399 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
25400 if operand is CONSTRUCTOR.
25402 2001-12-14 Ed Schonberg <schonber@gnat.com>
25404 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
25405 before emiting check on right-hand side, so that exception information
25408 2001-12-14 Richard Kenner <kenner@gnat.com>
25410 * utils.c (create_var_decl): Throw away initializing expression
25411 if just annotating types and non-constant.
25413 2001-12-14 Vincent Celier <celier@gnat.com>
25415 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
25418 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
25420 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
25422 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
25424 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
25426 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
25428 * ChangeLog: Remove piece of diff output.
25430 2001-12-14 Geert Bosch <bosch@gnat.com>
25432 * config-lang.in: Update copyright notice
25434 * layout.adb: Remove commented out code.
25436 * mdllfile.ads: Update copyright notice. Fix header format.
25438 * sem_case.ads: Likewise.
25440 * sem_ch3.adb: Minor reformatting.
25442 2001-12-12 Geert Bosch <bosch@gnat.com>
25444 * freeze.ads: Update copyright date.
25446 * g-comlin.ads: Minor reformatting.
25448 * gnat-style.texi: Fix typo.
25450 2001-12-12 Geert Bosch <bosch@gnat.com>
25452 * einfo.h: Regenerate.
25454 2001-12-12 Ed Schonberg <schonber@gnat.com>
25456 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
25457 on known node types, rather than untyped fields. Further cleanups.
25459 2001-12-12 Robert Dewar <dewar@gnat.com>
25462 (Save_Entity_Descendant): Minor comment update.
25463 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
25464 of an N_Attribute_Reference node. As per note below, this does not
25465 eliminate need for Associated_Node in attribute ref nodes.
25466 (Associated_Node): Documentation explicitly mentions attribute
25467 reference nodes, since this field is used in such nodes.
25469 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
25471 2001-12-12 Robert Dewar <dewar@gnat.com>
25473 * s-stalib.adb: Add more comments on with statements being needed
25475 * par-ch12.adb: Minor reformatting
25477 * prj-dect.ads: Fix copyright header
25479 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
25480 inputs fit in 32 bits, but the result still overflows.
25482 * s-fatgen.ads: Minor comment improvement
25484 2001-12-12 Ed Schonberg <schonber@gnat.com>
25486 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
25487 formal derived type, look for an inherited component from the full
25488 view of the parent, if any.
25490 2001-12-12 Robert Dewar <dewar@gnat.com>
25492 * checks.ads (Apply_Alignment_Check): New procedure.
25494 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
25495 ensure that the alignment of objects with address clauses is
25496 appropriate, and raise PE if not.
25498 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
25499 Exp_Pakd.Known_Aligned_Enough
25501 * mdllfile.ads: Minor reformatting
25503 * mlib-fil.ads: Minor reformatting
25505 2001-12-12 Ed Schonberg <schonber@gnat.com>
25507 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
25508 fix to any component reference if enclosing record has non-standard
25511 2001-12-12 Vincent Celier <celier@gnat.com>
25513 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
25516 2001-12-12 Ed Schonberg <schonber@gnat.com>
25518 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
25521 2001-12-12 Robert Dewar <dewar@gnat.com>
25523 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
25525 2001-12-12 Emmanuel Briot <briot@gnat.com>
25527 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
25528 and it adds dependencies to system.io.
25530 2001-12-12 Pascal Obry <obry@gnat.com>
25532 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
25535 2001-12-11 Ed Schonberg <schonber@gnat.com>
25537 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
25538 that is the parent of other generics, the instance body replaces the
25539 instance node. Retrieve the instance of the spec, which is the one
25540 that is visible in clients and within the body.
25542 2001-12-11 Vincent Celier <celier@gnat.com>
25544 * gnatmain.adb: Initial version.
25546 * gnatmain.ads: Initial version.
25548 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
25550 * snames.adb: Updated to match snames.ads.
25552 * snames.ads: Added Gnatstub.
25554 2001-12-11 Vincent Celier <celier@gnat.com>
25556 * prj-attr.adb (Initialization_Data): Change name from
25557 Initialisation_Data.
25559 2001-12-11 Emmanuel Briot <briot@gnat.com>
25561 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
25562 + and * applied to backslashed expressions like \r.
25564 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
25566 * g-os_lib.ads: String_List type added, Argument_List type is now
25567 subtype of String_List.
25569 2001-12-11 Robert Dewar <dewar@gnat.com>
25571 * g-os_lib.ads: Change copyright to FSF
25572 Add comments for String_List type
25574 2001-12-11 Vincent Celier <celier@gnat.com>
25576 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
25577 string to the buffer).
25579 2001-12-11 Ed Schonberg <schonber@gnat.com>
25581 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
25584 * sem_attr.adb: Simplify previous fix for Address.
25585 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
25586 to avoid anomalies where the bound of the type appears to raise
25589 2001-12-11 Robert Dewar <dewar@gnat.com>
25591 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
25594 2001-12-11 Ed Schonberg <schonber@gnat.com>
25596 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
25597 renamed unit before checking for recursive instantiations.
25599 2001-12-11 Emmanuel Briot <briot@gnat.com>
25601 * prj.ads: Add comments for some of the fields.
25603 2001-12-11 Robert Dewar <dewar@gnat.com>
25605 * lib-xref.adb (Output_Refs): Don't output type references outside
25606 the main unit if they are not otherwise referenced.
25608 2001-12-11 Ed Schonberg <schonber@gnat.com>
25610 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
25611 code and diagnose additional illegal uses
25613 * sem_util.adb (Is_Object_Reference): An indexed component is an
25614 object only if the prefix is.
25616 2001-12-11 Vincent Celier <celier@gnat.com>
25618 * g-diopit.adb: Initial version.
25620 * g-diopit.ads: Initial version.
25623 (Expand_Path): Avoid use of Unbounded_String
25624 (Find, Wildcard_Iterator): Moved to child package Iteration
25626 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
25628 2001-12-11 Robert Dewar <dewar@gnat.com>
25630 * sem_attr.adb: Minor reformatting
25632 2001-12-11 Ed Schonberg <schonber@gnat.com>
25634 * sem_ch3.adb: Clarify some ???.
25636 2001-12-11 Robert Dewar <dewar@gnat.com>
25638 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
25639 Exp_Pakd.Known_Aligned_Enough
25641 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
25642 version is moved to Exp_Ch13.
25644 2001-12-11 Robert Dewar <dewar@gnat.com>
25646 * einfo.ads: Minor reformatting
25648 * exp_ch5.adb: Add comment for previous.change
25650 * ali.adb: New interface for extended typeref stuff.
25652 * ali.ads: New interface for typeref stuff.
25654 * checks.adb (Apply_Alignment_Check): New procedure.
25656 * debug.adb: Add -gnatdM for modified ALI output
25658 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
25660 * lib-xref.adb: Extend generation of <..> notation to cover
25661 subtype/object types. Note that this is a complete rewrite,
25662 getting rid of the very nasty quadratic algorithm previously
25663 used for derived type output.
25665 * lib-xref.ads: Extend description of <..> notation to cover
25666 subtype/object types. Uses {..} for these other cases.
25667 Also use (..) for pointer types.
25669 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
25671 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
25672 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
25674 2001-12-11 Vincent Celier <celier@gnat.com>
25677 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
25678 Changed /BIND_ONLY to /ACTIONS=BIND
25679 Changed /LINK_ONLY to /ACTIONS=LINK
25681 2001-12-11 Ed Schonberg <schonber@gnat.com>
25683 * sem_ch8.adb (Find_Selected_Component): improved search for a
25684 candidate package in case of error.
25686 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
25687 chain back on scope stack before reinstalling use clauses.
25689 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
25690 is enabled, do not kill the code for the condition, to preserve
25693 2001-12-11 Robert Dewar <dewar@gnat.com>
25695 * checks.adb (Insert_Valid_Check): Apply validity check to expression
25696 of conversion, not to result of conversion.
25698 2001-12-11 Ed Schonberg <schonber@gnat.com>
25700 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
25701 before freezing parent. If the declarations are mutually recursive,
25702 an access to the current record type may be frozen before the
25703 derivation is complete.
25705 2001-12-05 Vincent Celier <celier@gnat.com>
25707 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
25708 -c /COMPILE_ONLY, -l /LINK_ONLY
25711 (Bind_Only): New Flag
25712 (Link_Only): New flag
25714 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
25717 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
25720 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
25721 (Gnatmake): Set the step flags. Only perform a step if the
25722 corresponding step flag is True.
25723 (Scan_Make_Arg): Reset the bind and link step flags when -u
25724 or -gnatc has been specified.
25726 2001-12-05 Ed Schonberg <schonber@gnat.com>
25728 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
25729 get bounds from right operand.
25731 * sem_eval.adb: Minor reformatting
25733 * exp_util.adb (Make_Literal_Range): use bound of literal rather
25734 than Index'First, its lower bound may be different from 1.
25736 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
25739 2001-12-05 Vincent Celier <celier@gnat.com>
25741 * prj-nmsc.adb Minor reformatting
25743 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
25744 set and libraries are not supported.
25746 2001-12-05 Ed Schonberg <schonber@gnat.com>
25748 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
25749 private view explicitly, so the back-end can treat as a global
25752 2001-12-05 Ed Schonberg <schonber@gnat.com>
25754 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
25755 unit, always replace instance node with new body, for ASIS use.
25757 2001-12-05 Vincent Celier <celier@gnat.com>
25759 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
25760 libraries are not supported and both attributes Library_Name and
25761 Library_Dir are specified.
25763 * prj-proc.adb (Expression): Set location of Result to location of
25766 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
25767 (prj-nmsc is now importing MLib.Tgt)
25769 * prj-proc.adb: Put the change indicated above that was forgotten.
25771 2001-12-05 Robert Dewar <dewar@gnat.com>
25773 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
25775 2001-12-05 Ed Schonberg <schonber@gnat.com>
25777 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
25778 constraint, introduce explicit subtype declaration and derive from it.
25780 * sem_ch3.adb: Minor reformatting
25782 2001-12-05 Robert Dewar <dewar@gnat.com>
25784 * checks.adb (Determine_Range): Increase cache size for checks.
25787 * exp_ch6.adb: Minor reformatting
25788 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
25789 a parameter whose root type is System.Address, since treating such
25790 subprograms as pure in the code generator is almost surely a mistake
25791 that will lead to unexpected results.
25793 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
25794 change handling of conversions.
25796 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
25798 2001-12-05 Ed Schonberg <schonber@gnat.com>
25800 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
25801 aggregate with static wrong size, attach generated Raise node to
25804 2001-12-05 Robert Dewar <dewar@gnat.com>
25806 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
25807 Fixes compilation abandoned bomb in B24009B.
25809 2001-12-05 Ed Schonberg <schonber@gnat.com>
25812 Document use of Associated_Node on Selected_Components.
25813 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
25814 to clarify use of untyped descendant fields.
25816 2001-12-05 Robert Dewar <dewar@gnat.com>
25818 * prj-dect.ads: Add ??? comment
25819 Add 2001 to copyright notice (was not done in after all)
25821 * prj-part.adb: Minor reformatting. Reword one awkward error message.
25823 * prj.ads: Minor reformatting throughout, and add some ??? comments
25825 * snames.ads: Minor reformatting
25827 2001-12-05 Geert Bosch <bosch@gnat.com>
25829 * snames.adb: Autoupdate
25831 2001-12-05 Vincent Celier <celier@gnat.com>
25833 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
25835 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
25837 * prj-env.adb: Minor comment changes (modifying -> extends).
25839 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
25841 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
25844 * prj.adb (Initialize): Change Modifying to Extends.
25846 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
25848 * prj.ads: Minor comment change (Modifying -> extending).
25850 * snames.ads: Change modifying to extends.
25852 2001-12-05 Robert Dewar <dewar@gnat.com>
25854 * sem_warn.adb: Remove stuff for conditionals, we are not going to
25857 * sem_warn.ads: Remove stuff for conditionals, we are not going to
25858 do this after all. Add 2001 to copyright notice
25860 2001-12-04 Geert Bosch <bosch@gnat.com>
25862 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
25864 2001-12-04 Robert Dewar <dewar@gnat.com>
25866 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
25867 location if we already have errors. Stops some cases of cascaded
25870 * errout.adb: Improve comment.
25872 2001-12-04 Robert Dewar <dewar@gnat.com>
25875 (Analyze_Formal_Type_Definition): Defend against Error.
25876 (Analyze_Formal_Subprogram): Defend against Error.
25878 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
25879 remove following semicolon if present. Removes cascaded error.
25881 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
25884 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
25885 exceptions equals 0.
25886 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
25887 Fixes PIWG E tests (which have to be run with -gnatL).
25889 2001-12-04 Robert Dewar <dewar@gnat.com>
25891 * einfo.ads: Minor reformatting
25893 2001-12-04 Ed Schonberg <schonber@gnat.com>
25895 * einfo.ads: Block_Node points to the identifier of the block, not to
25896 the block node itself, to preserve the link when the block is
25897 rewritten, e.g. within an if-statement with a static condition.
25899 * inline.adb (Cleanup_Scopes): recover block statement from block
25900 entity using new meaning of Block_Node.
25902 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
25903 identifier of block node, rather than to node itself.
25905 2001-12-04 Gary Dismukes <dismukes@gnat.com>
25908 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
25909 (Discrimify): Go back to setting the Etypes of the selected component
25910 because the Vname component does not exist at this point and will
25911 fail name resolution. Also set Analyzed.
25912 Remove with and use of Sem_Res.
25914 2001-12-04 Arnaud Charlet <charlet@gnat.com>
25916 * Makefile.in: (HIE_SOURCES): add s-fat*.
25918 2001-12-04 Robert Dewar <dewar@gnat.com>
25921 (Compile_Time_Known_Attribute): New procedure.
25922 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
25923 proper range check.
25925 2001-12-04 Ed Schonberg <schonber@gnat.com>
25927 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
25928 processing discriminants to diagnose illegal default values.
25930 2001-12-04 Ed Schonberg <schonber@gnat.com>
25932 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
25933 access discriminant within a type extension that constrains its
25934 parent discriminants.
25936 2001-12-04 Ed Schonberg <schonber@gnat.com>
25938 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
25939 is malformed, use instance of Any_Id to allow analysis to proceed.
25941 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
25942 type definition is illegal.
25943 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
25946 2001-12-04 Ed Schonberg <schonber@gnat.com>
25948 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
25951 2001-12-04 Robert Dewar <dewar@gnat.com>
25953 * errout.adb: Minor reformatting
25955 2001-12-04 Robert Dewar <dewar@gnat.com>
25957 * exp_util.adb: Minor reformatting from last change
25959 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
25960 which is a rewriting of an expression, traverse the original
25961 expression to remove warnings that may have been posted on it.
25963 2001-12-04 Ed Schonberg <schonber@gnat.com>
25965 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
25966 record that has other packed components.
25968 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
25970 * adaint.c: Minor cleanups.
25972 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
25974 * adaint.c: Do not use utime.h on vxworks.
25976 2001-12-04 Arnaud Charlet <charlet@gnat.com>
25978 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
25979 more confusion than it solves.
25981 2001-12-04 Geert bosch <bosch@gnat.com>
25983 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
25985 2001-12-04 Geert Bosch <bosch@gnat.com>
25987 * Makefile.in (update-sources): New target.
25988 For use by gcc_release script.
25990 2001-12-04 Ed Schonberg <schonber@gnat.com>
25992 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
25993 a configuration pragma, it is now legal wherever a pragma can appear.
25995 2001-12-04 Zack Weinberg <zack@codesourcery.com>
25997 * Makefile.in: Don't set ALL. Delete @cross_defines@,
25998 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
25999 is now @CROSS@ -DIN_GCC; update comment.
26001 2001-12-04 Robert Dewar <dewar@gnat.com>
26003 * einfo.adb (Has_Pragma_Pure_Function): New flag.
26004 Fix problem that stopped ceinfo from working
26006 * einfo.ads (Has_Pragma_Pure_Function): New flag.
26008 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
26010 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
26013 (File_Time_Stamp): New procedure.
26014 (Preserve_Mode): New boolean.
26015 (Write_Unit): Pass time stamp.
26016 Implement -p switch (preserve time stamps).
26018 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
26020 * gnatchop.adb: Do usage info for -p switch
26022 * adaint.h (__gnat_set_file_time_name): New function
26024 * adaint.c (__gnat_set_file_time_name): Implement
26026 * adaint.h: Fix typo
26028 2001-12-03 Robert Dewar <dewar@gnat.com>
26030 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
26031 have Associated_Node.
26033 2001-12-03 Robert Dewar <dewar@gnat.com>
26035 * prj-proc.adb: Minor reformatting
26037 * make.adb: Minor reformatting
26039 2001-12-03 Geert Bosch <bosch@gnat.com>
26041 * make.adb: Minor reformatting.
26043 2001-12-03 Robert Dewar <dewar@gnat.com>
26045 * sem_ch12.adb: Minor reformatting
26047 2001-12-03 Ed Schonberg <schonber@gnat.com>
26049 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
26050 push Standard on the stack before analyzing the instance body,
26051 in order to have a clean visibility environment.
26053 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
26055 2001-12-03 Ed Schonberg <schonber@gnat.com>
26057 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
26058 instantiation of a body that contains an inlined body.
26060 2001-12-03 Ed Schonberg <schonber@gnat.com>
26063 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
26064 to prevent freezing within formal packages.
26065 (Freeze_Subprogram_Body): If body comes from another instance that
26066 appeared before its own body, place freeze node at end of current
26067 declarative part, to prevent a back-end crash.
26068 (Inline_Instance_Body): Handle properly a package instance within
26069 a subprogram instance that is a child unit.
26071 2001-12-01 Graham Stott <grahams@redhat.com>
26073 * Makefile.in (misc.o): Add missing $(srcdir) prefix
26074 and add optabs.h dependency.
26076 * misc.c: Include optabs.h
26077 (gnat_tree_code_type): Make static and const.
26078 (gnat_tree_code_length): Likewise.
26079 (gnat_tree_code_name): Likewise.
26080 (update_setjmp_buf): Obtain operands mode from insn_data.
26082 2001-11-29 Richard Henderson <rth@redhat.com>
26084 * init.c: Remove obsolete dwarf2 frame.h section.
26086 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
26088 * Make-lang.in (ada.generated-manpages): New dummy target.
26090 2001-11-29 Ed Schonberg <schonber@gnat.com>
26092 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
26093 into Command, an array conversion is illegal here. Uncovered by
26096 2001-11-28 Geert Bosch <bosch@gnat.com>
26098 * init.c: Minor whitespace changes.
26100 2001-11-28 Doug Rupp <rupp@gnat.com>
26102 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
26105 2001-11-28 Zack Weinberg <zack@codesourcery.com>
26107 * misc.c (gnat_expand_constant): Move declaration above
26108 definition of lang_hooks.
26109 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
26110 (gnat_init): lang_expand_constant no longer exists.
26112 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
26113 always have vprintf.
26114 (gnat_init): Always call set_internal_error_function.
26116 2001-11-27 Andreas Jaeger <aj@suse.de>
26118 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
26120 2001-11-27 Laurent Guerby <guerby@acm.org>
26122 * Makefile.in: Regenerate Ada dependencies.
26124 2001-11-26 Richard Henderson <rth@redhat.com>
26126 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
26127 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
26128 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
26130 2001-11-25 Laurent Guerby <guerby@acm.org>
26132 * sysdep.c (rts_get_*): Fix style.
26134 2001-11-19 Laurent Guerby <guerby@acm.org>
26136 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
26137 since it is of no apparent use and cause warnings.
26139 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
26141 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
26143 (gnat_init): Don't return NULL.
26144 (finish_parse): Remove.
26146 2001-11-17 Laurent Guerby <guerby@acm.org>
26148 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
26149 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
26150 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
26151 * lang-spec.h: Add missing struct field to silence warnings.
26152 * sysdep.c (rts_get_*): Provide K&R prototype.
26153 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
26154 * traceback.c (Unlock_Task, Lock_Task): Likewise.
26155 * tracebak.c (__gnat_backtrace): Remove unused variable.
26156 * utils.c (end_subprog_body): Move to K&R style.
26158 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26160 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
26162 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
26164 * misc.c (gnat_init): Change prototype. Include the
26165 functionality of the old init_parse and init_decl_processing.
26166 (gnat_init_decl_processing): New prototype.
26167 (init_parse): Remove.
26168 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
26170 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
26172 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
26173 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
26174 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
26175 set_yydebug): Remove.
26177 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
26179 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
26180 (struct lang_hooks): Constify.
26181 (language_string, lang_identify): Remove.
26182 * utils.c (init_decl_processing): Update.
26184 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
26186 * misc.c: Include langhooks-def.h.
26187 * Makefile.in: Update.
26189 2001-10-30 Robert Dewar <dewar@gnat.com>
26192 (Check_Identifier): Rewrite circuit to be compatible with use of letters
26193 in the upper half of ASCII.
26194 (Check_Identifier): Minor reformatting
26196 2001-10-30 Geert Bosch <bosch@gnat.com>
26198 * (Associated_Node, Set_Associated_Node): Do not check for
26201 2001-10-30 Robert Dewar <dewar@gnat.com>
26203 * a-reatim.ads: Minor reformatting
26205 2001-10-30 Robert Dewar <dewar@gnat.com>
26207 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
26208 undocumented declarations.
26210 2001-10-30 Pascal Obry <obry@gnat.com>
26212 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
26213 to the binder and linker.
26216 * mdll.ads: Fix layout. Update copyright notice.
26218 * mdll.adb: Fix layout. Update copyright notice.
26220 2001-10-30 Robert Dewar <dewar@gnat.com>
26222 * usage.adb: Minor fix to output for -gnaty.
26224 2001-10-30 Ed Schonberg <schonber@gnat.com>
26226 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
26227 to accommodate all its possible values.
26229 * a-reatim.adb (Split): Special-case handling of Time_Span_First
26230 and of small absolute values of T.
26232 2001-10-30 Richard Kenner <kenner@gnat.com>
26234 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
26235 set_mem_attributes since not needed and wrong if RESULT if a REG;
26236 fixes ACATS failures.
26238 2001-10-30 Geert Bosch <bosch@gnat.com>
26240 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
26241 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
26243 2001-10-30 Robert Dewar <dewar@gnat.com>
26245 * bindusg.adb: Undocument -f switch.
26247 * gnatcmd.adb: Remove /FULL_ELABORATION.
26249 * opt.ads (Force_RM_Elaboration_Order): Document that this is
26252 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
26254 * gnatbind.adb: Minor update of warning msg.
26256 2001-10-30 Vincent Celier <celier@gnat.com>
26258 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
26259 for project file switches (-P (/PROJECT_FILE=),
26260 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
26263 2001-10-30 Geert Bosch <bosch@gnat.com>
26265 * decl.c: Minor whitespace fixes.
26267 2001-10-30 Richard Kenner <kenner@gnat.com>
26269 * utils2.c (build_allocator): Test for SIZE overflow in array case too
26271 2001-10-30 Geert Bosch <bosch@gnat.com>
26273 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
26274 Found due to GCC 3.0 warning of using uninitialized value.
26277 (Get_Max_Size): Use variant record for tracking value/expression.
26278 Makes logic clearer and prevents warnings for uninitialized variables.
26279 (Layout_Array_Type): Use variant record for tracking value/expression.
26280 Makes logic clearer and prevents warnings for uninitialized variables.
26282 2001-10-30 Robert Dewar <dewar@gnat.com>
26284 * lib.adb: Minor reformatting
26286 * s-taprop.ads: Minor reformatting
26288 2001-10-29 Laurent Guerby <guerby@acm.org>
26291 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
26293 (_gnat_error_handler): Make MSG const.
26295 2001-10-29 Richard Kenner <kenner@gnat.com>
26297 * sysdep.c: Fix localtime_r problem on LynxOS.
26298 Also remove #elif to avoid warnings.
26300 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
26303 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
26305 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
26307 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
26308 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
26309 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
26310 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
26311 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
26312 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
26313 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
26314 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
26315 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
26316 types.ads, urealp.adb: Fix spelling errors.
26318 2001-10-27 Laurent Guerby <guerby@acm.org>
26320 * trans.c (gigi): Fix non determinism leading to bootstrap
26321 comparison failures for debugging information.
26323 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
26325 * gnat_rm.texi: Use @./@: where appropriate.
26327 2001-10-26 Robert Dewar <dewar@gnat.com>
26329 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
26331 2001-10-26 Richard Kenner <kenner@gnat.com>
26333 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
26335 2001-10-26 Richard Kenner <kenner@gnat.com>
26337 * decl.c (validate_size): Modify message for bad size to avoid
26338 implication that compiler is modifying the size.
26340 2001-10-26 Robert Dewar <dewar@gnat.com>
26342 * prj-util.adb: Minor reformatting. Fix bad header format.
26344 2001-10-26 Robert Dewar <dewar@gnat.com>
26346 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
26348 * sinfo.ads: Clarify use of Associated_Node (documentation only).
26350 * sem_ch12.adb: Change Node4 to Associated_Node. Change
26351 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
26352 much more narrowly in places where needed. These are cleanups.
26354 2001-10-26 Joel Brobecker <brobecke@gnat.com>
26356 * 5zosinte.ads (null_pthread): new constant.
26359 (Initialize_TCB): Initialize thread ID to null, to be able to verify
26360 later that this field has been set.
26361 (Finalize_TCB): ditto.
26362 (Suspend_Task): Verify that the thread ID is not null before using it.
26363 (Resume_Task): ditto.
26366 (Resume_All_Tasks): Lock the tasks list before using it.
26367 (Suspend_All_Tasks): ditto.
26369 2001-10-26 Richard Kenner <kenner@gnat.com>
26371 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
26372 Make constant variant of designated type for Is_Access_Constant.
26373 Call update_pointer_to with main variant.
26375 * trans.c (process_freeze_entity, process_type):
26376 Call update_pointer_to on main variant.
26378 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
26379 If main variant, update all other variants.
26381 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
26384 2001-10-26 Robert Dewar <dewar@gnat.com>
26386 * prj-util.adb: Minor reformatting
26388 2001-10-26 Robert Dewar <dewar@gnat.com>
26390 * prj-util.adb: Minor reformatting
26392 2001-10-26 Robert Dewar <dewar@gnat.com>
26394 * prj-attr.adb: Minor reformatting throughout
26396 2001-10-26 Robert Dewar <dewar@gnat.com>
26398 * prj-attr.ads: Minor reformatting
26399 Add ??? comment (this whole spec has almost no comments)
26401 2001-10-26 Vincent Celier <celier@gnat.com>
26403 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
26404 ("//") that precede the drive letter on Interix.
26406 2001-10-26 Geert Bosch <bosch@gnat.com>
26408 * gnat_rm.texi: Add GNAT Reference Manual.
26410 2001-10-25 Robert Dewar <dewar@gnat.com>
26412 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
26413 is Error. Similar change for other renaming cases.
26415 2001-10-25 Robert Dewar <dewar@gnat.com>
26417 * s-atacco.ads: Add pragma Inline_Always for functions.
26418 Fix header format. Add copyright 2001
26420 2001-10-25 Ed Schonberg <schonber@gnat.com>
26422 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
26423 return Error rather than Empty so that analysis can proceed.
26425 2001-10-25 Ed Schonberg <schonber@gnat.com>
26427 * sem_util.adb (Enter_Name): better handling of cascaded error
26428 messages when a unit appears in its own context.
26430 2001-10-25 Ed Schonberg <schonber@gnat.com>
26432 * sem_util.adb (Defining_Entity): in case of error, attach created
26433 entity to specification, so that semantic analysis can proceed.
26435 2001-10-25 Robert Dewar <dewar@gnat.com>
26438 (Defining_Entity): Deal with Error.
26439 (Process_End_Label): Deal with bad end label for.
26441 2001-10-25 Ed Schonberg <schonber@gnat.com>
26443 * sem_elab.adb (Check_A_Call): refine message when call is in an
26444 instance but callee is not declared in the generic unit.
26446 2001-10-25 Ed Schonberg <schonber@gnat.com>
26448 * sem_elab.adb (Check_A_Call): check for renaming before finding the
26449 enclosing unit, which may already be different from the calling unit.
26451 2001-10-25 Geert Bosch <bosch@gnat.com>
26453 * 4gintnam.ads: fix header format.
26455 2001-10-25 Ed Schonberg <schonber@gnat.com>
26457 * sem_res.adb (Resolve_Call): if the call is actually an indexing
26458 operation on the result of a parameterless call, perform elaboration
26459 check after the node has been properly rewritten.
26461 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
26462 inlined within the generic tree, the defining identifier is not a
26465 2001-10-25 Ed Schonberg <schonber@gnat.com>
26467 * sem_res.adb (Resolve): special-case resolution of Null in an
26468 instance or an inlined body to avoid view conflicts.
26470 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
26471 compatibility by retrieving the access type of the generic copy.
26473 2001-10-25 Robert Dewar <dewar@gnat.com>
26476 (Analyze_Number_Declaration): Handle error expression.
26477 (Signed_Integer_Type_Declaration): Handle error bound.
26478 (Analyze_Subtype_Indication): Handle error range.
26480 * sem_util.adb (Get_Index_Bounds): Check for Error.
26482 2001-10-25 Robert Dewar <dewar@gnat.com>
26484 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
26485 in no run time mode.
26487 2001-10-25 Pascal Obry <obry@gnat.com>
26489 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
26490 mode case for ALLOC case.
26492 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
26493 all platforms. Improvement of last change.
26495 2001-10-25 Robert Dewar <dewar@gnat.com>
26497 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
26499 2001-10-25 Geert Bosch <bosch@gnat.com>
26501 * osint.adb (Is_Relative): Remove duplicate.
26503 2001-10-25 Pascal Obry <obry@gnat.com>
26505 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
26506 pathnames in UNIX and DOS style with drive letter.
26507 (Is_Relative): new routine.
26509 * osint.adb: Minor reformatting
26511 * osint.adb (Is_Relative): implementation using
26512 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
26514 2001-10-25 Pascal Obry <obry@gnat.com>
26516 * g-dirope.adb (Basename): correctly compute offset between the
26517 original Path and the translated one.
26519 * g-dirope.adb: (Base_Name): add some comments.
26521 2001-10-25 Robert Dewar <dewar@gnat.com>
26523 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
26524 in HIE mode, avoids compilation abandoned message
26526 * exp_imgv.adb: Correct typo in previous change
26528 * exp_imgv.adb: Correct typo in previous change (not my day!)
26530 2001-10-25 Robert Dewar <dewar@gnat.com>
26532 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
26534 2001-10-25 Pascal Obry <obry@gnat.com>
26536 * g-awk.ads: Move all pragma inlines next to the routine
26537 declarations. This is more uniform with other GNAT spec.
26539 2001-10-22 Geert Bosch <bosch@gnat.com>
26541 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
26543 2001-10-19 Geert Bosch <bosch@gnat.com>
26545 * Makefile.in (tools, gnattools): Remove gnatmem.
26547 2001-10-17 Richard Henderson <rth@redhat.com>
26549 * Makefile.in (misc.o): Depend on langhooks.h.
26550 * misc.c: Include it.
26551 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
26552 (LANG_HOOKS_DECODE_OPTION): New.
26553 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
26555 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
26557 * trans.c (tree_transform): Adjust to recent change in
26558 expand_asm_operands to implement named asm operands.
26560 2001-10-11 Ed Schonberg <schonber@gnat.com>
26562 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
26563 renaming of discriminant for mutable record type.
26565 2001-10-11 Robert Dewar <dewar@gnat.com>
26567 * validsw.adb: Properly save -gnatVn status.
26569 2001-10-11 Robert Dewar <dewar@gnat.com>
26571 * usage.adb: Add lines for V switch.
26573 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
26574 (/VALIDITY_CHECKING).
26576 2001-10-11 Ed Schonberg <schonber@gnat.com>
26578 * sem_type.adb (Add_One_Interp): an operator for a type declared in
26579 an extension of System is known to be visible.
26581 2001-10-11 Ed Schonberg <schonber@gnat.com>
26583 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
26584 properly. Fixes regression on ACATS C34005G.
26586 2001-10-11 Robert Dewar <dewar@gnat.com>
26588 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
26589 loop in generic instance, since this is likely not very useful.
26591 2001-10-11 Robert Dewar <dewar@gnat.com>
26593 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
26594 the error message for high integrity mode.
26596 * rtsfind.adb (RTE): Give message if we try to find an entity that
26597 is not available in high integrity mode.
26600 (OK_To_Use_In_HIE_Mode): New array.
26601 (RTE): May return Empty in high integrity mode.
26603 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
26604 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
26606 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
26607 unit if not inlined always and in no runtime mode. Fixes problem
26608 caused by new Rtsfind changes.
26610 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
26613 * rtsfind.adb (RTE): Make sure we do not try to load unit after
26614 giving message for entity not available in high integrity mode.
26616 2001-10-11 Pascal Obry <obry@gnat.com>
26618 * impunit.adb: Add GNAT.CRC32.
26620 2001-10-11 Ed Schonberg <schonber@gnat.com>
26622 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
26623 properly the case where one universal operand in a non-static
26624 exponentiation of a real literal.
26626 2001-10-11 Ed Schonberg <schonber@gnat.com>
26628 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
26629 clause, return the gobal finalization list, for lack of anthing else.
26631 2001-10-11 Ed Schonberg <schonber@gnat.com>
26633 * exp_ch7.adb (Make_Transient_Block): if statement is within
26634 exception handler, always use new transient scope to place Clean
26637 2001-10-11 Pascal Obry <obry@gnat.com>
26640 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
26641 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
26642 (GNATLS_RTL_OBJS): add g-crc32.o
26643 (GNATMAKE_RTL_OBJS): add g-crc32.o
26646 (CRC_Match): new function.
26647 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
26648 instead of the previous simple checksum algorithm.
26649 (Time_Stamp_Mismatch): use CRC_Match for comparison.
26650 (Set_Source_Table): idem.
26653 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
26654 instead of simple checksum.
26655 (CRC_Match): new function.
26656 (CRC_Error): new constant.
26658 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
26659 a CRC now and not a simple checksum. A CRC uses lower-case hex
26660 letters, fixes ambiguity in parsing.
26662 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
26663 is what this variable will store.
26665 * bcheck.adb: Change reference to chechsum in comments by CRC.
26666 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
26667 rename All_Checksum_Match to All_CRC_Match. Change due to API
26668 renaming since now GNAT does not use a simple checksum but a
26669 CRC using GNAT.CRC32.
26671 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
26672 now and not anymore a simple checksum.
26674 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
26677 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
26680 (Restore_Scan_State): rename Checksum to CRC.
26681 (Save_Scan_State): idem.
26685 (Checksum): rename to CRC.
26686 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
26688 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
26689 GNAT.CRC32). Update copyright notice.
26691 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
26692 GNAT.CRC32). Update copyright notice.
26695 (Accumulate_Checksum): removed.
26696 (Update): new procedure. Add a wide-character into the CRC.
26699 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
26700 (Load_File): fix initialization of S (change Source_Checksum to
26703 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
26704 Source_CRC in S initialization.
26706 * sinput.adb (Source_Checksum): renamed to Source_CRC.
26708 * sinput.ads (Source_Checksum): renamed to Source_CRC.
26709 Update comments for the CRC.
26711 * types.adb (Hex): Use lowercase for the letter part.
26713 * types.ads (Get_Hex_String): Returns the hexadecimal representation
26714 for a word. This is currently used only for CRC. In previous version,
26715 the checksum was using a representation with all letter being
26716 upper-case. With the new implementation (using CRC) we do not remove
26717 the 32th bit of the CRC, so we can have an upper-case starting letter
26718 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
26719 It is ambigous since the CRC was optional and could be followed by
26720 options like EB, EE. So now this routines uses lower-case letter for
26721 the hexadecimal representation. Strange enough only lower case letters
26722 where checked in Scan_ALI (even if this was not a possible case).
26724 * gnatvsn.ads (Library_Version): changed to 3.15a.
26726 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
26729 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
26732 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
26733 Add 2001 to copyright notice
26734 (Accumulate_Checksum): Modify to use System.CRC32.
26736 * ali-util.ads: Redo changes of previous revision to continue to use
26737 the word Checksum. Add 2001 to copyright notice.
26739 * ali.adb: Undo some of previous changes, not needed.
26740 Keep the change for lower case letters in the checksum.
26742 * ali.ads: Undo previous change not needed.
26744 * bcheck.adb: Undo most of previous change, not needed.
26745 But do use Checksums_Match for checksum comparison.
26747 * gnatls.adb: Undo most of previous change, not needed.
26748 But do use Checksums_Match for comparing checksums.
26750 * lib-load.adb: Undo previous change, not needed.
26752 * lib-writ.adb: Undo previous change, not needed.
26754 * lib-writ.ads: Document that checksums use lower case,
26755 not upper case letters.
26757 * scans.adb: Undo previous change, not needed
26759 * scans.ads: Undo previous change, not needed.
26761 * scn-nlit.adb: Undo previous changes, not needed.
26763 * scn-slit.adb: Undo previous change, not needed. Fix header format.
26766 (Accumulate_Checksum): Use System.CRC32.
26767 (Initialize_Checksum): New procedure.
26768 Remove other changes of previous revision.
26770 * sinput-p.adb: Undo previous change, not needed.
26772 * sinput.adb: Undo previous change, not needed.
26774 * sinput-l.adb: Undo previous change, not needed.
26776 * sinput.ads: Undo previous change, not needed. Keep only comment
26777 on new checksum algorithm
26779 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
26780 Also remove a-tags and a-stream from GNAT sources.
26782 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
26784 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
26786 2001-10-11 Geert Bosch <bosch@gnat.com>
26788 * einfo.h: Regenerate.
26790 * nmake.ads: Regenerate.
26792 * nmake.adb: Regenerate.
26794 * sinfo.h: Regenerate.
26796 * treeprs.adb: Regenerate.
26798 2001-10-10 Geert Bosch <bosch@gnat.com>
26800 * gnat-style.texi: New file describing coding guidelines for Ada.
26802 2001-10-10 Ed Schonberg <schonber@gnat.com>
26804 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
26807 2001-10-10 Geert Bosch <bosch@gnat.com>
26809 * snames.ads: Add new names for project facility.
26811 * snames.adb: Update to reflect snames.ads changes.
26813 * snames.h: Update to reflect snames.ads changes.
26815 2001-10-10 Vincent Celier <celier@gnat.com>
26818 (Add_Switches): reflect the changes for the switches attributes
26819 Default_Switches indexed by the programming language,
26820 Switches indexed by the file name.
26821 (Collect_Arguments_And_Compile): Idem.
26822 Reflect the attribute name changes.
26825 (Initialisation_Data): Change the names of some packages and
26827 (Initialize): process case insensitive associative arrays.
26830 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
26833 (Parse_Attribute_Declaration): For case insensitive associative
26834 arrays, set the index string to lower case.
26837 Reflect the changes of the project attributes.
26840 Replace Check_Naming_Scheme by Ada_Check and
26841 Language_Independent_Check.
26844 Replaced Check_Naming_Scheme by 2 procedures:
26845 Ada_Check and Language_Independent_Check.
26848 (Process_Declarative_Items): For case-insensitive associative
26849 arrays, set the index string to lower case.
26850 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
26851 Prj.Nmsc.Check_Naming_Scheme.
26854 (Case_Insensitive): New function
26855 (Set_Case_Insensitive): New procedure
26858 (Case_Insensitive): New function
26859 (Set_Case_Insensitive): New procedure
26860 (Project_Node_Record): New flag Case_Insensitive.
26863 (Value_Of): new function to get the string value of a single
26864 string variable or attribute.
26867 (Value_Of): new function to get the string value of a single
26868 string variable or attribute.
26871 (Ada_Default_Spec_Suffix): New function
26872 (Ada_Default_Impl_Suffix): New function
26873 Change definitions of several constants to reflect
26874 new components of record types.
26877 (Naming_Data): Change several components to reflect new
26878 elements of naming schemes.
26879 (Project_Data): New flags Sources_Present and
26880 Language_Independent_Checked.
26881 (Ada_Default_Spec_Suffix): New function.
26882 (Ada_Default_Impl_Suffix): New function.
26885 Modification of predefined names for project manager: added
26886 Implementation, Specification_Exceptions, Implementation_Exceptions,
26887 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
26888 Default_Switches, _Languages, Builder, Cross_Reference,
26889 Finder. Removed Body_Part, Specification_Append, Body_Append,
26890 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
26893 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
26896 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
26897 not that it is Nil_Variable_Value.
26899 * prj.ads: Add ??? for uncommented declarations
26901 2001-10-10 Ed Schonberg <schonber@gnat.com>
26903 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
26904 constant, do not indicate possible modification, so that gigi can
26905 treat it as a bona fide constant.
26907 2001-10-10 Robert Dewar <dewar@gnat.com>
26909 * sem_prag.adb: Add processing for pragma External.
26911 * snames.ads: Add entry for pragma External.
26913 * par-prag.adb: Add pragma External.
26915 * snames.adb: Updated to match snames.ads.
26917 2001-10-10 Ed Schonberg <schonber@gnat.com>
26919 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
26920 a dynamic task if the allocator appears in an indexed assignment
26921 or selected component assignment.
26923 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
26924 For a dynamic task in an assignment statement, use target of
26925 assignment to generate meaningful name.
26927 2001-10-10 Ed Schonberg <schonber@gnat.com>
26929 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
26932 * einfo.ads: Body_Entity is also defined for generic package.
26933 Documentation change only
26935 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
26936 others_choice for a discriminated component initialization,
26937 convert discriminant references into the corresponding discriminals.
26939 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
26940 only if original type is private and expression has to be wrapped
26944 (Apply_Constraint_Check): Do not perform length check
26945 if expression is an aggregate with only an others_choice.
26946 (Length_N_Cond): two references to the same in_parameter
26947 (typically the discriminal in an init_proc) denote the same value.
26948 Two useful optimization uncovered by bugfixes above.
26950 2001-10-10 Robert Dewar <dewar@gnat.com>
26952 * xeinfo.adb: Change int to char in translation of enumeration types.
26953 This fixes a problem in the C representation of component alignment.
26954 Add 2001 to copyright notice
26956 2001-10-10 Richard Kenner <kenner@gnat.com>
26958 * decl.c: (validate_size): Do check size of object of integral type
26959 if it is a packed array type.
26961 2001-10-10 Richard Kenner <kenner@gnat.com>
26963 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
26964 VAR_DECL for constant if not Is_Public but -O0.
26966 2001-10-10 Richard Kenner <kenner@gnat.com>
26968 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
26970 2001-10-10 Geert Bosch <bosch@gnat.com>
26972 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
26973 use '/' as switch character, allowing for absolute file names.
26975 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
26977 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
26980 2001-10-08 Geert Bosch <bosch@gnat.com>
26982 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
26983 Automatically build utilities when files need to be regenerated.
26985 2001-10-08 Geert Bosch <bosch@gnat.com>
26987 * xsnames.adb: New utility for updating snames.ads and snames.adb
26989 2001-10-08 Zack Weinberg <zack@codesourcery.com>
26991 * Make-lang.in (ADAFLAGS): Add -W -Wall.
26992 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
26993 (gnat1): Also depend on attribs.o.
26994 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
26995 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
26996 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
26997 (ADAFLAGS): Add -W -Wall.
26998 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
27001 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
27002 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
27003 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
27004 Use $(ADAC), not $(CC), as compilation command.
27006 (gnattools): Depend directly on tools to build, don't use
27008 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
27010 * einfo.h, sinfo.h: New files (autogenerated).
27012 2001-10-08 Richard Henderson <rth@redhat.com>
27014 * comperr.adb (Abort_In_Progress): New.
27015 (Compiler_Abort): Use it to prevent recursion.
27017 2001-10-08 Robert Dewar <dewar@gnat.com>
27019 * atree.adb: Set Error_Posted in Error node, helps error recovery.
27021 * par-endh.adb (Output_End_Expected): We should also not test
27022 Error_Posted on the Error node, since now it is always set.
27024 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
27025 to help error recovery. Part of general work on 9407-004.
27027 * par.adb: Add ??? for misuse of error
27030 (Resolve): Defend against Error, fixes 9407-003.
27031 (Resolve_Discrete_Subtype_Indication): Defend against Error.
27033 * sinfo.ads (N_Error): Now has Etype field (which will be set
27034 to Any_Type to help error recovery).
27036 2001-10-08 Richard Kenner (kenner@gnat.com)
27038 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
27039 Consistently set MEM attributes from expression; fixes
27040 bootstrap failure on x86.
27042 2001-10-08 Geert Bosch (bosch@gnat.com)
27044 * 5oosinte.adb: Add 2001 to copyright notice.
27046 2001-10-08 Geert Bosch (bosch@gnat.com)
27048 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
27050 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
27052 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
27054 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
27056 2001-10-05 Geert Bosch (bosch@gnat.com)
27058 * adaint.h: Small formatting fix.
27060 2001-10-04 Geert Bosch <bosch@gnat.com>
27062 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
27063 Arg is int, not FILE *, in dummy version of functions.
27065 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
27066 Arg is int, not FILE *.
27068 2001-10-04 Geert Bosch <bosch@gnat.com>
27070 * 3lsoccon.ads: Added file, missed with initial check ins.
27072 * 4lintnam.ads: Fix header format.
27073 Change Linux to GNU/Linux.
27075 * 5iosinte.adb: Change Linux to GNU/Linux.
27077 * 5iosinte.ads: Change Linux to GNU/Linux.
27079 * 5itaprop.adb: Change Linux to GNU/Linux.
27081 * 5itaspri.ads: Change Linux to GNU/Linux.
27082 Update copyright notice.
27084 * 5lintman.adb: Change Linux to GNU/Linux.
27086 * 5lml-tgt.adb: Change Linux to GNU/Linux.
27088 * 5losinte.ads: Change Linux to GNU/Linux.
27090 * 5lsystem.ads: Change Linux to GNU/Linux.
27092 * 5qosinte.adb: Change Linux to GNU/Linux.
27094 * 5qosinte.ads: Change Linux to GNU/Linux.
27096 * 5qparame.ads: Change Linux to GNU/Linux.
27098 * 5qtaprop.adb: Change Linux to GNU/Linux.
27100 * 5qtaspri.ads: Change Linux to GNU/Linux.
27101 Add 2001 to copyright notice.
27103 * 5vintman.ads: Change Linux to GNU/Linux.
27104 Fix header format. Add 2001 to copyright notice.
27106 * g-soccon.ads: Change Linux to GNU/Linux.
27108 * g-trasym.ads: Change Linux to GNU/Linux.
27109 Add 2001 to copyright notice.
27111 * memtrack.adb: Change Linux to GNU/Linux.
27113 * s-intman.ads: Change Linux to GNU/Linux.
27114 Add 2001 to copyright notice. Fix header format.
27116 * s-stache.adb: Change Linux to GNU/Linux.
27118 * adaint.c: Change Linux to GNU/Linux.
27120 * cio.c: Change Linux to GNU/Linux.
27122 * cstreams.c: Change Linux to GNU/Linux.
27124 * init.c: Change Linux to GNU/Linux.
27126 * gmem.c: Change Linux to GNU/Linux.
27128 * tracebak.c: Change Linux to GNU/Linux.
27131 2001-10-02 Geert Bosch <bosch@gnat.com>
27133 * misc.c (insert_default_attributes): Add dummy version.