1 2007-02-25 Mark Mitchell <mark@codesourcery.com>
3 * decl.c (annotate_value): Adjust for refactoring of tree_map
6 2007-02-24 Mark Mitchell <mark@codesourcery.com>
8 * decl.c (annotate_value): Adjust for refactoring of tree_map
11 2007-02-21 Ed Schonberg <schonberg@adacore.com>
14 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
15 untagged derived type, add hidden components to keep discriminant
16 layout consistent, when a given discriminant of the derived type
17 constraints several discriminants of the parent type.
19 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
20 Sandra Loosemore <sandra@codesourcery.com>
22 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
23 build the call expression.
24 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
25 * utils.c (max_size) <tcc_exceptional>: Delete.
26 <tcc_vl_exp>: New case.
27 <tcc_expression>: Delete CALL_EXPR subcase.
28 (build_global_cdtor): Use build_call_nary instead of build3.
29 * utils2.c (build_call_1_expr): Likewise.
30 (build_call_2_expr): Likewise.
31 (build_call_0_expr): Likewise.
32 (build_call_alloc_dealloc): Likewise.
34 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
36 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
37 get_action_description_for): Replace _Unwind_Word with _uleb128_t
38 and _Unwind_SWord with _sleb128_t.
40 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
42 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
43 * decl.c: Include gt-ada-decl.h.
44 (annotate_value_cache): New.
45 (annotate_value): Use it instead of TREE_COMPLEXITY.
47 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
49 * misc.c, utils2.c: Fix comment typos.
51 2007-01-24 Roger Sayle <roger@eyesopen.com>
53 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
54 TREE_CONSTANT_OVERFLOW.
55 (allocatable_size_p, annotate_value): Likewise.
56 * trans.c (gnat_to_gnu): Likewise.
57 * utils.c (unchecked_convert): Likewise.
58 * utils2.c (build_simple_component_ref): Likewise.
60 2007-01-23 Richard Guenther <rguenther@suse.de>
63 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
64 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
65 (gnatboot3): Likewise.
66 (GNATBIND): Do not define.
67 * Makefile.in (GNATBIND): Do not define.
69 2007-01-08 Richard Guenther <rguenther@suse.de>
71 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
72 * trans.c (gnat_to_gnu): Likewise.
74 2006-12-07 Geoffrey Keating <geoffk@apple.com>
76 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
79 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
81 Merge from gimple-tuples-branch.
83 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
84 * ada-tree.h (lang_tree_node): Handle gimple tuples.
85 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
88 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
90 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
91 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
94 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
97 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
98 if the initializer takes into account the padding.
100 2006-11-11 Richard Guenther <rguenther@suse.de>
102 * trans.c (maybe_stabilize_reference): Remove handling of
103 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
105 2006-11-05 Arnaud Charlet <charlet@adacore.com>
108 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
109 (To_Target_Priority): New function.
111 2006-10-31 Robert Dewar <dewar@adacore.com>
113 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
114 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
115 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
116 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
117 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
118 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
119 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
120 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
121 a-szbzha.adb: Minor reformatting. Fix header.
123 * a-numaux-x86.adb: Add parentheses for use of unary minus
124 * a-ngcefu.adb: Supply missing parentheses for unary minus
125 * a-ngcoty.adb: Add parens for use of unary minus
126 * a-ngelfu.adb: Add missing parens for unary minus
127 * a-tifiio.adb: Add parentheses for uses of unary minus
129 2006-10-31 Robert Dewar <dewar@adacore.com>
130 Bob Duff <duff@adacore.com>
131 Ed Schonberg <schonberg@adacore.com>
133 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
134 with multiplying operator.
135 (Expected_Type_Is_Any_Real): New function to determine from the Parent
136 pointer whether the context expects "any real type".
137 (Resolve_Arithmetic_Op): Do not give an error on calls to the
138 universal_fixed "*" and "/" operators when they are used in a context
139 that expects any real type. Also set the type of the node to
140 Universal_Real in this case, because downstream processing requires it
141 (mainly static expression evaluation).
142 Reword some continuation messages
143 Add some \\ sequences to continuation messages
144 (Resolve_Call): Refine infinite recursion case. The test has been
145 sharpened to eliminate some false positives.
146 Check for Current_Task usage now includes entry barrier, and is now a
147 warning, not an error.
148 (Resolve): If the call is ambiguous, indicate whether an interpretation
149 is an inherited operation.
150 (Check_Aggr): When resolving aggregates, skip associations with a box,
151 which are priori correct, and will be replaced by an actual default
152 expression in the course of expansion.
153 (Resolve_Type_Conversion): Add missing support for conversion from
154 a class-wide interface to a tagged type. Minor code cleanup.
155 (Valid_Tagged_Converion): Add support for abstact interface type
157 (Resolve_Selected_Component): Call Generate_Reference here rather than
158 during analysis, and use May_Be_Lvalue to distinguish read/write.
159 (Valid_Array_Conversion): New procedure, abstracted from
160 Valid_Conversion, to incorporate accessibility checks for arrays of
161 anonymous access types.
162 (Valid_Conversion): For a conversion to a numeric type occurring in an
163 instance or inlined body, no need to check that the operand type is
164 numeric, since this has been checked during analysis of the template.
165 Remove legacy test for scope name Unchecked_Conversion.
167 * sem_res.ads: Minor reformatting
169 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
170 (PE_Current_Task_In_Entry_Body): New exception code
171 (SE_Restriction_Violation): Removed, not used
173 * a-except.ads: Update comments.
175 * types.h, types.ads: Add definition for Validity_Check
176 (PE_Current_Task_In_Entry_Body): New exception code
177 (SE_Restriction_Violation): Removed, not used
179 2006-10-31 Thomas Quinot <quinot@adacore.com>
181 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
184 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
185 Jose Ruiz <ruiz@adacore.com>
187 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
188 part of Ada.Calendar: all subprogram raise Unimplemented.
189 (Split_W_Offset): Temp function body, raising Unimplemented
191 * a-calend.ads, a-calend-vms.ads:
192 Add imported variable Invalid_TZ_Offset used to designate targets unable
193 to support time zones.
194 (Unimplemented): Temporary function raised by the body of new
196 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
197 unit provides handling of leap seconds and is used by the new Ada 2005
198 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
199 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
200 version returns an extra value which is the offset to UTC.
202 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
203 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
204 (Split_W_Offset): New function body.
205 (Time_Of): When a date is close to UNIX epoch, compute the time for
206 that date plus one day (that amount is later substracted after
207 executing mktime) so there are no problems with time zone adjustments.
209 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
211 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
212 a-catizo.ads, a-catizo.adb: New files.
214 * impunit.adb: Add new Ada 2005 entries
216 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
217 Rename all occurences of "__gnat_localtime_r" to
218 "__gnat_localtime_tzoff".
219 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
220 zone data and calculate the GMT offset.
221 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
222 Use the field "tm_gmtoff" to extract the GMT offset.
223 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
224 the external variable "timezone" to calculate the GMT offset.
226 2006-10-31 Arnaud Charlet <charlet@adacore.com>
227 Jose Ruiz <ruiz@adacore.com>
229 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
230 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
231 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
232 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
233 System.Any_Priority to a POSIX priority on the target.
235 * system-linux-ia64.ads:
236 Extend range of Priority types on Linux to use the whole range made
237 available by the system.
239 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
240 function maps from System.Any_Priority to a POSIX priority on the
242 (PTHREAD_PRIO_PROTECT): Set real value.
243 (PTHREAD_PRIO_INHERIT): Now a function.
244 (SIGCPUFAIL): New signal.
245 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
246 are documented as reserved by the OS.
248 * system-aix.ads: Use the full range of priorities provided by the
251 * s-taprop-posix.adb: Call new function To_Target_Priority.
252 (Set_Priority): Take into account Task_Dispatching_Policy and
253 Priority_Specific_Dispatching pragmas when determining if Round Robin
254 must be used for scheduling the task.
256 * system-linux-x86_64.ads, system-linux-x86.ads,
257 system-linux-ppc.ads: Extend range of Priority types on Linux to use
258 the whole range made available by the system.
260 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
261 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
262 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
263 when deallocating the TCB in order to avoid potential references to
265 (Set_Priority): Take into account Task_Dispatching_Policy and
266 Priority_Specific_Dispatching pragmas when determining if Round Robin
267 or FIFO within priorities must be used for scheduling the task.
269 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
270 the Thread field (to be used internally by the run-time system) and the
271 kernel-level task id in the LWP field (to be used by the debugger).
272 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
273 instance, and propagate the current task options to the spawned task.
274 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
275 (Initialize): Set Round Robin dispatching when the corresponding pragma
278 2006-10-31 Robert Dewar <dewar@adacore.com>
280 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
281 system-linux-hppa.ads, system-hpux-ia64.ads,
282 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
283 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
284 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
285 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
286 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
287 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
288 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
289 Default_Bit_Order) to kill constant condition warnings for references
292 2006-10-31 Vincent Celier <celier@adacore.com>
293 Eric Botcazou <ebotcazou@adacore.com>
295 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
296 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
297 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
298 Ext_To, when building the library file name
300 * mlib-tgt-vxworks.adb: ditto.
301 (Get_Target_Suffix): Add support for x86 targets.
303 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
305 * mlib-tgt-darwin.adb:
306 Use Append_To, instead of Ext_To, when building the library file name
307 (Flat_Namespace): New global variable.
308 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
309 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
310 (Link_Shared_Libgcc): Delete.
311 (Build_Dynamic_Library): Adjust for above changes.
313 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
315 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
317 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
318 (Initialize): Add type conversions required by above change.
320 2006-10-31 Jose Ruiz <ruiz@adacore.com>
322 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
323 (getpid): New body for this function that uses the underlying taskIdSelf
324 function for VxWorks 5 and VxWorks 6 in kernel mode.
325 (unsigned_int): New type, modular to allow logical bit operations.
326 (taskOptionsGet): New imported function.
328 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
329 field to be compliant with the type used by the corresponding operating
332 2006-10-31 Pascal Obry <obry@adacore.com>
333 Eric Botcazou <ebotcazou@adacore.com>
334 Vincent Celier <celier@adacore.com>
336 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
337 ASCII version of the registry API. This is needed as the GNAT runtime
338 is now UNICODE by default.
340 (get_gcc_version): Do not hardcode the return value.
341 (__gnat_file_time_name): On Windows properly set the default returned
342 value to -1 which corresponds to Invalid_Time.
343 (__gnat_fopen): New routine. A simple wrapper on all plateforms
344 except on Windows where it does conversion for unicode support.
345 (__gnat_freopen): Idem.
346 (__gnat_locate_exec_on_path): If environment variable PATH does not
347 exist, return a NULL pointer
349 * adaint.h: (__gnat_fopen): Declare.
350 (__gnat_freopen): Likewise.
352 * mingw32.h (_tfreopen): Define this macro here for older MingW
354 Activate the unicode support on platforms using a MingW runtime
355 version 3.9 or newer.
357 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
358 This is needed for proper unicode support on Windows.
361 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
362 Nicolas Setton <setton@adacore.com>
363 Olivier Hainque <hainque@adacore.com>
364 Gary Dismukes <dismukes@adacore.com>
366 * gigi.h: (tree_code_for_record_type): Declare.
367 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
368 (get_global_renaming_pointers): Rename to
369 invalidate_global_renaming_pointers.
370 (static_ctors): Delete.
371 (static_dtors): Likewise.
372 (gnat_write_global_declarations): Declare.
373 (create_var_decl): Adjust descriptive comment to indicate that the
374 subprogram may return a CONST_DECL node.
375 (create_true_var_decl): Declare new function, similar to
376 create_var_decl but forcing the creation of a VAR_DECL node.
377 (get_global_renaming_pointers): Declare.
378 (add_global_renaming_pointer): Likewise.
380 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
382 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
383 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
385 (gnat_to_gnu_entity): Remove From_With_Type from computation for
387 <E_Access_Type>: Use the Non_Limited_View as the full view of the
388 designated type if the pointer comes from a limited_with clause. Make
389 incomplete designated type if it is in the main unit and has a freeze
391 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
392 Underlying_Full_View similarly. Return earlier if the full view already
393 has an associated tree.
394 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
395 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
396 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
397 reference type built for objects with an address clause.
398 Use create_true_var_decl with const_flag set for
399 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
401 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
402 for Character and Wide_Character types. This info is read by the
403 dwarf-2 writer, and is needed to be able to use the command "ptype
404 character" in the debugger.
405 (gnat_to_gnu_entity): When generating a type representing
406 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
407 so that debug writers can distinguish it from ordinary integers.
408 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
409 addition to TREE_READONLY to assert the constantness of variables for
410 elaboration purposes.
411 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
412 parameters to call new Einfo function First_Formal_With_Extras.
413 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
414 protected type with its corresponding discriminant, to obtain a usable
416 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
417 for a multiple elaboration of the "equivalent" type.
418 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
419 into record_global_renaming_pointer.
420 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
421 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
422 <E_Array_Subtype>: Likewise.
423 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
424 incomplete subtypes and incomplete subtypes of incomplete types visible
425 through a limited with clause.
426 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
427 the base index type for the maximum size of the array only if they are
429 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
430 expression into a SAVE_EXPR if stabilization failed.
432 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
433 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
434 by lower level compilation passes.
435 (gnat_genericize): New function, lowering a function body to GENERIC.
436 Turn the type of RESULT_DECL into a real reference type if the decl
437 has been marked DECL_BY_REFERENCE, and adjust references to the latter
439 (gnat_genericize_r): New function. Tree walking callback for
441 (convert_from_reference, is_byref_result): New functions. Helpers for
443 (create_type_decl): Call gnat_pushdecl before calling
444 rest_of_decl_compilation, to make sure that field TYPE_NAME of
445 type_decl is properly set before calling the debug information writers.
446 (write_record_type_debug_info): The heuristics which compute the
447 alignment of a field in a variant record might not be accurate. Add a
448 safety test to make sure no alignment is set to a smaller value than
449 the alignment of the field type.
450 (make_dummy_type): Use the Non_Limited_View as the underlying type if
451 the type comes from a limited_with clause. Do not loop on the full view.
452 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
453 (dummy_node_table): New global variable, moved from decl.c.
454 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
455 (save_gnu_tree): Use above macros.
456 (get_gnu_tree): Likewise.
457 (present_gnu_tree): Likewise.
458 (init_dummy_type): New function, moved from decl.c. Use above macros.
459 (make_dummy_type): Likewise.
460 (tree_code_for_record_type): New function extracted from make_dummy_type
461 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
462 (static_ctors): Change it to a vector, make static.
463 (static_dtors): Likewise.
464 (end_subprog_body): Adjust for above change.
465 (build_global_cdtor): Moved from trans.c.
466 (gnat_write_global_declarations): Emit global constructor and
467 destructor, and call cgraph_optimize before emitting debug info for
469 (global_decls): New global variable.
470 (gnat_pushdecl): Store the global declarations in global_decls, for
472 (gnat_write_global_declarations): Emit debug information for global
474 (create_var_decl_1): Former create_var_decl, with an extra argument to
475 state whether the creation of a CONST_DECL is allowed.
476 (create_var_decl): Behavior unchanged. Now a wrapper around
477 create_var_decl_1 allowing CONST_DECL creation.
478 (create_true_var_decl): New function, similar to create_var_decl but
479 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
480 (create_field_decl): Do not always mark the field as addressable
481 if its type is an aggregate.
482 (global_renaming_pointers): New static variable.
483 (add_global_renaming_pointer): New function.
484 (get_global_renaming_pointers): Likewise.
486 * misc.c (gnat_dwarf_name): New function.
487 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
488 (gnat_post_options): Add comment about structural alias analysis.
489 (gnat_parse_file): Do not call cgraph_optimize here.
490 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
492 * trans.c (process_freeze_entity): Don't abort if we already have a
493 non dummy GCC tree for a Concurrent_Record_Type, as it might
494 legitimately have been elaborated while processing the associated
495 Concurrent_Type prior to this explicit freeze node.
496 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
497 exception handler volatile if it is of variable size.
498 (process_type): Remove bypass for types coming from a limited_with
500 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
501 actual, convert the corresponding gnu_actual to the real destination
503 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
504 originally TREE_READONLY but whose elaboration cannot be performed
506 Part of fix for F504-021.
507 (tree_transform, subprogram cases): Change loops on formal parameters to
508 call new Einfo function First_Formal_With_Extras.
509 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
510 stemming from type conversion for the lhs.
511 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
512 number of bits per unit for components of records.
513 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
514 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
515 with At_End_Proc after the SJLJ EH cleanup.
516 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
518 (elaborate_all_entities): Do not retest type_annotate_only.
519 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
520 result type of an abstract subprogram, which may be an itype associated
521 with an anonymous access result (related to AI-318-02).
522 (build_global_cdtor): Move to utils.c.
523 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
524 this choice is not a null tree nor an integer constant.
525 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
526 on the body of elaboration routines instead of mark_unvisited.
527 (add_stmt): Do not mark the tree.
528 (add_decl_expr): Tweak comment.
529 (mark_unvisited): Delete.
530 (unshare_save_expr): New static function.
531 (call_to_gnu): Issue an error when making a temporary around a
532 procedure call because of non-addressable actual parameter if the
533 type of the formal is by_reference.
534 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
535 after building the elaboration routine.
537 2006-10-31 Bob Duff <duff@adacore.com>
539 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
540 as finalization-started, so we can raise Program_Error on 'new'.
542 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
543 collection has already started.
545 * s-finimp.ads (Collection_Finalization_Started): Added new special
546 flag value for indicating that a collection's finalization has started.
548 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
549 create a task whose master has already waited for dependent tasks.
551 2006-10-31 Robert Dewar <dewar@adacore.com>
553 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
555 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
556 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
557 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
558 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
559 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
560 a-except-2005.ads: Add pragma Preelaborable_Warning
562 2006-10-31 Robert Dewar <dewar@adacore.com>
563 Jose Ruiz <ruiz@adacore.com>
565 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
567 * ali.adb (Get_Name): Properly handle scanning of wide character names
568 encoded with brackets notation.
569 (Known_ALI_Lines): Add S lines to this list.
570 (Scan_ALI): Acquire S (priority specific dispatching) lines.
571 New flag Elaborate_All_Desirable in unit table
573 * ali.ads (Priority_Specific_Dispatching): Add this range of
574 identifiers to be used for Priority_Specific_Dispatching table entries.
575 (ALIs_Record): Add First_Specific_Dispatching and
576 Last_Specific_Dispatching that point to the first and last entries
577 respectively in the priority specific dispatching table for this unit.
578 (Specific_Dispatching): Add this table for storing each S (priority
579 specific dispatching) line encountered in the input ALI file.
580 New flag Elaborate_All_Desirable in unit table
582 * bcheck.adb: (Check_Configuration_Consistency): Add call to
583 Check_Consistent_Dispatching_Policy.
584 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
585 verifying that the use of Priority_Specific_Dispatching,
586 Task_Dispatching_Policy, and Locking_Policy is consistent across the
589 * bindgen.adb: (Public_Version_Warning): function removed.
590 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
591 required information from ALI files in order to initialize the table
592 containing the specific dispatching policy.
593 (Gen_Adainit_Ada): Generate the variables required for priority specific
594 dispatching entries (__gl_priority_specific_dispatching and
595 __gl_num_specific_dispatching).
596 (Gen_Adainit_C): Generate the variables required for priority specific
597 dispatching entries (__gl_priority_specific_dispatching and
598 __gl_num_specific_dispatching).
599 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
601 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
602 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
604 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
605 a call to gnat_set_globals.
606 Generate a string containing settings from
607 Priority_Specific_Dispatching pragma entries.
608 (Gen_Object_Files_Options): Do not include the runtime libraries when
609 pragma No_Run_Time is specified.
611 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
612 consistency with s-intman-posix.adb.
613 (__gnat_error_handler, case FreeBSD): Account for the fact that the
614 handler is installed with SA_SIGINFO.
615 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
616 FreeBSD ZCX support, copied from Linux version.
617 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
618 sigfillset, and sigemptyset so the routines defined by MaRTE.
619 (__gl_priority_specific_dispatching): Add this variable that stores the
620 string containing priority specific dispatching policies in the
622 (__gl_num_specific_dispatching): Add this variable that indicates the
623 highest priority for which a priority specific dispatching pragma
625 (__gnat_get_specific_dispatching): Add this routine that returns the
626 priority specific dispatching policy, as set by a
627 Priority_Specific_Dispatching pragma appearing anywhere in the current
628 partition. The input argument is the priority number, and the result
629 is the upper case first character of the policy name.
630 (__gnat_set_globals): Now a dummy function.
631 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
632 mechargs instead of sigargs, as the latter can be retrieved from the
633 former and sigargs is not what we want on ia64.
634 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
636 (__gnat_adjust_context_for_raise, ia64-vms): New function.
637 (tasking_error): Remove unused symbol.
638 (_abort_signal): Move this symbol to the IRIX specific part since this
639 is the only target that uses this definition.
640 (Check_Abort_Status): Move this symbol to the IRIX specific part since
641 this is the only target that uses this definition.
642 (Lock_Task): Remove unused symbol.
643 (Unlock_Task): Remove unused symbol.
645 * lib-writ.adb (Write_ALI): Output new S lines for
646 Priority_Specific_Dispatching pragmas.
647 Implement new flag BD for elaborate body desirable
649 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
650 (Specific_Dispatching): Add this table for storing the entries
651 corresponding to Priority_Specific_Dispatching pragmas.
652 Document new BD flag for elaborate body desirable
654 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
657 2006-10-31 Javier Miranda <miranda@adacore.com>
659 * a-tags.ads, a-tags.adb:
660 (Predefined_DT): New function that improves readability of the code.
661 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
662 Inherit_DT): Use the new function Predefined_DT to improve code
664 (Register_Interface_Tag): Update assertion.
665 (Set_Interface_Table): Update assertion.
666 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
667 determining progenitor interfaces in Tags.
668 (Inherit_CPP_DT): New subprogram.
670 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
671 analysis of the thunk code.
672 (Expand_Interface_Conversion): Handle run-time conversion of
673 access to class wide types.
674 (Expand_Dispatching_Call): When generating the profile for the
675 subprogram itype for a dispatching operation, properly terminate the
676 formal parameters chaind list (set the Next_Entity of the last formal
678 (Collect_All_Interfaces): Removed. This routine has been moved to
679 sem_util and renamed as Collect_All_Abstract_Interfaces.
680 (Set_All_DT_Position): Hidden entities associated with abstract
681 interface primitives are not taken into account in the check for
682 3.9.3(10); this check is done with the aliased entity.
683 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
684 interfacing with CPP by default.
685 (Expand_Interface_Conversion): Add missing support for static conversion
686 from an interface to a tagged type.
687 (Collect_All_Interfaces): Add new out formal containing the list of
688 abstract interface types to cleanup the subprogram Make_DT.
689 (Make_DT): Update the code to generate the table of interfaces in case
690 of abstract interface types.
691 (Is_Predefined_Dispatching_Alias): New function that returns true if
692 a primitive is not a predefined dispatching primitive but it is an
693 alias of a predefined dispatching primitive.
694 (Make_DT): If the ancestor of the type is a CPP_Class and we are
695 compiling under full ABI compatibility mode we avoid the generation of
696 calls to run-time services that fill the dispatch tables because under
697 this mode we currently inherit the dispatch tables in the IP subprogram.
698 (Write_DT): Emit an "is null" indication for a null procedure primitive.
699 (Expand_Interface_Conversion): Use an address as the type of the formal
700 of the internally built function that handles the case in which the
701 target type is an access type.
703 2006-10-31 Robert Dewar <dewar@adacore.com>
705 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
707 2006-10-31 Robert Dewar <dewar@adacore.com>
709 * bindusg.ads, bindusg.adb:
710 Change to package and rename procedure as Display, which
711 now ensures that it only outputs usage information once.
713 2006-10-31 Jose Ruiz <ruiz@adacore.com>
715 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
718 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
721 2006-10-31 Robert Dewar <dewar@adacore.com>
722 Ed Schonberg <schonberg@adacore.com>
724 * treepr.adb: Use new subtype N_Membership_Test
726 * checks.ads, checks.adb: Add definition for Validity_Check
727 (Range_Or_Validity_Checks_Suppressed): New function
728 (Ensure_Valid): Test Validity_Check suppressed
729 (Insert_Valid_Check): Test Validity_Check suppressed
730 (Insert_Valid_Check): Preserve Do_Range_Check flag
731 (Validity_Check_Range): New procedure
732 (Expr_Known_Valid): Result of membership test is always valid
733 (Selected_Range_Checks): Range checks cannot be applied to discriminants
734 by themselves. Disabling those checks must also be done for task types,
735 where discriminants may be used for the bounds of entry families.
736 (Apply_Address_Clause_Check): Remove side-effects if address expression
737 is non-static and is not the name of a declared constant.
738 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
739 Code cleanup and new error messages.
740 (Enable_Range_Check): Test for some cases of suppressed checks
741 (Generate_Index_Checks): Suppress index checks if index checks are
742 suppressed for array object or array type.
743 (Apply_Selected_Length_Checks): Give warning for compile-time detected
744 length check failure, even if checks are off.
745 (Ensure_Valid): Do not generate a check on an indexed component whose
746 prefix is a packed boolean array.
747 * checks.adb: (Alignment_Checks_Suppressed): New function
748 (Apply_Address_Clause_Check): New procedure, this is a completely
749 rewritten replacement for Apply_Alignment_Check
750 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
751 we request a discriminal value only in case of discriminants.
752 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
753 assignments where the target subtype is unconstrained and the target
754 object is a parameter or dereference (other aliased cases are known
755 to be unconstrained).
757 2006-10-31 Robert Dewar <dewar@adacore.com>
759 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
760 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
761 vms_conv.adb: Fix bad table increment values (much too small)
763 * table.adb (Realloc): Make sure we get at least some new elements
764 Defends against silly small values for table increment
766 2006-10-31 Robert Dewar <dewar@adacore.com>
767 Ed Schonberg <schonberg@adacore.com>
768 Bob Duff <duff@adacore.com>
770 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
771 entities. Move other fields around to make this possible
772 (Is_Derived_Type): Add missing call to Is_Type.
773 (Extra_Formals): New function for subprograms, entries, subprogram
775 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
776 (First_Formal_With_Extras): New function for subprogs, entries, subp
778 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
779 Add node information for E_Return_Statement.
780 (Elaborate_Body_Desirable): New flag
781 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
782 to be Is_Inherently_Limited_Type, because return-by-reference has
783 no meaning in Ada 2005.
784 (E_Return_Statement): New entity kind.
785 (Return_Applies_To): Field of E_Return_Statement.
786 (Is_Return_Object): New flag in object entities.
787 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
788 (Must_Have_Preelab_Init): New flag
789 (Known_To_Have_Preelab_Init): New flag
790 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
791 (Is_Visible_Formal): New flag on entities in formal packages.
792 (Low_Bound_Known): New flag
793 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
795 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
796 output when Id is an incomplete subtype.
798 2006-10-31 Robert Dewar <dewar@adacore.com>
800 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
801 Avoid abbreviation Creat
802 (Finalize): List all sources in extended mail source if -gnatl
804 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
805 (Finalize): Implement new -gnatl=xxx switch to output listing to file
806 (Set_Specific_Warning_On): New procedure
807 (Set_Specific_Warning_Off): New procedure
808 Add implementation of new insertion \\
809 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
810 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
812 (Error_Msg_Internal): Make sure that we set Last_Killed to
813 True when a message from another package is suppressed.
814 Implement insertion character ~ (insert string)
815 (First_Node): Minor adjustments to get better placement.
818 Implement new -gnatl=xxx switch to output listing to file
821 Implement new -gnatl=xxx switch to output listing to file
823 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
824 (Commands_To_Stdout): New flag
825 Implement new -gnatl=xxx switch to output listing to file
826 New switch Dump_Source_Text
827 (Warn_On_Deleted_Code): New warning flag for -gnatwt
828 Define Error_Msg_Line_Length
829 (Warn_On_Assumed_Low_Bound): New switch
831 * osint.ads, osint.adb
832 (Normalize_Directory_Name): Fix bug.
833 Implement new -gnatl=xxx switch to output listing to file
834 (Concat): Removed, replaced by real concatenation
835 Make use of concatenation now allowed in compiler
836 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
837 we find the 'lib' or 'bin' directory even when the tool has been
838 invoked with a relative path.
839 (Executable_Name): New function taking string parameters.
841 * osint-c.ads, osint-c.adb:
842 Implement new -gnatl=xxx switch to output listing to file
844 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
847 Implement new -gnatl=xxx switch to output listing to file
848 Recognize new -gnatL switch
849 (no longer keep in old warning about old style usage)
850 Use concatenation to simplify code
851 Recognize -gnatjnn switch
852 (Scan_Front_End_Switches): Clean up handling of -gnatW
853 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
855 2006-10-31 Robert Dewar <dewar@adacore.com>
857 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
858 (Set_Specific_Warning_Off): New procedure
859 (Warning_Specifically_Suppressed): New function
860 (Validate_Specific_Warnings): New procedure
861 (Output_Msg_Text): Complete rewrite to support -gnatjnn
863 * err_vars.ads: Implement insertion character ~ (insert string)
865 2006-10-31 Bob Duff <duff@adacore.com>
866 Ed Schonberg <schonberg@adacore.com>
868 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
869 the parent part is a build-in-place function call, generate assignments.
870 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
871 are build-in-place function calls.
872 (Replace_Self_Reference): New subsidiary of
873 Make_OK_Assignment_Statement, to replace an access attribute that is a
874 self-reference into an access to the appropriate component of the
875 target object. Generalizes previous mechanism to handle self-references
877 (Is_Self_Referential_Init): Remove, not needed.
878 (Is_Self_Referential_Init): New predicate to simplify handling of self
879 referential components in record aggregates.
880 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
881 check for presence of entity before checking for self-reference.
882 (Has_Default_Init_Comps): Return True if a component association is a
883 self-reference to the enclosing type, which can only come from a
884 default initialization.
885 (Make_OK_Assignment_Statement): If the expression is of the form
886 Typ'Acc, where Acc is an access attribute, the expression comes from a
887 default initialized self-referential component.
888 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
889 that has been derived from several abstract interfaces we must also
890 initialize the tags of the secondary dispatch tables.
892 2006-10-31 Ed Schonberg <schonberg@adacore.com>
893 Thomas Quinot <quinot@adacore.com>
894 Javier Miranda <miranda@adacore.com>
895 Robert Dewar <dewar@adacore.com>
898 (Expand_Access_To_Protected_Op): If the context indicates that an access
899 to a local operation may be transfered outside of the object, create an
900 access to the wrapper operation that must be used in an external call.
901 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
902 target, pass the Valid attribute applied to a floating-point prefix on
903 to the back end without expansion.
904 (Storage_Size): Use the new run-time function Storage_Size to retrieve
905 the allocated storage when it is specified by a per-object expression.
906 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
907 Nothing to do here, the attribute has been rewritten during semantic
909 (Expand_Attribute_Reference): Handle expansion of the new Priority
911 (Find_Fat_Info): Handle case of universal real
912 (Expand_Access_To_Protected_Op): Fix use of access to protected
913 subprogram from inside the body of a protected entry.
914 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
915 'Access and 'Unrestricted_Access, to transform the attribute reference
917 (Is_Constrained_Aliased_View): New predicate to help determine whether a
918 subcomponent's enclosing variable is aliased with a constrained subtype.
919 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
920 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
921 an aliased prefix must be known to be constrained in order to use True
922 for the attribute value, and now it's possible for some aliased views
925 2006-10-31 Robert Dewar <dewar@adacore.com>
927 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
928 (Expand_Entity_Reference): Correct error of not handling subprogram
929 formals in current_value processing.
931 2006-10-31 Javier Miranda <miranda@adacore.com>
932 Robert Dewar <dewar@adacore.com>
933 Ed Schonberg <schonberg@adacore.com>
934 Gary Dismukes <dismukes@adacore.com>
936 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
937 register in the final list objects containing class-wide interfaces;
938 otherwise we incorrectly register the tag of the interface in the final
940 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
941 generate the wrapper if the parent primitive is abstract. This is
942 required to report the correct error message.
943 (Expand_N_Subtype_Indication): Do validity checks on range
944 (Clean_Task_Names): If an initialization procedure includes a call to
945 initialize a task (sub)component, indicate that the procedure will use
947 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
948 compatibility for interfacing with CPP by default.
949 (Expand_N_Object_Declaration): Only build an Adjust call when the
950 object's type is a nonlimited controlled type.
951 * exp_ch3.adb: Add with and use of Exp_Ch6.
952 (Expand_N_Object_Declaration): Check for object initialization that is a
953 call to build-in-place function and apply Make_Build_In_Place_Call_In_
954 Object_Declaration to the call.
955 (Freeze_Type): When the designated type of an RACW was not frozen at the
956 point where the RACW was declared, validate the primitive operations
957 with respect to E.2.2(14) when it finally is frozen.
958 (Build_Initialization_Call,Expand_Record_Controller): Rename
959 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
960 return-by-reference has no meaning in Ada 2005.
961 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
962 to register tag of the immediate ancestor interfaces in the
964 (Init_Secondary_Tags): Moved to the specification to allow the
965 initialization of extension aggregates with abstract interfaces.
966 (Build_Master_Renaming): Make public, for use by function declarations
967 whose return type is an anonymous access type.
968 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
969 Insert_List_Before_And_Analyze after the generation of the specs
970 associated with null procedures.
971 (Expand_Tagged_Root): Update documentation in its specification.
972 (Init_Secondary_Tags): Update documentation.
973 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
974 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
975 then generate code to inherit the contents of the dispatch table
976 directly from the ancestor.
977 (Expand_Record_Controller): Insert controller component after tags of
978 implemented interfaces.
979 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
980 create null procedure overridings when null procedures are inherited
982 (Make_Null_Procedure_Specs): New procedure to generate null procedure
983 declarations for overriding null primitives inherited from interfaces.
984 (Is_Null_Interface_Procedure): New function in
985 Make_Null_Procedure_Specs.
986 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
987 immediate ancestor of a tagged type is an abstract interface type we
988 must generate the specification of the predefined primitives associated
989 with controlled types (because the dispatch table of the ancestor is
990 null and hence these entries cannot be inherited). This is required to
991 elaborate well the dispatch table.
993 2006-10-31 Javier Miranda <miranda@adacore.com>
994 Ed Schonberg <schonberg@adacore.com>
995 Bob Duff <duff@adacore.com>
996 Gary Dismukes <dismukes@adacore.com>
997 Robert Dewar <dewar@adacore.com>
999 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
1001 (Expand_N_In): Do validity checks on range
1002 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
1003 (Expand_N_Allocator): For "new T", if the object is constrained by
1004 discriminant defaults, allocate the right amount of memory, rather than
1005 the maximum for type T.
1006 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
1007 when the allocator is initialized by a build-in-place call, since the
1008 allocator is already rewritten as a reference to the function result,
1009 and this prevents an unwanted duplication of the function call.
1010 Add with and use of Exp_Ch6.
1011 (Expand_Allocator_Expresssion): Check for an allocator whose expression
1012 is a call to build-in-place function and apply
1013 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
1014 untagged designated types).
1015 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
1016 optimization if source or target is biased.
1017 (Expand_N_Allocator): Add comments for case of an allocator within a
1018 function that returns an anonymous access type designating tasks.
1019 (Expand_N_Allocator): apply discriminant checks for access
1020 discriminants of anonymous access types (AI-402, AI-416)
1022 2006-10-31 Bob Duff <duff@adacore.com>
1023 Robert Dewar <dewar@adacore.com>
1024 Gary Dismukes <dismukes@adacore.com>
1025 Ed Schonberg <schonberg@adacore.com>
1027 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
1029 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
1030 (Expand_N_Assignment_Statement): Call
1031 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
1032 build-in-place function call. Currently, this can happen only for
1033 assignments that come from aggregates.
1034 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
1035 in order to alleviate the upward compatibility introduced by AI-318.
1036 (Expand_N_Extended_Return_Statement): Add support for handling the
1037 return object as a build-in-place result.
1038 (Expand_Non_Function_Return): Implement simple return statements nested
1039 within an extended return.
1040 (Enable_New_Return_Processing): Turn on the new processing of return
1042 (Expand_Non_Function_Return): For a return within an extended return,
1043 don't raise Program_Error, because Sem_Ch6 now gives a warning.
1044 (Expand_N_Extended_Return_Statement): Implement AI-318
1045 (Expand_Simple_Function_Return): Ditto.
1046 (Expand_N_If_Statement): Handle new -gnatwt warning
1047 (Expand_N_Case_Statement): Handle new -gnatwt warning
1048 (Expand_N_Assignment): Handle assignment to the Priority attribute of
1050 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
1051 validity checking of assignments to elementary record components.
1052 (Expand_N_Return_Statement): return Class Wide types on the secondary
1053 stack independantly of their controlled status since with HIE runtimes,
1054 class wide types are not potentially controlled anymore.
1056 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
1059 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
1060 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
1061 it expects a block, procedure, or task. The return statement will get
1062 turned into a block, and Expand_Cleanup_Actions will happen then.
1064 2006-10-31 Robert Dewar <dewar@adacore.com>
1065 Ed Schonberg <schonberg@adacore.com>
1066 Bob Duff <duff@adacore.com>
1067 Gary Dismukes <dismukes@adacore.com>
1069 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
1071 (Expand_Inlined_Call): Tagged types are by-reference types, and
1072 therefore should be replaced by a renaming declaration in the expanded
1073 body, as is done for limited types.
1074 (Expand_Call): If this is a call to a function with dispatching access
1075 result, propagate tag from context.
1076 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
1078 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
1079 build-in-place when the right-hand side of an assignment is a
1080 build-in-place function call.
1081 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
1082 of the explicit dereference of the allocator to the result subtype of
1083 the build-in-place function. This is needed to satisfy type checking
1084 in cases where the caller's return object is created by an allocator for
1085 a class-wide access type and the type named in the allocator is a
1087 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
1088 conversion of the reference to the declared object to the result subtype
1089 of the build-in-place function. This is needed to satisfy type checking
1090 in cases where the declared object has a class-wide type. Also, in the
1091 class-wide case, change the type of the object entity to the specific
1092 result subtype of the function, to avoid passing a class-wide object
1093 without explicit initialization to the back end.
1094 (Register_Interface_DT_Entry): Moved outside the body of
1095 Freeze_Subprogram because this routine is now public; it is called from
1096 Check_Dispatching_Overriding to handle late overriding of abstract
1097 interface primitives.
1098 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
1099 adding an implicit access actual on a call to a build-in-place function.
1100 (Expand_Actuals): Test for an actual parameter that is a call to a
1101 build-in-place function and apply
1102 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
1103 (Is_Build_In_Place_Function): New function to determine whether an
1104 entity is a function whose calls should be handled as build-in-place.
1105 (Is_Build_In_Place_Function_Call): New function to determine whether an
1106 expression is a function call that should handled as build-in-place.
1107 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
1108 calls to build-in-place functions as the initialization of an allocator.
1109 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
1110 handling calls to build-in-place functions in contexts that do not
1111 involve init of a separate object (for example, actuals of subprogram
1113 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
1114 handling calls to build-in-place functions as the initialization of an
1116 (Detect_Infinite_Recursion): Add explicit parameter Process to
1117 instantiation of Traverse_Body to avoid unreferenced warning.
1118 (Check_Overriding_Inherited_Interfaces): Removed.
1119 (Register_Interface_DT_Entry): Code cleanup.
1120 (Register_Predefined_DT_Entry): Code cleanup.
1121 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
1122 inlined statements if within a transient scope.
1123 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
1124 formal parameters with occurrences of actuals in inlined body, establish
1125 visibility on the proper view of the actual's subtype for the body's
1127 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
1128 compatibility mode and we have an imported CPP subprogram because
1129 for now we assume that imported CPP primitives correspond with
1130 objects whose constructor is in the CPP side (and therefore we
1131 don't need to generate code to register them in the dispatch table).
1132 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
1133 aligned selected component.
1134 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
1135 the actual of an in-mode parameter is a type conversion.
1136 (Expand_Actuals): If the call does not come from source and the actual
1137 is potentially misaligned, let gigi handle it rather than rejecting the
1138 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
1139 Class Wide types as returning by reference independantly of their
1140 controlled status since with HIE runtimes class wide types are not
1141 potentially controlled anymore.
1143 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1145 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
1146 references that are private components of the protected object.
1147 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
1148 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
1149 instantiation to deal with warnings.
1150 (Initialize_Protection): If expression for priority is non-static, use
1151 System_Priority as its expected type, in case the expression has not
1154 2006-10-31 Robert Dewar <dewar@adacore.com>
1156 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
1157 initialization of Homonym_Len.
1158 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
1159 names from fully qualified name. Fixes problem of duplicate
1160 external names differing only in the presence of such a block name.
1162 2006-10-31 Thomas Quinot <quinot@adacore.com>
1163 Pablo Oliveira <oliveira@adacore.com>
1165 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
1166 subprogram Ids, even if they are not yet assigned.
1167 (Build_Subprogram_Id): It is now this function that will take care of
1168 calling Assign_Subprogram_Ids if necessary.
1169 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
1170 should be done only once they are assigned.
1171 (Build_From_Any_Function, case of tagged types): Add missing call to
1173 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
1174 type for an RACW type.
1175 (Add_RACW_Features): When processing an RACW declaration for which the
1176 designated type is already frozen, enforce E.2.2(14) rules immediately.
1177 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
1178 special reordering of controlling formals.
1180 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
1181 associated stub type for an RACW type.
1183 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1185 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
1186 fixed-point operations in an integer context, i.e. as operands of a
1187 conversion to an integer type, indicate that result must be rounded.
1189 2006-10-31 Robert Dewar <dewar@adacore.com>
1191 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
1192 cases, pass the encoding method, since it is now required by the run
1195 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
1196 assumption that Str'First = 1.
1197 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
1198 it on to the Value_Wide_Wide_Character call.
1199 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
1200 properly handles a string of the form quote-encoded_wide_char-quote.
1202 * s-wchcnv.adb: Minor reformatting
1204 2006-10-31 Javier Miranda <miranda@adacore.com>
1206 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
1207 run-time membership test to ensure that the constructed object
1208 implements the target abstract interface.
1210 2006-10-31 Robert Dewar <dewar@adacore.com>
1212 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
1213 Machine_Attribute pragma internally to implement the user pragma.
1214 Add processing for pragma Interface so that it is now completely
1215 equivalent to pragma Import.
1217 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
1218 so that it can be applied to all entities, including record components
1219 and enumeration literals.
1220 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
1221 priority ranges are correct, verify compatibility against task
1222 dispatching and locking policies, and if everything is correct an entry
1223 is added to the table containing priority specific dispatching entries
1224 for this compilation unit.
1225 (Delay_Config_Pragma_Analyze): Delay processing
1226 Priority_Specific_Dispatching pragmas because when processing the
1227 pragma we need to access run-time data, such as the range of
1228 System.Any_Priority.
1229 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
1230 Allow pragma Unreferenced as a context item
1231 Add pragma Preelaborable_Initialization
1232 (Analyze_Pragma, case Interface): Interface is extended so that it is
1233 now syntactically and semantically equivalent to Import.
1234 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
1235 insertion characters.
1236 Add handling for Pragma_Wide_Character_Encoding
1237 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
1238 never supercedes a real restriction, and that a real restriction
1239 always supercedes a warning.
1240 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
1243 2006-10-31 Bob Duff <duff@adacore.com>
1244 Ed Schonberg <schonberg@adacore.com>
1245 Robert Dewar <dewar@adacore.com>
1247 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
1248 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
1249 Is_Inherently_Limited_Type, because return-by-reference has no meaning
1251 (Find_Node_To_Be_Wrapped): Use new method of determining the result
1252 type of the function containing a return statement, because the
1253 Return_Type field was removed. We now use the Return_Applies_To field.
1255 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
1256 (Build_Task_Image_Decl): If procedure is not called from an
1257 initialization procedure, indicate that function that builds task name
1258 uses the sec. stack. Otherwise the enclosing initialization procedure
1259 will carry the indication.
1260 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
1261 N_Object_Declaration instead.
1262 (Kill_Dead_Code): New interface to implement -gnatwt warning for
1263 conditional dead code killed, and change implementation accordingly.
1264 (Insert_Actions): Add N_Return_Object_Declaration case.
1265 Correct comment to mention N_Extension_Aggregate node.
1266 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
1267 attempts to save information for global variables which cannot be
1269 (Get_Current_Value_Condition): Handle conditions the other way round
1270 (constant on left). Also handle right operand of AND and AND THEN
1271 (Set_Current_Value_Condition): Corresponding changes
1272 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
1273 (Get_Current_Value_Condition): Handle simple boolean operands
1274 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
1275 (Get_Current_Value_Condition): If the variable reference is within an
1276 if-statement, does not appear in the list of then_statments, and does
1277 not come from source, treat it as being at unknown location.
1278 (Get_Current_Value_Condition): Enhance to allow while statements to be
1279 processed as well as if statements.
1280 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
1282 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
1283 of loop. This is safe now that we fixed Kill_Current_Values.
1284 (OK_To_Do_Constant_Replacement): Check whether current scope is
1285 Standard, before examining outer scopes.
1287 2006-10-31 Vincent Celier <celier@adacore.com>
1289 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
1290 When True, apply VMS treatment to children of packages A, G, I and S.
1293 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
1295 2006-10-31 Robert Dewar <dewar@adacore.com>
1296 Ed Schonberg <schonberg@adacore.com>
1298 * freeze.adb: Add handling of Last_Assignment field
1299 (Warn_Overlay): Supply missing continuation marks in error msgs
1300 (Freeze_Entity): Add check for Preelaborable_Initialization
1302 * g-comlin.adb: Add Warnings (Off) to prevent new warning
1304 * g-expect.adb: Add Warnings (Off) to prevent new warning
1306 * lib-xref.adb: Add handling of Last_Assignment field
1307 (Generate_Reference): Centralize handling of pragma Obsolescent here
1308 (Generate_Reference): Accept an implicit reference generated for a
1309 default in an instance.
1310 (Generate_Reference): Accept a reference for a node that is not in the
1311 main unit, if it is the generic body corresponding to an subprogram
1314 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
1316 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
1318 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
1320 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
1321 use clauses, to avoid messages on packages used to qualify, and also
1322 to avoid messages from obsolescent units.
1323 (Warn_On_Useless_Assignments): Don't generate messages for imported
1324 and exported variables.
1325 (Warn_On_Useless_Assignments): New procedure
1326 (Output_Obsolescent_Entity_Warnings): New procedure
1327 (Check_Code_Statement): New procedure
1329 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
1330 Change name Is_Ada_2005 to Is_Ada_2005_Only
1331 (Last_Assignment): New field for useless assignment warning
1333 2006-10-31 Olivier Hainque <hainque@adacore.com>
1335 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
1336 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
1338 2006-10-31 Bob Duff <duff@adacore.com>
1339 Robert Dewar <dewar@adacore.com>
1340 Ed Schonberg <schonberg@adacore.com>
1342 * g-awk.adb (Default_Session, Current_Session): Compile this file in
1343 Ada 95 mode, because it violates the new rules for AI-318.
1345 * g-awk.ads: Use overloaded subprograms in every case where we used to
1346 have a default of Current_Session. This makes the code closer to be
1347 correct for both Ada 95 and 2005.
1349 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
1350 code, relying on the fact that the compiler generates a warning
1351 instead of an error in -gnatg mode.
1353 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
1354 E_Return_Statement entity kind.
1355 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
1357 * par.adb (P_Interface_Type_Definition): Addition of one formal to
1358 report an error if the reserved word abstract has been previously found.
1359 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
1361 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
1362 parenthesized range attribute usage
1363 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
1365 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
1366 in the syntax for extended_return_statement. This is not in the latest
1367 RM, but the ARG is expected to issue an AI allowing this.
1368 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
1369 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
1370 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
1371 P_Return_Statement): Parse the new syntax for extended_return_statement.
1373 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
1374 Output_End_Missing): Add error-recovery code for the new
1375 extended_return_statement syntax; that is, the new E_Return entry on
1378 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
1379 limited to nonlimited, because otherwise we violate the new Ada 2005
1380 rules about returning limited types in function Create_AST_Handler in
1383 * sem.adb (Analyze): Add cases for new node kinds
1384 N_Extended_Return_Statement and N_Return_Object_Declaration.
1386 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
1387 type is in the same category as type of context before applying check,
1388 to prevent anomalies in instantiations.
1389 (Resolve_Aggregate): Remove test for limited components in aggregates.
1390 It's unnecessary in Ada 95, because if it has limited components, then
1391 it must be limited. It's wrong in Ada 2005, because limited aggregates
1393 (Resolve_Record_Aggregate): Move check for limited types later, because
1394 OK_For_Limited_Init requires its argument to have been resolved.
1395 (Get_Value): When copying the component default expression for a
1396 defaulted association in an aggregate, use the sloc of the aggregate
1397 and not that of the original expression, to prevent spurious
1398 elaboration errors, when the expression includes function calls.
1399 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
1400 were missing. We also didn't handle qualified expressions. Now also
1401 allow function calls. Use new common routine OK_For_Limited_Init.
1402 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
1403 with space can upper case letter).
1405 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
1406 Has_Static_Discriminants flag
1407 (Record_Type_Declaration): Diagnose an attempt to declare an interface
1408 type with discriminants.
1409 (Process_Range_Expr_In_Decl): Do validity checks on range
1410 (Build_Discriminant_Constraints): Use updated form of
1411 Denotes_Discriminant.
1412 (Process_Subtype): If the subtype is a private subtype whose full view
1413 is a concurrent subtype, introduce an itype reference to prevent scope
1415 (Build_Derived_Record_Type, Collect_Interface_Primitives,
1416 Record_Type_Declaration): The functionality of the subprograms
1417 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
1418 is now performed by a single routine.
1419 (Build_Derived_Record_Type): If the type definition includes an explicit
1420 indication of limitedness, then the type must be marked as limited here
1421 to ensure that any access discriminants will not be treated as having
1422 a local anonymous access type.
1423 (Check_Abstract_Overriding): Issue a detailed error message when an
1424 abstract subprogram was not overridden due to incorrect mode of its
1426 (Analyze_Private_Extension_Declaration): Add support for the analysis of
1427 synchronized private extension declarations. Verify that the ancestor is
1428 a limited or synchronized interface or in the generic case, the ancestor
1429 is a tagged limited type or synchronized interface and all progenitors
1430 are either limited or synchronized interfaces.
1431 Derived_Type_Declaration): Check for presence of private extension when
1432 dealing with synchronized formal derived types.
1433 Process_Full_View): Enchance the check done on the usage of "limited" by
1434 testing whether the private view is synchronized.
1435 Verify that a synchronized private view is completed by a protected or
1437 (OK_For_Limited_Init_In_05): New function.
1438 (Analyze_Object_Declaration): Move check for limited types later,
1439 because OK_For_Limited_Init requires its argument to have been resolved.
1440 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
1441 in order to alleviate the upward compatibility introduced by AI-318.
1442 (Constrain_Corresponding_Record): If the constraint is for a component
1443 subtype, mark the itype as frozen, to avoid out-of-scope references to
1444 discriminants in the back-end.
1445 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
1446 this subprogram against wrong sources.
1447 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
1448 discriminant of limited type completed with a protected type, when the
1449 discriminant is used to constrain a private component of the type, and
1450 expansion is disabled.
1451 (Find_Type_Of_Object): Do not treat a return subtype that is an
1452 anonymous subtype as a local_anonymous_type, because its accessibility
1453 level is the return type of the enclosing function.
1454 (Check_Initialization): In -gnatg mode, turn the error "cannot
1455 initialize entities of limited type" into a warning.
1456 (OK_For_Limited_Init): Return true for generated nodes, since it
1457 sometimes violates the legality rules.
1458 (Make_Incomplete_Declaration): If the type for which an incomplete
1459 declaration is created happens to be the currently visible entity,
1460 preserve the homonym chain when removing it from visibility.
1461 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
1462 inherited subprograms.
1463 (Access_Definition): If this is an access to function that is the return
1464 type of an access_to_function definition, context is a type declaration
1465 and the scope of the anonymous type is the current one.
1466 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
1467 incomplete subtype to the set of private dependents of the original
1469 (Constrain_Discriminated_Type): Emit an error message whenever an
1470 incomplete subtype is being constrained.
1471 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
1472 corresponding subtype of the full view of the original incomplete type.
1473 (Check_Incomplete): Properly detect invalid usage of incomplete types
1476 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
1478 * g-catiio.ads, g-catiio.adb (Value): New function.
1479 Given an input String, try and parse a valid Time value.
1481 2006-10-31 Vincent Celier <celier@adacore.com>
1483 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
1484 Integer_Address arithmetic, as in Set_Valid.
1486 2006-10-31 Arnaud Charlet <charlet@adacore.com>
1487 Robert Dewar <dewar@adacore.com>
1489 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
1490 handling executable extension manually and duplicating code.
1492 * make.adb: Implement new -S switch
1493 (Gnatmake): Use new function Osint.Executable_Name instead
1494 of handling executable extension manually.
1496 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
1497 is specified, the executable name ends with this suffix.
1498 Take advantage of Osint.Executable_Name instead of duplicating code.
1500 * switch-m.adb: Recognize new gnatmake -S switch
1502 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
1504 (Get_Target_Parameters): Set Executable_Extension_On_Target if
1507 * makeusg.adb: Add line for gnatmake -S switch
1509 2006-10-31 Vincent Celier <celier@adacore.com>
1511 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
1512 call it with -static-libgcc, as there are some platforms, such as
1513 Darwin, where one of these two switches is compulsory to link.
1515 2006-10-31 Vincent Celier <celier@adacore.com>
1517 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
1518 instead of ADA_PROJECT_PATH, for the project path.
1519 (Gnatls): When displaying the project path directories, use host dir
1522 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
1523 names in the project path, as absolute paths may correspond to
1524 multi-valued VMS logical names.
1526 2006-10-31 Vincent Celier <celier@adacore.com>
1528 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
1530 (Locate_Regular_File): Ditto
1531 (Change_Dir): Remove, no longer used
1532 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
1533 on Windows. Get it calling Get_Current_Dir.
1534 (OpenVMS): Remove imported boolean, no longer needed.
1535 (Normalize_Pathname)[VMS]: Do not resolve directory names.
1536 (Pid_To_Integer): New function to convert a Process_Id to Integer
1538 2006-10-31 Thomas Quinot <quinot@adacore.com>
1540 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
1541 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
1543 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
1546 2006-10-31 Robert Dewar <dewar@adacore.com>
1548 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
1549 initial letter o as a zero.
1551 2006-10-31 Robert Dewar <dewar@adacore.com>
1553 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
1555 2006-10-31 Robert Dewar <dewar@adacore.com>
1557 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
1559 (Layout_Variant_Record): Retrieve the discriminants from the entity
1560 rather than from the type definition, because in the case of a full
1561 type for a private type we need to take the discriminants from the
1563 (Layout_Component_List): When applying the Max operator to variants with
1564 a nonstatic size, check whether either operand is static and scale that
1565 operand from bits to storage units before applying Max.
1566 (Layout_Type): In VMS, if a C-convention access type has no explicit
1567 size clause (and does not inherit one in the case of a derived type),
1568 then the size is reset to 32 from 64.
1570 2006-10-31 Vincent Celier <celier@adacore.com>
1572 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
1573 its file has already been loaded, according to the unit being loaded,
1574 not to the current value of Multiple_Unit_Index.
1576 2006-10-31 Thomas Quinot <quinot@adacore.com>
1577 Eric Botcazou <ebotcazou@adacore.com>
1578 Arnaud Charlet <charlet@adacore.com>
1580 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
1581 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
1583 (a-except.o): Pass it to the compiler.
1584 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
1585 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
1586 a-calend-mingw.adb version.
1588 * Makefile.rtl: Added s-dsaser.
1589 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
1590 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
1591 Ada.Dispatching.Round_Robin.
1592 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
1594 * Make-lang.in: Remove all references to gt-ada-decl.h.
1595 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
1597 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
1598 Update dependencies.
1600 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
1602 2006-10-31 Vincent Celier <celier@adacore.com>
1604 * mlib-utl.adb (Initialized): Remove, no longer used
1605 (Initialize): Remove, no longer used
1606 (Ar): If Ar_Exec is null, get the location of the archive builder and,
1607 if there is one, the archive indexer. Fail if the archive builder cannot
1609 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
1612 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1614 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
1615 Process_Body_Clauses): If the context of a body includes a use clause
1616 for P.Q then a with_clause for P in the same body is not redundant,
1617 even if the spec also has a with_clause on P.
1618 Add missing continuation mark to error msg
1619 (Build_Limited_Views): A limited view of a type is tagged if its
1620 declaration includes a record extension.
1621 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
1622 node, even if the subunit has errors. This avoids malfunction by
1623 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
1624 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
1625 generation of obsolescent messages for with statements (cannot do
1626 this too early, or we cannot implement avoiding the messages in the
1627 case of obsolescent units withing obsolescent units).
1628 (Install_Siblings): If the with_clause is on a remote descendant of
1629 an ancestor of the current compilation unit, find whether there is
1630 a sibling child unit that is immediately visible.
1631 (Remove_Private_With_Clauses): New procedure, invoked after completing
1632 the analysis of the private part of a nested package, to remove from
1633 visibility the private with_clauses of the enclosing package
1635 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
1636 now centralized in Generate_Reference.
1637 (Install_Limited_Context_Clauses): Remove superfluous error
1638 message associated with unlimited view visible through use
1639 and renamings. In addition, at the point in which the error
1640 is reported, we add the backslash to the text of the error
1641 to ensure that it is reported as a single error message.
1642 Use new // insertion for some continuation messages
1643 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
1644 to create implicit with_clause for parent unit mentioned in original
1645 limited_with_clause.
1646 (Install_Limited_With_Unit): Set entity of parent identifiers if the
1647 unit is a child unit. For ASIS queries.
1648 (Analyze_Subunit): If the subunit appears within a child unit, make all
1649 ancestor child units directly visible again.
1651 2006-10-31 Robert Dewar <dewar@adacore.com>
1653 * par-ch10.adb (P_Context_Clause): Minor error message fix
1655 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
1656 Javier Miranda <miranda@adacore.com>
1658 * par-ch12.adb: Grammar update and cleanup.
1659 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
1660 support for synchronized derived type definitions.
1661 Add the new actual Abstract_Present to every call to
1662 P_Interface_Type_Definition.
1663 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
1664 a formal object declaration with an access definition or a subtype mark
1665 with a null exclusion.
1666 (P_Generic_Association): Handle association with box, and others_choice
1667 with box, to support Ada 2005 partially parametrized formal packages.
1669 2006-10-31 Robert Dewar <dewar@adacore.com>
1670 Javier Miranda <miranda@adacore.com>
1672 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
1673 (P_Type_Declaration): Remove barrier against the reserved word "limited"
1674 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
1675 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
1677 (P_Type_Declaration): Add the new actual Abstract_Present to every call
1678 to P_Interface_Type_Definition.
1679 (P_Interface_Type_Definition): Addition of one formal to report an error
1680 if the reserved word abstract has been previously found.
1681 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
1682 object renaming declaration with an access definition or subtype mark
1683 with a possible null exclusion.
1685 * par-ch9.adb: Minor error msg fix
1687 * par-load.adb: Add missing continuation mark to error msg
1689 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
1691 2006-10-31 Vincent Celier <celier@adacore.com>
1693 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
1694 unknown attribute in unknown package or in package that does not need
1696 (Parse_Package_Declaration): Do not issue warning for unknown package in
1699 2006-10-31 Vincent Celier <celier@adacore.com>
1701 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
1702 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
1705 2006-10-31 Vincent Celier <celier@adacore.com>
1707 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
1708 on VMS, change "__" to '.' before checking the name.
1709 (Record_Ada_Source): Always add the source file name in the list of
1710 of sources, even if it is not the first time, as it is for another
1712 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
1713 dot, instead of replacing only the first '_'.
1715 * prj-part.adb (Parse): Convert project file path to canonical form
1717 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
1718 extended, the project id of the project extending it is recorded in its
1719 data, even when it has already been processed as an imported project.
1721 2006-10-31 Robert Dewar <dewar@adacore.com>
1723 * repinfo.adb (List_Entities): Don't list entities from renaming
1726 2006-10-31 Arnaud Charlet <charlet@adacore.com>
1727 Robert Dewar <dewar@adacore.com>
1729 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
1730 only a restriction warning is active for the given restriction. This is
1731 desirable because we do not want to modify code in the case where only
1733 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
1734 causes overriding of real restrictions.
1735 Take advantage of new No_Restrictions constant.
1737 * raise.h: (__gnat_set_globals): Change profile.
1739 2006-10-31 Arnaud Charlet <charlet@adacore.com>
1741 * rtsfind.adb: Remove s-polint from comment as it exists no more.
1744 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
1745 Move all the entities in obsolete package System.PolyORB_Interface to
1746 System.Partition_Interface.
1747 (RE_Storage_Size): New function in System.Tasking.
1748 (RE_Get_Ceiling): New entity.
1749 (RE_Set_Ceiling): New entity.
1750 (RO_PE_Get_Ceiling): New entity.
1751 (RO_RE_Set_Ceiling): New entity.
1752 (Inherit_CPP_DT): New entity
1754 2006-10-31 Robert Dewar <dewar@adacore.com>
1756 * scng.adb (Scan, case of numeric literal): Better msg for identifier
1757 starting with a digit.
1759 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1760 Thomas Quinot <quinot@adacore.com>
1761 Javier Miranda <miranda@adacore.com>
1762 Gary Dismukes <dismukes@adacore.com>
1764 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
1765 properly an attempt to apply Unchecked_Access to a protected operation.
1766 (OK_Self_Reference): New subprogram to check the legality of an access
1767 attribute whose prefix is the type of an enclosing aggregate.
1768 Generalizes previous mechanism to handle attribute references nested
1769 arbitrarily deep within the aggregate.
1770 (Analyze_Access_Attribute): An access attribute whose prefix is a type
1771 can appear in an aggregate if this is a default-initialized aggregate
1772 for a self-referential type.
1773 (Resolve_Attribute, case Access): Ditto.
1774 Add support for new implementation defined attribute Stub_Type.
1775 (Eval_Attribute, case Attribute_Stub_Type): New case.
1776 (Analyze_Attribute, case Attribute_Stub_Type): New case.
1777 (Stream_Attribute_Available): Implement using new subprogram from
1778 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
1779 Has_Specified_Stream_Attribute flag.
1780 Disallow Storage_Size and Storage_Pool for access to subprogram
1781 (Resolve_Attribute, case 'Access et al): Take into account anonymous
1782 access types of return subtypes in extended return statements. Remove
1783 accessibility checks on anonymous access types when Unchecked_Access is
1785 (Analyze_Attribute): Add support for the use of 'Class to convert
1786 a class-wide interface to a tagged type.
1787 Add support for the attribute Priority.
1788 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
1789 whether the designated type is discriminated with a constrained partial
1790 view and require static matching in that case.
1791 Add local variable Des_Btyp. The Designated_Type
1792 of an access to incomplete subtype is either its non-limited view if
1793 coming from a limited with or its etype if regular incomplete subtype.
1795 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
1796 Fix predicate to identify and allow cases of (expander-generated)
1797 references to tag of designated object of a RACW.
1798 (Validate_Static_Object_Name): In Ada 2005, a formal object is
1799 non-static, and therefore cannot appear as a primary in a preelaborable
1801 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
1802 Has_Read_Write_Attributes.
1803 (Has_Read_Write_Attributes): Reimplement in termes of
1804 Has_Stream_Attribute_Definition.
1805 (Missing_Read_Write_Attributes): When checking component types in a
1806 record, unconditionally call Missing_Read_Write_Attributes recursively
1807 (remove guard checking for Is_Record_Type / Is_Access_Type).
1809 2006-10-31 Robert Dewar <dewar@adacore.com>
1811 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
1812 useless assignments here and conditionalize it on absence of exception
1814 (Analyze_Exception_Handlers): Small code reorganization of error
1815 detection code, for new handling of formal packages.
1817 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1818 Hristian Kirtchev <kirtchev@adacore.com>
1820 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
1821 that has been constant-folded, preserve information of original tree,
1823 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
1824 generated private extension declaration if the formal derived type is
1825 synchronized. Carry synchronized present over to the generated private
1827 (Validate_Derived_Type_Instance): Ensure that the actual of a
1828 synchronized formal derived type is a synchronized tagged type.
1829 (Instantiate_Formal_Package): When creating the instantiation used to
1830 validate the actual package of a formal declared without a box, check
1831 whether the formal itself depends on a prior actual.
1832 (Instantiate_Formal_Subprogram): Create new entities for the defining
1833 identifiers of the formals in the renaming declaration, for ASIS use.
1834 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
1835 a renaming declaration or a subtype declaration for an actual in an
1836 instance, capture location information of declaration in generic, for
1838 (Instantiate_Formal_Package): Add comments on needed additional tests.
1839 AI-317 (partial parametrization) is fully implemented.
1840 (Validate_Private_Type_Instance): Add check for actual which
1841 must have preelaborable initialization
1842 Use new // insertion for some continuation messages
1843 (Analyze_Formal_Object_Declaration): Change usage of Expression to
1844 Default_Expression. Add type retrieval when the declaration has an
1845 access definition. Update premature usage of incomplete type check.
1846 (Check_Access_Definition): New subsidiary routine. Check whether the
1847 current compilation version is Ada 05 and the supplied node has an
1849 (Instantiate object): Alphabetize local variables. Handle the creation
1850 of new renaming declarations with respect to the kind of definition
1851 used - either an access definition or a subtype mark. Guard against
1852 unnecessary error message in the context of anonymous access types after
1853 they have been resolved. Add check for required null exclusion in a
1854 formal object declaration.
1855 (Switch_View): A private subtype of a non-private type needs to be
1856 switched (the base type can have been switched without its private
1857 dependents because of the last branch of Check_Private_View.
1858 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
1860 (Instantiate_Type): Emit an error message whenever a class-wide type of
1861 a tagged incomplete type is used as a generic actual.
1862 (Find_Actual_Type): Extend routine to handle a component type in a child
1863 unit that is imported from a formal package in a parent.
1864 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
1865 agree on constrainedness, rather than checking against ultimate ancestor
1866 (Instantiate_Subprogram_Body): Create a cross-reference link to the
1867 generic body, for navigation purposes.
1869 2006-10-31 Robert Dewar <dewar@adacore.com>
1870 Thomas Quinot <quinot@adacore.com>
1872 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
1874 (New_Stream_Subprogram): When processing an attribute definition clause
1875 for a stream-oriented subprogram, record an entity node occurring at
1876 the point of clause to use for checking the visibility of the clause,
1877 as defined by 8.3(23) as amended by AI-195.
1878 (New_Stream_Subprogram): New procedure, factoring behaviour from both
1879 New_Stream_Function and New_Stream_Procedure.
1880 (New_Stream_Function, New_Stream_Procedure): Removed.
1881 (Analyze_Attribute_Definition_Clause, case Address): Check new
1882 Alignment_Check check
1884 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1885 Javier Miranda <miranda@adacore.com>
1886 Robert Dewar <dewar@adacore.com>
1888 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
1889 generate the same errors compiling under -gnatc.
1890 (Try_Object_Operation): If no candidate interpretation succeeds, but
1891 there is at least one primitive operation with the right name, report
1892 error in call rather than on a malformed selected component.
1893 (Analyze_Selected_Component): If the prefix is an incomplete type from
1894 a limited view, and the full view is available, use the full view to
1895 determine whether this is a prefixed call to a primitive operation.
1896 (Operator_Check): Verify that a candidate interpretation is a binary
1897 operation before checking the type of its second formal.
1898 (Analyze_Call): Add additional warnings for function call contexts not
1900 (Analyze_Allocator): Move the check for "initialization not allowed for
1901 limited types" after analyzing the expression. This is necessary,
1902 because OK_For_Limited_Init looks at the structure of the expression.
1903 Before analysis, we don't necessarily know what sort of expression it
1904 is. For example, we don't know whether F(X) is a function call or an
1905 indexed component; the former is legal in Ada 2005; the latter is not.
1906 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
1907 were missing. We also didn't handle qualified expressions. Now also
1908 allow function calls. Use new common routine OK_For_Limited_Init.
1909 (Analyze_Type_Conversion): Do not perform some legality checks in an
1910 instance, because the error message will be redundant or spurious.
1911 (Analyze_Overloaded_Selected_Component): Do not do style check when
1912 setting an entity, since we do not know it is the right entity yet.
1913 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
1914 (Analyze_Overloaded_Selected_Component): Same change
1915 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
1916 since regular incomplete subtypes are transformed into corresponding
1917 subtypes of their full views.
1918 (Complete_Object_Operation): Treat name of transformed subprogram call
1919 as coming from source, for browsing purposes.
1920 (Try_Primitive_Operation): If formal is an access parameter, compare
1921 with base type of object to determine whether it is a primitive
1923 (Operator_Check): If no interpretation of the operator matches, check
1924 whether a use clause on any candidate might make the operation legal.
1925 (Try_Class_Wide_Operation): Check whether the first parameter is an
1926 access type whose designated type is class-wide.
1928 2006-10-31 Robert Dewar <dewar@adacore.com>
1929 Ed Schonberg <schonberg@adacore.com>
1930 Gary Dismukes <dismukes@adacore.com>
1932 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
1933 warn on infinite loops.
1934 Add \\ to some continuation messages
1935 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
1936 (Process_Bounds): If the bounds are integer literals that result from
1937 constant-folding, and they carry a user-defined type, preserve that type
1938 rather than treating this as an integer range.
1939 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
1940 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
1941 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
1942 left hand side of assignment.
1943 (Analyze_Assignment): Add suport to manage assigments to the attribute
1944 priority of a protected object.
1945 (Check_Possible_Current_Value_Condition): Allow fully qualified names
1946 not just identifiers.
1947 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
1948 or AND THEN for possible tracking.
1949 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
1950 case of while loops so we can track values in the loop body.
1952 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1953 Hristian Kirtchev <kirtchev@adacore.com>
1954 Bob Duff <duff@adacore.com>
1956 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
1957 procedure cannot be a protected operation (it is a basic_declaration,
1958 not a subprogram_declaration).
1959 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
1960 Subp. Add logic for entry processing.
1961 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
1962 Determine whether an entry or subprogram of a protected or task type
1963 override an inherited primitive of an implemented interface.
1964 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
1965 Update the actual used in calls to Check_Overriding_Indicator.
1966 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
1967 generate the proper reference to the parent unit, for cross-reference.
1968 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
1970 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
1971 (Add_Extra_Formal): Revise procedure to allow passing in associated
1972 entity, scope, and name suffix, and handle setting of the new
1973 Extra_Formals field.
1974 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
1975 pass new parameters. Add support for adding the new extra access formal
1976 for functions whose calls are treated as build-in-place.
1977 (Analyze_A_Return_Statement): Correct casing in error message.
1978 Move Pop_Scope to after Analyze_Function_Return, because an extended
1979 return statement really is a full-fledged scope. Otherwise, visibility
1980 doesn't work right. Correct use of "\" for continuation messages.
1981 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
1982 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
1983 the node doesn't get properly marked as analyzed.
1984 (Analyze_Subprogram_Body): If subprogram is a function that returns
1985 an anonymous access type that denotes a task, build a Master Entity
1987 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
1988 proper usage of null exclusion in a result definition.
1989 (Process_Formals): Code cleanup and new error message.
1990 (Process_Formals): Detect incorrect application of null exclusion to
1992 (Conforming_Types): Handle conformance between [sub]types and itypes
1993 generated for entities that have null exclusions applied to them.
1994 (Maybe_Primitive_Operation): Add an additional type retrieval when the
1995 base type is an access subtype. This case arrises with null exclusions.
1996 (New_Overloaded_Entity): Do not remove the overriden entity from the
1997 homonym chain if it corresponds with an abstract interface primitive.
1998 (Process_Formals): Replace membership test agains Incomplete_Kind with a
1999 call to the synthesized predicate Is_Incomplete_Type.
2000 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
2002 (Analyze_Subprogram_Declaration): Check that abstract interface
2003 primitives are abstract or null.
2004 (Analyze_Subprogram_Specification): Remove previous check for abstract
2005 interfaces because it was not complete.
2006 (Has_Interface_Formals): Removed.
2008 2006-10-31 Ed Schonberg <schonberg@adacore.com>
2009 Javier Miranda <miranda@adacore.com>
2011 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
2012 of Analyze_Package_Body, to create Itype references for anonymous
2013 access types created in the package declaration, whose designated types
2014 may have only a limited view.
2015 (Analyze_Package_Specification): For the private part of a nested
2016 package, install private_with_clauses of enclosing compilation unit if
2017 we are in its visible part.
2018 (Declare_Inherited_Private_Subprograms): Complete barrier
2019 to ensure that the primitive operation has an alias to some parent
2020 primitive. This is now required because, after the changes done for the
2021 implementation of abstract interfaces, the contents of the list of
2022 primitives has entities whose alias attribute references entities of
2023 such list of primitives.
2024 (Analyze_Package_Specification): Simplify code that handles parent units
2025 of instances and formal packages.
2026 (Uninstall_Declarations): Check the convention consistency among
2027 primitive overriding operations of a tagged record type.
2029 2006-10-31 Robert Dewar <dewar@adacore.com>
2030 Hristian Kirtchev <kirtchev@adacore.com>
2031 Javier Miranda <miranda@adacore.com>
2032 Ed Schonberg <schonberg@adacore.com>
2034 * sem_ch8.adb: Minor error msg rewording
2035 (Undefined): When checking for misspellings, invert arguments (to get
2036 expected and found set right)
2037 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
2038 (Analyze_Generic_Renaming): Same fix
2039 (Use_One_Package): Do not take into account the internal entities of
2040 abstract interfaces during the analysis of entities that are marked
2041 as potentially use-visible.
2042 (Find_Type): Handle the case of an attribute reference for
2043 implementation defined attribute Stub_Type (simply let the analysis of
2044 the attribute reference rewrite it).
2045 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
2046 type that appears in a Use_Type clause.
2047 (Analyze_Object_Renaming): Add support for renaming of the Priority
2049 (Find_Type): In Ada 2005, a task type can be used within its own body,
2050 when it appears in an access definition.
2051 (Analyze_Object_Renaming): Remove warning on null_exclusion.
2052 (Analyze_Object_Renaming): Introduce checks for required null exclusion
2053 in a formal object declaration or in a subtype declaration.
2054 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
2055 (Check_Null_Exclusion): New local routine to
2056 Analyze_Subprogram_Renaming. Check whether the formals and return
2057 profile of a renamed subprogram have required null exclusions when
2058 their counterparts of the renaming already impose them.
2059 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
2060 Determine whether an entity is inside a generic scope.
2061 (In_Open_Scope): First pass of documentation update.
2062 (Find_Expanded_Name): Add support for shadow entities associated with
2063 limited withed packages. This is required to handle nested packages.
2064 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
2065 that makes a renaming of a limited withed package illegal.
2067 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
2068 Ed Schonberg <schonberg@adacore.com>
2070 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
2071 Check_Overriding_Indicator.
2072 (Analyze_Task_Definition): Ditto.
2073 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
2074 (Check_Overriding_Indicator): To find overridden interface operation,
2075 examine only homonyms that have an explicit subprogram declaration, not
2076 inherited operations created by an unrelated type derivation.
2077 (Check_Overriding_Indicator): When checking for the presence of "null"
2078 in a procedure, ensure that the queried node is a procedure
2080 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
2081 type when the formal is an access to variable.
2082 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
2083 (Analyze_Task_Type): Same addition
2084 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
2085 provide navigation capabilities for entries.
2087 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
2088 Ed Schonberg <schonberg@adacore.com>
2089 Javier Miranda <miranda@adacore.com>
2090 Gary Dismukes <dismukes@adacore.com>
2092 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
2093 inherited from an interface ancestor by another interface in the
2094 context of an instance as 'late'.
2095 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
2096 of a call to a function that dispatches on access result.
2097 (Check_Dispatching_Operation): In case of late overriding of a primitive
2098 that covers abstract interface subprograms we register it in all the
2099 secondary dispatch tables associated with abstract interfaces.
2100 (Check_Dispatching_Call): Add check that a dispatching call is not made
2101 to a function with a controlling result of a limited type. This is a
2102 current implementation restriction.
2103 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
2104 (Check_Dispatching_Operation): Do no emit a warning if the controlling
2105 argument is an interface type that is a generic formal.
2106 (Is_Interface_Subprogram): Removed.
2107 (Check_Dispatching_Operation): If the subprogram is not a dispatching
2108 operation, check the formals to handle the case in which it is
2109 associated with an abstract interface type.
2111 2006-10-31 Robert Dewar <dewar@adacore.com>
2112 Ed Schonberg <schonberg@adacore.com>
2114 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
2115 Add new calls to this procedure during traversal
2116 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
2117 another unit if expansion is disabled.
2119 2006-10-31 Robert Dewar <dewar@adacore.com>
2121 * sem_eval.adb (Compile_Time_Compare): Make use of information from
2122 Current_Value in the conditional case, to evaluate additional
2123 comparisons at compile time.
2125 2006-10-31 Ed Schonberg <schonberg@adacore.com>
2126 Hristian Kirtchev <kirtchev@adacore.com>
2127 Javier Miranda <miranda@adacore.com>
2129 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
2130 subprogram type to provide better diagnostics in case of ambiguity.
2131 (Covers): Handle coverage of formal and actual anonymous access types in
2132 the context of generic instantiation.
2133 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
2134 abstract interface types; this is required to handle concurrent types
2135 with discriminants and abstract interface types.
2136 (Covers): Include type coverage of both regular incomplete subtypes and
2137 incomplete subtypes of incomplete type visibles through a limited with
2140 2006-10-31 Robert Dewar <dewar@adacore.com>
2141 Hristian Kirtchev <kirtchev@adacore.com>
2142 Ed Schonberg <schonberg@adacore.com>
2144 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
2145 messages for entities in packages which are not used.
2146 (Collect_Synchronized_Interfaces): New procedure.
2147 (Overrides_Synchronized_Primitive): New function.
2148 (Denotes_Discriminant): Extend predicate to apply to task types.
2149 Add missing continuation marks in error msgs
2150 (Unqualify): New function for removing zero or more levels of
2151 qualification from an expression. There are numerous places where this
2152 ought to be used, but we currently only deal properly with zero or one
2154 (In_Instance); The analysis of the actuals in the instantiation of a
2155 child unit is not within an instantiation, even though the parent
2156 instance is on the scope stack.
2157 (Safe_To_Capture_Value): Exclude the case of variables that are
2159 (Check_Obsolescent): Removed
2160 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
2161 is an aliased view, even when rewritten as a reference to the target
2162 object in an assignment.
2163 (Get_Subprogram_Entity): New function
2164 (Known_To_Be_Assigned): New function
2165 (Type_Access_Level): Compute properly the access level of a return
2166 subtype that is an anonymous access type.
2167 (Explain_Limited_Type): Correct use of "\" for continuation messages.
2168 (Is_Transfer): The new extended_return_statement causes a transfer of
2170 (Has_Preelaborable_Initialization): New function
2171 (Has_Null_Exclusion): New function. Given a node N, determine whether it
2172 has a null exclusion depending on its Nkind.
2173 Change Is_Lvalue to May_Be_Lvalue
2174 (May_Be_Lvalue): Extensive additional code to deal with subprogram
2175 arguments (IN parameters are not Lvalues, IN OUT parameters are).
2176 (Safe_To_Capture_Value): Extend functionality so it can be used for
2177 the current value condition case.
2178 (Has_Compatible_Alignment): New function
2179 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
2180 objects to handle the Ada 2005 case, where aliasedness no longer implies
2181 that the object is constrained. In particular, for dereferenced names,
2182 the designated object must be assumed to be unconstrained.
2183 (Kill_Current_Values): Properly deal with the case where we encounter
2184 a loop in the scope chain.
2185 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
2187 (Compile_Time_Constraint_Error): Improve error message in error case
2189 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
2190 associated with entities of abstract interface primitives.
2191 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
2193 2006-10-31 Robert Dewar <dewar@adacore.com>
2195 * s-osinte-tru64.adb:
2196 Mark Asm statements Volatile to prevent warnings (seems a
2197 reasonable change anyway)
2200 * s-mastop-irix.adb: Add Volatile to Asm statements
2201 Suppresses warning, and seems appropriate in any case
2203 * s-osinte-vms.adb: Add Volatile to Asm statement
2205 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
2207 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
2209 Add call to Check_Code_Statement
2211 2006-10-31 Robert Dewar <dewar@adacore.com>
2212 Ed Schonberg <schonberg@adacore.com>
2213 Bob Duff <duff@adacore.com>
2215 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
2216 Synchronized_Present): Add Formal_Derived_Type_Definition and
2217 Private_Extension_Declaration to the list of assertions.
2218 (Is_Entry_Barrier_Function): New flag
2219 (Has_Self_Reference): New flag on aggregates, to indicate that they
2220 contain a reference to the enclosing type, inserted through a default
2222 (Next_Rep_Item): Move from Node4 to Node5.
2223 (Entity): Add this field for N_Attribute_Definition_Clause.
2224 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
2225 (N_Return_Object_Declaration): Remove this node kind. We now use
2226 N_Object_Declaration instead.
2227 (Actual_Designated_Subtype): Move to a different place to make room in
2228 N_Extended_Return_Statement.
2229 (Procedure_To_Call): Move to a different place to make room in
2230 N_Extended_Return_Statement.
2231 (Return_Type): Removed this field to make room in return statements
2233 (Return_Statement_Entity): New field in return statements, in part to
2234 replace Return_Type, and in part to support the fact that return
2235 statements are now pushed on the scope stack during semantic analysis.
2236 (Return_Object_Declarations): New field to support extended return
2238 (N_Extended_Return_Statement): New node for extended_return_statement
2240 (N_Return_Object_Declaration): New node for part of
2241 extended_return_statement nonterminal. Needed because all the necessary
2242 fields won't fit in N_Extended_Return_Statement.
2243 Generic_associations now carry the Box_Present flag, to indicate a
2244 default for an actual in a partially parametrized formal package.
2246 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
2247 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
2248 and for the new predefined dispatching policies: EDF_Across_Priorities,
2249 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
2250 Introduce new name Stub_Type for implementation defined attribute.
2251 Add pragma Preelaborable_Initialization
2252 Add entry for Priority attribute.
2253 Add Pragma_Wide_Character_Encoding
2254 (Get_Convention_Name): Given a convention id, this function returns the
2255 corresponding name id from the names table.
2257 2006-10-31 Ed Schonberg <schonberg@adacore.com>
2258 Robert Dewar <dewar@adacore.com>
2259 Bob Duff <duff@adacore.com>
2261 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
2262 print null exclusion twice in the case of an access definition,
2263 Implement new -gnatL switch
2264 Remove N_Return_Object_Declaration. We now use
2265 N_Object_Declaration instead. Implement the case for
2266 N_Extended_Return_Statement. Alphabetize the cases.
2267 Add cases for new nodes N_Extended_Return_Statement and
2268 N_Return_Object_Declaration. The code is not yet written.
2269 Update the output for N_Formal_Object_Declaration
2270 and N_Object_Renaming_Declaration.
2271 (Write_Itype): Account for the case of a modular integer subtype whose
2272 base type is private.
2274 2006-10-31 Arnaud Charlet <charlet@adacore.com>
2276 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
2277 Remove elaboration code, now done in the binder.
2279 * s-rident.ads: Make this unit Preelaborate.
2280 (No_Restrictions): New constant used to clean up code and follow
2281 preelaborate constraints.
2284 Add System.Restrictions dependence, referenced directly from the
2285 binder generated file.
2287 2006-10-31 Gary Dismukes <dismukes@adacore.com>
2289 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
2290 True when AAMP extended floating-point is in use (48-bit). Change type
2291 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
2292 the two byte array types on AFloat. Change type of IV_Ilf overlay
2293 variable from Byte8 to ByteLF. Add appropriate initializations of
2294 floating-point overlays for AAMP cases.
2296 2006-10-31 Javier Miranda <miranda@adacore.com>
2298 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
2299 (Get_Ceiling): New subprogram that returns
2300 the ceiling priority of the protected object.
2301 (Set_Ceiling): New subprogram that sets the new ceiling priority of
2302 the protected object.
2304 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
2306 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
2308 2006-10-31 Jose Ruiz <ruiz@adacore.com>
2310 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
2311 requeuing to the same protected object to give higher priority tasks
2312 the opportunity to execute.
2314 2006-10-31 Robert Dewar <dewar@adacore.com>
2316 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
2317 add more precise check for the character sequence that follows '[' to
2318 avoid possible confusion in case if '[' is the last character of a
2320 (Scan_Wide): Always allow brackets encoding
2322 2006-10-31 Olivier Hainque <hainque@adacore.com>
2324 * s-stchop.ads: make this unit preelaborate. This is desirable in
2325 general and made mandatory by the use of this unit by s-taprop which
2326 is itself preelaborate.
2328 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
2329 Td_Events component.
2331 2006-10-31 Vincent Celier <celier@adacore.com>
2333 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
2336 2006-10-31 Vincent Celier <celier@adacore.com>
2338 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
2340 2006-10-31 Vincent Celier <celier@adacore.com>
2342 * makegpr.adb (Check_Compilation_Needed): Take into account path names
2344 (Check_Compilation_Needed): When checking a C or C++ source, do not
2345 resolve symbolic links.
2346 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
2347 When not in verbose mode and Ellipse is True, display "..." for the
2348 first argument with Display set to False.
2349 (Build_Global_Archive): Always set Display True for the first object
2350 file. Call Display_Command with Ellipse set to True.
2352 2006-10-31 Matt Heaney <heaney@adacore.com>
2354 * a-crbtgo.ads: Commented each subprogram
2356 * a-crbtgo.adb: Added reference to book from which algorithms were
2359 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
2360 indicate which child.
2361 (Generic_Conditional_Insert): changed parameter name from "Success" to
2363 (Generic_Unconditional_Insert_With_Hint): improved algorithm
2365 * a-coorse.adb (Replace_Element): changed parameter name in call to
2366 conditional insert operation.
2368 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
2370 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
2373 * a-ciorse.adb (Replace_Element): changed parameter name in call to
2374 conditional insert operation.
2376 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
2379 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
2380 instead of mode inout.
2382 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
2384 (Generic_Read): preserve existing buckets array if possible
2385 (Generic_Write): don't send buckets array length anymore
2387 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
2388 instead of mode inout.
2390 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
2391 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
2393 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
2394 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
2395 (Replace_Element): local operation is now an instantiation
2397 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
2398 check current length.
2399 (Generic_Replace_Element): new operation
2401 2006-10-31 Doug Rupp <rupp@adacore.com>
2403 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
2404 Call TBK$SYMBOLIZE without omitting parameters.
2406 2006-10-31 Vincent Celier <celier@adacore.com>
2408 * symbols-processing-vms-ia64.adb,
2409 symbols-processing-vms-alpha.adb (Process): Do not include symbols
2410 that come from generic instantiations in bodies.
2412 2006-10-31 Pat Rogers <rogers@adacore.com>
2414 * a-rttiev.ads, a-rttiev.adb:
2415 This is a significant redesign primarily for the sake of automatic
2416 timer task termination but also to fix a design flaw.
2417 Therefore we are now using an RTS lock, instead of a protected
2418 object, to provide mutual exclusion to the queue of pending events
2419 and the type Timing_Event is no longer a protected type.
2421 2006-10-31 Robert Dewar <dewar@adacore.com>
2422 Cyrille Comar <comar@adacore.com>
2423 Ben Brosgol <brosgol@adacore.com>
2425 * debug.adb: Update flags documentation
2427 * gnat_ugn.texi: Add documentation for new -gnatwq switch
2428 Clean up documentation for several other warning switches
2429 Clarify how task stack size can be specified with various
2430 versions of Windows.
2431 Add note that -gnatVo includes ranges including loops
2432 Add documentation for -gnatL switch
2433 Add note on elaboration warning for initializing variables
2434 Add documentation for new -gnatwt warning switch
2435 Document new form of pragma Warnings (On|Off, string)
2436 Add comment on use of pragma Warnings to control warnings
2437 Add documentation for -gnatjnn switch
2438 Modify section on interfacing with C for VMS 64-bit.
2439 Add doc for -gnatVe/E
2440 Add documentation of new warning flags -gnatww/-gnatwW
2441 Add warnings about address clause overlays to list of warnings
2442 (Exception Handling Control): Document that the option --RTS must be
2443 used consistently for gcc and gnatbind.
2444 Clarify that inlining is not always possible
2445 Update documentation on pragma Unchecked_Union.
2448 Add documentation for new extended version of pragma Obsolescent
2449 Add documentation for implementation defined attribute 'Stub_Type.
2450 Add note on use of Volatile in asm statements
2451 Add documentation on use of pragma Unreferenced in context clause
2452 Document new form of pragma Warnings (On|Off, pattern)
2453 Document pragma Wide_Character_Encoding
2454 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
2455 enforced if code generation is active.
2456 Add section on pragma Suppress to document GNAT specific check
2458 Clarify difference between No_Dispatching_Calls & No_Dispatch.
2459 Add documentation for pragma Restrictions (No_Elaboration_Code)
2462 Add comments on layout of subprogram local variables in the
2463 presence of nested subprograms.
2467 * elists.ads: Minor reformatting
2468 Node returns Node_Or_Entity_Id (doc change only)
2470 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
2472 * g-arrspl.ads (Create): Update comments.
2474 * sem.ads: Add details on the handling of the scope stack.
2476 * usage.adb: Update documentation.
2478 * validsw.ads, validsw.adb:
2479 Add definition of Validity_Check_Components and implement -gnatVe/E
2481 * vms_data.ads: Add missing VMS qualifiers.
2483 * s-addope.ads: Add documentation on overflow and divide by zero
2485 2006-10-31 Robert Dewar <dewar@adacore.com>
2486 Thomas Quinot <quinot@adacore.com>
2487 Arnaud Charlet <charlet@adacore.com>
2489 * fmap.adb: Put routines in alpha order
2491 * g-boumai.ads: Remove redundant 'in' keywords
2493 * g-cgi.adb: Minor reformatting
2495 * g-cgi.ads: Remove redundant 'in' keywords
2497 * get_targ.adb: Put routines in alpha order
2499 * prj-attr.ads: Minor reformatting
2501 * s-atacco.ads: Minor reformatting
2503 * scn.adb: Put routines in alpha order
2505 * sinput-l.adb: Minor comment fix
2507 * sinput-p.adb: Minor comment fix
2509 * s-maccod.ads: Minor reformatting
2511 * s-memory.adb: Minor reformatting
2513 * s-htable.adb: Fix typo in comment.
2515 * s-secsta.adb: Minor comment update.
2517 * s-soflin.adb: Minor reformatting
2520 Add comment about odd qualification in Storage_Offset declaration
2523 Remove unnecessary 'in' keywords for formal parameters.
2525 * treeprs.adt: Minor reformatting
2527 * urealp.adb: Put routines in alpha order
2529 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
2532 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
2534 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
2536 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
2537 workaround as on other platforms.
2539 * g-eacodu-vms.adb: Remove redundant 'in' keywords
2540 * g-expect-vms.adb: Remove redundant 'in' keywords
2542 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
2543 clear error message if the list-of-files file cannot be opened.
2545 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
2546 equality operator is always visible.
2548 * lang.opt: Woverlength-strings: New option.
2551 Update copyright, since nmake.ads and nmake.adb have changed.
2553 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
2554 (Binder_Output_Time_Stamps_Set): removed.
2555 (Old_Binder_Output_Time_Stamp): idem.
2556 (New_Binder_Output_Time_Stamp): idem.
2557 (Recording_Time_From_Last_Bind): idem.
2558 (Recording_Time_From_Last_Bind): Make constant.
2560 * output.ads, output.adb (Write_Str): Allow LF characters
2561 (Write_Spaces): New procedure
2563 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
2565 * inline.adb: Minor reformatting
2567 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
2569 * s-mastop-vms.adb: Remove redundant 'in' keywords
2571 * s-osprim-vms.adb: Remove redundant 'in' keywords
2573 * s-trafor-default.adb: Remove redundant 'in' keywords
2575 * 9drpc.adb: Remove redundant 'in' keywords
2577 * s-osinte-mingw.ads: Minor reformatting
2579 * s-inmaop-posix.adb: Minor reformatting
2581 * a-direio.ads: Remove quotes from Compile_Time_Warning message
2583 * a-exexda.adb: Minor code reorganization
2585 * a-filico.adb: Minor reformatting
2587 * a-finali.adb: Minor reformatting
2589 * a-nudira.ads: Remove quote from Compile_Time_Warning message
2591 * a-numeri.ads: Minor reformatting
2593 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
2595 * exp_pakd.ads: Fix obsolete comment
2597 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
2598 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
2599 Probably not a bug, but certainly neater and more efficient.
2601 * a-tienio.adb: Minor reformatting
2603 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
2604 Avoid assuming low bound of string is 1.
2606 * gnatbind.adb: Change Bindusg to package and rename procedure as
2607 Display, which now ensures that it only outputs usage information once.
2608 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
2610 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
2613 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
2615 (Match): Add pragma Assert to ensure that Matches'First is zero
2617 * g-regpat.ads (Match): Document that Matches lower bound must be zero
2619 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
2620 documented preconditions (also kills warnings about bad indexes).
2622 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
2624 (Build_Import_Library): Ditto;
2626 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
2628 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
2630 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
2631 lower bound of choice table is 1.
2633 * sem_case.ads (Analyze_Choices): Document that lower bound of
2636 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
2639 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
2640 and add appropriate Assert pragma to suppress warnings.
2642 * atree.h, atree.ads, atree.adb
2643 Change Elist24 to Elist25
2644 Add definitions of Field28 and Node28
2645 (Traverse_Field): Use new syntactic parent table in sinfo.
2647 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
2649 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
2651 * exp_tss.adb: Put routines in alpha order
2653 * fe.h: Remove redundant declarations.
2655 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
2657 * utils.c (builtin_function): Rename to gnat_builtin_function.
2658 Move common code to add_builtin_function.
2659 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
2660 gnat_builtin_function.
2661 * gigi.h (builtin_function): Rename to gnat_builtin_function.
2662 Change the signature.
2664 2006-10-16 Brooks Moses <bmoses@stanford.edu>
2666 * Makefile.in: Add TEXI2PDF definition.
2667 * Make-lang.in: Add "ada.pdf" target.
2669 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
2671 * decl.c, utils.c: Fix comment typos.
2672 * utils.c: Fix a typo.
2674 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
2676 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
2677 on "pure" Ada subprograms if SJLJ exceptions are used.
2678 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
2679 on the declaration node of JMPBUF_SAVE.
2680 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
2681 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
2682 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
2684 2006-08-20 Laurent GUERBY <laurent@guerby.net>
2687 g-socket.adb (Bind_Socket): Call Set_Address.
2689 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
2692 * decl.c (same_discriminant_p): New static function.
2693 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
2694 subtype and we have discriminants, fix up the COMPONENT_REFs
2695 for the discriminants to make them reference the corresponding
2696 fields of the parent subtype after it has been built.
2698 2006-09-15 Roger Sayle <roger@eyesopen.com>
2701 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
2702 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
2704 2006-09-13 Olivier Hainque <hainque@adacore.com>
2707 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
2708 of a SAVE_EXPR, just make the operand addressable/not-readonly and
2709 let the common gimplifier code make and propagate a temporary copy.
2710 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
2711 out/in-out actuals and defer setting the addressable/readonly bits
2714 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
2717 * decl.c (components_to_record): Defer emitting debug info for the
2718 record type associated with the variant until after we are sure to
2721 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
2724 * gigi.h (gnat_internal_attribute_table): Declare.
2725 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
2726 * utils.c (gnat_internal_attribute_table): New global variable.
2727 (builtin_function): Always call decl_attributes on the builtin.
2728 (handle_const_attribute): New static function.
2729 (handle_nothrow_attribute): Likewise.
2731 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2733 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
2735 2006-06-23 Olivier Hainque <hainque@adacore.com>
2737 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
2738 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
2740 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
2741 Eric Botcazou <ebotcazou@adacore.com>
2744 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
2745 check-gnat into check-acats.
2747 2006-06-17 Karl Berry <karl@gnu.org>
2749 * gnat-style.texi (@dircategory): Use "Software development"
2750 instead of "Programming", following the Free Software Directory.
2752 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2755 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
2757 2006-06-06 Laurent GUERBY <laurent@guerby.net>
2760 mlib-utl.adb: Use Program_Name.
2762 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
2764 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
2765 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
2766 trans.c, utils.c: Fix comment typos. Follow spelling
2768 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
2771 2006-05-19 Nicolas Setton <setton@adacore.com>
2773 * misc.c (gnat_dwarf_name): New function.
2774 (LANG_HOOKS_DWARF_NAME): Define to it.
2776 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
2778 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
2779 (ada/misc.o): Likewise.
2780 (ada/utils.o): Likewise.
2782 2006-04-08 Aurelien Jarno <aurel32@debian.org>
2784 * Makefile.in: Add Ada support for GNU/kFreeBSD.
2785 * s-osinte-kfreebsd-gnu.ads: New file.
2787 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
2789 * Make-lang.in: Rename docdir to gcc_docdir.
2791 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
2793 * gigi.h (get_ada_base_type): Delete.
2794 * utils2.c (get_ada_base_type): Likewise.
2795 * trans.c (convert_with_check): Operate in the real base type.
2797 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2799 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
2801 2006-03-02 Richard Sandiford <richard@codesourcery.com>
2803 * utils.c (create_var_decl): Use have_global_bss_p when deciding
2804 whether to make the decl common.
2806 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2808 * Make-lang.in (Ada): Remove.
2809 (.PHONY): Remove Ada
2811 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2813 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
2814 aggregate, check the interpretations of the other operand to find one
2815 that may be a boolean array.
2817 (Analyze_Selected_Component): Fix flow-of-control typo in case where
2818 the prefix is a private extension.
2820 2006-02-17 Eric Botcazou <botcazou@adacore.com>
2823 * utils2.c (find_common_type): If both input types are BLKmode and
2824 have the same constant size, keep using the first one.
2826 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
2828 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
2830 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
2832 2006-02-17 Jose Ruiz <ruiz@adacore.com>
2834 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
2835 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
2836 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
2837 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
2838 Abort_Defer/Undefer pairs to avoid the possibility of a task being
2839 aborted while owning a lock.
2841 2006-02-17 Javier Miranda <miranda@adacore.com>
2842 Robert Dewar <dewar@adacore.com>
2844 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
2845 through an access to class-wide interface we force the displacement of
2846 the pointer to the allocated object to reference the corresponding
2847 secondary dispatch table.
2848 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
2849 if Long_Shifts are supported on the target, even if 64 bit divides
2850 are not supported (configurable run time mode).
2851 (Expand_N_Type_Conversion): Do validity check if validity checks on
2852 operands are enabled.
2853 (Expand_N_Qualified_Expression): Do validity check if validity checks
2854 on operands are enabled.
2856 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2858 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
2859 must be materialized when the renamed expression is an explicit
2862 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2864 * freeze.adb (Statically_Discriminated_Components): Return false if
2865 the bounds of the type of the discriminant are not static expressions.
2867 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
2868 the bounds of the discriminant type are not static.
2870 2006-02-17 Robert Dewar <dewar@adacore.com>
2872 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
2873 then we close To if it is valid.
2875 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
2877 * init.c (facility_resignal_table): new array
2878 (__gnat_default_resignal_p): enhance default predicate to resignal if
2879 VMS condition has one of the predefined facility codes.
2881 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
2883 * Makefile.in: Use VMS64 specialized versions of several units in
2884 Interfaces.C hierarchy to be compatible with HP C default size choices.
2885 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
2887 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2889 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
2890 instantiation, the corresponding entity is the related_instance of the
2891 wrapper package created for the instance.
2893 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2895 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
2896 the current instance is nested within another instance in a child unit.
2898 2006-02-17 Javier Miranda <miranda@adacore.com>
2899 Ed Schonberg <schonberg@adacore.com>
2901 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
2902 type we cannot inherit the primitive operations; we inherit the
2903 Corresponding_Record_Type (which has the list of primitive operations).
2904 (Check_Anonymous_Access_Types): When creating anonymous access types for
2905 access components, use Rewrite in order to preserve the tree structure,
2907 (Analyze_Object_Declaration): For limited types with access
2908 discriminants with defaults initialized by an aggregate, obtain
2909 subtype from aggregate as for other mutable types.
2910 (Derived_Type_Declaration): If the derived type is a limited interface,
2911 set the corresponding flag (Is_Limited_Record is not sufficient).
2913 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2915 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
2916 to inline a function that returns an unconstrained type, the return
2917 expression must be the first variable declared in the body of the
2920 2006-02-17 Javier Miranda <miranda@adacore.com>
2922 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
2923 abstract interface type, the static analysis is not enough to know if
2924 the interface is implemented or not by the source tagged type. Hence
2925 we must pass the work to the expander to generate the required code to
2926 evaluate the conversion at run-time.
2927 (Resolve_Equality_Op): Do not apply previous
2928 transformation if expansion is disasbled, to prevent anomalies when
2929 locating global references in a generic unit.
2931 2006-02-17 Vincent Celier <celier@adacore.com>
2933 * snames.ads, snames.adb: New standard names for new project attributes:
2934 archive_builder, archive_indexer, compiler_pic_option,
2935 config_body_file_name, config_body_file_name_pattern,
2936 config_file_switches, config_file_unique, config_spec_file_name,
2937 config_spec_file_name_pattern, default_builder_switches,
2938 default_global_compiler_switches, default_language,
2939 dependency_file_kind, global_compiler_switches, include_path,
2940 include_path_file, language_kind, linker_executable_option,
2941 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
2942 roots, runtime_project.
2944 2006-02-17 Matthew Heaney <heaney@adacore.com>
2946 * a-convec.ads, a-convec.adb:
2947 (operator "&"): handle potential overflow for large index types
2948 (Insert): removed Contraint_Error when using large index types
2949 (Insert_Space): removed Constraint_Error for large index types
2950 (Length): moved constraint check from Length to Insert
2952 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
2954 Explicit raise statements now include an exception message.
2955 (operator "&"): handle potential overflow for large index types
2956 (Insert): removed Contraint_Error when using large index types
2957 (Insert_Space): removed Constraint_Error for large index types
2958 (Length): moved constraint check from Length to Insert
2960 2006-02-17 Robert Dewar <dewar@adacore.com>
2962 * s-wchcnv.adb: Document handling of [ on output (we do not change
2963 this to ["5B"] and the new comments say why not.
2966 Add note for -gnatVo that this now includes the cases of type
2967 conversions and qualified expressions.
2968 Add comments on handling of brackets encoding for Text_IO
2970 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
2971 Thomas Quinot <quinot@adacore.com>
2972 Robert Dewar <dewar@adacore.com>
2973 Javier Miranda <miranda@adacore.com>
2975 * expander.adb: Fix typo in comment
2977 * exp_pakd.adb: Fix typo
2978 Minor comment reformatting.
2980 * g-dyntab.adb: Minor reformatting
2982 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
2983 aliased subprograms to look for the abstract interface subprogram.
2985 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
2987 * env.c (__gnat_setenv): Use size_t.
2988 (__gnat_unsetenv): Likewise.
2989 (__gnat_clearenv): Likewise.
2991 2006-02-16 Arnaud Charlet <charlet@adacore.com>
2993 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
2995 2006-02-13 Arnaud Charlet <charlet@adacore.com>
2997 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
2998 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
2999 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
3000 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
3001 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
3002 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
3003 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
3004 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
3005 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
3008 2006-02-13 Jose Ruiz <ruiz@adacore.com>
3010 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
3011 protection against race conditions is not needed.
3012 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
3014 (Set_Specific_Handler): Add mutual exclusive access to the specific
3016 (Specific_Handler): Add mutual exclusive access for retrieving the
3019 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
3022 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
3023 Fall_Back_Handler and Specific_Handler.
3025 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
3026 termination handlers.
3027 Set two different owerflow depending on the maximal stack size.
3029 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
3030 protection against race conditions is not needed when executing the
3031 task termination handler.
3033 2006-02-13 Robert Dewar <dewar@adacore.com>
3035 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
3036 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
3037 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
3038 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
3039 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
3040 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
3041 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
3042 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
3043 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
3044 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
3045 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
3046 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
3047 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
3048 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
3049 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
3050 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
3051 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
3052 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
3053 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
3054 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
3055 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
3056 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
3057 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
3058 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
3059 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
3060 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
3061 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
3062 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
3063 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
3064 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
3065 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
3066 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
3067 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
3068 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
3071 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
3073 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
3074 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
3075 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
3076 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
3077 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
3078 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
3079 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
3080 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
3081 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
3083 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3085 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
3086 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
3087 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
3088 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
3089 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
3090 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
3091 replaced by anonymous access type.
3092 (pthread_sigmask): Now take an access sigset_t
3094 * s-osinte-hpux.ads: Ditto.
3095 (pthread_mutex_t, pthread_cond_t): Update definitions to support
3096 properly 32 and 64 bit ABIs.
3098 2006-02-13 Pascal Obry <obry@adacore.com>
3100 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
3101 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
3102 s-taprop-linux.adb, s-taprop-solaris.adb,
3103 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
3104 adjustement is already done when calling this routine.
3106 2006-02-13 Pascal Obry <obry@adacore.com>
3108 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
3109 table to take advantage of the 16 priority levels available on Windows
3110 2000 and XP. On NT4 there are only 7 priority levels, this is properly
3111 supported by this new mapping.
3113 2006-02-13 Nicolas Setton <setton@adacore.com>
3115 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
3116 (get_encoding): New subprogram. Extracts the encodings from an encoded
3119 2006-02-13 Pascal Obry <obry@adacore.com>
3120 Nicolas Roche <roche@adacore.com>
3121 Arnaud Charlet <charlet@adacore.com>
3123 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
3125 (__gnat_try_lock): Add unicode support by using a specific section on
3127 (__gnat_get_current_dir): Idem.
3128 (__gnat_open_read): Idem.
3129 (__gnat_open_rw): Idem.
3130 (__gnat_open_create): Idem.
3131 (__gnat_create_output_file): Idem.
3132 (__gnat_open_append): Idem.
3133 (__gnat_open_new): Idem.
3134 (__gnat_file_time_name): Idem.
3135 (__gnat_set_file_time_name): Idem.
3136 (__gnat_stat): Idem.
3137 (win32_no_block_spawn): Idem.
3138 (__gnat_locate_exec_on_path): Idem.
3139 (__gnat_opendir): New routine.
3140 (__gnat_closedir): Idem.
3141 (__gnat_readdir): Add new parameter length (pointer to int). Update
3142 implementation to use it and add specific Win32 code for Unicode
3144 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
3145 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
3146 (convert_addresses): Do not define this dummy routine on VMS.
3148 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
3149 runtime Unicode support will be activated.
3150 (S2WS): String to Wide-String conversion. This version just copy a
3151 string in non Unicode version.
3152 (WS2S): Wide-String to String conversion. This version just copy a
3153 string in non Unicode version.
3155 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
3156 (Open): Now import __gnat_opendir from adaint.c.
3157 (Read): Change the implementation to support unicode characters. It is
3158 not possible to use strlen() on Windows as this version supports only
3159 standard ASCII characters. So the length of the directory entry is now
3160 returned from the imported __gnat_readdir routine.
3161 Update copyright notice.
3163 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
3164 (opendir): Moved to adaint.c.
3166 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
3167 (Get_Directory): Fix wrong indexing.
3168 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
3169 __gnat_getenv from env.c
3170 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
3173 * env.h, env.c: New file.
3175 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
3176 adaint.c by __gnat_getenv from env.c
3178 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
3179 adaint.c by __gnat_getenv from env.c
3181 * Make-lang.in: Add env.o in the list of C object needed by gnat1
3183 Update dependencies.
3185 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3186 Olivier Hainque <hainque@adacore.com>
3187 Eric Botcazou <ebotcazou@adacore.com>
3189 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
3191 * gigi.h (value_factor_p): Add prototype and description, now public.
3193 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
3194 promotion for field with rep clause if the associated size was proven
3196 Expand comments describing attempts to use a packable type.
3197 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
3198 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
3199 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
3200 necessary since these are not different types and pointers may
3201 actually designate any subtype in this hierarchy.
3202 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
3203 discriminants but put them into record only if not Unchecked_Union;
3204 pass flag to components_to_record showing Unchecked_Union.
3205 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
3206 components before variants; don't set TYPE_UNCHECKED_UNION_P.
3207 (components_to_record): New argument UNCHECKED_UNION.
3208 Remove special case code for Unchecked_Union and instead use main code
3212 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
3213 variable with the expression being built, only its inner field.
3215 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
3216 emit_sequence_entry_statements.
3217 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
3218 (establish_gnat_vms_condition_handler): Move before
3219 Subprogram_Body_to_gnu.
3220 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
3221 for a subprogram if it has a foreign convention or is exported.
3222 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
3223 substituted for a CONST_DECL.
3224 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
3225 Etype to assoc_to_constructor.
3226 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
3227 discriminants of Unchecked_Union.
3228 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
3229 don't need cluttering preprocessor directives.
3230 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
3231 condition handler as current in the compiled function.
3232 (body_with_handlers_p): New function. Tell whether a given sequence of
3233 statements node is attached to a package or subprogram body and involves
3234 exception handlers possibly nested within inner block statements.
3235 (emit_sequence_entry_statements): New function, to emit special
3236 statements on entry of sequences when necessary. Establish GNAT
3237 condition handler in the proper cases for VMS.
3238 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
3239 emit_sequence_entry_statements.
3241 * utils2.c (find_common_type): If both input types are BLKmode and
3242 have a constant size, use the smaller one.
3243 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
3246 * utils.c (value_factor_p): Make public, to allow uses from other gigi
3248 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
3249 (convert, case UNION_TYPE): Remove special treatment for unchecked
3253 (update_pointer_to): Update variants of pointer types to unconstrained
3254 arrays by attaching the list of fields of the main variant.
3256 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3257 Robert Dewar <dewar@adacore.com>
3259 * a-exexpr.adb, a-exexpr-gcc.adb
3260 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
3261 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
3262 Remove code unused for exception propagation for the compiler itself
3263 from a-except.adb and update to still share separate packages.
3265 * a-except.ads, a-except.adb: Ditto.
3266 Add comments that this version is now used only by the compiler and
3267 other basic tools. The full version that includes the Ada 2005 stuff
3268 is in separate files a-except-2005.ads/adb. The reason is that we do
3269 not want to cause bootstrap problems with compilers not recognizing
3271 Add exception reason code PE_Implicit_Return
3272 Add new exception reason code (Null Exception_Id)
3274 * a-except-2005.adb, a-except-2005.ads: New files.
3276 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
3278 * s-wchcon.adb: New file.
3280 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
3281 (traceback.o deps): Likewise.
3282 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
3283 Activate build of GMEM instrumentation library on VMS targets.
3284 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
3285 Use a-except-2005.ads/adb for all run-time library builds unless
3286 specified otherwise.
3287 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
3288 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
3289 Use s-parame.adb on all native platforms.
3290 Use s-parame-vxworks.adb on all vxworks platforms.
3291 Add env.c env.h in LIBGNAT_SRCS
3292 Add env.o in LIBGNAT_OBJS
3293 (GNATMAKE_OBJS): Remove ctrl_c.o object.
3294 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
3295 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
3296 supports VxWorks 6 RTPs.
3297 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
3298 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
3300 * types.h, types.ads (Terminate_Program): New exception
3301 Add comment on modifying multiple versions of a-except.adb when the
3302 table of exception reasons is modified.
3303 Add exception reason code PE_Implicit_Return
3304 Add new exception reason code (Null Exception_Id)
3306 * clean.adb (Initialize): Get the target parameters before checking
3307 if target is OpenVMS. Move the OpenVMS specific code here from package
3308 body elaboration code.
3310 2006-02-13 Thomas Quinot <quinot@adacore.com>
3311 Vincent Celier <celier@adacore.com>
3312 Robert Dewar <dewar@adacore.com>
3314 * ali-util.adb (Get_File_Checksum): Update to account for change in
3315 profile of Initialize_Scanner.
3317 * gprep.adb (Gnatprep): Update to account for change in profile of
3319 (Process_One_File): Same.
3321 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
3322 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
3323 that behaviour using the new Unit information recorded in the source
3324 files table, rather than going through all units every time.
3325 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
3326 (Get_Source_Unit): Same.
3328 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
3329 change in profile of Initialize_Scanner.
3330 (Prepare_To_Preprocess): Same.
3332 * lib.ads: Fix typo in comment (templace -> template).
3334 * prj-part.adb (Parse_Single_Project): Update to account for change in
3335 profile of Initialize_Scanner.
3337 * scn.adb (Initialize_Scanner): Account for change in profile of
3338 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
3339 Also record the association of the given Source_File_Index to the
3340 corresponding Unit_Number_Type.
3342 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
3344 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
3345 Remove Unit formal for generic scanner: this formal
3346 is only relevant to Scn (the scanner instance used to parse Ada source
3347 files), not to other instances. Update comment accordingly.
3348 (Scan): Use new function Snames.Is_Keyword_Name.
3350 * sinfo-cn.adb: Fix typo in comment.
3352 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
3355 * sinput.ads (Source_File_Record): New component Unit, used to capture
3356 the unit identifier (if any) associated to a source file.
3358 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
3359 Unit in Source_File_Record.
3361 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
3362 in profile of Initialize_Scanner.
3364 * scans.adb (Initialize_Ada_Keywords): New procedure
3366 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
3367 Ada keywords in the Namet table, without the need to call
3370 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
3371 (Is_Keyword_Name): New function
3373 * snames.ads: Add subtype Configuration_Pragma_Names
3374 Add pragma Ada_2005 (synonym for Ada_05)
3375 (Is_Keyword_Name): New function
3377 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
3379 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3381 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
3384 * a-stwima.adb (To_Set): Add extra check when N = 0.
3386 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
3388 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3390 * s-parame-mingw.adb, s-parame-linux.adb,
3391 s-parame-solaris.adb: Removed, replaced by s-parame.adb
3393 * s-parame-vxworks.ads: Fix typo.
3395 * s-parame-vxworks.adb: New file.
3397 * s-parame.adb: Version now used by all native platforms.
3398 (Default_Stack_Size): Use 2 megs for default stack size and use
3399 __gl_default_stack_size when available.
3400 (Minimum_Stack_Size): Use 12K.
3402 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
3403 (Create_Task): Refine implementation taking advantage of the XP stack
3404 size support. On XP, we now create the thread using the flag
3405 STACK_SIZE_PARAM_IS_A_RESERVATION.
3407 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
3409 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
3410 XP and 0 on older Windows versions.
3412 * interfac-vms.ads: Removed, no longer used.
3414 2006-02-13 Matthew Heaney <heaney@adacore.com>
3416 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
3417 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
3418 a-cohase.adb: All explicit raise statements now include an exception
3421 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
3422 (Update_Element_Preserving_Key): renamed op to just Update_Element.
3423 Explicit raise statements now include an exception message
3425 * a-cihase.ads, a-cohase.ads: Removed comment.
3427 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
3428 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
3429 a-szbzha.adb, a-szfzha.ads: New files.
3431 2006-02-13 Matthew Heaney <heaney@adacore.com>
3433 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
3436 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
3438 * lang.opt: Wvariadic-macros: New option.
3439 Wold-style-definition: Likewise.
3440 Wmissing-format-attribute: Likewise.
3442 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
3443 -Wold-style-definition and -Wmissing-format-attribute.
3445 2006-02-13 Robert Dewar <dewar@adacore.com>
3447 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
3449 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
3451 2006-02-13 Nicolas Roche <roche@adacore.com>
3453 * a-envvar.adb, a-envvar.ads: New files.
3455 2006-02-13 Douglas Rupp <rupp@adacore.com>
3457 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
3459 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
3461 2006-02-13 Pat Rogers <rogers@adacore.com>
3463 * a-rttiev.adb, a-rttiev.ads: New files.
3465 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
3467 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
3468 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
3470 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
3472 2006-02-13 Robert Dewar <dewar@adacore.com>
3474 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
3475 sem_case.adb: Minor code reorganization (not Present should be No)
3477 2006-02-13 Geert Bosch <bosch@adacore.com>
3478 Gary Dismukes <dismukes@adacore.com>
3480 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
3481 0, since the lower bound of the actual string may be greater than one.
3484 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
3485 layout is requested.
3487 2006-02-13 Vincent Celier <celier@adacore.com>
3489 * back_end.adb (Scan_Compiler_Arguments): Check if
3490 Search_Directory_Present is True and, if it is, add the argument in
3491 the source search directory path.
3493 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
3494 Search_Directory_Present to True.
3496 2006-02-13 Joel Brobecker <brobecke@adacore.com>
3498 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
3499 volatile, to tell the compiler to preserve this variable at any level
3501 (Gen_Versions_Ada): Temporarily work around codegen bug.
3503 2006-02-13 Vincent Celier <celier@adacore.com>
3505 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
3506 gcc to link with option -shared-libgcc.
3507 (Gnatlink): Remove duplicate switches -shared-libgcc
3509 2006-02-13 Robert Dewar <dewar@adacore.com>
3511 * gnatvsn.ads (Current_Year): New constant, used to easily update
3512 copyright on all GNAT tools.
3514 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
3517 2006-02-13 Robert Dewar <dewar@adacore.com>
3519 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
3520 after hyphen (small aesthetic change useful for a range of numbers
3522 Suppress range checks for a couple of assignments which otherwise
3523 cause validity checks with validity checking turned on.
3525 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
3526 Improvement in error message for object.
3527 (Rep_Item_Too_Late): Remove '!' in warning message.
3529 2006-02-13 Robert Dewar <dewar@adacore.com>
3530 Eric Botcazou <ebotcazou@adacore.com>
3532 * err_vars.ads: Suppress range checks for a couple of assignments
3533 which otherwise cause validity checks with validity checking turned on.
3536 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
3537 Make message unconditional if it is a warning.
3538 (Error_Msg_NEL): Always output warning messages.
3539 Suppress range checks for a couple of assignments which otherwise
3540 cause validity checks with validity checking turned on.
3542 * errout.ads (Message Insertion Characters): Document that '!' is
3543 implied by '?' in error messages.
3545 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
3546 (Gnat1drv): Use a goto to end of main subprogram instead of
3547 Exit_Program (E_Success) so that finalization can occur normally.
3549 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
3551 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
3554 2006-02-13 Vincent Celier <celier@adacore.com>
3556 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
3557 Unchecked_Conversion functions.
3558 (Modification_Time): Use direct conversion of OS_Time to Calendar time
3559 when OpenVMS returns False.
3561 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
3562 a-dirval.adb (OpenVMS): New Boolean function
3564 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3565 Thomas Quinot <quinot@adacore.com>
3567 * checks.adb (Build_Discriminant_Checks): If the expression being
3568 checks is an aggregate retrieve the values of its discriminants to
3569 generate the check, rather than creating a temporary and a reference
3571 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
3572 (Install_Null_Excluding_Check): Ditto
3573 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
3574 not for the renamed object, so that the actual itype is attached in the
3577 2006-02-13 Robert Dewar <dewar@adacore.com>
3578 Vincent Celier <celier@adacore.com>
3580 * debug.adb: Eliminate numeric switches for binder/gnatmake
3582 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
3583 switches for the compiler.
3584 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
3585 (Scan_Make_Switches): When failing with an illegal switch, output an
3586 error message with the full switch.
3587 Eliminate numeric switches for binder/gnatmake
3589 * switch.ads, switch.adb (Bad_Switch): New procedure
3591 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
3592 Remove 0-9 as debug flag character possibilities
3593 -d is now controlling the primary stack size when its value is a
3594 positive. Also add checks against invalid values, and support for kb,
3595 mb. Ditto for -D switch.
3597 2006-02-13 Robert Dewar <dewar@adacore.com>
3598 Serguei Rybin <rybin@adacore.com>
3600 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
3601 save/restore routines.
3602 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
3603 were not always properly handled previously.
3604 Since we are changing the tree format anyway, also get rid of the
3605 junk obsolete Immediate_Errors flag.
3606 (Tree_Read): Change the way of reading Tree_Version_String - now we
3607 read the version string from the tree even if its length is not the
3608 same as the length of the version string computed from Gnatvsn.
3609 (Search_Directory_Present): New Boolean flag for the compiler.
3610 Define Tree_Version_String as a dynamic string.
3611 (Default_Stack_Size): new variable, used to handle switch -d.
3614 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
3616 Add pragma Ada_2005 (synonym for Ada_05)
3617 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
3618 were not always properly handled previously.
3620 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
3621 explicit Ada_95 to Ada_2005.
3623 2006-02-13 Javier Miranda <miranda@adacore.com>
3624 Robert Dewar <dewar@adacore.com>
3625 Ed Schonberg <schonberg@adacore.com>
3627 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
3628 against errors in the source program: a private types for which the
3629 corresponding full type declaration is missing and pragma CPP_Virtual
3631 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
3632 (Is_Known_Null): New flag
3633 (Has_Pragma_Pure): New flag
3634 (No_Return): Present in all entities, set only for procedures
3635 (Is_Limited_Type): A type whose ancestor is an interface is limited if
3636 explicitly declared limited.
3637 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
3638 entities. Only used for component marked Is_Tag. If present it stores
3639 the Offset_To_Top function used to provide this value in tagged types
3640 whose ancestor has discriminants.
3642 * exp_ch2.adb: Update status of new Is_Known_Null flag
3644 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
3646 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
3647 the categorization sense if Is_Pure was set by pragma Pure_Function.
3649 2006-02-13 Quentin Ochem <ochem@adacore.com>
3650 Olivier Hainque <hainque@adacore.com>
3652 * bindusg.adb: Updated documentation for -d and -D switches.
3654 * raise.h (__gnat_set_globals): added new parameter for
3657 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
3658 (__gnat_handle_vms_condition): Adjust context before raise.
3659 (__gnat_install_handler): Restore the global vector setup for GCC
3660 versions before 3.4, as the frame based circtuitry is not available
3662 (__gnat_set_globals): added a parameter default_stack_size
3663 (__gl_default_stack_size): new variable.
3665 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3667 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
3668 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
3669 does not exist in the Ada RM.
3670 (Compatible_Int_Bounds): Determine whether two integer range bounds
3671 are of equal length and have the same start and end values.
3672 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
3673 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
3674 aggregate when it is part of an object declaration.
3675 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
3676 constrains discriminants of its parent, add explicitly the discriminant
3677 constraints of the ancestor by retrieving them from the
3678 stored_constraint of the parent.
3680 2006-02-13 Robert Dewar <dewar@adacore.com>
3682 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
3683 attribute Mechanism_Code is applied to renamed subprogram, modify
3684 prefix to point to base subprogram.
3685 Max/Min attributes now violate Restriction No_Implicit_Conditionals
3687 * sinfo.ads: Document that Mechanism_Code cannot be applied to
3688 renamed subprograms so that the front-end must replace the prefix
3691 2006-02-13 Javier Miranda <miranda@adacore.com>
3692 Gary Dismukes <dismukes@adacore.com>
3694 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
3695 availability of RE_Interface_Tag.
3696 (Build_Initialization_Call): Fix wrong access to the discriminant value.
3697 (Freeze_Record_Type): Do not generate the tables associated with
3698 timed and conditional dispatching calls through synchronized
3699 interfaces if compiling under No_Dispatching_Calls restriction.
3700 When compiling for Ada 2005, for a nonabstract
3701 type with a null extension, call Make_Controlling_Function_Wrappers
3702 and insert the wrapper function declarations and bodies (the latter
3703 being appended as freeze actions).
3704 (Predefined_Primitive_Bodies): Do not generate the bodies of the
3705 predefined primitives associated with timed and conditional
3706 dispatching calls through synchronized interfaces if we are
3707 compiling under No_Dispatching_Calls.
3708 (Build_Init_Procedure): Use RTE_Available to check if a run-time
3709 service is available before generating a call.
3710 (Make_Controlling_Function_Wrappers): New procedure.
3711 (Expand_N_Full_Type_Declaration): Create a class-wide master for
3712 access-to-limited-interfaces because they can be used to reference
3713 tasks that implement such limited interface.
3714 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
3715 procedure spec and body of the Offset_To_Top function that is generated
3716 when the parent of a type with discriminants has secondary dispatch
3718 (Init_Secondary_Tags): Handle the case in which the parent of the type
3719 containing secondary dispatch tables has discriminants to generate the
3720 correct arguments to call Set_Offset_To_Top.
3721 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
3723 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
3724 Add Wide_[Wide_]Expanded_Name.
3725 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
3726 the same functionality of Get_Prim_Op_Address but applied to predefined
3727 primitive operations because the pointers to the predefined primitives
3728 are now saved in a separate table.
3729 (Parent_Size): Modified to get access to the separate table of primitive
3730 operations or the parent type.
3731 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
3732 functionality of Set_Prim_Op_Address but applied to predefined primitive
3734 (Set_Signature): New subprogram used to store the signature of a DT.
3735 (Displace): If the Offset_To_Top value is not static then call the
3736 function generated by the expander to get such value; otherwise use
3737 the value stored in the table of interfaces.
3738 (Offset_To_Top): The type of the actual has been changed to Address to
3739 give the correct support to tagged types with discriminants. In this
3740 case this value is stored just immediately after the tag field.
3741 (Set_Offset_To_Top): Two new formals have been added to indicate if the
3742 offset_to_top value is static and hence pass this value to the run-time
3743 to store it in the table of interfaces, or else if this value is dynamic
3744 and then pass to the run-time the address of a function that is
3745 generated by the expander to provide this value for each object of the
3748 * rtsfind.ads (Default_Prin_Op_Count): Removed.
3749 (Default_Prim_Op_Count): New entity
3750 (Get_Predefined_Prim_Op_Address): New entity
3751 (Set_Predefined_Prim_Op_Address): New entity
3752 (RE_Set_Signature): New entity
3754 2006-02-13 Thomas Quinot <quinot@adacore.com>
3755 Ed Schonberg <schonberg@adacore.com>
3757 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
3758 Make_Adjust_Call done for a newly-allocated object.
3760 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
3761 in a subprogram are wrapped in a cleanup block, indicate that the
3762 subprogram contains an inner block with an exception handler.
3763 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
3764 Adjust call is for a newly-allocated object. In that case we must not
3765 assume that the finalization list chain pointers are correct (since they
3766 come from a bit-for-bit copy of the original object's pointers) so if
3767 the attach level would otherwise be zero (no change), we set it to 4
3768 instead to cause the pointers to be reset to null.
3770 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
3771 reset chain pointers to null.
3773 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3775 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
3776 string, and the context requires a loop for the assignment (e.g.
3777 because the left-hand side is packed), generate a unique name for the
3778 temporary that holds the string, to prevent spurious name clashes.
3780 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3781 Javier Miranda <miranda@adacore.com>
3782 Robert Dewar <dewar@adacore.com>
3783 Gary Dismukes <dismukes@adacore.com>
3785 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
3786 return unconstrained arrays.
3788 (Expand_Call): An indirect call through an access parameter of a
3789 protected operation is not a protected call.
3790 Add circuit to raise CE in Ada 2005 mode following call
3792 (Register_DT_Entry): Do nothing if
3793 the run-time does not give support to abstract interfaces.
3794 (Freeze_Subprogram): In case of dispatching operations, do not generate
3795 code to register the operation in the dispatch table if the source
3796 is compiled with No_Dispatching_Calls.
3797 (Register_Predefined_DT_Entry): Generate code that calls the new
3798 run-time subprogram Set_Predefined_Prim_Op_Address instead of
3799 Set_Prim_Op_Address.
3801 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
3802 on array assignments if the right-hand side is a function call that has
3803 been inlined. Check is performed on the assignment in the block.
3804 (Process_Bounds): If bounds and range are overloaded, apply preference
3805 rule for root operations to disambiguate, and diagnose true ambiguity.
3806 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
3807 a tag-indeterminate right-hand side even when Expander_Active is True.
3808 Needed to ensure that dispatching calls to T'Input are allowed and
3809 get the tag of the target class-wide object.
3811 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
3812 an inherited primitive operation that already overrides several
3813 abstract interface primitives. For transitivity, the new entity must
3814 also override all the abstract interface primitives covered by the
3815 inherited overriden primitive.
3816 Emit warning if new entity differs from homograph in same scope only in
3817 that one has an access parameter and the other one has a parameter of
3818 a general access type with the same designated type, at the same
3819 position in the signature.
3820 (Make_Inequality_Operator): Use source locations of parameters and
3821 subtype marks from corresponding equality operator when creating the
3822 tree structure for the implicit declaration of "/=". This does not
3823 change anything in behaviour except that the decoration of the
3824 components of the subtree created for "/=" allows ASIS to get the
3825 string images of the corresponding identifiers.
3826 (Analyze_Return_Statement): Remove '!' in warning message.
3827 (Check_Statement_Sequence): Likewise.
3828 (Analyze_Subprogram_Body): For an access parameter whose designated type
3829 is an incomplete type imported through a limited_with clause, use the
3830 type of the corresponding formal in the body.
3831 (Check_Returns): Implicit return in No_Return procedure now raises
3832 Program_Error with a compile time warning, instead of beging illegal.
3833 (Has_Single_Return): Function returning unconstrained type cannot be
3834 inlined if expression in unique return statement is not an identifier.
3835 (Build_Body_To_Inline): It is possible to inline a function call that
3836 returns an unconstrained type if all return statements in the function
3837 return the same local variable. Subsidiary procedure Has_Single_Return
3838 verifies that the body conforms to this restriction.
3840 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
3841 same type, and one of them is of an anonymous access type, convert
3842 the other operand to it, so that this is a valid binary operation for
3844 (Resolve_Type_Conversion): Handle subtypes of protected types and
3845 task types when accessing to the corresponding record type.
3846 (Resolve_Allocator): Add '\' in 2-line warning message.
3847 Remove '!' in warning message.
3848 (Resolve_Call): Add '\' in 2-line warning message.
3849 (Valid_Conversion): Likewise.
3850 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
3851 resulting type may be an access type with an implicit dereference.
3852 Obtain the proper component from the designated type.
3853 (Make_Call_Into_Operator): Handle properly a call to predefined equality
3854 given by an expanded name with prefix Standard, when the operands are
3855 of an anonymous access type.
3856 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
3857 Explicit_Dereference and Resolve_Selected_Component, to verify that the
3858 prefix of the expression is not of an incomplete type. Allows full
3859 diagnoses of all semantic errors.
3860 (Resolve_Actuals): If the actual is an allocator whose directly
3861 designated type is a class-wide interface we build an anonymous
3862 access type to use it as the type of the allocator. Later, when
3863 the subprogram call is expanded, if the interface has a secondary
3864 dispatch table the expander will add a type conversion to force
3865 the displacement of the pointer.
3866 (Resolve_Call): If a function that returns an unconstrained type is
3867 marked Inlined_Always and inlined, the call will be inlined and does
3868 not require the creation of a transient scope.
3869 (Check_Direct_Boolean_Op): Removed
3870 (Resolve_Comparison_Op): Remove call to above
3871 (Resolve_Equality_Op): Remove call to above
3872 (Resolve_Logical_Op): Inline above, since this is only call.
3873 (Valid_Conversion): Handle properly conversions between arrays of
3874 convertible anonymous access types.
3877 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
3878 the literal in an unchecked conversion, because GCC 4.x needs a static
3879 value for a string bound.
3881 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3882 Hristian Kirtchev <kirtchev@adacore.com>
3884 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
3885 components of the corresponding record, take into account component
3886 definitions that are access definitions.
3887 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
3888 procedure is not considered a dispatching call and will be expanded
3891 2006-02-13 Javier Miranda <miranda@adacore.com>
3893 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
3894 controlling argument of the dispatching call is an abstract interface
3895 class-wide type then we use it directly.
3896 Check No_Dispatching_Calls restriction.
3897 (Default_Prim_Op_Position): Remove the code that looks for the last
3898 entity in the list of aliased subprograms. This code was wrong in
3900 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
3901 when the source is compiled with the No_Dispatching_Calls restriction.
3902 (Init_Predefined_Interface_Primitives): No need to inherit primitives
3903 if we are compiling with restriction No_Dispatching_Calls.
3904 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
3905 subprograms if we are compiling under No_Dispatching_Calls restriction.
3906 (Make_DT): Generate a dispatch table with a single dummy entry if
3907 we are compiling with the No_Dispatching_Calls restriction. In
3908 addition, in this case we don't generate code that calls to the
3909 following run-time subprograms: Set_Type_Kind, Inherit_DT.
3910 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
3911 of this subprogram if compiling with the No_Dispatching_Calls
3913 (Expand_Type_Conversion): Instead of using the actual parameter,
3914 the argument passed as parameter to the conversion function was
3915 erroneously referenced by the expander.
3916 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
3917 Set_Predefined_Primitive_Op_Address and Set_Signature.
3918 (Expand_Dispatching_Call): Generate call to
3919 Get_Predefined_Prim_Op_Address for predefined primitives.
3920 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
3921 predefined primitives.
3922 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
3923 primitives we reserve one dummy entry to ensure that the tag does not
3924 point to some memory that is associated with some other object. In
3925 addition, remove all the old code that generated the assignments
3926 associated with the signature of the dispatch table and replace them
3927 by a call to the new subprogram Set_Signature.
3928 (Set_All_DT_Position): Change the algorithm because now we have a
3929 separate dispatch table associated with predefined primitive operations.
3930 (Expand_Interface_Conversion): In case of non-static offset_to_top
3931 add explicit dereference to get access to the object after the call
3932 to displace the pointer to the object.
3933 (Expand_Interface_Thunk): Modify the generation of the actual used
3934 in the calls to the run-time function Offset_To_Top to fulfil its
3936 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
3938 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3940 * exp_dist.adb (Copy_Specification): For access parameters, copy
3941 Null_Exclusion flag, which will have been set for stream subprograms
3944 2006-02-13 Pascal Obry <obry@adacore.com>
3946 * expect.c (__gnat_expect_portable_execvp): New implementation. The
3947 previous implementation was using the C runtime spawnve routine but
3948 the corresponding wait was using directly the Win32 API. This was
3949 causing some times a lock when waiting for an event using
3950 WaitForSingleObject in __gnat_waitpid. This new implementation uses
3951 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
3952 API fixes this problem.
3954 2006-02-13 Robert Dewar <dewar@adacore.com>
3956 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
3959 2006-02-13 Thomas Quinot <quinot@adacore.com>
3961 * exp_pakd.ads: Fix typos in comments.
3963 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
3964 array reference that is an explicit dereference, mark the converted
3965 (packed) array reference as analyzed to prevent a forthcoming
3966 reanalysis from resetting its type to the original (non-packed) array
3969 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3970 Javier Miranda <miranda@adacore.com>
3971 Eric Botcazou <ebotcazou@adacore.com>
3973 * exp_util.ads, exp_util.adb (Find_Prim_Op,
3974 Is_Predefined_Primitive_Operation): When
3975 searching for the predefined equality operator, verify that operands
3977 (Is_Predefined_Dispatching_Operation): Remove the code that looks
3978 for the last entity in the list of aliased subprograms. This code
3979 was wrong in case of renamings.
3980 (Set_Renamed_Subprogram): New procedure
3981 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
3982 Exp_Type constant computed when entering this subprogram.
3983 (Known_Null): New function
3984 (OK_To_Do_Constant_Replacement): New function
3985 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
3986 (Side_Effect_Free): An attribute reference 'Input is not free of
3987 side effect, unlike other attributes that are functions. (from code
3989 (Remove_Side_Effects): Expressions that involve packed arrays or records
3990 are copied at the point of reference, and therefore must be marked as
3991 renamings of objects.
3992 (Is_Predefined_Dispatching_Operation): Return false if the operation is
3993 not a dispatching operation.
3996 (Remove_Side_Effects): Lift enclosing type conversion nodes for
3997 elementary types in all cases.
3999 2006-02-13 Javier Miranda <miranda@adacore.com>
4001 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
4002 task types when accessing to the corresponding record type.
4003 Remove '!' in warning message.
4005 2006-02-13 Olivier Hainque <hainque@adacore.com>
4007 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
4008 to avoid useless and space inefficient overalignments on targets where
4009 Max_Alignment is larger than 16.
4011 2006-02-13 Pascal Obry <obry@adacore.com>
4013 * g-catiio.adb (Sec_Number): New type used to compute the number of
4014 seconds since 1-1-1970.
4015 (Image) [Natural]: The parameter was an Integer, as we can't deal with
4016 negative numbers (years, months...) it is better to have a Natural here.
4018 (Image) [Number]: Change parameter from Long_Integer to Number.
4019 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
4020 overflow for dates past year 2038.
4022 2006-02-13 Matthew Heaney <heaney@adacore.com>
4024 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
4027 2006-02-13 Arnaud Charlet <charlet@adacore.com>
4029 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
4031 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
4032 finalization can occur normally.
4034 2006-02-13 Vincent Celier <celier@adacore.com>
4036 * gnatcmd.adb (Rules_Switches): New table
4037 (Add_To_Rules_Switches): New procedure
4038 (GNATCmd): For command CHECK, put all options following "-rules" in the
4039 Rules_Switches table. Append these -rules switches after the -cargs
4042 2006-02-13 Robert Dewar <dewar@adacore.com>
4044 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
4045 These two cases were generating incorrect output, and if this unit
4046 was built with checks on, generated a discriminant mismatch constraint
4049 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4050 Robert Dewar <dewar@adacore.com>
4052 * lib-xref.adb (Get_Type_Reference): For a private type whose full
4053 view is an array type, indicate the component type as well, for
4054 navigation purposes.
4055 (Generate_Reference): Don't consider array ref on LHS to be a case
4056 of violating pragma Unreferenced.
4057 Do not give Ada 2005 warning except on real reference.
4059 2006-02-13 Vincent Celier <celier@adacore.com>
4061 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
4062 main source, add switch -mdebug-main=_ada_ so that the executable can
4063 be debugged by the standard VMS debugger.
4064 (Gnatmake): Set No_Main_Subprogram to True when there is no main
4065 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
4066 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
4067 of the last source, as the binding and linking phases are never
4069 Set all executable obsolete when rebuilding a library.
4071 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
4074 2006-02-13 Javier Miranda <miranda@adacore.com>
4078 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
4079 code to improve the error message reported when the program has
4080 declarations of abstract interface types and it is not compiled with
4082 (P_Access_Definition): Reorganize the code to improve the error
4083 message reported when the new Ada 2005 syntax for anonymous
4084 access types is used and the program is not compiled with the
4087 2006-02-13 Robert Dewar <dewar@adacore.com>
4089 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
4090 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
4093 2006-02-13 Javier Miranda <miranda@adacore.com>
4095 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
4096 against source containing syntax errors.
4098 2006-02-13 Vincent Celier <celier@adacore.com>
4100 * prj.adb (Reset): Initialize the first element of table Namings with
4101 the standard naming data.
4103 2006-02-13 Vincent Celier <celier@adacore.com>
4105 * prj.ads (Error_Warning): New enumeration type
4107 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
4108 unknown, use the location of the project to report the error.
4109 (When_No_Sources): New global variable
4110 (Report_No_Ada_Sources): New procedure
4111 (Check): New parameter When_No_Sources. Set value of global variable
4113 (Find_Sources): Call Report_No_Ada_Sources when appropriate
4114 (Get_Sources_From_File): Ditto
4115 (Warn_If_Not_Sources): Better warning messages indicating the unit name
4118 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
4119 Call Prj.Proc.Process with parameter When_No_Sources.
4121 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
4122 Call Recursive_Check with parameter When_No_Sources.
4123 (Recursive_Check): New parameter When_No_Sources. Call itself and
4124 Prj.Nmsc.Check with parameter When_No_Sources.
4125 (Process): New parameter When_No_Sources. Call Check with parameter
4127 (Copy_Package_Declarations): New procedure to copy renamed parameters
4128 and setting the location of the declared attributes to the location
4129 of the renamed package.
4130 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
4133 2006-02-13 Vincent Celier <celier@adacore.com>
4135 * prj-makr.adb (Make): Preserve the comments from the original project
4137 When removing nodes (attributes Source_Dirs, Source_Files,
4138 Source_List_File and package Naming), save the comments and attach the
4139 saved comments to the newly created nodes.
4140 Do not add a with clause for the naming package if one already exists.
4142 2006-02-13 Javier Miranda <miranda@adacore.com>
4143 Gary Dismukes <dismukes@adacore.com>
4144 Robert Dewar <dewar@adacore.com>
4146 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
4148 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
4149 aliased entities to look for the overriden abstract interface
4151 (Is_Interface_Subprogram): Complete documentation.
4152 (Check_Dispatching_Operation): Do not generate code to register the
4153 operation in the dispatch table if the source is compiled with
4154 restriction No_Dispatching_Calls.
4155 (Override_Dispatching_Operation): Check for illegal attempt to override
4156 No_Return procedure with procedure that is not No_Return
4157 (Check_Dispatching_Call): Suppress the check for an abstract operation
4158 when the original node of an actual is a tag-indeterminate attribute
4159 call, since the attribute, which must be 'Input, can never be abstract.
4160 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
4161 call to the Input attribute (even when rewritten).
4162 (Propagate_Tag): Augment comment to indicate the possibility of a call
4163 to an Input attribute.
4165 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
4166 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
4168 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
4169 No_Wide_Characters is no longer partition-wide
4170 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
4173 2006-02-13 Douglas Rupp <rupp@adacore.com>
4175 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
4177 2006-02-13 Javier Miranda <miranda@adacore.com>
4179 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
4180 handles default-initialized components to keep separate the management
4181 of this feature but also avoid the unrequired resolution and
4182 expansion of components that do not have partially initialized
4184 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
4185 (Check_Bounds): Likewise.
4186 (Check_Length): Likewise.
4188 2006-02-13 Javier Miranda <miranda@adacore.com>
4189 Ed Schonberg <schonberg@adacore.com>
4191 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
4192 abstract interface type call analyze_and_resolve to expand the type
4193 conversion into the corresponding displacement of the
4194 reference to the base of the object.
4195 (Eval_Attribute, case Width): For systems where IEEE extended precision
4196 is supported, the maximum exponent occupies 4 decimal digits.
4197 (Accessibility_Message): Add '\' in 2-line warning message.
4198 (Resolve_Attribute): Likewise.
4199 (case Attribute_Access): Significantly revise checks
4200 for illegal access-to-subprogram Access attributes to properly enforce
4201 the rules of 3.10.2(32/2).
4202 Diagnose use of current instance with an illegal attribute.
4204 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
4206 (Enclosing_Generic_Unit): New function to return a node's innermost
4207 enclosing generic declaration node.
4208 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
4209 (Type_Access_Level): The accessibility level of anonymous acccess types
4210 associated with discriminants is that of the current instance of the
4211 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
4212 (Compile_Time_Constraint_Error): Handle case of conditional expression.
4213 (Kill_Current_Values_For_Entity): New function
4214 (Enter_Name): Change formal type to Entity_Id
4216 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
4217 Ed Schonberg <schonberg@adacore.com>
4218 Gary Dismukes <dismukes@adacore.com>
4220 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
4221 Analyze_Compilation_Unit.
4222 Detect and warn on redundant with clauses detected in a package spec
4223 and/or body when -gnatwr is used.
4224 (Analyze_Context): Analyze config pragmas before other items
4225 (Install_Context_Items): Don't analyze config pragmas here
4226 (Install_Limited_Withed_Unit): Set limited entity of package in
4227 with_clause so that cross-reference information or warning messages on
4228 unused packages can be properly generated
4229 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
4230 has Error_Posted set. Prevent infinite loops in illegal programs.
4231 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
4232 to the point of the error test requiring the current unit to be private.
4233 This ensures that private with clauses are not exempted from the basic
4234 checking for being a descendant of the same library unit parent as a
4235 withed private descendant unit.
4236 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
4237 handle private with clauses properly, as well as to account for cases
4238 where the withed unit is a public descendant of a private ancestor
4239 (in which case the current unit must be a descendant of the private
4240 ancestor's parent). The spec comments were updated accordingly. Also,
4241 the old error message in this subprogram was replaced with error
4242 messages that mirror the errors tested and reported by
4243 Check_Private_Child_Unit.
4244 Parameter and variable names improved for readability.
4245 (Install_Limited_Context_Clauses): Remove test for a withed unit being
4246 private as the precondition for calling
4247 Check_Private_Limited_Withed_Unit since that subprogram has been
4248 revised to test public units as well as private units.
4250 2006-02-13 Thomas Quinot <quinot@adacore.com>
4251 Robert Dewar <dewar@adacore.com>
4252 Ed Schonberg <schonberg@adacore.com>
4253 Javier Miranda <miranda@adacore.com>
4255 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
4256 that Scope_Stack.First = 1.
4257 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
4258 were not always properly handled previously.
4259 (Formal_Entity): Complete rewrite, to handle properly some complex case
4260 with multiple levels of parametrization by formal packages.
4261 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
4262 to the corresponding derived type declaration for proper semantics.
4264 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
4265 (Check_Component): Enforce restriction on components of
4266 unchecked_unions: a component in a variant cannot contain tasks or
4268 (Unchecked_Union): Allow nested variants and multiple discriminants, to
4270 Add pragma Ada_2005 (synonym for Ada_05)
4271 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
4272 were not always properly handled previously.
4273 Document that pragma Propagate_Exceptions has no effect
4274 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
4275 (Set_Convention_From_Pragma): Check that if a convention is
4276 specified for a dispatching operation, then it must be
4277 consistent with the existing convention for the operation.
4278 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
4279 longer required to specify an vtable-ptr component in the record. For
4280 compatibility reasons we leave the support for the previous definition.
4281 (Analyze_Pragma, case No_Return): Allow multiple arguments
4283 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
4284 non-overrideen inherited operation with a controlling result as
4285 illegal only its implicit declaration comes from the derived type
4286 declaration of its result's type.
4287 (Check_Possible_Deferred_Completion): Relocate the object definition
4288 node of the subtype indication of a deferred constant completion rather
4289 than directly analyzing it. The analysis of the generated subtype will
4290 correctly decorate the GNAT tree.
4291 (Record_Type_Declaration): Check whether this is a declaration for a
4292 limited derived record before analyzing components.
4293 (Analyze_Component_Declaration): Diagnose record types not explicitly
4294 declared limited when a component has a limited type.
4295 (Build_Derived_Record_Type): Code reorganization to check if some of
4296 the inherited subprograms of a tagged type cover interface primitives.
4297 This check was missing in case of a full-type associated with a private
4299 (Constant_Redeclaration): Check that the subtypes of the partial and the
4300 full view of a constrained deferred constant statically match.
4301 (Mentions_T): A reference to the current type in an anonymous access
4302 component declaration must be an entity name.
4303 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
4304 class_wide type to refer to full type, not to the incomplete one.
4305 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
4306 available. Required to give support to the certified run-time.
4307 (Analyze_Component_Declaration): In case of anonymous access components
4308 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
4309 (Process_Discriminants): For an access discriminant, use the
4310 discriminant specification as the associated_node_for_itype, to
4311 simplify accessibility checks.
4313 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4314 Javier Miranda <miranda@adacore.com>
4316 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
4317 abstract interpretations on an operator, remove interpretations that
4318 yield Address or a type derived from it, if one of the operands is an
4320 (Try_Object_Operation.Try_Primitive_Operation,
4321 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
4322 location when creating the new reference to a primitive or class-wide
4323 operation as a part of rewriting a subprogram call.
4324 (Try_Primitive_Operations): If context requires a function, collect all
4325 interpretations after the first match, because there may be primitive
4326 operations of the same type with the same profile and different return
4327 types. From code reading.
4328 (Try_Primitive_Operation): Use the node kind to choose the proper
4329 operation when a function and a procedure have the same parameter
4331 (Complete_Object_Operation): If formal is an access parameter and prefix
4332 is an object, rewrite as an Access reference, to match signature of
4333 primitive operation.
4334 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
4335 by an expanded name with prefix Standard, when the operands are of an
4336 anonymous access type.
4337 (Remove_Abstract_Operations): If the operation is abstract because it is
4338 inherited by a user-defined type derived from Address, remove it as
4339 well from the set of candidate interpretations of an overloaded node.
4340 (Analyze_Membership_Op): Membership test not applicable to cpp-class
4343 2006-02-13 Bob Duff <duff@adacore.com>
4345 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
4346 redundant use clauses.
4347 In particular, if the scope of two use clauses overlaps, but one is not
4348 entirely included in the other, we should not warn. This can happen
4349 with nested packages.
4350 (Analyze_Subprogram_Renaming): Protect the compiler against previously
4351 reported errors. The bug was reported when the compiler was built
4352 with assertions enabled.
4353 (Find_Type): If the node is a 'Class reference and the prefix is a
4354 synchronized type without a corresponding record, return the type
4357 2006-02-13 Javier Miranda <miranda@adacore.com>
4359 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
4360 if this is the full-declaration associated with a private declaration
4361 that implement interfaces, then the private type declaration must be
4363 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
4364 as aliased. The use of the 'access attribute is not available for such
4365 object (for this purpose the object should be explicitly marked as
4366 aliased, but being an anonymous type this is not possible).
4368 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4369 Robert Dewar <dewar@adacore.com>
4371 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
4372 compilation unit is an elaboration scope.
4373 (Add_Task_Proc): Add '\' in 2-line warning message.
4374 (Activate_All_Desirable): Deal with case of unit with'ed by parent
4376 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4377 Javier Miranda <miranda@adacore.com>
4379 * sem_type.adb (Write_Overloads): Improve display of candidate
4381 (Add_One_Interp): Do not add to the list of interpretations aliased
4382 entities corresponding with an abstract interface type that is an
4383 immediate ancestor of a tagged type; otherwise we have a dummy
4384 conflict between this entity and the aliased entity.
4385 (Disambiguate): The predefined equality on universal_access is not
4386 usable if there is a user-defined equality with the proper signature,
4387 declared in the same declarative part as the designated type.
4388 (Find_Unique_Type): The universal_access equality operator defined under
4389 AI-230 does not cover pool specific access types.
4390 (Covers): If one of the types is a generic actual subtype, check whether
4391 it matches the partial view of the other type.
4393 2006-02-13 Thomas Quinot <quinot@adacore.com>
4395 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
4396 line. This is necessary to allow In_Extended_Main_Unit to provide
4397 correct results for itypes while writing out expanded source.
4398 (Close_File): No need to update the source_index_table here since it's
4399 now done for each line.
4401 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4402 Robert Dewar <dewar@adacore.com>
4404 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
4405 preserve the source unit where the itype is declared, and prevent a
4407 (Note_Implicit_Run_Time_Call): New procedure
4408 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
4411 * sprint.ads: Document use of $ for implicit run time routine call
4413 2006-02-13 Quentin Ochem <ochem@adacore.com>
4415 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
4418 2006-02-13 Bob Duff <duff@adacore.com>
4420 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
4421 Scan_Unsigned, so we do not scan leading blanks and sign twice.
4422 Integer'Value("- 5") and Integer'Value("-+5") now correctly
4423 raise Constraint_Error.
4425 * s-vallli.adb (Scan_Long_Long_Integer): Call
4426 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
4427 do not scan leading blanks and sign twice.
4428 Integer'Value("- 5") and Integer'Value("-+5") now correctly
4429 raise Constraint_Error.
4431 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
4432 Scan_Long_Long_Unsigned): Split out most of the processing from
4433 Scan_Long_Long_Unsigned out into
4434 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
4435 This prevents scanning leading blanks and sign twice.
4436 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
4439 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
4440 out most of the processing from Scan_Unsigned out into
4441 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
4442 This prevents scanning leading blanks and sign twice.
4444 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
4445 use with Modular'Value attribute.
4446 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
4449 2006-02-13 Robert Dewar <dewar@adacore.com>
4451 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
4453 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
4455 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
4456 (PPC VxWorks): Likewise.
4457 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
4458 (forced_callee): Make non-inlinable and non-pure.
4459 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
4461 2006-02-13 Arnaud Charlet <charlet@adacore.com>
4462 Ben Brosgol <brosgol@adacore.com>
4463 Robert Dewar <dewar@adacore.com>
4465 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
4467 Document that gnatbind -M option is for cross environments only.
4468 Added description of using gnatmem to trace gnat rtl allocs and deallocs
4469 Add note on use of $ to label implicit run time calls
4470 Add documentation for -gnatyI (check mode IN)
4471 Updated chapter on compatibility with HP Ada
4473 Ran spell and corrected errors
4474 Add documentation for gnatbind -d and rework documentation of -D
4476 Add subprogram/data elimination section.
4477 Minor editing of annex A.
4478 Add section for gnatcheck.
4479 Add documentation for restriction No_Dispatching_Calls
4480 Add documentation for pragma Ada_2005
4481 Remove mention of obsolete pragma Propagate_Exceptions
4482 Document that pragma Unreferenced can appear after DO in ACCEPT
4483 Clarify Pure_Function for library level units
4484 Mention Max/Min in connection with No_Implicit_Conditionals
4485 No_Wide_Characters restriction is no longer partition-wide
4486 Add a nice example for Universal_Literal_String attribute
4487 Document that pragma No_Return can take multiple arguments
4489 * ug_words: Added entry for gnatcheck
4491 * g-ctrl_c.ads (Install_Handler): Enhance comments
4493 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
4495 * g-trasym.ads: Add documentation on how to do off line symbolic
4496 traceback computation.
4498 * s-fatgen.adb: Add comments for Unaligned_Valid
4500 * stand.ads: Fix typo in comment
4502 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4504 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
4506 2006-02-06 Roger Sayle <roger@eyesopen.com>
4508 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
4510 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4513 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
4514 implementation that calls __main.
4516 2006-01-25 Peter O'Gorman <peter@pogma.com>
4519 * Makefile.in (GCC_LINK): Remove quotes.
4520 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
4523 (powerpc-darwin): Pass -shared-libgcc when building shared library.
4525 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4528 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
4530 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4532 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
4534 2005-12-12 Arnaud Charlet <charlet@adacore.com>
4536 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
4539 2005-12-12 Arnaud Charlet <charlet@adacore.com>
4541 * Make-lang.in: Update dependencies
4543 2005-12-12 Arnaud Charlet <charlet@adacore.com>
4545 * Make-lang.in: Add rule for ada/exp_sel.o
4547 2005-12-12 Arnaud Charlet <charlet@adacore.com>
4549 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
4551 2005-12-09 Arnaud Charlet <charlet@adacore.com>
4553 * gnatvsn.ads (Library_Version): Bump to version 4.2
4554 (ASIS_Version_Number): Bumped.
4556 2005-12-09 Doug Rupp <rupp@adacore.com>
4558 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
4559 Ada bind file prefix on VMS from b$ to b__.
4560 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
4563 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
4564 Targparm.OpenVMS_On_Target.
4565 (Object_Suffix): Initialize with target object suffix.
4566 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
4568 * butil.adb: Change some Hostparm.OpenVMS checks to
4569 Targparm.OpenVMS_On_Target.
4571 * clean.adb: Change some Hostparm.OpenVMS checks to
4572 Targparm.OpenVMS_On_Target.
4573 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
4574 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
4575 Ada bind file prefix on VMS from b$ to b__.
4577 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
4578 --GCC so that Get_Target_Parameters can find system.ads.
4579 (Gnatlink): Call Get_Target_Parameters in mainline.
4580 Initialize standard packages for Targparm.
4581 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
4582 (Process_Args): Also Check for object files with target object
4584 (Make_Binder_File_Names): Create with target object extension.
4585 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
4588 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
4589 Targparm.OpenVMS_On_Target.
4590 ({declaration},Build_Library,Check_Library): Change Ada bind file
4591 prefix on VMS from b$ to b__.
4593 * osint-b.adb: Change some Hostparm.OpenVMS checks to
4594 Targparm.OpenVMS_On_Target.
4595 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
4598 * targext.c: New file.
4600 * Makefile.in: add support for vxworks653 builds
4601 (../../vxaddr2line): gnatlink with targext.o.
4602 (TOOLS_LIBS): Move targext.o to precede libgnat.
4603 (init.o, initialize.o): Minor clean up in dependencies.
4604 (GNATLINK_OBJS): Add targparm.o, snames.o
4605 Add rules fo building targext.o and linking it explicitly with all
4607 Also add targext.o to gnatlib.
4609 * Make-lang.in: Add rules for building targext.o and linking it in
4610 with gnat1 and gnatbind.
4611 Add entry for exp_sel.o.
4613 * osint.adb Change some Hostparm.OpenVMS checks to
4614 Targparm.OpenVMS_On_Target.
4615 (Object_File_Name): Use target object suffix.
4617 * osint.ads (Object_Suffix): Remove, no longer used.
4618 (Target_Object_Suffix): Initialize with target object suffix.
4620 * rident.ads: Add special exception to license.
4622 * targparm.adb (Get_Target_Parameters): Set the value of
4623 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
4625 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
4627 * targparm.ads: Add special exception to license.
4629 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
4631 (Copy_File): Make sure from file is closed if error on to file
4632 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
4634 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
4635 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
4637 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
4638 target object suffix.
4640 2005-12-09 Jose Ruiz <ruiz@adacore.com>
4641 Quentin Ochem <ochem@adacore.com>
4642 Florian Villoing <villoing@adacore.com>
4644 * a-taster.ads, a-taster.adb: New files.
4646 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
4647 link to the version that does nothing. This way the task termination
4648 routine is not executed twice for the environment task when finishing
4649 because of an unhandled exception.
4651 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
4652 handler because of an unhandled exception.
4654 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
4655 System.Tasking.Utilities instead of that in System.Tasking.Stages.
4657 * s-finimp.adb (initialization code): Modify the soft link for the
4658 finalization of the global list instead of Adafinal.
4660 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
4661 non-tasking version of the soft link for task termination. We do
4662 nothing since if we are using the non-tasking version it
4663 means that the task termination functionality is not used.
4664 (Null_Finalize_Global_List): Add this null version for the procedure
4665 in charge of finalizing the global list for controlled objects.
4666 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
4667 instead for handling run-time termination in a more flexible way.
4668 (Adafinal_NT): This new procedure will take care of finalizing the
4669 global list for controlled objects if needed, but no tasking
4672 * s-tarest.adb (Task_Lock): Do not try to lock again the
4673 Global_Task_Lock if we already own it. Otherwise, we get blocked in
4674 some run-time operations.
4675 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
4676 until all nested locks have been released.
4677 (Task_Wrapper): Call the fall-back task termination handler. It
4678 applies to all tasks but the environment task.
4679 (Finalize_Global_Tasks): Add the call for the task termination
4680 procedure for the environment task.
4681 (Task_Wrapper): suppress warnings around declaration of
4682 Secondary_Stack_Address.
4684 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
4685 moved to the Common_ATCB record.
4686 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
4688 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
4691 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
4692 Fall_Back_Handler, and Specific_Handler.
4694 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
4695 defined in Ada.Task_Termination, to avoid circular dependencies.
4696 (Termination_Handler): Redefine this type here, alredy defined in
4697 Ada.Task_Termination, for avoiding circular dependencies.
4698 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
4699 for storing task termination handlers. In addition,
4700 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
4701 Common_ATCB because it is used by both the regular and the restricted
4703 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
4704 Common_ATCB because it is used by both the regular and the restricted
4706 (Common_ATCB): Added a dynamic task analyzer field.
4708 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
4709 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
4710 (Task_Wrapper): Call the task termination handler. It applies to all
4711 tasks but the environment task.
4712 (Finalize_Global_Tasks): Call the task termination procedure for the
4713 environment task. The call to Finalize_Global_List is now performed
4714 using the soft links mechanism.
4715 (Task_Wrapper): added dynamic stack analysis.
4717 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
4718 potentially blocking operations has been moved from
4719 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
4720 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
4721 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
4722 this run-time check.
4724 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
4725 of task termination procedure.
4726 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
4727 link for the task termination procedure.
4729 * bindusg.adb: (Bindusg): Added documentation for -u option.
4731 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
4732 (Get_Main_C): Add handling of dynamic stack analysis.
4733 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
4735 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
4736 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
4737 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
4739 * opt.ads: Added flags used by dynamic stack measurement.
4740 (Max_Line_Length): Remove (not used anymore)
4742 * s-io.ads, s-io.adb (Standard_Error): new subprogram
4743 (Standart_Output): new subprogram
4744 (Set_Output): new subprogram
4745 (Put): now uses the value of Current_Out to know if the output has to be
4746 send to stderr or stdout.
4748 * s-stausa.ads: Complete implementation.
4750 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
4752 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
4753 list of Ada 05 files.
4754 (GNAT Library Units): Add AltiVec files.
4756 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
4757 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
4758 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
4760 2005-12-09 Nicolas Setton <setton@adacore.com>
4762 * adaint.c (__gnat_locate_regular_file): Return immediately if
4765 2005-12-09 Javier Miranda <miranda@adacore.com>
4766 Hristian Kirtchev <kirtchev@adacore.com>
4768 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
4769 to the specification because the frontend generates code that uses this
4771 (Set_Interface_Table): Add missing assertion.
4772 Update documentation describing the run-time structure.
4773 (Displace): New subprogram that displaces the pointer to the object
4774 to reference one of its secondary dispatch tables.
4775 (IW_Membership): Modified to use the new table of interfaces.
4776 (Inherit_TSD): Modified to use the new table of interfaces.
4777 (Register_Interface_Tag): Use the additional formal to fill the
4778 contents of the new table of interfaces.
4779 (Set_Interface_Table): New subprogram that stores in the TSD the
4780 pointer to the table of interfaces.
4781 (Set_Offset_To_Top): Use the additional formal to save copy of
4782 the offset value in the table of interfaces.
4783 Update structure of GNAT Primary and Secondary dispatch table diagram.
4784 Add comment section on GNAT dispatch table prologue.
4785 (Offset_To_Signature): Update the constant value of the Signature field.
4786 (Dispatch_Table): Update comment on hidden fields in the prologue.
4787 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
4788 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
4789 the type of formal parameter T to Tag, introduce additional assertions.
4790 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
4792 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
4794 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
4795 in all the calls to Expand_Interface_Thunk. Instead of referencing the
4796 record component containing the tag of the secondary dispatch table we
4797 have to use the Offset_To_Top run-time function to get this information;
4798 otherwise if the pointer to the base of the object has been displace
4799 we get a wrong value if we use the 'position attribute.
4801 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
4802 all the calls to Expand_Interface_Thunk.
4803 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
4804 interfaces; hence the call to Set_Interface_Table was clearly wrong.
4805 (Collect_All_Interfaces): Modify the internal subprogram Collect to
4806 ensure that the interfaces implemented by the ancestors are placed
4807 at the header of the generated list.
4808 (Expand_Interface_Conversion): Handle the case in which the displacement
4809 associated with the interface conversion is not statically known. In
4810 this case we generate a call to the new run-time subprogram Displace.
4811 (Make_DT): Generate and fill the new table of interfaces.
4812 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
4813 Get_Tagged_Kind and Set_Tagged_Kind.
4814 (Tagged_Kind): New function that determines the tagged kind of a type
4815 with respect to limitedness and concurrency and returns a reference to
4817 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
4818 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
4819 primary dispatch table for a type.
4820 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
4821 secondary dispatch table respectively of a tagged type.
4823 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
4824 (Expand_Interface_Conversion): New subprogram to indicate if the
4825 displacement of the type conversion is statically known.
4826 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
4828 * rtsfind.ads (RE_Offset_To_Top): New entity
4829 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
4830 accessible to users.
4831 (Re_Displace): New entity
4832 (RE_Interface_Data): New entity
4833 (RE_Set_Interface_Data): New_Entity
4834 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
4835 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
4836 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
4837 RE_TK_Tagged, RE_TK_Task.
4839 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
4840 Init_Secondary_Tags_Internal to allow its use with interface types and
4841 also to generate the code for the new additional actual required
4842 by Set_Offset_To_Top.
4843 (Build_Init_Statements): In case of components associated with abstract
4844 interface types there is no need to generate a call to its IP.
4845 (Freeze_Record_Type): Generate Select Specific Data tables only for
4847 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
4848 the bodies and specifications of the predefined primitive operations
4849 dealing with dispatching selects and abort, 'Callable, 'Terminated only
4850 for concurrent types.
4852 * exp_sel.ads, exp_sel.adb: New files.
4854 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
4855 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
4856 properly protected objects and attach handler in the case of the
4858 Move embeded package Select_Expansion_Utilities into a separate external
4860 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
4861 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
4862 (Build_K, Build_S_Assignment): New subprograms, part of the select
4863 expansion utilities.
4864 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
4865 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
4866 where the trigger is a dispatching procedure of a limited tagged type.
4868 2005-12-09 Olivier Hainque <hainque@adacore.com>
4870 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
4871 pointer initialization values. Make a SAVE_EXPR instead. Add comments
4872 about the use and expansion of SAVE_EXPRs in the various possible
4873 renaming handling cases.
4874 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
4875 abusing DECL_FCONTEXT.
4877 2005-12-09 Matthew Heaney <heaney@adacore.com>
4879 * a-convec.adb (Merge): Added assertions to check whether vector params
4882 * a-coinve.adb (Merge): Added assertions to check whether vector params
4885 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
4887 (Cursor'Read): raises PE
4889 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
4890 to its default value.
4892 * a-cihama.adb: Manually check whether cursor's key and elem are
4895 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
4896 (Merge): Assert that target and source lists are in order
4897 (Swap): Declare non-const temporaries, to pass to Splice
4899 * a-cdlili.ads: (Splice): Changed param name and param mode
4901 * a-cdlili.adb: (Splice): Changed param name and param mode
4902 (Merge): Assert that target and source lists are in order
4903 (Swap): Declare non-const temporaries, to pass to Splice
4905 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
4906 (Write): declare Stream param as not null
4908 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
4909 an exception message.
4911 2005-12-09 Thomas Quinot <quinot@adacore.com>
4912 Robert Dewar <dewar@adacore.com>
4914 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
4915 which is the absolute maximum length we can support.
4917 * frontend.adb: For the processing of configuration pragma files,
4918 remove references to Opt.Max_Line_Length, which is not checked anymore.
4920 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
4923 * scn.adb, scng.adb:
4924 Always check line length against the absolute supported maximum,
4925 Hostparm.Max_Line_Length.
4927 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
4928 value for the maximum line length is Max_Line_Length (not
4929 Column_Number'Last).
4930 Minor error msg update
4931 (Set_Style_Check_Options): New interface returning error msg
4932 Minor code reorganization (processing for 'M' was out of alpha order)
4934 * switch-c.adb: New interface for Set_Style_Check_Options
4936 * stylesw.ads (Set_Style_Check_Options): New interface returning error
4939 2005-12-09 Javier Miranda <miranda@adacore.com>
4941 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
4942 with IP subprogram were only supported if there were limited types.
4944 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
4945 records with IP subprogram were only supported if there were limited
4948 2005-12-09 Olivier Hainque <hainque@adacore.com>
4949 Eric Botcazou <ebotcazou@adacore.com>
4951 * trans.c (tree_transform, emit_check): Adjust calls to
4952 build_call_raise, passing the now expected GNAT_NODE argument.
4954 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
4955 source line information than what the current global locus indicates
4958 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
4959 field has overflowed.
4960 (build_call_raise): Add a GNAT_NODE argument to convey better source
4961 line information than what the current global locus indicates when
4963 (build_component_ref): Adjust call to build_call_raise.
4965 2005-12-09 Pascal Obry <obry@adacore.com>
4967 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
4968 the iterator is quitting iteration on parent directory.
4970 2005-12-09 Javier Miranda <miranda@adacore.com>
4972 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
4973 and the assignment to a class-wide object, before the assignment we
4974 generate a run-time check to ensure that the tag of the Target is
4975 covered by the tag of the source.
4977 2005-12-09 Robert Dewar <dewar@adacore.com>
4979 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
4980 parameter in call to Image_Wide_Character.
4982 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
4983 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
4984 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
4985 annoying FFFE/FFFF inconsistency.
4987 2005-12-09 Robert Dewar <dewar@adacore.com>
4988 Javier Miranda <miranda@adacore.com>
4989 Ed Schonberg <schonberg@adacore.com>
4991 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
4993 (Find_Interface): New subprogram that given a tagged type and one of its
4994 component associated with the secondary table of an abstract interface
4995 type, return the entity associated with such abstract interface type.
4996 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
4997 base type to create anonymous subtype, because entity may be a locally
4998 declared subtype or generic actual.
4999 (Find_Interface): New subprogram that given a tagged type and one of its
5000 component associated with the secondary table of an abstract interface
5001 type, return the entity associated with such abstract interface type.
5003 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
5004 conversion cannot be handled at compile time. In this case we pass this
5005 information to the expander to generate the appropriate code.
5007 2005-12-09 Robert Dewar <dewar@adacore.com>
5008 Ed Schonberg <schonberg@adacore.com>
5009 Gary Dismukes <dismukes@adacore.com>
5010 Javier Miranda <miranda@adacore.com>
5011 Hristian Kirtchev <kirtchev@adacore.com>
5013 * einfo.adb (Itype_Printed): New flag
5014 (Is_Limited_Type): Derived types do not inherit limitedness from
5015 interface progenitors.
5016 (Is_Return_By_Reference_Type): Predicate does not apply to limited
5019 * einfo.ads (Itype_Printed): New flag
5020 Move Is_Wrapper_Package to proper section
5021 Add missing Inline for Is_Volatile
5023 * output.ads, output.adb (Write_Erase_Char): New procedure
5024 (Save/Restore_Output_Buffer): New procedures
5025 (Save/Restore_Output_Buffer): New procedures
5027 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
5028 Add missing support for anonymous access type
5029 (Write_Id): Insert calls to Write_Itype
5030 (Write_Itype): New procedure to output itypes
5032 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
5033 use of "limited" in declaration.
5035 * sinfo.ads, sinfo.adb:
5036 Formal derived types can carry an explicit "limited" indication.
5038 * sem_ch3.adb: Add with and use of Targparm.
5039 (Create_Component): If Frontend_Layout_On_Target is True and the
5040 copied component does not have a known static Esize, then reset
5041 the size and positional fields of the new component.
5042 (Analyze_Component_Declaration): A limited component is
5043 legal within a protected type that implements an interface.
5044 (Collect_Interfaces): Do not add to the list the interfaces that
5045 are implemented by the ancestors.
5046 (Derived_Type_Declaration): If the parent of the full-view is an
5047 interface perform a transformation of the tree to ensure that it has
5048 the same parent than the partial-view. This simplifies the job of the
5049 expander in order to generate the correct object layout, and it is
5050 needed because the list of interfaces of the full-view can be given in
5052 (Process_Full_View): The parent of the full-view does not need to be
5053 a descendant of the parent of the partial view if both parents are
5055 (Analyze_Private_Extension_Declaration): If declaration has an explicit
5056 "limited" the parent must be a limited type.
5057 (Build_Derived_Record_Type): A derived type that is explicitly limited
5058 must have limited ancestor and progenitors.
5059 (Build_Derived_Type): Ditto.
5060 (Process_Full_View): Verify that explicit uses of "limited" in partial
5061 and full declarations are consistent.
5062 (Find_Ancestor_Interface): Remove function.
5063 (Collect_Implemented_Interfaces): New procedure used to gather all
5064 implemented interfaces by a type.
5065 (Contain_Interface): New function used to check whether an interface is
5067 (Find_Hidden_Interface): New function used to determine whether two
5068 lists of interfaces constitute a set equality. If not, the first
5069 differing interface is returned.
5070 (Process_Full_View): Improve the check for the "no hidden interface"
5071 rule as defined by AI-396.
5073 2005-12-09 Robert Dewar <dewar@adacore.com>
5075 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
5076 types, not on record subtypes.
5077 (Freeze_Entity): Code cleanup. Add barrier to the loop
5078 that generates the references for primitive operations. This allows to
5079 remove an unnecessary exception handler.
5080 Code reformatting and comment clean ups.
5082 2005-12-09 Vincent Celier <celier@adacore.com>
5084 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
5085 If GNAT CHECK is called with a project file, but with no
5086 source on the command line, call gnatcheck with all the compilable
5087 sources of the project.
5088 Take into account the new command Check, for gnatcheck. Treat as for
5089 other ASIS tools: take into account project, specific package Check and
5091 For ASIS tools, add the switches in package Compiler for
5092 the invocation of the compiler.
5094 * prj-attr.adb: Add package Check and its attributes
5096 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
5098 * vms_conv.adb (Initialize): Change Params of command Check to
5100 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
5101 Add data for new command Check
5103 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
5105 Add qualifiers for Check command options
5106 (Command_Type): New command Check
5108 2005-12-09 Thomas Quinot <quinot@adacore.com>
5110 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
5111 command line switch overruns the output buffer.
5113 2005-12-09 Robert Dewar <dewar@adacore.com>
5115 * sem_prag.adb: Processing for new pragma Complete_Representation
5116 (Analyze_Pragma, case Debug): Implement two argument form.
5118 * par-prag.adb: Entry for new pragma Complete_Representation
5119 (Prag, case Debug): Recognize two argument form of pragma Debug
5120 New interface for Set_Style_Check_Options.
5122 * sem_ch13.adb: Implement new pragma Complete_Representation.
5124 * snames.adb, snames.ads, snames.h: Entry for new pragma
5125 Complete_Representation.
5127 2005-12-09 Gary Dismukes <dismukes@adacore.com>
5129 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
5130 available user-specified stream attributes on limited parameters to
5131 also test the type directly rather than only its underlying type (for
5132 Ada 95) and, in the case of Ada 2005, to check that the user-specified
5133 attributes are visible at the point of the subprogram declaration.
5134 For Ada 2005, the error message is modified to indicate that the
5135 type's stream attributes must be visible (again, only for -gnat05).
5137 2005-12-09 Ed Schonberg <schonberg@adacore.com>
5139 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
5140 anonymous access types.
5142 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
5143 matching of anonymous access types and anonymous access to subprogram
5144 types. 'R'M 4.9.1 (2/2).
5146 2005-12-09 Ed Schonberg <schonberg@adacore.com>
5148 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
5149 rule prematurely when operands are universal, remaining ambiguities
5150 will be removed during resolution.
5153 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
5154 that are Ada 2005 functions.
5155 (Has_Abstract_Interpretation): Subsidiary to
5156 Remove_Conversions, to remove ambiguities caused by abstract operations
5157 on numeric types when operands are universal.
5159 2005-12-09 Robert Dewar <dewar@adacore.com>
5161 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
5162 for case where spec is categorized.
5164 2005-12-09 Javier Miranda <miranda@adacore.com>
5166 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
5167 types use the corresponding record type. This was not needed before
5168 the implementation of Ada 2005 synchronized types because
5169 concurrent types were never tagged types in Ada 95.
5171 2005-12-09 Ed Schonberg <schonberg@adacore.com>
5173 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
5174 first subtype of the type of the expression to verify that it is a
5177 2005-12-09 Robert Dewar <dewar@adacore.com>
5179 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
5182 2005-12-09 Quentin Ochem <ochem@adacore.com>
5183 Robert Dewar <dewar@adacore.com>
5184 Ed Falis <falis@adacore.com>
5185 Florian Villoing <villoing@adacore.com>
5186 Thomas Quinot <quinot@adacore.com>
5187 Arnaud Charlet <charlet@adacore.com>
5189 * gnat_ugn.texi: Created section "Stack Related Tools"
5190 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
5191 "Stack Related Tools"
5192 Added subsection "Static Stack Usage Analysis"
5193 Added subsection "Dynamic Stack Usage Analysis"
5194 Include documentation of itypes in sprint listing (-gnatG)
5195 Documented gnatbind -D switch (default sec stack size for fixed sec
5197 Added Interrupt_State and Persistent_BSS to list of configuration
5199 Add missing doc for maximum value of nnn in -gnatyMnnn
5201 * gnat_rm.texi: Document the AltiVec binding.
5202 Add documentation for pragma Complete_Representation
5203 Shortened an overly long line (> 79 chars)
5204 Clarify documentation of unchecked conversion in implementation
5206 Document two argument form of pragma Debug
5208 * types.ads (Column_Number): Update documentation.
5210 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
5211 library level Finalize_Storage_Only objects (these are not attached to
5212 any finalization list).
5214 * system-mingw.ads: (Underlying_Priorities): Update comment.
5216 2005-12-09 Robert Dewar <dewar@adacore.com>
5218 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
5219 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
5220 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
5221 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
5222 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
5223 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
5224 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
5225 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
5228 2005-12-09 Robert Dewar <dewar@adacore.com>
5230 * s-vaflop-vms-alpha.adb: (Ne_F): New function
5231 (Ne_G): New function
5233 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
5235 (Rewrite_Comparison): Handle case where operation is not a comparison
5236 and ignore, and also handle type conversion case.
5238 2005-12-09 Thomas Quinot <quinot@adacore.com>
5240 * exp_aggr.ads: Fix typo in comment.
5241 ???-mark Convert_Aggr_In_Assignment as needing documentation.
5243 2005-12-09 Gary Dismukes <dismukes@adacore.com>
5245 * layout.adb: Replace various uses of byte by storage unit throughout.
5246 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
5247 static size, convert to storage units before returning, to conform to
5250 2005-12-09 Matthew Gingell <gingell@adacore.com>
5252 * g-exctra.ads: Fix typo in comment.
5254 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5256 * utils.c: Minor reformatting.
5258 2005-12-09 Robert Dewar <dewar@adacore.com>
5261 Further comment fixes to make the status of the default file clear
5263 * s-bitops.adb: Clarify comment for Bits_Array
5265 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
5267 * Make-lang.in (ada.install-normal): Remove.
5269 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
5271 * Make-lang.in: Remove all dependencies on s-gtype.
5273 2005-12-05 Richard Guenther <rguenther@suse.de>
5275 * utils.c (convert): Use fold_convert where appropriate.
5277 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
5279 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
5282 2005-12-02 Richard Guenther <rguenther@suse.de>
5284 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
5286 2005-12-01 Roger Sayle <roger@eyesopen.com>
5288 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
5291 2005-11-23 Laurent GUERBY <laurent@guerby.net>
5293 * mlib-prj.adb (Build_Library): Initialize Delete.
5295 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
5297 * socket.c: Add extern int h_errno for rtems since networking header
5298 files are not available at this point in a tool bootstrap. Newlib
5299 only has basic C library header files.
5301 2005-11-19 Richard Guenther <rguenther@suse.de>
5302 Roger Sayle <roger@eyesopen.com>
5305 * misc.c (internal_error_function): Don't use vsprintf to format
5306 the error message text, instead use pp_format_text and the new
5307 pretty printer APIs. This allows handling of %qs, %w, etc.
5309 2005-11-18 Laurent GUERBY <laurent@guerby.net>
5312 * Makefile.in: Use s-auxdec-empty for RTEMS.
5314 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5317 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
5318 a temporary if taking the address of something that is neither
5319 reference, declaration, or constant, since the gimplifier
5320 can't handle that case.
5322 2005-11-17 Laurent GUERBY <laurent@guerby.net>
5325 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
5327 2005-11-16 Richard Guenther <rguenther@suse.de>
5329 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
5331 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
5334 * raise-gcc.c: Add missing stdarg.h include.
5336 2005-11-16 Richard Guenther <rguenther@suse.de>
5338 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
5339 (ada/misc.o): Likewise.
5341 2005-11-14 Thomas Quinot <quinot@adacore.com>
5343 * g-soccon.ads: Minor reformatting. Update comments.
5345 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
5346 gain visibility on the declaration of struct timeval.
5348 * g-soccon-freebsd.ads,
5349 g-soccon-darwin.ads,
5354 g-soccon-solaris.ads,
5357 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
5359 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
5360 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
5361 g-soccon-linux-x86.ads: New files.
5363 * g-socthi-mingw.adb:
5364 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
5366 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
5367 (time_t, suseconds_t): New types constructed to match the tv_sec
5368 and tv_usec fields of C struct timeval.
5369 (Timeval): Construct structure in terms of the new types.
5370 (Host_Errno): New function (imported from socket.c), returns last hosts
5373 * g-socthi-vxworks.adb: Add error handling circuitry.
5375 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
5376 components of struct timeval.
5377 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
5378 (Check_Selector): In error conditions, clear internal socket sets to
5379 avoid a memory leak.
5380 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
5381 Send_Timeout, Receive_Timeout.
5383 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
5384 the tv_sec and tv_usec fields of C struct timeval.
5385 (Timeval): Construct structure in terms of the new types.
5386 (Host_Errno): New function (imported from socket.c), returns last hosts
5389 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
5390 hosts database last error code.
5392 * gen-soccon.c: Complete value expansion should not be performed on
5393 TARGET, as it has the form of a math expression, and some components
5394 may be platform-defined macros.
5395 For VxWorks, generate the OK and ERROR values.
5396 New constants giving the sizes of the components of C struct timeval.
5398 2005-11-14 Robert Dewar <dewar@adacore.com>
5399 Ed Schonberg <schonberg@adacore.com>
5403 * types.ads: Include All_Checks in Suppress_Array
5405 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
5406 not(a=b), since we no longer do this rewriting, and hence it is not
5408 (Elaboration_Checks_Suppressed): Add special casing to
5409 deal with different cases of static and dynamic elaboration checks (all
5410 checks does not count in the first case, but does in the second).
5411 (Expr_Known_Valid): Do not assume that the result of any arbitrary
5412 function call is valid, since this is not the case.
5413 (Ensure_Valid): Do not apply validity check to a real literal
5414 in a universal or fixed context
5416 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
5417 elementary types using the operator in standard. It is cleaner not to
5418 modify the programmers intent, especially in the case of floating-point.
5419 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
5420 it did not matter because we always rewrote a/=b to not(a=b).
5421 (Expand_Allocator_Expression): For an allocator expression whose nominal
5422 subtype is an unconstrained packed type, convert the expression to its
5423 actual constrained subtype.
5424 Implement warning for <= or >= where < or > not possible
5425 Fix to Vax_Float tests (too early in many routines, causing premature
5426 Vax_Float expansions.
5428 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
5429 to be used with packages and generic packages as well as with
5431 (Suppress): Set All_Checks, but not Elaboration_Check, for case
5432 of pragma Suppress (All_Checks)
5433 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
5434 a string literal for precise control over warnings.
5435 Avoid raise of pragma in case of unrecognized pragma and just return
5438 * sem_prag.ads: Minor reformatting
5440 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
5441 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
5442 Switch. Do not handle any exception.
5443 Include -gnatwx as part of -gnatg (warn on redundant parens)
5444 Allow optional = after -gnatm
5445 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
5446 longer sets Elaboration_Checks.
5447 Code to set warning mode moved to Sem_Warn
5448 so that it can be shared by pragma processing.
5450 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
5453 * s-taprop-solaris.adb:
5454 Change some <= to =, to avoid new warning
5456 * a-exexda.adb, prj-proc.adb:
5457 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
5458 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
5460 2005-11-14 Robert Dewar <dewar@adacore.com>
5462 * exp_vfpt.adb: Handle /= case
5463 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
5464 so that we do not get duplicate scaling for fixed point conversions.
5466 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
5468 2005-11-14 Matthew Gingell <gingell@adacore.com>
5470 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
5471 Increase default priority on Lynx from 15 to 17, and meet the Ada
5472 requirement that Default_Priority be ((Priority'First +
5473 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
5475 2005-11-14 Vincent Celier <celier@adacore.com>
5477 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5478 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5479 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
5480 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
5481 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
5482 mlib-tgt-lynxos.adb (DLL_Prefix): New function
5484 2005-11-14 Doug Rupp <rupp@adacore.com>
5486 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
5489 2005-11-14 Arnaud Charlet <charlet@adacore.com>
5491 * s-traces-default.adb, s-trafor-default.ads,
5492 s-tratas-default.adb: Fix compilation errors.
5494 2005-11-14 Jose Ruiz <ruiz@adacore.com>
5496 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
5497 raising the exception so the memory used is freed.
5499 2005-11-14 Arnaud Charlet <charlet@adacore.com>
5501 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
5502 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
5503 (convert_address): Update comments and list of platforms using this.
5505 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
5508 2005-11-14 Pascal Obry <obry@adacore.com>
5509 Vincent Celier <celier@adacore.com>
5511 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
5514 * memroot.adb: Remove redundant with/use clause on
5515 System.Storage_Elements.
5517 2005-11-14 Arnaud Charlet <charlet@adacore.com>
5519 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
5520 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
5521 related code to a-exexpr.adb
5522 (Save_Occurrence_And_Private): Move GCC EH related code to
5524 (Raise_Current_Excep): Add new variable Id with pragma
5525 volatile, to ensure that the variable lives on stack.
5527 * a-exexpr-gcc.adb, raise-gcc.c: New file.
5529 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
5531 Move GCC EH related code to a-exexpr-gcc.adb
5533 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
5535 Split the Linux version of g-soccon into separate variants for 32 and 64
5537 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
5538 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
5539 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
5540 of host variable $(RANLIB_FLAGS).
5541 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
5542 Code clean up: remove unused/obsolete targets.
5543 (EH_MECHANISM): New variable introduced to differenciate between the
5544 two EH mechanisms statically.
5545 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
5546 (LIBGNAT_OBJS): Add raise-gcc.o
5547 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
5548 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
5549 supports VxWorks 6 RTPs.
5550 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
5551 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
5553 * raise.c: Move all GCC EH-related routines to raise-gcc.c
5555 2005-11-14 Jose Ruiz <ruiz@adacore.com>
5557 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
5558 deferral level, when abort is not allowed, to a later stage (the
5560 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
5561 it will not get changed by the generated code. It was previously done
5564 2005-11-14 Thomas Quinot <quinot@adacore.com>
5565 Olivier Hainque <hainque@adacore.com>
5566 Eric Botcazou <ebotcazou@adacore.com>
5569 Factor common code to build a storage type for an unconstrained object
5570 from a fat or thin pointer type and a constrained object type.
5571 (annotate_value): Handle BIT_AND_EXPR.
5572 (annotate_rep): Don't restrict the back annotation of inherited
5573 components to the type_annotate_only case.
5574 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
5575 we are not defining the type.
5576 <E_Record_Type>: Likewise.
5577 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
5578 to get advantage of the new maybe_stabilize_reference interface, to
5579 ensure that what we reference is indeed stabilized instead of relying
5580 on assumptions on what the stabilizer does.
5581 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
5582 type imported through a limited_with clause, use its non-limited view.
5583 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
5585 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
5586 of #if sections + explicit comparisons of convention identifiers.
5587 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
5588 before early-returning for certain types when code generation is
5590 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
5591 nullification of gnu_expr we do for objects with address clause and
5592 that we are not defining.
5593 (elaborate_expression_1): Do not create constants when creating
5594 variables needed by the debug info: the dwarf2 writer considers that
5595 CONST_DECLs is used only to represent enumeration constants, and emits
5597 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
5598 object with an address clause into an indirect reference, drop the
5599 initializing expression.
5601 (STACK_CHECK_BUILTIN): Delete.
5602 (STACK_CHECK_PROBE_INTERVAL): Likewise.
5603 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
5604 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
5605 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
5606 corresponding to the renamed object as ignored for debugging purposes.
5608 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
5609 related): For a prefix that is a dereference of a fat or thin pointer,
5610 if there is an actual subtype provided by the front-end, use that
5611 subtype to build an actual type with bounds template.
5612 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
5613 is provided by the front-end, use that subtype to compute the size of
5614 the deallocated object.
5615 (gnat_to_gnu): When adding a statement into an elaboration procedure,
5616 check for a potential violation of a No_Elaboration_Code restriction.
5617 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
5618 with extra arguments to control whether to recurse through non-values
5619 and to let the caller know if the stabilization has succeeded.
5620 (gnat_stabilize_reference): Now a simple wrapper around
5621 maybe_stabilize, for common uses without restriction on lvalues and
5622 without need to check for the success indication.
5623 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
5624 pass false instead of 0 as the FORCE argument which is a bool.
5625 (Identifier_to_gnu): Remove checks ensuring that an renamed object
5626 attached to a renaming pointer has been properly stabilized, as no such
5627 object is attached otherwise.
5628 (call_to_gnu): Invoke create_var_decl to create the temporary when the
5629 function uses the "target pointer" return mechanism.
5630 Reinstate conversion of the actual to the type of the formal
5631 parameter before any other specific treatment based on the passing
5632 mechanism. This turns out to be necessary in order for PLACEHOLDER
5633 substitution to work properly when the latter type is unconstrained.
5635 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
5637 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
5638 with extra arguments to control whether to recurse through non-values
5639 and to let the caller know if the stabilization has succeeded.
5641 * utils2.c (gnat_build_constructor): Only sort the fields for possible
5642 static output of record constructor if all the components are constant.
5643 (gnat_build_constructor): For a record type, sort the list of field
5644 initializers in increasing bit position order.
5645 Factor common code to build a storage type for an unconstrained object
5646 from a fat or thin pointer type and a constrained object type.
5647 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
5648 types variants, and process special cases of VIEW_CONVERT expressions
5649 as their NOP_EXPR counterpart to ensure we get to the
5650 CORRESPONDING_VARs associated with CONST_DECls.
5651 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
5652 on the right-hand side.
5654 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
5656 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
5657 are converting back to its original type.
5658 (convert) <JM input>: Fallthrough regular conversion code instead of
5659 extracting the object if converting to a type variant.
5660 (create_var_decl): When a variable has an initializer requiring code
5661 generation and we are at the top level, check for a potential violation
5662 of a No_Elaboration_Code restriction.
5663 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
5664 SIZE and SIZE_UNIT which we need for later back-annotations.
5665 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
5666 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
5667 is an unchecked union.
5668 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
5669 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
5670 main variant, just replace the VIEW_CONVERT_EXPR.
5671 <UNION_TYPE>: Revert 2005-03-02 change.
5673 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
5675 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
5677 2005-11-14 Matthew Heaney <heaney@adacore.com>
5679 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
5680 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
5681 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
5682 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
5683 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
5684 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
5685 Compiles against the spec for ordered maps described in sections
5686 A.18.6 of the most recent (August 2005) AI-302 draft.
5688 2005-11-14 Olivier Hainque <hainque@adacore.com>
5690 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
5691 to ensure bias adjustments take place when need be and to prevent
5692 occurrences of intermediate overflows.
5694 2005-11-14 Matthew Gingell <gingell@adacore.com>
5695 Olivier Hainque <hainque@adacore.com>
5697 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
5700 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
5701 tracebacks on ia64 HP-UX and provide explanatory comment.
5702 Enable backtraces on ia64 GNU/Linux.
5703 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
5704 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
5706 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
5707 Javier Miranda <miranda@adacore.com>
5709 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
5710 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
5711 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
5712 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
5714 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
5715 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
5718 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
5719 subprogram that generates the external name associated with a
5720 secondary dispatch table.
5721 (Get_Secondary_DT_External_Name): New subprogram that generates the
5722 external name associated with a secondary dispatch table.
5724 2005-11-14 Emmanuel Briot <briot@adacore.com>
5726 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
5727 line in the ALI file to include both an instantiation reference, and a
5730 2005-11-14 Vincent Celier <celier@adacore.com>
5732 * clean.adb (Check_Project): Look for Ada code in extending project,
5733 even if Ada is not specified as a language.
5734 Use new function DLL_Prefix for DLL_Name
5735 (Clean_Interface_Copy_Directory): New procedure
5736 (Clean_Library_Directory): New procedure
5737 (Clean_Directory): Remove procedure, no longer used
5738 (Clean_Project): Do not delete any file in an externally built project
5740 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
5741 directory of an extending project, even when there are no Ada source
5743 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
5744 (Set_Ada_Paths.Add.Recursive_Add): Ditto
5746 * mlib-prj.adb (Check_Library): For all library projects, get the
5747 library file timestamp.
5748 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
5749 (Build_Library): Use new function DLL_Prefix for the DLL_Name
5750 (Clean): Remove procedure, no longer used
5751 (Ultimate_Extension_Of): New function
5752 (Build_Library): When cleaning the library directory, only remove an
5753 existing library file and any ALI file of a source of the project.
5754 When cleaning the interface copy directory, remove any source that
5755 could be a source of the project.
5757 * prj.ads, prj.adb (Project_Empty): Add values of new components
5758 Library_TS and All_Imported_Projects.
5759 (Project_Empty): Add values for new components of Project_Data:
5760 Library_ALI_Dir and Display_Library_ALI_Dir
5762 * prj-attr.adb: New project level attribute name Library_ALI_Dir
5764 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
5765 attribute Library_ALI_Dir.
5766 (Check_Library_Attributes): The library directory cannot be the same as
5767 any source directory of the project tree.
5768 (Check_Stand_Alone_Library): The interface copy directory cannot be
5769 the same as any source directory of the project tree.
5771 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
5772 all temporary files.
5774 2005-11-14 Robert Dewar <dewar@adacore.com>
5775 Ed Schonberg <schonberg@adacore.com>
5777 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
5778 (Check_Elab_Call): A call within a protected body is never an
5779 elaboration call, and does not require checking.
5780 (Same_Elaboration_Scope): Take into account protected types for both
5782 (Activate_Elaborate_All_Desirable): New procedure
5784 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
5787 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
5788 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
5790 * lib-writ.ads, lib-writ.adb:
5791 Implement new AD/ED for Elaborate_All/Elaborate desirable
5792 Use new Elaborate_All_Desirable flag in N_With_Clause node
5794 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
5795 N_Free_Statement nodes.
5796 Define new class N_Subprogram_Instantiation
5797 Add Elaborate_Desirable flag to N_With_Clause node
5798 Add N_Delay_Statement (covering two kinds of delay)
5800 * debug.adb: Introduce d.f flag for compiler
5801 Add -da switch for binder
5803 2005-11-14 Ed Schonberg <schonberg@adacore.com>
5804 Cyrille Comar <comar@adacore.com>
5806 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
5807 for task component, in the case of a limited aggregate. The enclosed
5808 object declaration will create it earlier. Otherwise, in the case of a
5809 nested aggregate, the object may appear in the wrong scope.
5810 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
5811 (Gen_Assign): If the component being assigned is an array type and the
5812 expression is itself an aggregate, wrap the assignment in a block to
5813 force finalization actions on the temporary created for each row of the
5815 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
5816 structures are initialized after all discriminants are set so that
5817 they can be accessed even when their offset is dynamic.
5819 2005-11-14 Robert Dewar <dewar@adacore.com>
5820 Hristian Kirtchev <kirtchev@adacore.com>
5822 * sem_attr.adb: Implement Machine_Rounding attribute
5823 (Analyze_Access_Attribute): The access attribute may appear within an
5824 aggregate that has been expanded into a loop.
5825 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
5826 'Terminated whenever the prefix is of a task interface class-wide type.
5827 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
5828 the prefix is of a task interface class-wide type.
5830 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
5833 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
5834 Remove pragma Inline for [Unaligned_]Valid.
5835 Add comments that Valid routines do not work for Vax_Float
5837 * exp_attr.adb: Implement Machine_Rounding attribute
5839 * snames.h: Add entry for Machine_Rounding attribute
5841 2005-11-14 Javier Miranda <miranda@adacore.com>
5842 Robert Dewar <dewar@adacore.com>
5843 Hristian Kirtchev <kirtchev@adacore.com>
5845 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
5846 and related): For a prefix that is an explicit dereference of an
5847 access to unconstrained packed array type, annotate the dereference
5848 with an actual subtype so GIGI can make a correct size computation.
5849 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
5850 'Unrestricted_Access, if the designated type is an interface we
5851 add a type conversion to force the displacement of the pointer
5852 to the secondary dispatch table.
5853 Use Universal_Real instead of Long_Long_Float when we need a high
5854 precision float type for the generated code (prevents gratuitous
5855 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
5856 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
5857 'Terminated for task interface class-wide objects. Generate a call to
5858 the predefined dispatching routine used to retrieve the _task_id from
5859 a task corresponding record.
5860 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
5862 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
5863 (Check_Dispatching_Operation): Protect the frontend againts
5864 previously detected errors.
5866 * Makefile.rtl: Add new instantiations of system.fat_gen
5868 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
5869 Change name of instantiated package for better consistency
5870 with newly added system.fat_gen instantiations.
5872 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
5873 s-fvagfl.ads: New files.
5875 2005-11-14 Cyrille Comar <comar@adacore.com>
5876 Thomas Quinot <quinot@adacore.com>
5878 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
5879 assignment of a value of a tagged type that has been rewritten to a
5880 block statement, it is known by construction that no checks are
5881 necessary for the statements within the block: analyze it with checks
5883 (Expand_N_If_Statement): When killing a dead then-branch in an
5884 if-statement that has elsif_parts, recompute the Current_Value node
5885 for any entity whose value is known from the condition of the first
5887 (Expand_N_Return_Statement): When returning a mutable record, convert
5888 the return value into its actual subtype in order to help the backend
5889 to return the actual size instead of the maximum. This is another
5890 aftermath of not returning mutable records on the sec-stack anymore.
5892 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
5893 handling of error msg for suspicious reverse range iteration.
5894 (Check_Possible_Current_Value_Condition): Move declaration from body to
5895 spec, to allow this subprogram to be called from exp_ch5.
5897 2005-11-14 Thomas Quinot <quinot@adacore.com>
5899 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
5900 generate a set of nested array aggregates instead of a single flat
5901 aggregate for multi-dimensional arrays.
5903 2005-11-14 Pascal Obry <obry@adacore.com>
5905 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
5906 by spawnve is a process handle, no need to convert. Add a parameter
5907 close to control wether the process handle must be closed.
5908 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
5909 a process handle, not need to convert.
5910 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
5912 * g-expect.adb: (Kill): Document the new close parameter.
5913 (Close): Do not release the process handle in the kill there as
5914 waitpid() is using it.
5915 (Send_Signal): Release the process handle.
5917 2005-11-14 Robert Dewar <dewar@adacore.com>
5919 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
5920 need a high precision float type for the generated code (prevents
5921 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
5924 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
5925 need a high precision float type for the generated code (prevents
5926 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
5928 (Expand_Width_Attribute): In configurable run-time, the attribute is not
5929 allowed on non-static enumeration subtypes. Force a load error to emit
5930 the correct diagnostic.
5932 2005-11-14 Thomas Quinot <quinot@adacore.com>
5933 Robert Dewar <dewar@adacore.com>
5934 Ed Schonberg <schonberg@adacore.com>
5936 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
5937 subtype to compute the size of the designated object at run-time,
5938 create such a subtype and store it in the Actual_Designated_Subtype
5939 attribute of the N_Free_Statement.
5940 Generate itype for classwide designated object in both cases of
5941 user-specified storage pool: specific and class-wide, not only in the
5943 Raise CE when trying to set a not null access type object to null.
5944 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
5945 an explicit loop, because freeze nodes make its position variable.
5947 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
5950 2005-11-14 Javier Miranda <miranda@adacore.com>
5952 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
5953 Build_Stream_Procedure): Add the null-excluding attribute to the first
5955 This has no semantic meaning under Ada95 mode but it is a
5956 requirement under Ada05 mode.
5958 * par-ch3.adb (P_Access_Definition): Addition of warning message if
5959 the null exclusion is used under Ada95 mode
5960 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
5961 (P_Access_Definition): Remove assertion that forbids the use of
5962 the null-exclusion feature in Ada95.
5964 2005-11-14 Robert Dewar <dewar@adacore.com>
5966 * impunit.adb: Exclude container helper units not intended for use by
5969 2005-11-14 Ed Schonberg <schonberg@adacore.com>
5971 * freeze.adb (Freeze_Entity): For an access formal that is an access
5972 to subprogram, freeze the anonymous subprogram type at the same time,
5973 to prevent later freezing in the wrong scope, such as the enclosing
5975 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
5976 subprogram whenever available.
5978 2005-11-14 Arnaud Charlet <charlet@adacore.com>
5981 * gnatvsn.ads (Library_Version): Bump to 4.1
5983 2005-11-14 Robert Dewar <dewar@adacore.com>
5985 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
5986 Storage_Offset to avoid wrap around causing invalid results.
5988 2005-11-14 Pascal Obry <obry@adacore.com>
5990 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
5992 (Scan_Bind_Arg): Fail with an error message if -M option is used
5993 on a native compiler.
5995 2005-11-14 Robert Dewar <dewar@adacore.com>
5996 Vincent Celier <celier@adacore.com>
5998 * gprep.adb: Implement -C switch to scan comments
6000 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
6002 * scans.ads: Comment updates (including new use of Tok_Comment in
6005 * opt.ads: Add documentation for flags that are used by gprmake,
6006 currently and in the next version of gprmake.
6007 (Verbosity_Level): New variable
6008 Add Replace_In_Comments switch
6010 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
6012 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
6014 2005-11-14 Arnaud Charlet <charlet@adacore.com>
6016 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
6017 message, friendlier.
6019 2005-11-14 Robert Dewar <dewar@adacore.com>
6021 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
6023 2005-11-14 Doug Rupp <rupp@adacore.com>
6025 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
6027 2005-11-14 Robert Dewar <dewar@adacore.com>
6029 * interfac.ads: Change declarations of IEEE float types so that we no
6030 longer need a separate version of this package for VMS.
6032 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6034 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
6035 internal entity created for the declaration of a child subprogram body
6036 with no spec as coming from source, to generate proper cross-reference
6039 2005-11-14 Vincent Celier <celier@adacore.com>
6041 * make.adb (Compile_Sources): Change verbose message to minimum
6042 verbosity level High for "is in an Ada library", "is a read-only
6043 library" and "is an internal library",
6044 (Create_Binder_Mapping_File): Path name of ALI file for library project
6045 must include the library directory, not the object directory.
6046 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
6047 for new switches -vl, -vm and -vh.
6048 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
6049 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
6050 (Compile_Sources): Do not attempt to compile if an ALI file is missing
6051 in a project that is externally built.
6052 (Compute_All_Imported_Projects): New procedure
6053 (Gnatmake): Check if importing libraries should be regenerated because
6054 at least an imported library is more recent.
6055 (Initialize): For each project compute the list of the projects it
6056 imports directly or indirectly.
6057 (Add_Library_Search_Dir): New procedure, used in place of
6058 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
6059 put in the search paths.
6060 (Add_Source_Search_Dir): New procedure, used in place of
6061 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
6062 put in the search paths.
6063 (Mark_Directory): Resolve the absolute path the directory before marking
6066 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
6067 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
6068 Switch. Do not handle any exception.
6069 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
6070 so that the switch is recognized as valid.
6071 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
6073 2005-11-14 GNAT Script <nobody@adacore.com>
6075 * Make-lang.in: Makefile automatically updated
6077 2005-11-14 Pascal Obry <obry@adacore.com>
6079 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
6081 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
6082 In both cases the last argument was dropped.
6084 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
6086 * namet.h: (Column_Numbe): New type.
6087 (Get_Column_Number): Define to sinput__get_column_number.
6088 (Instantiation): Define to sinput__instantiation.
6089 (Get_Column_Number): Declare.
6090 (Instantiation): Likewise.
6092 2005-11-14 Robert Dewar <dewar@adacore.com>
6094 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
6095 syntax, which could cause compiler hangs.
6097 2005-11-14 Vincent Celier <celier@adacore.com>
6099 * prj-ext.adb: Take into account new environment variable
6100 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
6102 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
6103 normalize its path name, making it absolute and resolving symbolic
6104 links, and replace the original if resolved path is different.
6106 2005-11-14 Vincent Celier <celier@adacore.com>
6108 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
6109 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
6111 2005-11-14 Emmanuel Briot <briot@adacore.com>
6113 * prj-pp.adb (Print): Do not output the with statement if the
6114 associated name is empty, which happens for virtual extending projects.
6115 (Print): Preserve the "extends all" attribute when printing the project.
6117 * prj-tree.ads (String_Value_Of): Add comment about returned value for
6118 a virtual extending project.
6120 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6122 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
6123 rhs of an assignment even if the type is unconstrained, when the
6124 context is non-expanding.
6125 In an inlined body, if the context type is private,
6126 resolve with its full view, which must be a composite type.
6128 2005-11-14 Robert Dewar <dewar@adacore.com>
6129 Ed Schonberg <schonberg@adacore.com>
6131 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
6132 Do not give obsolescent warning on with of subprogram (since we
6134 (Analyze_With_Clause): Add test for obsolescent package
6135 (Install_Context_Clauses): If the unit is the body of a child unit, do
6136 not install twice the private declarations of the parents, to prevent
6137 circular lists of Use_Clauses in a parent.
6138 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
6139 compiling body of child unit.
6140 Use new class N_Subprogram_Instantiation
6141 (Expand_With_Clause): If this is a private with_clause for a child unit,
6142 appearing in the context of a package declaration, then the implicit
6143 with_clauses generated for parent units are private as well.
6144 (License_Check): Do not generate message if with'ed unit is internal
6146 2005-11-14 Gary Dismukes <dismukes@adacore.com>
6147 Ed Schonberg <schonberg@adacore.com>
6148 Thomas Quinot <quinot@adacore.com>
6150 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
6151 names are internal, because they will not have a corresponding partner
6152 in the actual package.
6153 (Analyze_Formal_Package): Move the setting of the formal package spec's
6154 Generic_Parent field so that it occurs prior to analyzing the package,
6155 to allow proper operation of Install_Parent_Private_Declarations.
6156 (Analyze_Package_Instantiation): Set the instantiated package entity's
6157 Package_Instantiation field.
6158 (Get_Package_Instantiation_Node): Move declaration to package spec.
6159 Retrieve the N_Package_Instantiation node when the Package_Instantiation
6161 (Check_Generic_Child_Unit): Within an inlined call, the only possible
6162 instantiation is Unchecked_Conversion, for which no parents are needed.
6163 (Inline_Instance_Body): Deinstall and record the use_clauses for all
6164 parent scopes of a scope being removed prior to inlining an instance
6166 (Analyze_Package_Instantiation): Do not perform front-end inlining when
6167 the current context is itself an instance within a non-instance child
6168 unit, to prevent scope stack errors.
6169 (Save_References): If the node is an aggregate that is an actual in a
6170 call, rewrite as a qualified expression to preserve some type
6171 information, to resolve possible ambiguities in the instance.
6172 (Instance_Parent_Unit): New global variable to record the ultimate
6173 parent unit associated with a generic child unit instance (associated
6174 with the existing Parent_Unit_Visible flag).
6175 (type Instance_Env): New component Instance_Parent_Unit for stacking
6176 parents recorded in the global Instance_Parent_Unit.
6177 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
6179 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
6180 it's not a top-level unit, and only do this if Instance_Parent_Unit is
6181 not already set. Replace test of Is_Child_Unit with test of parent's
6182 scope against package Standard. Add comments and a ??? comment.
6183 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
6184 on a child instance parent to test that the parent equals
6185 Instance_Parent rather than simply checking that the unit is not a
6187 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
6188 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
6189 a formal interface are ancestors of the corresponding actual.
6190 (Validate_Formal_Interface_Type): Additional legality checks.
6191 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
6192 interface types with ancestors.
6193 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
6194 to diagnose attempts to use generic within its own declaration.
6196 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6197 Javier Miranda <miranda@adacore.com>
6199 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
6201 (Build_Private_Derived_Type): The entity of the created full view of the
6202 derived type does not come from source. If after installing the private
6203 declarations of the parent scope the parent is still private, use its
6204 full view to construct the full declaration of the derived type.
6205 (Build_Derived_Record_Type): Relax the condition that controls the
6206 execution of the check that verifies that the partial view and
6207 the full view agree in the set of implemented interfaces. In
6208 addition, this test now only takes into account the progenitors.
6209 (Derive_Interface_Subprograms): No need to derive subprograms
6210 of ancestors that are interfaces.
6211 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
6213 Change name Is_Package to Is_Package_Or_Generic_Package
6214 (Complete_Subprograms_Derivation): Handle the case in which the full
6215 view is a transitive derivation of the ancestor of the partial view.
6216 (Process_Full_View): Rename local subprogram Find_Interface_In_
6217 Descendant to Find_Ancestor_Interface to leave the code more clear.
6218 Remove wrong code that avoids the generation of an error message
6219 when the immediate ancestor of the partial view is an interface.
6220 In addition some minor reorganization of the code has been done to
6221 leave it more clear.
6222 (Analyze_Type_Declaration): If type has previous incomplete tagged
6223 partial view, inherit properly its primitive operations.
6224 (Collect_Interfaces): Make public, for analysis of formal
6226 (Analyze_Interface_Declaration): New procedure for use for regular and
6227 formal interface declarations.
6228 (Build_Derived_Record_Type): Add support for private types to the code
6229 that checks if a tagged type implements abstract interfaces.
6230 (Check_Aliased_Component_Type): The test applies in the spec of an
6232 (Access_Type_Declaration): Clean up declaration of malformed type
6233 declared as an access to its own classwide type, to prevent cascaded
6235 (Collect_Interfaces): For private extensions and for derived task types
6236 and derived protected types, the parent may be an interface that must
6237 be included in the interface list.
6238 (Access_Definition): If the designated type is an interface that may
6239 contain tasks, create Master_Id for it before analyzing the expression
6240 of the declaration, which may be an allocator.
6241 (Record_Type_Declaration): Set properly the interface kind, for use
6242 in allocators, the creation of master id's for task interfaces, etc.
6244 2005-11-14 Javier Miranda <miranda@adacore.com>
6245 Ed Schonberg <schonberg@adacore.com>
6247 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
6248 omitted in case of stream attribute subprograms.
6249 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
6250 appear immediately after a subprogram body, when there is no previous
6251 subprogram declaration.
6252 Change name Is_Package to Is_Package_Or_Generic_Package
6253 (Process_Formals): A non null qualifier on a non null named access
6254 type is not an error, and is a warning only if Redundant_Constructs
6257 2005-11-14 Gary Dismukes <dismukes@adacore.com>
6258 Ed Schonberg <schonberg@adacore.com>
6260 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
6261 nested within Analyze_Package_Specification to install the private
6262 declarations and use clauses within each of the parent units of a
6263 package instance of a generic child package.
6264 (Analyze_Package_Specification): When entering a private part of a
6265 package associated with a generic instance or formal package, the
6266 private declarations of the parent must be installed (by calling new
6267 procedure Install_Parent_Private_Declarations).
6268 Change name Is_Package to Is_Package_Or_Generic_Package
6269 (Preserve_Full_Attributes): For a synchronized type, the corresponding
6270 record is absent in a generic context, which does not indicate a
6273 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6275 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
6276 not try to rewrite a renamed stream attribute, because the operations
6277 on the type may not have been generated.
6278 Handle properly a renaming_as_body generated for a stream operation
6279 whose default is abstract because the object type itself is abstract.
6280 (Find_Type): If the type is incomplete and appears as the prefix of a
6281 'Class reference, it is tagged, and its list of primitive operations
6282 must be initialized properly.
6283 (Chain_Use_Clauses): When chaining the use clauses that appear in the
6284 private declaration of a parent unit, prior to compiling the private
6285 part of a child unit, find on the scope stack the proper parent entity
6286 on which to link the use clause.
6287 (Note_Redundant_Use): Emit a warning when a redundant use clause is
6289 (Analyze_Object_Renaming): An attribute reference is not a legal object
6290 if it is not a function call.
6292 2005-11-14 Robert Dewar <dewar@adacore.com>
6293 Ed Schonberg <schonberg@adacore.com>
6295 * sem_eval.adb: Implement d.f flag
6296 (Subtype_Statically_Match): A generic actual type has unknown
6297 discriminants when the corresponding actual has a similar partial view.
6298 If the routine is called to validate the signature of an inherited
6299 operation in a child instance, the generic actual matches the full view,
6301 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
6302 Ed Schonberg <schonberg@adacore.com>
6303 Robert Dewar <dewar@adacore.com>
6304 Thomas Quinot <quinot@adacore.com>
6306 * sem_res.adb (Resolve_Call): Provide a better error message whenever
6307 a procedure call is used as a select statement trigger and is not an
6308 entry renaming or a primitive of a limited interface.
6309 (Valid_Conversion): If the operand has a single interpretation do not
6310 remove address operations.
6311 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
6312 statement to inhibit warning.
6313 (Resolve_Unary_Op): Do not produce a warning when
6314 processing an expression of the form -(A mod B)
6315 Use Universal_Real instead of Long_Long_Float when we need a high
6316 precision float type for the generated code (prevents gratuitous
6317 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
6318 (Resolve_Concatenation_Arg): Improve error message when argument is an
6319 ambiguous call to a function that returns an array.
6320 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
6321 there is an implicit operator in the given scope if we are within an
6322 instance: legality check has been performed on the generic.
6323 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
6324 after resolving operand, to avoid false warnings on overloaded calls.
6326 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6327 Javier Miranda <miranda@adacore.com>
6331 * sem_type.adb (Covers): In an inlined body, a composite type matches
6332 a private type whose full view is a composite type.
6333 (Interface_Present_In_Ancestor): Protect the frontend against
6334 previously detected errors to ensure that its compilation
6335 with assertions enabled gives the same output that its
6336 compilation without assertions.
6337 (Interface_Present_In_Ancestor): Add support for private types.
6338 Change name In_Actual to In_Generic_Actual (clean up)
6339 (Disambiguate): New predicate In_Actual, to recognize expressions that
6340 appear in the renaming declaration generated for generic actuals, and
6341 which must be resolved in the outer context.
6343 2005-11-14 Robert Dewar <dewar@adacore.com>
6344 Thomas Quinot <quinot@adacore.com>
6345 Hristian Kirtchev <kirtchev@adacore.com>
6346 Ed Schonberg <schonberg@adacore.com>
6348 * sem_util.ads, sem_util.adb: Change name Is_Package to
6349 Is_Package_Or_Generic_Package.
6350 (Check_Obsolescent): New procedure.
6351 (Set_Is_Public): Remove obsolete junk test.
6352 (Set_Public_Status): Do not set Is_Public on an object whose declaration
6353 occurs within a handled_sequence_of_statemets.
6354 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
6355 for a parameterless procedure.
6356 (Enter_Name): Recognize renaming declarations created for private
6357 component of a protected type within protected operations, so that
6358 the source name of the component can be used in the debugger.
6360 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6361 Robert Dewar <dewar@adacore.com>
6363 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
6364 of a generic subprogram are not visible outside the body.
6365 (Set_Warning_Switch): New procedure (code to set warning mode moved
6366 here from Switch.C so that it can be shared by pragma processing.
6367 (Check_References): Special case warning for non-modified non-imported
6369 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
6370 form with a string literal argument
6372 2005-11-14 Javier Miranda <miranda@adacore.com>
6374 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
6376 (Write): Addition of "not null" to the anonymous access.
6377 (Read): Addition of "not null" to the anonymous access.
6378 (Write): Addition of "not null" to the anonymous access.
6380 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
6381 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
6382 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
6383 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
6384 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
6385 "not null" to the anonymous access.
6387 2005-11-14 Robert Dewar <dewar@adacore.com>
6389 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
6392 2005-11-14 Vincent Celier <celier@adacore.com>
6394 * switch.adb (Bad_Switch): New procedure
6395 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
6396 message when in error.
6398 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
6399 Too_Many_Output_Files): Remove declarations, no longer used.
6400 (Scan_Nat): New parameter Switch
6402 (Bad_Switch): New procedure
6404 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
6405 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
6406 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
6407 to Osint.Fail. Do not handle any exception.
6409 2005-11-14 Vincent Celier <celier@adacore.com>
6411 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
6412 designates a non existent directory.
6414 2005-11-14 Robert Dewar <dewar@adacore.com>
6416 * xgnatugn.adb: Replace invalid membership test by 'Valid
6418 2005-11-14 Vincent Celier <celier@adacore.com>
6420 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
6421 there is no object directory.
6423 2005-11-14 Robert Dewar <dewar@adacore.com>
6425 * usage.adb: Minor adjustment to output format, use nn instead of nnn
6426 (so that -gnateInnn does not run into next column)
6428 2005-11-14 Ed Falis <falis@adacore.com>
6430 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
6433 2005-11-14 Cyrille Comar <comar@adacore.com>
6435 * s-chepoo.ads: Add comments on Dereference.
6436 Remove unnecessary inherited abstract primitives.
6439 2005-11-14 Robert Dewar <dewar@adacore.com>
6441 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
6442 node parameter, not needed, since it is available as Declaration_Node.
6444 2005-11-14 Geert Bosch <bosch@adacore.com>
6446 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
6447 grammatically correct.
6449 2005-11-14 Vincent Celier <celier@adacore.com>
6451 * s-fileio.ads: Correct spelling error in comment
6453 2005-11-14 Cyrille Comar <comar@adacore.com>
6454 Robert Dewar <dewar@adacore.com>
6455 Vincent Celier <celier@adacore.com>
6456 Ben Brosgol <brosgol@adacore.com>
6457 Jose Ruiz <ruiz@adacore.com>
6458 Pascal Obry <obry@adacore.com>
6461 Document that -fstack-check is needed for strict compliance with the
6462 Ada 95 Reference Manual.
6463 Correct reference to VAX systems to meet HP guidelines
6464 Add documentation for new gnatmake switches -vl, -vm and -vh
6465 Replace DEC Ada by HP Ada
6466 Replace DIGITAL by HP
6467 Remove empty section on tools in compatibility section
6468 Clarify the Windows convention semantics.
6469 Document the Win32 calling convention.
6470 The Stdcall, Win32 and DLL convention are synonyms.
6471 Add a note in -gnatR description about zero size record components
6472 Note on new >= and <= warnings for -gnatwc
6473 Document that equal sign after -gnatm is optional.
6474 Note that strip is working fine on DLL built with a Library
6475 Project. The restriction apply only to DLL built with gnatdll.
6476 Update section about the way to debug a DLL.
6477 Update information about the DLL convention.
6478 Document -C switch for gnatprep
6479 Document new attribute Library_ALI_Dir
6480 Update elaboration doc to include implicit Elaborate pragmas now
6481 generated for subprogram instantiations.
6482 Document limitation on executable names that include spaces for --GCC,
6483 --GNATBIND, and --GNATLINK switches.
6484 Document that -w causes -gnatws to be added at start of gcc switches
6486 * gnat_rm.texi: Document that -mieee is needed for generating infinite
6487 and NaN values in case of overflow on machines that are not fully
6488 compliant with the IEEE floating-point standard.
6489 Create a section describing the set of compiler options needed for
6490 strict compliance with the Ada 95 Reference Manual.
6491 Add documentation for pragma Obsolescent applied to a package
6492 Clarify potential issues of mixed language programs related to the
6493 I/O buffering enabling in the elaboration of the GNAT runtime.
6494 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
6495 This documentation only patch adds extra documentsion for pragma
6496 Restrictions (No_Elaboration_Code), explaining why it is not possible
6497 to document this restriction in terms of allowed source constructs.
6498 Document string literal form of pragma Warnings
6499 Document new attribute Library_ALI_Dir
6500 Add documentation on stable attributes in project files that was missing
6502 * gnat-style.texi: Indicate that paragraphs within a single comment
6503 should be separated by empty comment lines
6505 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
6508 * bindusg.adb: Minor cleanup, put -m before -M for consistency
6510 2005-11-14 Robert Dewar <dewar@adacore.com>
6512 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
6513 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
6514 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
6515 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
6516 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
6517 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
6518 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
6519 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
6520 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
6521 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
6522 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
6523 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
6524 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
6525 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
6526 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
6527 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
6528 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
6529 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
6530 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
6531 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
6532 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
6533 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
6534 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
6535 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
6536 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
6537 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
6538 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
6539 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
6540 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
6541 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
6542 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
6543 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
6544 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
6545 system-interix.ads, system-solaris-sparc.ads,
6546 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
6547 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
6548 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
6549 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
6550 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
6551 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
6552 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
6553 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
6554 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
6555 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
6556 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
6557 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
6558 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
6559 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
6560 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
6561 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
6562 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
6563 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
6564 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
6565 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
6566 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
6567 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
6568 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6569 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
6570 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
6571 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
6572 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
6573 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
6574 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
6575 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
6576 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
6577 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
6578 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
6579 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
6580 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
6581 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
6582 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
6583 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
6584 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
6585 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
6586 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
6587 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
6588 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
6589 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
6590 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
6591 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
6592 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
6593 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
6594 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
6595 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
6596 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
6597 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
6598 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
6599 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
6600 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
6601 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
6602 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
6603 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
6604 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
6605 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
6606 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
6607 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
6608 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
6609 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
6610 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
6611 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
6612 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
6613 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
6614 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
6615 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
6616 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
6617 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
6618 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
6619 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
6620 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
6621 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
6622 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
6623 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
6624 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
6625 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
6626 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
6627 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
6628 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
6629 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
6630 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
6631 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
6632 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
6633 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
6634 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
6635 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
6636 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
6637 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
6638 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
6639 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
6640 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
6641 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
6642 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
6643 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
6644 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
6645 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
6646 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
6647 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
6648 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
6649 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
6650 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
6651 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
6652 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
6653 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
6654 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
6655 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
6656 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
6657 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
6658 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
6659 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
6660 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
6661 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
6662 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
6663 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
6664 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
6665 a-numaux-darwin.ads, a-numaux-darwin.adb,
6666 a-swuwha.ads, a-stunha.ads: Minor reformatting
6668 2005-11-14 Robert Dewar <dewar@adacore.com>
6671 * osint-m.adb: Add pragma Elaborate_All for Osint
6673 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
6676 * trans.c (call_to_gnu): Restore statement lost in translation.
6678 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
6680 * init.c: Use the Linux-specific section for the IA-64/Linux target.
6681 (__gnat_adjust_context_for_raise): Add conditional code so that the
6682 IA-64 is also supported.
6684 2005-11-03 James E Wilson <wilson@specifix.com>
6687 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
6688 TREE_OVERFLOW check.
6690 2005-09-21 Olivier Hainque <hainque@adacore.com>
6693 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
6694 as we create them to store a size in bits.
6696 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
6704 * utils2.c (build_return_expr): New helper function.
6705 * gigi.h (build_return_expr): Declare it.
6706 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
6707 of manually building the RETURN_EXPR tree.
6708 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
6709 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
6710 build_binary_op for the "target pointer" case. Use build_return_expr
6711 instead of manually building the RETURN_EXPR tree.
6713 2005-09-16 Laurent GUERBY <laurent@guerby.net>
6716 * s-tpinop.ads: Make this unit Preelaborate.
6718 2005-09-16 Andreas Jaeger <aj@suse.de>
6720 * socket.c: Add string.h for memcpy.
6722 2005-09-05 Arnaud Charlet <charlet@adacore.com>
6724 * dec-io.ads, dec-io.adb: Removed, no longer used.
6726 2005-09-01 Arnaud Charlet <charlet@adacore.com>
6728 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
6730 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
6731 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
6732 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
6733 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
6734 dependent units are Preelaborate.
6735 (Initialize): Call Interrupt_Managemeent.Initialize and
6736 OS_Primitives.Initialize to ensure proper initialization of this unit.
6737 Remove use of System.Soft_Links
6738 Make this unit Preelaborate.
6740 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
6741 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
6742 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
6743 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
6744 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
6745 s-tratas.ads, s-tasinf.ads: Minor reformatting.
6746 Add pragma Preelaborate, since these packages are suitable for this
6750 * s-traent-vms.ads, s-intman-dummy.adb,
6751 s-taprop-dummy.adb: Make this unit Preelaborate.
6753 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
6754 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
6755 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
6756 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
6757 s-intman-solaris.adb, s-intman-irix-athread.adb,
6758 s-intman-irix.adb: Mark this unit Preelaborate.
6759 (Initialize): New procedure.
6762 * s-taspri-linux.ads: Removed.
6764 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
6765 as done by other implementations (e.g. posix).
6767 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
6768 responsible for deferring abort.
6769 Mark this unit Preelaborate.
6771 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
6772 proper initialization of the tasking run-time.
6774 * s-tasdeb.ads: Mark this unit Preelaborate.
6775 (Known_Tasks): Add explicit default value to avoid elaboration code.
6777 * s-inmaop-vms.adb (Elaboration code): Add call to
6778 Interrupt_Management.Initialize since the elaboration code depends on
6779 proper initialization of this package.
6781 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
6782 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
6783 s-osprim-posix.adb: Make this unit Preelaborate.
6785 * a-calend.adb: Add call to OS_Primitives.Initialize
6787 * a-elchha.adb: Update use of Except.Id.Full_Name.
6789 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
6791 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
6792 Move with clauses outside Warnings Off now that dependent units are
6794 Use raise xxx with "..."; Ada 2005 form.
6796 * a-taside.ads, a-taside.adb:
6797 Remove some dependencies, to make it easier to make this unit truly
6799 Rewrite some code to be conformant with Preelaborate rules.
6801 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
6802 marked Preelaborate in the future.
6804 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
6805 these units Preelaborate.
6807 * s-exctab.adb: Update use of Except.Id.Full_Name.
6809 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
6810 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
6811 Set_Exc_Stack_Addr): Removed, no longer used.
6812 Remove reference to *Machine_State_Addr*, no longer needed.
6814 * s-stalib.ads: Mark this unit as Preelaborate[_05].
6815 (Exception_Data): Full_Name is now a System.Address so that this unit
6816 can be made Preelaborate.
6817 Clean up/simplify code thanks to Full_Name being a System.Address.
6818 Remove obsolete pragma Suppress (All_Checks), no longer needed.
6820 * s-taskin.ads, s-taskin.adb:
6821 Move with clauses outside Warnings Off now that dependent units are
6823 Make this unit Preelaborate.
6824 (Initialize): New proceduure, replace elaboration code and makes the
6825 set up of the tasking run-time cleaner.
6826 (Detect_Blocking): Now a function instead of a deferred boolean, to
6827 obey Preelaborate rules.
6829 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
6830 soft links, no longer used.
6832 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
6833 packages are suitable for this categorization.
6835 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
6836 since we compile run-time sources in Ada 2005 mode.
6837 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
6838 avoid having s-taprop*.adb depend on s-soflin and to avoid code
6840 Remove reference to *Machine_State_Addr*, no longer needed.
6842 2005-09-01 Arnaud Charlet <charlet@adacore.com>
6844 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
6845 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
6846 Remove reference to System.Exceptions.
6848 * s-mastop-x86.adb: Removed, no longer used.
6850 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
6852 * a-excach.adb: Minor reformatting.
6854 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
6855 instead fix new warnings that were hidden by this change.
6856 (AAA, ZZZ): Removed, replaced by...
6857 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
6858 are used instead of constants, to help make Ada.Exception truly
6860 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
6861 Raise_Storage_Error): File is now a System.Address, to simplify code.
6862 (Elab code): Removed, no longer used.
6863 (Null_Occurrence): Remove Warnings Off and make this construct
6865 Remove code related to front-end zero cost exception handling, since
6866 it is no longer used.
6867 Remove -gnatL/-gnatZ switches.
6869 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
6870 Update use of Except.Msg.
6872 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
6873 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
6874 to front-end zero cost exception handling, since it is no longer used.
6875 Remove -gnatL/-gnatZ switches.
6877 * lib-writ.ads: Minor reformatting
6880 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
6882 * Make-lang.in: Remove references to s-except.ads
6884 * s-except.ads: Removed, no longer used.
6886 * s-mastop.ads, s-mastop.adb:
6887 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
6888 Remove reference to System.Exceptions.
6890 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
6891 switch-b.adb: Remove code related to front-end zero cost exception
6892 handling, since it is no longer used.
6893 Remove -gnatL/-gnatZ switches.
6895 2005-09-01 Robert Dewar <dewar@adacore.com>
6896 Gary Dismukes <dismukes@adacore.com>
6897 Javier Miranda <miranda@adacore.com>
6899 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
6900 type by valid test and generate warning.
6901 (Tagged_Membership): Generate call to the run-time
6902 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
6903 Change formal name Subtype_Mark to Result_Definition in several calls to
6904 Make_Function_Specification.
6905 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
6906 check for proper accessibility of the operand of a class-wide allocator.
6907 The check can be left out if checks are suppressed or if the expression
6908 has a specific tagged type whose level is known to be safe.
6910 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
6911 generates the run-time check associated with null-excluding entities.
6912 (Expand_N_Return_Statement): Add tests to determine if the accessibility
6913 check on the level of the return expression of a class-wide function
6914 can be elided. The check usually isn't needed if the expression has a
6915 specific type (unless it's a conversion or a formal parameter). Also
6916 add a test for whether accessibility checks are suppressed. Augment
6917 the comments to describe the conditions for performing the check.
6919 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
6920 Javier Miranda <miranda@adacore.com>
6921 Gary Dismukes <dismukes@adacore.com>
6922 Ed Schonberg <schonberg@adacore.com>
6924 * a-tags.adb (IW_Membership): Give support to
6925 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
6926 subprogram has been extended to look for the tag in the ancestors tag
6928 Update the structure of the GNAT Dispatch Table to reflect the
6929 additional two tables used in dispatching selects.
6930 Introduce appropriate array types and record components in
6931 Type_Specific_Data to reflect the two tables.
6932 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
6933 the TSD of a tag, indexed by position.
6934 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
6935 operation kind in the TSD of a tag, indexed by position.
6937 * a-tags.ads: Introduce an enumeration type to capture different
6938 primitive operation kinds. Define a constant reflecting the number of
6939 predefined primitive operations.
6940 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
6941 of an entry wrapper.
6942 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
6943 callable entity of a primitive operation.
6945 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
6946 primitive operations used in dispatching selects for limited
6947 interfaces, limited tagged, task and protected types what implement a
6949 (Freeze_Type): Generate the bodies of the primitive operations used in
6950 dispatching selects for limited tagged, task and protected types that
6951 implement a limited interface. Generate statements to populate the two
6952 auxiliary tables used for dispatching in select statements.
6953 (Freeze_Record_Type): Add call to initialize the dispatch table entries
6954 associated with predefined interface primitive operations.
6955 (Build_Dcheck_Function): Change Set_Subtype_Mark to
6956 Set_Result_Definition.
6957 (Build_Variant_Record_Equality): Change Subtype_Mark to
6959 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
6960 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
6961 (Build_Assignment): Simplify the code that adds the run-time-check.
6962 (Expand_N_Object_Declaration): Code cleanup.
6964 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
6965 entries when there is a protected type that implements a limited
6968 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
6969 common routines used in expansion of dispatching selects.
6970 (Add_Private_Declarations): Select the appropriate protection type when
6971 there is a protected type that implements a limited interface.
6972 (Build_Parameter_Block): Generate a wrapped parameter block.
6973 (Build_Protected_Subprogram_Body): Select the appropriate type for
6974 locking entries when there is a protected type that implements a
6976 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
6977 classified as entry wrappers.
6978 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
6979 asynchronous selects.
6980 (Expand_N_Conditional_Entry_Call): Add support for expansion of
6981 dispatching conditional selects.
6982 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
6983 protection when there is a protected type that implements limited
6985 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
6987 (Extract_Dispatching_Call): Extract the entity of the name of a
6988 dispatching call, the object parameter, actual parameters and
6989 corresponding formals.
6990 (Make_Initialize_Protection): Correct logic of protection initialization
6991 when there is a protected type that implements a limited interface.
6992 (Parameter_Block_Pack): Populate a wrapped parameter block with the
6993 values of actual parameters.
6994 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
6995 block and assign them to the original actual parameters.
6997 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
6998 (Build_Protected_Sub_Specification): Change the type and name of the
6999 last formal to account for the increased variety of protection modes.
7001 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
7002 entities. Used to save the value of the Is_Hidden attribute when the
7003 limited-view is installed.
7004 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
7005 the attribute of procedures classified as entry wrappers.
7006 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
7007 entity of a primitive wrapper.
7008 (Write_Entity_Flags): Output the name and value of the
7009 Is_Primitive_Wrapper attribute.
7010 (Write_Field27_Name): Output the name and entity of the field Wrapped_
7012 (Underlying_Type): If we have an incomplete entity that comes from
7013 the limited view then we return the Underlying_Type of its non-limited
7014 view if it is already available.
7015 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
7016 including operators.
7017 (Write_Field26_Name): Add entry for Overridden_Operation
7018 (Overridden_Operation): New attribute of functions and procedures.
7020 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
7021 predefined position in the dispatch table for the primitive operations
7022 used in dispatching selects.
7023 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
7024 predefined primitive operations and replace it with
7025 Default_Prim_Op_Count.
7026 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
7027 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
7028 the names of the generated primitive operations used in dispatching
7030 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
7031 case of abstract interface types. They will be inherit by the objects
7032 implementing the interface.
7033 (Make_DT): There is no need to inherit the dispatch table of the
7034 ancestor interface for the elaboration of abstract interface types.
7035 The dispatch table will be inherited by the object implementing the
7037 (Copy_Secondary_DTs): Add documentation.
7038 (Validate_Position): Improve this static check in case of
7039 aliased subprograms because aliased subprograms must have
7041 (Init_Predefined_Interface_Primitives): New subprogram that initializes
7042 the entries associated with predefined primitives of all the secondary
7044 (Build_Anonymous_Access_Type): Removed.
7045 (Expand_Interface_Actuals): With the previous cleanup there is no need
7046 to build an anonymous access type. This allows further cleanup in the
7047 code generated by the expander.
7048 (Expand_Interface_Conversion): If the actual is an access type then
7049 build an internal function to handle the displacement. If the actual
7050 is null this function returns null because no displacement is
7051 required; otherwise performs a type conversion that will be
7052 expanded in the code that returns the value of the displaced actual.
7053 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
7054 conversions that have no effect in the generated code because no
7055 displacement is required. Code cleanup; use local variables to
7056 avoid repeated calls to the subprogram directly_designated_type().
7058 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7059 Classify the primitive operations used in dispatching selects as
7061 (Implements_Limited_Interface): Determine whether some type either
7062 directly implements a limited interface or extends a type that
7063 implements a limited interface.
7064 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
7065 (Expand_Subtype_From_Expr): Do not build actual subtype if the
7066 expression is limited.
7067 (Find_Interface_Tag): Add code to handle class-wide types and
7068 entities from the limited-view.
7070 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
7071 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
7072 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
7073 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
7076 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
7077 of procedure name or prefix that appears as a trigger in a triggering
7080 * uintp.ads: Introduce constants Uint_11 and Uint_13.
7082 2005-09-01 Arnaud Charlet <charlet@adacore.com>
7084 * s-tataat.adb, a-tasatt.adb:
7085 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
7087 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
7088 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
7089 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
7092 2005-09-01 Arnaud Charlet <charlet@adacore.com>
7093 Jose Ruiz <ruiz@adacore.com>
7095 * s-taprop-vxworks.adb:
7096 Move with clauses outside Warnings Off now that dependent units are
7098 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
7099 initialization of this unit.
7100 (Specific): Add new procedures Initialize and Delete so that this
7101 package can be used for VxWorks 5.x and 6.x
7102 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
7103 differences between VxWorks 5.x and 6.x
7105 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
7107 Use only Preelaborate-compatible constructs.
7109 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
7110 Primitives.Operations.
7111 (Delete, Initialize): New procedures.
7113 * s-osinte-vxworks.adb: Body used to handle differences between
7115 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
7117 * s-osinte-vxworks.ads: Minor reformatting.
7118 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
7119 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
7121 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
7122 between Vxworks 5 and 6.
7123 (taskLock, taskUnlock): Removeed, no longer used.
7125 * adaint.c: The wait.h header is not located in the sys directory on
7126 VxWorks when using RTPs.
7127 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
7129 (__gnat_dup): dup is available on Vxworks when using RTPs.
7130 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
7132 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
7134 * expect.c: The wait.h header is not located in the sys directory on
7135 VxWorks when using RTPs.
7137 2005-09-01 Thomas Quinot <quinot@adacore.com>
7139 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
7141 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
7143 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
7144 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
7145 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
7146 g-soccon-freebsd.ads: Add new constants:
7148 SO_RCVTIMEO/SO_SNDTIMEO
7152 Move all target-specific file inclusions and macro definitions to
7153 gsocket.h, in order to ensure that any C code in socket.c will see a
7154 set of constants that is consistent with the contents of g-soccon.ads.
7156 * gsocket.h: Code imported from gen-soccon.c:
7157 Move all target-specific file inclusions and macro definitions to
7158 gsocket.h, in order to ensure that any C code in socket.c will see a set
7159 of constants that is consistent with the contents of g-soccon.ads.
7160 This change also makes gen-soccon self-contained (removing dependencies
7161 upon GCC internal headers).
7163 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
7165 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
7167 * socket.c: Minor reformatting.
7169 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7170 Thomas Quinot <quinot@adacore.com>
7172 * fname-sf.adb, mlib-tgt.ads,
7173 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
7174 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
7175 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
7176 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
7177 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
7178 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
7179 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
7180 makegpr.adb: Remove redundant use_clauses.
7182 2005-09-01 Arnaud Charlet <charlet@adacore.com>
7184 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
7185 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
7186 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
7187 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
7188 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
7189 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
7190 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
7191 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
7192 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7193 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
7194 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
7195 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
7196 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
7197 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
7198 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
7199 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7200 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
7201 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
7202 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
7203 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7204 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
7205 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
7206 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
7207 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
7208 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
7209 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
7210 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
7211 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
7212 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
7213 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
7214 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
7215 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
7216 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
7217 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
7218 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
7219 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
7220 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
7221 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
7222 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
7223 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
7224 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
7225 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
7226 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
7227 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
7228 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
7229 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
7230 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
7231 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
7232 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
7233 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
7234 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
7235 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
7236 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
7237 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
7238 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
7239 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
7240 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
7241 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
7242 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
7243 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
7244 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
7245 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
7246 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
7247 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
7248 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
7249 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
7250 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
7251 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
7252 and always use the no parameter form for consistency.
7254 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
7256 2005-09-01 Robert Dewar <dewar@adacore.com>
7258 * binde.adb: Minor reformatting
7259 (Find_Elab_Order): Output warning if -p used with static elab order
7261 2005-09-01 Robert Dewar <dewar@adacore.com>
7263 * checks.adb (Check_Needed): New procedure, deals with removing checks
7264 based on analysis of short-circuited forms. Also generates warnings for
7265 improper use of non-short-circuited forms.
7268 2005-09-01 Robert Dewar <dewar@adacore.com>
7270 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
7273 2005-09-01 Robert Dewar <dewar@adacore.com>
7275 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
7277 Implement new insertion char < (conditional warning)
7278 * errutil.adb, erroutc.adb: Implement new insertion char <
7279 (conditional warning).
7280 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
7281 (Error_Msg_Warn): New variable for < insertion char.
7282 * prj-nmsc.adb: Implement new errout insertion char < (conditional
7284 (Check_For_Source): Change value of Source_Id only after the current
7285 source has been dealt with.
7287 2005-09-01 Robert Dewar <dewar@adacore.com>
7288 Doug Rupp <rupp@adacore.com>
7290 * exp_attr.adb: Handle vax fpt for 'Valid attribute
7291 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
7292 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
7293 (Valid_D, Valid_F, Valid_G): New functions
7295 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7296 Hristian Kirtchev <kirtchev@adacore.com>
7297 Javier Miranda <miranda@adacore.com>
7299 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
7300 from object notation, the original node is unanalyzed and carries no
7301 semantic information, so that accessiblity checks must be performed on
7302 the type of the actual itself.
7303 (Expand_N_Subprogram_Declaration): Change last actual parameter for
7304 compatibility with Build_Protected_Sub_Specification.
7305 (Check_Overriding_Inherited_Interfaces): Add suport to handle
7306 overloaded primitives.
7307 (Register_Interface_DT_Entry): Use the new name of the formal
7308 the the calls to Expand_Interface_Thunk
7310 * exp_dbug.ads: Augment comments on encoding of protected types to
7311 include the generation of dispatching subprograms when the type
7312 implements at least one interface.
7314 * lib.ads: Extend information in Load_Stack to include whether a given
7315 load comes from a Limited_With_Clause.
7317 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
7318 whether a potential circularity is harmless, because it includes units
7319 loaded through a limited_with clause. Extends previous treatment which
7320 did not handle properly arbitrary combinations of limited and
7321 non-limited clauses.
7323 2005-09-01 Nicolas Setton <setton@adacore.com>
7325 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
7326 to be encoded as typ___XBLU_lowerbound__upperbound instead of
7327 typ___XB_lowerbound__upperbound.
7329 2005-09-01 Thomas Quinot <quinot@adacore.com>
7331 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
7332 dummy access formal for RACW/RAS TypeCode TSS.
7333 (Build_TypeCode_Call): Do not generate dummy null access actual for
7334 calls to the TypeCode TSS.
7336 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7338 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
7339 fully qualified name, to distinguish instances with the same local name.
7341 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
7344 2005-09-01 Robert Dewar <dewar@adacore.com>
7346 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
7349 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
7351 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
7352 (Free): New deallocation procedure for filter elements
7353 (Close): Deallocate any existing filter for the concerned connection
7355 2005-09-01 Laurent Pautet <pautet@adacore.com>
7357 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
7358 position set is provided, we compute one in order to reduce the maximum
7359 length of the keys. This computation first selects a character
7360 position between 1 and the minimum length of the keys in order to
7361 avoid reducing one of the keys to an empty string.
7362 (Initialize, Compute): When the ratio V to K is too low, the algorithm
7363 does not converge. The initialization procedure now comes with a
7364 maximum number of iterations such that when exceeded, an exception is
7365 raised in Compute. The user can initialize this ratio to another value
7367 Reformating and updated headers.
7369 2005-09-01 Javier Miranda <miranda@adacore.com>
7371 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
7372 that given an entity T creates and returns an Itype that duplicates the
7373 contents of T. The returned Itype has the null-exclusion
7374 attribute set to True, and its Etype attribute references T
7375 to keep the association between the two entities.
7376 Update copyright notice
7378 * sem_aggr.adb (Check_Can_Never_Be_Null,
7379 Aggregate_Constraint_Checks, Resolve_Aggregate,
7380 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
7382 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
7384 2005-09-01 Gary Dismukes <dismukes@adacore.com>
7385 Robert Dewar <dewar@adacore.com>
7386 Hristian Kirtchev <kirtchev@adacore.com>
7388 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
7391 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
7393 Call Set_Result_Definition instead of Set_Subtype_Mark.
7394 (P_Subprogram_Specification): Add parsing of anonymous access result
7395 plus null exclusions. Call Set_Result_Definition instead of
7398 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
7399 (P_Access_Type_Definition): Add parsing for an anonymous access result
7400 subtype, plus parsing for null exclusions. Call Set_Result_Definition
7401 instead of Set_Subtype_Mark.
7403 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
7404 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
7405 (Result_Definition): New function for N_Function_Specifications.
7406 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
7407 N_Function_Specification.
7408 (Set_Null_Exclusion_Present): Allow this flag for
7409 N_Function_Specification.
7410 (Set_Result_Definition): New procedure for N_Function_Specifications.
7411 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
7412 and N_Function_Specification.
7414 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
7415 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
7416 Add support for LIMITED NEW for Ada 2005 AI-419
7417 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
7418 syntax for anonymous access results.
7419 Replace Subtype_Mark field by Result_Definition in
7420 N_Function_Specification and N_Access_Definition specs.
7421 Add Null_Exclusion_Present to spec of N_Function_Specification.
7422 (Result_Definition): New function for N_Function_Specification and
7423 N_Access_Function_Definition.
7424 (Set_Result_Definition): New procedure for N_Function_Specification and
7425 N_Access_Function_Definition.
7427 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
7428 Result_Definition for cases of N_Access_Function_Definition and
7429 N_Function_Specification.
7430 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
7432 2005-09-01 Vincent Celier <celier@adacore.com>
7434 * lib-writ.adb: Update Copyright notice
7435 (Write_With_Lines): On platforms where file names are case-insensitive,
7436 record the file names in lower case.
7437 (Write_ALI): For D lines, on platforms where file names are
7438 case-insensitive, record the file names in lower case.
7440 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7441 Emmanuel Briot <briot@adacore.com>
7443 * lib-xref.adb (Output_Overridden_Op): Display information on
7444 overridden operation.
7446 * lib-xref.ads: Add documentation on overridden operations.
7448 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
7451 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
7452 overriding entity information.
7454 2005-09-01 Vincent Celier <celier@adacore.com>
7456 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
7457 including those that are inherited.
7459 2005-09-01 Robert Dewar <dewar@adacore.com>
7461 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
7463 * par-prag.adb: Implement new pragma Debug_Policy
7465 * sem_prag.adb Implement new pragma Debug_Policy
7466 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
7467 Component_Size attribute specification. Give warning for ignored pragma
7470 * snames.h, snames.ads, snames.adb: Introduce entries in
7471 Preset_Names for Name_Disp_Asynchronous_Select,
7472 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
7473 Name_Disp_Timed_Select.
7474 New pragma Debug_Policy
7476 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
7478 Switch -gnata also sets Debug_Pragmas_Enabled
7480 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
7481 handle an explicit -gnata when compiling predefined files.
7483 2005-09-01 Vincent Celier <celier@adacore.com>
7485 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
7486 directories of projects that have no Ada sources.
7488 2005-09-01 Robert Dewar <dewar@adacore.com>
7490 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
7491 (makes a difference for wide characters)
7493 * widechar.adb, widechar.ads:
7494 Add Wide_Char_Byte_Count feature to count chars vs bytes
7496 2005-09-01 Thomas Quinot <quinot@adacore.com>
7497 Ed Schonberg <schonberg@adacore.com>
7498 Robert Dewar <dewar@adacore.com>
7500 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
7501 'Address attribute reference with an overloaded prefix, use the
7502 location of the prefix (not the location of the attribute reference) as
7504 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
7505 a function renaming thereof, is a valid prefix for 'Size (where it is
7506 intepreted as a function call).
7507 (Statically_Denotes_Entity): New predicate to determine whether the
7508 prefix of an array attribute can be considered static.
7511 (Eval_Attr): Fix failure to evaluate Component_Size for
7512 unconstrained arrays (resulted in wrong value in packed case, since
7513 back end cannot handle this case)
7515 2005-09-01 Robert Dewar <dewar@adacore.com>
7517 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
7518 error msgs for most common cases.
7519 Use new errout insertion char < (conditional warning)
7521 2005-09-01 Javier Miranda <miranda@adacore.com>
7522 Ed Schonberg <schonberg@adacore.com>
7524 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
7525 become local to the whole package.
7526 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
7527 the package was already analyzed the new algorithm "replaces" the
7528 real entities by the shadow ones. This is required to ensure that
7529 the order of these entities in the homonym chains does not change;
7530 otherwise we can have undefined references at linking time because
7531 in case of conflicts the external name of the entities will have
7532 a suffix that depends on the order of the entities in the chain.
7533 (Remove_Limited_With_Clause): Complementary code that completes the
7534 new algorithm and replaces the shadow entities by the real ones.
7535 (Install_Limited_Withed_Unit): When unchaining entities before the
7536 installation of the shadow entities, only regular entities of the
7537 public part must be taken into account. This is required to
7538 keep this routine in synch with the work done by Remove_Limited_
7540 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
7541 even if unit is analyzed, because the analysis of the unit is
7542 idempotent in any case, and the limited view of the unit may have to
7543 be installed for proper visibility.
7544 (Expand_Limited_With_Clause): Even if the unit in the implicit
7545 with_clause has been analyzed already, a limited view of the package
7546 must be built for the current context, if it does not exist yet.
7548 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7549 Javier Miranda <miranda@adacore.com>
7550 Gary Dismukes <dismukes@adacore.com>
7552 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
7553 defining entity for the instance body, make a new defining identifier
7554 rather than copying the entity of the spec, to prevent accidental
7555 sharing of the entity list.
7556 (Check_Private_View): When exchanging views of private types, build the
7557 list of exchanged views as a stack, to ensure that on exit the exchanges
7558 are undone in the proper order.
7559 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
7560 Restore the compilation environment in case of instantiation_error.
7561 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
7562 for an anonymous access result.
7563 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
7564 (Formal_Entity): Handle properly the case of a formal package that
7565 denotes a generic package renaming.
7567 2005-09-01 Thomas Quinot <quinot@adacore.com>
7569 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
7570 clause if the array aggregate is surrounded by parentheses.
7572 2005-09-01 Cyrille Comar <comar@adacore.com>
7573 Gary Dismukes <dismukes@adacore.com>
7574 Ed Schonberg <schonberg@adacore.com>
7575 Javier Miranda <miranda@adacore.com>
7577 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
7579 to check if a type is Constrained in cases related to code generation
7580 (rather than semantic checking) since otherwise we do not generate
7581 similar code for mutable private types depending if their
7582 discriminants are visible or not.
7583 (Check_Abstract_Overriding): Do not complain about failure to override
7584 the primitive operations used in dispatching selects since they will
7585 always be overriden at the freeze point of the type.
7586 (Access_Definition): Separate out handling for resetting the scope
7587 of an anonymous access function result type. Retrieve the scope
7588 of the associated function rather than using Current_Scope, which
7589 does not have a consistent value (depends on whether we're in the
7590 middle of analyzing formal parameters). Add ??? comment about
7591 finding a cleaner way to handle the special cases of scope setting.
7592 (Process_Incomplete_Dependents): A protected operation is never a
7593 dispatching operation (only its wrapper may be).
7594 (Build_Derived_Record_Type): In case of tagged private types that
7595 implement interfaces add derivation of predefined primitive
7597 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
7598 by two parameters that are used in case of derivation from abstract
7599 interface types: No_Predefined_Prims is used to avoid the derivation
7600 of predefined primitives from the interface, and Predefined
7601 Prims_Only is used to complete the derivation predefined primitives
7602 in case of private tagged types implementing interfaces.
7603 Fix typo in comments
7604 (Find_Interface_In_Descendant): Protect the frontend against
7605 wrong code with large circularity chains.
7606 (Is_Private_Overriding): Add support for entities overriding interface
7607 subprograms. The test failed because Entities associated with overriden
7608 interface subprograms are always marked as hidden (and used to build
7609 the secondary dispatch table); in this case the overriden entity is
7610 available through the field abstract_interface_alias (cf. override_
7611 dispatching_operation)
7612 (Access_Definition): Set the scope of the type to Current_Scope for the
7613 case of a function with an anonymous access result type.
7614 (Access_Subprogram_Declaration): Handle creation of the type entity for
7615 an access-to-function type with an anonymous access result.
7616 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
7617 in handling for N_Access_Function_Definition.
7618 (Analyze_Subtype_Declaration): Modify the text of error message.
7619 (Derived_Type_Declaration): Modify the text of error message.
7620 (Process_Subtype): Modify the text of error message plus cleanup
7621 of one redundant error message.
7622 (Analyze_Component_Declaration): Code cleanup.
7623 (Analyze_Object_Declaration): Code cleanup.
7624 (Analyze_Subtype_Declaration): Propagate the null-exclusion
7625 attribute in case of access types. Code cleanup.
7626 (Array_Type_Declaration): Code cleanup.
7627 (Process_Discriminants): Create the new null-excluding itype
7628 if required. Code cleanup.
7629 (Process_Subtype): Create the new null-excluding itype if
7630 required. Code cleanup.
7631 (Build_Derived_Record_Type): Code cleanup to avoid calling
7632 twice the subprogram derive_subprograms in case of private
7633 types that implement interfaces. In this particular case the
7634 subprogram Complete_Subprograms_Derivation already does the
7635 job associated with the second call.
7637 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
7638 conversion to the full view when generating an operation for a
7639 discriminant whose type may currently be private.
7641 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7642 Javier Miranda <miranda@adacore.com>
7644 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
7645 V (Obj.F), the rewriting does not involve the indexed component, but
7646 only the selected component itself.
7647 Do not apply the transformation if the analyzed node is an actual of a
7648 call to another subprogram.
7649 (Complete_Object_Operation): Retain the entity of the
7650 dispatching operation in the selector of the rewritten node. The
7651 entity will be used in the expansion of dispatching selects.
7652 (Analyze_One_Call): Improve location of the error message associated
7654 (Analyze_Selected_Component): No need to resolve prefix when it is a
7655 function call, resolution is done when parent node is resolved, as
7657 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
7658 when attempting to resolve a call transformed from its object notation.
7659 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
7660 of the argument list for each interpretation of the operation.
7661 (Try_Object_Operation): The designated type of an access parameter may
7662 be an incomplete type obtained through a limited_with clause, in which
7663 case the primitive operations of the type are retrieved from its full
7665 (Analyze_Call): If this is an indirect call, and the return type of the
7666 access_to_subprogram is incomplete, use its full view if available.
7668 2005-09-01 Javier Miranda <miranda@adacore.com>
7669 Gary Dismukes <dismukes@adacore.com>
7671 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
7672 access types the null-exclusion and access-to-constant attributes must
7674 (Analyze_Return_Statement): When the result type is an anonymous access
7675 type, apply a conversion of the return expression to the access type
7676 to ensure that appropriate accessibility checks are performed.
7677 (Analyze_Return_Type): For the case of an anonymous access result type,
7678 generate the Itype and set Is_Local_Anonymous_Access on the type.
7679 Add ??? placeholder for check to disallow returning a limited object
7680 in Ada 2005 unless it's an aggregate or a result of a function call.
7681 Change calls from Subtype_Mark to Result_Definition.
7682 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
7683 Result_Definition in call to Make_Function_Specification.
7684 (Build_Body_To_Inline): Change Set_Subtype_Mark to
7685 Set_Result_Definition.
7686 (Make_Inequality_Operator): Change formal Subtype_Mark to
7687 Result_Definition in call to Make_Function_Specification.
7688 (Process_Formals): Create the new null-excluding itype if required.
7689 (New_Overloaded_Entity): For an entity overriding an interface primitive
7690 check if the entity also covers other abstract subprograms in the same
7691 scope. This is required to handle the general case, that is, overriding
7692 other interface primitives and overriding abstract subprograms inherited
7693 from some abstract ancestor type.
7694 (New_Overloaded_Entity): For an overriding entity that comes from
7695 source, note the operation that it overrides.
7696 (Check_Conformance, Type_Conformant): Addition of one new formal
7697 to skip controlling formals in the analysis. This is used to
7698 handle overloading of abstract interfaces.
7699 (Base_Types_Match): Add missing case for types imported from
7700 limited-with clauses
7701 (New_Overloaded_Entity): Add barrier to protect the use of
7702 the "alias" attribute.
7704 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7706 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
7707 verify that the procedure and the entry are mode conformant.
7708 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
7709 as a different operator, which is often a cut-and-paste error.
7711 2005-09-01 Javier Miranda <miranda@adacore.com>
7712 Ed Schonberg <schonberg@adacore.com>
7714 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
7715 used in controlling parameters exclude null because it is necessary to
7716 read the tag to dispatch, and null has no tag.
7717 (Override_Dispatching_Operation): If the previous operation is inherited
7718 from an interface, it becomes hidden and does not participate in later
7721 2005-09-01 Javier Miranda <miranda@adacore.com>
7722 Ed Schonberg <schonberg@adacore.com>
7723 Gary Dismukes <dismukes@adacore.com>
7725 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
7726 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
7727 the expander will generate the corresponding run-time check to evaluate
7729 (Resolve_Call): Check for legal type of procedure name or prefix that
7730 appears as a trigger in a triggering alternative.
7731 (Valid_Conversion): If expression is ambiguous and the context involves
7732 an extension of System, remove System.Address interpretations.
7733 (Resolve_Qualified_Expression): Reject the case of a specific-type
7734 qualification applied to a class-wide argument. Enhance comment
7735 to explain checking of Original_Node.
7736 (Resolve_Type_Conversion): The location of the error message was not
7737 general enough to handle the general case and hence it has been removed.
7738 In addition, this patch improves the text of the message.
7739 (Resolve_Type_Conversion): Add missing support for access to interface
7741 (Resolve_Type_Conversion): If the target is a class-wide interface type,
7742 do not expand if the expression is the actual in a call, because proper
7743 expansion will take place when the call itself is expanded.
7744 (Resolve_Allocator): If the context is an unchecked conversion, the
7745 allocator inherits its storage pool, if any, from the target type of
7748 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7749 Javier Miranda <miranda@adacore.com>
7751 * sem_type.adb (Add_One_Interp): If a candidate operation is an
7752 inherited interface operation that has an implementation, use the
7753 implementation to avoid spurious ambiguities.
7754 (Interface_Present_In_Ancestor): In case of concurrent types we can't
7755 use the Corresponding_Record_Typ attribute to look for the interface
7756 because it is set by the expander (and hence it is not always
7757 available). For this reason we traverse the list of interfaces
7758 (available in the parent of the concurrent type).
7759 (Interface_Present_In_Ancestor): Handle entities from the limited view
7761 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7763 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
7764 from the list of required components.
7765 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
7766 primitive procedure of a limited interface with a controlling first
7768 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
7770 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
7771 capture if it is generated in the second operand of a short-circuit
7773 Do not capture values for variables with address clauses.
7774 (Is_Object_Reference): Treat a function call as an object reference only
7775 if its type is not Standard_Void_Type.
7777 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7779 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
7780 to a variable that is statically known to be constant.
7782 2005-09-01 Geert Bosch <bosch@adacore.com>
7783 Robert Dewar <dewar@adacore.com>
7785 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
7786 (VAXGF_Safe_First): Idem.
7788 2005-09-01 Robert Dewar <dewar@adacore.com>
7789 Arnaud Charlet <charlet@adacore.com>
7791 * g-dirope.ads: Minor reformatting
7792 Document that bounds of result of Base_Name match the input index
7794 Add documentation on environment variable syntax for Expand_Path
7796 * gnat_ugn.texi: Update documentation to include mention of -m switches
7797 Document new treatment of wide characters in max line length
7799 Remove -gnatL/-gnatZ switches, no longer used.
7800 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
7803 * gnat_rm.texi: Add doc for two argument form of pragma
7804 Float_Representation.
7805 Add documentation for pragma No_Strict_Aliasing
7806 Add note that explicit component clause overrides pragma Pack.
7807 Add documentation of pragma Debug_Policy
7809 2005-09-01 Matthew Heaney <heaney@adacore.com>
7811 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
7812 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
7813 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
7814 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
7815 draft (Draft 13, August 2005) of Ada Amendment 1.
7817 2005-09-01 Arnaud Charlet <charlet@adacore.com>
7819 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
7820 Note that the platform-specific version of g-soccon.ads for VMS is now
7821 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
7822 really is a package spec).
7823 Replace s-taspri-linux.ads by s-taspri-posix.ads
7824 Remove references to s-mastop-x86.adb
7826 * system-vxworks-xscale.ads: Removed, no longer used.
7827 * s-vxwork-xscale.ads: Removed, no longer used.
7829 2005-09-01 Robert Dewar <dewar@adacore.com>
7831 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
7832 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
7833 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
7834 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
7835 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
7836 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
7837 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
7838 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
7839 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
7840 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
7841 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
7842 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
7843 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
7844 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
7845 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
7846 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
7847 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
7848 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
7849 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
7850 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
7851 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
7853 2005-08-29 Arnaud Charlet <charlet@adacore.com>
7857 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
7859 2005-08-29 Arnaud Charlet <charlet@adacore.com>
7860 Doug Rupp <rupp@adacore.com>
7862 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
7864 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
7865 this code in the GNAT run-time.
7867 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
7870 * init.c (__gnat_error_handler [many]): Mark "msg" as const
7871 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
7873 (__gnat_inside_elab_final_code): Moved here from
7874 Standard_Library and only defined for the compiler.
7875 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
7876 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
7877 using RTPs because directly vectored Interrupt routines are not
7878 supported on this configuration.
7879 (getpid): Do not redefine this function on VxWorks when using RTPs
7880 because this primitive is well supported by the RTP libraries.
7881 (copy_msg): Correct the code that checks for buffer overflow.
7882 Discovered during code reading.
7884 2005-08-29 Olivier Hainque <hainque@adacore.com>
7886 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
7887 a library level mutable variable with an initializer, tell
7888 build_allocator to ignore the initializer's size. It may not be large
7889 enough for all the values that might be assigned to the variable later
7892 2005-08-29 Arnaud Charlet <charlet@adacore.com>
7893 Eric Botcazou <ebotcazou@adacore.com>
7895 * trans.c: Protect < in error msg with quote
7896 Replace GCC_ZCX by Back_End_Exceptions.
7897 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
7898 has been sufficiently aligned in the record.
7900 2005-08-15 James E. Wilson <wilson@specifix.com>
7902 * system-linux-alpha.ads: Change ia64 to alpha.
7904 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
7906 * decl.c, utils.c: Fix comment typos.
7908 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
7910 * decl.c, init.c, initialize.c: Fix comment typos.
7912 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
7914 Make CONSTRUCTOR use VEC to store initializers.
7915 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
7917 * trans.c (extract_values): Likewise.
7918 * utils.c (convert, remove_conversions): Likewise.
7919 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
7920 gnat_build_constructor): Likewise.
7922 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
7924 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
7926 (compare_field_bitpos): Likewise.
7928 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
7930 * utils.c (create_var_decl): Only set DECL_COMMON on
7931 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
7932 VAR_OR_FUNCTION_DECL_P.
7934 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
7936 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
7939 2005-07-07 Pascal Obry <obry@adacore.com>
7941 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
7942 returned type on Windows.
7944 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
7947 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
7948 exception in this case.
7949 Simplify the code as "Image (Image'Range)" = "Image".
7951 2005-07-07 Vincent Celier <celier@adacore.com>
7953 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
7954 the destructor/constructor attributes for <lib>final/<lib>init.
7956 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
7958 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
7960 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
7961 type if the parameter is not passed by copy but reference by default.
7963 2005-07-07 Javier Miranda <miranda@adacore.com>
7965 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
7966 Reimplementation of the support for abstract interface types in order
7967 to leave the code more clear and easy to maintain.
7969 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
7970 abstract interface types in order to leave the code clearer and easier
7973 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
7974 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
7975 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
7976 appropriate entry of the secondary dispatch table.
7977 (Make_DT): Add code to inherit the secondary dispatch tables of
7980 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
7981 implementing both functionalities by means of a common routine, each
7982 routine has its own code.
7984 2005-07-07 Javier Miranda <miranda@adacore.com>
7986 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
7988 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
7991 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
7994 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
7995 use of tag incomplete types.
7997 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
7998 give support to tagged incomplete types.
8000 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
8001 expression is a discriminant reference and its type is private, as can
8002 happen within a stream operation for a mutable record, use the full
8003 view of the type to resolve the case alternatives.
8004 (Analyze_Assignment): Check wrong dereference of incomplete types.
8006 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
8009 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
8012 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
8013 N_Incomplete_Type_Declaration nodes.
8015 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
8016 Tag_Present to give support to tagged incomplete types:
8018 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
8021 2005-07-07 Olivier Hainque <hainque@adacore.com>
8025 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
8026 definitions for the Unwind wrappers in the compiler case.
8028 2005-07-07 Ed Schonberg <schonberg@adacore.com>
8029 Javier Miranda <miranda@adacore.com>
8031 * par-load.adb (Load): If a child unit is loaded through a limited_with
8032 clause, each parent must be loaded as a limited unit as well.
8034 * sem_ch10.adb (Previous_Withed_Unit): Better name for
8035 Check_Withed_Unit. Return true if there is a previous with_clause for
8036 this unit, whether limited or not.
8037 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
8039 (Is_Visible_Through_Renamings): New local subprogram of install_limited
8040 _withed_unit that checks if some package installed through normal with
8041 clauses has a renaming declaration of package whose limited-view is
8042 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
8043 of the current Draft document for Ada 2005.
8044 (Analyze_Context): Complete the list of compilation units that
8045 are allowed to contain limited-with clauses. It also contains
8046 checks that were previously done by Install_Limited_Context_Clauses.
8047 This makes the code more clear and easy to maintain.
8048 (Expand_Limited_With_Clause) It is now a local subprogram of
8049 Install_Limited_Context_Clauses, and contains the code that adds
8050 the implicit limited-with clauses for parents of child units.
8051 This functionality was prevously done by Analyze_Context.
8053 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
8056 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
8057 been erroneously named in a limited-with clause of its own context.
8058 In this case the error has been previously notified by Analyze_Context.
8060 2005-07-07 Ed Schonberg <schonberg@adacore.com>
8062 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
8063 generic package that contains local declarations with the same name.
8064 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
8066 2005-07-07 Bernard Banner <banner@adacore.com>
8068 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
8069 ia64 platform only on platforms that you the GCC unwind library
8070 rather than the system unwind library.
8072 2005-07-07 Thomas Quinot <quinot@adacore.com>
8074 * expect.c: Minor reformatting
8076 2005-07-07 Sergey Rybin <rybin@adacore.com>
8078 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
8081 * gnat_ugn.texi: Add description for new gnatpp option
8084 2005-07-04 Thomas Quinot <quinot@adacore.com>
8086 * g-expect-vms.adb, g-expect.ads, g-expect.adb
8087 (Get_Command_Output): New subprogram to launch a process and get its
8088 standard output as a string.
8090 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
8091 Olivier Hainque <hainque@adacore.com>
8093 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
8094 fetch a code-range descriptor associated with the machine state. On
8095 failure set the machine state's PC to 0; on success, pass the
8096 descriptor to exc_virtual_unwind.
8098 * init.c (Tru64 section): New function __gnat_set_code_loc.
8100 2005-07-04 Vincent Celier <celier@adacore.com>
8102 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
8103 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
8104 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
8105 Remove all auto-initialization code, as this is now done through the
8106 constructor mechanism.
8108 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
8109 __gnat_sals_init_using_constructors): New functions.
8111 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
8112 Linker_Constructor and Linker_Destructor when switch -a is used.
8114 * bindusg.adb: Add line for new switch -a
8116 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
8117 (Gnatbind): When switch -a is used, check if it is allowed
8119 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
8121 2005-07-04 Joel Brobecker <brobecker@adacore.com>
8123 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
8124 This prevents us from hitting a limitation during the debug info
8125 generation when using stabs.
8126 (Prims_Ptr): Likewise.
8128 2005-07-04 Gary Dismukes <dismukes@adacore.com>
8129 Ed Schonberg <schonberg@adacore.com>
8130 Javier Miranda <miranda@adacore.com>
8132 * checks.adb (Null_Exclusion_Static_Checks): In the case of
8133 N_Object_Declaration, only perform the checks if the Object_Definition
8134 is not an Access_Definition.
8136 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
8137 where the parent of an the access definition is an N_Object_Declaration
8138 when determining the Associated_Node_For_Itype and scope of an
8139 anonymous access-to-subprogram type.
8141 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
8142 Corresponding_Spec on the body created for a null procedure. Add ???
8143 comment. Remove New_Copy_Tree call on body argument to
8146 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
8147 discriminants, use the type of the actual as well, because the
8148 discriminants may be read by the called subprogram.
8150 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
8151 access type we do not need to handle non-limited views.
8152 (Build_Derived_Record_Type): Additional check to check that in case of
8153 private types, interfaces are only allowed in private extensions.
8155 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
8157 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
8158 <Pragma_Linker_Destructor>: Likewise.
8160 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
8161 Pragma_Linker_Destructor.
8163 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
8164 ATTR_LINK_DESTRUCTOR.
8165 (static_ctors, static_dtors): New variables.
8167 * misc.c (gnat_expand_body): Output current function as constructor
8168 and destructor if requested.
8170 * par-prag.adb: Add processing for pragma Linker_Constructor and
8173 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
8174 extracted from Check_Interrupt_Or_Attach_Handler.
8175 (Check_Interrupt_Or_Attach_Handler): Invoke it.
8176 Implement pragma Linker_Constructor and Linker_Destructor with the
8177 help of Find_Unique_Parameterless_Procedure.
8178 Replace Name_Alias with Name_Target for pragma Linker_Alias.
8180 * snames.h, snames.ads, snames.adb:
8181 Add Name_Linker_Constructor and Name_Linker_Destructor.
8182 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
8183 * snames.adb: Remove Name_Alias.
8185 * trans.c: Include cgraph.h.
8186 (build_global_cdtor): New function.
8187 (Compilation_Unit_to_gnu): Build global constructor and destructor if
8189 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
8191 (addressable_p) <COMPONENT_REF>: Unconditionally test
8192 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
8194 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
8195 variable if it is external.
8197 (static_ctors, static_dtors): New global variables.
8198 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
8199 <ATTR_LINK_DESTRUCTOR>: Likewise.
8200 (end_subprog_body): Chain function as constructor and destructor
8203 * exp_util.adb (Force_Evaluation): Unconditionally invoke
8204 Remove_Side_Effects with Variable_Ref set to true.
8205 (Remove_Side_Effects): Handle scalar types first. Use a renaming
8206 for non-scalar types even if Variable_Ref is true and for class-wide
8209 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8211 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
8212 to prevent spurious warnings.
8214 2005-07-04 Thomas Quinot <quinot@adacore.com>
8216 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
8217 Itypes. Itypes are really unexpected there.
8218 (Build_TypeCode_Function): Generalise special processing for Itypes to
8219 handle the case of numeric implicit base types as well as enumerated
8222 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8224 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
8225 controlled, indicate the expected type of the dereference that is
8226 created for the call to Deep_Finalize, to prevent spurious errors when
8227 the designated type is private and completed with a derivation from
8228 another private type.
8230 2005-07-04 Vincent Celier <celier@adacore.com>
8232 * make.adb (Change_To_Object_Directory): When unable to change the
8233 current dir to the object directory, output the full path of the
8236 2005-07-04 Matthew Gingell <gingell@adacore.com>
8238 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
8240 * indepsw-linux.adb: Replace by...
8242 * indepsw-gnu.adb: ...this new file
8244 2005-07-04 Vincent Celier <celier@adacore.com>
8246 * mlib-prj.adb (Auto_Initialize): New constant String
8247 (SALs_Use_Constructors): New Boolean function
8248 (Build_Library): Call gnatbind with Auto_Initialize switch when
8249 SALs_Use_Constructors returns True.
8251 * mlib-tgt.ads: Minor reformatting
8253 * mlib-utl.ads: Minor reformatting
8255 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
8257 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8259 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
8260 single protected declarations can have an interface list.
8261 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
8262 with seriously malformed entry declarations, and lead to compilation
8265 2005-07-04 Javier Miranda <miranda@adacore.com>
8267 * par-load.adb: Load the context items in two rounds.
8269 2005-07-04 Robert Dewar <dewar@adacore.com>
8271 * scng.adb: Do not consider Mod used as an attribute to be a keyword
8273 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8274 Javier Miranda <miranda@adacore.com>
8276 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
8277 type extension needs a limited view.
8278 Remove previous restriction on private types available through the
8279 limited-view (only tagged private types were previously allowed).
8280 (Install_Withed_Unit): In the code that implements the
8281 legality rule given in AI-377, exclude a child unit with the name
8282 Standard, because it is a homonym of the Standard environment package.
8284 2005-07-04 Thomas Quinot <quinot@adacore.com>
8286 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
8287 overloaded function call, carry interpretations from the original tree
8290 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8292 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
8293 types check whether some designated type is a limited view, and use
8294 the non-limited view if available.
8296 2005-07-04 Gary Dismukes <dismukes@adacore.com>
8298 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
8299 constraint of full view of a private view T1 if present, when T2 is a
8300 discriminated full view.
8302 2005-07-04 Thomas Quinot <quinot@adacore.com>
8304 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
8305 actual that is a view conversion of a bit packed array reference.
8307 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8309 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
8310 present before checking whether an interface type covers a synchronized
8313 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8315 * sem_util.adb (Is_Object_Reference): An indexed or selected component
8316 whose prefix is an implicit dereference is an object reference. Removes
8317 spurious errors when compiling with -gnatc.
8319 2005-07-04 Robert Dewar <dewar@adacore.com>
8323 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
8325 2005-07-04 Matthew Gingell <gingell@adacore.com>
8327 * tracebak.c: Enable tracebacks on ia64 platforms
8329 2005-07-04 Vincent Celier <celier@adacore.com>
8331 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
8332 the GNAT BIND command, as gnatbind accepts multiples ALI files with
8333 the -L or -n switches.
8335 2005-07-04 Vincent Celier <celier@adacore.com>
8337 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
8338 correctly computed and the main project data is not modified while
8340 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
8341 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
8342 c++linker as this does not work on some platforms.
8344 2005-07-04 Matthew Heaney <heaney@adacore.com>
8346 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
8348 * a-coinve.adb: Perform constraint checks explicitly.
8350 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8351 Thomas Quinot <quinot@adacore.com>
8353 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
8354 new target gen-soccon.
8356 2005-07-04 Robert Dewar <dewar@adacore.com>
8358 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
8360 2005-07-04 Thomas Quinot <quinot@adacore.com>
8362 * g-socket.ads (Check_Selector): Minor rewording of comment.
8364 2005-07-04 Vincent Celier <celier@adacore.com>
8366 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
8368 2005-07-04 Thomas Quinot <quinot@adacore.com>
8370 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
8372 2005-07-04 Sergey Rybin <rybin@adacore.com>
8374 * gnat_ugn.texi: Add description of --eol gnatpp option
8376 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
8377 Thomas Quinot <quinot@adacore.com>
8379 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
8380 if the user wants all calls of a subprogram to be flagged,
8381 independently of whether they are made from within the same unit or
8383 Mention restriction for pragma Linker_Alias on some platforms.
8384 Document pragma Linker_Constructor and Linker_Destructor.
8385 Rewrite documentation of Weak_External, Linker_Section and
8386 Linker_Alias pragmas.
8388 2005-07-04 Arnaud Charlet <charlet@adacore.com>
8390 * s-stausa.ads, s-stausa.adb: New files.
8392 2005-06-30 Kelley Cook
8394 * all files: Update FSF address in copyright headers.
8395 * gen-soccon.co (main): Output new FSF address in generated files.
8397 2005-06-28 Paul Brook <paul@codesourcery.com>
8399 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
8401 2005-06-14 Olivier Hainque <hainque@adacore.com>
8402 Eric Botcazou <ebotcazou@adacore.com>
8404 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
8405 exc_unwind, now that we are generating proper .debug_frame output for
8408 * tracebak.c: Remove the mips-irix section, as we are now using the
8409 s-mastop based unwinder again.
8410 Under SPARC/Solaris, take into account the stack bias to compute the
8411 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
8414 2005-06-14 Doug Rupp <rupp@adacore.com>
8416 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
8418 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
8420 2005-06-14 Pascal Obry <obry@adacore.com>
8422 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
8423 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
8424 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
8427 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
8428 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
8429 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
8430 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
8431 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
8432 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
8433 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
8434 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
8435 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
8436 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
8437 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
8438 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
8439 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
8440 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
8441 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
8442 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
8443 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
8444 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
8445 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
8446 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
8447 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
8448 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
8449 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
8450 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
8451 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
8452 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
8453 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
8454 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
8455 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
8456 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
8457 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
8458 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
8459 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
8460 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
8461 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
8462 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
8463 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
8464 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
8465 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
8466 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
8467 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
8468 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
8469 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
8470 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
8471 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
8472 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
8473 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
8474 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
8475 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
8476 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
8477 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
8478 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
8479 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
8480 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
8481 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
8482 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
8483 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
8484 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
8485 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
8486 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
8487 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
8488 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
8489 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
8490 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
8491 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
8492 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
8493 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
8494 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
8495 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
8496 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
8497 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
8498 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
8499 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
8500 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
8501 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
8502 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
8503 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8504 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
8505 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
8506 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
8507 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
8508 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
8509 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
8510 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
8511 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
8512 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
8513 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
8514 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
8515 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
8516 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
8517 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
8518 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
8519 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
8520 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
8521 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
8522 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
8523 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
8524 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
8525 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
8526 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
8527 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
8528 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
8529 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
8530 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
8531 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
8532 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
8533 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
8534 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
8535 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
8536 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
8537 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
8538 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
8539 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
8540 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
8541 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
8542 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
8543 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
8544 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
8545 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
8546 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
8547 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
8548 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
8549 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
8550 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
8551 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
8552 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
8553 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
8554 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
8555 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
8556 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
8557 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
8558 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
8559 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
8561 2005-06-14 Jose Ruiz <ruiz@adacore.com>
8562 Arnaud Charlet <charlet@adacore.com>
8564 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
8565 longer protected objects. They have been replaced by lower-level
8566 suspension objects made up by a mutex and a condition variable (or
8567 their equivalent given a particular OS) plus some internal data to
8568 reflect the state of the suspension object.
8569 (Initialize, Finalize): Add this initialization procedure for
8570 Suspension_Object, which is a controlled type.
8571 (Finalize): Add the finalization procedure for Suspension_Object,
8572 which is a controlled type.
8574 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
8575 Ada.Synchronous_Task_Control because there is no longer a need for a
8576 VxWorks specific version of this package. Target dependencies
8577 has been moved to System.Task_Primitives.Operations.
8579 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
8581 (InitializeCriticalSection, EnterCriticalSection,
8582 LeaveCriticalSection, DeleteCriticalSection): Replace the type
8583 pCriticalSection by an anonymous access type so that we avoid problems
8584 of accessibility to local objects.
8586 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
8587 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
8588 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
8589 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
8590 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
8591 set the environment task mask here.
8592 (Current_State): Add this function that returns the state of the
8594 (Set_False): Add this procedure that sets the state of the suspension
8596 (Set_True): Add this procedure that sets the state of the suspension
8597 object to True, releasing the task that was suspended, if any.
8598 (Suspend_Until_True): Add this procedure that blocks the calling task
8599 until the state of the object is True. Program_Error is raised if
8600 another task is already waiting on that suspension object.
8601 (Initialize): Add this procedure for initializing the suspension
8602 object. It initializes the mutex and the condition variable which are
8603 used for synchronization and queuing, and it sets the internal state
8605 (Finalize): Add this procedure for finalizing the suspension object,
8606 destroying the mutex and the condition variable.
8608 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
8609 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
8610 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
8611 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
8612 which provides a low-level abstraction (using operating system
8613 primitives) for Ada.Synchronous_Task_Control.
8614 This object is made up by a mutex (for ensuring mutual exclusion), a
8615 condition variable (for queuing threads until the condition is
8616 signaled), a Boolean (State) indicating whether the object is open,
8617 and a Boolean (Waiting) reflecting whether there is a task already
8618 suspended on this object.
8620 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
8621 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
8622 s-intman-vms.ads, s-intman-mingw.adb,
8623 (Initialize_Interrupts): Removed, no longer used.
8625 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
8626 (Setup_Interrupt_Mask): New procedure.
8628 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
8630 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
8632 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
8633 this is no longer done in the body of s-taprop
8634 (Server_Task): Explicitely test for Pending_Action in case
8635 System.Parameters.No_Abort is True.
8637 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
8638 is no longer done in the body of s-taprop
8640 2005-06-14 Robert Dewar <dewar@adacore.com>
8642 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
8643 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
8644 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
8645 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
8646 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
8647 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
8648 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
8649 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
8650 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
8651 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
8652 system-linux-hppa.ads, system-vms_64.ads,
8653 system-vxworks-alpha.ads: Minor comment update for
8654 AI-362 (unit is Pure).
8656 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
8657 Add pragma Pure_05 for AI-362
8658 Make remaining conversion functions obsolescent in Ada 95
8660 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
8661 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
8662 Add entries for a-wichun and a-zchuni
8663 Add a-widcha a-zchara for AI-395
8664 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
8666 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
8667 Add entries for a-wichun.o and a-zchuni.o
8668 Entries for a-widcha.o and a-zchara.o
8669 Add entry for a-chacon.o
8671 * a-ztenau.adb: Add with of Ada.Characters.Conversions
8673 * a-chacon.ads, a-chacon.adb: New files.
8675 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
8676 categorization violations.
8678 * a-strmap.ads: Add pragma Pure_05 for AI-362
8679 * a-strmap.ads: Add note on implicit categorization for AI-362
8681 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
8683 * par-prag.adb: Dummy entry for pragma Persistent_BSS
8684 Set Ada_Version_Explicit, for implementation of AI-362
8685 Add processing for pragma Pure_05 and Preelaborate_05
8686 Add entry for Assertion_Policy pragma
8688 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
8689 when needed for proper processing of categorization stuff
8692 For several cases, make errors in preealborate units warnings,
8693 instead of errors, if GNAT_Mode is set. For AI-362.
8695 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
8696 preelaborate unit is now warning if in GNAT mode
8698 * s-stoele.ads: Document AI-362 for pragma preelaborate
8700 2005-06-14 Doug Rupp <rupp@adacore.com>
8702 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
8703 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
8704 Default_Exception_Msg_Max_Length: new parameter.
8706 * a-except.ads: (Exception_Msg_Max_Length): Set to
8707 System.Parameters.Default_Exception_Msg_Max_Length
8708 Add pragma Preelaborate_05 for AI-362
8709 Add warnings off to allow categorization violations for AI-362
8711 2005-06-14 Vincent Celier <celier@adacore.com>
8713 * gnatsym.adb: Adapt to modification of package Symbols: procedure
8714 Process is now in package Processing.
8716 * symbols.ads, symbols.adb:
8717 (Processing): New package, containing procedure Process
8719 * symbols-vms-alpha.adb:
8720 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
8722 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
8723 symbols-processing-vms-ia64.adb: New files.
8725 2005-06-14 Pascal Obry <obry@adacore.com>
8727 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
8728 implementation. This new version generates the proper DllMain routine
8729 to initialize the SAL. The DllMain is generated in Ada and compiled
8730 before being added as option to the library build command.
8732 2005-06-14 Doug Rupp <rupp@adacore.com>
8733 Pascal Obry <obry@adacore.com>
8735 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
8736 call to decc$translate_vms.
8737 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
8738 need to remove those quotes before catenating the filename.
8739 (__gnat_locate_exec_on_path): improvements to the Win32 section:
8740 * avoid allocating the memory twice for better efficiency;
8741 * allocate 32K buffer for environment expansion as suggested by MSDN;
8742 * prepend ".;" to the path so that current directory is searched too.
8744 2005-06-14 Robert Dewar <dewar@adacore.com>
8746 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
8747 instead of raising CE (AI-241)
8748 Add warnings off to allow categorization violations for AI-362
8750 2005-06-14 Robert Dewar <dewar@adacore.com>
8752 * ali-util.adb, gnatbind.adb: Remove references to
8753 Force_RM_Elaboration_Order.
8755 * switch-b.adb: Remove recognition of -f switch
8757 2005-06-14 Pascal Obry <obry@adacore.com>
8759 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
8760 implementation which is slightly more efficient.
8762 2005-06-14 Gary Dismukes <dismukes@adacore.com>
8763 Javier Miranda <miranda@adacore.com>
8764 Ed Schonberg <schonberg@adacore.com>
8765 Hristian Kirtchev <kirtchev@adacore.com>
8767 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
8768 allocator's designated type is a class-wide type, and compiling for
8769 Ada 2005, emit a run-time check that the accessibility level of the
8770 type given in the allocator's expression is not deeper than the level
8771 of the allocator's access type.
8773 (Tagged_Membership): Modified to gives support to abstract interface
8776 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
8778 (Descendant_Tag): New predefined function
8779 (Is_Descendant_At_Same_Level): New predefined function
8780 (Get_Access_Level): New private function
8781 (Set_Access_Level): New private procedure
8782 (IW_Membership): New function. Given the tag of an object and the tag
8783 associated with an interface, evaluate if the object implements the
8785 (Register_Interface_Tag): New procedure used to initialize the table of
8786 interfaces used by the IW_Membership function.
8787 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
8788 of the dispatch table.
8789 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
8790 table of interfaces of the parent.
8791 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
8792 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
8793 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
8794 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
8795 Ada 2005 semantics for the new predefined function.
8797 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
8798 call to Descendant_Tag rather than Internal_Tag.
8799 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
8800 the accessibility level of the attribute's Item parameter is not deeper
8801 than the level of the attribute's prefix type. Tag_Error is raised if
8802 the check fails. The check is only emitted for Ada_05.
8803 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
8804 requested stream attribute, use it.
8805 (Expand_N_Attribute_Reference): If the designated type is an interface
8806 then rewrite the referenced object as a conversion to force the
8807 displacement of the pointer to the secondary dispatch table.
8808 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
8809 is a dereference of an object with a constrained partial view.
8811 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
8812 type is a class-wide type, emit a run-time check that the accessibility
8813 level of the returned object is not deeper than the level of the
8814 function's master (only when compiling for Ada 2005).
8816 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
8817 Action_Nb_Arg): Add entries for new Get_Access_Level and
8818 Set_Access_Level routines in these tables.
8819 (Make_DT): Generate a call to set the accessibility level of the
8820 tagged type in its TSD.
8821 (Make_DT): Code cleanup. The functionality of generating all the
8822 secondary dispatch tables has been moved to freeze_record_type.
8823 (Make_Abstract_Interface_DT): Minor code cleanup.
8824 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
8825 this subprogram implements a new algorithm that provides the
8826 same functionality and it is more clear in case of primitives
8827 associated with abstract interfaces.
8828 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
8829 clean up, the functionality of this subprogram is now provided
8830 by Set_All_DT_Position.
8831 (Write_DT): New subprogram: a debugging procedure designed to be called
8832 within gdb to display the dispatch tables associated with a tagged
8834 (Collect_All_Interfaces): New subprogram that collects the whole list
8835 of interfaces that are directly or indirectly implemented by a tagged
8837 (Default_Prim_Op_Position): New subprogram that returns the fixed
8838 position in the dispatch table of the default primitive operations.
8839 (Expand_Interface_Actuals): New subprogram to generate code that
8840 displaces all the actuals corresponding to class-wide interfaces to
8841 reference the interface tag of the actual object.
8842 (Expand_Interface_Conversion): New subprogram. Reference the base of
8843 the object to give access to the interface tag associated with the
8844 secondary dispatch table.
8845 (Expand_Interface_Thunk): New subprogram that generates the code of the
8846 thunk. This is required for compatibility with the C+ ABI.
8847 (Make_Abstract_Interface_DT): New subprogram that generate the
8848 declarations for the secondary dispatch tables associated with an
8850 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
8851 attribute for each primitive operation covering interface subprograms
8852 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
8853 These subprograms were upgraded to give support to abstract interfaces
8855 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
8856 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
8857 RE_Set_Access_Level.
8858 (RE_Unit_Table): Add entries for new Ada.Tags operations.
8859 Add support to call the followig new run-time subprograms:
8860 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
8862 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
8863 match its full declaration when both have an access definition with
8864 statically matching designated subtypes.
8865 (Analyze_Component_Declaration): Delete commented out code that was
8866 incorrectly setting the scope of an anonymous access component's type.
8867 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
8868 an access discriminant when the containing type is nonlimited.
8869 (Make_Incomplete_Type_Declaration): Create an incomplete type
8870 declaration for a record type that includes self-referential access
8872 (Check_Anonymous_Access_Types): Before full analysis of a record type
8873 declaration, create anonymous access types for each self-referential
8875 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
8876 an access component in this context is a Local_Anonymous_Access, for
8877 proper accessibility checks.
8878 (Access_Definition): Set properly the scope of the anonymous access type
8879 created for a stand-alone access object.
8880 (Find_Type_Of_Object): An object declaration may be given with an access
8882 (Complete_Subprograms_Derivation): New subprogram used to complete
8883 type derivation of private tagged types implementing interfaces.
8884 In this case some interface primitives may have been overriden
8885 with the partial-view and, instead of re-calculating them, they
8886 are included in the list of primitive operations of the full-view.
8887 (Build_Derived_Record_Type): Modified to give support to private
8888 types implemening interfaces.
8889 (Access_Definition): Reject ALL on anonymous access types.
8890 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
8891 type derivation to occur at a deeper accessibility level than the
8893 For the case of derivation within a generic body however, disallow the
8894 derivation if the derived type has an ancestor that is a formal type
8895 declared in the formal part of an enclosing generic.
8896 (Analyze_Object_Declaration): For protected objects, remove the check
8897 that they cannot contain interrupt handlers if not declared at library
8899 (Add_Interface_Tag_Components): New subprogram to add the tag components
8900 corresponding to all the abstract interface types implemented by a
8901 record type or a derived record type.
8902 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
8903 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
8904 Process_Full_View, Record_Type_Declaration): Modified to give
8905 support to abstract interface types
8906 (Collect_Interfaces): New subprogram that collects the list of
8907 interfaces that are not already implemented by the ancestors
8908 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
8909 when partial view has no discriminants and full view has defaults.
8910 (Constrain_Access): Reject a constraint on a general access type
8911 if the discriminants of the designated type have defaults.
8912 (Access_Subprogram_Declaration): Associate the Itype node with the inner
8913 full-type declaration or subprogram spec. This is required to handle
8914 nested anonymous declarations.
8915 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
8916 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
8917 Process_Full_View, Record_Type_Declaration): Modified to give
8918 support to abstract interface types
8919 (Derive_Subprograms): Addition of a new formal to indicate if
8920 we are in the case of an abstact-interface derivation
8921 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
8922 to the specification because it is requied to analyze all the
8923 identifiers found in a list of interfaces
8925 * debug.adb: Complete documentation of flag "-gnatdZ"
8927 * exp_ch3.adb: Implement config version of persistent_bss pragma
8928 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
8929 testing for TSS presence to properly enforce visibility rules.
8930 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
8931 Make_Abstract_Interfaces_DT to generate the secondary tables
8932 associated with abstract interfaces.
8933 (Build_Init_Procedure): Modified to initialize all the tags
8935 (Component_Needs_Simple_Initialization): Similar to other tags,
8936 interface tags do not need initialization.
8937 (Freeze_Record_Type): Modified to give support to abstract interface
8939 (Expand_N_Object_Declaration): Do not generate an initialization for
8940 a scalar temporary marked as internal.
8942 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
8943 in-out parameter that is a component in an initialization procedure,
8944 whose constraint might depend on discriminants, and that may be
8945 misaligned because of packing or representation clauses.
8946 (Is_Legal_Copy): New predicate to determine whether a possibly
8947 misaligned in-out actual can actually be passed by copy/return. This
8948 is an error in case the type is by_reference, and a warning if this is
8949 the consequence of a DEC import pragma on the subprogram.
8950 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
8952 (Expand_Inlined_Call): Mark temporary generated for the return value as
8953 internal, so that no useless scalar normalization is generated for it.
8954 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
8955 null procedure can always be inlined.
8956 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
8957 procedure, generate an explicit empty body for it.
8959 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
8960 Given a type implementing an interface, returns the corresponding
8961 access_disp_table value.
8962 (Find_Interface_Tag): New subprogram. Given a type implementing an
8963 interface, returns the record component containing the tag of the
8965 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
8966 previous ones that return the corresponding tag and access_disp_table
8968 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
8969 is a predefined primitive operation.
8970 (Expand_Subtype_From_Expr): If the expression is a selected component
8971 within an initialization procedure, compute its actual subtype, because
8972 the component may depend on the discriminants of the enclosing record.
8974 * i-cpp.ads, i-cpp.adb:
8975 This package has been left available for compatibility with previous
8976 versions of the frontend. As part of the new layout this is now a
8977 dummy package that uses declarations available at a-tags.ads
8979 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
8980 "constant access" and "aliased [constant] access" when not compiling
8982 Suppress Ada 2005 keyword warning if -gnatwY used
8983 (P_Identifier_Declarations): Add support for object declarations with
8985 (Private_Extension_Declaration): Complete the documentation
8986 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
8987 attribute in case of private extension declaration
8988 (P_Type_Declaration): Mark as "abstract" the type declarations
8989 corresponding with protected, synchronized and task interfaces
8990 (P_Declarative_Items): "not" and "overriding" are overriding indicators
8991 for a subprogram or instance declaration.
8993 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
8994 instantiation that is a dispatching operation has controlling access
8995 parameters that are null excluding.
8996 Save and restore Ada_Version_Explicit, for implementation of AI-362
8997 (Validate_Derived_Type_Instance): Add check for abstract interface
8999 (Analyze_Formal_Package): Establish Instantiation source for the copy of
9000 the generic that is created to represent the formal package.
9001 (Analyze_Package_Instantiation): Instantiate body immediately if the
9002 package is a predefined unit that contains inlined subprograms, and
9003 we are compiling for a Configurable_Run_Time.
9004 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
9005 If the program has a null default, generate an empty body for it.
9007 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
9008 error message condition, null procedures are correctly detected now.
9009 (New_Overloaded_Entity): Bypass trivial overriding indicator check
9010 for subprograms in the context of protected types. Instead, the
9011 indicator is examined in Sem_Ch9 while analysing the subprogram
9013 (Check_Overriding_Indicator): Check consistency of overriding indicator
9014 on subprogram stubs as well.
9015 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
9017 (Analize_Subprogram_Specification): When analyzing a subprogram in which
9018 the type of the first formal is a concurrent type, replace this type
9019 by the corresponding record type.
9020 (Analyze_Subprogram_Body): Undo the previous work.
9021 (Analyze_Procedure_Call): If the call has the form Object.Op, the
9022 analysis of the prefix ends up analyzing the call itself, after which
9024 (Has_Interface_Formals): New subprogram subsidiary to analyze
9025 subprogram_specification that returns true if some non
9026 class-wide interface subprogram is found
9027 (New_Overloaded_Entity): Modified to give support to abstract
9029 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
9030 access to subprograms must be recursive.
9031 (Is_Unchecked_Conversion): Improve the test that recognizes
9032 instantiations of Unchecked_Conversion, and allows them in bodies that
9033 are to be inlined by the front-end. When the body comes from an
9034 instantiation, a reference to Unchecked_Conversion will be an
9035 Expanded_Name, even though the body has not been analyzed yet.
9036 Replace Is_Overriding and Not_Overriding in subprogram_indication with
9037 Must_Override and Must_Not_Override, to better express intent of AI.
9038 (Analyze_Subprogram_Body): If an overriding indicator is given, check
9039 that it is consistent with the overrinding status of the subprogram
9041 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
9043 If the subprogram is a null procedure, indicate that it does not need
9046 * sem_disp.adb (Check_Controlling_Type): Give support to entities
9047 available through limited-with clauses.
9048 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
9049 allowed as the last primitive of a tagged type if it has no previous
9051 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
9052 to give support to abstract interface types
9054 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
9055 in the case where the target type is an anonymous access type of an
9056 object or component (that is, when Is_Local_Anonymous_Access is true).
9057 Prevent the special checks for conversions of access discriminants in
9058 the case where the discriminant belongs to a nonlimited type, since
9059 such discriminants have their accessibility level defined in the same
9060 way as a normal component of an anonymous access type.
9061 (Resolve_Allocator): When an allocator's designated type is a class-wide
9062 type, check that the accessibility level of type given in the
9063 allocator's expression or subtype indication is not statically deeper
9064 than the level of the allocator's access type.
9065 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
9066 name in a discriminant constraint of a record component.
9067 (Resolve_Explicit_Dereference): Do not check whether the type is
9068 incomplete when the dereference is a use of an access discriminant in
9069 an initialization procedure.
9070 (Resolve_Type_Conversion): Handle conversions to abstract interface
9072 (Valid_Tagged_Conversion): The conversion of a tagged type to an
9073 abstract interface type is always valid.
9074 (Valid_Conversion): Modified to give support to abstract interface types
9075 (Resolve_Actuals): Enable full error reporting on view conversions
9076 between unrelated by_reference array types.
9077 The rule for view conversions of arrays with aliased components is
9078 weakened in Ada 2005.
9079 Call to obsolescent subprogram is now considered to be a violation of
9080 pragma Restrictions (No_Obsolescent_Features).
9081 (Check_Direct_Boolean_Operator): If the boolean operation has been
9082 constant-folded, there is nothing to check.
9083 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
9084 check on possible violation of restriction No_Direct_Boolean_Operators
9085 until after expansion of operands, to prevent spurious errors when
9086 operation is constant-folded.
9088 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
9089 Has_Compatible_Type): Modified to give support to abstract interface
9091 (Interface_Present_In_Ancestor): New function to theck if some ancestor
9092 of a given type implements a given interface
9094 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
9095 prefix is a parameterless function that returns an access_to_procedure.
9096 (Transform_Object_Operation): Handle properly function calls of the
9097 form Obj.Op (X), which prior to analysis appear as indexed components.
9098 (Analyze_One_Call): Complete the error notification to help new Ada
9100 (Analyze_Allocator): For an allocator without an initial value, where
9101 the designated type has a constrained partial view, a discriminant
9102 constraint is illegal.
9104 2005-06-14 Robert Dewar <dewar@adacore.com>
9106 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
9107 do with treatment of Set_Col when positioned at end of line character.
9109 2005-06-14 Robert Dewar <dewar@adacore.com>
9111 * atree.adb: (Elist*): Protect against uninitialized field
9113 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9115 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
9116 for an attribute reference that returns an access type.
9117 (Apply_Discriminant_Check): No need for check if (designated) type has
9118 constrained partial view.
9120 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
9121 both bound checks, rather than a conjunction.
9122 (Insert_Valid_Check): If the expression is an actual that is an indexed
9123 component of a bit-packed array, force expansion of the packed element
9124 reference, because it is specifically inhibited elsewhere.
9126 2005-06-14 Vincent Celier <celier@adacore.com>
9128 * clean.adb (Clean_Project): Correctly delete executable specified as
9129 absolute path names.
9131 * make.adb (Gnatmake): Allow relative executable path names with
9132 directory information even when project files are used.
9133 (Change_To_Object_Directory): Fail gracefully when unable to change
9134 current working directory to object directory of a project.
9135 (Gnatmake): Remove exception handler that could no longer be exercized
9136 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
9137 may be deallocated by Normalize_Arguments.
9138 (Collect_Arguments): Eliminate empty arguments
9140 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
9141 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
9142 (Check_Project): Return False when Project is No_Project. Return True
9143 when All_Projects is True.
9144 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
9145 All_Projects to True.
9148 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9149 Javier Miranda <miranda@adacore.com>
9150 Thomas Quinot <quinot@adacore.com>
9151 Robert Dewar <dewar@adacore.com>
9152 Hristian Kirtchev <kirtchev@adacore.com>
9153 Gary Dismukes <dismukes@adacore.com>
9155 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
9156 anonymous access types, to indicate that the accessibility level of
9157 the type is determined by that of the enclosing declaration.
9158 (Has_Persistent_BSS): New flag
9159 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
9160 of this attribute with functions.
9161 (Is_Primitive_Wrapper): Remove the barrier.
9162 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
9163 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
9165 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
9166 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
9168 (Is_Pure_Unit_Access_Type): New flag
9169 (Abstract_Interfaces): Complete the assertion to cover all usages.
9170 (Set_Is_Interface): Complete the assertion to cover all usages.
9171 (Is_Primitive_Wrapper): New attribute.
9172 (Is_Obsolescent): Now applies to all entities (though it is only set
9173 for subprograms currently)
9174 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
9175 which solves various problems concerning access subtypes.
9176 (Has_Persistent_BSS): New flag
9177 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
9178 Remove these subprograms because this attribute is currently
9181 Has_Specified_Stream_Input (Flag190)
9182 Has_Specified_Stream_Output (Flag191)
9183 Has_Specified_Stream_Read (Flag192)
9184 Has_Specified_Stream_Write (Flag193)
9185 Present in all type and subtype entities. Set for a given view if the
9186 corresponding stream-oriented attribute has been defined by an
9187 attribute definition clause. When such a clause occurs, a TSS is set
9188 on the underlying full view; the flags are used to track visibility of
9189 the attribute definition clause for partial or incomplete views.
9190 (Is_Pure_Unit_Access_Type): New flag
9191 Clarify use of Is_Internal.
9192 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
9193 internally generated to wrap the invocation of tasks and protected
9194 types that implement interfaces.
9195 (Implementation_Base_Type): Documentation correction
9196 (Is_Obsolescent): Now applies to all entities (though it is only set
9197 for subprograms currently)
9198 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
9199 which solves various problems concerning access subtypes.
9201 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
9202 for examined parameters. Identify unequal parameter list lengths as
9203 non-conformant parameters.
9204 (Overriding_Possible): Do not check for "All" qualifier in declaration
9205 of controlling access parameter, following prescription of AI-404.
9206 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
9207 that build the procedure body that wraps an entry invocation
9208 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
9209 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
9210 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
9211 give support to abstract interface types
9213 * freeze.adb (Freeze_Entity): Issue error message if
9214 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
9215 type has no storage pool (Ada 2005) AI-366.
9216 Also modified to give support to abstract interface types
9217 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
9218 Inline_Always pragma.
9220 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
9221 now begin an entry declaration.
9222 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
9223 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
9224 a subprogram declaration preceded by an overriding indicator.
9225 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
9226 declarations or subprogram declarations preceded by reserved words
9227 "not" or "overriding".
9228 (P_Entry_Declaration): Update comment. Parse and check overriding
9229 indicator, set semantic flags of entry declarations.
9230 (P_Task): New error message in case of private applied
9231 to a task type declaration.
9232 (P_Protected): New error message in case of private applied
9233 to a task type declaration.
9235 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
9236 in which the full view of a type implementing an interface is a
9238 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
9239 Declare_Inherited_Private_Subprograms): If an explicit operation
9240 overrides an operation that is inherited in the private part, mark the
9241 explicit one as overriding, to enable overriding indicator checks.
9242 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
9243 full view to partial view, to simplify handling in back-end.
9245 * sprint.adb: Print interface lists where needed: derived types,
9246 protected types, task types.
9247 output "is null" for null procedures. Part of implementation of
9249 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
9250 relaxation of rules for access types in pure, shared passive partitions.
9252 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
9253 first read discriminants into temporary objects, performing checks on
9254 the read values, then possibly performing discriminant checks on the
9255 actual (if it is constrained), and only finally reading the components
9256 into a constrained temporary object.
9257 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
9258 case of reading discriminants of a mutable record type to recognize
9259 the new form of the code generated by
9260 Build_Mutable_Record_Read_Procedure.
9262 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
9263 of a simple call to Make_TSS_Name.
9264 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
9265 buffer, in order for Is_TSS to work correctly on local TSS names.
9267 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
9268 Is_Local_Anonymous_Access to check legaliy of attributes in the
9269 context of access components and stand-alone access objects.
9270 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
9271 treated as available for a limited private type if there is an
9272 attribute_definition_clause that applies to its full view, but not in
9273 other cases where the attribute is available for the full view
9274 (specifically, the sole fact that the full view is non-limited does not
9275 make the attribute available for the partial view).
9276 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
9277 non-overloaded intrinsic subprogram.
9278 (Check_Stream_Attribute): Reject an attribute reference for an
9279 unavailable stream attribute even if the prefix is not a limited type
9280 (case of a 'Input attribute reference for an abstract, non-classwide
9282 (Stream_Attribute_Available): New function to determine whether a stream
9283 attribute is available at a place.
9284 (Check_Attribute): Use Stream_Attribute_Available instead of just
9285 testing for TSS presence on the implementation base type.
9286 (Analyze_Attribute): Modified to give support to task interfaces.
9287 (Analyze_Access_Attribute): Add error check for use of an Access (or
9288 Unrestricted_Access) attribute with a subprogram marked as
9290 (Analyze_Attribute, case Attribute_Address): Add error check for use of
9291 an Address attribute with a subprogram marked as Inline_Always.
9292 Update Eval_Attribute to handle new value of Width from AI-395
9294 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
9295 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
9296 Factor common code across the stream-oriented attribute circcuits into
9297 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
9298 processing is functionally identical to the previous duplicated one,
9299 except that an expression that denotes an abstract subprogram will now
9300 be rejected, as mandated by AI-195 item 5.
9302 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
9303 Is_Local_Anonymous_Access to apply accessibility checks to access
9304 components and stand-alone access objects.
9305 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
9307 (Is_Potentially_Persistent_Type): New function
9308 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
9309 a heap-object whose type has a constrained partial view, the object is
9310 unconstrained and the component may depend on a discriminant, making its
9313 * sinfo.ads, sinfo.adb
9314 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
9315 (Must_Override): Flag applicable to N_Entry_Declaration.
9316 Indicate that interface_list can appear in single task and single
9317 protected declarations.
9318 Replace Is_Overriding and Not_Overriding with Must_Override and
9319 Must_Not_Override, to better express intent of AI.
9320 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
9321 of an overriding indicator in a subprogram or instance.
9322 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
9323 Add the overriding indicator [[not] overriding] construct to the
9324 following grammar productions:
9326 GENERIC_INSTANTIATION
9327 SUBPROGRAM_SPECIFICATION
9329 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
9330 can start with an overriding indicator.
9332 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
9333 flags accordingly on subrogram specifications or instances.
9336 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
9337 overriding_indicator, if present, is consistent with status of spec.
9338 Improve error message for null-excluding checks on controlling access
9340 (Check_In_Previous_With_Clause): Protect the frontend against
9341 previously reported critical errors in the context clauses.
9342 Save and restore Ada_Version_Explicit, for implementation of AI-362
9343 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
9344 operation verify that controlling formals of the renamed entity that
9345 are access parameters are explicitly non-null.
9346 (Find_Expanded_Name): Improve error message when prefix is an illegal
9347 reference to a private child unit.
9349 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
9350 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
9351 Rewrite to correspond to new wide character names in AI-395
9353 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
9356 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9357 Robert Dewar <dewar@adacore.com>
9359 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
9360 code, not on the bodies of predefined operations, to cut down on
9363 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9365 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
9366 be expanded in place. The size computation does not require a
9367 subtraction, which would raise an exception on a compiler built with
9368 assertions when the upper bound is Integer'first.
9369 (Flatten): For an array of composite components, take into account the
9370 size of the components to determine whether it is safe to expand the
9371 array into a purely positional representation.
9373 2005-06-14 Thomas Quinot <quinot@adacore.com>
9375 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
9376 denoting a formal parameter into account.
9378 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9380 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
9381 the entry_call alternative of a conditional entry call, wrap the
9382 conditional entry call itself.
9384 2005-06-14 Nicolas Setton <setton@adacore.com>
9385 Ed Schonberg <schonberg@adacore.com>
9387 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
9388 the "simple_choice" member in a variant record, in accordance with the
9389 description in the package spec: the information output for a constant
9390 should be "S number", not "SS number".
9391 (Get_Encoded_Name): Return at once if not generating code. Avoids name
9392 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
9394 2005-06-14 Thomas Quinot <quinot@adacore.com>
9396 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
9397 RACW without any primitives, do not generate the if statement for
9398 dispatching by name in the PolyORB/DSA case, as it would be malformed
9399 (it would have an Elsif_Parts list that is not No_List, but with a
9402 2005-06-14 Robert Dewar <dewar@adacore.com>
9404 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
9406 2005-06-14 Jose Ruiz <ruiz@adacore.com>
9408 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
9409 can determine whether pragma Suppress_Exception_Locations is in effect.
9411 * utils2.c (build_call_raise): Do not pass the file name to the
9412 exception handler if pragma Suppress_Exception_Locations is in effect.
9413 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
9415 2005-06-14 Emmanuel Briot <briot@adacore.com>
9417 * g-debpoo.adb (Deallocate, Dereference): Improve output.
9419 2005-06-14 Nicolas Roche <roche@adacore.com>
9421 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
9423 (Next_Level): Fix minor bug in handling of ../dir case
9424 (Read): Add dir separator to Directory name so that "" is understood as
9427 2005-06-14 Pascal Obry <obry@adacore.com>
9429 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
9430 releasing the items.
9432 2005-06-14 Vincent Celier <celier@adacore.com>
9433 Cyrille Comar <comar@adacore.com>
9435 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
9436 with output file descriptor and with output file name.
9437 (Dup, Dup2): Now global procedures as they are used by two subprograms
9438 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
9440 2005-06-14 Thomas Quinot <quinot@adacore.com>
9444 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
9446 (Create_Selector): Bind listening socket used to create the signalling
9447 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
9448 Set listen backlog to 1 to ensure that we detect socket theft by a
9449 failure of our own connect(2) call.
9450 (Check_Selector): Improve documentation of the selector mechanism.
9451 (Broadcast_Inet_Addr): New constant.
9453 2005-06-14 Gary Dismukes <dismukes@adacore.com>
9455 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
9456 type which turns out to be an incomplete and incorrect fix.
9457 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
9458 of the type is declared in a record (for determination of insertion
9460 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
9461 a private type and ensure that the primary entity is used for the type
9462 of the newly created function's V formal by taking the Etype of the
9465 2005-06-14 Javier Miranda <miranda@adacore.com>
9466 Jose Ruiz <ruiz@adacore.com>
9467 Robert Dewar <dewar@adacore.com>
9468 Ed Schonberg <schonberg@adacore.com>
9470 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
9471 that indicates if we are parsing a compilation unit found in a
9472 limited-with clause.
9473 It is use to avoid the circularity check.
9475 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
9476 we are parsing a compilation unit found in a limited-with clause. This
9477 is use to avoid the circularity check.
9479 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
9480 unit as a consequence of parsing a limited-with clause. This is used
9481 to avoid the circularity check.
9483 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
9484 (Analyze_Context): Limited-with clauses are now allowed
9485 in more compilation units.
9486 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
9487 againts previously reported critical errors in context clauses
9488 (Install_Limited_Withed_Unit): Code cleanup plus static detection
9489 of two further errors: renamed subprograms and renamed packages
9490 are not allowed in limited with clauses.
9491 (Install_Siblings): Do not install private_with_clauses on the package
9492 declaration for a non-private child unit.
9493 (Re_Install_Parents): When a parent of the subunit is reinstalled,
9494 reset visibility of child units properly.
9495 (Install_Withed_Unit): When a child unit appears in a with_clause of its
9496 parent, it is immediately visible.
9498 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9499 Emmanuel Briot <briot@adacore.com>
9501 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
9502 declared within an inlined body as referenced, to prevent spurious
9504 (Output_One_Ref): If an entity renames an array component, indicate in
9505 the ALI file that this aliases (renames) the array. Capture as well
9506 function renamings that rename predefined operations.
9507 Add information about generic parent for package and subprogram
9509 (Get_Type_Reference): For a subtype that is the renaming of an actual in
9510 an instantiation, use the first_subtype to ensure that we don't generate
9511 cross-reference information for internal types.
9512 For objects and parameters of a generic private type, retain the '*'
9513 indicator to distinguish such an entity from its type.
9515 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
9516 to store information about instantiated entities.
9518 * ali.adb (Scan_ALI): Add support for parsing the reference to the
9521 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
9522 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
9525 2005-06-10 Doug Rupp <rupp@adacore.com>
9526 Arnaud Charlet <charlet@adacore.com>
9527 Olivier Hainque <hainque@adacore.com>
9528 Jose Ruiz <ruiz@adacore.com>
9530 * Make-lang.in: Add initialize.o when needed.
9531 Remove obsolete references to RT_FLAGS.
9532 Add missing dependencies for sdefault.o
9534 * initialize.c: New file.
9536 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
9537 [VMS] cond_signal_table: Fix problem in declaration.
9538 [VMS] __gnat_error_handler: rewrite.
9539 Move all __gnat_initialize() routines to initialize.c
9540 Specialize the former "hpux" section to "hppa hpux", as this is what the
9541 section really is here for and we now have other hpux ports that need
9543 (__gnat_adjust_context_for_raise) i386-linux: First version of this
9544 function for this target. Adjust PC by one in the machine context. This
9545 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
9546 it is more reliable to do that in the signal handler itself.
9547 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
9548 flags, so that the handler is passed the context structure to adjust
9550 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
9551 SA_SIGINFO sigaction should look like. Call
9552 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
9553 Machine_State_Operations stuff.
9554 Add conditional code so that the x86_64 is also supported.
9556 2005-06-14 Pascal Obry <obry@adacore.com>
9558 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
9561 2005-06-14 Robert Dewar <dewar@adacore.com>
9563 * opt.ads, opt.adb: New flags for persistent_bss mode
9564 Add Ada_Version_Explicit, for implementation of AI-362
9565 Add Assertions_Enabled_Config and associated handling
9566 Needed since setting can be changed with Assertion_Policy pragma
9567 Add new flag Warn_On_Ada_2005_Compatibility
9569 * switch-c.adb: Recognize -gnatwy/Y
9570 Set Ada_Version_Explicit, for implementation of AI-362
9571 The -gnatg switch now includes -gnatyu
9573 * usage.adb: Add -gnatwy/Y
9574 Remove wrong asterisk on -gnatwX line
9575 Add line for -gnatyu switch
9577 2005-06-14 Vincent Celier <celier@adacore.com>
9579 * osint.adb (Add_Default_Search_Dirs): Put source and object
9580 directories of project files before directories coming from
9581 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
9583 2005-06-14 Robert Dewar <dewar@adacore.com>
9587 * par-ch2.adb (Scan_Pragma_Argument): New procedure
9588 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
9590 2005-06-14 Vincent Celier <celier@adacore.com>
9592 * prep.adb (Preprocess): Ignore error when scanning the first token of
9595 2005-06-14 Vincent Celier <celier@adacore.com>
9597 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
9598 (Check_Stand_Alone_Library): If the specified reference symbol file does
9599 not exist, only issue a warning when the symbol policy is not
9600 Controlled. And, when symbol policy is Compliant, set the symbol
9601 policy to Autonomous.
9603 2005-06-14 Vincent Celier <celier@adacore.com>
9605 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
9606 when the project file in a with clause is not the last one, that is the
9607 project file name is followed by a comma.
9608 * prj-pp.adb: (First_With_In_List): New Boolean global variable
9609 (Print): Issue list of project files separated by commas in with clauses
9610 according to the values returned by Is_Not_Last_In_List.
9611 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
9612 (Set_Is_Not_Last_In_List): New procedure
9614 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
9616 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
9618 2005-06-14 Robert Dewar <dewar@adacore.com>
9620 * scng.adb: Add call to new Check_EOF routine
9621 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
9622 Add some comments regarding wide character handling
9624 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
9626 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
9628 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
9629 characters are now considered graphic characters and hence yield false
9632 * nmake.adt: Modify header so that xnmake does not generate output
9633 files with multiple blank lines.
9635 * treeprs.adt: Remove a blank line so that output from xtreeprs does
9636 not have an extra blank line
9638 2005-06-14 Gary Dismukes <dismukes@adacore.com>
9640 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
9641 expression when the component type is an anonymous access type to
9642 ensure that appropriate accessibility checks are done.
9644 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
9645 expression of an assignment when the target object is of an anonymous
9646 access type. This ensures that required accessibility checks are done.
9647 (One_Bound): Move the check for type Universal_Integer to
9649 (Process_Bounds): Check whether the type of the preanalyzed range is
9650 Universal_Integer, and in that case set Typ to Integer_Type prior
9651 to setting the type of the original range and the calls to One_Bound.
9653 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9655 * sem_case.adb (Expand_Others_Choice): Improve warning.
9657 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9659 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
9660 constraint of full view if present, when other type is discriminated.
9661 (Eval_Relational_Op): Recognize tests of pointer values against Null,
9662 when the pointer is known to be non-null, and emit appropriate warning.
9664 2005-06-14 Robert Dewar <dewar@adacore.com>
9665 Ed Schonberg <schonberg@adacore.com>
9669 * sem_prag.adb: Implement pragma Persistent_BSS
9670 Remove obsolete pragma Persistent_Data, Persistent_Object
9671 Set Ada_Version_Explicit, for implementation of AI-362
9672 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
9673 Add processing for pragma Pure_05 and Preelaborate_05
9674 Add processing for Assertion_Policy pragma
9675 Add pragma identifiers for Assert
9676 (Analyze_Pragma, case Assert): Check number of arguments
9677 (Process_Inline): Additional guard against an illegal program, where the
9678 argument of the pragma is undefined, and warnings on redundant
9679 constructs are enabled.
9680 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
9681 Ada_05 to this pragma, specifying that the pragma is only active in
9683 (Check_Arg_Order): New procedure
9684 Add appropriate calls to this procedure throughout
9685 Also throughout, check entity name before doing any other checks
9687 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
9688 Remove obsolete pragma Persistent_Data, Persistent_Object
9689 Add entries for pragma Pure_05 and Preelaborate_05
9690 Add entries for Assertion_Policy pragma and associated names
9691 Add some names for pragma argument processing
9693 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
9695 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9697 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
9698 appears within a negation (either from source or as a rewriting of
9699 inequality) adjust text of warning accordingly.
9701 2005-06-14 Thomas Quinot <quinot@adacore.com>
9703 * s-strxdr.adb: Follow AI95-00132
9705 2005-06-14 Arnaud Charlet <charlet@adacore.com>
9707 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
9709 2005-06-14 Arnaud Charlet <charlet@adacore.com>
9710 Jose Ruiz <ruiz@adacore.com>
9712 * s-tposen.adb, s-tpobop.adb
9713 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
9715 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
9716 there is no violation of the Max_Entry_Queue_Length restriction (if it
9717 has been set); Program_Error is raised otherwise.
9718 (Requeue_Call): Before requeuing the task on the target entry queue we
9719 check that there is no violation of the Max_Entry_Queue_Length
9720 restriction (if it has been set); Program_Error is raised otherwise.
9722 2005-06-14 Robert Dewar <dewar@adacore.com>
9724 * styleg.adb: Fix several remaining problems in -gnatyu switch
9725 Blank line count not reset at start
9726 Scanning outside source buffer in some cases
9727 Confusing message for blanks at end of file
9728 Non-empty blank lines not recognized
9730 * nmake.adt: Modify header so that xnmake does not generate output
9731 files with multiple blank lines.
9733 * treeprs.adt: Remove a blank line so that output from xtreeprs does
9734 not have an extra blank line
9736 2005-06-14 Sergey Rybin <rybin@adacore.com>
9738 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
9740 2005-06-14 Doug Rupp <rupp@adacore.com>
9741 Vincent Celier <celier@adacore.com>
9743 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
9746 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
9747 Remove "Library" command.
9748 Change keyword for style check -gnatyd from NOCRLF to
9750 Remove useless second style check keyword NONE
9751 Remove help documentation for inexistent style check keyword
9753 Add help documentation for style check keywords DOS_LINE_ENDINGS,
9754 UNNECESSARY_BLANK_LINES and XTRA_PARENS
9755 Add UNNECESSARY_BLANK_LINES for -gnatyu
9756 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
9758 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
9760 2005-06-14 Vincent Celier <celier@adacore.com>
9762 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
9763 gprmake was invoked with -d.
9764 (Compile_Sources): If -d was used, output the "completed ..." message
9765 for each compilation.
9766 (Scan_Arg): Recognize new switch -d
9767 When -c and at least one main is specified, set
9768 Unique_Compile to True to guarantee that no other sources will be
9771 2005-06-14 Matthew Heaney <heaney@adacore.com>
9773 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
9774 * a-swuwha.ads, a-swuwha.adb: New files
9776 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
9777 * a-szuzha.ads, a-szuzha.adb: New files.
9779 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
9780 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
9781 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
9782 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
9783 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
9784 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
9785 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
9786 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
9787 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
9788 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
9791 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
9792 Olivier Hainque <hainque@adacore.com>
9793 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9794 Pascal Obry <obry@adacore.com>
9796 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
9798 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
9799 making a temporary around a procedure call because of non-addressable
9801 (process_freeze_entity): If entity is a private type, capture size
9802 information that may have been computed for the full view.
9803 (tree_transform, case N_Allocator): If have initializing expression,
9804 check type for Has_Constrained_Partial_View and pass that to
9806 (tree_transform, case N_Return_Statement): Pass extra arg to
9809 * decl.c (annotate_value): Remove early return if -gnatR is not
9811 (gnat_to_gnu_field): Don't make a packable type for a component clause
9812 if the position is byte aligned, the field is aliased, and the clause
9813 size isn't a multiple of the packable alignment. It serves no useful
9814 purpose packing-wise and would be rejected later on.
9815 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
9818 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
9819 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
9821 (create_concat_name): Idem.
9823 2005-06-10 Robert Dewar <dewar@adacore.com>
9824 Eric Botcazou <ebotcazou@adacore.com>
9825 Ben Brosgol <brosgol@adacore.com>
9826 Cyrille Comar <comar@adacore.com>
9827 Sergey Rybin <rybin@adacore.com>
9828 Pascal Obry <obry@adacore.com>
9830 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
9831 Document second argument (Ada_05) of pragma Obsolescent
9832 Add note that call to subprogram marked with pragma Obsolescent
9833 is now considered to be a violation of program Restrictions
9834 (No_Obsolescent_Features).
9835 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
9836 that only machine-dependent attributes are supported.
9839 Commented out menu lines and empty section for gnatclean examples
9841 Fix some over long lines
9842 Clarify and enhance documentation of ADA_PROJECT_PATH.
9843 Rework section 2.11.2(3) about linking with a non-GNU compiler.
9844 Mention new switch -fcallgraph-info.
9845 Mention new switch -fstack-usage.
9846 For gnatpp, replace '-notab' with '-N' and add this option to Index
9847 Corrected VMS example.
9848 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
9850 Add documentation for -gnatyu switch (unnecessary blank lines)
9851 Document new switch -U for GNAT PRETTY and GNAT METRIC
9852 Add note about Stdcall being handled as C convention on non Windows OS.
9853 Remove some junk typo in description of gnatbind -S switch
9854 Remove reference to Extensions_Allowed pragma
9855 Document the new order of the directories to be searched (source and
9856 object directories of project files before directories in ADA_*_PATH
9857 environment variables.
9859 * g-trasym.ads: Document that IRIX is supported
9861 2005-06-10 Arnaud Charlet <charlet@adacore.com>
9863 * Makefile.in: Add initialize.o when needed.
9864 Adapt to new VMS package body Symbols and subunits
9865 No specialized version of a-sytaco is needed for VxWorks.
9867 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
9868 * a-zchara.ads, a-widcha.ads: New files.
9870 * system-hpux-ia64.ads: New file.
9872 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
9873 is imported from the VxWorks kernel.
9875 2005-06-14 Robert Dewar <dewar@adacore.com>
9877 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
9878 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
9879 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
9880 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
9881 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
9882 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
9883 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
9884 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
9885 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
9886 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
9887 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
9888 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
9890 2005-06-14 Thomas Quinot <quinot@adacore.com>
9892 * xeinfo.adb: Fix typo in comment
9894 2005-06-14 Javier Miranda <miranda@adacore.com>
9896 * repinfo.ads: Fix typo in comment
9898 2005-06-14 Gary Dismukes <dismukes@adacore.com>
9900 * s-finimp.adb (Parent_Tag): Delete this imported function (function
9901 Parent_Tag is now in the visible part of Ada.Tags).
9902 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
9903 using imported function.
9905 2005-06-14 Bernard Banner <banner@adacore.com>
9907 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
9908 also apply for handling support for VxSim 653.
9910 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
9912 * xsnames.adb: Add automatic generation of snames.h.
9914 2005-06-14 Thomas Quinot <quinot@adacore.com>
9916 * gen-soccon.c: Add IP_MULTICAST_IF constant
9917 Minor reformatting and adjustments to prevent warnings.
9919 2005-06-14 Pascal Obry <obry@adacore.com>
9921 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
9923 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
9925 * trans.c (gnat_gimplify_expr): Call
9926 recompute_tree_invarant_for_addr_expr when we change
9927 the operand of the ADDR_EXPR.
9929 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9931 * misc.c: Don't include errors.h.
9933 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9935 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
9937 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
9939 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
9941 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
9943 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
9946 * Makefile.in: Make TGT_LIB behave correctly.
9948 2005-04-23 DJ Delorie <dj@redhat.com>
9950 * misc.c: Adjust warning() callers.
9952 2005-04-16 Laurent GUERBY <laurent@guerby.net>
9955 * a-nudira.adb (Value): Check for valid string.
9956 * a-nuflra.adb (Value): Likewise.
9958 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
9960 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
9962 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
9964 * adaint.c, init.c, tracebak.c: Fix comment typos.
9965 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
9967 2005-04-07 Laurent GUERBY <laurent@guerby.net>
9968 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9970 * Makefile.in: Add make ifeq define for hppa linux tasking support.
9971 * system-hpux.ads: Define Signed_Zeros to be True.
9972 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
9974 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
9976 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
9977 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
9980 2005-03-30 Tom Tromey <tromey@redhat.com>
9982 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
9984 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9986 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
9988 2005-03-29 Robert Dewar <dewar@adacore.com>
9990 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
9991 fixed-point expression has value that is not a multiple of the Small
9994 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
9996 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
9999 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
10001 2005-03-29 Vincent Celier <celier@adacore.com>
10003 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
10004 (Build_Dynamic_Library.Version_String): Return the empty string when
10005 Lib_Version is empty or when the symbol policy is not Autonomous.
10007 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
10008 a symbol is not in the reference symbol file, increase the Major ID
10009 and set the Minor ID to 0.
10010 Use gsmatch=lequal instead of gsmatch=equal
10012 2005-03-29 Doug Rupp <rupp@adacore.com>
10014 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
10015 name and translate.
10017 2005-03-29 Javier Miranda <miranda@adacore.com>
10019 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
10020 (Inherit_DT): The first formal has been redefined as a Tag.
10021 This allows us the removal of the subprogram Get_TSD.
10022 (TSD): Replace the call to Get_TSD by the actual code.
10024 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
10025 (Make_DT): Upgrade the call to Inherit_TSD according to the
10026 new interface: the first formal is now a Tag.
10028 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
10029 redefined as a Tag.
10030 This change allows us to remove the subprogram Get_TSD.
10031 (CPP_Get_TSD): Subprogram removed.
10032 (TSD): Replace the call to CPP_Get_TSD by the actual code.
10034 * rtsfind.ads: Remove support to call the run-time
10037 2005-03-29 Robert Dewar <dewar@adacore.com>
10039 * errutil.adb, errout.adb:
10040 Minor comment updates on Line_Terminator references
10042 * par-ch10.adb: Add ??? comment about line terminator
10044 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
10045 (check dos line terminator).
10046 (Check_Line_Max_Length): New procedure, split off from the existing
10047 Check_Line_Terminator routine. Separating this out allows -gnatyf to
10048 be properly recognized.
10050 * styleg.adb: Add ??? comment for line terminator reference
10052 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
10053 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
10055 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
10056 (check dos line terminator).
10057 (Check_Line_Max_Length): New procedure, split off from the existing
10058 Check_Line_Terminator routine. Separating this out allows -gnatyf to
10059 be properly recognized.
10061 * stylesw.ads, stylesw.adb:
10062 Add handling for new -gnatyd switch (check dos line terminator)
10064 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
10065 Recognize -gnatwb/-gnatwB switches
10066 Include Warn_On_Bad_Fixed_Value for -gnatg
10069 Add line for new -gnatyd switch (check dos line terminator)
10071 * usage.adb: Add lines for -gnatwb/-gnatwB
10073 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
10075 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
10077 * gnat_ugn.texi: Fix overlong lines
10078 Document new -gnatyd switch
10079 Document new -gnatwb/-gnatwB switches
10081 2005-03-29 Ed Schonberg <schonberg@adacore.com>
10083 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
10084 order to retrieve the component list of the type, before examining
10085 individual components.
10087 * sem_type.adb (Covers): Types are compatible if one is the base type
10088 of the other, even though their base types might differ when private
10089 views are involved.
10091 2005-03-29 Thomas Quinot <quinot@adacore.com>
10093 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
10094 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
10095 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
10096 analyzed if expansion is disabled (which could otherwise cause spurious
10097 error messages if expansion has been disabled due to previous
10098 (unrelated) errors).
10100 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
10101 is disabled, the entity denoted by the argument is the access type
10102 itself, not an underlying record type, so there is no need to go back
10103 to the Corresponding_Remote_Type.
10105 2005-03-29 Gary Dismukes <dismukes@adacore.com>
10106 Robert Dewar <dewar@adacore.com>
10108 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
10109 expand a call to an instance of
10110 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
10111 Constructor actual of the instance. A class-wide membership
10112 check is also generated, to ensure that the tag passed to the instance
10113 denotes a type in the class.
10114 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
10115 of Name_Generic_Dispatching_Constructor.
10117 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
10118 05 unit for AI-260-02).
10120 * a-tgdico.ads: New file.
10122 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
10123 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
10125 * snames.ads, snames.adb (Preset_Names): Add entry for
10126 Generic_Dispatching_Constructor.
10130 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
10131 character type cases.
10132 (Analyze_Subprogram_Renaming): Add special handling for
10133 the case of renaming of stream attributes when the renaming denotes a
10134 generic formal subprogram association for an abstract formal subprogram.
10135 Check that the attribute is a primitive stream attribute (and not
10136 a class-wide stream attribute) and then rewrite the attribute name
10137 as the name of the appropriate compiler-generated stream primitive.
10139 2005-03-29 Robert Dewar <dewar@adacore.com>
10141 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
10143 (Is_Possibly_Unaligned_Object): Correct typo that
10144 resulted in inaccurate result for unaligned scalars within records.
10146 2005-03-29 Ed Schonberg <schonberg@adacore.com>
10148 * freeze.adb (Freeze_Record_Type): If the type of the component is an
10149 itype whose parent is controlled and not yet frozen, do not create a
10150 freeze node for the itype if expansion is disabled.
10152 2005-03-29 Vincent Celier <celier@adacore.com>
10154 * make.adb (Gnatmake): Don't fail if the main project file is declared
10155 as having no Ada sources. Do not display message "no sources to
10156 compile" in quiet output.
10158 2005-03-29 Doug Rupp <rupp@adacore.com>
10160 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
10163 2005-03-29 Robert Dewar <dewar@adacore.com>
10165 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
10168 2005-03-29 Robert Dewar <dewar@adacore.com>
10170 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
10171 missing TYPE Improve the error message generated when compiling a
10172 limited interface in Ada83 or Ada95 mode.
10174 2005-03-29 Robert Dewar <dewar@adacore.com>
10176 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
10177 rather than proceed ahead using a junk attribute name.
10179 2005-03-29 Vincent Celier <celier@adacore.com>
10181 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
10183 * prj-part.adb (Parse_Single_Project): Set the location of a project
10184 on its defining identifier, rather than on the reserved word "project".
10186 * prj-proc.adb (Expression): Adapt to the fact that default of external
10187 references may be string expressions, not always literal strings.
10188 (Recursive_Process): Set Display_Name equal to Name
10189 when Location is No_Location, that is when there is no actual file.
10190 Get the Display_Name of the project from the source, when it is not a
10192 (Process): Use the Display_Name in error messages
10194 * prj-strt.adb (External_Reference): Allow default to be string
10195 expressions, not only literal strings.
10197 2005-03-29 Vincent Celier <celier@adacore.com>
10199 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
10200 file and the reference symbol file to be the same file.
10202 2005-03-29 Thomas Quinot <quinot@adacore.com>
10204 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
10205 forbid conversion of a local access-to-subprogram type to a remote one.
10207 * sem_util.adb (Wrong_Type): For a record type that is the expanded
10208 equivalent type for a remote access-to-subprogram type, go back to the
10209 original RAS entity when displaying an error message, so the casing is
10210 the original source casing.
10212 2005-03-29 Robert Dewar <dewar@adacore.com>
10214 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
10217 2005-03-29 Ed Schonberg <schonberg@adacore.com>
10219 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
10220 subtype if code is being pre-analyzed, to prevent un-expanded
10221 references to protected formals, among others.
10222 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
10223 interpretation that can be a call, include the result of the call as a
10224 possible interpretation of the dereference.
10226 * sem_ch5.adb (Process_Bounds): Determine type of range by
10227 pre-analyzing a copy of the original range, and then analyze the range
10228 with the expected type.
10230 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
10231 with an overloaded prefix where not all interpretations yield an
10232 access to subprogram, do not rewrite node as a call.
10233 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
10234 the node as a call once the context identifies the interpretation of
10235 the prefix whose call yields the context type.
10236 (Valid_Conversion): For the case of a conversion between
10237 local access-to-subprogram types, check subtype conformance using
10238 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
10239 detailed error message.
10241 2005-03-29 Ed Schonberg <schonberg@adacore.com>
10243 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
10244 indicator, indicate that the formal can never be null.
10245 (Process_Formals): If a formal has a non_null indicator, insert the
10246 resulting subtype immediately before the enclosing subprogram decl,
10247 and not at the beginning of the corresponding declarative part, to
10248 prevent access before elaboration (Ada2005).
10250 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10253 * utils.c (finish_record_type): Use variable_size when setting sizes.
10255 2005-03-29 Robert Dewar <dewar@adacore.com>
10257 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
10258 guarantee Unix style line terminators for the output files, even when
10259 running on windows.
10261 2005-03-29 Robert Dewar <dewar@adacore.com>
10263 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
10264 buffer if an exception is raised.
10266 2005-03-29 Ed Falis <falis@adacore.com>
10268 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
10271 2005-03-29 Robert Dewar <dewar@adacore.com>
10273 * sem_util.ads: Minor reformatting
10274 * gnat_rm.texi: Minor editing.
10276 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
10278 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
10279 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
10281 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10283 * adaint.c (__gnat_portable_spawn): Adjust cast.
10285 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
10287 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
10289 2005-03-17 Pascal Obry <obry@adacore.com>
10291 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
10294 * expect.c (__gnat_waitpid): Moved here from adaint.c.
10295 Reimplement under Win32 using Win32 API.
10297 (__gnat_kill) [Win32]: Properly close the process handle before leaving
10300 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
10302 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
10303 (DECL_RENAMED_OBJECT): New accessor macro.
10304 (SET_DECL_RENAMED_OBJECT): New setter macro.
10306 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
10307 object in all cases. Attach the renamed object to the VAR_DECL.
10308 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
10309 field is not prescribed.
10311 * misc.c (gnat_handle_option): Handle -gnatO separately.
10312 (gnat_print_decl) <VAR_DECL>: New case.
10313 Print the DECL_RENAMED_OBJECT node.
10315 * lang.opt: Declare separate -gnatO option.
10317 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
10318 pointer, replace it with the renamed object.
10319 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
10320 pointer type if the source is not a fat pointer type whose underlying
10321 array has the same non-zero alias set as that of the destination array.
10323 2005-03-17 Javier Miranda <miranda@adacore.com>
10325 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
10326 (Get_Inheritance_Depth): Removed.
10327 (Set_Inheritance_Depth): Removed.
10329 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
10330 subprogram Get_Expanded_Name because it is not referenced by the
10333 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
10334 (CPP_Get_Inheritance_Depth): Removed.
10335 (CPP_Set_Inheritance_Depth): Removed.
10337 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
10339 2005-03-17 Robert Dewar <dewar@adacore.com>
10341 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
10342 3, since we now expect GCC 3 to do all the work.
10344 2005-03-17 Javier Miranda <miranda@adacore.com>
10346 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
10347 of one barrier to avoid wrong usage of this attribute.
10349 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
10350 First_Private_Entity.
10352 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
10353 the subprogram against wrong usage.
10354 Adapt the code to traverse the entities in the
10355 scope of a record_type because in addition to its usage regarding
10356 packages, this subprogram is also called by Expand_N_Freeze_Entity
10357 to install the visible declarations of the enclosing scope of a
10358 record_type_with_private to establish the proper visibility before
10359 freezing the entity and related subprograms.
10361 2005-03-17 Ed Schonberg <schonberg@adacore.com>
10363 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
10366 2005-03-17 Thomas Quinot <quinot@adacore.com>
10368 * exp_ch3.adb (Check_Attr): New subprogram.
10369 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
10370 into a new Check_Attr subprogram, in order to provide a more
10371 explanatory error message (including the name of the missing attribute).
10372 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
10373 subprogram determines whether a default implementation exists for a
10374 given stream attribute.
10375 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
10376 Determine whether to generate a default implementation for each stream
10377 attribute separately, as this depends on the specific attribute.
10379 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
10380 limited extension where a stream attribute is missing for a limited
10381 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
10382 generate a bogus reference to the missing attribute to prevent
10383 cascaded errors. Instead, generate a null statement.
10385 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
10386 available for a limited type if it has been specified for an ancestor
10389 2005-03-17 Ed Schonberg <schonberg@adacore.com>
10391 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
10392 entity is an operator.
10394 2005-03-17 Thomas Quinot <quinot@adacore.com>
10396 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
10397 spec, to make this predicate available to other units.
10399 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
10402 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
10403 when no distribution runtime library is available.
10405 * sem_res.adb, sem_dist.adb: Disable expansion of remote
10406 access-to-subprogram types when no distribution runtime library is
10408 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
10409 predicate available to other units.
10411 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
10412 spec, to make this predicate available to other units.
10414 2005-03-17 Vincent Celier <celier@adacore.com>
10416 * make.adb (Insert_Project_Sources): Make sure the Q is always
10419 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
10420 the default for the tree, not the global default naming.
10422 * prj-proc.adb (Recursive_Process): No need to put the default naming
10423 in the project data, it's already there.
10425 2005-03-17 Doug Rupp <rupp@adacore.com>
10427 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
10429 * 5xcrtl.ads: Renamed to...
10430 * s-crtl-vms64.ads: ...this new file
10432 2005-03-17 Robert Dewar <dewar@adacore.com>
10436 * namet.adb (Copy_One_Character): Set proper wide character encoding
10437 for upper half character if we have upper half encoding.
10439 2005-03-17 Robert Dewar <dewar@adacore.com>
10441 * par.adb (Par): Improved msg for attempt to recompile predefined unit
10443 2005-03-17 Thomas Quinot <quinot@adacore.com>
10445 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
10446 tagged limited type, the TSS is a newly built renaming declaration:
10447 insert it using Set_TSS, not Copy_TSS.
10449 2005-03-17 Javier Miranda <miranda@adacore.com>
10451 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
10452 Try_Object_Operation): Analyze the object that is accessible
10453 through the prefix of the subprogram call before we apply
10454 the transformation of the object-operation notation.
10456 2005-03-17 Jose Ruiz <ruiz@adacore.com>
10458 * s-taprob.adb (Initialize_Protection): Initialize the protected
10459 object's owner to Null_Task.
10460 (Lock): If pragma Detect_Blocking is in effect and the caller of this
10461 procedure is already the protected object's owner then Program_Error
10462 is raised. In addition the protected object's owner is updated.
10463 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
10464 of this procedure is already the protected object's owner then
10465 Program_Error is raised.
10466 In addition the protected object's owner is updated.
10467 (Unlock): Remove the ownership of the protected object.
10469 * s-taprob.ads (Protection): Add the field Owner, used to store the
10470 protected object's owner.
10471 This component is needed for detecting one type of potentially blocking
10472 operations (external calls on a protected subprogram with the same
10473 target object as that of the protected action). Document the rest of
10476 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
10477 Initialize the protected object's owner to Null_Task.
10478 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
10479 caller of this procedure is already the protected object's owner then
10480 Program_Error is raised.
10481 Do not raise Program_Error when this procedure is called from a
10483 (Unlock_Entries): Remove the ownership of the protected object.
10484 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
10485 of this procedure is already the protected object's owner then
10486 Program_Error is raised.
10487 Do not raise Program_Error when this procedure is called from
10488 a protected action.
10490 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
10491 used to store the protected object's owner.
10493 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
10494 effect and this procedure (a potentially blocking operation) is called
10495 from whithin a protected action, Program_Error is raised.
10496 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
10497 and this procedure (a potentially blocking operation) is called from
10498 whithin a protected action, Program_Error is raised.
10500 2005-03-17 Vincent Celier <celier@adacore.com>
10501 Nicolas Setton <setton@adacore.com>
10503 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
10504 switch, not supported by the linker on Darwin. Add '_' before
10505 <library>init, as this character is added unconditionally by the
10507 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
10508 correct one ".dylib". This fixes detection of the archive files when
10509 building library projects.
10511 2005-03-17 Vincent Celier <celier@adacore.com>
10513 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
10514 -gnat83, -gnat95 and -gnat05.
10516 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
10518 * gnat_ugn.texi: Document gnatmem restriction
10520 2005-03-17 Thomas Quinot <quinot@adacore.com>
10522 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
10525 2005-03-17 Robert Dewar <dewar@adacore.com>
10527 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
10528 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
10529 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
10531 * casing.adb: Comment improvements
10533 2005-03-17 Pascal Obry <obry@adacore.com>
10535 * g-expect.adb: Minor reformatting.
10537 2005-03-15 Zack Weinberg <zack@codesourcery.com>
10539 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
10540 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
10543 2005-03-15 Vincent Celier <celier@adacore.com>
10545 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
10546 Add new parameter In_Tree to specify the project tree: needed
10547 by the project manager. Adapt to changes in project manager
10548 using new parameter In_Tree.
10550 2005-03-15 Jakub Jelinek <jakub@redhat.com>
10552 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
10553 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
10554 ada/bldtools to avoid make -jN failures.
10556 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
10558 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
10559 to NULL_TREE on entry.
10561 2005-03-15 Robert Dewar <dewar@adacore.com>
10563 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
10564 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
10565 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
10566 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
10567 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
10568 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
10569 system-interix.ads, system-solaris-sparc.ads,
10570 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
10571 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
10572 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
10573 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
10574 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
10575 Compiler_System_Version to be False.
10577 * opt.ads: Add new flag Opt.Address_Is_Private
10579 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
10580 Add new parameter Compiler_System_Version to avoid checking for
10581 completeness of parameters when compiler is compiling itself.
10582 Allows old versions of GNAT to be compiled with new compiler.
10584 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
10586 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
10587 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
10589 (Stack_Base_Available): New flag.
10590 (Get_Page_Size): New overloaded functions imported from C.
10591 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
10592 PROT_ON, PROT_OFF): New constants.
10593 (mprotect): New function imported from C.
10594 (pthread_teb_t): New record type.
10596 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
10597 (Create_Task): Account for the Yellow Zone and the guard page.
10599 2005-03-15 Vincent Celier <celier@adacore.com>
10601 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10602 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
10603 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
10604 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
10605 Library_File_Name_For): Add new parameter In_Tree
10606 to specify the project tree: needed by the project manager.
10607 Adapt to changes in project manager using new parameter In_Tree.
10608 Remove local imports, use functions in System.CRTL.
10610 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
10611 to use the project manager.
10613 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
10614 In_Tree to designate the project tree. Adapt to changes in the project
10615 manager, using In_Tree.
10617 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
10618 Copy_Interface_Sources): Add new parameter In_Tree to specify the
10619 project tree: needed by the project manager.
10620 (Build_Library): Check that Arg'Length >= 6 before checking if it
10621 contains "--RTS=...".
10623 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
10624 Library_File_Name_For): Add new parameter In_Tree to specify the
10625 project tree: needed by the project manager.
10627 * prj.ads, prj.adb: Major modifications to allow several project trees
10628 in memory at the same time.
10629 Change tables to dynamic tables and hash tables to dynamic hash
10630 tables. Move tables and hash tables from Prj.Com (in the visible part)
10631 and Prj.Env (in the private part). Move some constants from the visible
10632 part to the private part. Make other constants deferred.
10633 (Project_Empty): Make it a variable, not a function
10634 (Empty_Project): Add parameter Tree. Returns the data with the default
10635 naming data of the project tree Tree.
10636 (Initialize): After updating Std_Naming_Data, copy its value to the
10637 component Naming of Project Empty.
10638 (Register_Default_Naming_Scheme): Use and update the default naming
10639 component of the project tree, instead of the global variable
10641 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
10642 Tree is not defaulted, return the default naming data of the Tree.
10643 (Initial_Buffer_Size): Constant moved from private part
10644 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
10645 variables initialized in procedure Initialize.
10646 (Add_To_Buffer): Add two in out parameters to replace global variables
10647 Buffer and Buffer_Last.
10648 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
10650 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
10652 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
10653 for the project tree.
10654 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
10655 constant at the beginning of the package spec, so that they cane be used
10656 in subprograms before their full declarations.
10657 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
10658 (Empty_Project): Add parameter of type Project_Node_Ref
10659 (Private_Project_Tree_Data): Add component Default_Naming of type
10661 (Buffer, Buffer_Last): remove global variables
10662 (Add_To_Buffer): Add two in out parameters to replace global variables
10663 Buffer and Buffer_Last.
10664 (Current_Packages_To_Check): Remove global variable
10665 (Empty_Name): Move to private part
10666 (No-Symbols): Make it a constant
10667 (Private_Project_Tree_Data): New type for the private part of the
10669 (Project_Tree_Data): New type for the data of a project tree
10670 (Project_Tree_Ref): New type to designate a project tree
10671 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
10672 for the project tree.
10674 * prj-attr.ads: Add with Table; needed, as package Prj no longer
10675 imports package Table.
10677 * prj-com.adb: Remove empty, no longer needed body
10679 * prj-com.ads: Move most of the content of this package to package Prj.
10681 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
10682 designate the project node tree and Packages_To_Check to replace
10683 global variable Current_Packages_To_Check.
10684 Add new parameters In_Tree and Packages_To_Check to local subprograms,
10685 when needed. Adapt to changes in project manager with project node tree
10688 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
10689 project tree to most subprograms. Move tables and hash tables to
10690 private part of package Prj.
10691 Adapt to changes in project manager using project tree In_Tree.
10693 * prj-makr.adb (Tree): New constant to designate the project node tree
10694 Adapt to change in project manager using project node tree Tree
10696 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
10697 display the Library_Src_Dir and the Library_Dir.
10698 Add new parameter In_Tree to designate the project node tree to most
10699 subprograms. Adapt to changes in the project manager, using project tree
10701 (Check_Naming_Scheme): Do not alter the casing on platforms where
10702 the casing of file names is not significant.
10703 (Check): Add new parameter In_Tree to designate the
10705 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
10706 designate the project tree.
10707 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
10709 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
10710 to replace those that were in the private part of package Prj.
10711 Add new parameter In__Tree to designate the project node tree to most
10712 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
10713 (Post_Parse_Context_Clause): When specifying the project node of a with
10714 clause, indicate that it is a limited with only if there is "limited"
10715 in the with clause, not necessarily when In_Limited is True.
10716 (Parse): Add new parameter In_Tree to designate the project node tree
10718 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
10719 designate the project node tree. Adapt to change in Prj.Tree with
10720 project node tree In_Tree.
10722 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
10723 tree In_Tree in the call to function Empty_Process to give its initial
10724 value to the project data Processed_Data.
10725 Add new parameters In_Tree to designate the project tree and
10726 From_Project_Node_Tree to designate the project node tree to several
10727 subprograms. Adapt to change in project manager with project tree
10728 In_Tree and project node tree From_Project_Node_Tree.
10730 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
10731 to replace those that were in the private part of package Prj.
10732 Add new parameter In_Tree to designate the project node tree to most
10733 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
10735 * prj-tree.ads, prj-tree.adb: Add new parameter of type
10736 Project_Node_Tree_Ref to most subprograms.
10737 Use this new parameter to store project nodes in the designated project
10739 (Project_Node_Tree_Ref): New type to designate a project node tree
10740 (Tree_Private_Part): Change table to dynamic table and hash tables to
10741 dynamic hash tables.
10743 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
10744 the project tree to most subprograms. Adapt to changes in project
10745 manager using project tree In_Tree.
10747 * makegpr.adb (Project_Tree): New constant needed to use project
10750 2005-03-15 Olivier Hainque <hainque@adacore.com>
10752 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
10753 for sigactions with SA_SIGINFO set. Call
10754 __gnat_adjust_context_for_raise before raising, to perform the
10755 potentially required adjustments to the machine context for the GCC
10758 * raise.h (__gnat_adjust_context_for_raise): New prototype.
10760 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
10761 Adjust PC by one in the provided machine context.
10762 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
10763 so that the handler is passed the context structure to adjust prior to
10765 (__gnat_error_handler) HPUX: Adjust the signature to match what an
10766 SA_SIGINFO sigaction should look like. Call
10767 __gnat_adjust_context_for_raise before actually raising.
10768 (__gnat_adjust_context_for_raise): Default noop to help PC
10769 adjustments before raise from signal handlers.
10770 (__gnat_error_handler): Indirectly call a predicate function to
10771 determine if a condition should be resignaled or not.
10772 (__gnat_set_resignal_predicate): User interface to modify the predicate.
10773 (__gnat_default_resignal_p): Default GNAT predicate.
10775 2005-03-15 Doug Rupp <rupp@adacore.com>
10777 * adaint.c: Prefix #include of VMS system header files with vms/
10778 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
10779 Do not define a dummy function "convert_addresses" under Darwin,
10782 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
10785 2005-03-15 Nicolas Setton <setton@adacore.com>
10787 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
10790 2005-03-15 Robert Dewar <dewar@adacore.com>
10792 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
10795 * a-retide.ads: Minor comment changes
10797 2005-03-15 Robert Dewar <dewar@adacore.com>
10799 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
10800 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
10801 Realloc_For_Chunk to private part of package.
10802 New subprograms for AI-301
10804 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
10805 Get_Line procedure.
10806 Avoid unnecessary use of Get/Set_Wide_String
10808 2005-03-15 Robert Dewar <dewar@adacore.com>
10812 * a-stunau.ads, a-stunau.adb:
10813 Change interface to allow efficient (and correct) implementation
10814 The previous changes to allow extra space in unbounded strings had
10815 left this interface a bit broken.
10817 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
10819 * g-spipat.ads, g-spipat.adb: New interface for Get_String
10820 Minor reformatting (function specs)
10822 * g-spitbo.adb: New interface for Get_String
10824 * g-spitbo.ads: Minor reformatting
10826 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
10828 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
10830 2005-03-15 Javier Miranda <miranda@adacore.com>
10831 Robert Dewar <dewar@adacore.com>
10832 Thomas Quinot <quinot@adacore.com>
10833 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10835 * atree.ads, atree.adb: Add support for Elist24 field
10837 * atree.h: Fix wrong definition of Field27
10838 Add support for Elist16 field
10839 Add support for Elist24 field
10841 * einfo.ads, einfo.adb (Abstract_Interfaces,
10842 Set_Abstract_Interfaces): New subprograms.
10843 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
10845 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
10846 entities rather than a single node.
10847 (Is_Interface, Set_Is_Interface): New subprogram
10848 (First_Tag_Component): New syntesized attribute
10849 (Next_Tag_Component): New synthesized attribute
10850 (Write_Entity_Flags): Upgraded to write Is_Interface
10851 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
10852 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
10853 (Task_Body_Procedure): New subprogram to read this attribute.
10854 (Set_Task_Body_Procedure): New subprogram to set this attribute.
10855 (Has_Controlled_Component): Now applies to all entities.
10856 This is only a documentation change, since it always worked to apply
10857 this to other than composite types (yielding false), but now this is
10859 Update documentation on Must_Be_Byte_Aligned for new spec
10861 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
10862 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
10863 uses of the Access_Disp_Table attribute to reference the first dispatch
10864 table associated with a tagged type. As
10865 part of the implementation of abstract interface types,
10866 Access_Disp_Table has been redefined to contain a list of dispatch
10867 tables (rather than a single dispatch table).
10868 Similarly, upgrade all the references to Tag_Component by the
10869 new attribute First_Tag_Component.
10870 (Find_Inherited_TSS): Moved to exp_tss.
10871 Clean up test in Expand_N_Object_Declaration for cases
10872 where we need to do a separate assignment of the initial value.
10873 (Expand_N_Object_Declaration): If the expression in the
10874 declaration of a tagged type is an aggregate, no need to generate an
10875 additional tag assignment.
10876 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
10878 Bit packed array ops are only called if operands are known to be
10880 (Component_Equality): When returning an N_Raise_Program_Error statement,
10881 ensure that its Etype is set to Empty to avoid confusing GIGI (which
10882 expects that only expressions have a bona fide type).
10883 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
10884 determine the amount of data to be copied.
10886 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
10887 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
10888 INTERFACE_TYPE_DEFINITION ::=
10889 [limited | task | protected | synchronized] interface
10890 [AND interface_list]
10892 * par-ch3.adb (P_Type_Declaration): Modified to give support to
10894 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
10896 (P_Interface_Type_Definition): New subprogram that parses the new
10897 syntax rule of Ada 2005 interfaces
10898 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
10899 messages by the correct RENAMES (quotes removed).
10901 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
10902 attribute First_Tag_Component.
10904 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
10905 (Interface_List, Set_Interface_List): New subprograms.
10906 (Interface_Present, Set_Interface_Present): New subprograms.
10907 (Limited_Present, Set_Limited_Present): Available also in derived
10908 type definition nodes.
10909 (Protected_Present, Set_Protected_Present): Available also in
10910 record type definition and
10911 derived type definition nodes.
10912 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
10913 (Task_Present, Set_Task_Present): New subprogram.
10914 (Task_Body_Procedure): Removed.
10915 (Set_Task_Body_Procedure): Removed.
10916 These subprogram have been removed because the attribute
10917 Task_Body_Procedure has been moved to the corresponding task type
10918 or task subtype entity to leave a field free to store the list
10919 of interfaces implemented by a task (for AI-345)
10920 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
10921 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
10922 expression flag Do_Range_Check
10923 (Exception_Junk): Change to Flag7 to accomodate above change
10924 (Box_Present, Default_Name, Specification, Set_Box_Present,
10925 Set_Default_Name, Set_Specification): Expand the expression
10926 "X in N_Formal_Subprogram_Declaration" into the corresponding
10927 two comparisons. Required to use the csinfo tool.
10929 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
10930 "with string" given.
10932 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
10935 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
10938 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
10939 attribute Task_Body_Procedure rather than the old semantic field that
10940 was available in the task_type_declaration node.
10942 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
10943 interface type definitions.
10944 (P_Formal_Derived_Type_Definition): Modified to handle the list of
10947 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
10948 task type declaration.
10949 (P_Protected): Modified to handle the list of interfaces in a
10950 protected type declaration.
10952 2005-03-15 Doug Rupp <rupp@adacore.com>
10953 Vincent Celier <celier@adacore.com>
10955 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
10956 (Gen_Output_File_C): Likewise.
10957 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
10959 2005-03-15 Thomas Quinot <quinot@adacore.com>
10961 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
10962 is an N_Raise_Constraint_Error node, create a new copy of it without
10963 going through a call to Duplicate_Subexpr.
10965 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
10966 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10967 Nicolas Setton <setton@adacore.com>
10968 Ed Schonberg <schonberg@adacore.com>
10975 * decl.c (gnat_to_gnu_field): Reject aliased components with a
10976 representation clause that prescribes a size not equal to the rounded
10977 size of their types.
10978 (gnat_to_gnu_entity, case E_Component): Always look at
10979 Original_Record_Component if Present and not the entity.
10980 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
10981 of tagged extension types by not making field for components that are
10983 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
10984 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
10985 expression to the type of the object when the object is constant.
10986 Reverse defer_debug_incomplete_list before traversing it, so that trees
10987 are processed in the order at which they were added to the list. This
10988 order is important when using the stabs debug format.
10989 If we are deferring the output of debug information, also defer this
10990 output for a function return type.
10991 When adding fields to a record, prevent emitting debug information
10992 for incomplete records, emit the information only when the record is
10994 (components_to_record): New parameter defer_debug.
10995 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
10996 (gnat_to_gnu_field_decl): New function.
10997 (substitution_list, annotate_rep): Call it.
10998 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
10999 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
11000 No longer update discriminants to not be a COMPONENT_REF.
11001 (copy_alias_set): Strip padding from input type; also handle
11002 unconstrained arrays properly.
11004 * gigi.h (write_record_type_debug_info): New function.
11005 Convert to use ANSI-style prototypes. Remove unused
11006 declarations for emit_stack_check, elab_all_gnat and
11007 set_second_error_entity.
11008 (gnat_to_gnu_field_decl): New decl.
11010 * utils.c (write_record_type_debug_info): New function.
11011 (finish_record_type): Delegate generation of debug information to
11012 write_record_type_debug_info.
11013 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
11014 (update_pointer_to): Fix pasto.
11015 (convert) <UNION_TYPE>: Accept slight type variations when
11016 converting to an unchecked union type.
11018 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
11019 replace the N_Freeze_Entity with a null statement.
11021 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
11022 within a constrained subcomponent of an enclosing record, place the
11023 freeze nodes in the scope stack entry for the enclosing record.
11024 (Undelay_Type): New Subprogram.
11025 (Set_Small_Size): Pass T, the type to modify; all callers changed.
11026 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
11027 within records; allow them to have freeze nodes if their base types
11030 * exp_util.adb (Remove_Side_Effects): Properly test for
11031 Expansion_Delayed and handle case when it's inside an
11032 N_Qualified_Expression.
11034 * sem_ch3.adb (Derived_Type_Declaration): New predicate
11035 Comes_From_Generic, to recognize accurately that the parent type in a
11036 derived type declaration can be traced back to a formal type, because
11037 it is one or is derived from one, or because its completion is derived
11039 (Constrain_Component_Type): If component comes from source and has no
11040 explicit constraint, no need to constrain in in a subtype of the
11042 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
11043 Minor change to propagate Is_Ada_2005 flag
11045 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
11046 Expansion_Delayed is False.
11047 (assoc_to_constructor): Ignore fields that have a
11048 Corresponding_Discriminant.
11049 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
11050 function returns "by target", dereference the target pointer using the
11051 type of the actual return value.
11052 <all>: Be prepared for a null gnu_result.
11053 (processed_inline_subprograms): Check flag_really_no_inline
11054 instead of flag_no_inline.
11055 (set_second_error_entity): Remove unused function.
11056 (gnat_to_gnu, case N_Selected_Component): Call
11057 gnat_to_gnu_field_decl.
11058 (assoc_to_constructor): Likewise.
11060 2005-03-15 Robert Dewar <dewar@adacore.com>
11061 Ed Schonberg <schonberg@adacore.com>
11062 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11064 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
11065 Must_Be_Byte_Aligned for cases where we do not need to use a
11066 System.Pack_nn unit.
11068 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
11070 Needed now that we do some processing for IN parameters as well. This
11071 may well fix some unrelated errors.
11072 (Expand_Call): Handle case of unaligned objects (in particular those
11073 that come from packed arrays).
11074 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
11075 renamed entity is an inherited operation, re-expand the call using the
11076 original operation, which is the one to call.
11077 Detect attempt to inline parameterless recursive subprogram.
11078 (Represented_As_Scalar): Fix to work properly with private types
11079 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
11080 accurate estimate. Yields True in far fewer cases than before,
11081 improving the quality of code that depends on this test.
11083 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
11084 over both visible and private declarations to remove them from tree,
11085 and mark subprograms declared in package as eliminated, to prevent
11086 spurious use in subsequent compilation of generic units in the context.
11088 * exp_util.ads: Minor cleanup in variable names
11090 * sem_eval.ads, sem_eval.adb: Minor reformatting
11091 (Compile_Time_Known_Bounds): New function
11093 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11095 * exp_ch7.adb (Convert_View): Use base types of underlying types when
11096 determining whether an unchecked conversion is needed for the argument
11097 of an initialization call.
11099 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11101 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
11102 that appears in the instantiation rather than the internal subtype
11103 generated in the wrapper package, to avoid anomalies in gigi when the
11104 target is derived from a private type whose full view is an access type.
11106 2005-03-15 Robert Dewar <dewar@adacore.com>
11108 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
11110 Add documentation to replace the use of this flag
11111 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
11114 2005-03-15 Thomas Quinot <quinot@adacore.com>
11116 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
11117 here from exp_attr so it can be shared between exp_attr and exp_dist.
11118 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
11119 all TSS names, not a subset thereof, and the previous name introduced
11120 an unnecessarily confusion that a distinction might exist between
11121 "OK" TSS names and some "not OK" TSS names.
11123 2005-03-15 Doug Rupp <rupp@adacore.com>
11125 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
11128 2005-03-15 Pascal Obry <obry@adacore.com>
11129 Eric Botcazou <ebotcazou@adacore.com>
11134 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
11135 when IN_RTS. This is to work around a bootstrap path problem.
11137 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
11138 table and pass it to __gnat_install_SEH_handler().
11139 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
11141 * lang.opt: Fix specification of -fRTS=.
11143 2005-03-15 Doug Rupp <rupp@adacore.com>
11144 Bernard Banner <banner@adacore.com>
11145 Vincent Celier <celier@adacore.com>
11146 Arnaud Charlet <charlet@adacore.com>
11149 This change works fine when gnatlib is built from the gcc directory,
11150 but does not work when using the libada Makefile, since GCC_FOR_TARGET
11151 is not passed to ada/Makefile.in, so more work is needed by a
11152 Makefile/configure expert.
11154 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
11155 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
11156 Setup gnatlink switch -M for x86_64 linux, as it is already setup
11158 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
11159 Run ranlib on libgccprefix.a
11160 Define PREFIX_OBJS for Darwin, to build libgccprefix.
11161 (ADA_INCLUDE_SRCS): Split Ada packages.
11163 2005-03-15 Robert Dewar <dewar@adacore.com>
11165 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
11167 * impunit.adb: Add GNAT.UTF_32
11169 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
11171 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
11172 now uses GNAT.UTF_32).
11174 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
11175 capabilities for categorizing characters using Unicode categories
11177 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11179 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
11180 instantiation that has been rewritten as a package body, retrieve spec
11181 to generate proper name for implicit_with_clause.
11182 (Install_Parents): Recognize a parent that is an instantiation but has
11183 been rewritten as a package declaration during analysis.
11185 2005-03-15 Javier Miranda <miranda@adacore.com>
11186 Ed Schonberg <schonberg@adacore.com>
11188 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
11189 parameter reported some error we immediately return. This improves the
11190 behaviour of the frontend in case of errors.
11191 (Install_Parent, Remove_Parent): Introduce new flag
11192 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
11193 ancestor of a generic child unit, when the child is being instantiated.
11194 (Inline_Instance_Body): If we are compiling the private
11195 part or the body of a child unit, restore the proper visibility of the
11196 parents after compiling the instance body.
11198 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11199 Javier Miranda <miranda@adacore.com>
11202 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
11203 of a private type, in which case it is underlying_type that denotes
11204 the proper task. Also modified to use the new entity attribute
11205 that is directly available in the task type and task subtype entities
11206 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
11207 arrays when other dimensions than the first are constrained by
11208 discriminants of an enclosing record.
11209 (Insert_Explicit_Dereference): If the prefix is an indexed component or
11210 a combination of indexed and selected components, find ultimate entity
11211 and generate the appropriate reference for it, to suppress spurious
11213 (Note_Possible_Modification): If an entity name has no entity, return.
11214 (Is_Variable): A function call never denotes a variable.
11215 (Requires_Transient_Scope): For record types, recurse only on
11216 components, not on internal subtypes that may have been generated for
11217 constrained components.
11219 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11221 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
11222 Eliminated as candidates for resolution. Both efficient, and avoids
11223 anomalies with operators declared in deleted code.
11224 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
11225 expansion is disabled (as when compiling a generic) to prevent spurious
11226 warnings on prefixes of selected components.
11228 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11230 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
11231 attached to a list before checking whether it appears in the private
11232 declarations of the current package.
11233 (Make_Inequality_Operator): Insert declaration in proper declarative
11234 list rather than just setting the Parent field, so that
11235 Is_Private_Declaration can handle it properly.
11237 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11239 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
11240 a renaming a body, check that the renamed subprogram in not intrinsic.
11241 (Find_Direct_Name): If several use_visible entities hide
11242 each other, and the context is a predefined file compiled through
11243 rtsfind, keep only the entity that comes from a predefined file.
11245 2005-03-15 Geert Bosch <bosch@adacore.com>
11247 * s-fatgen.adb (Valid): Extend special exceptions to account for long
11248 long float padding to also cover AMD64 and IA64.
11250 2005-03-15 Gary Dismukes <dismukes@adacore.com>
11252 * s-imgwch.adb: Add with and use of Interfaces.
11253 (Img_Wide_Character): Change type of Val to Unsigned_16.
11254 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
11256 2005-03-15 Matthew Gingell <gingell@adacore.com>
11258 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
11260 2005-03-15 Robert Dewar <dewar@adacore.com>
11262 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
11264 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
11266 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
11268 2005-03-15 Robert Dewar <dewar@adacore.com>
11270 * s-bitops.adb, s-bitops.ads,
11271 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
11272 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
11273 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
11274 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
11275 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
11276 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
11277 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
11278 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
11281 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
11283 * utils2.c (build_binary_op): Fix typo.
11285 2005-03-15 Doug Rupp <rupp@adacore.com>
11287 * s-crtl.ads (popen,pclose): New imports.
11289 2005-03-15 Cyrille Comar <comar@adacore.com>
11291 * comperr.adb (Compiler_Abort): remove references to obsolete
11292 procedures in the bug boxes for various GNAT builds.
11294 2005-03-15 Vincent Celier <celier@adacore.com>
11296 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
11298 2005-03-15 Geert Bosch <bosch@adacore.com>
11299 Arnaud Charlet <charlet@adacore.com>
11300 Robert Dewar <dewar@adacore.com>
11301 Cyrille Comar <comar@adacore.com>
11302 Sergey Rybin <rybin@adacore.com>
11304 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
11305 too specific and long-winded to be appropriate for the GNAT User's
11307 Warn about use of GCC switches not documented in the GNAT User's Guide,
11308 as these may cause generated code to not conform to Ada semantics.
11309 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
11310 Add documentation for -gnat95 and -gnat05 switches
11311 Remove paragraph documenting obsolete way to refer to third party
11313 Add a few references to Ada_05 that were missing.
11314 Update documentation on -gnatZ/-gnatL.
11315 Document limitation when using -m64 under Solaris.
11316 Change the "Name Casing" subsection of the pretty-printer section
11317 according to the changes in the dictionary processing.
11319 * gnat_rm.texi: Document the Ada_05 pragma.
11320 Section on record representation clauses describes the new more
11321 relaxed rules about placement of large packed bit array components.
11322 Add documentation of GNAT.UTF_32
11324 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
11326 * misc.c (gnat_post_options): Turn off structural
11329 2005-03-08 Laurent Guerby <laurent@guerby.net>
11331 * system-linux-sparc.ads: Fix typo in previous commit.
11333 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
11334 Laurent Guerby <laurent@guerby.net>
11337 * system-linux-sparc.ads: New.
11338 * Makefile.in: Add sparc linux entry.
11340 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
11342 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
11343 parameters as unused.
11345 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
11346 Partial merge from libada-gnattools-branch:
11348 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
11349 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
11350 into code in gnattools/Makefile.in. Remove direct dependencies on
11351 stamp-tools by tools clauses.
11352 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
11353 * config-lang.in: Add gnattools to $lang_dirs.
11355 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
11358 * utils.c (gnat_type_for_mode): Return null instead of ICE because
11359 we asked for an unknown mode.
11361 2005-02-12 Richard Henderson <rth@redhat.com>
11363 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
11364 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
11366 2005-02-10 Andreas Jaeger <aj@suse.de>
11368 * init.c (__gnat_initialize): Mark parameter as unused.
11370 2005-02-09 Doug Rupp <rupp@adacore.com>
11372 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
11373 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
11375 2005-02-09 Doug Rupp <rupp@adacore.com>
11377 * gnatchop.adb (dup, dup2),
11378 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
11380 * gnatlbr.adb (mkdir),
11381 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
11383 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
11385 2005-02-09 Doug Rupp <rupp@adacore.com>
11387 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
11389 2005-02-09 Robert Dewar <dewar@adacore.com>
11390 Thomas Quinot <quinot@adacore.com>
11391 Javier Miranda <miranda@adacore.com>
11392 Pascal Obry <obry@adacore.com>
11393 Ed Schonberg <schonberg@adacore.com>
11394 Doug Rupp <rupp@adacore.com>
11395 Gary Dismukes <dismukes@adacore.com>
11396 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11398 * g-zstspl.ads: New file.
11400 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
11402 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
11404 Add definition of Wide_Wide_Space for AI-285
11406 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
11407 interface (to support Ada 95 and Ada 2005 units).
11408 Add Unbounded_IO files
11409 Add entries for Wide_Wide packages for AI-285
11410 Add list of containers packages to Ada 2005 unit list
11412 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
11413 support new Unbounded_IO package cleanly.
11415 * g-utf_32.ads, g-utf_32.adb: New files.
11417 * Makefile.rtl: Add entry for g-utf_32
11418 Add new files for Unbounded_IO
11419 Adjust make file for new AI-285 wide wide packages
11420 Add AI-302 containers to the run time.
11422 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
11423 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
11424 subprograms for AI-301.
11426 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
11428 * a-stunau.ads: Minor comment correction
11430 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
11432 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
11433 (Check_RPC): Update to match changes in expanded code.
11434 Clean up unused entity.
11436 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
11437 was not taken into account.
11438 This includes proper initialization with Normalize_Scalars.
11439 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
11440 normalize scalars cases (particularly the latter) to do a better job
11441 of finding invalid representations.
11443 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
11445 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
11448 * exp_dist.adb: Add support for wide wide character type
11449 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
11450 private part, generate stub bodies at the end of the private part,
11451 not the visible part.
11452 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
11454 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
11455 generic wrapper to execute final processing after completing the
11456 expansion of the RPC receiver for an RACW.
11458 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
11459 packages and attributes.
11460 (Preset_Names): Addition of the new reserved words of Ada 2005,
11461 that is interface, overriding and synchronized.
11462 (Get_Pragma_Id): Give support to the use of the new reserved word
11463 "interface" as a pragma name.
11464 (Is_Pragma_Name): Give support to the use of the new reserved word
11465 "interface" as a pragma name.
11466 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
11467 attribute implementation.
11469 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
11470 checks to entities that are output parameters of Asm operations.
11471 Handle the Stream_Size attribute.
11472 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
11474 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
11476 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
11477 for second parameter being 0.0.
11478 Add support for wide wide character type.
11479 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
11481 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
11482 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
11483 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
11484 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
11485 for wide wide character cases.
11487 * cstand.adb: Create entities for Wide_Wide_Character and
11490 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
11491 accordance with AI-258.
11492 Add new declarations for 16/32 bit C character types (Part of AI285)
11494 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
11495 (Obsolescent_Warning): New field
11496 (Rep_Clause): New local subprogram used to share code. Returns the rep
11497 clause for which the name is given in parameter.
11498 (Has_Stream_Size_Clause): New routine.
11499 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
11500 (Address_Clause): Implementation is now using Rep_Clause.
11501 (Alignment_Clause): Idem.
11502 (Size_Clause): Idem.
11504 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
11505 entity in non-Ada 2005 mode and generate warning.
11507 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
11508 (Prag): Code cleanup. Remove old gnat pragma "overriding"
11510 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
11511 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
11512 on the named unit if the pragma is not in the current compilation unit,
11513 so that elaboration calls in the current unit can set up an elaboration
11514 dependency on the named unit, as needed.
11515 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
11516 subprogram as well as for subprograms declared within a package.
11517 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
11520 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
11521 to z) to avoid some instances of duplication for Wide_Wide packages.
11523 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
11526 * scn.adb: Char_Literal_Value field is now a Uint
11528 * scng.adb: Significant rewrite to handle new Ada 2005 features
11529 allowing wide and wide wide characters in program text, e.g. for
11530 identifiers, as described in AI-285.
11531 (Set_Reserved): New procedure, makes setting up keywords cleaner.
11532 (Initialize_Scanner): Register the new reserved words of Ada 2005.
11533 (Scan): Give support to the new reserved words.
11535 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
11536 warning notifying that interface, overriding, and synchronized are
11537 new reserved words.
11538 (P_Pragma): Allow the use of the new reserved word "interface" as
11541 * gnatls.adb, gnatbind.adb,
11542 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
11543 identifiers named "interface" to "SAL_Interface".
11545 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
11546 (Structured Exception handling).
11547 (Gen_Main_C): Idem.
11550 (Gen_Main_Ada): Set the default exit code if specified.
11551 (Gen_Main_C): Likewise.
11553 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
11554 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
11556 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
11559 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
11560 has a collision with the new Ada 2005 "interface" reserved word.
11562 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
11563 generate a warning notifying that interface, overriding, and
11564 synchronized are new reserved words.
11566 * scans.ads (Token_Type): Addition of the tokens corresponding to the
11567 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
11568 and Tok_Synchronized.
11570 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
11571 "dispatching" rather than "primitive" operations, since dispatching
11572 calls are now allowed to abstract formal subprograms (which are not
11574 Char_Literal_Value field is now a Uint
11575 (Resolve_Slice): If the prefix is an access to an unconstrained array,
11576 compute the actual subtype of the designated object to impose the proper
11578 (Resolve_Selected_Component): Do not insert an access check if the
11579 prefix is an access type: such a node is expanded into an explicit
11580 dereference, on which the access check is performed anyway. Removes
11581 expensive duplicate checks.
11582 (Resolve_Call): Use new flag Is_Obsolescent and field
11583 Obsolescent_Warning so that pragma Obsolescent works on library
11585 Add support for wide wide character type
11586 (Resolve_Allocator): Replace the error message on wrong null-exclusion
11587 value by a warning message.
11588 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
11589 as fixed-point, and one of the operands is non-static and universal, it
11590 can only be an illegal exponentiation operation, in which case there is
11591 no real value to retrieve.
11593 * exp_strm.adb: Add support for wide wide character type
11594 (Build_Elementary_Input_Call): Compute the size of the stream element by
11595 querying the rep chain to find the Stream_Attribute attribute value.
11596 (Build_Elementary_Write_Call): Ditto.
11598 * sem_aggr.adb: Char_Literal_Value field is now a Uint
11599 Add support for wide wide character type
11600 Replace the error messages on wrong null-exclusion value by warnings
11601 as described in Ada 2005.
11602 (Resolve_Extension_Aggregate): Document the fact that the error
11603 message on class-wide expressions in extensions aggregates.
11605 * sem_case.adb: Add support for wide wide character type
11607 * sem_ch13.adb: Add support for wide wide character type
11608 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
11610 * sem_ch3.adb: Add support for wide wide character type
11611 (Process_Subtype): If constraint is illegal for the type, set Ekind of
11612 now-useless Itype, to prevent cascaded errors on a compiler built
11615 * sem_ch8.adb: Add with and use of Sem_Disp.
11616 (Analyze_Subprogram_Renaming): Replace unclean uses of
11617 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
11618 of Corresponding_Spec to Empty).
11619 (Attribute_Renaming): Replace use of Corresponding_Spec with
11620 Corresponding_ Formal_Spec and simplify condition.
11621 (Use_One_Package): Check that scope of homonym of identifier is defined,
11622 before checking whether it is a wrapper package.
11623 Add support for wide wide character type
11625 * sem_eval.adb: Add support for wide wide character type.
11626 (Eval_Arithmetic_Op): Check for compile time known signed integer
11627 overflow in the non-static case.
11628 (Subtypes_Statically_Match): A formal scalar type and its base type do
11629 not statically match.
11631 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
11632 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
11634 (Unit_Declaration_Node): Ditto.
11635 (Is_Variable_Prefix): For the case of an indexed component whose prefix
11636 has a packed array type, the prefix has been rewritten into a type
11637 conversion. Determine variable-ness from the converted expression.
11638 Handle wide wide character cases.
11640 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
11642 * stringt.ads, stringt.adb: Handle full UTF-32 range.
11643 Remove ["0A"] from comment, since it can look like a line terminator.
11644 Currently we don't permit this, but this is under discussion by the
11645 ARG, and it is easy enough to use a different example.
11647 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
11648 handling UTF-32 encoding for wide wide character.
11649 Implement new brackets coding ["hhhhhhhh"]
11650 Add UTF-8 encodings for full UTF-32 range
11652 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
11654 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
11655 bit range Add full UTF-32 support.
11656 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
11657 notify that constraint error will be raised at run-time
11658 because a null value is assigned to a null-excluding object.
11659 Remove some obsolete declarations and make Char_Code
11662 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
11663 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
11664 Rcheck subprograms.
11666 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
11667 wrong null-exclusion value by a warning message.
11668 (Enable_Range_Check): Do range check if the prefix is an
11669 explicit dereference whose designated object is an unconstrained array.
11670 Current algorithm for removing duplicate checks is over-eager in this
11673 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
11674 null-exclusion value by a warning message
11676 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
11677 completely. Add support for Uint2 field
11679 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
11680 exp_prag.adb: Char_Literal_Value field is now a Uint.
11682 * exp_util.adb (Insert_Actions): Replace
11683 N_Formal_Subprogram_Declaration by
11684 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
11685 Char_Literal_Value field is now a Uint.
11687 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
11688 defined for subprogram renaming declarations. When set, the field
11689 indicates the defining entity of a corresponding formal subprogram
11690 when the renaming corresponds to a formal subprogram association in an
11692 (Set_Corresponding_Formal_Spec): New procedure to return
11693 Corresponding_Formal_Spec field.
11694 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
11695 (which is now a subtype).
11696 Char_Literal_Value field is now a Uint
11698 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
11699 pointer to the base of the dispatch table.
11700 Minor changes to comments.
11701 (Controlling_Type): New function for determining the tagged type
11702 associated with a tagged primitive subprogram.
11703 (Expand_Dispatching_Call): Add support for a controlling actual that is
11704 directly a value of type Ada.Tag rather than a tagged object.
11706 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
11707 describing the new layout.
11708 (Dispatch_Table): The expander computes the actual array size, allocates
11709 the Dispatch_Table record accordingly, and generates code that displaces
11710 the base of the record after the Typeinfo_Ptr component. The access to
11711 these components is done by means of local functions.
11712 (Offset_To_Top): New function.
11713 (Typeinfo_Ptr): New function.
11714 (Get_TSD): Modified to access the new position of the TSD.
11715 (Set_TSD): Modified to save the TSD in its new position.
11717 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
11718 case of formal abstract subprograms. Add check and message for -gnat05.
11721 * sem_ch12.adb: Add with and use for Sem_Disp.
11722 (Analyze_Associations): Minor change from "=" to "in" for use of
11723 N_Formal_Subtype_Declaration (which is now a subtype).
11724 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
11725 N_Formal_Subtype_Declaration (which is now a subtype).
11726 (Analyze_Formal_Subprogram): Add handling for
11727 N_Formal_Abstract_Subprogram, marking the formal as abstract and
11728 dispatching, setting the controlling status of the formal parameters
11729 and result, and issuing an error if there is no controlling type for
11730 the formal subprogram.
11731 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
11732 which is an unclean use of that field, we set the new field
11733 Corresponding_Formal_Spec to make the formal subprogram available to
11734 processing in Analyze_Subprogram_Declaration.
11735 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
11736 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
11737 Constrained, so that it is is does not statically match its anonymous
11740 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
11741 abstract formal subprograms in error check for functions returning
11742 abstract types. Set scope of new designator for
11743 a parameterless subprogram, so that it is available when checking the
11744 body for nested subprograms, before full analysis of said body.
11745 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
11746 subprogram only if inner one comes from source.
11747 (Analyze_Function_Call): If the call is given in object notation, the
11748 analysis of the name rewrites the node and analyzes it with the proper
11749 argument list. After analyzing the name, if the call has been rewritten
11750 and the result type is set, no further analysis is needed.
11751 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
11752 mark in function specification, in a context where the formals are
11753 visible and hide outer homographs.
11755 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
11756 as the tagged type for the cases of abstract formal subprograms and
11757 renamings of those. Clean up spec comments.
11758 (Check_Dispatching_Context): Add error message to indicate "abstract
11759 procedure", covering the case of a call to a formal abstract procedure
11760 that has statically tagged operands.
11761 (Check_Dispatching_Call): Check for the case of an actual given by
11762 a tag-indeterminate function call whose type is an ancestor of the
11763 containing call's associated tagged type. This situation can occur
11764 for inherited primitives with function defaults. In this case we
11765 use the tagged type's tag directly as the controlling argument for
11767 (Expand_Call): Name change on call to Expand_Dispatch_Call.
11769 * sprint.adb (Sprint_Node_Actual): Split
11770 N_Formal_Subprogram_Declaration into two alternatives for the new
11771 cases N_Formal_Abstract_Subprogram_Declaration and
11772 N_Formal_Concrete_Subprogram_Declaration.
11773 Char_Literal_Value field is now a Uint.
11775 * trans.c: Get rid of junk Uint2 reference.
11776 Char_Literal_Value field is now a Uint.
11777 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
11778 (gigi): Correct third arg to gimplify_body.
11780 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
11781 (TYPE_LANG_FLAG_0): Check for record or union.
11783 * treepr.adb: Char_Literal_Value field is now a Uint
11785 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
11788 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
11789 Add full UTF-32 support
11790 Char_Code is now 32 bits
11792 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
11793 wide character UTF_32 line terminators.
11794 Initialize Main_Source_File to avoid error when no main
11797 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
11798 (Main_Source_File) when no main source has been loaded, to avoid
11801 2005-02-09 Robert Dewar <dewar@adacore.com>
11803 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
11804 Fix name of Set routine
11806 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
11809 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
11810 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
11813 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
11814 forms of Get_Line subprograms for AI-301.
11816 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
11817 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
11818 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
11819 a-stwima.ads: Minor reformatting.
11821 2005-02-09 Doug Rupp <rupp@adacore.com>
11822 Thomas Quinot <quinot@adacore.com>
11824 * adaint.c, adaint.h
11825 [VMS] (to_ptr32): New function.
11826 (MAYBE_TO_PTR32): New macro.
11827 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
11829 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
11830 [VMS] (#define fork()): Remove since unneccessary.
11831 (__gnat_set_close_on_exec): New routine to support
11832 GNAT.OS_Lib.Set_Close_On_Exec.
11834 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
11835 the parent side as close-on-exec so that they are not inherited by the
11838 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
11839 set or clear the FD_CLOEXEC flag on a file descriptor.
11841 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
11842 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11844 Fix for c330001 - PR ada/19386
11847 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
11848 on the field if Pragma Component_Alignment (Storage_Unit).
11849 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
11850 side-effects as if it were a constant; also make SAVE_EXPR to protect
11852 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
11854 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
11855 (components_to_record): Test it.
11856 Fix improper usage of REFERENCE_CLASS_P.
11858 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
11861 * utils2.c: Minor reformatting.
11863 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
11864 handle other cases like RECORD_TYPE.
11866 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
11868 2005-02-09 Ed Schonberg <schonberg@adacore.com>
11870 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
11871 component of an array of arrays in an assignment context, and the
11872 aggregate has component associations that require sliding on
11873 assignment, force reanalysis of the aggregate to generate a temporary
11874 before the assignment.
11875 (Must_Slide): Make global to the package, for use in Gen_Assign.
11877 2005-02-09 Ed Schonberg <schonberg@adacore.com>
11879 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
11880 unchecked union with no inferable discriminants, return a
11881 Raise_Program_Error node, rather than inserting it at the point the
11883 (Expand_Record_Equality, Component_Equality): Handle properly the case
11884 where some subcomponent is an unchecked union whose generated equality
11885 code raises program error.
11887 2005-02-09 Doug Rupp <rupp@adacore.com>
11889 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
11890 [VMS] (#define exit hack): Remove.
11892 2005-02-09 Pascal Obry <obry@adacore.com>
11893 Arnaud Charlet <charlet@adacore.com>
11895 * init.c (__gnat_initialize): Add a new parameter eh which contains the
11896 address of the exception registration. The Win32 version of this
11897 routine calls __gnat_install_SEH_handler() to initialize the SEH
11898 (Structured Exception Handling) handler.
11899 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
11900 SEH (Structured Exception Handling) now.
11901 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
11902 (__gnat_initialize for ppc-vxworks): Adjust comments and the
11903 preprocessor condition protecting the call to the extra eh setup
11904 subprogram, which is only available for the ppc target.
11905 (__gnat_clear_exception_count): replaced reference to
11906 variable taskIdCurrent by call to taskIdSelf(), cleaner.
11908 * seh_init.c: New file.
11910 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
11911 (GNATBIND_OBJS): Idem.
11913 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
11914 routine takes a new parameter (a pointer to the exception registration
11915 for the SEH (Structured Exception Handling) support.
11917 * raise.h: (__gnat_install_SEH_handler): New prototype.
11918 Update copyright notice.
11920 * s-tassta.adb (Task_Wrapper): Declare the exception registration
11921 record and initialize it by calling __gnat_install_SEH_handler.
11923 2005-02-09 Vincent Celier <celier@adacore.com>
11925 * make.adb (Gnatmake): Do not fail when the main project has no object
11928 2005-02-09 Doug Rupp <rupp@adacore.com>
11930 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
11931 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
11932 [VMS]: Add translations for g-enblsp.adb.
11934 * s-asthan-vms.adb: Removed.
11935 * s-asthan-vms-alpha.adb: Added.
11937 2005-02-09 Pascal Obry <obry@adacore.com>
11939 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
11940 (LIBGNAT_OBJS): Add seh_init.o.
11942 2005-02-09 Arnaud Charlet <charlet@adacore.com>
11946 * Makefile.in: Link all gnat tools with -static-libgcc, since
11947 -shared-libgcc is now used by default on some systems (e.g. linux with
11949 Remove references to Makefile.prolog/generic, no longer used.
11951 2005-02-09 Vincent Celier <celier@adacore.com>
11953 * prj-makr.adb (Process_Directory): Put file name in canonical case
11954 before matching against the patterns.
11955 If gnatname has been invoked as <prefix>-gnatname
11956 then invoke the compiler as <prefix>-gcc, not just "gcc".
11958 2005-02-09 Ed Schonberg <schonberg@adacore.com>
11960 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
11961 with expansion disabled. The actual subtype is needed among other
11962 places when the selected component appears in the context of a loop
11963 bound, and denotes a packed array.
11964 (Operator_Check): Always use the first subtype in the
11965 error message, to avoid the appearance of internal base types.
11966 (Transform_Object_Operation): Copy each actual in full
11967 to the parameter associations of the constructed call, rather than
11968 using the shallow copy mechanism of New_Copy_List. This ensures that
11969 the chaining of named associations is done properly.
11970 (Complete_Object_Operation): Rewrite node, rather than
11971 replacing it, so that we can trace back to the original selected
11974 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
11975 and calls that use object notation, if the called function is not
11976 declared in a withed unit, place the elaboration constraint on the
11977 unit in the context that makes the function accessible.
11978 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
11979 imposes an elaboration constraint between two packages.
11981 2005-02-09 Ed Schonberg <schonberg@adacore.com>
11983 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
11984 views of a private type after handling its private dependents, to
11985 maintain proper stack discipline between entry and exit from the
11988 2005-02-09 Cyrille Comar <comar@adacore.com>
11990 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
11991 Minor reformatting.
11993 2005-02-09 Arnaud Charlet <charlet@adacore.com>
11995 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
11996 fields for foreign threads.
11998 2005-02-09 Doug Rupp <rupp@adacore.com>
12000 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
12001 recursion warnings when compiled with -gnatdm.
12003 2005-02-09 Robert Dewar <dewar@adacore.com>
12005 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
12006 Slight fix to documentation of -gnaty with no parameters
12008 * xr_tabls.ads: Add ??? comment for missing overall comment
12010 * xsinfo.adb: Make default file name be sinfo.h, since this is what
12011 we now use by default.
12013 * xsnames.adb: Adjust end of file test to look for five space followed
12014 by '#' instead of six spaces. The format of xsnames.adb was modified
12015 in the last update.
12017 * a-numeri.ads: Add reference to AI-388 for greek letter pi
12020 * clean.adb: Minor reformatting.
12022 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
12023 gnatname.adb: Minor reformatting
12024 Add 2005 to copyright output when utility is run
12026 * csets.adb: Eliminate obsolete comment
12028 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
12031 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
12033 2005-02-09 Sergey Rybin <rybin@adacore.com>
12035 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
12036 the difference between compact and incompact layout and add the record
12037 representation clause to the example illustrating different layouts.
12038 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
12039 component clauses").
12041 2005-02-09 Florian Villoing <villoing@adacore.com>
12043 * gnat_ugn.texi: Fix typos.
12044 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
12046 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
12047 in the generated documentation.
12049 2005-02-09 Arnaud Charlet <charlet@adacore.com>
12051 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
12053 Update linker wrapper when linking with non GNU C++.
12055 2005-02-09 Pascal Obry <obry@adacore.com>
12058 Document the procedure to debug the DllMain routine on Windows.
12059 Add note about -funwind-tables and mixed Ada and C/C++ programming in
12061 Document new BIND qualifer /RETURN_CODES=VMS.
12063 2005-02-09 Ben Brosgol <brosgol@adacore.com>
12065 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
12066 Edited gnatmetric chapter
12068 2005-02-09 Robert Dewar <dewar@adacore.com>
12071 Changes to document new wide wide character support
12073 Update documentation on Normalize_Scalars and Initialize_Scalars
12075 2005-02-09 Pascal Obry <obry@adacore.com>
12077 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
12079 2005-02-09 Jose Ruiz <ruiz@adacore.com>
12081 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
12082 from the VxWorks kernel) that is needed for getting the active
12083 priority of the different tasks.
12085 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
12086 Use a pragma Elaborate_Body in the spec file instead.
12087 Noticed by code reading.
12089 2005-02-09 Thomas Quinot <quinot@adacore.com>
12091 * exp_util.ads: Minor correction in comment.
12093 2005-02-09 Arnaud Charlet <charlet@adacore.com>
12095 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
12096 since this procedure is now too complex to be worth inlining.
12098 2005-02-09 Richard Henderson <rth@redhat.com>
12100 * utils.c (gnat_define_builtin): Remove.
12101 (gnat_install_builtins): Use build_common_builtin_nodes.
12103 2005-02-09 Arnaud Charlet <charlet@adacore.com>
12105 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
12106 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
12107 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
12108 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
12109 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
12110 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
12111 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
12112 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
12113 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
12114 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
12115 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
12116 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
12117 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
12118 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
12119 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
12120 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
12121 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
12122 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
12123 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
12124 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
12125 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
12126 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
12127 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
12128 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
12129 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
12130 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
12131 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
12132 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
12133 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
12134 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
12135 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
12136 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
12137 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
12138 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
12141 2005-01-27 Laurent GUERBY <laurent@guerby.net>
12143 * Makefile.in: Fix a-intnam.ads from previous commit,
12144 add 2005 to copyright.
12145 * a-intman-rtems.ads: Renamed to...
12146 * a-intnam-rtems.ads:
12148 2005-01-27 Laurent GUERBY <laurent@guerby.net>
12150 * Makefile.in: Rename GNAT RTEMS specific files.
12151 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
12152 5rosinte.ads, 5rparame.adb: Replaced by files below.
12153 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
12154 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
12156 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
12157 Laurent GUERBY <laurent@guerby.net>
12160 * 5rosinte.ads: Add No_Key constant.
12161 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
12162 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
12164 2005-01-26 Laurent GUERBY <laurent@guerby.net>
12167 * i-cobol.adb (Valid_Numeric): Handle zero length case.
12169 2005-01-20 Richard Henderson <rth@redhat.com>
12171 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
12172 a-intnam-linux.ads and system-linux-alpha.ads.
12173 * a-intnam-linux-alpha.ads: Remove file.
12174 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
12175 * system-linux-alpha.ads: New file.
12177 2005-01-18 Jakub Jelinek <jakub@redhat.com>
12180 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
12181 set to the new string.
12183 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
12185 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
12188 2005-01-18 Richard Henderson <rth@redhat.com>
12190 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
12191 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
12193 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
12195 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
12197 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
12198 (GCC_ZCX_Support): Likewise.
12200 2005-01-11 Bastian Blank <waldi@debian.org>
12202 * system-linux-s390.ads: Define Preallocated_Stacks.
12203 * system-linux-s390x.ads: Likewise.
12205 2005-01-04 Arnaud Charlet <charlet@adacore.com>
12207 * gnat_ugn.texi: Fix texi errors with null variables.
12209 2005-01-03 Thomas Quinot <quinot@adacore.com>
12211 * gen-soccon.c: New utility program to generate g-soccon.ads
12214 * socket.c, gsocket.h: Split inclusion of system header files into a
12215 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
12217 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
12218 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12219 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
12220 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
12221 should not be edited by hand anymore, but should be regenerated using
12224 2005-01-03 Robert Dewar <dewar@adacore.com>
12225 Ed Schonberg <schonberg@adacore.com>
12226 Vincent Celier <celier@adacore.com>
12228 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
12229 on/off, since this is an obsolescent feature, for which we now generate
12232 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
12233 warning mode is set and obsolescent usage of this attribute occurs.
12234 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
12235 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
12236 predates, and partly motivates, the adoption of the AI.
12237 Implement new Ada 2005 attribute Mod
12239 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
12242 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
12244 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
12245 pragma restrictions.
12246 New entry for Ada 2005 attribute Mod.
12249 Add recognition of new pragma Restrictions No_Dependence
12250 Recognize restriction No_Obsolescent_Features at parse time
12252 * bcheck.adb: Add circuitry for checking for consistency of
12253 No_Dependence restrictions.
12255 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
12258 * restrict.ads, restrict.adb: Add subprograms to deal with
12259 No_Dependence restrictions.
12261 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
12264 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
12265 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
12267 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
12268 dummy parameter to scng instantiation.
12269 Needed for new restriction No_Obsolescent_Features
12271 * scn.adb: (Obsolescent_Check): New procedure
12272 Needed for new restriction No_Obsolescent_Features
12274 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
12275 specified by AI-285, needed for implementation of AI-388 (adding greek
12276 pi to Ada.Numerics).
12277 Add new generic formal to scng, needed for new restriction
12278 No_Obsolescent_Features.
12280 * s-rident.ads: Add new restriction No_Obsolescent_Features.
12282 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
12283 restrictions lines.
12284 (Scan_ALI): When finding an unexpected character on an R line, raise
12285 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
12286 Ignore_Errors is True, default restrictions are set and scanning of the
12287 ALI file continues with the next line. Also, when Bad_R_Line is raised
12288 and Ignore_Errors is True, skip to the end of le line.
12290 * sem_ch10.adb: Check that explicit with's do not violate
12291 No_Dependence restrictions.
12292 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
12293 illegal context clauses containing child units of instance.
12295 * sem_prag.adb: Processing and checking for new No_Dependence
12297 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
12298 analyze and check the External argument.
12300 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
12302 2005-01-03 Robert Dewar <dewar@adacore.com>
12304 * atree.adb: Add a fifth component to entities
12305 This allows us to add 32 flags and four new fields
12307 * atree.ads: Add a fifth component to entities
12308 This allows us to add 32 flags and four new fields
12310 * einfo.ads, einfo.adb: Document new fields and new flags now available
12311 Add routines for printing new fields
12313 * treepr.adb: Call routines to print out additional fields if present
12315 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12317 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
12318 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
12320 * Makefile.in: Add support to build shared Ada libraries on solaris x86
12321 Remove gpr2make, replaced by gprmake.
12322 Remove references to gnatmem and libaddr2line.
12323 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
12324 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
12325 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
12326 a-numaux-darwin.ads and a-numaux-darwin.adb
12327 Enable mlib-tgt-lynxos.adb on lynxos.
12329 * Make-lang.in: Remove rules for gpr2make.
12330 When generating sdefault.adb, do not call Relocate_Path
12331 on S3 for function Target_Name, as it is not a path.
12332 Remove references to gnatmem and libaddr2line.
12334 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
12337 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
12339 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
12340 address is incompatible with its base type alignment constraints when
12341 this can be decided statically.
12343 2005-01-03 Olivier Hainque <hainque@adacore.com>
12345 * decl.c (compatible_signatures_p): New function. The intended purpose
12346 is to check if two function signatures for a call-site and a callee are
12347 compatible enough for the call to be valid. The underlying purpose is
12348 to check if a call to a mapped builtin is using the right interface.
12349 The current code actually does not check antyhing - this a placeholder
12350 for future refinements.
12351 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
12352 builtin calls for convention Intrinsic.
12354 * gigi.h (builtin_decl_for): Declare (new function).
12356 * utils.c (gnat_install_builtins): Install the target specific builtins.
12357 (builtin_decl_for): New function, provide a dummy body for now.
12359 2005-01-03 Geert Bosch <bosch@adacore.com>
12361 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
12362 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
12363 (Pred): Implement in terms of Succ.
12365 * trans.c (convert_with_check): Reimplement conversion of float to
12368 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12369 Vincent Celier <celier@adacore.com>
12371 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
12372 bounds can be negative, and must be declared Int, not Nat.
12374 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
12375 array is checked after using the index in the array.
12377 * makegpr.adb (Add_Switches): Check if there is a package for the
12378 processor. If there is no package, do not look for switches.
12380 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12382 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
12383 generation of predefined stream operations (specs and bodies) should
12384 proceed. Under various restrictions these subprograms must not be
12387 2005-01-03 Thomas Quinot <quinot@adacore.com>
12390 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
12391 amount of PCS-specific code in RACW stubs generation.
12392 (Copy_Specification): Set Etype on copied formal parameter entities, as
12393 this information is needed for PolyORB stubs generation.
12394 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
12395 variable Dynamic_Async.
12396 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
12397 (Build_RPC_Receiver_Specification): Make generic again, as recent
12398 changes have allowed RPC receivers to have the same profile for both
12399 variants of the PCS.
12400 Reorganise RPC receiver generation to reduce differences between the
12401 structure of GARLIC and PolyORB RPC receivers.
12402 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
12404 Simplify elaboration code for RCI packages.
12406 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
12407 generation to reduce differences between the structure of GARLIC and
12408 PolyORB RPC receivers.
12410 * s-stratt.adb: Fix typo in comment.
12412 2005-01-03 Thomas Quinot <quinot@adacore.com>
12414 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
12415 copied from Make_Init_Call).
12417 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
12418 reads and assignments on a temporary variable declared with appropriate
12421 2005-01-03 Robert Dewar <dewar@adacore.com>
12423 * i-c.adb (To_C): Raise CE if string is null and Append_Null
12425 2005-01-03 Robert Dewar <dewar@adacore.com>
12427 * i-cstrin.adb (Update): Do not append a null in form called with a
12428 String. This avoids unintended behavior.
12430 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12433 * init.c: Fix warnings on Free BSD section.
12435 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12438 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
12441 2005-01-03 Vincent Celier <celier@adacore.com>
12443 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
12444 libraries when Unique_Compile is True (-u switch).
12447 2005-01-03 Robert Dewar <dewar@adacore.com>
12449 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
12450 upper case letter or underscore after W, as allowed by spec.
12452 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12454 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
12455 darwin port by using proper type definitions from header files.
12456 Use SIGTERM instead of SIGABRT for SIGADAABORT.
12458 2005-01-03 Robert Dewar <dewar@adacore.com>
12460 * par.adb: Enhance error message handling for configuration file
12463 2005-01-03 Robert Dewar <dewar@adacore.com>
12465 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
12466 removed during the previous update (test properly for case of dividing
12467 largest negative number by -1, which generates overflow).
12469 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12470 Sergey Rybin <rybin@adacore.com>
12472 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
12473 to use as the defining identifier for a formal package.
12474 (Remove_Parent): If the instance takes place within (an instance of)
12475 a sibling, preserve private declarations of common parent.
12477 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12479 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
12480 to determine whether one of the operands is a fixed-point type for
12481 which a user-defined multiplication or division operation might be
12484 * sem_res.adb (Valid_Conversion): The legality rules for conversions
12485 of access types are symmetric in Ada 2005: either designated type can
12488 2005-01-03 Vincent Celier <celier@adacore.com>
12490 * s-fileio.adb (Temp_File_Record): Change length of string component
12491 Name from L_tmpnam + 1 to max_path_len + 1.
12493 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12495 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
12496 Self_Id.Deferral_Level = 0.
12497 (Do_Pending_Action): Move this function to the spec.
12499 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
12500 Do_Pending_Action explicitely when needed, in case we're using
12501 No_Abort restrictions.
12503 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
12504 deferral level since it will not get changed by the generated code.
12505 Keeping a default value of 1 would prevent some operations (e.g.
12506 select or delay) to proceed successfully.
12508 2005-01-03 Ben Brosgol <brosgol@adacore.com>
12509 Robert Dewar <dewar@adacore.com>
12510 Cyrille Comar <comar@adacore.com>
12512 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
12513 porting guide chapter (vms version).
12514 Revised doc title (removed "for native platforms") and subtitle.
12515 Add discussion on warning flag for obsolescent features. First we
12516 note that it applies to obsolete GNAT features, which was previously
12517 omitted. Second we contrast the behavior with that of the new
12518 Ada 2005 AI-368 restriction No_Obsolescent_Features.
12519 Preliminary rewriting of GNAT & libraries chapter in order to take
12520 into account default project locations & new project manager
12523 2005-01-03 Robert Dewar <dewar@adacore.com>
12525 * cstand.adb (Create_Operators): Clean up format and documentation of
12526 unary and binary operator result tables. No change in code, just
12527 reformatting and addition of comments.
12529 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
12530 sem_ch2.adb: Minor reformatting
12532 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
12533 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
12534 comments for Tree_Read and Tree_Write.
12536 2005-01-03 Pascal Obry <obry@adacore.com>
12538 * exp_attr.ads: Minor reformatting.
12540 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
12542 * comperr.adb (Compiler_Abort): Add specialized message for GAP
12545 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12547 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
12548 whether the ancestor type is private, as may be the case with nested
12551 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
12554 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
12556 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
12558 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
12559 * utils2.c (build_unary_op): Likewise.
12561 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12563 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
12565 2004-12-19 Richard Henderson <rth@redhat.com>
12567 * trans.c (gigi): Update gimplify_body call.
12569 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
12571 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
12573 2004-12-07 Ed Falis <falis@adacore.com>
12575 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
12576 current task being suspended.
12578 * init.c (__gnat_clear_exception): added to reset VxWorks exception
12580 (__gnat_map_signal): removed test for current task being suspended.
12582 2004-12-07 Gary Dismukes <dismukes@adacore.com>
12584 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
12585 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
12586 targets (such as AAMP).
12588 2004-12-07 Ed Schonberg <schonberg@adacore.com>
12590 * atree.adb (Visit_Itype): Create a new name for the generated itype,
12591 because the back-end may otherwise treat it as a redefinition of the
12594 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
12596 * back_end.adb (Scan_Back_End_Switches): Accept --param.
12598 * lang-specs.h: Accept --param.
12600 2004-12-07 Vincent Celier <celier@adacore.com>
12602 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
12603 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
12604 Current_Body_Suffix => Ada_Body_Suffix).
12605 Take into account Externally_Built attribute.
12607 * clean.adb (In_Extension_Chain): Always return False when one of the
12608 parameter is No_Project.
12609 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
12610 Ada_Language_Index).
12611 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
12612 Process_Languages for procedure Parse).
12614 * gnatcmd.adb (Carg_Switches): New table.
12615 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
12616 Adapt to name changes in package Prj (Current_Spec_Suffix =>
12617 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
12619 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
12620 Header_Num and function Hash are now declared in package Prj,
12623 * prj.adb (Suffix_Of): New function.
12624 (Set (Suffix)): New procedure.
12625 (Hash): One function moved from Prj.Com
12626 (Is_Present, Language_Processing_Data_Of): New functions
12627 (Set): Two new procedures
12628 (Add_Language_Name, Display_Language_Name): New procedures
12630 * prj.ads: (Suffix_Of): New function
12631 (Set (Suffix)): New procedure
12632 Add several types and tables for multi-language support.
12633 (Header_Num): Type moved from Prj.Com
12634 (Hash): Two functions moved from Prj.Com
12635 (Is_Present, Language_Processing_Data_Of): New functions
12636 (Set): Two new procedures
12637 (Add_Language_Name, Display_Language_Name): New procedures
12638 (Naming): Component name changes:
12639 Current_Spec_Suffix => Ada_Spec_Suffix,
12640 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
12641 Impl_Suffixes, Supp_Suffixes.
12642 (Project_Data): New components: Externally_Built, Supp_Languages,
12643 First_Language_Processing, Supp_Language_Processing, Default_Linker,
12644 Default_Linker_Path.
12646 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
12647 new package Language_Processing with its attributes (Compiler_Driver,
12648 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
12649 Binder_Driver, Default_Linker).
12651 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
12652 (Header_Num): Type moved to package Prj
12654 * prj-env.adb: Adapt to name changes in package Prj
12655 (Current_Spec_Suffix => Ada_Spec_Suffix,
12656 Current_Body_Suffix => Ada_Body_Suffix).
12658 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
12659 default to the project path, except the "-" is one of the directories
12660 in env var ADA_PROJECT_PATH.
12661 (Current_Project_Path): Global variable, replacing Project_Path
12662 that was in the body of Prj.Part.
12663 (Project_Path): New function
12664 (Set_Project_Path): New procedure
12665 Initialize Current_Project_Path during elaboration of the package
12666 Remove dependency on Prj.Com, no longer needed
12668 * prj-ext.ads (Project_Path): New function
12669 (Set_Project_Path): New procedure
12671 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
12672 suffix is defined for language <lang>.
12673 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
12674 accessing directly the components of Naming.
12675 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
12676 Reorganise of this package.
12677 Break procedure Check in several procedures.
12679 * prj-nmsc.ads: Replace all procedures (Ada_Check,
12680 Other_Languages_Check and Language_Independent_Check) with a single
12683 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
12684 Process_Languages, no longer needed.
12686 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
12687 Current_Project_Path.
12688 Remove elaboration code, moved to the body of Prj.Ext
12689 Use new function Prj.Ext.Project_Path instead of old variable
12691 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
12692 When comparing with project paths on the stack, first put the resolved
12693 path in canonical case.
12694 (Parse_Single_Project): Set the path name of the project file in the
12695 tree to the normalized path.
12697 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
12698 parameter Process_Languages, no longer needed.
12699 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
12700 Other_Languages_Check.
12702 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
12703 to store the resolved canonical path of the project file.
12704 Remove dependency to Prj.Com, no longer needed
12706 * prj-util.adb: Adapt to name changes in package Prj
12707 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
12710 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
12711 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
12712 Externally_Built, Include_Option, Language_Processing.
12714 * makegpr.adb: Numerous changes due to changes in packages
12717 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
12718 default to the project path, except whe "-" is one of the directories
12719 in env var ADA_PROJECT_PATH.
12720 (Gnatls): In verbose mode, add the new section "Project Search Path:"
12722 2004-12-07 Robert Dewar <dewar@adacore.com>
12724 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
12726 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
12729 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
12730 flag. No longer needed now that we handle this in gnat1drv.adb.
12732 * repinfo.ads: Minor reformatting
12734 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12735 Olivier Hainque <hainque@adacore.com>
12736 Eric Botcazou <ebotcazou@adacore.com>
12738 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
12739 TYPE_SIZE_UNIT of result type if SIZE is not specified.
12740 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
12741 of a bitfield, which we know is useless and causes trouble because of
12742 alignment implications.
12744 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
12746 (process_attributes): Clear DECL_COMMON again when a section attribute
12748 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
12749 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
12750 (create_field_decl): Special case ADDRESSABLE negative to mean
12751 "no bitfield creation", to be used by make_aligning_type. Don't
12752 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
12753 fields claimed addressable still have to be bitfields. Use
12754 value_factor_p instead of a raw binop construction to check for the
12755 position's alignment.
12757 2004-12-07 Geert Bosch <bosch@adacore.com>
12759 * eval_fat.adb: Revert previous change.
12761 2004-12-07 Thomas Quinot <quinot@adacore.com>
12762 Ed Schonberg <schonberg@adacore.com>
12764 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
12765 with an implicit dereference as its prefix, use
12766 Insert_Explicit_Dereference instead of merely rewriting the prefix into
12767 an explicit dereference. This ensures that a reference to the original
12768 prefix is generated, if appropriate.
12770 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
12771 dereference is rewritten to an explicit one, generate a reference to
12772 the entity denoted by its prefix using the original prefix node, so
12773 the dereference can be properly recorded as a read of the denoted
12774 access value, if appropriate.
12776 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
12777 emitting 'assigned but never read' warning on a variable on the basis
12778 that it has an access type.
12779 (Check_References): Emit unreferenced warning when the scope is a
12782 2004-12-07 Robert Dewar <dewar@adacore.com>
12783 Ed Schonberg <schonberg@adacore.com>
12785 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
12788 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
12789 leaving call unchanged.
12790 This deals with the case where the pragma Import specified
12791 an external name, to be handled by the back end.
12793 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
12794 subprogram which is Imported with convention Intrinsic if an
12795 External_Name argument is specified.
12796 (Process_Import_Or_Interface): Properly diagnose link name argument.
12797 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
12798 with Sem_Ch6.Cannot_Inline.
12799 (Process_Inline): Provide separate warning for inapplicable inline
12801 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
12802 treatment is uniform on different targets.
12804 2004-12-07 Ed Schonberg <schonberg@adacore.com>
12806 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
12807 construct is rewritten, preserve end label to permit source navigation.
12809 2004-12-07 Thomas Quinot <quinot@adacore.com>
12811 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
12812 Specific_Build_Stub_Target): New subprograms.
12813 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
12814 the PCS implementation used, using the above PCS-customized subprograms.
12815 Minor reformatting.
12816 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
12817 for generation of DSA code targeted to the PolyORB PCS.
12818 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
12819 implementation of the partition communication subsystem in ancillary
12821 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
12822 PolyORB_Support.Build_Stub_Type): New subrograms containing the
12823 PCS-specific part of Add_Stub_Type.
12824 (Insert_Partition_Check): Use runtime library function to perform
12827 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
12828 (RE_Same_Partition): New entity, from s-parint.
12830 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
12832 2004-12-07 Gary Dismukes <dismukes@adacore.com>
12834 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
12835 Output the copyright message on a separate line from the version
12838 2004-12-07 Joel Brobecker <brobecker@adacore.com>
12840 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
12841 compile-time warning.
12843 2004-12-07 Robert Dewar <dewar@adacore.com>
12845 * g-regpat.adb: (Match): Change a misuse of or to or else
12847 2004-12-07 Ed Schonberg <schonberg@adacore.com>
12850 (Generate_Reference): Handle properly a reference to an entry formal,
12851 when an accept statement has a pragma Unreferenced for it.
12853 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
12854 and the Has_Pragma_Unreferenced flag for each formal before analyzing
12855 the body, to ensure that warnings are properly emitted for each accept
12856 statement of a given task entry.
12858 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
12860 * Makefile.in: Add support for foreign threads on VMS.
12862 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12864 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
12866 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
12868 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
12870 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
12872 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
12874 2004-12-07 Robert Dewar <dewar@adacore.com>
12876 * nlists.adb (Prepend_Debug): Remove parameters and nest within
12878 (Remove_Next_Debug): Same fix
12880 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
12881 maintain back pointers now, though we did not used to, and comments
12883 (Prepend): Remove pragma Inline.
12884 (Remove_Next): Same cleanup
12886 2004-12-07 Thomas Quinot <quinot@adacore.com>
12888 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
12889 used to record an implicit dereference as a read operation on its
12890 prefix when operating under -gnatc. Necessary to avoid spurious
12891 'variable assigned but never read' warnings in that mode.
12892 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
12893 is a non-overloaded implicit dereference, call the above subprogram to
12894 ensure proper recording of references.
12896 2004-12-07 Gary Dismukes <dismukes@adacore.com>
12898 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
12899 to be resolved later as part of Analyze_Iteration_Scheme's call to
12902 2004-12-07 Ed Schonberg <schonberg@adacore.com>
12904 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
12905 prefix is not a scalar type, place error message on prefix, not on
12908 2004-12-07 Bernard Banner <banner@adacore.com>
12910 * vxaddr2line.adb: Add support for x86 vxworks
12912 2004-12-07 Thomas Quinot <quinot@adacore.com>
12914 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
12915 documentation of the behaviour of these functions when passed an IP
12916 address that has no record in the system hosts database and no reverse
12919 * cstand.adb, a-tags.ads: Fix typos in comment.
12921 2004-12-07 Robert Dewar <dewar@adacore.com>
12923 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
12924 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
12925 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
12926 s-poosiz.ads: Minor reformatting
12928 * make.adb: Minor reformatting
12929 Add some ??? comments asking for more comments
12931 * s-poosiz.adb: Minor reformatting
12932 Add comments on alignment requirement
12934 * sinfo.ads: Remove obsolete comment and fix typo.
12936 2004-12-07 Vincent Celier <celier@adacore.com>
12937 Sergey Rybin <rybin@adacore.com>
12939 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
12940 Files" with the new tool and package names.
12941 Reformatting to suppress most of the warnings for line too long
12942 Document the new section "Project Search Path:" in the output of
12944 Add gnatmetric section
12946 2004-12-07 Vincent Celier <celier@adacore.com>
12948 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
12949 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
12950 and -eit to -ept. Added qualifier
12951 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
12953 2004-11-27 Andreas Schwab <schwab@suse.de>
12955 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
12957 2004-11-25 Arnaud Charlet <charlet@adacore.com>
12959 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
12960 internal implementation unit GNAT.Sockets.Thin,
12961 as their usage for sockets is non-portable (using the read and write
12962 functions from the system runtime library is fine on UNIX but won't
12963 work under Windows).
12965 * mingw32.h: Update copyright notice.
12967 2004-11-25 Arnaud Charlet <charlet@adacore.com>
12969 * ada-tree.h: Minor reformatting of previous change to avoid lines
12970 longer than 79 characters.
12972 2004-11-25 Olivier Hainque <hainque@adacore.com>
12974 * tb-gcc.c: GCC infrastructure based implementation of
12977 2004-11-24 Steven Bosscher <stevenb@suse.de>
12979 * misc.c (gnat_post_options): Don't clear
12980 flag_inline_functions.
12982 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
12985 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
12988 2004-11-21 Andreas Jaeger <aj@suse.de>
12990 * stylesw.adb: Change Style_Check_Subprogram_Order to
12991 Style_Check_Order_Subprograms.
12993 2004-11-18 Arnaud Charlet <charlet@adacore.com>
12995 * adaint.h, adaint.c
12996 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
12998 Add also a cast to kill another warning.
12999 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
13000 parameter with the priority class of the parent process instead of
13001 always using the NORMAL_PRIORITY_CLASS.
13002 (__gnat_dup): New function.
13003 (__gnat_dup2): New function.
13004 (__gnat_is_symbolic_link): Enable the effective body of this
13005 function when __APPLE__ is defined.
13007 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
13010 2004-11-18 Olivier Hainque <hainque@adacore.com>
13012 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
13013 address of which may be used to represent "others" and "all others"
13014 choices in exception tables, instead of the current harcoded
13015 (void *)0 and (void *)1.
13016 (Setup_Exception): Do nothing in the GNAT SJLJ case.
13018 * gigi.h (others_decl, all_others_decl): New decls representing the
13019 new Others_Value and All_Others_Value objects.
13020 (struct attrib): Rename "arg" component as "args", since GCC expects a
13021 list of arguments in there.
13023 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
13024 corresponding objects exported by a-exexpr, instead of hardcoded dummy
13027 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
13028 others_decl and all_others_decl instead of hardcoded dummy addresses
13029 to represent "others" and "all others" choices, which is cleaner and
13030 more flexible with respect to the possible eh pointer encoding policies.
13032 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
13033 (process_attributes): Account for the naming change of the "args"
13034 attribute list entry component.
13036 * decl.c (build_attr_list): Rename into prepend_attributes to allow
13037 cumulating attributes for different entities into a single list.
13038 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
13039 attributes for the current entity and propagate first subtype
13040 attributes to other subtypes.
13041 <E_Procedure>: Attribute arguments are attr->args and not
13042 attr->arg any more.
13043 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
13044 argument provided, as this is what GCC expects. Use NULL_TREE instead
13047 2004-11-18 Robert Dewar <dewar@adacore.com>
13049 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
13050 Minor reformatting througout (including new function specs)
13051 Add ??? comments asking for clarification.
13053 2004-11-18 Thomas Quinot <quinot@adacore.com>
13055 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
13056 incomplete duplicate implementation of this subprogram from butil.
13058 2004-11-18 Thomas Quinot <quinot@adacore.com>
13060 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
13061 procedures factors the common processing for building an RPC receiver
13062 for an RCI package or an RACW type.
13063 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
13064 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
13065 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
13067 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
13069 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
13071 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
13072 distribution subprogram identifiers that are either subprogram numbers
13074 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
13075 string distribution identifiers assigned to a given subprogram.
13076 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
13077 (Add_RAS_Dereference_TSS): Add comments.
13078 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
13079 is not referenced yet because it will be used by the PolyORB DSA
13081 (Insert_Partition_Check): Remove fossile code.
13082 (First_RCI_Subprogram_Id): Document this constant.
13083 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
13085 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
13086 replaced with calls to Get_Library_Unit_Name_String. Previously there
13087 were several instances of the same code in different locations in the
13088 compiler; this checkin completes the replacement of all of these
13089 instances with calls to a common subprogram.
13090 Minor reformatting.
13092 * sem_dist.adb: Remove comment noting that RPC receiver generation
13093 should be disabled for RACWs that implement RASs.
13094 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
13096 * sem_util.ads, sem_util.adb (Has_Stream): New function
13097 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
13098 qualified name of a library unit into the name buffer.
13099 (Note_Possible_Modification): Generate a reference only
13100 if the context comes from source.
13102 * snames.ads (PCS_Names): New subtype corresponding to names of
13103 supported implementations of the Partition Communication Subsystem
13104 (PCS) (i.e. the runtime library support modules for the distributed
13107 2004-11-18 Robert Dewar <dewar@adacore.com>
13108 Ed Schonberg <schonberg@adacore.com>
13110 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
13111 (Has_Rep_Pragma): New function
13112 (Has_Attribute_Definition_Clause): New function
13113 (Record_Rep_Pragma): Moved here from sem_ch13.adb
13114 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
13116 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
13118 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
13119 (Expand_Pragma_Psect_Object): New procedure
13120 These procedures contain the revised and cleaned up processing for
13121 these two pragmas. This processing was formerly in Sem_Prag, but
13122 is more appropriately moved here. The cleanup involves making sure
13123 that the pragmas are properly attached to the tree, and that no
13124 nodes are improperly shared.
13126 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
13127 pragmas to Exp_Prag, which is more appropriate.
13128 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
13129 check for duplicates Remove use of Is_Psected flag, no longer needed.
13130 Use new Make_String_Literal function with string.
13132 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
13133 that are functions return universal values, that have to be converted
13134 to the context type.
13135 Use new Make_String_Literal function with string.
13136 (Get_Stream_Convert_Pragma): New function, replaces the use of
13137 Get_Rep_Pragma, which had to be kludged to work in this case.
13139 * freeze.adb: Use new Has_Rep_Pragma function
13141 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
13142 function with string.
13143 Use new Has_Rep_Pragma function.
13145 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
13148 2004-11-18 Robert Dewar <dewar@adacore.com>
13150 * errout.ads, errout.adb: (First_Sloc): New function
13152 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
13153 check (-gnatyx) instead of being included as a redundant construct
13156 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
13157 Style_Check_Order_Subprograms.
13159 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
13160 stylesw.adb: Add Style_Check_Xtra_Parens
13162 * usage.adb: Add line for -gnatyx (check extra parens)
13164 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
13166 2004-11-18 Ed Schonberg <schonberg@adacore.com>
13167 Robert Dewar <dewar@adacore.com>
13169 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
13170 discriminant of a constrained subtype, analyze the copy of the
13171 corresponding constraint, because in some cases it may be only
13172 partially analyzed.
13173 Removes long-lived ??? comments.
13175 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
13176 handled controlled or secondary-stack expressions within the
13177 iteration_scheme of a loop.
13179 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
13180 bounds that may contain functions calls, to prevent memory leaks when
13181 the bound contains a call to a function that uses the secondary stack.
13182 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
13183 generate temporaries for loop bounds that might contain function calls
13184 that require secondary stack and/or finalization actions.
13186 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
13187 selected component and the selector is overloadable (not just a
13188 function) treat as function call, Analyze_Call will disambiguate if
13190 (Analyze_Selected_Component): Do not generate an actual subtype for the
13191 selected component if expansion is disabled. The actual subtype is only
13192 needed for constraint checks.
13193 (Analyze_Allocator): If restriction No_Streams is set, then do
13194 not permit objects to be declared of a stream type, or of a
13195 composite type containing a stream.
13197 * restrict.ads: Remove the a-stream entry from Unit_Array, since
13198 No_Streams no longer prohibits with'ing this package.
13200 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
13201 discriminants, but the parent base has unknown discriminants, there is
13202 no discriminant constraint to inherit. Such a discrepancy can arise
13203 when the actual for a formal type with unknown discriminants is a
13204 similar private type whose full view has discriminants.
13205 (Analyze_Object_Declaration): If restriction No_Streams is set, then
13206 do not permit objects to be declared of a stream type, or of a
13207 composite type containing a stream.
13209 2004-11-18 Ed Schonberg <schonberg@adacore.com>
13211 * exp_dbug.ads: Update documentation to reflect simpler encoding for
13212 protected operations.
13214 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
13215 generated name, it complicates decoding in gdb and hinders debugging
13216 of protected operations.
13217 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
13218 flag for the protected entry barrier function.
13219 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
13220 flag for the protected entry function.
13222 2004-11-18 Nicolas Setton <setton@adacore.com>
13224 * expect.c: Define __unix__ when __APPLE__ is defined.
13226 * Makefile.in: Inform the value of the variable GMEM_LIB in the
13227 Darwin-specific section.
13229 * lang-specs.h: Change the placement of the %1 marker.
13230 Works around the fact that gcc adds -fPIC by default under Darwin.
13232 2004-11-18 Ed Schonberg <schonberg@adacore.com>
13234 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
13235 type of the object with the packed array type, set the Analyzed flag
13236 on the object if it is an entity or simple indexed component, to avoid
13237 spurious type errors.
13239 2004-11-18 Gary Dismukes <dismukes@adacore.com>
13241 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
13242 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
13243 separate line from the version message.
13245 2004-11-18 Ed Falis <falis@adacore.com>
13247 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
13249 (init_float): Eliminate initialization of floating point status for
13250 AE653. The instructions have no effect for vThreads.
13252 2004-11-18 Vincent Celier <celier@adacore.com>
13254 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
13255 gnatbind is invoked with -shared.
13257 2004-11-18 Jose Ruiz <ruiz@adacore.com>
13259 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
13260 for Detect_Blocking which is redundant with the check done within the
13261 procedure Protected_Single_Entry_Call.
13262 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
13263 Detect_Blocking which is redundant with the check done within the
13264 procedure Protected_Single_Entry_Call.
13266 2004-11-18 Vincent Celier <celier@adacore.com>
13268 * makegpr.adb (Compile): Put the compiling switches (in package
13269 Compiler and on the command line) immediately after "-c", instead of
13270 at the end of the command line invocation of the compiler, when
13271 compiling a non-Ada file.
13272 (Build_Global_Archive): When there is no need to rebuild the archive,
13273 set Global_Archive_Exists, so that the archive is passed to the linker
13276 2004-11-18 Robert Dewar <dewar@adacore.com>
13277 Sergey Rybin <rybin@adacore.com>
13280 Remove extra paren check from list of checks for redundant constructs
13281 Add documentation of new -gnatyx style check (check extra parens)
13282 Remove paragraph about gnatelim debug options.
13284 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
13285 objects rather than forbidding dependencies on the package Ada.Streams.
13287 * sinfo.ads: Add ??? note that we should document pragmas passed to
13290 * g-expect.ads: Fix a few typos in the comments.
13292 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
13294 * misc.c (gnat_handle_option): Use %< and %> for quoting in
13297 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13299 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
13301 2004-11-07 Andreas Schwab <schwab@suse.de>
13303 * Makefile.in (install-gnatlib): Remove spurious hyphen.
13305 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
13308 * Makefile.in (darwin): Set soext to .dylib.
13310 2004-10-26 Vincent Celier <celier@gnat.com>
13311 Thomas Quinot <quinot@act-europe.fr>
13313 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
13314 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
13315 there is no use of GNAT.Sockets.Constants.
13316 Remove remaining pragma Import for C_Write
13317 Remove C_Read and C_Write from internal implementation unit
13318 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
13319 the read and write functions from the system runtime library is fine
13320 on UNIX but won't work under Windows).
13322 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
13323 (Check_Selector): Use C_Recv instead of C_Read.
13324 Selectors are the GNAT.Sockets abstraction to perform a select()
13325 call on a set of descriptors. To allow abortion of an ongoing
13326 select operation, some data is written to a dedicated socket that
13327 is always monitored.
13328 Under Windows, the write and read library functions cannot operate
13329 on sockets, so we need to use send and recv instead, which is portable
13330 across all supported platforms.
13332 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
13333 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
13334 (using the read and write functions from the system runtime library is
13335 fine on UNIX but won't work under Windows).
13337 2004-10-26 Nicolas Setton <setton@act-europe.fr>
13339 * mlib-tgt-darwin.adb: New file.
13341 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13342 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
13343 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
13344 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
13347 * Makefile.in: Add support for building shared libraries under Darwin.
13348 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
13349 the low level EH init subprogram to be called from __gnat_initialize.
13351 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
13352 indicates which options to pass to the archive indexer.
13354 * mlib-utl.adb: Add support for calling ranlib with additional
13355 options. This is needed for instance under Mac OS X.
13356 (Ranlib_Options): New global variable, used to store the potential
13357 options to pass to ranlib.
13358 (Ar): Use Ranlib_Options when spawning ranlib.
13359 (Initialize): Set the value of ranlib option.
13361 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
13363 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
13364 instead of 8K, to reflect the real potential needs for stack-checking
13367 2004-10-26 Pascal Obry <obry@gnat.com>
13369 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
13371 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
13372 Windows only the initial thread stack size can be set so it is good to
13373 start we a low stack size.
13374 The OS will adjust the size as needed.
13376 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
13377 Nicolas Setton <setton@act-europe.fr>
13379 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
13380 "__unix__" instead of "unix".
13381 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
13382 sections were just mistakenly ignored. The former is
13383 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
13384 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
13385 of hpux. This prevents an unwanted definition of the symbol
13386 convert_addresses in adaint.o.
13388 2004-10-26 Gary Dismukes <dismukes@gnat.com>
13390 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
13391 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
13393 2004-10-26 Cyrille Comar <comar@act-europe.fr>
13395 * a-filico.ads, a-filico.adb: fix incorrect header.
13397 2004-10-26 Javier Miranda <miranda@gnat.com>
13399 * a-ststio.ads: Fix typo in identifier
13401 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
13403 * sem_ch4.adb: Minor reformatting.
13405 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13407 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
13408 enabled, check the result of unary and binary operations when the
13409 expression is the right-hand side of an assignment.
13411 2004-10-26 Vincent Celier <celier@gnat.com>
13413 * clean.adb (Delete): Do not output warnings when in quiet output and
13414 not in verbose mode.
13415 (Force_Deletions): New Boolean flag, defaulted to False
13416 (Delete): Only delete a file if it is writable, and when
13417 Force_Deletions is True.
13418 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
13419 (Usage): Line for new switch -f
13420 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
13423 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
13425 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
13426 JM type only if its size matches that of the wrapper. When a size is
13427 prescribed and the field is not aliased, remove the wrapper of a JM
13428 type only if the size is not greater than that of the packed array.
13429 (gnat_to_gnu_entity): Change the extension of packed array wrappers
13432 2004-10-26 Geert Bosch <bosch@gnat.com>
13434 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
13435 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
13436 (Pred): Implement in terms of Succ.
13438 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13440 * exp_aggr.adb (Safe_Component): An aggregate component that is an
13441 unchecked conversion is safe for in-place use if the expression of the
13442 conversion is safe.
13443 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
13444 be expandable in place even if the aggregate does not come from source.
13445 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
13446 designated object of an allocator in place, rather than building it
13447 first on the stack. The previous scheme forces a full copy of the array,
13448 and may be altogether unsusable if the size of the array is too large
13449 for stack allocation.
13451 2004-10-26 Robert Dewar <dewar@gnat.com>
13453 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
13454 compares if the component is atomic.
13456 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
13457 array assignment if the component type is atomic.
13459 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13460 Eric Botcazou <ebotcazou@act-europe.fr>
13462 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
13463 is aliased and is a by_reference type, do not pass by copy.
13464 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
13465 detect whether the call is in the right side of an assignment or
13466 the expression of an object declaration. Recurse on component
13467 association within aggregates.
13468 Call it in the condition that determines whether the temporary is
13469 necessary for correct stack-checking.
13471 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
13473 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
13474 RACW_Type, used in the PolyORB version.
13475 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
13476 version and the GARLIC version.
13478 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
13479 Rename RCI_Info to RCI_Locator for better consistency between the
13480 GARLIC and PolyORB versions of the distributed systems annex.
13481 (DSA_Implementation_Name): This enumeration lists the possible
13482 implementations of the Partition Communication Subsystem for the
13483 Distributed Systems Annex (DSA). The three available implementations
13484 are the dummy stub implementation (No_DSA), and two versions based on
13485 two different distribution runtime libraries: GARLIC and PolyORB. Both
13486 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
13488 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
13491 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
13492 between the GARLIC and PolyORB versions of the distributed systems
13494 Remove RE_Unbounded_Reclaim_Pool since it is unused.
13496 2004-10-26 Gary Dismukes <dismukes@gnat.com>
13498 * gnat1drv.adb: Suppress calling the back end when
13499 Frontend_Layout_On_Target is true.
13501 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
13503 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
13504 Set_Read_Only): New subprograms.
13505 These new routines allow the user to set or unset the Owner execute
13506 and Owner write permission flags on a file.
13508 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
13509 GNAT.OS_Lib.Set_Executable instead of rolling our own.
13511 2004-10-26 Matthew Gingell <gingell@gnat.com>
13513 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
13515 2004-10-26 Pascal Obry <obry@gnat.com>
13517 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
13518 memory before the faulting page we properly test the process read
13519 access for this address using appropriate Win32 routine.
13520 (HPUX sections): guard with "__hpux__" instead of "hpux".
13522 2004-10-26 Robert Dewar <dewar@gnat.com>
13524 * lib-xref.adb (Generate_Reference): Don't complain about reference to
13525 entry parameter if pragma Unreferenced set, since we do not properly
13526 handle the case of multiple parameters.
13528 2004-10-26 Vincent Celier <celier@gnat.com>
13530 * prj-env.adb: (Contains_ALI_Files): New Boolean function
13531 (Ada_Objects_Path.Add): For a library project, add to the object path
13532 the library directory only if there is no object directory or if the
13533 library directory contains ALI files.
13534 (Set_Ada_Paths.Add.Recursive_Add): Ditto
13536 2004-10-26 Vincent Celier <celier@gnat.com>
13538 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
13539 extension of library projects.
13541 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
13542 path defaults to ".:<prefix>/lib/gnat".
13543 (Parse): For an extending all project, allow direct import of a project
13544 that is virtually extended.
13546 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
13547 the specified name is directly imported, return its ID. Otherwise, if
13548 an extension of this project is imported, return the ID of the
13551 2004-10-26 Robert Dewar <dewar@gnat.com>
13553 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
13554 (Sub3): New procedure, used by Scaled_Divide
13555 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
13556 correct more than one instance of failure to propagate carries
13558 (Double_Divide): Handle overflow case of largest negative number
13559 divided by minus one.
13561 * s-arit64.ads (Double_Divide): Document that overflow can occur in
13562 the case of a quotient value out of range.
13565 2004-10-26 Robert Dewar <dewar@gnat.com>
13567 * s-bitops.adb (Bit_Eq): Remove redundant check.
13569 * s-bitops.ads: Minor comment updates
13570 Change some occurrences of Address to System.Address
13572 * s-carsi8.ads: Fix minor cut-and-paste error in comments
13574 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13576 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
13577 accessibility check to prefix that is a protected operation.
13579 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13581 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
13582 empty, post message on stub.
13584 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13585 Javier Miranda <miranda@gnat.com>
13587 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
13588 current instance appears within a unit that is directly in the context
13590 Used to determine whether the body of the instance should be analyzed
13591 immediately after its spec, to make its subprogram bodies available
13592 for front-end inlining.
13593 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
13594 constraint is not allowed on the component type (AARM 12.5.3(3))
13596 2004-10-26 Cyrille Comar <comar@act-europe.fr>
13598 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
13599 'Storage_Pool): enhance, document & limit detection of non-sharable
13602 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
13604 * s-pooglo.ads: Add more documentation now that this pool is properly
13607 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13609 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
13610 or protected type with discriminants, do not constrain the
13611 corresponding record type if the subtype declaration has no
13612 discriminant constraints. This can be the case in source code, or in
13613 the subtype declaration created to rename an actual type within an
13616 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13618 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
13619 different kind of stub (possibly wrong name for file), do not check
13621 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
13622 includes call to some function that returns an unconstrained type, do
13625 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13627 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
13628 appear in the code for the main unit. Dependencies among units in the
13629 context of the main unit are established when those other units are
13630 compiled. Otherwise spurious elaboration constraints can generate
13631 incorrect elaboration circularities.
13633 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
13634 Ed Schonberg <schonberg@gnat.com>
13636 * sem_util.adb (Is_Aliased_View): Defend against the case where this
13637 subprogram is called with a parameter that is not an object name. This
13638 situation arises for some cases of illegal code, which is diagnosed
13639 later, and in this case it is wrong to call Is_Aliased, as that might
13640 cause a compiler crash.
13641 (Explain_Limited_Type): Refine previous fix to include
13642 inherited components of derived types, to provide complete information.
13644 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
13645 is the prival for a protected object.
13646 It is necessary to mark this entity as a variable, in addition to
13647 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
13648 modified to avoid checking the Aliased flag on entities that are not
13649 objects. (Checking that flag for non-objects is erroneous and could
13650 lead to a compiler crash).
13652 2004-10-26 Robert Dewar <dewar@gnat.com>
13654 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
13655 X_Frac = 0.5, then we know that the number X must be positive.
13656 (Succ): Remove the same redundant test, and also fix the primary test
13657 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
13659 (Decompose): Add fuller comments to spec
13661 2004-10-26 Pascal Obry <obry@gnat.com>
13663 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
13664 validity (process must have read access). Set to 0 in all other cases.
13665 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
13666 violation on Win32.
13667 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
13668 segmentation violation.
13670 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
13672 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
13673 whose type is a constructed subtype of an aliased object with an
13674 unconstrained nominal subtype, convert the actual to the constructed
13675 subtype before taking its address.
13677 2004-10-26 Vincent Celier <celier@gnat.com>
13679 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
13680 (Is_Path_Name_Case_Sensitive): New function
13682 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
13683 (Base_Name, Simple_Name, Current_Directory, Compose,
13684 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
13687 2004-10-26 Cyrille Comar <comar@act-europe.fr>
13688 Vasiliy Fofanov <fofanov@act-europe.fr>
13689 Vincent Celier <celier@gnat.com>
13691 * gnat_ugn.texi: Generalize "finding memory problems" section into a
13692 "memory management issues" section and document some of the useful
13693 memory pools provided as part of the GNAT library.
13694 Remove "virtual" from declaration of A::method2 in
13695 the simple example of Ada/C++ mixed system.
13696 Library Projects may be virtually extended: their virtual extensions
13697 are not Library Projects.
13698 Added section on extending project hierarchies.
13700 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
13702 * adaint.c (__gnat_get_libraries_from_registry): Cast value
13704 (__gnat_portable_spawn): Remove const.
13706 * mingw32.h (MAXPATHLEN): Check for previous definition.
13708 2004-10-17 Matthias Klose <doko@debian.org>
13710 * gnatvsn.ads: Set gnat library version to 4.0.
13712 2004-10-05 Vincent Celier <celier@gnat.com>
13714 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
13716 2004-10-04 Laurent GUERBY <laurent@guerby.net>
13719 * Makefile.in: Define and use RANLIB_FLAGS.
13721 2004-10-04 Pascal Obry <obry@gnat.com>
13723 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
13724 other x86 platforms).
13726 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
13728 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
13729 in general and triggers stack alignment adjustment for thread entry
13730 points on targets where this is necessary.
13732 2004-10-04 Bernard Banner <banner@gnat.com>
13736 * Makefile.in: Add section for powerpc linux
13737 Add variant i-vxwork-x86.ads
13739 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
13741 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
13743 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
13744 table registration calls when need be. Ensures no reference to the crt
13745 ctors symbol are issued in the SJLJ case, which avoids possible
13746 undefined symbol errors in the case of modules to be statically linked
13749 2004-10-04 Javier Miranda <miranda@gnat.com>
13751 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
13752 in-line the code corresponding to subprogram Analyze_Actuals. In
13753 addition, analyze the actuals only in case of subprogram call.
13755 2004-10-04 Ed Falis <falis@gnat.com>
13757 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
13759 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
13761 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
13762 in the documentation.
13764 2004-10-04 Robert Dewar <dewar@gnat.com>
13766 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
13768 (Analyze_Block_Statement): Add circuitry to detect following dead code
13769 (Check_Unreachable_Code): Handle case of block exit
13771 2004-10-04 Robert Dewar <dewar@gnat.com>
13773 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
13774 (XMatchD): Avoid warning for Logic_Error call
13776 2004-10-04 Robert Dewar <dewar@gnat.com>
13778 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
13779 consider expressions buried within a procedure actual to be an actual.
13780 This caused some blowups with uses of packed slices within a procedure
13783 2004-10-04 Robert Dewar <dewar@gnat.com>
13785 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
13786 longer need to be initialized to zero.
13787 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
13788 initialized to zero.
13790 * checks.adb (Expr_Known_Valid): Packed arrays are now always
13791 considered valid, even if the representation is modular. That's correct
13792 now that we no longer initialize packed modular arrays to zero.
13794 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
13795 suffixes. These are now documented as the only cases in which the
13796 debugger ignores outer records.
13797 Previously, the spec allowed arbitrary suffixes for this purpose.
13798 Change name of LJM to JM for packed array pad records
13799 Create separate section on packed array handling, and add a whole new
13800 set of comments to this section describing the situation with packed
13801 modular types and justification requirements depending on endianness.
13803 2004-10-04 Robert Dewar <dewar@gnat.com>
13805 * a-except.adb: Add a comment for last change
13807 * einfo.ads: Minor spelling correction in comment
13809 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
13811 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
13814 * sem_util.ads: Minor comment update
13816 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13818 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
13819 Inline_Always when in Configurable_Run_Time mode.
13821 * sem_prag.adb (Process_Convention): If entity is an inherited
13822 subprogram, apply convention to parent subprogram if in same scope.
13823 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
13824 when in Configurable_Run_Time mode.
13826 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13828 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
13829 class_wide type after component list has been inherited.
13831 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13833 * sem_ch12.adb (Check_Generic_Actuals): New predicate
13834 Denotes_Previous_Actual, to handle properly the case of a private
13835 actual that is also the component type of a subsequent array actual.
13836 The visibility status of the first actual is not affected when the
13837 second is installed.
13838 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
13839 make fully recursive the treatment of formals of packages declared
13841 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
13842 the above on exit from an instantiation.
13843 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
13844 current instantiation which is now complete.
13845 (Analyze_Package_Instantiation): No instantiated body is needed if the
13846 main unit is generic. Efficient, and avoid anomalies when a instance
13847 appears in a package accessed through rtsfind.
13849 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13851 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
13852 do not generate a declaration for a temporary if the call is part of a
13853 library-level instantiation.
13855 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13857 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
13858 searching for a limited component to flag.
13860 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
13861 expansion of Input, to account for the fact that the implicit call
13862 generated by the attribute reference must freeze the user-defined
13863 stream subprogram. This is only relevant to 'Input, because it can
13864 appear in an object declaration, prior to the body of the subprogram.
13866 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
13867 expansion can proceed and further errors uncovered.
13868 (Minor clean up): Fix cases of using | instead of \ for continuation
13871 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13873 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
13875 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
13876 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
13877 Use gcc_assert and gcc_unreachable.
13879 * decl.c (gnat_to_gnu_entity, case object): Check and process a
13880 specified alignment before validating size.
13881 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
13882 stripped-down declaration for the type of the inner field when making
13885 * utils.c (finish_record_type): Do not compute the size in units
13886 incrementally. Instead compute it once for the rep clause case.
13887 Use gcc_assert and gcc_unreachable.
13889 2004-10-04 Vincent Celier <celier@gnat.com>
13891 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
13893 (Is_Valid_Path_Name): Take '/' as a directory separator.
13895 2004-10-04 Vincent Celier <celier@gnat.com>
13897 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
13898 (Extended_Project) only if Extended_Project is defined, to avoid
13900 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
13902 (Parse_Single_Project): Ditto.
13904 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
13905 Add_To_Project_Path for virtual projects.
13907 2004-10-04 Vincent Celier <celier@gnat.com>
13909 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13910 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
13911 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
13912 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
13913 parameter Options_2.
13915 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
13916 Build_Dynamic_Library with an empty Options_2.
13918 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
13921 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
13922 directory separator, if any.
13923 (Gprmake): Do not allow mains on the command line for library projects.
13924 Do not attempt to link when the project is a library project.
13925 (Library_Opts): New table to store Library_Options.
13926 (Build_Library): If Library_Options is specified, pass these options
13927 when building a shared library.
13929 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
13931 * s-tposen.adb (Service_Entry): The object must be always unlocked at
13932 the end of this procedure now that the unlock operation was inserted
13935 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
13937 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
13938 corresponding to the Preallocated_Stacks flags in System.
13939 (Get_Target_Parameters): Including the processing for
13940 Preallocated_Stacks.
13942 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
13943 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
13944 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
13945 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
13946 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
13947 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
13948 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
13949 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
13950 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13951 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13952 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
13953 used to signal whether the compiler creates the required stacks and
13954 descriptors for the different tasks (when True) or it is done by the
13955 underlying operating system at run time (when False).
13956 It is initially set to False in all targets.
13958 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
13959 if it is supported by the target.
13960 (Make_Task_Create_Call): Pass the stack address if it has been
13961 previously created. Otherwise pass a Null_Address.
13963 * snames.adb: Add _stack.
13965 * snames.ads: Add Name_uStack. Required to allow the expander to
13966 statically allocated task stacks.
13968 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
13969 Stack_Address argument.
13970 Check that its value is equal to Null_Address because this target does
13971 not support the static stack allocation.
13973 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
13975 * usage.adb: Change "pragma inline" to "pragma Inline" in information
13978 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
13980 * exp_dist.adb: Split declaration of asynchronous flag out of
13981 Add_RACW_Read_Attribute.
13982 Minor reformatting for better alignment with PolyORB version.
13983 Store the entity for the asynchronous flag of an RACW, rather than the
13984 expression, in the asynchronous flags table. This will allow this flag
13985 to be used in other subprograms beside Add_RACW_Read_Attribute.
13987 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
13989 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
13990 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
13991 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
13992 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
13993 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
13994 sockets constant MSG_NOSIGNAL (Linux-specific).
13995 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
13996 all Send operations.
13997 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
13998 from trigerring SIGPIPE.
13999 Rename components to avoid clash with Ada 2005 possible reserved
14001 (Check_Selector): When the select system call returns with an error
14002 condition, propagate Socket_Error to the caller.
14004 2004-10-01 Jan Hubicka <jh@suse.cz>
14006 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
14008 2004-09-23 Robert Dewar <dewar@gnat.com>
14012 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
14013 instead do this at freeze time (we won't do it if there is an address
14015 Change "pragma inline" to "pragma Inline" in information and error
14017 Minor reformatting.
14019 * freeze.adb (Check_Address_Clause): Remove previous change, not the
14020 right way of doing things after all.
14021 (Freeze_Entity): For object, set Is_Public for imported entities
14022 unless there is an address clause present.
14024 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
14026 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
14027 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
14028 ensures proper handling of types with rep clauses, which might have
14029 their TYPE_SIZE set already.
14031 2004-09-21 Robert Dewar <dewar@gnat.com>
14033 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
14034 packed array types in both little- and big-endian cases. This change
14035 ensures that we no longer count on the unused bits being initialized
14036 for such types (and in particular ensures that equality testing will
14037 only read the relevant bits).
14038 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
14039 These changes mean that we no longer need to initialize small packed
14041 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
14042 optimization to an LJM field as to its parent field.
14044 * ada-tree.h, trans.c, utils.c, utils2.c:
14045 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
14047 2004-09-20 Jan Hubicka <jh@suse.cz>
14049 * utils.c (gnat_finalize): Remove.
14050 (end_subprog_body): Directly call cgraph_finalize_function;
14051 do not lower the nested functions.
14053 2004-09-20 Robert Dewar <dewar@gnat.com>
14057 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
14058 if an address clause is present, since that means that the Import
14061 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
14063 * 5tsystem.ads: Removed, no longer used.
14065 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
14066 Zack Weinberg <zack@codesourcery.com>
14068 * ada-tree.def: Use tree_code_class enumeration constants
14069 instead of code letters.
14070 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
14071 Update for new tree-class enumeration constants.
14073 2004-09-17 Vincent Celier <celier@gnat.com>
14075 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
14076 capabilities of the general project manager.
14078 2004-09-09 Vincent Celier <celier@gnat.com>
14080 * a-direct.ads: Add pragma Ada_05
14081 (Directory_Entry_Type): Give default value to component Kind to avoid
14082 not initialized warnings.
14084 * a-direct.adb (Current_Directory): Remove directory separator at the
14086 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
14087 an existing directory.
14088 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
14089 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
14090 Convert the result to File_Size.
14092 * prj.ads: (Project_Error): New exception
14094 * prj-attr.adb: Except in procedure Initialize, Fail comes from
14095 Prj.Com, not from Osint.
14096 (Attrs, Package_Attributes): Tables moved to private part of spec
14097 (Add_Attribute, Add_Unknown_Package): Moved to new child package
14099 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
14100 Prj.Project_Error after call to Fail.
14101 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
14102 Fail. Check that package name is not already in use.
14104 * prj-attr.ads: Comment updates to indicate that all subprograms may be
14105 used by tools, not only by the project manager, and to indicate that
14106 exception Prj.Prj_Error may be raised in case of problem.
14107 (Add_Unknown_Package, Add_Attribute): Moved to new child package
14109 (Attrs, Package_Attributes): Table instantiations moved from the body to
14110 the private part to be accessible from Prj.Attr.PM body.
14112 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
14113 from new package Prj.Attr.PM.
14114 (Parse_Attribute_Declaration): Call Add_Attribute from new package
14117 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
14119 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
14120 instead of Elaboration_Checks).
14122 * a-calend.adb: Minor reformatting
14124 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14126 * gigi.h (maybe_pad_type): New declaration.
14127 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
14129 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
14131 * cuintp.c: Convert to use buildN.
14133 * decl.c (maybe_pad_type): No longer static.
14134 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
14136 Convert to use buildN.
14138 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
14139 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
14140 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
14142 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
14143 (gnat_gimplify_expr, case ADDR_EXPR): New case.
14144 Convert to use buildN.
14146 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
14147 TREE_READONLY for const.
14148 Convert to use buildN.
14150 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
14151 (create_var_decl): Refine when TREE_STATIC is set.
14152 Convert to use buildN.
14154 2004-09-09 Gary Dismukes <dismukes@gnat.com>
14156 * gnat_ugn.texi: Delete text relating to checking of ali and object
14159 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
14162 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
14164 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
14165 pragmas recognized by GNAT.
14167 * gnat_rm.texi: Document pragma Detect_Blocking.
14169 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
14170 raise Program_Error if called from a protected operation.
14172 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
14173 the protected action nesting level.
14174 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
14175 protected action nesting level.
14176 (Unlock): When pragma Detect_Blocking is active decrease the protected
14177 action nesting level.
14179 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
14180 Protected_Action_Nesting.
14182 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
14183 Common_ATCB record. It contains the dynamic level of protected action
14184 nesting for each task. It is needed for checking whether potentially
14185 blocking operations are called from protected operations.
14186 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
14187 Detect_Blocking is active or not in the partition.
14189 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
14190 raise Program_Error if called from a protected operation.
14191 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
14192 Program_Error if called from a protected operation.
14193 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
14194 Program_Error if called from a protected operation.
14196 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
14197 raise Program_Error if called from a protected operation.
14199 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
14200 raise Program_Error if called from a protected operation, and increase
14201 the protected action nesting level.
14202 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
14203 Program_Error if called from a protected operation, and increase the
14204 protected action nesting level.
14205 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
14206 protected action nesting level.
14208 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
14209 raise Program_Error if called from a protected operation, and increase
14210 the protected action nesting level.
14211 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
14212 Program_Error if called from a protected operation, and increase the
14213 protected action nesting level.
14214 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
14215 raise Program_Error if called from a protected operation.
14216 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
14217 active, raise Program_Error if called from a protected operation.
14218 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
14219 protected action nesting level.
14221 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
14222 insertion of the statement raising Program_Error. The run time
14223 contains the required machinery for handling that.
14225 * sem_util.ads: Change comment associated to procedure
14226 Check_Potentially_Blocking_Operation.
14227 This procedure does not insert a call for raising the exception because
14228 that is currently done by the run time.
14230 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
14232 * init.c: Add the global variable __gl_detect_blocking that indicates
14233 whether pragma Detect_Blocking is active (1) or not (0). Needed for
14234 making the pragma available at run time.
14235 (__gnat_set_globals): Pass and update the detect_blocking parameter.
14237 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
14238 pragma Detect_Blocking is active.
14240 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
14242 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
14243 DB is found in the ali file. Any unit compiled with pragma
14244 Detect_Blocking active forces its effect in the whole partition.
14246 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
14247 Detect_Blocking is active and delay is called from a protected
14250 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
14251 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
14252 Detect_Blocking is active (0 otherwise).
14253 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
14254 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
14257 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
14259 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
14260 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
14263 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
14264 (Register_Receiving_Stub): Add Subp_Info formal parameter.
14265 Update API in placeholder implemetation of s-parint to reflect changes
14266 in distribution runtime library.
14268 * sem_ch3.adb (Expand_Derived_Record): Rename to
14269 Expand_Record_Extension.
14271 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
14272 primitive operations of potentially distributed object types that have
14273 non-controlling anonymous access formals.
14275 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
14277 New implementation of expansion for remote access-to-subprogram types,
14278 based on the RACW infrastructure.
14279 This version of sem_dist is compatible with PolyORB/DSA as well as
14282 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
14283 Asynchrronous that applies to a remote access-to-subprogram type, mark
14284 the underlying RACW type as asynchronous.
14286 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
14287 __gnat_using_gnu_linker to 1.
14289 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
14290 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
14291 GNAT.Perfect_Hash_Generators, and remove the empty
14292 GNAT.Perfect_Hash package.
14294 * atree.adb: Minor reformatting
14296 * exp_ch3.adb (Expand_Derived_Record): Rename to
14297 Expand_Record_Extension.
14298 (Build_Record_Init_Proc.Build_Assignment): The default expression in
14299 a component declaration must remain attached at that point in the
14300 tree so New_Copy_Tree copies it if the enclosing record type is derived.
14301 It is therefore necessary to take a copy of the expression when building
14302 the corresponding assignment statement in the init proc.
14303 As a side effect, in the case of a derived record type, we now see the
14304 original expression, without any rewriting that could have occurred
14305 during expansion of the ancestor type's init proc, and we do not need
14306 to go back to Original_Node.
14308 * exp_ch3.ads (Expand_Derived_Record): Rename to
14309 Expand_Record_Extension.
14311 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
14312 Returns the RACW type used to implement a remote access-to-subprogram
14314 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
14315 New subprograms. Used to create a proxy tagged object for a remote
14316 subprogram. The proxy object is used as the designated object
14317 for RAS values on the same partition (unless All_Calls_Remote applies).
14318 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
14319 System.Partition_Interface.Get_Unique_Remote_Pointer.
14320 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
14321 Renamed from Add_RAS_*_Attribute.
14322 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
14324 New implementation of expansion for remote access-to-subprogram types,
14325 based on the RACW infrastructure.
14327 * exp_dist.ads (Copy_Specification): Update comment to note that this
14328 function can copy the specification from either a subprogram
14329 specification or an access-to-subprogram type definition.
14331 2004-09-09 Ed Schonberg <schonberg@gnat.com>
14333 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
14334 in an instance, between an explicit subprogram an one inherited from a
14335 type derived from an actual.
14337 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
14338 add a polling call if the subprogram is to be inlined by the back-end,
14339 to avoid repeated calls with multiple inlinings.
14341 * checks.adb (Apply_Alignment_Check): If the expression in the address
14342 clause is a call whose name is not a static entity (e.g. a dispatching
14343 call), treat as dynamic.
14345 2004-09-09 Robert Dewar <dewar@gnat.com>
14347 * g-trasym.ads: Minor reformatting
14349 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
14350 packed arrays, since unused bits are expected to be zero for a
14353 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
14355 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
14358 2004-09-09 Pascal Obry <obry@gnat.com>
14360 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
14361 enable map file generation. Add the right option to generate the map
14362 file if Map_File is set to True.
14364 * gnatdll.adb (Gen_Map_File): New variable.
14365 (Syntax): Add info about new -m (Map_File) option.
14366 (Parse_Command_Line): Add support for -m option.
14367 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
14368 Minor reformatting.
14370 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
14372 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
14373 new gnatdist implementation.
14374 Define a subpackage isolating the output routines specific to this
14377 2004-09-09 Joel Brobecker <brobecker@gnat.com>
14379 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
14381 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
14383 2004-09-09 Cyrille Comar <comar@act-europe.fr>
14385 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
14388 * opt.ads: Add Ada_Version_Runtime constant used to decide which
14389 version of the language is used to compile the run time.
14391 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
14393 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
14394 of variable length temporaries for function return now that the
14395 back-end and gigi support it.
14397 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14399 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
14401 * trans.c (struct stmt_group): Delete field GLOBAL.
14402 (gnat_init_stmt_group): Do not initialize it.
14403 (call_to_gnu): Use save_expr, not protect_multiple_eval.
14404 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
14405 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
14406 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
14407 (start_stmt_group): Likewise.
14408 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
14410 * utils2.c (ggc.h): Include.
14411 (build_call_raise): Call build_int_cst, not build_int_2.
14413 * utils.c (gnat_init_decl_processing): Fix arg to
14414 build_common_tree_nodes.
14415 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
14416 (gnat_define_builtin): Set built_in_decls.
14417 (init_gigi_decls): Call build_int_cst, not build_int_2.
14419 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
14420 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
14421 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
14422 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
14423 SET_TYPE_MODULE): Use them.
14424 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
14425 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
14426 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
14427 SET_TYPE_ADA_SIZE): Likewise.
14428 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
14429 (DECL_CONST_CORRESPONDING_VAR,
14430 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
14431 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
14432 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
14433 (TYPE_RM_SIZE_NUM): New macro.
14434 (TYPE_RM_SIZE): Modified to use above.
14436 * cuintp.c: (build_cst_from_int): New function.
14437 (UI_To_gnu): Use it.
14439 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
14440 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
14441 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
14442 MIN_EXPR for the size, copy it into new.
14444 2004-09-01 Robert Dewar <dewar@gnat.com>
14446 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
14447 packed indexed component where array is an IN OUT formal. This
14448 generated garbage code previously.
14450 * gnat_ugn.texi: Document -fverbose-asm
14452 * gnat-style.texi: Minor updates (note that boolean constants and
14453 variables are joined with AND/OR rather than short circuit forms).
14455 2004-09-01 Ed Schonberg <schonberg@gnat.com>
14457 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
14458 it is an upward conversion of an untagged type with no representation
14461 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
14463 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
14464 System.Partition_Interface.
14466 * checks.adb (Apply_Access_Checks): Do not generate checks when
14467 expander is not active (but check for unset reference to prefix of
14470 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
14471 pragma Debug as an if statement with a constant condition, for
14472 consistent treatment of entity references contained within the
14473 enclosed procedure call.
14475 2004-09-01 Vincent Celier <celier@gnat.com>
14477 * bindgen.adb: (Set_EA_Last): New procedure
14478 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
14480 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
14481 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
14482 linked without errors.
14483 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
14485 (Gen_Exception_Table_C): Correct same bugs
14487 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
14489 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
14490 on Windows, make sure that the drive letter is in upper case.
14492 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
14493 Windows, when the drive letter is added and Case_Sensitive is True, the
14494 drive letter is forced to upper case.
14496 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
14497 to Options_2 for the call to MLib.Utl.Gcc.
14499 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
14500 directory separator when defining BASE_DIR.
14502 2004-09-01 Pascal Obry <obry@gnat.com>
14504 * gprcmd.adb (Extend): Do not output trailing directory separator. This
14505 is not needed and it confuses Windows GNU/make which does not report
14506 directory terminated by a slash as a directory.
14507 (gprcmd): Idem for "pwd" internal command.
14509 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
14510 target names rewrite to fix regressions with recent version of
14511 GNU/make. Starting with GNU/make 3.80 the pipe character was not
14512 handled properly anymore.
14514 2004-09-01 Andreas Schwab <schwab@suse.de>
14516 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
14517 * raise.c [!IN_RTS]: Undef abort.
14519 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
14521 * utils2.c (build_allocator): Use ssize_int.
14523 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
14525 2004-08-27 Andreas Schwab <schwab@suse.de>
14527 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
14529 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
14530 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14532 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
14534 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
14536 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
14537 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
14538 * utils.c (init_gigi_decls): Likewise.
14539 * utils2.c (build_call_raise, build_allocator): Likewise.
14541 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
14543 * utils.c (gnat_init_decl_processing): Adjust
14544 build_common_tree_nodes call.
14546 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
14548 * utils2.c (build_allocator): Use build_int_cst for negative
14551 2004-08-18 Richard Henderson <rth@redhat.com>
14553 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
14555 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
14557 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
14559 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
14560 (gnat_to_gnu): Likewise.
14562 2004-08-16 Pascal Obry <obry@gnat.com>
14564 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
14565 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
14566 option and not mdll anymore. Update comment.
14568 2004-08-16 Pascal Obry <obry@gnat.com>
14570 * bld.adb (Put_Include_Project): Properly handle directory separators
14573 2004-08-16 Ed Schonberg <schonberg@gnat.com>
14575 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
14576 decreasing the number of allocated junk nodes while searching for the
14577 appropriate subprogram.
14579 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
14581 * cuintp.c (UI_To_gnu): Use build_int_cst..
14582 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
14583 * utils.c (init_gigi_decls): Likewise.
14584 * utils2.c (build_call_raise): Likewise.
14586 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
14588 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
14589 for a global aliased object with a variable size and an unconstrained
14590 nominal subtype, pretend there is no initializer if the one we have is
14591 incomplete, and avoid referencing an inexistant component in there. The
14592 part we have will be rebuilt anyway and the reference may confuse
14593 further operations.
14595 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
14597 * einfo.ads: Minor reformatting
14599 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
14600 restrictions in the ALI if we only want to warn about violations.
14602 2004-08-13 Vincent Celier <celier@gnat.com>
14604 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
14605 when creating a new Unit_Record in table Units.
14607 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
14608 that are violated, if any.
14610 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
14611 add directory separator if path already ends with a directory separator.
14613 2004-08-13 Ed Schonberg <schonberg@gnat.com>
14615 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
14616 unit, this is an attempt to inline a construct that is not available in
14617 the current restricted mode, so abort rather than trying to continue.
14619 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
14620 discriminants that rename those of the parent, recover names of
14621 original discriminants for the constraint on the full view of the
14623 (Complete_Private_Subtype): Do not create a subtype declaration if the
14624 subtype is an itype.
14626 * gnat_rm.texi: Added section on implementation of discriminated
14627 records with default values for discriminants.
14629 2004-08-13 Ed Schonberg <schonberg@gnat.com>
14632 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
14633 the second operand is overloaded.
14635 2004-08-10 Richard Henderson <rth@redhat.com>
14637 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
14638 add __builtin_alloca.
14640 2004-08-10 Richard Henderson <rth@redhat.com>
14642 * config-lang.in (boot_language): Yes.
14644 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
14646 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
14647 from complaining on potential uninitialized reference.
14648 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
14649 new specification and test explicitly for non-zero return value.
14651 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
14652 returning C.int, to avoid using a derived boolean type.
14654 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
14655 Duplicate_Subexpr_No_Checks in preference to direct use of
14656 Remove_Side_Effects and New_Copy_Tree.
14657 Clear Comes_From_Source on prefix of 'Size attribute reference.
14659 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
14660 g-socthi-vxworks.adb: Change calls to
14661 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
14662 and test explicitly for non-zero return value.
14664 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
14665 (Is_Socket_In_Set): Declare imported function as returning C.int, to
14666 avoid using a derived boolean type.
14668 2004-08-09 Albert Lee <lee@gnat.com>
14670 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
14672 2004-08-09 Pascal Obry <obry@gnat.com>
14674 * gnat_ugn.texi: Document new way to build DLLs on Windows using
14675 GCC's -shared option.
14677 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
14678 Options_2 parameter (options put after object files).
14680 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
14682 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
14683 ignore overflows on low and high bounds of an index to also account for
14684 differences in signedness between sizetype and gnu_index_subtype.
14685 These are as legitimate as the ones caused by a lower TYPE_PRECISION
14688 2004-08-09 Robert Dewar <dewar@gnat.com>
14690 * s-solita.ads, s-solita.adb: Minor reformatting
14692 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
14693 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
14694 obsolescent section
14695 Add note that No_Implicit_Conditionals does not suppress
14696 run time constraint checks.
14698 * vms_conv.ads: Minor reformatting
14700 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
14701 and necessary for following change).
14702 (Mark): Return new format Mark_Id containing sec stack address
14703 (Release): Use sec stack address from Mark_Id avoiding Self call
14705 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
14706 pointer (cleanup and necessary for following change).
14707 Define Mark_Id as record containing address of secondary stack, that way
14708 Release does not need to find the stack again, decreasing the number of
14709 calls to Self and improving efficiency.
14711 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
14713 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
14714 case variable into the individual case branches when possible.
14716 * sem_ch11.adb: Minor reformatting
14718 * prj.ads: Correct spelling of suffixs
14720 * prj-nmsc.adb: Minor reformatting
14721 Correct spelling suffixs throughout (also in identifiers)
14723 * freeze.adb: Minor spelling correction
14725 * exp_ch2.adb: Cleanups to handling of Current_Value
14726 (no functional effect).
14728 * bld.adb: Correct spelling of suffixs
14730 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
14732 2004-08-09 Ed Schonberg <schonberg@gnat.com>
14736 * sem_ch7.adb (Install_Private_Declarations): In the body of the
14737 package or of a child, private entities are both immediately_visible
14740 2004-08-09 Ed Schonberg <schonberg@gnat.com>
14742 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
14743 there are no range checks on the value of the literal.
14745 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
14746 wrapped is the triggering alternative of an asynchronous select, action
14747 statements mustbe inserted before the select itself.
14749 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
14750 case where the prefix is a protected function call.
14751 (Resolve_Attribute, case 'Access): The attribute reference on a
14752 subprogram is legal in a generic body if the subprogram is declared
14755 2004-08-09 Vincent Celier <celier@gnat.com>
14757 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
14758 languages, otherwise building the library may fail with unresolved
14760 (Compile_Sources): Do not build libraries if -c switch is used
14762 * gnatlink.adb (Process_Args): New switches -M and -Mmap
14763 (Write_Usage): If map file creation is supported, output new switches
14765 (Gnatlink): When -M is specified, add the necessary switch(es) to the
14766 gcc call, when supported.
14768 * Makefile.in: Added indepsw.o to the object list for gnatlink
14769 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
14771 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
14772 indepsw.adb, indepsw.ads: New files.
14774 2004-08-09 Bernard Banner <banner@gnat.com>
14776 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
14778 * Makefile.in: add section for vxworks x86
14780 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
14782 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
14783 per-object constrained components where the discriminant is of an
14785 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
14786 the parent initialization procedure for derived Unchecked_Unions.
14787 Instead, derived Unchecked_Unions build their own initialization
14789 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
14790 Check the body of the subprogram for details.
14791 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
14792 functions for derived Unchecked_Union types by introducing a condition.
14793 Allow the creation of TSS equality functions for Unchecked_Unions.
14794 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
14795 Add formal parameter Discr to function signature. Discr is used to
14796 control the generated case statement for Unchecked_Union types.
14797 (Make_Eq_If): Rename formal parameter Node to E in function signature.
14799 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
14801 Check the body of the subprogram for details.
14802 (Expand_Composite_Equality): Augment composite type equality to include
14803 correct handling of Unchecked_Union components.
14804 (Expand_N_In): Add condition to detect illegal membership tests when the
14805 subtype mark is a constrained Unchecked_Union and the expression lacks
14806 inferable discriminants, and build a Raise_Program_Error node.
14807 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
14808 to detect types that contain components of unconstrained Unchecked_Union
14809 subtype. Add condition to detect equality between types that have an
14810 unconstrained Unchecked_Union component, and build a Raise_Program_Error
14811 node. Add condition to detect equality between Unchecked_Union types
14812 that lack inferable discriminants, and build a Raise_Program_Error node.
14813 Otherwise build a TSS equality function call.
14814 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
14815 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
14816 with the operand lacking inferable discriminants, and build a Raise_
14817 Program_Error node.
14818 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
14819 composite equality.
14820 (Has_Inferable_Discriminants): Implement new predicate for objects and
14821 expressions of Unchecked_Union type. Check the body of subprogram for
14823 (Has_Unconstrained_UU_Components): Add function
14824 Component_Is_Unconstrained_UU. It is used to detect whether a single
14825 component is of an unconstrained Unchecked_Union subtype. Add function
14826 Variant_Is_Unconstrained_UU. It is used to detect whether a single
14827 component inside a variant is of an unconstrained Unchecked_Union type.
14829 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
14830 inferred discriminant values. Add condition to generate a case
14831 statement with an inferred discriminant as the switch.
14832 (Make_Component_List_Assign): Introduce a Boolean flag that determines
14833 the behaviour of the subprogram in the presence of an Unchecked_Union.
14834 Add condition to trigger the usage of the inferred discriminant value
14835 as the generated case statement switch.
14836 (Make_Field_Assign): Introduce a Boolean flag that determines the
14837 behaviour of the subprogram in the presence of an Unchecked_Union. Add
14838 condition to trigger the usage of the inferred discriminant value as
14839 the right-hand side of the generated assignment.
14841 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
14842 parameter generation when dealing with Unchecked_Unions.
14844 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
14845 checks for Unchecked_Unions.
14847 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
14849 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
14850 Raise_Program_Error nodes for the execution of Read and Write
14851 attributes of Unchecked_Union types and the execution of Input and
14852 Output attributes of Unchecked_Union types that lack default
14853 discriminant values.
14855 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
14856 Unchecked_Union. Add procedure Check_Component. It is used to inspect
14857 per-object constrained components of Unchecked_Unions for being
14858 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
14859 check individual components withing a variant.
14861 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
14862 comparison of Unchecked_Unions.
14863 (Resolve_Equality_OP): Remove guard that prevents equality between
14866 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
14867 of component subtypes for Unchecked_Union components.
14868 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
14869 since it is the actual subtype.
14871 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
14872 pass of Unchecked_Union subtypes as generic actuals to formal types
14873 that lack known_discriminant_parts or that are derived Unchecked_Union
14874 types, and do nothing. In any other case, produce an error message.
14876 * sem_ch3.adb (Analyze_Component_Declaration): Add function
14877 Contains_POC. It determines whether a constraint uses the discriminant
14878 of an enclosing record type.
14879 Add condition to detect per-object constrained component and set the
14881 (Derived_Type_Declaration): Remove guard that prevents derivation from
14882 Unchecked_Union types.
14883 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
14886 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
14887 references to Unchecked_Union discriminants.
14889 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
14890 formal generation when dealing with Unchecked_Unions.
14891 (Set_Actual_Subtypes): Add condition to prevent generation of actual
14892 subtypes for Unchecked_Unions.
14894 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
14895 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
14896 completions of discriminated partial views by Unchecked_Unions and
14897 produce an error message.
14899 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14901 * trans.c (struct stmt_group): New field, GLOBAL.
14902 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
14903 (struct elab_info): New struct.
14904 (elab_info_list, gnu_elab_proc_stack): New variables.
14905 (Compilation_Unit_to_gnu): New procedure.
14906 (gigi): Call it and also handle elaboration procs we've saved.
14907 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
14908 global field from parent.
14909 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
14910 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
14911 (start_stmt_group): Initialize global field from parent.
14912 (add_decl_expr): Set to global for current statement group.
14913 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
14916 * utils.c (global_bindings_p): True when no current_function_decl; no
14917 longer check current_binding_level.
14919 2004-08-09 Ben Brosgol <brosgol@gnat.com>
14921 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
14924 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
14926 2004-08-06 Andreas Schwab <schwab@suse.de>
14928 * utils.c (gnat_define_builtin): Remove second parameter of
14930 (begin_subprog_body): Likewise.
14932 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
14934 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
14935 optimization, not supported by the tree-ssa back-end.
14937 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
14939 * s-mastop-irix.adb: Update comments.
14941 * a-except.adb (Exception_Information): Raise Constraint_Error if
14942 exception Id is Null_Id.
14943 This is required behavior, which is more reliably and clearly checked
14944 at the top level interface level.
14946 2004-07-26 Javier Miranda <miranda@gnat.com>
14948 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
14949 call if a component has no default_expression and the box is used.
14951 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
14952 default_expression and you use box, it behaves as if you had declared a
14953 stand-alone object.
14954 (Resolve_Record_Aggregate): If a component has no default_expression and
14955 you use box, it behaves as if you had declared a stand-alone object.
14957 * sem_ch10.adb (Install_Siblings): Do not make visible the private
14958 entities of private-with siblings.
14960 2004-07-26 Ed Schonberg <schonberg@gnat.com>
14962 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
14963 for a component of an itype, set the parent pointer for analysis,
14964 there is no list in which to insert it.
14966 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
14967 bona-fide renamings, not for inherited operations.
14969 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
14970 actual for a formal that is an access parameter, create local
14971 finalization list even if the expression is not an aggregate.
14973 2004-07-26 Ed Schonberg <schonberg@gnat.com>
14976 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
14977 Diagnose properly illegal subprogram renamings that are library units.
14979 2004-07-26 Ed Schonberg <schonberg@gnat.com>
14982 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
14983 conversion rewritten as an unchecked conversion, check that original
14984 expression is a variable.
14986 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
14987 unchecked_conversion, create new node rather than rewriting in place,
14988 to preserve original construct.
14990 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14992 * gigi.h (gnat_expand_body): Deleted.
14994 * Make-lang.in: (trans.o): Depends on function.h.
14996 * misc.c: (gnat_expand_body): Moved to here.
14998 * trans.c (gnat_expand_body_1): Deleted.
14999 (gnat_expand_body): Moved from here.
15000 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
15001 (add_stmt): Check for marked visited with global_bindings_p.
15002 (gnat_gimplify_expr, case COMPONENT_REF): New case.
15003 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
15005 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
15006 VIEW_CONVERT_EXPR if not operation type.
15008 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
15011 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
15012 changes: reformatting of negation operators, removing unneeded
15013 inequality comparison with zero, converting equality comparisons with
15014 zero to negations, changing int/0/1 to bool/false/true, replace calls
15015 to gigi_abort with abort, and various other similar changes.
15017 2004-07-26 Vincent Celier <celier@gnat.com>
15019 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
15022 * make.adb (Gnatmake): Fail when a library is not present and there is
15023 no object directory.
15025 * mlib-prj.adb (Check_Library): No need to check if the library needs
15026 to be rebuilt if there is no object directory, hence no object files
15027 to build the library.
15029 * opt.ads (Setup_Projects): New Boolean flag.
15031 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
15033 Create directory when Kind /= "" and in "gnat setup". Report error if
15034 directory cannot be created.
15035 (Ada_Check): Create library interface copy dir if it does not exist
15036 and we are in "gnat setup".
15037 (Find_Sources): No error if in "gnat setup" and no Ada sources were
15039 (Language_Independent_Check): Create object directory, exec directory
15040 and/or library directory if they do not exist and we are in
15043 * vms_conv.ads: (Command_Type): New command Setup.
15045 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
15047 * vms_data.ads: Add qualifiers/switches for new built-in command
15050 2004-07-25 Richard Henderson <rth@redhat.com>
15052 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
15053 DECL_IGNORED_P on RESULT_DECL.
15055 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
15057 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
15058 allocation and potentially overflowing update with
15059 Tailored_Exception_Information. Use the sec-stack free procedural
15060 interface to output Exception_Information instead.
15062 * a-except.adb (To_Stderr): New subprogram for character, and string
15063 version moved from a-exextr to be visible from other separate units.
15064 (Tailored_Exception_Information): Remove the procedural version,
15065 previously used by the default Last_Chance_Handler and not any more.
15066 Adjust various comments.
15068 * a-exexda.adb: Generalize the exception information procedural
15069 interface, to minimize the use of secondary stack and the need for
15070 local buffers when the info is to be output to stderr:
15071 (Address_Image): Removed.
15072 (Append_Info_Character): New subprogram, checking for overflows and
15073 outputing to stderr if buffer to fill is of length 0.
15074 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
15075 (Append_Info_Address, Append_Info_Exception_Name,
15076 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
15077 Append_Info_Basic_Exception_Traceback,
15078 Append_Info_Exception_Information): New subprograms.
15079 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
15080 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
15081 Exception_Info_Maxlength, Exception_Name_Length,
15082 Exception_Message_Length): New subprograms.
15083 (Exception_Information): Use Append_Info_Exception_Information.
15084 (Tailored_Exception_Information): Use
15085 Append_Info_Basic_Exception_Information.
15086 Export services for the default Last_Chance_Handler.
15088 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
15089 other separate units.
15091 2004-07-20 Vincent Celier <celier@gnat.com>
15093 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
15095 2004-07-20 Ed Schonberg <schonberg@gnat.com>
15097 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
15098 emit itype references for the designated types of component types that
15099 are declared outside of the full record declaration, and that may
15100 denote a partial view of that record type.
15102 2004-07-20 Ed Schonberg <schonberg@gnat.com>
15105 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
15106 which is the designated type in an access component declaration, to the
15107 list of incomplete dependents of the parent type, to avoid elaboration
15108 issues with out-of-scope subtypes.
15109 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
15110 full view of the parent.
15112 2004-07-20 Ed Schonberg <schonberg@gnat.com>
15115 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
15116 entities that are hidden, such as references to generic actuals
15117 outside an instance.
15119 2004-07-20 Javier Miranda <miranda@gnat.com>
15121 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
15122 support to the new notation.
15123 (Analyze_Selected_Component): Add call to Try_Object_Operation.
15125 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
15127 * s-taprob.adb: Adding the elaboration code required for initializing
15128 the tasking soft links that are common to the full and the restricted
15131 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
15132 restricted run time has been moved to the package
15133 System.Soft_Links.Tasking.
15135 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
15136 restricted run time has been moved to the package
15137 System.Soft_Links.Tasking.
15139 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
15141 * s-solita.ads, s-solita.adb: New files.
15143 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15145 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
15146 Case_Statement_to_gnu): Split off from gnat_to_gnu.
15147 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
15148 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
15149 Exception_Handler_to_gnu_zcx): Likewise.
15151 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
15153 * gigi.h (builtin_function): Declare.
15155 2004-07-15 Robert Dewar <dewar@gnat.com>
15157 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
15160 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
15161 access values as an example of a warning.
15163 * gnat_rm.texi: Document new attribute Has_Access_Values
15165 * gnat-style.texi: Document that box comments belong on nested
15168 * sem_util.ads (Has_Access_Values): Improved documentation
15170 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
15172 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
15173 (Process_Interface_Name): Call to this new procedure
15174 (Set_Extended_Import_Export_External_Name): Call to this new procedure
15176 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
15178 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
15180 * einfo.ads: Minor comment typo fixed
15182 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
15184 * snames.adb: Add _atcb.
15186 * snames.ads: Add Name_uATCB.
15188 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
15189 (in the expanded code) when using the restricted run time.
15191 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
15192 a in parameter in order to allow ATCBs to be preallocated (in the
15195 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
15196 order to allow ATCBs to be preallocated. In case of error, the ATCB is
15197 deallocated in System.Tasking.Stages.
15199 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
15200 order to allow ATCBs to be preallocated.
15202 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
15203 here. It was previously done in Initialize_ATCB.
15205 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
15207 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
15208 Restricted run time.
15210 * exp_ch3.adb: When using the Restricted run time, pass the
15211 preallocated Ada_Task_Control_Block when creating a task.
15213 2004-07-15 Ed Schonberg <schonberg@gnat.com>
15215 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
15216 function call that is itself an actual in an enclosing call, diagnose
15217 problem here rather than assuming that resolution will catch it.
15219 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
15220 the local copy of a generic unit for a formal package, and the generic
15221 is a child unit, install private part of ancestors before compiling
15222 private part of spec.
15224 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
15225 use scope entities rather than tree structures, to handle properly
15226 parent units that are instances rewritten as bodies for inlining
15229 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
15230 Remove_Parents): Handle properly a parent unit that is an
15231 instantiation, when the unit has been rewritten as a body for inlining
15234 * par.adb (Goto_List): Global variable to collect goto statements in a
15235 given unit, for use in detecting natural loops.
15237 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
15238 use in detecting natural loops.
15240 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
15241 backwards goto's, and rewrite as a infinite loop, to improve locality
15244 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
15245 subcomponent that includes an indexed reference, to prevent the
15246 generation of copies that would miscompile the desired assignment
15248 (Build_Task_Image_Decls): Add a numeric suffix to
15249 generated name for string variable, to avoid spurious conflicts with
15250 the name of the type of a single protected object.
15252 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
15253 loop with an explicit exit statement, to avoid generating an
15254 out-of-range value with 'Succ leading to spurious constraint_errors
15255 when compiling with -gnatVo.
15257 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
15259 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
15260 might not be analyzed yet, even if its Etype is already set (case of an
15261 unchecked conversion built using Unchecked_Convert_To, for example).
15262 If the prefix has already been analyzed, this will be a nop anyway.
15264 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
15265 controller type, or an assignment of a record type with controlled
15266 components, copy only user data, and leave the finalization chain
15267 pointers untouched.
15269 2004-07-15 Vincent Celier <celier@gnat.com>
15271 * make.adb (Collect_Arguments): Improve error message when attempting
15272 to compile a source not part of any project, when -x is not used.
15274 * prj.ads: (Defined_Variable_Kind): New subtype
15276 * prj-attr.adb (Register_New_Package): Two new procedures to register
15277 a package with or without its attributes.
15278 (Register_New_Attribute): Mew procedure to register a new attribute in a
15280 New attribute oriented subprograms: Attribute_Node_Id_Of,
15281 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
15282 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
15284 New package oriented subprograms: Package_Node_Id_Of,
15285 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
15287 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
15289 (Package_Node_Id): Now a private, self initialized type
15290 (Register_New_Package): New procedure to register a package with its
15292 New attribute oriented subprograms: Attribute_Node_Id_Of,
15293 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
15294 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
15296 New package oriented subprograms: Package_Node_Id_Of,
15297 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
15299 * prj-dect.adb (Parse_Attribute_Declaration,
15300 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
15302 * prj-makr.adb (Make): Parse existing project file before creating
15303 other files. Fail if there was an error during parsing.
15305 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
15306 new spec of Prj.Attr.
15308 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
15309 to new spec of Prj.Attr.
15311 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15313 * utils2.c: Fix typo in comment.
15315 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15317 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
15318 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
15320 2004-07-14 Andreas Schwab <schwab@suse.de>
15322 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
15324 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15326 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
15328 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
15331 * misc.c (gnat_types_compatible_p): New function.
15332 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
15333 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
15335 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
15336 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
15337 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
15338 (mark_visited): Don't mark dummy type.
15339 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
15340 parameter, we must remove any LJM building from GNU_NAME.
15341 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
15342 (pos_to_constructor): Use int_const_binop.
15343 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
15346 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
15347 (gnat_pushlevel): Set TREE_USE on BLOCK node.
15348 (gnat_install_builtins): Add __builtin_memset.
15350 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
15352 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
15353 for a renaming, stabilize the initialization expression if we are at a
15354 local level. At the local level, uses of the renaming may be performed
15355 by a direct dereference of the initializing expression, and we don't
15356 want possible variables there to be evaluated for every use.
15358 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
15359 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
15360 them on the way. Account for the fact that we may introduce side
15361 effects in the process.
15363 2004-07-13 Richard Henderson <rth@redhat.com>
15365 * misc.c (default_pass_by_ref): Use pass_by_reference.
15367 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
15369 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
15370 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
15372 2004-07-08 Richard Henderson <rth@redhat.com>
15374 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
15377 2004-07-06 Vincent Celier <celier@gnat.com>
15379 * vms_conv.ads: Minor reformatting.
15380 Alphabetical order for enumerated values of type Command_Type, to have
15381 the command in alphabetical order for the usage.
15383 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
15384 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
15386 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
15388 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
15389 (Add_Archive_Path): Only add the global archive if there is one.
15390 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
15391 or not any object file to put in the global archive, and don't build
15392 a global archive if there is none.
15393 (X_Switches): New table
15394 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
15395 in the X_Switches table, if any.
15396 (Initialize): Make sure the X_Switches table is empty
15397 (Scan_Arg): Record -X switches in table X_Switches
15399 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
15401 * make.adb: Minor comment fix
15403 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
15404 invoked with directory information, add the directory in front of the
15407 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
15408 invoked with directory information, add the directory in front of the
15411 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
15412 when Keep_Temporary_Files is False.
15413 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
15414 directory information, add the directory in front of the path.
15415 When not on VMS, handle new switch -dn before the command to set
15416 Keep_Temporary_Files to True.
15417 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
15420 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
15421 invoked with directory information, add the directory in front of the
15424 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
15426 * snames.ads, snames.adb (Name_Stub): New name for the distributed
15429 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
15430 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
15432 * g-socket.adb (To_Timeval): Fix incorrect conversion of
15433 Selector_Duration to Timeval for the case of 0.0.
15435 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
15436 documentation from Evolve_And_Then.
15438 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
15440 * s-taprop-tru64.adb, s-taprop-os2.adb,
15441 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
15443 2004-07-06 Robert Dewar <dewar@gnat.com>
15445 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
15446 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
15447 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
15448 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
15449 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
15450 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
15451 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
15452 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
15453 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
15454 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
15455 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
15456 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
15457 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
15458 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
15459 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
15460 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
15461 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
15462 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
15463 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
15464 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
15465 vms_data.ads: Minor reformatting,
15466 Fix bad box comment format.
15468 * gnat_rm.texi: Fix minor grammatical error
15470 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
15472 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
15473 more cases of discriminated records to be recognized as not needing a
15475 (Has_Access_Values): New function.
15477 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
15479 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
15480 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
15481 with LRM terminology).
15482 Change terminology in comments primitive type => elementary type.
15484 2004-07-06 Ed Schonberg <schonberg@gnat.com>
15487 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
15488 parameters do not impose any requirements on the presence of a body.
15490 2004-07-06 Ed Schonberg <schonberg@gnat.com>
15493 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
15494 compilation unit and is in an open scope at the point of instantiation,
15495 assume that a body may be present later.
15497 2004-07-06 Ed Schonberg <schonberg@gnat.com>
15499 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
15500 Improve error message when specified size is not supported.
15502 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
15503 is never a primitive operation.
15505 2004-07-05 Andreas Schwab <schwab@suse.de>
15507 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
15508 RECORD_OR_UNION_CHECK.
15509 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
15511 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
15513 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
15514 dependency on xgnatugn, instead build it via a submake.
15515 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
15517 2004-07-04 Richard Henderson <rth@redhat.com>
15519 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
15521 2004-07-01 Richard Henderson <rth@redhat.com>
15523 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
15524 * utils.c (max_size): Likewise.
15526 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15528 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
15529 and rest_of_type_compilation; add arg to create_*_decl.
15530 (annotate_decl_with_node): Deleted.
15531 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
15532 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
15533 (get_current_block_context, gnat_pushdecl): New declarations.
15534 (gnat_init_stmt_group): Likewise.
15535 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
15536 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
15537 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
15538 (gnat_init): Call gnat_init_stmt_group.
15539 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
15540 (gnu_pending_elaboration_list): Deleted.
15541 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
15542 (gigi): Rearrange initialization calls and move some to last above.
15543 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
15544 Delete calls to add_decl_expr; add arg to create_*_decl.
15545 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
15546 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
15547 begin_subprog_body and call it.
15548 Don't push and pop ggc context.
15549 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
15550 (add_stmt): Remove handling of DECL_EXPR from here.
15551 If not in function, mark visited.
15552 (add_decl_expr): Put global at top level.
15553 Check for cases of DECL_INITIAL we have to handle here.
15554 (process_type): Add extra arg to create_type_decl.
15555 (build_unit_elab): Rework to just gimplify.
15556 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
15557 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
15558 (get_pending_elaborations, pending_elaborations_p): Likewise.
15559 (push_pending_elaborations, pop_pending_elaborations): Likewise.
15560 (get_elaboration_location, insert_elaboration_list): Likewise.
15561 (gnat_binding_level): Renamed from ada_binding_level.
15562 (init_gnat_to_gnu): Don't clear pending_elaborations.
15563 (global_bindings_p): Treat as global if no current_binding_level.
15564 (set_current_block_context): New function.
15565 (gnat_pushdecl): Renamed from pushdecl; major rework.
15566 All callers changed.
15567 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
15568 (finish_record_type): Call call pushdecl for stub decl.
15569 (function_nesting_depth): Deleted.
15570 (begin_subprog_body): Delete obsolete code.
15571 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
15573 2004-06-28 Robert Dewar <dewar@gnat.com>
15575 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15576 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
15577 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
15578 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
15579 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
15581 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
15582 deal with problem of inefficient slices on machines with strict
15583 alignment, when the slice is a component of a composite.
15585 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
15586 machines, we need the check there as well.
15588 2004-06-28 Ed Schonberg <schonberg@gnat.com>
15590 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
15591 determine safe copying direction for overlapping slice assignments
15592 when component is controlled.
15594 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
15595 formal derived type in the actual for a formal package are visible in
15596 the enclosing instance.
15598 2004-06-28 Ed Schonberg <schonberg@gnat.com>
15601 * sem_util.adb (Trace_Components): Diagnose properly an illegal
15602 circularity involving a private type whose completion includes a
15603 self-referential component.
15604 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
15605 renaming or an instantiation from an implicit derived operation.
15607 2004-06-28 Pascal Obry <obry@gnat.com>
15609 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
15611 (Library_File_Name_For): Idem.
15613 2004-06-28 Matthew Gingell <gingell@gnat.com>
15615 * g-traceb.ads: Add explanatory note on the format of addresses
15616 expected by addr2line.
15618 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
15620 * Makefile.in: Force debugging information on s-tasdeb.adb,
15621 a-except.adb and s-assert.adb needed by the debugger.
15623 2004-06-28 Vincent Celier <celier@gnat.com>
15625 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
15629 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
15631 * prj.adb: Minor reformatting
15632 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
15634 * prj.ads: Comment updates
15636 (Project_Data): Change Flag1 to Need_To_Build_Lib.
15637 Remove Flag2: not used.
15639 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
15642 * gnat_ugn.texi: Put a "null;" declaration in one project file example
15644 * gnat_rm.texi: Document Empty declarations "null;".
15646 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
15647 front of the linker options.
15648 (Link_Foreign): Put the global archives and the libraries in front of
15649 the linker options.
15651 2004-06-28 Javier Miranda <miranda@gnat.com>
15653 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
15654 (RTU_Loaded): Code cleanup
15655 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
15656 withed predefined units.
15658 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
15659 explicitly withed predefined units.
15660 Fix typo in comment
15662 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
15663 explicitly withed predefined units.
15665 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15667 * ada-tree.def (DECL_STMT): Deleted.
15668 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
15669 (DECL_STMT_VAR): Deleted.
15670 * decl.c: add_decl_stmt now add_decl_expr.
15671 * gigi.h: Likewise.
15672 * trans.c: Likewise.
15673 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
15674 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
15675 (add_stmt): Only handle padded type here.
15676 (add_stmt_with_node): Allow gnat_node to not be present.
15677 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
15678 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
15679 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
15680 make a SAVE_EXPR for the entire fat pointer.
15681 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
15682 (create_index_type): Make a DECL_EXPR.
15683 (end_subprog_body): Don't call allocate_struct_function here but
15686 2004-06-25 Pascal Obry <obry@gnat.com>
15688 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
15689 Relocatable from Build_Dynamic_Library call.
15691 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
15692 Relocatable are now synonym.
15694 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
15696 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
15697 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
15700 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
15701 Lib_Address and Relocatable.
15702 (Default_DLL_Address): Removed.
15704 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15705 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
15706 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
15707 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
15708 (Default_DLL_Address): Removed.
15710 * mlib-tgt-mingw.adb: Ditto.
15711 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
15713 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
15714 the initial thread stack size.
15716 * a-strmap.ads: Move package L to private part as it is not used in
15717 the spec. Found while reading code.
15719 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
15721 * tracebak.c: Introduce support for a GCC infrastructure based
15722 implementation of __gnat_backtrace.
15724 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
15725 any more. Use accessors instead. This eases maintenance and relaxes
15726 some alignment constraints.
15727 (_GNAT_Exception structure): Remove the Ada specific fields
15728 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
15730 (is_handled_by, __gnat_eh_personality): Replace component references to
15731 exception structure by use of the new accessors.
15733 * init.c (__gnat_initialize): Adjust comments to match the just
15734 reverted meaning of the -static link-time option.
15736 * adaint.c (convert_addresses): Arrange not to define a stub for
15737 mips-irix any more, as we now want to rely on a real version from a
15738 recent libaddr2line.
15740 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
15741 the personality routine can use them and not have to rely on a C
15742 counterpart of the record anymore. This simplifies maintenance and
15743 relaxes the constraint of having Standard'Maximum_Alignment match
15745 Update comments, and add a section on the common header alignment issue.
15747 2004-06-25 Geert Bosch <bosch@gnat.com>
15749 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
15750 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
15752 2004-06-25 Robert Dewar <dewar@gnat.com>
15754 * gnat_rm.texi: Fix section on component clauses to indicate that the
15755 restriction on byte boundary placement still applies for bit packed
15757 Add comment on stack usage from Initialize_Scalars
15759 * gnat_ugn.texi: Add documentation for -gnatyLnnn
15761 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
15762 limiting nesting level.
15764 * usage.adb: Add line for -gnatyLnnn switch
15766 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
15767 sem_ch13.adb, exp_aggr.adb: Minor reformatting
15769 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
15770 type as well as on the subtype. This corrects a problem in freeze in
15771 setting alignments of atomic types.
15773 * sem_eval.ads: Minor comment typo fixed
15775 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
15776 level. Minor reformatting.
15778 * fname.adb (Is_Predefined_File_Name): Require a letter after the
15779 minus sign. This means that file names like a--b.adb will not be
15780 considered predefined.
15782 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
15783 record Test new flag and give diagnostic for bad component clause.
15784 (Freeze_Entity): Set alignment of array from component alignment in
15785 cases where this is safe to do.
15787 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
15790 * cstand.adb: (Create_Standard): Set alignment of String to 1
15792 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
15794 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
15795 code in the common constrained array cases.
15797 * a-storio.adb: Change implementation to avoid possible alignment
15798 problems on machines requiring strict alignment (data should be moved
15799 as type Buffer, not type Elmt).
15801 * checks.adb (Apply_Array_Size_Check): Improve these checks by
15802 killing the overflow checks which we really do not need (64-bits is
15805 2004-06-25 Vincent Celier <celier@gnat.com>
15807 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
15808 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
15809 inconditionally for the main project.
15810 (Recursive_Add_Archives.Add_Archive_Path): New procedure
15811 (Link_Executables.Check_Time_Stamps): New procedure
15812 (Link_Executables.Link_Foreign): New procedure
15813 Changes made to reduce nesting level of this package
15814 (Check): New procedure
15815 (Add_Switches): When not in quiet output, check that a switch is not
15816 the concatenation of several valid switches. If it is, issue a warning.
15817 (Build_Global_Archive): If the global archive is rebuilt, linking need
15819 (Compile_Sources): Rebuilding a library archive does not imply
15820 rebuilding the global archive.
15821 (Build_Global_Archive): New procedure
15822 (Build_Library): New name for Build_Archive, now only for library
15824 (Check_Archive_Builder): New procedure
15825 (Create_Global_Archive_Dependency_File): New procedure
15826 (Gprmake): Call Build_Global_Archive before linking
15827 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
15829 (Scan_Arg): Display the Copyright notice when -v is used
15831 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
15834 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
15836 Add new GNAT LIST qualifier /FILES=
15837 Added qualifier /DIRECTORY= to GNAT METRIC
15838 Added qualifier /FILES= to GNAT METRIC
15839 Added qualifier /FILES to GNAT PRETTY
15841 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
15842 to take into account both versions of the switch.
15844 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
15845 always be the last switch to the gcc driver. Disable switch storing so
15846 that switches automatically added by the gcc driver are not put in the
15849 * prj.adb (Project_Empty): Take into account changes in components of
15852 * prj.ads (Languages_Processed): New enumaration value All_Languages.
15854 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
15855 used. Split Boolean component Ada_Sources_Present in two Boolean
15856 components Ada_Sources_Present and Other_Sources_Present.
15859 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
15860 instead of Sources_Present.
15861 (Set_Ada_Paths.Add.Recursive_Add): Ditto
15863 * prj-nmsc.adb: Minor reformatting
15864 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
15865 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
15866 Check_Ada_Naming_Scheme.
15867 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
15870 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
15872 Make sure that all cycles where there is at least one "limited with"
15874 (Parse_Single_Project): New Boolean parameter In_Limited
15876 * prj-proc.adb (Recursive_Check): When Process_Languages is
15877 All_Languages, call first Prj.Nmsc.Ada_Check, then
15878 Prj.Nmsc.Other_Languages_Check.
15880 * prj-proc.adb (Process): Use Ada_Sources_Present or
15881 Other_Sources_Present (instead of Sources_Present) depending on
15884 * lang-specs.h: Keep -g and -m switches in the same order, and as the
15887 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
15888 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
15890 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
15893 * lib.ads (Disable_Switch_Storing): New procedure.
15895 * make.adb: Modifications to reduce nesting level of this package.
15896 (Check_Standard_Library): New procedure
15897 (Gnatmake.Check_Mains): New procedure
15898 (Gnatmake.Create_Binder_Mapping_File): New procedure
15899 (Compile_Sources.Compile): Add switch -gnatez as the last option
15900 (Display): Never display -gnatez
15902 * Makefile.generic:
15903 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
15905 * gnatcmd.adb (Check_Project): New function
15906 (Process_Link): New procedure to reduce nesting depth
15907 (Check_Files): New procedure to reduce the nesting depth.
15908 For GNAT METRIC, include the inherited sources in extending projects.
15909 (GNATCmd): When GNAT LS is invoked with a project file and no files,
15910 add the list of files from the sources of the project file. If this list
15911 is too long, put it in a temp text files and use switch -files=
15912 (Delete_Temp_Config_Files): Delete the temp text file that contains
15913 a list of source for gnatpp or gnatmetric, if one has been created.
15914 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
15915 in the project file is too large, create a temporary text file that
15916 list them and pass it to the tool with "-files=<temp text file>".
15917 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
15919 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
15920 generated file is in not in Ada.
15922 * gnatls.adb: Remove all parameters And_Save that are no longer used.
15923 (Scan_Ls_Arg): Add processing for -files=
15924 (Usage): Add line for -files=
15926 * g-os_lib.adb (On_Windows): New global constant Boolean flag
15927 (Normalize_Pathname): When on Windows and the path starts with a
15928 directory separator, make sure that the resulting path will start with
15931 * clean.adb (Clean_Archive): New procedure
15932 (Clean_Project): When there is non-Ada code, delete the global archive,
15933 the archive dependency files, the object files and their dependency
15934 files, if they exist.
15935 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
15937 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
15939 * sinfo.ads: Fix typo in comment.
15941 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
15942 the TSS for remote access-to-subprogram types, since these TSS are
15943 always present once the type has been analyzed.
15944 (RAS_E_Dereference): Same.
15946 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
15947 reference raises Bad_Attribute, mark the reference as analyzed so the
15948 node (and any children resulting from rewrites that could have occurred
15949 during the analysis that ultimately failed) is not analyzed again.
15951 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
15953 * exp_dist.adb: Minor comment fix.
15955 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
15956 type is an anonymous access type, no unchecked deallocation of the
15957 allocated object can occur. If the object is controlled, attach it with
15958 a count of 1. This allows attachment to the Global_Final_List, if
15959 no other relevant list is available.
15960 (Get_Allocator_Final_List): For an anonymous access type that is
15961 the type of a discriminant or record component, the corresponding
15962 finalisation list is the one of the scope of the type.
15964 2004-06-25 Ed Schonberg <schonberg@gnat.com>
15966 * sem_ch3.adb (Replace_Type): When computing the signature of an
15967 inherited subprogram, use the first subtype if the derived type
15968 declaration has no constraint.
15970 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
15971 before applying previous optimization. Minor code cleanup.
15973 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
15974 placed at the beginning of an unpacked record without explicit
15975 alignment, a slice of it will be aligned and does not need a copy when
15978 2004-06-25 Ed Schonberg <schonberg@gnat.com>
15982 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
15983 reference is written with expressions mimicking parameters.
15985 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
15988 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
15989 STEP 2a. The constraints of a full type declaration of a derived record
15990 type are checked for conformance with those declared in the
15991 corresponding private extension declaration. The message
15992 "not conformant with previous declaration" is emitted if an error is
15995 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
15997 * g-traceb.ads: Document the need for -E binder switch in the spec.
15999 * g-trasym.ads: Document the need for -E binder switch in the spec.
16001 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
16003 * sem_prag.adb: Add handling of pragma Detect_Blocking.
16005 * snames.h, snames.ads, snames.adb: Add entry for pragma
16008 * s-rident.ads: Change reference to pragma Detect_Blocking.
16010 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
16013 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
16014 to indicate whether pragma Detect_Blocking is active.
16016 * par-prag.adb: Add entry for pragma Detect_Blocking.
16018 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
16019 of not handling WITH.
16020 Note that this replaces the previous update which was incorrect.
16022 2004-06-25 Javier Miranda <miranda@gnat.com>
16024 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
16025 use-clauses to have a clean environment.
16027 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
16028 the installation of the use-clauses to stablish a clean environment in
16029 case of compilation of a separate unit; otherwise the call to
16030 use_one_package is protected by the barrier Applicable_Use.
16032 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
16033 the installation of the use-clauses to stablish a clean environment in
16034 case of compilation of a separate unit.
16035 (End_Use_Clauses): Minor comment cleanup.
16037 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
16039 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
16041 2004-06-23 Richard Henderson <rth@redhat.com>
16043 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
16045 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16047 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
16048 now bool instead of int.
16049 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
16050 * trans.c (gnu_switch_label_stack): New function.
16051 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
16052 elaboration of renamed entity returns.
16053 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
16054 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
16055 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
16056 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
16057 DECL_SIZE_UNIT and simplify variable-sized case.
16058 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
16059 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
16060 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
16061 (build_unit_elab): Disable for now.
16062 * utils.c (mark_visited): New function.
16063 (pushdecl): Walk tree to call it for global decl.
16064 (update_pointer_to): Update all variants of pointer and ref types.
16065 Add arg to COMPONENT_REF.
16066 (convert): Likewise.
16067 Move check for converting between variants lower down.
16068 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
16069 (build_allocator): Don't force type of MODIFY_EXPR.
16070 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
16071 put_var_into_stack.
16073 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16075 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
16076 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
16077 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
16079 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
16080 all callers changed.
16081 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
16082 the way that EXIT_STMT finds the loop label.
16083 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
16084 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
16085 (add_stmt): Use annotate_with_locus insted of setting directly.
16086 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
16087 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
16088 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
16089 (build_vms_descriptor): Add extra args to ARRAY_REF.
16090 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
16091 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
16093 (build_binary_op): Don't make explicit CONVERT_EXPR.
16094 Add extra rgs to ARRAY_REF.
16096 2004-06-14 Pascal Obry <obry@gnat.com>
16098 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
16099 Windows. Fix minor typo.
16101 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
16102 which is now supported on Windows. With this implementation using the
16103 Library Project feature is no different on Windows than on UNIX.
16105 2004-06-14 Vincent Celier <celier@gnat.com>
16107 * makegpr.adb (Compile_Sources): Nothing to do when there are no
16110 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
16112 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
16113 found, show the project name and the path of the previously parsed
16116 2004-06-14 Ed Schonberg <schonberg@gnat.com>
16118 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
16119 array, avoid copying the actual before the call.
16121 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
16123 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
16124 Instead, allocate memory on worst-case alignment assumptions, and then
16125 return an aligned address within the allocated zone.
16127 2004-06-14 Robert Dewar <dewar@gnat.com>
16129 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
16130 elab entities in predefined units in No_Run_Time_Mode.
16131 (Gen_Adainit_C): Same fix
16132 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
16133 units in No_Run_Time_Mode
16134 (Gen_Elab_Calls_C): Same fix
16136 * symbols-vms-alpha.adb: Minor reformatting
16138 * g-debpoo.ads: Minor reformatting
16140 * lib.adb (In_Same_Extended_Unit): Version working on node id's
16142 * lib.ads (In_Same_Extended_Unit): Version working on node id's
16144 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
16147 * make.adb: Minor reformatting
16149 * par-ch12.adb: Minor reformatting
16151 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
16153 * prj-strt.adb: Minor reformatting
16155 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
16158 * sem_attr.adb: Minor reformatting
16160 * sem_ch7.adb: Minor reformatting
16162 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
16163 for type in the same unit as the object declaration.
16165 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
16166 static string expressions and not just string literals.
16168 (Set_Warning): Reset restriction warning flag for restriction pragma
16169 Implement pragma Profile_Warnings
16170 Implement pragma Profile (Restricted)
16171 Give obolescent messages for old restrictions and pragmas
16173 * snames.h, snames.ads, snames.adb: Add new entry for pragma
16176 * s-rident.ads: Add declarations for restrictions required by profile
16177 Restricted and profile Ravenscar.
16179 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
16181 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
16182 configuration pragmas.
16184 2004-06-11 Vincent Celier <celier@gnat.com>
16186 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
16187 gnatsym, when symbol policy is Restricted.
16189 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
16190 gnatsym, when symbol policy is Restricted.
16192 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
16193 read the symbol file.
16194 (Finalize): Fail in symbol policy Restricted if a symbol in the original
16195 symbol file is not in the object files. Do not create a new symbol file
16196 when symbol policy is Restricted.
16198 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
16201 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
16203 (Usage): Line for new switch -R
16205 * make.adb (Initialize): When the platform is not VMS, add the
16206 directory where gnatmake is invoked in the front of the path, if
16207 gnatmake is invoked with directory information. Change the Scan_Args
16208 while loop to a for loop.
16209 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
16210 if Depth is equal or greater than the proposed depth, there is nothing
16212 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
16215 * prj.ads: Add new symbol policy Restricted.
16217 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
16218 with the new parameters Check_All_Labels and Case_Location.
16220 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
16221 (Library_Symbol_File needs to be defined).
16223 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
16224 and Case_Location If Check_All_Labels is True, check that all values of
16225 the string type are used, and output warning(s) if they are not.
16227 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
16230 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
16232 * gnat_ugn.texi: Update documentation about the library directory in
16235 * makegpr.adb (Display_Command): In verbose mode, also display the
16236 value of the CPATH env var, when the compiler is gcc.
16237 (Initialize): Change the Scan_Args while loop to a for loop
16238 (Compile_Individual_Sources): Change directory to object directory
16239 before compilations.
16241 * symbols.ads: New symbol policy Restricted.
16243 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
16245 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
16246 is now taken care of internally in the Exception_Propagation package
16247 and does not require clients assistance any more.
16249 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
16250 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
16251 functions. Helpers to maintain a predicate required in the handling of
16252 occurrence transfer between tasks.
16253 This is now handled internally and does not require clients assistance
16254 for the setup/propagate separation anymore.
16255 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
16256 allocation strategy, handle the Setup_And_Not_Propagated predicate and
16259 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
16260 raise_after_setup, now that everything is handled internally within the
16261 setup/propagation engine.
16263 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
16265 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
16266 Add additional conditions for the case of an actual being a simple
16267 name or literal. Improve inlining by preventing the generation
16268 of temporaries with a short lifetime (one use).
16270 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
16274 * einfo.ads: Minor comment updates for Has_Completion and
16275 E_Constant list of flags.
16277 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
16278 and constant redeclarations now set the Has_Completion flag of their
16279 defining identifiers.
16281 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
16282 Inspect_Deferred_Constant_Completion.
16283 Used to detect private deferred constants that have not been completed
16284 either by a constant redeclaration or pragma Import. Emits error message
16285 "constant declaration requires initialization expression".
16287 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
16288 completes a deferred constant.
16290 2004-06-11 Geert Bosch <bosch@gnat.com>
16292 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
16294 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
16295 calculating exponent for scaling denormal numbers.
16296 (Leading_Part): Properly raise Constraint_Error for zero or negative
16298 (Remainder): Properly raise Constraint_Error for zero divisor.
16300 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
16302 * sem_util.adb: Minor reformatting.
16304 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
16305 dereference when accessing the entry parameter record.
16306 (Check_Array_Type): Always check for possible implicit dereference.
16307 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
16308 Abort if a pointer is still present (denoting that an implicit
16309 dereference was left in the tree by the front-end).
16311 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
16312 dereference when accessing the entry parameter record.
16313 (Check_Array_Type): Always check for possible implicit dereference.
16314 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
16315 Abort if a pointer is still present (denoting that an implicit
16316 dereference was left in the tree by the front-end).
16318 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
16320 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
16321 message, like the compiler itself does. Easier to parse the output.
16323 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
16325 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
16326 be base names, and not includes directories.
16328 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
16330 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
16331 so that dependencies are properly taken into account by make.
16333 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
16336 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
16337 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
16339 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
16341 * Makefile.in (install-gnatlib): install target-specific run-time files.
16343 * Make-lang.in: Remove obsolete targets.
16345 2004-06-11 Ed Schonberg <schonberg@gnat.com>
16347 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
16348 specification, to catch misuses of program unit names.
16350 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
16351 superfluous conversions in an instance.
16353 2004-06-11 Ed Schonberg <schonberg@gnat.com>
16357 * sem_ch12.adb (Save_References): If operator node has been folded to
16358 enumeration literal, associated_node must be discarded.
16360 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
16362 * s-stchop-vxworks.adb: Add required pragma Convention to
16363 Task_Descriptor because it is updated by a C function.
16365 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
16369 * Makefile.in: Remove target specific SO_OPT on IRIX
16371 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16373 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
16374 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
16375 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
16376 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
16377 (STMT_STMT, USE_STMT): New statement codes.
16378 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
16379 * ada-tree.h: Reflect above changes.
16380 (struct tree_loop_id): Deleted.
16381 (union lang_tree_node, struct lang_decl, struct lang_type):
16382 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
16383 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
16384 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
16385 (IS_ADA_STMT): New macro.
16386 * decl.c (annotate_decl_with_node): New function.
16387 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
16388 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
16389 Call add_stmt_with_node to do needed assignments.
16390 Add call to update setjmp buffer directly, not via EXPR_STMT.
16391 (maybe_variable): Argment GNAT_NODE deleted.
16392 * gigi.h (maybe_variable): Likewise.
16393 (make_transform, add_stmt_with_node, set_block_for_group): New.
16394 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
16395 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
16396 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
16397 (set_lineno, set_lineno_from_sloc): Likewise.
16398 (record_code_position, insert_code_for): Likewise.
16399 (gnat_poplevel): Now returns void.
16400 (end_subprog_body): Now takes argument.
16401 * misc.c (cgraph.h, tree-inline.h): New includes.
16402 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
16403 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
16404 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
16405 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
16406 (gnat_parse_file): Don't set immediate_size_expand.
16407 Call cgraph functions.
16408 (gnat_expand_expr): Remove most cases.
16409 (record_code_position, insert_code_for): Remove from here.
16410 * trans.c (toplev.h, tree-gimple.h): Now included.
16411 (discard_file_names): Deleted.
16412 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
16413 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
16414 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
16415 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
16416 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
16417 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
16418 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
16419 (set_block_for_group, add_stmt_list): Likewise.
16420 (start_stmt_group): Renamed from start_block_stmt.
16421 (end_stmt_group): Likewise, from end_block_stmt.
16422 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
16423 (gigi): Don't set discard_file_names or call set_lineno.
16424 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
16425 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
16426 Numerous changes throughout to reflect new names and complete
16427 function-at-a-time implementation.
16428 (gnat_expand_stmt): Delete or comment out all cases.
16429 (process_inlined_subprograms): Use add_stmt.
16430 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
16431 call set_lineno; also remove unneeded block handling.
16432 (process_type): Remove unneeded block handling.
16433 (build_unit_elab): Remove calls to deleted functions.
16434 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
16435 (tree-dump.h): Likewise.
16436 (struct ada_binding_level): Add field jmpbuf_decl.
16437 (gnat_define_builtin, gnat_install_builtins): New.
16438 (gnat_gimplify_function, gnat_finalize): Likewise.
16439 (gnat_poplevel): No longer return BLOCK, set it instead.
16440 Remove code dealing with nested functions.
16441 (gnat_init_decl_processing): Also set size_type_node.
16442 Call gnat_install_builtins.
16443 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
16444 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
16445 Remove special-case for "main".
16446 (end_subprog_body): Add arg and rework for tree-ssa.
16447 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
16448 Add case for BOOLEAN_TYPE.
16449 * utils2.c (rtl.h): Now include.
16450 (build_call_raise): Test Debug_Flag_NN directly.
16451 (build_call_alloc_dealloc): Don't use local stack allocation for now.
16452 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
16453 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
16455 2004-06-07 Robert Dewar <dewar@gnat.com>
16457 * a-direct.ads, einfo.ads: Minor comment updates
16459 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
16460 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16461 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
16462 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
16463 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
16465 * s-interr-sigaction.adb: Remove unreferenced variable
16466 (Attached_Interrupts). Minor reformatting.
16467 Avoid use of variable I (replace by J).
16469 * par-ch10.adb: Fix text of one error message
16471 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
16472 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
16473 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
16474 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
16475 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
16476 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
16477 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
16478 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
16479 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
16480 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
16481 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
16484 2004-06-07 Doug Rupp <rupp@gnat.com>
16486 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
16488 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
16490 * mlib-tgt-vms-ia64.adb: New file.
16492 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
16493 Add mlib-tgt-vms-ia64.adb
16494 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
16495 Move to alpha specific ifeq section.
16496 Add VMS specific versions of symbols.adb
16497 Renaming of 5q vms files.
16499 * 5qsystem.ads renamed to system-vms_64.ads.
16501 2004-06-07 Vincent Celier <celier@gnat.com>
16503 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
16504 explain that when a time of day corresponding to the non existing hour
16505 on the day switching to DST is specified, Split may return a different
16508 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
16511 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
16512 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
16514 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
16516 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
16517 the linking options.
16518 (Build_Library.Check_Libs): On VMS, if there is a dependency on
16519 g-trasym.ads, set Gtrasymobj_Needed to True.
16521 * prj-attr.adb: Add new package Metrics for gnatmetric
16523 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
16524 canonical case to take into account files with upper case characters on
16526 (Ada_Check): Load the reference symbol file name in the name buffer to
16527 check it, not the symbol file name.
16529 * snames.ads, snames.adb: Add standard name Metrics (name of project
16530 file package for gnatmetric).
16532 * vms_conv.ads: Add Metric to Comment_Type
16534 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
16536 * vms_data.ads: Add qualifiers for GNAT METRIC
16538 * makegpr.adb (Link_Executables): Take into account the switches
16539 specified in package Linker of the main project.
16541 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
16543 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
16544 the index of the last element is Units.Last, not Units.Table'Last
16545 (which is usually not a valid index within the actually allocated
16546 storage for the table).
16548 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
16549 determines whether to generate a call to a checked storage pool
16550 Dereference action.
16551 Generate such a call only for a dereference that either comes from
16552 source, or is the result of rewriting a dereference that comes from
16555 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
16557 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
16559 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
16561 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
16562 file level, elaborate the stride for inner dimensions in alignment
16565 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
16568 2004-06-07 Javier Miranda <miranda@gnat.com>
16570 * exp_ch6.adb: Correct wrong modification in previous patch
16572 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
16574 * g-trasym.ads: Corrected comment to properly reflect level of support
16577 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
16579 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
16580 includes case of a variable referenced on the left hand side of an
16581 assignment, therefore remove redundant code. Variables and prefixes of
16582 indexed or selected components are now marked as referenced on left
16583 hand side. Warnings are now properly emitted when variables or prefixes
16584 are assigned but not read.
16586 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
16587 left hand side referenced variables. Private access types do not
16588 produce the warning "variable ... is assigned but never read".
16589 Add also additional checks to left hand side referenced variables.
16590 Aliased, renamed objects and access types do not produce the warning
16591 "variable ... is assigned but never read" since other entities may read
16592 the memory location.
16594 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
16596 * Makefile.in: In the powerpc/vxworks-specific section, restore
16597 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
16600 2004-06-07 Ed Schonberg <schonberg@gnat.com>
16602 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
16603 predefined operators.
16604 Removes spurious type errors from g-trasym-vms.adb.
16606 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
16607 distinct from the operator appearing in the source, call appropriate
16608 routine to insert conversions when needed, and complete resolution of
16610 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
16611 interpretations for rewritten right operand.
16612 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
16613 the other operand is overloaded and the context is a type conversion.
16615 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16617 * ada-tree.def (BLOCK_STMT): Now has two operands.
16620 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
16622 * gigi.h: (gnat_poplevel): Now returns a tree.
16624 * trans.c (end_block_stmt): Add arg; all callers changed.
16625 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
16626 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
16627 (add_stmt): Set TREE_TYPE.
16628 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
16629 (gnat_expand_stmt, case BREAK_STMT): New case.
16631 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
16633 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
16635 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
16636 procedure Set_Stack_Size that is not needed.
16638 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
16640 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
16641 used for gnatpp input file and for the files upon which it depends
16643 2004-06-07 Ben Brosgol <brosgol@gnat.com>
16645 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
16647 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
16649 * gnatvsn.ads: Bump version numbers appropriately.
16650 Add new build type.
16652 2004-06-07 Pascal Obry <obry@gnat.com>
16654 * gnat_ugn.texi: Improve comments about imported names and link names
16655 on Windows. Add a note about the requirement to use -k gnatdll's option
16656 when working with a DLL which has stripped stdcall symbols (no @nn
16659 2004-05-27 Vincent Celier <celier@gnat.com>
16661 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
16662 COMMENTS_LAYOUT=UNTOUCHED
16664 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
16665 symbols-vms-alpha.adb
16667 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
16669 * sem.ads: Clarify documentation on checks suppression.
16671 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
16673 2004-05-27 Ed Schonberg <schonberg@gnat.com>
16675 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
16676 the case of multiple derivations.
16677 (Is_Object_Reference): For a selected component, verify that the prefix
16678 is itself an object and not a value.
16680 * sem_ch12.adb (Same_Instantiated_Constant): New name for
16681 Same_Instantiated_Entity.
16682 (Same_Instantiated_Variable): Subsidiary to
16683 Check_Formal_Package_Instance, to recognize actuals for in-out generic
16684 formals that are obtained from a previous formal package.
16685 (Instantiate_Subprogram_Body): Emit proper error when
16686 generating code and the proper body of a stub is missing.
16688 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
16689 has a universal interpretation, do the disambiguation here.
16691 * exp_ch4.adb (Expand_N_Type_Conversion,
16692 Expand_N_Unchecked_Type_Conversion): Special handling when target type
16693 is Address, to avoid typing anomalies when Address is a visible integer
16696 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
16697 to determine whether a subprogram should not be marked Pure, even when
16698 declared in a pure package.
16700 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
16702 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
16704 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
16705 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
16706 Update the documentation about the Ravenscar profile, following the
16707 definition found in AI-249.
16709 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
16710 setting the Profile (Ravenscar). This must be done in addition to
16711 setting the required restrictions.
16713 * rtsfind.ads: Add the set of operations defined in package
16716 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
16719 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
16721 lang-specs.h: Always require -c or -S and always redirect to /dev/null
16722 if -gnatc or -gnats is passed.
16724 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
16726 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
16727 a significant reference. Warnings are now properly emitted when a
16728 discriminated type is not referenced.
16730 * lib-xref.adb (Generate_Reference): A deferred constant completion,
16731 record representation clause or record type discriminant does not
16732 produce a reference to its corresponding entity. Warnings are now
16733 properly emitted when deferred constants and record types are not
16736 2004-05-27 Geert Bosch <bosch@gnat.com>
16738 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
16739 Fixes ACATS Annex G tests.
16741 2004-05-27 Robert Dewar <dewar@gnat.com>
16743 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
16746 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
16748 * s-interr.adb (Server_Task): Take into account case of early return
16749 from sigwait under e.g. linux.
16751 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
16753 * gnat_ugn.texi: Add description for the new gnatpp options:
16754 -rnb - replace the original source without creating its backup copy
16755 -c0 - do not format comments
16757 2004-05-24 Geert Bosch <bosch@gnat.com>
16759 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
16760 with 192 bits of precision, sufficient to reduce a double-extended
16761 arguments X with a maximum relative error of T'Machine_Epsilon, for X
16762 in -2.0**32 .. 2.0**32.
16763 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
16764 reduction by the processor, which only uses a 68-bit approximation of
16766 (Tan): Always reduce arguments and compute function either using
16767 the processor's fptan instruction, or by dividing sin and cos as needed.
16769 2004-05-24 Doug Rupp <rupp@gnat.com>
16771 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
16772 gcc error on 32/64 bit VMS.
16774 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
16776 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
16777 since this is what we get for stack overflows although not documented
16779 Document the issues which may require adjustments to our signal
16782 2004-05-24 Ed Schonberg <schonberg@gnat.com>
16784 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
16785 enclosing dynamic scope if the instantiation is within a generic unit.
16787 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
16789 * exp_dbug.ads: Fix typo.
16791 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
16792 Rename it to its proper name: system-linux-ia64.ads
16793 (stamp-gnatlib1): Remove extra target specific run time files when
16794 setting up the rts directory.
16796 2004-05-24 Javier Miranda <miranda@gnat.com>
16798 * einfo.ads, einfo.adb (Limited_Views): Removed.
16799 (Limited_View): New attribute that replaces the previous one. It is
16800 now a bona fide package with the limited-view list through the
16801 first_entity and first_private attributes.
16803 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
16804 limited-private-with clause.
16805 (Install_Limited_Withed_Unit): Install the private declarations of a
16806 limited-private-withed package. Update the installation of the shadow
16807 entities according to the new structure (see Build_Limited_Views)
16808 (Build_Limited_Views): Replace the previous implementation of the
16809 limited view by a package entity that references the first shadow
16810 entity plus the first shadow private entity (required for limited-
16811 private-with clause)
16812 (New_Internal_Shadow_Entity): Code cleanup.
16813 (Remove_Limited_With_Clause): Update the implementation to undo the
16814 new work carried out by Build_Limited_Views.
16815 (Build_Chain): Complete documentation.
16816 Replace Ada0Y by Ada 0Y in comments
16819 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
16820 types the level of accessibility depends on the enclosing type
16823 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
16824 entities. Complete documentation of previous change.
16826 2004-05-24 Robert Dewar <dewar@gnat.com>
16828 * namet.adb: Minor reformatting
16829 Avoid use of name I (replace by J)
16830 Minor code restructuring
16832 * sem_ch6.adb: Minor reformatting
16834 * lib-writ.adb: Do not set restriction as active if this is a
16835 Restriction_Warning case.
16837 * sem_prag.adb: Reset restriction warning flag if real pragma
16838 restriction encountered.
16840 * s-htable.adb: Minor reformatting
16841 Change rotate count to 3 in Hash (improves hash for small strings)
16843 * 5qsystem.ads: Add comments for type Address (no literals allowed).
16845 * gnat_ugn.texi: Add new section of documentation "Code Generation
16846 Control", which describes the use of -m switches.
16848 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
16850 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
16851 through the DECL_INITIAL for renamed variables.
16853 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
16855 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
16857 2004-05-19 Joel Brobecker <brobecker@gnat.com>
16859 * exp_dbug.ads: Correct comments concerning handling of overloading,
16860 since we no longer use $ anymore.
16862 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
16864 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
16865 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
16866 with illegal subunits.
16868 2004-05-19 Ed Schonberg <schonberg@gnat.com>
16870 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
16871 body with front-end inlining enabled, check whether an inline pragma
16872 appears immediately after the body and applies to it.
16874 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
16875 enabled and the pragma appears after the body of the subprogram.
16877 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16879 Part of function-at-a-time conversion
16881 * misc.c (adjust_decl_rtl): Deleted.
16882 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
16885 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
16886 (add_decl_stmt, add_stmt, block_has_vars): New functions.
16887 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
16889 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
16890 when making a decl.
16891 (gnat_to_gnu_entity): Likewise.
16892 Use add_stmt to update setjmp buffer.
16893 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
16895 No longer call adjust_decl_rtl.
16896 (DECL_INIT_BY_ASSIGN_P): New macro.
16897 (DECL_STMT_VAR): Likewise.
16899 * trans.c (gigi): Call start_block_stmt to make the outermost
16901 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
16902 Call start_block_stmt and end_block_stmt temporarily.
16903 Use gnat_expand_stmt instead of expand_expr_stmt.
16904 (add_decl_stmt): New function.
16905 (tree_transform): Call it.
16906 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
16907 (end_block_stmt): Set type and NULL_STMT.
16908 (gnat_expand_stmt): Make recursize call instead of calling
16910 (gnat_expand_stmt, case DECL_STMT): New case.
16911 (set_lineno_from_sloc): Do nothing if global.
16912 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
16913 (start_block_stmt, add_stmt, end_block_stmt): New functions.
16914 (build_block_stmt): Call them.
16915 (gnat_to_code): Don't expand NULL_STMT.
16916 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
16918 (tree_transform): Likewise.
16919 (tree_transform, case N_Null_Statement): Return NULL_STMT.
16920 (gnat_expand_stmt, case NULL_STMT): New case.
16921 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
16924 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
16927 * utils.c (create_var_decl): Do not call expand_decl or
16929 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
16930 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
16932 (struct e_stack): Add chain_next to GTY.
16933 (struct binding_level): Deleted.
16934 (struct ada_binding_level): New struct.
16935 (free_block_chain): New.
16936 (global_binding_level, clear_binding_level): Deleted.
16937 (global_bindings_p): Rework to see if no chain.
16938 (kept_level_p, set_block): Deleted.
16939 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
16940 new data structure and work directly on BLOCK node.
16941 (gnat_poplevel): Similarly.
16942 (get_decls): Look at BLOCK_VARS.
16943 (insert_block): Work directly on BLOCK node.
16944 (block_has_var): New function.
16945 (pushdecl): Rework for new binding structures.
16946 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
16948 (build_subprog_body): Likewise.
16949 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
16951 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
16953 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
16954 (DECL_STMT_VAR): Likewise.
16956 2004-05-17 Robert Dewar <dewar@gnat.com>
16958 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
16961 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
16962 of restriction synonyums by using
16963 Restrict.Process_Restriction_Synonyms.
16965 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
16967 * s-restri.ads (Tasking_Allowed): Correct missing comment
16969 * s-rident.ads: Add entries for restriction synonyms
16971 * ali.adb: Fix some problems with badly formatted ALI files that can
16972 result in infinite loops.
16974 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
16975 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
16976 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16977 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
16978 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
16979 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
16980 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
16981 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
16982 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
16983 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
16984 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
16985 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
16986 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
16987 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
16988 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
16989 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
16990 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
16991 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
16992 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
16993 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
16994 to Task_Id (minor cleanup).
16996 2004-05-17 Vincent Celier <celier@gnat.com>
16998 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
16999 directory separator.
17001 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
17002 project being extended, if Languages is not declared in extending
17005 2004-05-17 Javier Miranda <miranda@gnat.com>
17007 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
17008 limited view of a visible sibling.
17010 2004-05-14 Robert Dewar <dewar@gnat.com>
17012 * gnat_ugn.texi: Minor change to -gnatS documentation
17014 * sprint.adb: Remove some instances of Assert (False) and for this
17015 purpose replace them by output of a ??? string.
17017 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
17020 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
17021 flag processing. This was suppressing required dependencies in
17022 No_Run_Time mode and is not needed since the binder does not generate
17023 references for things in libgnat anyway.
17025 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
17028 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
17030 * gnat_ugn.texi: Document AIX-specific issue with initialization of
17033 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
17034 action for the case of an actual parameter in an init proc call.
17036 2004-05-14 Ed Schonberg <schonberg@gnat.com>
17038 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
17039 subtype, check visible entities in base type.
17041 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
17042 actions if the object is a renaming.
17044 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
17045 Check_Formal_Package_Instance, to determine more precisely when the
17046 formal and the actual denote the same entity.
17048 2004-05-14 Javier Miranda <miranda@gnat.com>
17050 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
17052 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
17053 corresponding to a private_with must be removed from visibility; it
17054 will be made visible later, just before we analyze the private part of
17056 (Check_Private_Child_Unit): Allow private_with clauses in public
17058 (Install_Siblings): Make visible the private entities of private-withed
17060 (Install_Withed_Unit): Do not install the private withed unit if we
17061 are compiling a package declaration and the Private_With_OK flag was
17062 not set by the caller. These declarations will be installed later,
17063 just before we analyze the private part of the package.
17065 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
17066 during the evaluation of the expression that initializes the object,
17067 decorate it with the expected type to avoid cascade errors.
17070 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
17071 subprogram we have to install the private_with clauses after its
17072 specification has been analyzed (as documented in AI-262.TXT).
17074 * sem_ch8.adb (Has_Private_With): New function. Determines if the
17075 current compilation unit has a private with on a given entity.
17076 (Find_Direct_Name): Detect the Beaujolais problem described in
17079 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
17080 provides the functionality of the function Is_Ancestor that was
17081 previously available in sem_ch10. It has been renamed to avoid
17084 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
17086 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17088 * utils.c (build_vms_descriptor): Use SImode pointers.
17090 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
17092 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
17094 2004-05-14 GNAT Script <nobody@gnat.com>
17096 * Make-lang.in: Makefile automatically updated
17098 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
17100 Renaming of target specific files for clarity
17102 * Makefile.in: Rename GNAT target specific files.
17104 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
17105 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
17106 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
17107 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
17108 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
17109 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
17110 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
17111 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
17112 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
17113 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
17114 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
17115 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
17116 51osinte.adb, 51osinte.ads, 51system.ads,
17117 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
17118 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
17119 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
17120 56tpopsp.adb, 57system.ads, 58system.ads,
17121 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
17122 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
17123 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
17124 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
17125 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
17126 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
17127 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
17128 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
17129 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
17130 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
17131 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
17132 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
17133 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
17134 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
17135 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
17136 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
17137 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
17138 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
17139 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
17140 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
17141 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
17142 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
17143 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
17144 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
17145 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
17146 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
17147 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
17148 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
17149 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
17150 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
17151 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
17152 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
17153 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
17154 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
17155 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
17156 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
17157 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
17158 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
17159 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
17160 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
17162 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
17163 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
17164 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
17165 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
17166 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
17167 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
17168 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
17169 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
17170 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
17171 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
17172 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
17173 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
17174 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
17175 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
17176 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
17177 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
17178 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
17179 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
17180 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
17181 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
17182 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
17183 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
17184 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
17185 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
17186 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
17187 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
17188 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
17189 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
17190 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
17191 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
17192 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
17193 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
17194 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
17195 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
17196 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
17197 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
17198 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
17199 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
17200 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
17201 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
17202 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
17203 s-osinte-vms.ads, s-osinte-vxworks.adb,
17204 s-osinte-vxworks.ads, s-osprim-mingw.adb,
17205 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
17206 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
17207 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
17208 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
17209 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
17210 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
17211 s-stchop-vxworks.adb, s-taprop-dummy.adb,
17212 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
17213 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
17214 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
17215 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
17216 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
17217 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
17218 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
17219 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
17220 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
17221 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
17222 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
17223 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
17224 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
17225 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
17226 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
17227 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
17228 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
17229 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
17230 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
17231 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
17232 system-irix-o32.ads, system-linux-x86_64.ads,
17233 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
17234 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
17235 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
17236 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
17237 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
17238 system-vxworks-mips.ads, system-vxworks-ppc.ads,
17239 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
17242 2004-05-13 Zack Weinberg <zack@codesourcery.com>
17244 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
17246 2004-05-13 Diego Novillo <dnovillo@redhat.com>
17248 Merge from tree-ssa-20020619-branch.
17250 * config-lang.in (boot_language, build_by_default): Set
17252 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
17253 (max_size): Add static chain op for call_expr.
17255 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
17258 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
17260 2004-05-11 Roger Sayle <roger@eyesopen.com>
17262 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
17265 2004-05-10 Doug Rupp <rupp@gnat.com>
17267 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
17270 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
17272 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
17274 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
17275 Fixes undefined symbols in IA64 gnatlib.
17277 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
17279 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
17280 Short_Address). This will be moved to system.auxdec.
17282 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
17284 * sem_util.adb: Replace test for presence of a node that is always
17285 present with a call to Discard_Node.
17287 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
17288 Analyze on the library unit node after generation of distribution stub
17289 constructs. The call was a no-op because Unit_Node has already been
17290 Analyzed, and the tree fragments for the distribution stubs are
17291 analyzed as they are inserted in Exp_Dist.
17292 Update comment regarding to distribution stubs to reflect that we
17293 do not generate stub in separate files anymore.
17295 * einfo.ads: Clarify the fact that a tagged private type has the
17296 E_Record_Type_With_Private Ekind.
17298 * erroutc.adb: Minor reformatting
17300 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
17301 values if line length is increased using -gnatyM (noticed during code
17304 * eval_fat.adb: Minor reformatting
17305 Put spaces around exponentiation operator
17307 2004-05-10 Ed Schonberg <schonberg@gnat.com>
17310 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
17311 has been rewritten as an explicit dereference, retrieve type of
17312 original node to check for possibly unconstrained record type.
17314 2004-05-10 Ed Schonberg <schonberg@gnat.com>
17316 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
17317 overriding, use the operation of the parent unconditionally.
17319 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
17320 operation when either operand is a literal, to avoid further
17323 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
17324 overridden by a previous explicit declaration, mark the previous entity
17327 * sem_disp.adb (Check_Dispatching_Operation): New predicate
17328 Is_Visibly_Controlled, to determine whether a declaration of a
17329 primitive control operation for a derived type overrides an inherited
17330 one. Add warning if the explicit declaration does not override.
17332 2004-05-10 Vincent Celier <celier@gnat.com>
17334 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
17335 some cases when the sources are no longer present.
17337 * make.adb (Collect_Arguments): Fail if an external source, not part
17338 of any project need to be compiled, when switch -x has not been
17341 * makeusg.adb: Document new switch -x
17343 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
17344 defaulted to False.
17346 * switch-m.adb (Scan_Make_Switches): New switch -x
17348 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
17349 gnatmake switch -x.
17351 * gnat_ugn.texi: Document new gnatmake switch -x
17353 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
17355 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
17357 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
17358 (process_attributes): Likewise.
17360 2004-05-10 Joel Brobecker <brobecker@gnat.com>
17362 * s-inmaop.ads: Fix spelling mistake in one of the comments.
17364 2004-05-10 Robert Dewar <dewar@gnat.com>
17366 * gnat_ugn.texi: Document that for config pragma files, the maximum
17367 line length is always 32767.
17369 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
17370 literals is now allowed.
17372 * gnat-style.texi: Remove statement about splitting long lines before
17373 an operator rather than after, since we do not follow this rule at all.
17374 Clarify rule (really lack of rule) for spaces around exponentiation
17376 * sem_elim.adb: Allow concatenation of string literals as well as a
17377 single string literal for pragma arguments.
17379 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
17381 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
17382 written for append case.
17384 * frontend.adb: Changes to avoid checking max line length in config
17387 * g-os_lib.ads: Minor reformatting
17389 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
17390 wrong in any case. Instead use standard value. Noticed during code
17393 * opt.ads (Max_Line_Length): New field, used to implement removal of
17394 limitation on length of lines when scanning config pragma files.
17396 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
17397 makeutl.ads, makeutl.adb: Minor reformatting
17399 * scn.adb: Do not check line length while scanning config pragma files
17400 Do not check line length while scanning out license information
17402 * scng.adb: Changes to avoid line length checks while parsing config
17405 2004-05-10 GNAT Script <nobody@gnat.com>
17407 * Make-lang.in: Makefile automatically updated
17409 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
17411 * osint.adb (Find_Program_Name): Fix handling of VMS version
17414 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
17416 * g-os_lib.ads (Invalid_Time): New constant
17418 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
17419 return OS_Time instead of time_t to match what is imported by Ada.
17420 Now return -1 if the file doesn't exist, instead of a random value
17422 2004-05-05 Robert Dewar <dewar@gnat.com>
17424 * usage.adb: Add line for -gnatR?s switch
17426 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
17428 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
17429 and for Match (Data_First, Data_last)
17431 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
17432 written when we are dealing with multi-unit files.
17434 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
17436 * Makefile.in: Remove unused targets and variables.
17438 2004-05-05 Vincent Celier <celier@gnat.com>
17440 * switch-m.adb: New gnatmake switch -eI
17442 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
17443 of new gnatmake switch -eInnn.
17445 * makegpr.adb: Take into account new parameters Index and Src_Index in
17448 * clean.adb: Implement support for multi-unit sources, including new
17451 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
17454 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
17455 (Extract_From_Q): New out parameter Index
17456 (Mark, Is_Marked): Subprograms moved to Makeutl
17457 (Switches_Of): New parameter Source_Index
17458 (Add_Switch): New parameter Index
17459 (Check): New parameter Source_Index
17460 (Collect_Arguments): New parameter Source_Index
17461 (Collect_Arguments_And_Compile): New parameter Source_Index
17462 (Compile): New parameter Source_Index
17463 Put subprograms in alphabetical order
17464 Add support for multi-source sources, including in project files.
17466 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
17467 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
17470 * makeusg.adb: New gnatmake switch -eInnn
17472 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
17475 * opt.ads (Main_Index): New variable, defaulted to 0.
17477 * osint.ads, osinte.adb (Add_File): New parameter Index
17478 (Current_Source_Index): New function
17480 * prj.adb: Take into account new components Index and Src_Index
17482 * prj.ads (String_Element): New component Index
17483 (Variable_Value): New component Index
17484 (Array_Element): New component Src_Index
17486 * prj-attr.adb: Indicate that optional index may be specified for
17487 attributes Main, Executable, Spec, Body and some of Switches.
17489 * prj-attr.ads (Attribute_Kind): New values for optional indexes
17490 (Attribute_Record): New component Optional_Index
17492 * prj-com.ads (File_Name_Data): New component Index
17494 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
17496 * prj-env.adb (Put): Output optional index
17498 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
17499 attributes Spec and Body.
17501 * prj-nmsc.adb: Process optional indexes
17503 * prj-pp.adb: Ouput "at" for optional indexes
17505 * prj-proc.adb: Take into account optional indexes
17507 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
17508 Optional_Index. For string literal,
17509 process optional index when Optional_Index is True.
17510 (Parse_Expresion): New Boolean parameter Optional_Index
17512 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
17513 (Set_Source_Index_Of): New procedure
17515 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
17518 * prj-util.ads (Executable_Of): New parameter Index
17519 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
17520 New parameter Src_Index, defaulted to 0.
17522 2004-05-05 Ed Schonberg <schonberg@gnat.com>
17525 * sem_ch3.adb (Access_Definition): If this is an access parameter
17526 whose designated type is imported through a limited_with clause, do
17527 not add the enclosing subprogram to the list of private dependents of
17530 2004-05-05 Ed Schonberg <schonberg@gnat.com>
17533 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
17534 a limited_with clause, and the other is its non-limited view.
17536 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
17538 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
17540 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
17541 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
17542 Stand.Boolean_Literals to produce references to entities
17543 Standard_False and Standard_True from compile-time computed boolean
17546 * stand.ads (Boolean_Literals): New variable, provides the entity
17547 values for False and True, for use by the expander.
17549 2004-05-05 Doug Rupp <rupp@gnat.com>
17551 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
17552 5vinmaop.adb: Unchecked convert Short_Address vice Address
17554 * adaint.c, raise.c: Caste CRTL function return value
17555 to avoid gcc error on 32/64 bit IVMS.
17557 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
17560 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
17562 * 5qsystem.ads (Address): Declare as Long_Integer
17563 (Short_Address): Declare as 32 bit subtype of Address
17564 Declare abstract address operations to avoid gratuitous ambiguities.
17566 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
17568 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
17569 instead of the old Boolean_Entry_Barriers.
17570 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
17572 2004-05-05 GNAT Script <nobody@gnat.com>
17574 * Make-lang.in: Makefile automatically updated
17576 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
17578 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
17580 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
17584 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
17585 alone. Replacing object references by literals is inappropriate in a
17586 so low level context.
17588 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
17590 * a-exexpr.adb: Add comments
17592 2004-05-03 Joel Brobecker <brobecker@gnat.com>
17594 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
17595 declare the Ancestor_Tags array in Type_Specific_Data with a small size
17596 without risking a bounds check error when accessing one of its
17598 (Type_Specific_Data): Define Ancestor_Tags as a small array.
17599 This prevents us from hitting a limitation during the debug info
17600 generation when using stabs.
17602 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
17604 This prevents us from hitting a limitation during the debug info
17605 generation when using stabs.
17607 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
17609 lang-specs.h: Remove -gnatz* from specs.
17611 2004-05-03 Vincent Celier <celier@gnat.com>
17613 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
17615 * Make-lang.in, Makefile.in: Add gprmake
17617 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
17619 * sem_aggr.adb: Fix typo in comment.
17621 2004-05-03 Robert Dewar <dewar@gnat.com>
17623 * make.adb: Minor reformatting
17625 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
17627 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
17628 so that it works when address is not a private type.
17630 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
17631 properly with rewritten unchecked conversions. This prevents
17632 order-of-elaboration issues that can otherwise arise.
17633 (Minimum_Size): Don't check size of access types under VMS
17635 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
17636 interpretations of integer literals as type System.Address.
17638 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
17639 (Is_Descendent_Of): New function
17641 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
17643 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
17644 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
17645 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
17647 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
17648 of the old Max_Entry_Queue_Depth.
17650 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
17651 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
17652 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
17654 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
17655 New entry for proper handling of Max_Entry_Queue_Depth.
17656 New entry for proper handling of No_Dynamic_Interrupts.
17658 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
17659 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
17660 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
17661 the GNAT specific restriction Max_Entry_Queue_Depth.
17662 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
17663 the GNAT specific restriction No_Dynamic_Interrupts.
17665 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
17666 instead of the old Boolean_Entry_Barriers.
17667 Use the new restriction No_Dynamic_Attachment instead of the old
17668 No_Dynamic_Interrupts.
17670 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
17671 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
17673 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
17674 of the old Max_Entry_Queue_Depth.
17676 2004-05-03 GNAT Script <nobody@gnat.com>
17678 * Make-lang.in: Makefile automatically updated
17680 2004-04-29 Ed Schonberg <schonberg@gnat.com>
17682 * checks.adb (Enable_Range_Check): If the prefix of an index component
17683 is an access to an unconstrained array, perform check unconditionally.
17685 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17687 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
17690 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
17692 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
17693 alternate stack setting. There was no support for the tasking cases
17694 and the changes eventually caused a number of side-effect failures in
17695 the non-tasking case too.
17697 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
17699 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
17702 2004-04-29 Vincent Celier <celier@gnat.com>
17704 * make.adb (Gnatmake): Increase max size of argument array for
17705 gnatbind for the potential addition of -F.
17706 If there are Stand-Alone Library projects, invoke gnatbind with -F to
17707 be sure that elaboration flags will be checked.
17709 * switch-c.adb: Correct call to Scan_Pos for -gnateI
17711 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
17713 * sem_warn.adb (Check_References): Move '<access-variable> may be
17714 null' warning out of under Warn_On_No_Value_Assigned.
17716 2004-04-29 Ed Falis <falis@gnat.com>
17718 * gnat_ugn.texi: Fixed texi error
17720 2004-04-29 Robert Dewar <dewar@gnat.com>
17722 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
17723 abstract operations if they come from predefined files.
17725 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
17728 * s-addope.adb: Correct obvious error in mod function
17730 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
17732 * Makefile.in: Add target pairs for powerpc darwin*
17735 * a-intnam-darwin.ads, s-osinte-darwin.adb,
17736 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
17738 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
17740 * Makefile.in: Add target macro definitions for s390*-linux*.
17741 * system-linux-s390.ads: New file.
17742 * system-linux-s390x.ads: New file.
17744 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
17746 * gnat_ugn.texi: Correct argument to @setfilename.
17748 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
17750 * a-exexpr.adb (Unwind_Word): New data type.
17751 (Unwind_Exception): Use it as type of Private1 and Private2.
17753 * raise.c (db_action_for): Fix debug printf.
17755 2004-04-27 Ed Schonberg <schonberg@gnat.com>
17757 * a-wtmoio.ads: Formal type must be a modular type, not a signed
17760 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17762 * decl.c (gnat_to_gnu_entity, case object): Call
17763 __builtin_update_setjmp_buf.
17765 * gigi.h (update_setjmp_buf): Deleted.
17766 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
17768 * misc.c: (update_setjmp_buf): Deleted.
17770 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
17771 around block of RTL.
17773 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
17775 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
17777 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
17778 subprogram for which no pragma All_Calls_Remote applies, store the
17779 address of the real subprogram in the underlying record type, so local
17780 dereferences do not go through the PCS.
17782 2004-04-26 Robert Dewar <dewar@gnat.com>
17784 * i-c.ads: Add some type qualifications to avoid ambiguities when
17785 compiling with s-auxdec.ads and a non-private address type.
17787 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
17789 * Makefile.rtl: Fix error in previous check-in:
17790 Add s-addope.o to non tasking object list (rather than tasking object
17793 2004-04-26 Javier Miranda <miranda@gnat.com>
17795 * sem_aggr.adb: Fix typo in comments
17796 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
17797 Required to check the null-exclusion attribute.
17799 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
17800 case of anonymous access types in record and array components. For a
17801 component definition the level is the same of the enclosing composite
17804 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
17805 that are anonymous access types the level of accessibility depends on
17806 the enclosing type declaration. In order to have this information, set
17807 the scope of the anonymous access type to the enclosing record type
17809 (Array_Type_Declaration): In case of components that are anonymous
17810 access types the level of accessibility depends on the enclosing type
17811 declaration. In order to have this information, set the scope of the
17812 anonymous access type to the enclosing array type declaration.
17814 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
17817 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
17818 renaming of anonymous access-to-constant types allowed if and only if
17819 the renamed object is access-to-constant.
17821 * sem_util.adb (Type_Access_Level): In case of anonymous access types
17822 that are component_definition or discriminants of a nonlimited type,
17823 the level is the same as that of the enclosing component type.
17825 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
17827 * sem_elim.adb: Some minor code reorganization from code reading. Fix
17828 misprint in the function name (File_Name_Match).
17830 2004-04-23 Laurent GUERBY <laurent@guerby.net>
17832 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
17835 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17837 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
17839 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
17841 * adaint.c (__gnat_try_lock): No longer requires that the parent
17842 directory be writable, the directory itself is enough.
17843 (gnat_is_absolute_path): Change profile, so that the call from
17844 GNAT.OS_Lib can be made more efficient.
17846 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
17847 from GNAT.OS_Lib can be made more efficient.
17849 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
17850 one copy of the file name. Found by code reading.
17852 2004-04-23 Vincent Celier <celier@gnat.com>
17854 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
17855 Correct documentation on gnatmake switches transmitted to the compiler
17857 * ali.ads: Minor comment fix
17859 2004-04-23 Javier Miranda <miranda@gnat.com>
17861 * sem_ch6.adb: (Confirming Types): Code cleanup
17863 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
17864 subprogram types: E_Anonymous_Access_Subprogram_Type and
17865 E_Anonymous_Access_Protected_Subprogram_Type.
17867 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
17869 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
17870 whether a pragma All_Calls_Remote applies to the subprogram on which
17872 No functional change is introduced by this revision; the new parameter
17873 will be used to allow calls to local RCI subprograms to be optimized
17874 to not use the PCS in the case where no pragma All_Calls_Remote applies,
17875 as is already done in the PolyORB implementation of the DSA.
17877 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
17878 whether a pragma All_Calls_Remote applies to the subprogram on which
17880 No functional change is introduced by this revision; the new parameter
17881 will be used to allow calls to local RCI subprograms to be optimized
17882 to not use the PCS in the case where no pragma All_Calls_Remote applies,
17883 as is already done in the PolyORB implementation of the DSA.
17885 2004-04-23 Robert Dewar <dewar@gnat.com>
17887 * Makefile.rtl: Add entry for s-addope.o in run time library list
17888 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
17889 * s-addope.ads, s-addope.adb: New files.
17891 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
17892 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
17893 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
17894 System.Address to be non-private and signed.
17896 * sem_elim.adb: Minor reformatting (fairly extensive)
17897 Some minor code reorganization from code reading
17898 Add a couple of ??? comments
17900 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17902 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
17903 (tree_transform, case N_If_Statement): Remove non-determinism.
17905 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
17907 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
17909 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
17910 Eliminate' section.
17912 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
17913 no longer used as a parameter name for Eliminate pragma).
17915 2004-04-22 Laurent GUERBY <laurent@guerby.net>
17917 PR optimization/14984
17918 PR optimization/14985
17919 * trans.c (gigi): Fix non determinism leading to bootstrap
17920 comparison failures.
17922 2004-04-21 Pascal Obry <obry@gnat.com>
17924 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
17925 passed to spawnvp() to properly handle program pathname with spaces on
17928 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
17930 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
17931 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
17932 unlocked in case of exceptions.
17934 2004-04-21 Joel Brobecker <brobecker@gnat.com>
17936 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
17937 This function does not exist anymore.
17939 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
17941 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
17943 * link.c: Move variables to the __gnat name space.
17945 * Makefile.in: list link.o explicitly when needed.
17947 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
17949 2004-04-21 Javier Miranda <miranda@gnat.com>
17951 * einfo.adb (Original_Access_Type): New subprogram
17952 (Set_Original_Access_Type): New subprogram
17953 (Write_Field21_Name): Write the name of the new field
17955 * einfo.ads (Original_Access_Type): New field present in access to
17957 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
17958 E_Anonymous_Access_Protected_Subprogram_Type.
17960 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
17963 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
17964 to anonymous access to subprogram types.
17966 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
17967 to subprogram types.
17969 * sem_ch3.adb (Access_Definition): Complete decoration of entities
17970 corresponding to anonymous access to subprogram types.
17971 (Analyze_Component_Declaration): Add new actual to the call to
17972 subprogram replace_anonymous_access_to_protected_subprogram.
17973 (Array_Type_Declaration): Add new actual to the call to subprogram
17974 replace_anonymous_access_to_protected_subprogram.
17975 (Process_Discriminants): Add new actual to the call to subprogram
17976 replace_anonymous_access_to_protected_subprogram.
17977 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
17979 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
17982 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
17983 access to subprogram types.
17985 * sem_util.adb (Has_Declarations): Addition of package_specification
17988 2004-04-21 Ed Schonberg <schonberg@gnat.com>
17990 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
17991 inlined flags to renamed entity only if in current unit.
17993 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
17995 * s-parint.ads: Add DSA implementation marker.
17997 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
17998 value of System.Partition_Interface.DSA_Implementation to determine
17999 what version of the distributed systems annex is available (no
18000 implementation, GLADE, or PolyORB).
18002 2004-04-21 Joel Brobecker <brobecker@gnat.com>
18004 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
18006 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18008 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
18009 with new type if alias sets differ.
18010 Fixes ACATS c41103b.
18012 2004-04-21 Vincent Celier <celier@gnat.com>
18014 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
18015 Add array Lang_Args for the language specific compiling argument
18018 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
18020 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
18022 * gnat_rm.texi: Update the descripton of the Eliminate pragma
18023 according to the recent changes in the format of the parameters of the
18024 pragma (replacing Homonym_Number with Source_Location).
18026 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
18028 * 5isystem.ads: Removed, unused.
18030 * gnat_rm.texi: Redo 1.13 change.
18032 2004-04-19 Robert Dewar <dewar@gnat.com>
18034 * s-stoele.ads: Clean up definition of Storage_Offset (the new
18035 definition is cleaner, avoids the kludge of explicit Standard operator
18036 references, and also is consistent with a visible System.Address with
18037 no visible operations.
18039 * s-geveop.adb: Add declarations to avoid assumption of visible
18040 operations on type System.Address (since these might not be available
18041 if Address is a non-private type for which the operations
18042 are made abstract).
18044 * sem_eval.adb: Minor reformatting
18046 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
18047 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
18048 reformatting (new function spec format).
18050 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
18051 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
18052 s-caun64.adb: Add declarations to avoid assumption of visible
18053 operations on type System.Address (since these might not be available
18054 if Address is a non-private type for which the operations are made
18057 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
18059 * exp_intr.adb: Minor comment update
18061 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
18063 * 5omastop.adb: Add declarations to avoid assumption of visible
18064 operations on type System.Address (since these might not be available
18065 if Address is a non-private type for which the operations
18066 are made abstract).
18068 2004-04-19 Vincent Celier <celier@gnat.com>
18070 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
18072 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
18075 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
18077 Call Check with Process_Languages.
18078 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
18079 with Process_Languages.
18080 (Recursive_Check): New Boolean parameter Process_Languages. Call
18081 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
18084 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
18086 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
18087 parameter Ada_Main, defaulted to True.
18088 Check for Ada specific characteristics only when Ada_Main is True.
18090 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
18092 * prj.adb: (Project_Empty): Add new Project_Data components.
18094 * prj.ads: New types and tables for non Ada languages.
18095 (Project_Data): New components Languages, Impl_Suffixes,
18096 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
18097 Include_Path, Include_Data_Set.
18099 * prj-env.ads, prj-env.adb: Minor reformatting
18101 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
18102 Put subprograms in alphabetical order
18104 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
18105 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
18108 * mlib-prj.adb: Back out modification in last version, as they are
18110 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
18112 * make.adb: (Mains): Moved to package Makeutl
18113 (Linker_Opts): Moved to package Makeutl
18114 (Is_External_Assignment): Moved to package Makeutl
18115 (Test_If_Relative_Path): Moved to package Makeutl
18116 (Gnatmake): Move sorting of linker options to function
18117 Makeutl.Linker_Options_Switches.
18119 * makeutl.ads, makeutl.adb: New files.
18121 * Makefile.in: Add makeutl.o to the object files for gnatmake
18123 * makeusg.adb: Add line for new switch -eL.
18125 * gnatls.adb (Image): New function.
18126 (Output_Unit): If in verbose mode, output the list of restrictions
18127 specified by pragmas Restrictions.
18129 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
18132 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
18133 needed, to put it in the range 1970 (included) - 2026 (excluded).
18134 (Time_Of): Do not shift Unix_Min_Year (1970).
18135 Shift the date by multiple of 56 years, if needed, to put it in the
18136 range 1970 (included) - 2026 (excluded).
18138 * adaint.h, adaint.c (__gnat_set_executable): New function.
18140 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18142 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
18143 and pop GC context.
18144 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
18145 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
18146 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
18147 (tree_transform, case N_Code_Statement): Likewise.
18148 (gnat_expand_stmt, case LABEL_STMT): Don't look at
18149 LABEL_STMT_FIRST_IN_EH.
18150 (gnat_expand_stmt, case ASM_STMT): New case.
18152 * utils2.c (build_unary_op): Properly set TREE_READONLY of
18153 UNCONSTRAINED_ARRAY_REF.
18155 * utils.c (poplevel): Temporarily push/pop GC context around inline
18156 function expansion.
18158 * decl.c (maybe_variable): Properly set TREE_READONLY of
18159 UNCONSTRAINED_ARRAY_REF.
18160 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
18162 * ada-tree.def: (ASM_STMT): New.
18164 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
18165 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
18166 ASM_STMT_INPUT): New.
18167 (ASM_STMT_CLOBBER): Likewise.
18169 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
18171 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
18172 general rcheck mechanism to raise Program_Error for E.4(18), instead
18173 of a custom raiser in System.Partition_Interface.
18174 Part of general cleanup work before PolyORB integration.
18176 * snames.ads, snames.adb: Add new runtime library entities and names
18179 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
18181 (Build_Subprogram_Id): New subprogram provided by exp_dist
18182 Code reorganisation in preparation for PolyORB integration.
18184 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
18186 (Build_Subprogram_Id): New subprogram provided by exp_dist
18188 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
18189 actual parameter types for call to dereference of an
18190 access-to-subprogram type.
18192 * rtsfind.ads: Add new runtime library entities and names for PolyORB
18195 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
18196 instead, which has the same behaviour here since we never pass it a
18199 * link.c (run_path_option, Solaris case): Use -Wl, as for other
18202 * Makefile.in: adjust object file lists for gnatlink and gnatmake
18203 to account for new dependency upon Interfaces.C.Strings + link.o
18204 For x86 FreeBSD, use 86numaux.
18206 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
18207 from Mlib.Tgt to Mlib.
18209 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
18210 target-independent.
18212 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
18213 target-specific versions of this subprogram, now implemented as a
18214 target-independent function in Mlib.
18216 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
18217 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
18218 (Linker_Library_Path_Option): Remove target-specific versions of this
18219 subprogram, now implemented as a target-independent function in Mlib.
18221 * atree.adb: (Allocate_Initialize_Node): New subprogram.
18222 Factors out node table slots allocation.
18223 (Fix_Parents): New subprogram.
18224 Encapsulate the pattern of fixing up parent pointers for syntactic
18225 children of a rewritten node.
18226 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
18227 (Rewrite): Use New_Copy when creating saved copy of original node.
18228 (Replace): Use Copy_Node to copy nodes.
18230 2004-04-19 Javier Miranda <miranda@gnat.com>
18232 * sprint.adb (Sprint_Node_Actual): Give support to the new
18233 Access_To_Subprogram node available in Access_Definition nodes. In
18234 addition, give support to the AI-231 node fields: null-exclusion,
18235 all-present, constant-present.
18237 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
18239 * sinfo.ads, sinfo.adb:
18240 New field Access_To_Subprogram_Definition in Access_Definition nodes
18242 * sem_ch6.adb (Process_Formals): Move here the code that creates and
18243 decorates internal subtype declaration corresponding to the
18244 null-excluding formal. This code was previously in Set_Actual_Subtypes.
18245 In addition, carry out some code cleanup on this code. In case of
18246 access to protected subprogram call
18247 Replace_Anonymous_Access_To_Protected_Subprogram.
18248 (Set_Actual_Subtypes): Code cleanup.
18250 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
18251 Find_Type in case of anonymous access renamings. Add warning in case of
18252 null-excluding attribute used in anonymous access renaming.
18254 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
18257 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
18259 (Access_Definition): In case of anonymous access to subprograms call
18260 the corresponding semantic routine to decorate the node.
18261 (Access_Subprogram_Declaration): Addition of some comments indicating
18262 some code that probably should be added here. Detected by comparison
18263 with the access_definition subprogram.
18264 (Analyze_Component_Declaration): In case of access to protected
18265 subprogram call Replace_Anonymous_Access_To_Protected.
18266 (Array_Type_Declaration): In case of access to protected subprogram call
18267 Replace_Anonymous_Access_To_Protected_Subprogram.
18268 (Process_Discriminants): In case of access to protected subprogram call
18269 Replace_Anonymous_Access_To_Protected_Subprogram.
18271 * par.adb (P_Access_Definition): New formal that indicates if the
18272 null-exclusion part was present.
18273 (P_Access_Type_Definition): New formal that indicates if the caller has
18274 already parsed the null-excluding part.
18276 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
18277 (P_Identifier_Declarations): Code cleanup and give support to renamings
18278 of anonymous access to subprogram types.
18279 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
18280 (P_Array_Type_Definition): Give support to AI-254.
18281 (P_Component_Items): Give support to AI-254.
18282 (P_Access_Definition): New formal that indicates if the header was
18283 already parsed by the caller.
18284 (P_Access_Type_Definition): New formal that indicates if the caller has
18285 already parsed the null-excluding part.
18287 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
18288 call to P_Access_Definition.
18290 2004-04-19 Geert Bosch <bosch@gnat.com>
18292 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
18293 the delicate semantics of floating-point to integer conversion.
18294 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
18296 * eval_fat.adb (Machine_Mantissa): Moved to spec.
18297 (Machine_Radix): New function.
18299 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
18301 (Machine_Radix): New function also for use in conversion checks.
18303 2004-04-19 Ed Schonberg <schonberg@gnat.com>
18305 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
18307 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
18308 to decorate the access-to-protected subprogram and the equivalent type.
18310 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
18311 to anonymous access to subprogram types.
18313 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
18314 constant-folding, for legality checks in contexts that require an RM
18317 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
18318 temporary but stack checking is not enabled, increment serial number
18319 to so that symbol generation is consistent with and without stack
18322 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
18323 independent on whether stack checking is enabled, caller must check
18324 the corresponding flag.
18326 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
18328 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
18329 parent if it has discriminants.
18330 (Build_Derived_Private_Type): Constructed full view does
18331 not come from source.
18332 (Process_Discriminants): Default discriminants on a tagged type are
18333 legal if this is the internal completion of a private untagged
18336 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
18337 no constraint checks, because it corresponds to an existing object.
18339 * sem_prag.adb (Process_Convention): Pragma applies
18340 only to subprograms in the same declarative part, i.e. the same unit,
18341 not the same scope.
18343 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
18344 ignore type mismatch on a numeric conversion if expression comes from
18347 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
18349 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
18350 Homonym_Number parameter, add processing for Source_Location parameter
18352 (Check_Eliminated): Remove the check for homonym numbers, add the check
18353 for source location traces.
18355 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
18356 with Arg_Source_Location corresponding to the changes in the format of
18359 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
18360 Eliminate pragma corresponding to the changes in the format of the
18361 pragma: Homonym_Number is replaced with Source_Location, two ways of
18362 distinguishing homonyms are mutially-exclusive.
18364 2004-04-19 Joel Brobecker <brobecker@gnat.com>
18366 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
18368 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
18369 No_Dollar_In_Label, no longer necessary, as it is always True.
18370 (Strip_Suffixes): Likewise.
18372 2004-04-19 Gary Dismukes <dismukes@gnat.com>
18374 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
18375 modulus for compatibility with size clause on targets with 16-bit
18378 * layout.adb (Discrimify): In the case of private types, set Vtyp to
18379 full type to fix type mismatches on calls to size functions for
18380 discriminant-dependent array components.
18382 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
18384 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
18387 2004-04-19 Pascal Obry <obry@gnat.com>
18389 * mdll-utl.adb (Locate): New version is idempotent.
18391 2004-04-17 Laurent Guerby <laurent@guerby.net>
18393 PR ada/14988 (partial)
18394 * impunit.adb: Fix typo.
18396 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
18398 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
18399 and install-rts-cert targets. Remove all gnatlib and gnattools
18400 targets and all other rts-* targets (moved to libada). Remove (now)
18401 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
18402 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
18404 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18406 * trans.c (tree_transform): Shortcut returning error_mark_node for
18407 statements in annotate_only_mode.
18408 (tree_transform, case N_Label, case N_Return_Statement,
18409 N_Goto_Statement): Make statement tree instead of generating code.
18410 (tree_transform, case N_Assignment_Statement): No longer check
18411 type_annotate_only.
18412 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
18414 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
18416 (gnat_to_gnu): Collect any RTL generated and deal with it.
18417 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
18418 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
18419 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
18421 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
18423 * ada-tree.def (EXPR_STMT): Fix typo in name.
18424 (BLOCK_STMT, IF_STMT): New nodes.
18426 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
18427 LABEL_STMT_FIRST_IN_EH): New macros.
18428 (RETURN_STMT_EXPR): Likewise.
18430 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
18431 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
18433 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
18435 * atree.ads: Correct documentation on extended nodes.
18437 * link.c: Set run_path_option for FreeBSD.
18439 2004-04-08 Vincent Celier <celier@gnat.com>
18441 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
18442 one of the ALI file, do not link with DEC lib.
18444 * par.adb Remove the last two characters ("%s" or "%b") when checking
18445 if a language defined unit may be recompiled.
18447 2004-04-08 Ed Schonberg <schonberg@gnat.com>
18449 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
18450 removal of abstract operation leaves no possible interpretation for
18453 * sem_eval.adb (Eval_Qualified_Expression): Use
18454 Set_Raises_Constraint_Error on node when needed, so that it does not
18455 get optimized away by subsequent optimizations.
18457 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
18458 operands even when they are not wrapped in a type conversion.
18460 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
18462 * sem_prag.adb (Set_Exported): Warn about making static as result of
18463 export only when the export is coming from source. This may be not
18464 be true e.g. on VMS where we expand export pragmas for exception codes
18465 together with imported or exported exceptions, and we don't want the
18466 user to be warned about something he didn't write.
18468 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
18470 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
18471 duplication between normal entities and those declared as renamings.
18472 No functional change.
18474 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
18475 inline functions returning an unconstrained result.
18477 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
18479 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
18480 conform to what other front-ends do.
18482 2004-04-08 Doug Rupp <rupp@gnat.com>
18484 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
18487 2004-04-06 Pascal Obry <obry@gnat.com>
18489 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
18491 * osint.adb (Program_Name): Do not look past a directory separator.
18493 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
18495 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
18497 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
18498 requirement for preserving a copy of the original assignment node.
18500 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
18502 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
18504 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
18507 2004-04-06 Ed Schonberg <schonberg@gnat.com>
18509 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
18510 operator calls in functional notation, and apply
18511 Universal_Interpretation to operands, not to their type.
18513 2004-04-06 Robert Dewar <dewar@gnat.com>
18515 * 5wdirval.adb: Minor reformatting
18517 2004-04-06 Ed Falis <falis@gnat.com>
18519 * gnat_rm.texi: Improve a reference to the GCC manual
18521 2004-04-05 Vincent Celier <celier@gnat.com>
18523 * adaint.h, adaint.c: Add function __gnat_named_file_length
18525 * impunit.adb: Add Ada.Directories to the list
18527 * Makefile.in: Add VMS and Windows versions of
18528 Ada.Directories.Validity package body.
18530 * Makefile.rtl: Add a-direct and a-dirval
18532 * mlib-tgt.ads: Minor comment update.
18534 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
18535 a-direct.ads, a-direct.adb: New files.
18537 2004-04-05 Vincent Celier <celier@gnat.com>
18540 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
18541 just to the compiler.
18543 2004-04-05 Robert Dewar <dewar@gnat.com>
18545 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
18546 returned string is 1.
18548 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
18550 * eval_fat.ads: Minor reformatting
18552 * g-curexc.ads: Document that lower bound of returned string values
18555 * gnatlink.adb: Add ??? comment for previous change
18556 (need to document why this is VMS specific)
18558 * s-stoele.ads: Minor reformatting
18560 * tbuild.ads: Minor reformatting throughout (new function specs)
18562 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
18565 * scng.adb: Minor reformatting
18567 2004-04-05 Geert Bosch <bosch@gnat.com>
18569 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
18570 (Leading_Part): Still perform truncation to machine number if the
18571 specified radix_digits is greater or equal to machine_mantissa.
18573 2004-04-05 Javier Miranda <miranda@gnat.com>
18575 * par-ch3.adb: Complete documentation of previous change
18576 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
18577 (aliased must appear before constant).
18579 * par-ch4.adb: Complete documentation of previous change.
18581 * par-ch6.adb: Complete documentation of previous change.
18583 * sinfo.ads: Fix typo in commment.
18585 2004-04-05 Ed Schonberg <schonberg@gnat.com>
18587 * sem_ch3.adb (Inherit_Components): If derived type is private and has
18588 stored discriminants, use its discriminants to constrain parent type,
18589 as is done for non-private derived record types.
18591 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
18592 Ada 2005 AI-310: an abstract non-dispatching operation is not a
18593 candidate interpretation in an overloaded call.
18595 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
18596 expression is Null and target type is not an access type (e.g. a
18597 non-private address type).
18599 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
18601 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
18602 statement whose right-hand side is an inlined call, save a copy of the
18603 original assignment subtree to preserve enough consistency for
18604 Analyze_Assignment to proceed.
18606 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
18607 complete assignment subtree which is now unnecessary, as the expansion
18608 of inlined call has been improved to preserve a consistent assignment
18609 tree. Note_Possible_Modification must be called only
18610 after checks have been applied, or else unnecessary checks will
18613 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
18614 of explicit dereferences that do not Come_From_Source:
18615 - be selective on cases where we must go back to the dereferenced
18616 pointer (an assignment to an implicit dereference must not be
18617 recorded as modifying the pointer);
18618 - do not rely on Original_Node being present (Analyze_Assignment
18619 calls Note_Possible_Modification on a copied tree).
18621 * sem_warn.adb (Check_References): When an unset reference to a pointer
18622 that is never assigned is encountered, prefer '<pointer> may be null'
18623 warning over '<pointer> is never assigned a value'.
18625 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
18627 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
18630 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
18632 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
18633 libexc. We currently don't reference anything in this library and
18634 linking it in triggers linker warnings we don't want to see.
18636 * init.c: Update comments.
18638 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18640 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
18641 * utils.c (create_field_decl): Likewise.
18642 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
18644 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
18646 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
18647 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
18648 Add info directory entry and category.
18650 2004-04-02 Jan Hubicka <jh@suse.cz>
18652 * utils.c: Include function.h
18653 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
18655 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
18658 * Make-lang.in: Clean up generation of documentation
18660 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
18662 * xgnatug.adb: Removed, replaced by xgnatugn.adb
18664 * xgnatugn.adb: Replaces xgnatug.adb
18666 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
18668 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
18670 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
18671 gnat_ug_wnt.texi: Removed.
18673 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
18675 * utils2.c: Update copyright notice.
18677 2004-04-01 Robert Dewar <dewar@gnat.com>
18679 * checks.adb: Minor reformatting throughout
18680 Note that prev checkin added RM reference to alignment warning
18682 2004-04-01 Ed Schonberg <schonberg@gnat.com>
18684 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
18685 non-static when building aggregate for bit-packed array.
18687 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
18688 function call that is itself the actual in a procedure call, build
18691 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
18692 a string literal, create a temporary for it, constant folding only
18693 handles scalars here.
18695 2004-04-01 Vincent Celier <celier@gnat.com>
18697 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
18698 Error_Msg_SP): New empty procedures to instantiate the Scanner.
18699 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
18701 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
18702 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
18703 and get the checksum.
18705 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
18707 Increase the Marking_Label at the end of the Multiple_Main_Loop,
18708 instead of at the beginning.
18710 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
18712 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
18715 * osint.ads (Multi_Unit_Index_Character): New Character global variable
18717 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
18720 * par.adb: Remove test on file name to detect language defined units.
18721 Add test on unit name, after parsing, to detect language defined units
18722 that are not compiled with -gnatg (except System.RPC and its children)
18724 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
18725 following units without style checking.
18727 * switch-c.adb: Change -gnatC to -gnateI
18729 * usage.adb: Document new switch -gnateInnn
18731 * scng.adb (Accumulate_Token_Checksum): New procedure
18732 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
18733 word or literal number.
18734 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
18737 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
18740 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
18741 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
18742 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
18743 5vtpopde.adb: Add missing 'constant' keywords.
18745 2004-04-01 Javier Miranda <miranda@gnat.com>
18747 * par-ch4.adb: (P_Allocator): Code cleanup
18749 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
18752 * sinfo.ads: Complete documentation of previous change
18754 2004-04-01 Pascal Obry <obry@gnat.com>
18756 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
18757 only on VMS. This special handling was done because an old GNU/ld bug
18758 on Windows which has been fixed.
18760 2004-04-01 GNAT Script <nobody@gnat.com>
18762 * Make-lang.in: Makefile automatically updated
18764 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18766 * decl.c (gnat_to_gnu_entity, make_type_from_size):
18767 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
18768 * trans.c (tree_transform, convert_with_check): Likewise.
18769 * utils.c (gnat_signed_or_unsigned_type): Likewise.
18770 (build_vms_descriptor, unchecked_convert): Likewise.
18771 * utils2.c (nonbinary_modular_operation): Likewise.
18773 2004-03-29 Javier Miranda <miranda@gnat.com>
18775 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
18776 (Install_Null_Excluding_Check): Local subprogram that determines whether
18777 an access node requires a runtime access check and if so inserts the
18778 appropriate run-time check.
18779 (Apply_Access_Check): Call Install_Null_Excluding check if required
18780 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
18782 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
18784 * einfo.ads: Fix typo in comment
18786 * exp_ch3.adb (Build_Assignment): Generate conversion to the
18787 null-excluding type to force the corresponding run-time check.
18788 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
18789 type to force the corresponding run-time check.
18791 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
18792 the null-excluding type to force the corresponding run-time check.
18794 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
18795 case of access types unless they have the null-excluding attribute.
18797 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
18800 * exp_util.ads: Fix typo in comment
18802 * par.adb (P_Null_Exclusion): New subprogram
18803 (P_Subtype_Indication): New formal that indicates if the null-excluding
18804 part has been scanned-out and it was present
18806 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
18808 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
18809 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
18810 type to force the corresponding run-time check
18811 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
18813 (Resolve_Array_Aggregate): Carry out some static checks
18814 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
18816 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
18817 attribute must be set only if specified by means of the null-excluding
18818 part. In addition, we must also propagate the access-constant attribute
18820 (Access_Subprogram_Declaration, Access_Type_Declaration,
18821 Analyze_Component_Declaration, Analyze_Object_Declaration,
18822 Array_Type_Declaration, Process_Discriminants,
18823 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
18824 and carry out some static checks.
18825 (Build_Derived_Access_Type): Set the null-excluding attribute
18826 (Derived_Type_Declaration, Process_Subtype): Carry out some static
18829 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
18831 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
18833 * sem_ch6.adb (Process_Formals): Carry out some static checks.
18834 (Set_Actual_Subtypes): Generate null-excluding subtype if the
18835 null-excluding part was present; it is not required to be done here in
18836 case of anonymous access types.
18837 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
18840 * sem_res.adb (Resolve_Actuals): Carry out some static check
18841 (Resolve_Null): Allow null in anonymous access
18843 * sinfo.adb: New subprogram Null_Exclusion_Present
18844 All_Present and Constant_Present available on access_definition nodes
18846 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
18847 object_declaration, derived_type_definition, component_definition,
18848 discriminant_specification, access_to_object_definition,
18849 access_function_definition, allocator, access_procedure_definition,
18850 access_definition, parameter_specification, All_Present and
18851 Constant_Present flags available on access_definition nodes.
18853 2004-03-29 Robert Dewar <dewar@gnat.com>
18855 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
18856 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
18857 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
18858 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
18859 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
18860 sem_prag.adb: Updates to handle multiple units/file
18862 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
18864 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
18865 sem_util.adb: Minor reformatting
18867 * sem_ch12.adb: Add comment for previous change
18869 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
18871 * osint.adb (Executable_Prefix): Set Exec_Name to the current
18872 executable name when not initialized. Otherwise, use its current value.
18874 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
18875 initialize it to another executable name than the current one. This
18876 allows to configure paths for an executable name (gnatmake) different
18877 from the current one (gnatdist).
18879 2004-03-29 Ed Schonberg <schonberg@gnat.com>
18881 * exp_ch6.adb (Expand_Call): A call to a function declared in the
18882 current unit cannot be inlined if it appears in the body of a withed
18883 unit, to avoid order of elaboration problems in gigi.
18885 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
18886 information for protected (wrapper) operation as well, to simplify gdb
18889 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
18890 protected body, indicate that the entity for the generated spec comes
18891 from source, to ensure that references are properly generated for it.
18892 (Build_Body_To_Inline): Do not inline a function that returns a
18895 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
18896 apply convention to homonyms that are declared explicitly.
18898 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
18899 that renames an equality operator and the operands are overloaded,
18900 resolve them with the declared formal types, before rewriting as an
18903 2004-03-29 GNAT Script <nobody@gnat.com>
18905 * Make-lang.in: Makefile automatically updated
18907 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
18909 * memtrack.adb: Log realloc calls, which are treated as free followed
18912 2004-03-25 Vincent Celier <celier@gnat.com>
18914 * prj-makr.adb (Process_Directories): Detect when a file contains
18915 several units. Do not include such files in the config pragmas or
18916 in the naming scheme.
18918 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
18919 Resolve links only when not in Trusted_Mode.
18920 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
18921 Do not resolve links for the display names.
18923 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
18924 resolve links when computing the display names.
18926 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
18928 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
18929 attribute reference does not denote a subtype, it can be any
18930 expression that has a classwide type, potentially after an implicit
18931 dereference. In particular, the prefix can be a view conversion for
18932 a classwide type (for which Is_Object_Reference holds), but it can
18933 also be a value conversion for an access-to-classwide type. In the
18934 latter case, there is an implicit dereference, and the original node
18935 for the prefix does not verify Is_Object_Reference.
18937 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
18938 conversion of a discriminant-dependent component of a mutable object
18941 2004-03-25 Ed Schonberg <schonberg@gnat.com>
18943 * freeze.adb (Freeze_Entity): When an inherited subprogram is
18944 inherited, has convention C, and has unconstrained array parameters,
18945 place the corresponding warning on the derived type declaration rather
18946 than the original subprogram.
18948 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
18949 indication on renaming declaration, if formal has a box and actual
18952 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
18953 determine whether to generate an implicit or explicit reference to
18954 the renamed entity.
18956 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
18957 subprogram renaming comes from a defaulted formal subprogram in an
18960 2004-03-25 Gary Dismukes <dismukes@gnat.com>
18962 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
18963 value expressions to ensure that calls within a component definition
18964 will be checked (since those are evaluated during the record type's
18967 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
18969 * s-tpobop.adb: Code clean up:
18970 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
18972 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
18974 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
18976 * Makefile.in: Clean up in the ravenscar run time.
18978 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18980 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
18981 of No_Strict_Aliasing to build_pointer_type_for_mode.
18982 * utils.c (update_pointer_to): Walk pointer and ref chains.
18984 2004-03-22 Cyrille Comar <comar@act-europe.fr>
18986 * ali.ads: Fix Comment about Dynamic_Elab.
18988 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
18989 Has_RACW, Is_Generic, etc.)
18990 (Output_Object, Gnatls): Take into account ALI files not attached to
18993 2004-03-22 Vincent Celier <celier@gnat.com>
18995 * gprep.adb: Change all String_Access to Name_Id
18996 (Is_ASCII_Letter): new function
18997 (Double_File_Name_Buffer): New procedure
18998 (Preprocess_Infile_Name): New procedure
18999 (Process_Files): New procedure
19000 (Gnatprep): Check if output and input are existing directories.
19001 Call Process_Files to do the real job.
19003 2004-03-22 Robert Dewar <dewar@gnat.com>
19005 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
19006 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
19008 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
19010 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
19011 case when the source contains only comments.
19013 2004-03-22 Ed Schonberg <schonberg@gnat.com>
19015 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
19016 declaration for a child subprogram body that acts as a spec, indicate
19017 that the entity in the declaration needs debugging information.
19019 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
19020 full view if the subtype is created for a constrained record component;
19021 gigi has enough information to construct the record, and there is no
19022 place in the tree for the declaration.
19024 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
19025 serial number for the dummy body that is built for analysis, to avoid
19026 inconsistencies in the generation of internal names when compiling
19029 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
19031 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
19034 2004-03-22 GNAT Script <nobody@gnat.com>
19036 * Make-lang.in: Makefile automatically updated
19038 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19040 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
19041 * trans.c (tree_transform, emit_index_check): Likewise.
19042 * utils.c (build_template): Likewise.
19043 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
19044 (maybe_unconstrained_array, unchecked_convert): Likewise.
19045 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
19046 (build_unary_op): Likewise.
19047 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
19048 (fill_vms_descriptor): Likewise.
19049 (build_call_alloc_dealloc): Likewise.
19051 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
19053 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
19056 * gnat_ug.texi: Add info directory category and entry.
19057 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19058 gnat_ug_wnt.texi: Regenerate.
19060 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
19062 * ada-tree.h: Update copyright notice.
19063 Minor reformatting.
19065 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
19067 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
19068 as regular exception objects and not as mere integers representing the
19069 condition code. The latter approach required some dynamics to mask off
19070 severity bits, which did not fit well into the GCC table based model.
19071 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
19072 exception data objects. We don't it and it would conflict with the other
19073 external symbol we have to generate for such exceptions.
19075 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
19076 the special code for VMS exceptions, since these are now represented
19077 as regular exceptions objects.
19079 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19081 * decl.c (debug_no_type_hash): Remove.
19082 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
19083 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
19085 2004-03-19 Laurent Guerby <laurent@guerby.net>
19087 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
19088 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
19090 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19092 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
19093 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
19094 (TYPE_RM_SIZE_INT): Directly use type.values.
19095 (TREE_LOOP_ID): Clean up check.
19096 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
19097 TYPE_VALUES, not TYPE_FIELDS.
19098 * trans.c (convert_with_check): Delay access of bounds of basetype
19099 until sure is numeric.
19101 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
19103 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
19106 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
19107 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
19108 Specific.Set instead of direct call to e.g pthread_setspecific.
19110 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
19112 * adaint.c: Update comments.
19114 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
19115 GNATLIB_SHARED for FreeBSD.
19117 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
19119 * init.c [VxWorks]: Do not fix the stack size for the environment task.
19120 When needed (stack checking) the stack size is retrieved
19121 from the VxWorks kernel.
19123 * Makefile.in: Flag -nostdinc is required when building the run time
19124 for avoiding looking for files in the base compiler.
19125 Add the VxWorks specific version of the package body for
19126 System.Stack_checking.Operations (5zstchop.adb).
19128 * Make-lang.in: Add the object file for
19129 System.Stack_Checking.Operations.
19131 * Makefile.rtl: Add object file for the package
19132 System.Stack_Checking.Operations.
19134 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
19136 * s-stache.ads, s-stache.adb: Move the operations related to stack
19137 checking from this package to package System.Stack_Checking.Operations.
19138 This way, stack checking operations are only linked in the final
19139 executable when using the -fstack-check flag.
19141 2004-03-18 Doug Rupp <rupp@gnat.com>
19143 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
19146 * 5qsystem.ads, 5xcrtl.ads: New files.
19148 2004-03-18 Vincent Celier <celier@gnat.com>
19150 * prj.adb (Reset): Reset hash table Files_Htable
19152 * prj-env.adb (Source_Paths, Object_Paths): New tables.
19153 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
19154 the procedures Add_To_Path_File.
19155 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
19156 making sure that each directory is present only once and, for object
19157 dirs, when a directory already present is added, the duplicate is
19158 removed and the directory is always put as the last in the table.
19159 Write the path files at the end of these accumulations.
19161 * prj-nmsc.adb (Record_Source): Add source file name in hash table
19162 Files_Htable for all sources.
19164 * prj-proc.adb (Process): Remove restrictions between not directly
19165 related extending projects.
19167 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
19169 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
19170 (Find_Sources): Minor speed optimization.
19172 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
19173 parameter Trusted_Mode.
19175 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
19177 * scn.adb (Determine_License): Take into account a degenerated case
19178 when the source contains only comments.
19180 2004-03-18 Ed Schonberg <schonberg@gnat.com>
19182 * sem_warn.adb (Check_References): For a warning on a selected
19183 component that does not come from source, locate an uninitialized
19184 component of the record type to produce a more precise error message.
19186 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
19188 * 3zsoccon.ads: Fix multicast options.
19190 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
19193 2004-03-15 Robert Dewar <dewar@gnat.com>
19195 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
19196 pragma used for a private type.
19198 * lib-xref.adb (Generate_Reference): Do not generate warning if
19199 reference is in a different unit from the pragma Unreferenced.
19201 * 5vtpopde.adb: Minor reformatting
19202 Fix casing of To_Task_ID
19204 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
19205 flag if we have an unchecked conversion to an access type in the same
19208 2004-03-15 Geert Bosch <bosch@gnat.com>
19210 * a-ngcoty.adb (Modulus): In alternate formula for large real or
19211 imaginary parts, use Double precision throughout.
19213 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
19214 we want to be able to compile run-time with -gnata for testing, but
19215 this may also be instantiated in user code that is compiled with -gnata.
19217 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
19219 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
19220 codes. Having a separate type for this is useful to enforce consistency
19221 throughout the various run-time units.
19222 (Exception_Data): Use Exception_Code for Import_Code.
19224 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
19225 Natural and Integer in various places.
19226 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
19227 with the severity bits masked off.
19228 (Register_VMS_Exception): Handle the additional exception data pointer
19231 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
19232 component, now reflected by an exported accessor.
19233 (is_handled_by): New routine to compute whether the propagated
19234 occurrence matches some handler choice specification. Extracted out of
19235 get_action_description_for, and expanded to take care of the VMS
19237 (get_action_description_for): Use is_handled_by instead of an explicit
19238 complex condition to decide if the current choice at hand catches the
19239 propagated occurrence.
19241 * raise.h (Exception_Code): New type for C.
19243 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
19244 System.Standard_Library.Exception_Code, to allow references from the
19245 pragma import/export expander.
19247 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
19248 New accessors to allow easy access to GNAT exception data
19250 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
19251 redundant Handled_By_Others component, helper for the personality
19252 routine which will now be able to call the appropriate exception data
19255 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
19256 component of Standard_Exception_Type to be the closest possible to
19257 Exception_Code in System.Standard_Library, that we cannot get at this
19258 point. Expand a ??? comment to notify that this type node should
19259 probably be rewritten later on.
19261 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
19262 registration call to include a pointer to the exception object in the
19265 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
19266 instead of int and explicit bitmasks.
19268 2004-03-15 Vincent Celier <celier@gnat.com>
19270 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
19271 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
19273 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
19274 longer needed now that it is in the spec of
19275 System.Tasking.Task_Attributes.
19277 * adaint.h, adaint.c: (__gnat_create_output_file): New function
19279 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
19281 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
19283 * make.adb (Gnatmake): Do not check the executable suffix; it is being
19284 taken care of in Scan_Make_Arg.
19285 (Scan_Make_Arg): Add the executable suffix only if the argument
19286 following -o, in canonical case, does not end with the executable
19287 suffix. When in verbose mode and executable file name does not end
19288 with executable suffix, output the executable name, in canonical case.
19290 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
19291 to avoid warnings when instantiating Ada.Task_Attributes.
19294 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
19295 in the correct order.
19297 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
19298 redirect standard output and error to a file for the invocation of the
19299 compiler, then read the file.
19301 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
19302 directory, instead of the Value.
19303 (Find_Source_Dirs): Remove useless code & comments.
19305 2004-03-15 Ed Schonberg <schonberg@gnat.com>
19307 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
19308 tagged type is inherited, and the parent operation is not frozen yet,
19309 force generation of a freeze node for the inherited operation, so the
19310 corresponding dispatch entry is properly initialized.
19311 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
19312 when looking for user-defined equality operation.
19314 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
19315 boolean when locating primitive equality of tagged component.
19317 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
19318 bit-aligned field and the right-hand side a string literal, introduce
19319 a temporary before expanding assignment into a loop.
19321 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
19322 priority in full, to ensure that any expanded subepxressions of it are
19323 elaborated in the scope of the init_proc.
19325 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
19326 after object declaration, skipping over code that may have been
19327 generated for validity checks.
19329 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
19330 discriminants, ignore the known discriminants of its full view, if
19331 any, to check legality.
19333 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
19334 component if type has unknown discriminants.
19335 (Analyze_Private_Extension_Declaration): Discriminant constraint is
19336 null if type has unknown discriminants.
19338 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
19339 for end label when present.
19341 * s-fileio.adb (Open): When called with a C_Stream, use given name for
19342 temporary file, rather than an empty string.
19344 2004-03-15 Ed Falis <falis@gnat.com>
19346 * s-thread.adb: Removed, no longer used.
19348 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19350 * decl.c (target.h): Now include.
19351 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
19352 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
19353 (validate_size): For POINTER_TYPE, get smallest size permitted on
19356 * fe.h: Sort Einfo decls and add Set_Mechanism.
19358 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
19359 (ada/decl.o): Depends on target.h.
19361 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
19362 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
19364 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
19366 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
19368 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
19369 Insert_Dereference_Action when rewriting an implicit dereference into
19370 an explicit one, this will be taken care of during expansion of the
19371 explicit dereference.
19372 (Expand_N_Slice): Same. Always do the rewriting, even for the case
19373 of non-packed slices, since the dereference action generated by
19374 expansion of the explicit dereference is needed in any case.
19375 (Expand_N_Selected_Component): When rewriting an implicit dereference,
19376 analyze and resolve the rewritten explicit dereference so it is seen
19378 (Insert_Dereference_Action): This procedure is now called only for the
19379 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
19380 dereferences that do not come from source (including explicit
19381 dereferences resulting from rewriting implicit ones), but do not
19382 recursively insert a check for the dereference nodes contained within
19384 (Insert_Dereference_Action): Clarify and correct comment.
19386 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
19389 Move language detection to the top level.
19390 * config-lang.in: Build by default.
19392 2004-03-05 Robert Dewar <dewar@gnat.com>
19394 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
19396 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
19397 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
19398 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
19399 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
19400 unchecked conversion to spec to avoid warnings.
19402 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
19405 * 7stpopsp.adb: Correct casing in To_Task_ID call
19407 * a-strsea.ads, a-strsea.adb: Minor reformatting
19409 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
19411 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
19412 Adjust Max_Msg_Length to be clearly large enough.
19414 * fe.h: Define In_Same_Source_Unit
19416 * osint.adb: Add pragma Warnings Off to suppress warnings
19417 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
19420 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
19422 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
19424 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
19426 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
19428 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
19430 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
19431 node. We now do generate them for gcc back end.
19433 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
19436 * sinput-c.adb: Fix bad name in header.
19437 Add pragma Warnings Off to suppress aliasing warning.
19439 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
19441 * snames.h, snames.ads, snames.adb: Add entry for pragma
19442 No_Strict_Aliasing.
19444 2004-03-05 Vincent Celier <celier@gnat.com>
19446 * prj-com.ads: Add hash table Files_Htable to check when a file name
19447 is already a source of another project.
19449 * prj-nmsc.adb (Record_Source): Before recording a new source, check
19450 if its file name is not already a source of another project. Report an
19453 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
19454 source file name, call gnatpp with all the sources of the main project.
19456 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
19459 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
19460 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
19461 /RUNTIME_SYSTEM=, converted to --RTS=
19462 /NOTABS, converted to -notabs
19464 2004-03-05 Pascal Obry <obry@gnat.com>
19466 * make.adb: Minor reformatting.
19468 2004-03-05 Ed Schonberg <schonberg@gnat.com>
19470 Part of implemention of AI-262.
19471 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
19473 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
19476 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
19477 when component type is a partially constrained class-wide subtype.
19478 (Constrain_Discriminated_Type): If parent type has unknown
19479 discriminants, a constraint is illegal, even if full view has
19481 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
19482 with unknown discriminants whose full view is a discriminated record.
19484 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
19485 flag, to handle properly derivations of tagged types with unknown
19487 (Analyze_Package_Spec, Analyze_Package_Body): Install
19488 Private_With_Clauses before analyzing private part or body.
19490 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
19491 Has_Discriminants can be true for a given type (documentation).
19493 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
19495 * s-restri.ads: Fix license (GPL->GMGPL).
19497 * s-tassta.adb: Minor reformatting.
19499 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
19500 by calls to Exit_One_ATC_Level, since additional clean up is performed
19503 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
19504 by calls to Exit_One_ATC_Level, since additional clean up is performed
19507 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19509 * trans.c: Reflect GCC changes to fix bootstrap problem.
19510 Add warning for suspicious aliasing unchecked conversion.
19512 2004-03-05 GNAT Script <nobody@gnat.com>
19514 * Make-lang.in: Makefile automatically updated
19516 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
19518 * ali.adb (Read_Instantiation_Instance): Do not modify the
19519 current_file_num when reading information about instantiations, since
19520 this corrupts files in later references.
19522 2004-03-02 Vincent Celier <celier@gnat.com>
19524 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
19525 before checking if it is read-only.
19527 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
19528 of SRC_DIRS and eliminate duplicates.
19530 * gprcmd.adb: Replace command "path" with command "path_sep" to return
19531 the path separator.
19532 (Usage): Document path_sep
19534 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
19535 C++ compiler. No need for a script.
19536 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
19537 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
19540 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
19541 where there are Ada sources.
19542 (Set_Ada_Paths): Only add to the include path the source dirs of project
19544 (Add_To_Path): Add the Display_Values of the directories, not their
19547 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
19550 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
19552 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
19553 Value is canonicalized.
19554 (Language_Independent_Check): Do not copy Value to Display_Value when
19555 canonicalizing Value.
19557 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
19558 path to find limited with cycles.
19559 (Parse_Single_Project): Use canonical cased path to find the end of a
19562 2004-03-02 Ed Schonberg <schonberg@gnat.com>
19564 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
19565 and not a child unit.
19567 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
19568 appear in a with_clause.
19570 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
19571 only happen in type_annotate mode, do not try to elaborate it.
19573 * exp_util.adb (Force_Evaluation): If expression is a selected
19574 component on the left of an assignment, use a renaming rather than a
19575 temporary to remove side effects.
19577 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
19578 inlined instance body, which is analyzed before the end of the
19581 2004-03-02 Robert Dewar <dewar@gnat.com>
19583 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
19584 sem_ch4.adb: Use new feature for substitution of keywords in VMS
19586 * errout.ads, errout.adb: Implement new circuit for substitution of
19589 * sem_case.adb (Analyze_Choices): Place message properly when case is
19590 a subtype reference rather than an explicit range.
19592 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
19594 2004-03-02 Doug Rupp <rupp@gnat.com>
19596 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
19598 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
19600 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
19602 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19604 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
19607 2004-02-25 Robert Dewar <dewar@gnat.com>
19609 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
19610 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
19611 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
19612 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
19613 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
19614 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
19615 the defining instance of the type to avoid aliasing problems.
19616 Fix copyright header. Fix bad comments in package header.
19618 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
19620 2004-02-25 Ed Schonberg <schonberg@gnat.com>
19622 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
19623 rewritten as references when aliased through an address clause.
19625 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
19626 whether call can be interpreted as an indirect call to the result of a
19627 parameterless function call returning an access subprogram.
19629 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
19632 * exp_ch7.adb (Make_Clean): Remove generation of calls to
19633 Unlock[_Entries], since this is now done by Service_Entries directly.
19635 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
19637 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
19638 Requeue_Call for better code readability. Change spec and update calls:
19639 PO_Service_Entries now unlock the PO on exit.
19640 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
19641 PO_Service_Entries.
19643 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
19645 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
19647 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
19649 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
19650 protected subprogram call and analyzing the result of such expanding
19651 in case when the called protected subprogram is eliminated.
19653 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
19656 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
19658 * Makefile.in: Clean ups.
19660 2004-02-23 Ed Schonberg <schonberg@gnat.com>
19662 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
19663 protected operations if original subprogram is flagged as eliminated.
19664 (Expand_N_Subprogram_Body): For a protected operation, create
19665 discriminals for next operation before checking whether the operation
19668 * exp_ch9.adb (Expand_N_Protected_Body,
19669 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
19670 for internal protected operations if the original subprogram is
19673 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
19674 declared in a single protected object.
19676 2004-02-23 Vincent Celier <celier@gnat.com>
19678 * prj-attr.adb: Make attribute Builder'Executable an associative array,
19679 case insensitive if file names are case insensitive, instead of a
19680 standard associative array.
19682 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
19683 them as case insensitive on platforms where the file names are case
19686 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
19687 project file has already been parsed that canonical path are compared.
19689 2004-02-23 Robert Dewar <dewar@gnat.com>
19691 * sinput-c.ads: Correct bad unit title in header
19693 * freeze.adb: Minor reformatting
19695 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19697 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
19698 nonaddressable COMPONENT_REF that is removing padding that we are
19699 taking the address of, take the address of the padded record instead
19700 if item is variable size.
19702 2004-02-20 Robert Dewar <dewar@gnat.com>
19704 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
19706 2004-02-20 Ed Schonberg <schonberg@gnat.com>
19708 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
19709 itype references for the constrained designated type of a component
19710 whose base type is already frozen.
19712 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
19714 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
19715 avoid GCC warnings.
19717 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
19719 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
19720 identifier for a phantom package that rewrites the formal package
19721 declaration with a box. The Add semantic decorations for the defining
19722 identifier from the original node (that represents the formal package).
19724 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
19726 * Make-lang.in (ada/stamp-sdefault): Use the top level
19729 2004-02-19 Richard Henderson <rth@redhat.com>
19731 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
19733 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
19735 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
19736 Scan_ALI can be used for multiple ALI files without reinitializing
19739 2004-02-18 Robert Dewar <dewar@gnat.com>
19741 * debug.adb: Minor reformatting.
19743 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19745 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
19746 to zero if there is an address clause.
19748 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
19750 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
19752 2004-02-18 Gary Dismukes <dismukes@gnat.com>
19754 * layout.adb (Layout_Component_List): Revise generation of call to
19755 discriminant-checking function to pass selections of all of the type's
19756 discriminants rather than just the variant-controlling discriminant.
19758 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
19760 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
19761 fail in the current setup and triggers spurious system error messages.
19762 Pretend it occurred and failed instead.
19764 2004-02-18 Vincent Celier <celier@gnat.com>
19766 * bld.adb: Mark FLDFLAGS as saved
19767 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
19768 it is not the root project. Put each directory to be
19769 extended between double quotes to prevent it to be expanded on Windows.
19770 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
19771 the project file. Set them back to their initial values if they have not
19772 been set in the project file.
19774 * gprcmd.adb: (Gprdebug, Debug): New global variables
19775 (Display_Command): New procedure
19776 (Usage): Document new command "linkopts"
19777 Call Display_Command when env var GPRDEBUG has the value "TRUE"
19778 Implement new command "linkopts"
19779 Remove quotes that may be around arguments for "extend"
19780 Always call Normalize_Pathname with arguments formatted for the platform
19782 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
19783 Change @echo to @$(display) in target clean to be able to clean silently
19785 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
19787 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
19790 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
19791 = Extending_All when current project is an extending all project.
19793 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
19794 set to True only for LINK command, after Unix switch -o.
19795 (Process_Arguments): Set Output_File_Expected to True for LINK command
19796 after Unix switch -o. When Output_File_Expected is True, never add an
19797 extension to a file name.
19799 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
19800 option file name, only to the --for-linker= switch.
19801 (Option_File_Name): If option file name do not end with ".opt", append
19804 2004-02-18 GNAT Script <nobody@gnat.com>
19806 * Make-lang.in: Makefile automatically updated
19808 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
19810 * Make-lang.in (stamp-sdefault): Do not depend on
19813 2004-02-12 Zack Weinberg <zack@codesourcery.com>
19815 * config-lang.in: Disable Ada by default until probe logic for
19816 a bootstrap Ada compiler can be moved to the top level configure
19819 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
19821 * decl.c (components_to_record): Don't claim that the internal fields
19822 we make to hold the variant parts are semantically addressable, because
19825 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
19826 adjust the comment describing the modular type form when we can use it.
19827 (Install_PAT): Account for the Esiz renaming.
19829 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
19830 sc_onstack context indication before raising the exception to which
19831 the signal is mapped. Allows better handling of later signals possibly
19832 triggered by the resumed user code if the exception is handled.
19834 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
19836 * 5zinit.adb: Removed, no longer used.
19838 2004-02-12 Robert Dewar <dewar@gnat.com>
19840 * ali.adb: Remove separating space between parameters on R line. Makes
19841 format consistent with format used by the binder for Set_Globals call.
19843 * atree.ads, atree.adb: Minor reformatting (new function header format)
19845 * bindgen.adb: Add Run-Time Globals documentation section containing
19846 detailed documentation of the globals passed from the binder file to
19849 * gnatls.adb: Minor reformatting
19851 * init.c (__gnat_set_globals): Add note pointing to documentation in
19854 * lib-writ.ads, lib-writ.adb: Remove separating space between
19855 parameters on R line.
19856 Makes format consistent with format used by the binder for Set_Globals
19859 * osint.ads: Add 2004 to copyright notice
19862 * snames.ads: Correct capitalization of FIFO_Within_Priorities
19863 Noticed during code reading, documentation issue only
19865 * usage.adb: Remove junk line for obsolete C switch
19866 Noticed during code reading
19868 2004-02-12 Vincent Celier <celier@gnat.com>
19870 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
19871 extend for each directory, so that multiple /** directories are
19872 extended individually.
19873 (Recursive_Process): Set the default for LANGUAGES to ada
19875 * gprcmd.adb: Define new command "ignore", to do nothing.
19876 Implement new comment "path".
19878 * Makefile.generic: Suppress output when SILENT is set
19879 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
19880 used, so that the correct compiler is invoked.
19881 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
19882 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
19884 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
19886 * Makefile.in: Clean ups and remove obsolete targets.
19888 2004-02-12 Ed Schonberg <schonberg@gnat.com>
19890 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
19891 predicate declared in exp_util.
19893 * exp_util.adb: Add comments.
19895 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
19896 visibility before compiling context of the subunit.
19898 * sem_res.adb (Check_Parameterless_Call): If the context expects a
19899 value but the name is a procedure, do not attempt to analyze as a call,
19900 in order to obtain more telling diagnostics.
19902 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
19903 'Access on parameterless function calls.
19904 (Normalize_Actuals): For a parameterless function call with missing
19905 actuals, defer diagnostic until resolution of enclosing call.
19907 * sem_util.adb (Wrong_Type): If the context type is an access to
19908 subprogram and the expression is a procedure name, suggest a missing
19911 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
19912 Nathanael Nerode <neroden@gcc.gnu.org>
19914 PR ada/6637, PR ada/5911
19915 Merge with libada-branch:
19916 * config-lang.in: Build libada only when ada is built.
19918 2004-02-09 Ed Schonberg <schonberg@gnat.com>
19920 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
19921 for a tagged type, verify that both formals have the same type.
19923 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
19924 temporary when the formal is an in-parameter and the actual a possibly
19927 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
19928 when expansion is disabled, to ensure proper name capture with
19929 overloaded literals. Condition can be of any boolean type, resolve
19932 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
19933 renaming is for a formal subprogram with a default operator name, and
19934 there is a usable operator that is visible at the point of
19937 2004-02-09 Robert Dewar <dewar@gnat.com>
19939 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
19940 rewrite to ignore errors in ali files, intended to allow tools downward
19941 compatibility with new versions of ali files.
19943 * ali.ads: Add new parameter Ignore_Errors
19945 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
19946 duplicating the error message giving the file with restrictions.
19948 * debug.adb: Add debug flag I for gnatbind
19950 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
19951 operators for the case where the operator is a defining operator.
19953 * exp_ch3.adb: Minor reformatting (new function spec format).
19955 * exp_ch4.adb: Add comment for previous change, and make minor
19956 adjustment to loop to always check for improper loop termination.
19957 Minor reformatting throughout (new function spec format).
19959 * gnatbind.adb: Implement -di debug flag for gnatbind
19961 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
19963 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
19965 * lib-load.adb: Fix bad assertion.
19966 Found by testing and code reading.
19967 Minor reformatting.
19969 * lib-load.ads: Minor reformatting.
19971 * lib-writ.adb: There is only one R line now.
19973 * lib-writ.ads: Add documentation on making downward compatible changes
19974 to ali files so old tools work with new ali files.
19975 There is only one R line now.
19976 Add documentation on format incompatibilities (with special GPS note)
19978 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
19980 * par-load.adb: Minor reformatting
19982 * sem_ch8.adb: Fix to error message from last update
19983 Minor reformatting and restructuring of code from last update
19985 * par-prag.adb, snames.adb, snames.ads, snames.h,
19986 sem_prag.adb: Implement pragma Profile.
19988 * stylesw.adb: Implement -gnatyN switch to turn off all style check
19991 * usage.adb: Add line for -gnatyN switch
19993 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
19995 2004-02-09 Albert Lee <lee@gnat.com>
19997 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
19999 2004-02-09 Ed Schonberg <schonberg@gnat.com>
20001 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
20004 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
20005 is nested in an instance that is not frozen yet, to avoid
20006 order-of-elaboration problems in gigi.
20008 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
20009 body the attribute is legal.
20011 2004-02-09 Robert Dewar <dewar@gnat.com>
20013 * s-rident.ads: Minor comment correction
20015 * targparm.adb: Remove dependence on uintp completely. There was
20016 always a bug in Make in that it called Targparm before initializing
20017 the Uint package. The old code appeared to get away with this, but
20018 the new code did not! This caused an assertion error in gnatmake.
20020 * targparm.ads: Fix bad comment, restriction pragmas with parameters
20021 are indeed fully supported.
20023 2004-02-06 Alan Modra <amodra@bigpond.net.au>
20025 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
20027 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
20029 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
20030 with targetm.calls.promote_prototypes.
20032 2004-02-04 Robert Dewar <dewar@gnat.com>
20034 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
20035 ali.ads, gprcmd.adb: Minor reformatting
20037 * bindgen.adb: Output restrictions string for new style restrictions
20040 * impunit.adb: Add s-rident.ads (System.Rident) and
20041 s-restri (System.Restrictions)
20043 * lib-writ.adb: Fix bug in writing restrictions string (last few
20046 * s-restri.ads, s-restri.adb: Change name Restrictions to
20047 Run_Time_Restrictions to avoid conflict with package name.
20048 Add circuit to read and acquire run time restrictions.
20050 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
20052 * restrict.ads, restrict.adb: Use the new restriction
20053 No_Task_Attributes_Package instead of the old No_Task_Attributes.
20055 * sem_prag.adb: No_Task_Attributes is a synonym of
20056 No_Task_Attributes_Package.
20058 * snames.ads, snames.adb: New entry for proper handling of
20059 No_Task_Attributes.
20061 * s-rident.ads: Adding restriction No_Task_Attributes_Package
20062 (AI-00249) that supersedes the GNAT specific restriction
20063 No_Task_Attributes.
20065 2004-02-04 Ed Schonberg <schonberg@gnat.com>
20068 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
20069 body, an identifier may be wrapped in an unchecked conversion.
20071 2004-02-04 Vincent Celier <celier@gnat.com>
20073 * lib-writ.ads: Comment update for the W lines
20075 * bld.adb: (Expression): An empty string list is static
20077 * fname-uf.adb: Minor comment update
20079 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
20081 * gnatbind.adb: Initialize Cumulative_Restrictions with the
20082 restrictions on the target.
20084 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
20086 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
20089 2004-02-02 Arnaud Charlet <charlet@gnat.com>
20091 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
20093 2004-02-02 Vincent Celier <celier@gnat.com>
20095 * gprcmd.adb (Check_Args): If condition is false, print the invoked
20096 comment before the usage.
20097 Gprcmd: Fail when command is not recognized.
20098 (Usage): Document command "prefix"
20100 * g-md5.adb (Digest): Process last block.
20101 (Update): Do not process last block. Store remaining characters and
20104 * g-md5.ads (Update): Document that several call to update are
20105 equivalent to one call with the concatenated string.
20106 (Context): Add fields to allow new Update behaviour.
20108 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
20109 defaulted to False.
20110 When May_Fail is True and no existing file can be found, return No_File.
20112 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
20115 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
20116 spec file name instead on the W line.
20118 2004-02-02 Robert Dewar <dewar@gnat.com>
20120 * ali.adb: Read and acquire info from new format restrictions lines
20122 * bcheck.adb: Add circuits for checking restrictions with parameters
20124 * bindgen.adb: Output dummy restrictions data
20125 To be changed later
20127 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
20128 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
20129 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
20130 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
20131 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
20133 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
20134 the warning message on access to possibly uninitialized variable S)
20135 Minor changes for new restrictions handling.
20137 * gnatbind.adb: Minor reformatting
20138 Minor changes for new restrictions handling
20139 Move circuit for -r processing here from bcheck (cleaner)
20141 * gnatcmd.adb, gnatlink.adb: Minor reformatting
20143 * lib-writ.adb: Output new format restrictions lines
20145 * lib-writ.ads: Document new R format lines for new restrictions
20148 * s-restri.ads/adb: New files
20150 * Makefile.rtl: Add entry for s-restri.ads/adb
20152 * par-ch3.adb: Fix bad error messages starting with upper case letter
20155 * restrict.adb: Major rewrite throughout for new restrictions handling
20156 Major point is to handle restrictions with parameters
20158 * restrict.ads: Major changes in interface to handle restrictions with
20159 parameters. Also generally simplifies setting of restrictions.
20161 * snames.ads/adb: New entry for proper handling of No_Requeue
20163 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
20164 restriction counting.
20165 Other minor changes for new restrictions handling
20167 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
20168 Restriction_Warnings now allows full parameter notation
20169 Major rewrite of Restrictions for new restrictions handling
20171 2004-02-02 Javier Miranda <miranda@gnat.com>
20173 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
20174 syntax rule for object renaming declarations.
20175 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
20176 component definitions.
20178 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
20180 (Array_Type_Declaration): Give support to access components. In addition
20181 it was also modified to reflect the name of the object in anonymous
20182 array types. The old code did not take into account that it is possible
20183 to have an unconstrained anonymous array with an initial value.
20184 (Check_Or_Process_Discriminants): Allow access discriminant in
20186 (Process_Discriminants): Allow access discriminant in non-limited types
20187 Initialize the new Access_Definition field in N_Object_Renaming_Decl
20188 node. Change Ada0Y to Ada 0Y in comments
20190 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
20191 equality operators.
20192 Change Ada0Y to Ada 0Y in comments
20194 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
20195 renamings Change Ada0Y to Ada 0Y in comments
20197 * sem_type.adb (Find_Unique_Type): Give support to the equality
20198 operators for universal access types
20199 Change Ada0Y to Ada 0Y in comments
20201 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
20203 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
20205 (N_Object_Renaming_Declaration): Addition of Access_Definition field
20206 Change Ada0Y to Ada 0Y in comments
20208 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
20209 component definition and object renaming nodes
20210 Change Ada0Y to Ada 0Y in comments
20212 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
20214 * restrict.adb: Use the new restriction identifier
20215 No_Requeue_Statements instead of the old No_Requeue for defining the
20216 restricted profile.
20218 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
20219 No_Requeue_Statements.
20221 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
20222 that supersedes the GNAT specific restriction No_Requeue. The later is
20223 kept for backward compatibility.
20225 2004-02-02 Ed Schonberg <schonberg@gnat.com>
20227 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
20228 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
20229 pragma and fix incorrect ones.
20231 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
20232 warning if the pragma is redundant.
20234 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
20236 * 5staprop.adb: Add missing 'constant' keywords.
20238 * Makefile.in: use consistent value for SYMLIB on
20239 platforms where libaddr2line is supported.
20241 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20243 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
20246 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
20248 * init.c (__gnat_install_handler): Setup an alternate stack for signal
20249 handlers in the environment thread. This allows proper propagation of
20250 an exception on stack overflows in this thread even when the builtin
20251 ABI stack-checking scheme is used without support for a stack reserve
20254 * utils.c (create_field_decl): Augment the head comment about bitfield
20255 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
20256 here, because the former is not accurate enough at this point.
20257 Let finish_record_type decide instead.
20258 Don't make a bitfield if the field is to be addressable.
20259 Always set a size for the field if the record is packed, to ensure the
20260 checks for bitfield creation are triggered.
20261 (finish_record_type): During last pass over the fields, clear
20262 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
20263 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
20264 from DECL_BIT_FIELD.
20266 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
20268 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
20269 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
20270 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
20272 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20274 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
20276 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
20277 (ZCX_By_Default): Likewise.
20278 (Front_End_ZCX_Support): Likewise.
20280 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
20281 (Initialize_Lock): Mark Level unreferenced.
20282 (Sleep): Mark Reason unreferenced.
20283 (Timed_Sleep): Likewise.
20284 (Wakeup): Likewise.
20285 (Exit_Task): Use Result.
20286 (Check_No_Locks): Mark Self_ID unreferenced.
20288 * 5gtasinf.adb (New_Sproc): Make Attr constant.
20289 (Bound_Thread_Attributes): Make Sproc constant.
20290 (New_Bound_Thread_Attributes): Likewise.
20292 2004-01-26 Ed Schonberg <schonberg@gnat.com>
20294 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
20295 one-dimensional array an slice assignments, when component type is
20298 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
20299 component type is controlled, and control_actions are in effect, use
20300 TSS procedure rather than generating inline code.
20302 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
20303 arrays with controlled components.
20305 2004-01-26 Vincent Celier <celier@gnat.com>
20307 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
20308 command line for the non VMS case.
20310 * gnatlink.adb (Process_Binder_File): When building object file, if
20311 GNU linker is used, put all object paths between quotes, to prevent ld
20312 error when there are unusual characters (such as '!') in the paths.
20314 * Makefile.generic: When there are sources in Ada and the main is in
20315 C/C++, invoke gnatmake with -B, instead of -z.
20317 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
20318 from VMS_Conversion.
20319 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
20320 specification of argument file on the command line.
20322 2004-01-26 Bernard Banner <banner@gnat.com>
20324 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
20326 2004-01-26 Ed Schonberg <schonberg@gnat.com>
20328 * snames.adb: Update copyright notice.
20329 Add info on slice assignment for controlled arrays.
20331 2004-01-23 Robert Dewar <dewar@gnat.com>
20333 * exp_aggr.adb: Minor reformatting
20335 * exp_ch9.adb: Minor code clean up
20337 Fix bad character in comment
20340 * targparm.adb (Get_Target_Parameters): Give clean abort error on
20341 unexpected end of file, along with more detailed message.
20343 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20345 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
20348 * decl.c (copy_alias_set): New function.
20349 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
20351 2004-01-23 Doug Rupp <rupp@gnat.com>
20353 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
20354 lib$${file} in case subsequent character is not a separator.
20356 2004-01-23 Vincent Celier <celier@gnat.com>
20358 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
20359 when the GCC version is at least 3.
20361 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
20362 Remove all "Opt.", to prepare for opt split
20364 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
20365 Extends_All. Set to True when the project parsed is an extending all
20366 project. Fails for importing an extending all project only when the
20367 imported project is an extending all project.
20368 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
20369 depending on the value of Extends_All returned.
20371 * prj-proc.adb (Process): Check that no project shares its object
20372 directory with a project that extends it, directly or indirectly,
20373 including a virtual project.
20374 Check that no project extended by another project shares its object
20375 directory with another also extended project.
20377 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
20378 Kind = N_With_Clause
20380 * prj-tree.ads: Minor reformatting
20381 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
20383 2004-01-23 Ed Schonberg <schonberg@gnat.com>
20385 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
20386 applies to a type with an incomplete view, use full view in Name of
20387 clause, for consistency with uses of Get_Attribute_Definition_Clause.
20389 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
20391 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
20392 SCHED_RR, since other values are not supported by this policy.
20393 (Initialize): Move initialization of mutex attribute to package
20394 elaboration, to prevent early access to this variable.
20396 * Makefile.in: Remove mention of Makefile.adalib, unused.
20398 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
20399 1ssecsta.ads: Removed, unused.
20401 2004-01-21 Javier Miranda <miranda@gnat.com>
20403 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
20404 entity if already built in the current scope.
20406 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
20407 reminder in internal scopes. Required for nested limited aggregates.
20409 2004-01-21 Doug Rupp <rupp@gnat.com>
20411 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
20412 VMS. Replace all occurences of libgnat- and libgnarl- with
20413 libgnat$(hyphen) and libgnarl$(hyphen).
20414 Fixed shared library build problem on VMS.
20416 2004-01-21 Robert Dewar <dewar@gnat.com>
20418 * mlib-prj.adb: Minor reformatting
20420 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
20422 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
20423 'constant' keywords for declaration of pointers that are not modified.
20425 * exp_pakd.adb: Fix English in comment.
20427 2004-01-21 Ed Schonberg <schonberg@gnat.com>
20430 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
20431 copy all attributes of the parent, including the foreign language
20434 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
20437 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
20438 for 'delay until' statement.
20440 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
20442 * Make-lang.in: Replace $(docdir) with doc.
20443 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
20444 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
20445 to use consistent MAKEINFO rule.
20446 (ada.man, ada.srcman): Dummy entry.
20447 (ADA_INFOFILES): Define.
20448 (ada.info, ada.srcinfo): New rules.
20450 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
20452 * utils.c: Update copyright notice, missed in previous change.
20454 2004-01-19 Vincent Celier <celier@gnat.com>
20456 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
20457 args if Bind is True. Set First_ALI, if not already done.
20458 (Build_Library): For Stand Alone Libraries, extract from one ALI file
20459 an eventual --RTS switch, for gnatbind, and all backend switches +
20460 --RTS, for linking.
20462 2004-01-19 Robert Dewar <dewar@gnat.com>
20464 * sem_attr.adb, memtrack.adb: Minor reformatting
20466 2004-01-19 Ed Schonberg <schonberg@gnat.com>
20468 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
20469 that rename enumeration literals. This is properly done in sem_eval.
20471 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
20472 to functions that rename enumeration literals.
20474 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
20475 functions that rename enumeration literals.
20477 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
20479 * Make-lang.in (utils.o): Depend on target.h.
20480 * utils.c: Include target.h.
20481 (process_attributes): Use targetm.have_named_sections instead
20482 of ASM_OUTPUT_SECTION_NAME.
20484 2004-01-16 Andreas Jaeger <aj@suse.de>
20486 * Makefile.in: Add $(DESTDIR).
20488 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
20490 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
20491 also when not defining if a Size clause applies. That information is
20494 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
20496 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
20497 symbolic links for the shared gnat run time when needed.
20499 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
20501 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
20502 for writing, and terminate with an error message if not.
20504 2004-01-15 Ed Schonberg <schonberg@gnat.com>
20506 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
20507 warning on an access to subprogram in an instance, when the target
20508 type is declared in the same generic unit.
20509 (Eval_Attribute): If 'access is known to fail accessibility check,
20510 rewrite as a raise statement.
20512 2004-01-15 GNAT Script <nobody@gnat.com>
20514 * Make-lang.in: Makefile automatically updated
20516 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
20518 * Make-lang.in (ada.srcextra): Dummy entry.
20520 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
20522 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
20524 2004-01-13 Ed Schonberg <schonberg@gnat.com>
20526 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
20527 components that are initialized with aggregates.
20529 2004-01-13 Vincent Celier <celier@gnat.com>
20531 * gnatlink.adb (Process_Binder_File): To find directory of shared
20532 libgcc, if "gcc-lib" is not a subdirectory, look for the last
20533 subdirectory "lib" in the path of the shared libgnat or libgnarl.
20535 * make.adb (Gnatmake): If GCC version is at least 3, link with
20536 -shared-libgcc, when there is at least one shared library project.
20538 * opt.ads (GCC_Version): New integer constant.
20540 * adaint.c (get_gcc_version): New function.
20542 2004-01-13 Robert Dewar <dewar@gnat.com>
20544 * sem_dist.adb, sem_res.adb, sem_util.adb,
20545 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
20546 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
20548 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
20550 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
20551 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
20554 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
20556 * misc.c: Remove trailing spaces.
20557 Update copyright notice missed in previous change.
20560 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
20563 * Makefile.generic: Update copyright.
20564 Add license notice.
20566 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
20567 of prefix/share/make.
20569 * Makefile.prolog: Update copyright.
20570 Add license notice.
20572 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
20574 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
20575 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
20576 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
20579 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
20582 2004-01-12 Javier Miranda <miranda@gnat.com>
20584 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
20585 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
20586 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
20587 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
20588 Component_Definition node.
20590 2004-01-12 Ed Falis <falis@gnat.com>
20592 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
20594 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
20596 * link.c: Change default libgnat kind to STATIC for FreeBSD.
20598 2004-01-12 Bernard Banner <banner@gnat.com>
20600 * Makefile.in: map 86numaux to a-numaux for x86_64
20602 2004-01-12 Ed Schonberg <schonberg@gnat.com>
20604 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
20605 generated to rename a generic actual, go to the actual itself, the
20606 subtype is not a user-visible entity.
20608 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
20609 part is a private subtype, reset the visibility of its full view, if
20610 any, to be consistent.
20613 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
20614 to use a generic package G as a formal package for another generic
20617 2004-01-12 Robert Dewar <dewar@gnat.com>
20619 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
20621 * usage.adb: Remove mention of obsolete -gnatwb switch
20622 Noticed during code reading
20624 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
20626 * 1ssecsta.adb: Minor changes for -gnatwa warnings
20628 2004-01-12 GNAT Script <nobody@gnat.com>
20630 * Make-lang.in: Makefile automatically updated
20632 2004-01-09 Mark Mitchell <mark@codesourcery.com>
20634 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
20636 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20638 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
20640 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
20642 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
20643 Update comment and copyright date.
20644 * stamp-xgnatug: Delete.
20646 2004-01-05 Robert Dewar <dewar@gnat.com>
20648 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
20649 be modified by the binder generated main program if the -D switch is
20652 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
20653 imported functions (since now we expect this to be done for imported
20656 * 5vtaprop.adb: Add several ??? for sections requiring more comments
20657 Minor reformatting throughout
20659 * 5zinit.adb: Minor reformatting
20660 Add 2004 to copyright date
20661 Minor changes to avoid -gnatwa warnings
20662 Correct some instances of using OR instead of OR ELSE (noted while
20663 doing reformatting)
20665 * sprint.adb: Minor updates to avoid -gnatwa warnings
20667 * s-secsta.ads, s-secsta.adb:
20668 (SS_Get_Max): New function to obtain high water mark for ss stack
20669 Default_Secondary_Stack is not a constant since it may be modified by
20670 the binder generated main program if the -D switch is used.
20672 * switch-b.adb: New -Dnnn switch for binder
20675 Make -gnatg imply all warnings currently in -gnatwa
20677 * vms_conv.adb: Minor reformatting
20678 Add 2004 to copyright notice
20679 Add 2004 to printed copyright notice
20681 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
20682 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
20683 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
20684 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
20685 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
20686 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
20687 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
20688 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
20689 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
20690 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
20691 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
20692 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
20693 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
20694 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
20695 checks.adb, clean.adb, cstand.adb, einfo.ads,
20696 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
20697 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
20698 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
20699 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
20700 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
20701 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
20702 Minor reformatting and code clean ups.
20703 Minor changes to prevent -gnatwa warnings
20705 * ali.adb: Minor reformatting and cleanup of code
20706 Acquire new SS indication of secondary stack use from ali files
20708 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
20709 (since now we expect this to be done for imported functions)
20711 * bindgen.adb: Generate call to modify default secondary stack size if
20714 * bindusg.adb: Add line for new -D switch
20716 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
20717 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
20718 Add circuitry for both records and arrays to avoid gigi
20719 processing if the type involved has non-bit-aligned components
20721 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
20722 N_String_Literal node always references an E_String_Literal_Subtype
20723 entity. This may not be true in the future.
20724 (Possible_Bit_Aligned_Component): Move processing of
20725 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
20727 * exp_ch6.adb (Expand_Thread_Body): Pick up
20728 Default_Secondary_Stack_Size as variable so that we get value modified
20729 by possible -Dnnn binder parameter.
20731 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
20732 (Type_May_Have_Bit_Aligned_Components): New function.
20734 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
20735 (Type_May_Have_Bit_Aligned_Components): New function.
20737 * fe.h: (Set_Identifier_Casing): Fix prototype.
20738 Add declaration for Sem_Elim.Eliminate_Error_Msg.
20739 Minor reformatting.
20741 * freeze.adb (Freeze_Entity): Add RM reference to error message about
20742 importing constant atomic/volatile objects.
20743 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
20744 unless explicit Pure_Function pragma given, to avoid insidious bug of
20745 call to non-pure imported function getting eliminated.
20747 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
20748 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
20749 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
20750 Add 2004 to printed copyright notice
20752 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
20755 * Makefile.rtl: Add entry for g-sestin.o
20756 g-sestin.ads: New file.
20758 * mdll.adb: Minor changes to avoid -gnatwa warnings
20760 * mlib-tgt.adb: Minor reformatting
20762 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
20763 New switch Sec_Stack_Used (GNAT, GNATBIND)
20764 Make Default_Secondary_Stack_Size a variable instead of a constant,
20765 so that it can be modified by the new -Dnnn bind switch.
20767 * rtsfind.adb (Load_Fail): Give full error message in configurable
20768 run-time mode if all_errors mode is set. This was not done in the case
20769 of a file not found, which was an oversight.
20770 Note if secondary stack unit is used by compiler.
20772 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
20773 ineffective elaborate all pragmas on non-visible packages (this
20774 happened when a renamed subprogram was called). Now the elaborate all
20775 always goes on the package containing the renaming rather than the one
20776 containing the renamed subprogram.
20778 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
20779 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
20781 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
20782 has an Etype that references an E_String_Literal.
20783 (Eval_String_Literal): Avoid assumption that N_String_Literal node
20784 always references an E_String_Literal_Subtype entity. This may not
20785 be true in the future.
20787 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
20790 * sem_res.adb (Resolve): Specialize msg for function name used in proc
20793 2004-01-05 Ed Falis <falis@gnat.com>
20795 * g-debuti.adb: Replaced direct boolean operator with short-circuit
20798 2004-01-05 Vincent Celier <celier@gnat.com>
20800 * bld.adb: Minor comment updates
20801 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
20804 * make.adb (Gnatmake): Special process for files to compile/check when
20805 -B is specified. Fail when there are only foreign mains in attribute
20806 Main of the project file and -B is not specified. Do not skip bind/link
20807 steps when -B is specified.
20809 * makeusg.adb: Document new switch -B
20811 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
20813 * switch-m.adb: (Scan_Make_Switches): Process -B switch
20815 * vms_data.ads: Add new GNAT PRETTY qualifier
20816 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
20818 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20820 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
20823 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
20824 Set_Identifier_Casing.
20826 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
20827 has size that overflows.
20829 2004-01-05 Gary Dismukes <dismukes@gnat.com>
20831 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
20832 -gnatwa warning on static condition.
20834 2004-01-05 Doug Rupp <rupp@gnat.com>
20836 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
20838 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
20840 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
20841 all attributes, including read-only attribute.
20843 2004-01-05 Pascal Obry <obry@gnat.com>
20845 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
20846 library naming scheme.
20848 * mlib-prj.adb (Build_Library): Generate different names for the static
20849 or dynamic version of the GNAT runtime. This is needed to support the
20850 new shared library naming scheme.
20851 (Process_Binder_File): Add detection of shared library in binder file
20852 based on the new naming scheme.
20854 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
20855 scheme for the shared runtime libraries.
20858 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
20860 (install-gnatlib): Do not create symlinks for shared libraries.
20861 (gnatlib-shared-default): Idem.
20862 (gnatlib-shared-dual-win32): New target. Not used for now as the
20863 auto-import feature does not support arrays/records.
20864 (gnatlib-shared-win32): Do not create copy for the shared libraries.
20865 (gnatlib-shared-vms): Fix shared runtime libraries names.
20867 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
20868 dependent runtime shared library name.
20870 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
20872 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
20875 2004-01-05 Ed Schonberg <schonberg@gnat.com>
20877 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
20878 protected objects when allocator has a subtype indication, not a
20879 qualified expression. Note that qualified expressions may have to be
20880 checked when limited aggregates are implemented.
20882 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
20883 pure, emit warning.
20884 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
20885 subprogram is imported, remove warning.
20887 2004-01-05 Geert Bosch <bosch@gnat.com>
20889 * s-poosiz.adb: Update copyright notice.
20890 (Allocate): Use Task_Lock to protect against concurrent access.
20891 (Deallocate): Likewise.
20893 2004-01-05 Joel Brobecker <brobecker@gnat.com>
20895 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
20898 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
20900 * gnat_ug.texi: Force a CVS commit by updating copyright.
20901 * gnat_ug_vxw.texi: Regenerate.
20902 * gnat_ug_wnt.texi: Regenerate.
20903 * gnat_ug_vms.texi: Regenerate.
20904 * gnat_ug_unx.texi: Regenerate.
20906 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
20908 * trans.c: Remove uses of "register" specifier in
20909 declarations of local variables.
20911 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
20913 * stamp-xgnatug: New stamp file.
20914 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
20915 (ada/doctools/xgnatug): Add $(build_exeext).
20916 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
20917 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
20919 2003-12-17 Ed Falis <falis@gnat.com>
20921 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
20924 * a-exextr.adb: Add context clause for
20925 Ada.Exceptions.Last_Chance_Handler.
20927 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
20929 * cstand.adb (Create_Standard): Change the way how the declaration of
20930 the Duration type is created (making it the same way as it is for all
20931 the other standard types).
20933 2003-12-17 Robert Dewar <dewar@gnat.com>
20935 * s-crtl.ads: Fix header format
20936 Change Pure to Preelaborate
20938 2003-12-17 Ed Schonberg <schonberg@gnat.com>
20940 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
20941 the expression type only if it is declared in the current unit.
20943 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
20944 are universal and already analyzed, as can occur in constrained
20945 subcomponents that depend on discriminants, when one constraint is a
20948 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
20949 type Any_Fixed is legal as the argument of a conversion, if only one
20950 fixed-point type is in context.
20952 2003-12-17 GNAT Script <nobody@gnat.com>
20954 * Make-lang.in: Makefile automatically updated
20956 2003-12-15 Robert Dewar <dewar@gnat.com>
20958 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
20961 2003-12-15 Vincent Celier <celier@gnat.com>
20963 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
20964 (Gnatchop): Do not set failure status when reporting the number of
20967 2003-12-15 Doug Rupp <rupp@gnat.com>
20969 * s-ctrl.ads: New file.
20971 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
20973 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
20974 (GNATBIND_OBJS): Add ada/s-crtl.o.
20976 * Makefile.in [VMS]: Clean up ifeq rules.
20978 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
20979 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
20980 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
20981 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
20982 s-tasdeb.adb: Update copyright.
20983 Import System.CRTL.
20984 Make minor modifications to use System.CRTL declared functions instead
20985 of importing locally.
20987 2003-12-15 GNAT Script <nobody@gnat.com>
20989 * Make-lang.in: Makefile automatically updated
20991 2003-12-11 Ed Falis <falis@gnat.com>
20993 * 5zinit.adb: Clean up.
20995 * 5zintman.adb (Notify_Exception): replaced case statement with a call
20996 to __gnat_map_signal, imported from init.c to support
20997 signal -> exception mappings that depend on the vxWorks version.
21000 Created and exported __gnat_map_signal to support signal -> exception
21001 mapping that is dependent on the VxWorks version.
21002 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
21004 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
21006 * 5wosinte.ads: Link with -mthreads switch.
21008 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
21010 * init.c (__gnat_install_handler [NetBSD]): Set
21011 __gnat_handler_installed, as done on all other platforms.
21012 Remove duplicated code.
21014 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
21016 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
21018 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
21020 * sinfo.ads: Fix inconsistent example code in comment.
21022 2003-12-11 Robert Dewar <dewar@gnat.com>
21024 * a-tiinau.adb: Add a couple of comments
21026 * sem_ch3.adb: Minor reformatting
21029 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
21030 Minor reformatting throughout
21032 2003-12-11 Ed Schonberg <schonberg@gnat.com>
21034 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
21035 bounds of a loop, create a separate block in order to generate proper
21036 cleanup actions to prevent memory leaks.
21038 * sem_res.adb (Resolve_Call): After a call to
21039 Establish_Transient_Scope, the call may be rewritten and relocated, in
21040 which case no further processing is needed.
21042 * sem_util.adb: (Wrong_Type): Refine previous fix.
21043 Fixes ACATS regressions.
21047 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
21050 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
21052 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
21053 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
21056 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
21059 2003-12-08 Robert Dewar <dewar@gnat.com>
21061 * 7sintman.adb: Minor reformatting
21063 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
21064 standard linker options to get standard libraries linked. We now plan
21065 to provide dummy versions of these libraries to match the appropriate
21066 configurable run-time (e.g. if a library is not needed at all, provide
21067 a dummy empty library).
21069 * targparm.ads: Configurable_Run_Time mode no longer affects linker
21070 options (-L parameters and standard libraries). What we plan to do is
21071 to provide dummy libraries where the libraries are not required.
21073 * gnatbind.adb: Minor comment improvement
21075 2003-12-08 Javier Miranda <miranda@gnat.com>
21077 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
21078 aggregate in the parent. Otherwise constants with limited aggregates
21079 are not supported. Add new formal to pass the component type (Ctype).
21080 It is required to call the corresponding IP subprogram in case of
21081 default initialized components.
21082 (Gen_Assign): In case of default-initialized component, generate a
21083 call to the IP subprogram associated with the component.
21084 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
21085 of aggregate with default initialized components.
21086 (Has_Default_Init_Comps): Improve implementation to recursively check
21087 all the present expressions.
21089 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
21090 to indicate that the initialization call corresponds to a
21091 default-initialized component of an aggregate.
21092 In case of default initialized aggregate with tasks this parameter is
21093 used to generate a null string (this is just a workaround that must be
21094 improved later). In case of discriminants, this parameter is used to
21095 generate a selected component node that gives access to the discriminant
21098 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
21099 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
21100 allocated aggregates with default-initialized components.
21102 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
21103 the box notation is used in positional aggregates.
21105 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
21107 * lib.ads: Fix typo in comment
21109 2003-12-08 Vincent Celier <celier@gnat.com>
21111 * prj.adb (Project_Empty): New component Unkept_Comments
21112 (Scan): Remove procedure; moved to Prj.Err.
21114 * prj.ads (Project_Data): New Boolean component Unkept_Comments
21115 (Scan): Remove procedure; moved to Prj.Err.
21117 * prj-dect.adb: Manage comments for the different declarations.
21119 * prj-part.adb (With_Record): New component Node
21120 (Parse): New Boolean parameter Store_Comments, defaulted to False.
21121 Set the scanner to return ends of line and comments as tokens, if
21122 Store_Comments is True.
21123 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
21124 comments are associated with these nodes. Store the node IDs in the
21126 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
21128 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
21129 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
21130 current project. Call Tree.Restore afterwards. Set the various nodes
21131 for comment storage (Next_End, End_Of_Line, Previous_Line,
21134 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
21135 defaulted to False.
21137 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
21138 to False. When Truncated is True, truncate the string, never go to the
21140 (Write_End_Of_Line_Comment): New procedure
21141 (Print): Process comments for nodes N_With_Clause,
21142 N_Package_Declaration, N_String_Type_Declaration,
21143 N_Attribute_Declaration, N_Typed_Variable_Declaration,
21144 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
21145 Process nodes N_Comment.
21147 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
21148 without comments and there are some comments, set the flag
21149 Unkept_Comments to True.
21150 (Scan): If there are comments, set the flag Unkept_Comments to True and
21151 clear the comments.
21152 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
21153 (Next_End_Nodes: New table
21154 (Comment_Zones_Of): New function
21155 (Scan): New procedure; moved from Prj. Accumulate comments in the
21156 Comments table and set end of line comments, comments after, after end
21158 (Add_Comments): New procedure
21159 (Save, Restore, Seset_State): New procedures
21160 (There_Are_Unkept_Comments): New function
21161 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
21162 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
21164 (First_Comment_After, First_Comment_After_End): New functions
21165 (First_Comment_Before, First_Comment_Before_End): New functions
21166 (Next_Comment): New function
21167 (End_Of_Line_Comment, Follows_Empty_Line,
21168 Is_Followed_By_Empty_Line): New functions
21169 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
21170 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
21171 (Set_Next_Comment): New procedure
21172 (Default_Project_Node): Associate comment before if the node can store
21175 * scans.ads (Token_Type): New enumeration value Tok_Comment
21176 (Comment_Id): New global variable
21178 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
21179 defaulted to False.
21180 (Scan): Store position of start of comment. If comments are tokens, set
21181 Comment_Id and set Token to Tok_Comment when scanning a comment.
21182 (Set_Comment_As_Token): New procedure
21184 * sinput-p.adb: Update Copyright notice
21185 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
21186 that no longer exists.
21188 2003-12-08 Javier Miranda <miranda@gnat.com>
21190 * sem_aggr.adb: Add dependence on Exp_Tss package
21191 Correct typo in comment
21192 (Resolve_Aggregate): In case of array aggregates set the estimated
21193 type of the aggregate before calling resolve. This is needed to know
21194 the name of the corresponding IP in case of limited array aggregates.
21195 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
21196 in case of default initialized array components.
21198 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
21199 types. Required to give support to limited aggregates in generic
21202 2003-12-08 Ed Schonberg <schonberg@gnat.com>
21204 * sem_ch3.adb (Check_Initialization): For legality purposes, an
21205 inlined body functions like an instantiation.
21206 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
21207 until bounds are analyzed, to diagnose premature use of type.
21209 * sem_util.adb (Wrong_Type): Improve error message when the type of
21210 the expression is used prematurely.
21212 2003-12-08 GNAT Script <nobody@gnat.com>
21214 * Make-lang.in: Makefile automatically updated
21216 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
21218 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
21219 they are automatically generated by Make-lang.in and cause nothing but
21220 maintenance troubles.
21222 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
21224 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
21225 version of this unit).
21227 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
21229 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
21230 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
21231 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
21232 the body of System.Interrupt_Management common to several targets.
21233 Update copyright notice when appropriate.
21235 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
21238 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
21239 to ensure that the kernel fills in the interrupted context structure
21240 before calling a signal handler, which is necessary to be able to
21241 unwind past it. Update the copyright notice.
21243 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
21245 * a-elchha.ads: New file.
21247 * a-elchha.adb: New default last chance handler. Contents taken from
21248 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
21250 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
21251 is moved to a-elchha.adb to provide a target-independent default last
21254 * Makefile.rtl: Add a-elchha.o
21256 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
21258 2003-12-05 Ed Schonberg <schonberg@gnat.com>
21260 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
21261 declared in an instance, do not inline the call if the instance is not
21262 frozen yet, to prevent order of elaboration problems.
21264 * sem_prag.adb: Add comments for previous fix.
21266 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
21268 * g-table.adb: Use the right variable in Set_Item.
21269 Update copyright notice.
21271 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
21273 * Makefile.in: Remove unused rules.
21275 2003-12-05 Vincent Celier <celier@gnat.com>
21277 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
21278 -nostdlib. Not needed here after all.
21280 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
21284 * adaint.h, adaint.c, g-os_lib.ads:
21285 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
21286 on some platforms (including FreeBSD), it is a 64 bit value.
21287 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
21289 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
21291 * gnatvsn.ads (Library_Version): Now contain only the relevant
21293 (Verbose_Library_Version): New constant.
21295 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
21296 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
21297 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
21299 * gnatlbr.adb: Clean up: replace Library_Version by
21300 Verbose_Library_Version.
21302 * make.adb, lib-writ.adb, exp_attr.adb:
21303 Clean up: replace Library_Version by Verbose_Library_Version.
21305 * 5lintman.adb: Removed.
21308 Update and simplify computation of LIBRARY_VERSION.
21309 Fix computation of GSMATCH_VERSION.
21310 5lintman.adb is no longer used: replaced by 7sintman.adb.
21312 2003-12-03 Robert Dewar <dewar@gnat.com>
21315 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
21316 name. Modified to consider small non-bit-packed arrays as troublesome
21317 and in need of component-by-component assigment expansion.
21319 2003-12-03 Vincent Celier <celier@gnat.com>
21321 * lang-specs.h: Process nostdlib as nostdinc
21323 * back_end.adb: Update Copyright notice
21324 (Scan_Compiler_Arguments): Process -nostdlib directly.
21326 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
21329 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
21330 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
21331 included in HIE_NONE_TARGET_PAIRS.
21333 2003-12-03 Ed Schonberg <schonberg@gnat.com>
21336 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
21337 is legal in an instance, because legality is cheched in the template.
21340 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
21341 appplied to an unchecked conversion of a formal parameter.
21344 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
21347 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
21349 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
21350 routines. The second one is new functionality to deal with backtracing
21351 through signal handlers.
21352 (unwind): Split into the two separate subroutines above.
21353 Update the documentation, and deal properly with sizeof (REG) different
21354 from sizeof (void*).
21356 2003-12-01 Nicolas Setton <setton@act-europe.fr>
21358 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
21359 so that the debugger can reliably access the value of the parameter,
21360 and therefore is able to display the exception name when an exception
21361 breakpoint is reached.
21363 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
21365 * fmap.adb: Fix typo in warning message.
21367 * g-socket.ads, g-socket.adb: Make Free a visible instance of
21368 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
21370 2003-12-01 Vincent Celier <celier@gnat.com>
21372 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
21374 (Build_Library): Get the switches only if Default_Switches is declared
21377 2003-12-01 Ed Schonberg <schonberg@gnat.com>
21379 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
21380 actuals that are indexed components, reanalyze actual to ensure that
21381 packed array references are properly expanded.
21383 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
21384 attempted assignment to a discriminant.
21386 2003-12-01 Robert Dewar <dewar@gnat.com>
21388 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
21391 * switch-c.adb: Minor reformatting of comments
21393 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
21395 * Makefile.in: Clean ups.
21397 2003-12-01 GNAT Script <nobody@gnat.com>
21399 * Make-lang.in: Makefile automatically updated
21401 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
21403 * 5wsystem.ads: Disable zero cost exception, not ready yet.
21405 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
21407 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
21408 to force serialization.
21410 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
21412 * g-socket.ads, g-socket.adb:
21413 Clarify documentation of function Stream. Introduce a Free procedure
21414 to release the returned Stream once it becomes unused.
21416 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
21418 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
21420 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
21421 since NT 4 cannot handle timeout values that are too large,
21422 e.g. DWORD'Last - 1.
21424 2003-11-26 Ed Schonberg <schonberg@gnat.com>
21427 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
21428 in procedure calls and whose expansion must be deferred.
21430 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
21434 (Build_Derived_Array_Type): Create operator for unconstrained type
21435 if ancestor is unconstrained.
21437 2003-11-26 Vincent Celier <celier@gnat.com>
21439 * make.adb (Project_Object_Directory): New global variable
21440 (Change_To_Object_Directory): New procedure
21441 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
21442 of Change_Dir directly. Do not change working directory to object
21443 directory of main project after each compilation.
21444 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
21446 Change to object directory of main project before binding step.
21447 (Initialize): Initialize Project_Object_Directory to No_Project
21450 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
21451 binding a Stand-Alone Library.
21453 * output.adb: Update Copyright notice
21454 (Write_Char): Output buffer when full
21456 2003-11-26 Robert Dewar <dewar@gnat.com>
21458 * sem_ch13.adb: (Check_Size): Reset size if size is too small
21461 (Check_Size): Fix documentation to include bit-packed array case
21463 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
21465 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
21467 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
21469 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
21472 * utils.c (init_gigi_decls): Change name of built-in setjmp to
21473 __builtin_setjmp, since this is apparently needed by recent
21476 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21478 * adadecode.c: Only include ctype.h if not IN_GCC.
21479 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
21481 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
21484 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
21485 signals and interrupts.
21487 * 5zintman.ads: New File.
21489 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
21490 add exception signals to the set of unmasked signals.
21493 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
21494 between signals and interrupts.
21495 Add to Unblocked_Signal_Mask the set of signals that are in
21499 Adding a check to see whether the Interrupt_ID we want to unmask is in
21500 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
21501 reason is that the index type of the Keep_Unmasked array is not always
21502 Interrupt_ID; it may be a subtype of Interrupt_ID.
21504 2003-11-24 Gary Dismukes <dismukes@gnat.com>
21507 (Remove_Side_Effects): Condition constantness of object created for a
21508 an unchecked type conversion on the constantness of the expression
21509 to ensure the correct value for 'Constrained when passing components
21510 of view-converted class-wide objects.
21512 2003-11-24 Robert Dewar <dewar@gnat.com>
21514 * par-load.adb (Load): Improve handling of misspelled and missing units
21515 Removes several cases of compilation abandoned messages
21517 * lib.adb: (Remove_Unit): New procedure
21519 * lib.ads: (Remove_Unit): New procedure
21521 * lib-load.adb: Minor reformatting
21523 2003-11-24 Vincent Celier <celier@gnat.com>
21526 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
21527 (Marking_Label): Label to mark processed source files. Incremented for
21529 (Gnatmake): Increase Marking_Labet for each executable
21530 (Is_Marked): Compare against marking label
21531 (Mark): Mark with marking label
21533 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
21536 Move the declaration of the TSD for System.Threads to System.Soft_Links.
21539 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
21540 (rts-cert): build a single relocatable object for the run-time lib.
21543 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
21546 Use gnatls rather than gcc to obtain the location of GNAT RTL for
21549 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
21551 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
21552 can not use it as before (that is, as a variable) when dumping it into
21553 the tree file. Add a local variable to store the result of this
21554 function and to be used as the string to be written into the tree.
21556 * scn.adb (Initialize_Scanner): Add comments explaining the recent
21559 * sinput.adb (Source_First, Source_Last): In case of
21560 Internal_Source_File, replace returning attributes of
21561 Internal_Source_Ptr (which is wrong) with returning attributes of
21564 2003-11-24 Ed Schonberg <schonberg@gnat.com>
21567 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
21568 used for implicit concatenation operators.
21572 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
21573 task bodies that are in the scope of a Suppress pragma.
21574 (Check_A Call): Use the flag to prevent spurious elaboration checks.
21576 * sinfo.ads, sinfo.adb:
21577 New flag No_Elaboration_Check on function/procedure calls, to properly
21578 suppress checks on calls in task bodies that are within a local suppress
21582 (Expand_Concatenate_Other): Use the proper integer type for the
21583 expression for the upper bound, to avoid universal_integer computations
21586 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
21588 * .cvsignore: Delete.
21590 2003-11-21 Andreas Schwab <schwab@suse.de>
21592 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
21594 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
21596 * 5wsystem.ads: Enable zero cost exception.
21598 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
21600 * 5ztiitho.adb: Remove an unreferenced variable.
21602 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
21604 * adaint.c: For FreeBSD, use mkstemp.
21606 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
21608 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
21610 2003-11-21 Robert Dewar <dewar@gnat.com>
21612 * bld.adb: Remove useless USE of gnatvsn
21614 * gnatchop.adb: Minor reformatting
21615 Clean up version handling to be more consistent
21617 * gnatxref.adb: Minor reformatting
21619 * gprcmd.adb: Minor reformatting
21620 Fix output of copyright to be more consistent with other tools
21622 2003-11-21 Vincent Celier <celier@gnat.com>
21624 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
21626 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
21628 * atree.adb (Initialize): Add initializations for global variables
21629 used in New_Copy_Tree.
21631 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
21632 Internal_Source_File as the actual).
21633 Put the set of statements creating Any_Character before the set of
21634 statements creating Any_Array to have Any_Character fully initialized
21635 when it is used in creating Any_Array.
21637 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
21638 not call Scan in case if the actual is Internal_Source_File
21639 Add 2003 to copyright note.
21641 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
21642 processing Internal_Source_File.
21644 * types.ads: Add the constant Internal_Source_File representing the
21645 source buffer for artificial source-code-like strings created within
21646 the compiler (the definition of Source_File_Index is changed).
21648 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
21650 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
21651 56system.ads: New file, FreeBSD version.
21653 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
21655 * Make-lang.in (ada.extraclean): Delete.
21657 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
21659 * gnatmem.adb: Clean up verbose output.
21661 * gprcmd.adb: Change copyright to FSF.
21663 2003-11-19 Vincent Celier <celier@gnat.com>
21665 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
21666 and Version (ignored).
21668 * symbols.ads: (Policy): New type
21669 (Initialize): New parameter Reference, Symbol_Policy and
21671 Remove parameter Force.
21672 Minor reformatting.
21674 * snames.ads, snames.adbadb: New standard names
21675 Library_Reference_Symbol_File and Library_Symbol_Policy
21678 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
21682 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
21684 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
21686 * prj.adb: (Project_Empty): New component Symbol_Data
21688 * prj.ads: (Policy, Symbol_Record): New types
21689 (Project_Data): New component Symbol_Data
21692 New attributes Library_Symbol_File, Library_Symbol_Policy and
21693 Library_Reference_Symbol_File.
21696 (Ada_Check): When project is a Stand-Alone library project, process
21697 attribute Library_Symbol_File, Library_Symbol_Policy and
21698 Library_Reference_Symbol_File.
21700 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
21701 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
21702 5sml-tgt.adb (Build_Dynamic_Library): New parameter
21703 Symbol_Data (ignored).
21705 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
21706 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
21707 functions Option_File_Name and Version_String. Set new options of
21708 gnatsym related to symbol file, symbol policy and reference symbol
21712 Extensive modifications to take into account the reference symbol file,
21713 the symbol policy, the library version and to put in the symbol file the
21714 minor and major IDs.
21716 * bld.adb (Process_Declarative_Items): Put second argument of
21717 gprcmd to_absolute between single quotes, to avoid problems with
21720 * bld-io.adb: Update Copyright notice.
21721 (Flush): Remove last character of a line, if it is a back slash, to
21722 avoid make problems.
21725 Implement new scheme with reference symbol file and symbol policy.
21727 * g-os_lib.ads: (Is_Directory): Clarify comment
21729 2003-11-19 Robert Dewar <dewar@gnat.com>
21731 * atree.adb: Move New_Copy_Tree global variables to head of package
21733 * errout.adb: Minor reformatting
21735 2003-11-19 Javier Miranda <miranda@gnat.com>
21737 * sem_ch4.adb: (Diagnose_Call): Improve error message.
21738 Add reference to Ada0Y (AI-50217)
21740 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
21741 sem_util.adb: Add reference to AI-50217
21743 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
21745 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
21747 * sem_aggr.adb: Complete documentation of AI-287 changes
21749 * par-ch4.adb: Document previous changes.
21751 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
21752 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
21755 * exp_aggr.adb: Add references to AI-287 in previous changes
21757 2003-11-19 Ed Schonberg <schonberg@gnat.com>
21760 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
21761 in the rewriting is the result of an inlined call.
21763 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
21764 parameter is a type conversion, use original node to construct the
21765 post-call assignment, because expression may have been rewritten, e.g.
21766 if it is a packed array.
21769 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
21770 body, just as it is in an instance.
21771 Categorization routines
21773 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
21774 Instantiate_Object): Set proper sloc reference for message on missing
21777 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
21779 * Makefile.in: Add FreeBSD libgnat pairs.
21781 * usage.adb: Fix typo in usage message.
21783 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
21785 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
21786 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
21787 pragma Thread_Body.
21788 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
21790 * s-thread.adb: This file is now a dummy implementation of
21793 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
21795 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
21797 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
21799 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
21800 instanciation references in the parent type description.
21802 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21804 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
21806 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
21807 TYPE_PRECISION directly from esize.
21809 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
21812 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
21814 * init.c: Initialization routines for FreeBSD
21816 * link.c: Link info for FreeBSD
21818 * sysdep.c: Add the case of FreeBSD
21820 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
21822 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
21823 already called in System.Threads.
21825 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
21826 environment task, as it has been moved to System.Threads.Initialization.
21828 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
21830 * adaint.c (__gnatlib_install_locks): Only reference
21831 __gnat_install_locks on VMS, since other platforms can avoid using
21832 --enable-threads=gnat
21834 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21836 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
21838 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
21839 TYPE_PACKED_ARRAY_TYPE_P.
21840 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
21842 Part of PR ada/12806
21843 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
21844 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
21846 2003-11-17 Vincent Celier <celier@gnat.com>
21848 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
21850 Do not set exit status to Failure when Warning is True.
21851 (Gnatchop): Make errors "no compilation units found" and
21852 "no source files written" warnings only.
21854 * make.adb (Gnatmake): When using a project file, set
21855 Look_In_Primary_Dir to False.
21856 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
21857 and Local_Configuration_Pragmas in the project where they are declared
21858 not an extending project which might have inherited them.
21860 * osint.adb (Locate_File): If Name is already an absolute path, do not
21861 look for a directory.
21863 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
21864 -gnats (Check_Syntax) is used, issue only a warning, not an error.
21866 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
21867 in objects of type Variable_Value.
21869 * prj.ads: (Variable_Value): New component Project
21871 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
21872 is in a project extended by Project.
21874 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
21875 Project of Variable_Values to this new parameter value.
21876 (Expression): Set component Project of Variable_Values.
21877 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
21878 Set the component Project in array elements.
21880 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
21882 * errout.adb: (Initialize): Add initialization for error nodes.
21884 * sem_ch12.adb (Initialize): Add missing initializations for
21885 Exchanged_Views and Hidden_Entities.
21887 2003-11-17 Ed Schonberg <schonberg@gnat.com>
21889 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
21890 already instantiated tree for use in subsequent inlining.
21891 (Analyze_Associations, Instantiate_Formal_Subprogram,
21892 Instantiate_Object): improve error message for mismatch in
21895 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
21896 instantiations of subprograms declared in instances.
21898 2003-11-17 Javier Miranda <miranda@gnat.com>
21900 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
21901 executed only under the Extensions_Allowed flag.
21903 2003-11-17 Robert Dewar <dewar@gnat.com>
21905 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
21907 (Address_Image): Fix bug of returning 0x instead of 0x0
21908 Minor reformatting (function specs).
21910 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
21911 (missed case of 33-63)
21913 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
21915 * s-thread.adb: Add comments for pragma Restriction
21917 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
21918 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
21920 2003-11-17 Ed Falis <falis@gnat.com>
21922 * s-thread.adb: Added No_Tasking restriction for this implementation.
21924 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
21926 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
21927 instanciation references in the parent type description.
21929 2003-11-17 GNAT Script <nobody@gnat.com>
21931 * Make-lang.in: Makefile automatically updated
21933 2003-11-16 Jason Merrill <jason@redhat.com>
21935 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
21936 and TAGS files that include them for each front end.
21938 2003-11-14 Andreas Jaeger <aj@suse.de>
21940 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
21941 is the canonical version.
21942 * misc.c (gnat_handle_option): Likewise.
21944 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
21946 * 5nsystem.ads: New file for x86_64-linux-gnu.
21948 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
21950 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
21952 * comperr.adb: Fix logic in previous change.
21954 2003-11-13 Vincent Celier <celier@gnat.com>
21956 * 5bml-tgt.adb (Build_Dynamic_Library): Use
21957 Osint.Include_Dir_Default_Prefix instead of
21958 Sdefault.Include_Dir_Default_Name.
21960 * gnatlbr.adb: Update Copyright notice
21961 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
21962 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
21963 instead of Sdefault.Object_Dir_Default_Name
21966 (Process_Binder_File): Never suppress the option following -Xlinker
21969 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
21970 Sdefault.Object_Dir_Default_Name.
21972 * osint.ads, osint.adb:
21973 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
21974 Minor reformatting.
21976 * vms_conv.ads: Minor reformating
21977 Remove GNAT STANDARD and GNAT PSTA
21980 Allow GNAT MAKE to have several files on the command line.
21981 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
21982 Sdefault.Object_Dir_Default_Name.
21984 Remove data for GNAT STANDARD
21987 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
21988 Remove data for GNAT STANDARD
21989 Remove options and documentation for -gnatwb/-gnatwB: these warning
21990 options no longer exist.
21992 2003-11-13 Ed Falis <falis@gnat.com>
21994 * 5zthrini.adb: (Init_RTS): Made visible
21997 (Register): Removed unnecessary call to taskVarGet that checked whether
21998 an ATSD was already set as a task var for the argument thread.
22001 Updated comment to reflect that this is a VxWorks version
22002 Added context clause for System.Threads.Initialization
22003 Added call to System.Threads.Initialization.Init_RTS
22005 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
22008 (Init_RTS): New procedure, for the initialization of the run-time lib.
22011 Remove dependancy on System.Init, so that this file can be used in the
22012 AE653 sequential run-time lib.
22014 2003-11-13 Robert Dewar <dewar@gnat.com>
22016 * bindgen.adb: Minor reformatting
22018 2003-11-13 Ed Schonberg <schonberg@gnat.com>
22021 (Apply_Discriminant_Check): Do no apply check if target type is derived
22022 from source type with no applicable constraint.
22025 (Ensure_System_Dependency): Do not apply the style checks that may have
22026 been specified for the main unit.
22029 (Find_Selected_Component): Further improvement in error message, with
22033 (Resolve): Handle properly the case of an illegal overloaded protected
22036 2003-11-13 Javier Miranda <miranda@gnat.com>
22039 (Has_Default_Init_Comps): New function to check the presence of
22040 default initialization in an aggregate.
22041 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
22042 extension aggregate of a limited record. In addition, a new formal
22043 was added to do not initialize the record controller (if any) during
22044 this recursive expansion of ancestors.
22045 (Init_Controller): Add support for limited record components.
22046 (Expand_Record_Aggregate): In case of default initialized components
22047 convert the aggregate into a set of assignments.
22049 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
22050 describing the new syntax.
22051 Nothing else needed to be done because this subprogram delegates part of
22052 its work to P_Precord_Or_Array_Component_Association.
22053 (P_Record_Or_Array_Component_Association): Give support to the new
22054 syntax for default initialization of components.
22057 (Resolve_Aggregate): Relax the strictness of the frontend in case of
22058 limited aggregates.
22059 (Resolve_Record_Aggregate): Give support to default initialized
22061 (Get_Value): In case of default initialized components, duplicate
22062 the corresponding default expression (from the record type
22063 declaration). In case of default initialization in the *others*
22064 choice, do not check that all components have the same type.
22065 (Resolve_Extension_Aggregate): Give support to limited extension
22069 (Check_Initialization): Relax the strictness of the front-end in case
22070 of aggregate and extension aggregates. This test is now done in
22071 Get_Value in a per-component manner.
22073 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
22074 expression corresponds to a limited aggregate. This test is now done
22077 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
22080 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
22081 present in an N_Component_Association node
22083 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
22085 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
22086 type-conformant entry only if they are homographs.
22088 2003-11-13 GNAT Script <nobody@gnat.com>
22090 * Make-lang.in: Makefile automatically updated
22092 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22094 * adadecode.c: Use <> form of include for ctype.h.
22095 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
22097 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22099 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
22100 Works around PR middle-end/6552.
22102 2003-11-10 Ed Falis <falis@gnat.com>
22104 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
22106 * 5zinit.adb: (Install_Handler): Moved back to spec
22107 (Install_Signal_Handlers): Deleted
22109 * 5zthrini.adb: Added context clause for System.Storage_Elements
22110 (Register): Only handles creation of taskVar; initialization moved to
22112 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
22113 Added declaration of environment task secondary stack and
22116 * s-thread.adb: Implement bodies for thread body processing
22119 Added comment identifying supported targets for pragma Thread_Body.
22121 2003-11-10 Pascal Obry <obry@gnat.com>
22123 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
22127 (Open): Properly check for string length before copying into the buffer.
22128 Raises Name_Error if buffer is too small. Note that this was a potential
22131 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
22133 * bindgen.adb, comperr.adb: Code clean ups.
22134 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
22136 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
22138 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
22140 2003-11-10 Vincent Celier <celier@gnat.com>
22143 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
22146 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
22148 * prj.adb: (Project_Empty): Add new boolean component Virtual
22150 * prj.ads: (Virtual_Prefix): New constant string
22151 (Project_Data): New boolean component Virtual
22153 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
22154 a library project is extended by a virtual extending project.
22157 Modifications throughout to implement extending-all project, including:
22158 (Virtual_Hash, Processed_Hash): New hash tables
22159 (Create_Virtual_Extending_Project): New procedure
22160 (Look_For_Virtual_Projects_For): New procedure
22163 (Process): After checking the projects, if main project is an
22164 extending-all project, set the object directory of all virtual extending
22165 project to the object directory of the main project.
22166 Adjust error message when a virtual extending project has the same
22167 object directory as an project being extended.
22168 (Recursive_Process): If name starts with the virtual prefix, set Virtual
22169 to True in the project data.
22172 (Default_Project_Node): Add new boolean component Extending_All
22173 (Is_Extending_All): New function
22174 (Set_Is_Extending_All): New procedure
22176 * prj-tree.ads: (Is_Extending_All): New function
22177 (Set_Is_Extending_All): New procedure
22178 (Project_Node_Record): New boolean component Extending_All
22180 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
22183 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
22185 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
22186 "gprcmd prefix" to define it.
22188 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
22190 * einfo.ads: Fix a typo and remove an extraneous word in comments.
22193 (Create_Dummy_Package_Unit): Set the scope of the entity for the
22194 created dummy package to Standard_Standard, not to itself, to
22195 defend other parts of the front-end against encoutering a cycle in
22199 (Analyze_With_Clause): When setting the entities for the successive
22200 N_Expanded_Names that constitute the name of a child unit, do not
22201 attempt to go further than Standard_Standard in the chain of scopes.
22202 This case arises from the placeholder units created by
22203 Create_Dummy_Package_Unit in the case of a with_clause for a
22204 nonexistent child unit.
22206 2003-11-10 Ed Schonberg <schonberg@gnat.com>
22209 (Expand_Thread_Body): Place subprogram on scope stack, so that new
22210 declarations are given the proper scope.
22213 (Check_Expr_Constants): Reject an expression that contains a constant
22214 created during expansion, and that appears after the object to which
22215 the address clause applies.
22217 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
22218 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
22219 that uses 'Range of a function call with controlled components, so
22220 that the function result can be finalized before starting the loop.
22223 (Find_Selected_Component): Improve error message when prefix is
22224 an implicit dereference of an incomplete type.
22226 2003-11-10 Robert Dewar <dewar@gnat.com>
22228 * opt.ads: New Print_Standard flag for -gnatS switch
22230 * sem_ch13.adb: Remove some additional checks for unaligned arrays
22232 * cstand.adb (Create_Standard): Print out package standard if -gnatS
22235 * debug.adb: Update doc for -gnatds to discuss relationship with new
22238 * sinfo.adb: Add new field Entity_Or_Associated_Node
22240 * sinfo.ads: Add new field Entity_Or_Associated_Node
22241 Update documentation for Associated_Node and Entity fields to clarify
22242 relationship and usage.
22245 (Write_Id): Properly process Associated_Node field in generic template
22248 Recognize new -gnatS switch for printing package Standard
22249 This replaces gnatpsta
22252 Add line for new -gnatS switch for printing package Standard
22253 This replaces gnatpsta
22255 2003-11-10 Andreas Jaeger <aj@suse.de>
22257 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
22260 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
22262 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
22265 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
22267 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
22270 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
22272 * sysdep.c: Add handling of cygwin.
22274 2003-11-10 GNAT Script <nobody@gnat.com>
22276 * Make-lang.in: Makefile automatically updated
22278 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
22281 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
22282 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
22283 Replace GNAT_ROOT by GCC_ROOT.
22285 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
22287 2003-11-06 Zack Weinberg <zack@codesourcery.com>
22289 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
22290 and update for changed meaning of GET_MODE_BITSIZE.
22292 2003-11-04 Doug Rupp <rupp@gnat.com>
22294 * sysdep.c: Problem discovered during IA64 VMS port.
22295 [VMS] #include <unixio.h> to get proper prototypes.
22298 Issues discovered/problems fixed during IA64 VMS port.
22299 [VMS] #define _POSIX_EXIT for proper semantics.
22300 [VMS] #include <unixio.h> for proper prototypes.
22301 [VMS] (fork): #define IA64 version.
22302 (__gnat_os_exit): Remove unnecessary VMS specific code.
22304 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22306 Part of PR ada/12806
22308 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
22312 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
22315 * targtyps.c, decl.c, misc.c,
22316 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
22317 routines to work around change in FP sizing semantics in GCC.
22320 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
22322 * gigi.h: (enumerate_modes): New function.
22324 * Make-lang.in: (ada/misc.o): Add real.h.
22326 * misc.c: (enumerate_modes): New function.
22328 2003-11-04 Robert Dewar <dewar@gnat.com>
22330 * 3vtrasym.adb: Minor reformatting
22331 Use terminology encoded/decoded name, rather than C++ specific notion
22332 of mangling (this is the terminology used throughout GNAT).
22334 * einfo.h: Regenerated
22336 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
22339 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
22341 * par-prag.adb: Add dummy entry for Thread_Body pragma
22344 Add entries for System.Threads entities for thread body processing
22347 (Analyze_Pragma, Access attributes): Check these are not applied to a
22348 thread body, since this is not permitted
22350 * sem_prag.adb: Add processing for Thread_Body pragma.
22354 (Resolve_Call): Check for incorrect attempt to call a thread body
22355 procedure with a direct call.
22357 * snames.ads, snames.adb: Add entry for Thread_Body pragma
22358 Add names associated with thread body expansion
22360 * snames.h: Add entry for Thread_Body pragma
22362 * s-thread.adb: Add entries for thread body processing
22363 These are dummy bodies so far
22365 * s-thread.ads: Add documentation on thread body handling.
22366 Add entries for thread body processing.
22368 2003-11-04 Javier Miranda <miranda@gnat.com>
22371 (Build_Limited_Views): Return after posting an error in case of limited
22372 with_clause on subprograms, generics, instances or generic renamings
22373 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
22374 on subprograms, generics, instances or generic renamings
22376 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
22378 * raise.c (setup_to_install): Correct mistake in last revision; two
22379 arguments out of order.
22381 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
22382 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
22383 notice, missed in previous change.
22384 Remove trailing blanks and other style errors introduced in previous
22387 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
22389 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
22390 rid of the wrapper for a LJM type, ensuring we don't do that if the
22391 field is addressable. This avoids potential low level type view
22392 mismatches later on, for instance in a by-reference argument passing
22395 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22397 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
22398 aligned at byte boundary.
22400 2003-11-04 Joel Brobecker <brobecker@gnat.com>
22402 * decl.c (components_to_record): Do not delete the empty variants from
22403 the end of the union type.
22405 2003-11-04 Ed Schonberg <schonberg@gnat.com>
22407 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
22408 operation for a derived type, an explicit declaration may use a local
22409 subtype of Boolean.
22411 2003-11-04 Vincent Celier <celier@gnat.com>
22413 * make.adb (Gnatmake): Allow main sources on the command line with a
22414 library project when it is only for compilation (no binding or
22417 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22419 * Makefile.in: Remove many duplicate variables.
22421 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
22423 * Make-lang.in (dvi): Move targets to $(docobjdir).
22424 (gnat_ug_vms.dvi): Simplify rule and adjust target.
22425 (gnat_ug_wnt.dvi): Likewise.
22426 (gnat_ug_unx.dvi): Likewise.
22427 (gnat_ug_vxw.dvi): Likewise.
22428 (gnat_rm.dvi): Likewise.
22429 (gnat-style.dvi): Likewise.
22431 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
22433 * gigi.h: Missed commit from update for C90.
22435 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
22437 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
22439 2003-10-31 Andreas Schwab <schwab@suse.de>
22441 * raise.c (get_action_description_for): Fix typo in last change.
22443 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
22446 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
22447 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
22449 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
22451 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
22452 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
22453 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
22454 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
22455 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
22457 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
22460 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
22461 numbers when symbol name is too long.
22463 2003-10-30 Ed Falis <falis@gnat.com>
22465 * g-signal.ads, g-signal.adb: New files
22467 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
22469 * Makefile.rtl: Introduce GNAT.Signals
22471 2003-10-30 Robert Dewar <dewar@gnat.com>
22473 * freeze.adb: Minor reformatting
22475 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
22477 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
22478 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
22479 New handling of Id_Check parameter to improve recognition of keywords
22480 used as identifiers.
22481 Update copyright notice to include 2003
22483 2003-10-29 Robert Dewar <dewar@gnat.com>
22485 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
22486 sem_ch10.adb: Minor reformatting
22488 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
22489 (Expand_Assign_Record): Test right hand side for bit unaligned as well
22491 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
22493 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
22494 Support for TBK$SYMBOLIZE-based symbolic traceback.
22496 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
22499 Revert previous change, that did not work well when pragma No_Run_Time
22500 was used in conjunction with a run-time other than ZFP.
22502 2003-10-29 Vincent Celier <celier@gnat.com>
22505 (Gnatmake): When there are no Ada mains in attribute Main, disable the
22506 bind and link steps only is switch -z is not used.
22508 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
22510 * Makefile.generic: Remove duplicated setting of CC.
22512 * Makefile.prolog: Set CC to gcc by default, to override make's
22515 * einfo.h: Regenerated.
22517 2003-10-29 Ed Schonberg <schonberg@gnat.com>
22519 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
22520 current body, after compiling subunit.
22522 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
22523 when in deleted code, because gigi needs properly ordered freeze
22524 actions to annotate types.
22526 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
22527 prevent the premature freezing of record type that contains
22528 subcomponents with a private type that does not yet have a completion.
22530 2003-10-29 Javier Miranda <miranda@gnat.com>
22533 (Analyze_Package_Instantiation): Check that instances can not be used in
22534 limited with_clauses.
22537 (Analyze_Package_Renaming): Check that limited withed packages cannot
22538 be renamed. Improve text on error messages related to limited
22541 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
22543 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
22544 Update copyright notice.
22546 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
22547 (Install_Limited_Context_Clauses): New subprogram that isolates all the
22548 checks required for limited context_clauses and installs the limited
22550 (Install_Limited_Withed_Unit): Complete its documentation.
22551 (Analyze_Context): Check that limited with_clauses are only allowed in
22553 (Install_Context): Call Install_Limited_Context_Clauses after the
22554 parents have been installed.
22555 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
22556 package as 'From_With_Type'; this mark indicates that the limited view
22557 is installed. Used to check bad usages of limited with_clauses.
22558 (Build_Limited_Views): Do not add shadow entities to the scope's list
22559 of entities. Do not add real entities to the Non_Limited_Views chain.
22560 Improve error notification.
22561 (Remove_Context_Clauses): Remove context clauses in two phases:
22562 limited views first and regular views later (to maintain the
22564 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
22565 its visible entities.
22567 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
22569 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
22570 with any type that Is_Fixed_Point_Type.
22572 * sinfo.ads: Fix documentation for Associated_Node attribute.
22574 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
22576 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
22577 both '-gnatc' and '-gnatt' are specified.
22579 * atree.adb (Initialize): Add initialization for Node_Count (set to
22582 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22584 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
22585 do not consider as Pure.
22587 Part of implementation of function-at-a-time:
22589 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
22590 (tree_transform): Add new argument to build_component_ref.
22591 (tree_transform, case N_Assignment_Statement): Make and return an
22593 (tree_transform): If result IS_STMT, set flags and return it.
22594 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
22596 * utils2.c (build_simple_component_ref, build_component_ref): Add new
22598 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
22599 (build_allocator): Likewise.
22601 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
22602 Add new arg to build_component_ref.
22603 (maybe_unconstrained_array, unchecked_convert): Likewise.
22605 * ada-tree.def (EXPR_STMT): New code.
22607 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
22609 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
22610 build_component_ref calls.
22612 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
22614 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
22615 (build_component_ref): Add new argument, NO_FOLD_P.
22617 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
22619 * Makefile.generic: Add missing substitution on object_deps handling.
22622 * Make-lang.in (check-ada): Enable ACATS test suite.
22624 2003-10-27 Robert Dewar <dewar@gnat.com>
22627 (Freeze_Array_Type): We do not need an initialization routine for types
22628 derived from String or Wide_String. They should be treated the same
22629 as String and Wide_String themselves. This caused problems with the
22630 use of Initialize_Scalars.
22633 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
22634 composites. This allows use of component clauses that are not byte
22638 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
22639 is an attempt to pack an array of atomic objects.
22641 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
22643 2003-10-27 Pascal Obry <obry@gnat.com>
22646 (Basename): Check for drive letters in a pathname only on DOS based OS.
22648 2003-10-27 Vincent Celier <celier@gnat.com>
22651 (Gnatmake): When unable to change dir to the object dir, display the
22652 content of the parent dir of the obj dir, to try to understand why this
22655 2003-10-27 GNAT Script <nobody@gnat.com>
22657 * Make-lang.in: Makefile automatically updated
22659 2003-10-27 Ed Schonberg <schonberg@gnat.com>
22662 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
22663 should not be done in Save/Restore_Scope_Stack, because it is performed
22667 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
22668 whether use clauses should be removed/restored.
22671 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
22672 whether use clauses should be removed/restored.
22674 2003-10-26 Andreas Jaeger <aj@suse.de>
22676 * Makefile.in: Remove duplicated lines.
22678 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
22680 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
22681 minimize the differences with ACT tree.
22683 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
22684 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
22685 Gnatvsn.Gnat_Static_Version_String to reduce differences between
22688 2003-10-24 Pascal Obry <obry@gnat.com>
22690 * adadecode.c (ostrcpy): New function.
22691 (__gnat_decode): Use ostrcpy of strcpy.
22692 (has_prefix): Set first parameter a const.
22693 (has_suffix): Set first parameter a const.
22694 Update copyright notice. Fix source name in header.
22695 Removes a trailing space.
22698 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
22701 Remove the test against being in No_Run_Time_Mode before generating a
22702 call to Register_Tag. It is redundant with the test against the
22703 availability of the function Register_Tag.
22705 2003-10-24 Vincent Celier <celier@gnat.com>
22707 * g-catiio.adb: (Month_Name): Correct spelling of February
22709 * make.adb: (Mains): New package
22710 (Initialize): Call Mains.Delete
22711 (Gnatmake): Check that each main on the command line is a source of a
22712 project file and, if there are several mains, each of them is a source
22713 of the same project file.
22714 (Gnatmake): When a foreign language is specified in attribute Languages,
22715 no main is specified on the command line and attribute Mains is not
22716 empty, only build the Ada main. If there is no Ada main, just compile
22717 the Ada sources and their closure.
22718 (Gnatmake): If a main is specified on the command line with directory
22719 information, check that the source exists and, if it does, that the path
22720 is the actual path of a source of a project.
22723 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
22724 Full_Path is True, return the full path instead of the simple file name.
22725 (Project_Of): New function
22728 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
22729 defaulted to False.
22730 (Project_Of): New function
22732 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
22734 * Makefile.generic:
22735 Ensure objects of main project are always checked and rebuilt if needed.
22736 Set CC to gcc by default.
22737 Prepare new handling of link by creating a global archive (not activated
22740 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
22741 stringt.h: Update copyright notice. Remove trailing blanks.
22742 Fix source name in header.
22744 2003-10-24 Robert Dewar <dewar@gnat.com>
22746 * sem_ch12.adb: Minor reformatting
22749 Minor reformatting (including new function return style throughout)
22752 Minor reformatting (including new function return style throughout)
22754 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
22756 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
22757 stringt.h: Update copyright notice. Remove trailing blanks.
22758 Fix source name in header.
22760 2003-10-24 GNAT Script <nobody@gnat.com>
22762 * Make-lang.in: Makefile automatically updated
22764 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
22766 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
22767 stringt.h: Convert to ISO C90 declarations and definitions.
22769 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
22772 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
22773 External_Tag attribute definition clauses.
22775 2003-10-23 Ed Schonberg <schonberg@gnat.com>
22778 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
22779 child unit, generate a fully qualified name to avoid spurious errors
22780 when the context contains renamings of different child units with
22781 the same simple name.
22783 * exp_dbug.ads: Add documentation on name qualification for renamings
22786 2003-10-23 Robert Dewar <dewar@gnat.com>
22788 * g-regpat.ads, g-regpat.adb: Minor reformatting
22790 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
22792 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
22794 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22796 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
22799 * urealp.h: (Machine): Update to proper definition.
22801 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
22803 * init.c, adaint.c: Minor reformatting.
22805 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
22807 * adaint.c (w32_epoch_offset): Define static const at file level.
22808 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
22809 rather than t_create, t_access in call to GetFileTime. Use union
22810 to convert between FILETIME and unsigned long long.
22811 (__gnat_file_time_name): Test for invalid file handle.
22812 (__gnat_set_filetime_name): Support win32 targets using
22813 w32api SetFileTime.
22815 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
22817 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
22819 * ctrl_c.c (__gnat_int_handler): Remove declaration.
22821 * decl.c (creat_concat_name): Const-ify prefix.
22823 * adaint.c: Include ctype.h if __MINGW32__.
22824 (__gnat_readlink): Mark arguments as possibly unused.
22825 (__gnat_symlink): Likewise.
22826 (__gnat_is_symbolic_link): Likewise.
22827 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
22829 (__gnat_file_time_name): Don't declare struct stat statbuf when
22831 (__gnat_is_absolute_path): Add parenthesis around condition of
22832 'if' statement to avoid warning.
22833 (__gnat_plist_init): Specify void as parameter.
22834 (plist_enter): Likewise.
22835 (plist_leave): Likewise.
22836 (remove_handle): Make static. Initialize prev.
22838 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
22840 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
22841 * cstreams.c (__gnat_full_name): Minor improvements and clean up
22842 of previous change.
22844 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22846 * tracebak.c (MAX): Avoid redefinition warning.
22848 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
22849 Change msg to const char *.
22850 (__gnat_install_handler): Remove ss, unused.
22851 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
22853 * cstreams.c (__gnat_full_name): Declare p only when used.
22854 (__gnat_full_name) [sgi] Return buffer.
22856 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
22858 * mingw32.h: New file.
22859 * gnat_wrapper.adb: New file.
22861 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
22863 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
22864 string match a pre compiled regular expression (the corresponding
22865 version of the function working on a raw regular expression)
22866 Fix typos in various comments
22867 Update copyright notice in spec
22869 2003-10-21 Gary Dismukes <dismukes@gnat.com>
22872 (Component_Needs_Simple_Initialization): Return False when the type is a
22873 packed bit array. Revise spec comments to document this case.
22876 (Expand_Pragma_Import): Set any expression on the imported object to
22877 empty to avoid initializing imported objects (in particular this
22878 covers the case of zero-initialization of bit arrays).
22879 Update copyright notice.
22881 2003-10-21 Ed Schonberg <schonberg@gnat.com>
22884 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
22885 a subunit is missing.
22886 (Instantiate_Subprogram_Body): If body of function is missing, set type
22887 of return expression explicitly in dummy body, to prevent cascaded
22888 errors when a subunit is missing.
22892 (Access_Subprogram_Declaration): Verify that return type is valid.
22896 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
22901 (Corresponding_Discriminant): If the scope of the discriminant is a
22902 private type without discriminant, use its full view.
22905 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
22907 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
22908 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
22909 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
22910 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
22911 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
22912 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
22913 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
22914 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
22915 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
22916 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
22917 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
22918 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
22919 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
22920 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
22921 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
22922 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
22923 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
22924 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
22925 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
22926 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
22927 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
22928 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
22929 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
22930 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
22931 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
22932 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
22933 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
22934 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
22935 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
22936 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
22937 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
22938 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
22939 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
22940 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
22941 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
22942 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
22943 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
22944 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
22945 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
22946 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
22947 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
22948 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
22949 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
22950 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
22951 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
22952 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
22953 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
22954 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
22955 vms_conv.ads, vms_conv.adb, vms_data.ads,
22956 vxaddr2line.adb: Files added. Merge with ACT tree.
22958 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
22959 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
22960 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
22961 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
22962 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
22963 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
22964 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
22965 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
22966 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
22967 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
22969 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
22970 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
22971 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
22972 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
22973 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
22974 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
22975 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
22976 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
22977 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
22978 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
22979 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
22980 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
22981 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
22982 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
22983 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
22984 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
22985 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
22986 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
22987 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
22988 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
22989 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
22990 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
22991 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
22992 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
22993 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
22994 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
22995 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
22996 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
22997 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
22998 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
22999 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
23000 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
23001 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
23002 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
23003 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
23004 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
23005 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
23006 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
23007 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
23008 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
23009 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
23010 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
23011 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
23012 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
23013 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
23014 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
23015 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
23016 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
23017 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
23018 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
23019 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
23020 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
23021 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
23022 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
23023 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
23024 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
23025 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
23026 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
23027 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
23028 checks.adb, checks.ads, cio.c, comperr.adb,
23029 comperr.ads, csets.adb, cstand.adb, cstreams.c,
23030 debug_a.adb, debug_a.ads, debug.adb, decl.c,
23031 einfo.adb, einfo.ads, errout.adb, errout.ads,
23032 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
23033 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
23034 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
23035 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
23036 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
23037 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
23038 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
23039 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
23040 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
23041 fe.h, fmap.adb, fmap.ads, fname.adb,
23042 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
23043 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
23044 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
23045 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
23046 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
23047 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
23048 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
23049 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
23050 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
23051 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
23052 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
23053 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
23054 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
23055 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
23056 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
23057 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
23058 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
23059 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
23060 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
23061 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
23062 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
23063 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
23064 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
23065 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
23066 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
23067 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
23068 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
23069 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
23070 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
23071 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
23072 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
23073 layout.adb, lib.adb, lib.ads, lib-list.adb,
23074 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
23075 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
23076 link.c, live.adb, make.adb, make.ads,
23077 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
23078 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
23079 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
23080 misc.c, mkdir.c, mlib.adb, mlib.ads,
23081 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
23082 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
23083 namet.adb, namet.ads, namet.h, nlists.ads,
23084 nlists.h, nmake.adt, opt.adb, opt.ads,
23085 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
23086 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
23087 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
23088 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23089 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
23090 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
23091 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
23092 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
23093 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
23094 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
23095 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
23096 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
23097 prj-util.adb, prj-util.ads, raise.c, raise.h,
23098 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
23099 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
23100 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
23101 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
23102 scans.ads, scn.adb, scn.ads, s-crc32.adb,
23103 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
23104 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
23105 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
23106 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
23107 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
23108 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
23109 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
23110 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
23111 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
23112 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
23113 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
23114 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
23115 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
23116 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
23117 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
23118 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
23119 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
23120 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
23121 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
23122 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
23123 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
23124 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
23125 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
23126 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
23127 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
23128 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
23129 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
23130 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
23131 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
23132 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
23133 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
23134 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
23135 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
23136 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
23137 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
23138 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
23139 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
23140 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
23141 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23142 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
23143 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
23144 stringt.adb, stringt.ads, stringt.h, style.ads,
23145 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
23146 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
23147 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
23148 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
23149 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
23150 table.adb, table.ads, targparm.adb, targparm.ads,
23151 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
23152 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
23153 ttypes.ads, types.ads, types.h, uintp.adb,
23154 uintp.ads, uintp.h, uname.adb, urealp.adb,
23155 urealp.ads, urealp.h, usage.adb, utils2.c,
23156 utils.c, validsw.adb, validsw.ads, widechar.adb,
23157 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
23158 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
23159 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
23160 gnatvsn.ads: Merge with ACT tree.
23162 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
23164 2003-10-20 Mark Mitchell <mark@codesourcery.com>
23166 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
23167 (gnat_ug_vmx.info): Likewise.
23168 (gnat_ug_vxw.info): Likewise.
23169 (gnat_ug_wnt.info): Likewise.
23170 (gnat_rm.info): Likewise.
23171 (gnat-style.info): Likewise.
23173 * Make-lang.in (ada.install-info): Remove target.
23174 (info): New target.
23175 (install-info): Likewise.
23176 (gnat_ug_unx.info): Simplify rule.
23177 (gnat_ug_vmx.info): Likewise.
23178 (gnat_ug_vxw.info): Likewise.
23179 (gnat_ug_wnt.info): Likewise.
23180 (gnat_rm.info): Likewise.
23181 (gnat-style.info): Likewise.
23183 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
23185 * Make-lang.in: Replace uses of $(target_alias) with
23186 $(target_noncanonical).
23187 * ada/Makefile.in: Remove unused mention of $(target_alias).
23189 2003-10-06 Mark Mitchell <mark@codesourcery.com>
23191 * Make-lang.in (ada.info): Replace with ...
23193 (ada.dvi): Replace with ...
23196 2003-09-29 Zack Weinberg <zack@codesourcery.com>
23198 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
23199 initialize dconstp5 and dconstmp5.
23201 2003-09-28 Richard Henderson <rth@redhat.com>
23203 * trans.c (tree_transform): Update call to expand_asm_operands.
23205 2003-09-21 Richard Henderson <rth@redhat.com>
23207 * trans.c, utils.c: Revert.
23209 2003-09-21 Richard Henderson <rth@redhat.com>
23211 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
23214 2003-09-04 Michael Matz <matz@suse.de>
23216 * misc.c: Include "target.h".
23217 * Make-lang.in (misc.o): Add dependency on target.h.
23219 2003-09-03 DJ Delorie <dj@redhat.com>
23221 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
23224 2003-08-30 Zack Weinberg <zack@codesourcery.com>
23226 * Makefile.in: Update substitutions to match changes to
23227 configure. Use include directives instead of @-insertions
23228 to read in host and target fragments. Add a rule to
23229 regenerate ada/Makefile.
23231 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
23233 * lang-options.h: Remove.
23234 * lang.opt: Add help text.
23236 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
23238 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
23241 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
23243 * misc.c (gnat_handle_option): Don't handle filenames.
23245 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
23247 * Make-lang.in: Replace PWD with PWD_COMMAND.
23248 * Makefile.adalib: Likewise.
23249 * Makefile.in: Likewise.
23251 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
23253 * misc.c (gnat_argv): Revert last change.
23254 (gnat_handle_option, gnat_init_options): Copy arguments.
23256 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
23258 * misc.c (gnat_argv): Make const.
23260 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
23262 * misc.c (save_argc, save_argv): Keep non-static!
23264 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
23266 * misc.c (save_argc, save_argv): Make static.
23267 (gnat_init_options): New prototype.
23268 (gnat_init_options): Update.
23270 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
23272 * gnat_ug.texi: Remove unlikely characters from @vars.
23273 * gnat_ug_vms.texi: Regenerate.
23275 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
23277 * misc.c (record_code_position): Adjust emit_note call.
23279 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
23281 * misc.c (gnat_handle_option): Don't check for missing arguments.
23283 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
23285 * utils.c (end_subprog_body): Adjust expand_function_end call.
23287 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
23289 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
23292 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
23294 * lang.opt: Declare Ada.
23295 * misc.c (gnat_init_options): Update.
23297 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
23299 * utils.c (begin_subprog_body): Adjust init_function_start call.
23301 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
23303 * Make-lang.in: Update to use options.c and options.h.
23304 * misc.c: Include options.h not aoptions.h.
23305 (gnat_handle_option): Abort on unrecognized switch.
23306 (gnat_init_options): Request Ada switches.
23308 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
23310 * lang.opt: Add -Wall.
23311 * misc.c (gnat_handle_option): Handle it.
23313 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
23315 * misc.c (gnat_handle_option): Fix warnings.
23317 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
23319 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
23321 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
23323 * Make-lang.in: Update to handle command-line options.
23324 * lang.opt: New file.
23325 * misc.c: Include aoptions.h.
23326 (cl_options_count, cl_options): Remove.
23327 (gnat_handle_option): New.
23328 (gnat_decode_option): Remove.
23329 (LANG_HOOKS_DECODE_OPTION): Remove.
23330 (LANG_HOOKS_HANDLE_OPTION): Override.
23332 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
23334 * init.c, misc.c, trans.c, utils.c: Remove dead code.
23336 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
23338 * Makefile.in: Replace "host_canonical" with "host" for autoconf
23341 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
23343 * Make-lang.in: Update.
23344 * misc.c: Include opts.h. Define cl_options_count and cl_options.
23346 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
23348 * misc.c (gnat_init_options): Update.
23350 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
23352 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
23353 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
23354 __attribute__ ((__unused__)).
23356 2003-06-05 Jan Hubicka <jh@suse.cz>
23358 * Make-lang.in: Add support for stageprofile and stagefeedback
23360 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
23362 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
23363 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
23365 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
23367 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
23368 Remove non-VMS directive.
23369 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
23371 (Examples of gnatls Usage): Remove VMS alternative.
23373 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
23376 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
23377 and turn ZCX_By_Default back to False since the underlying support
23378 is not quite there yet.
23380 2003-06-01 Andreas Jaeger <aj@suse.de>
23382 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
23383 and ROUND_TYPE_SIZE_UNIT.
23385 2003-05-22 Geert Bosch <bosch@gnat.com>
23387 * gnat_rm.texi : Remove reference to Ada Core Technologies.
23389 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
23391 * trans.c (tree_transform): Use location_t and input_location
23393 (build_unit_elab): Likewise.
23394 * utils.c (create_label_decl): Likewise.
23396 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
23398 * trans.c (tree_transform, build_unit_elab,
23399 set_lineno): Rename lineno to input_line.
23400 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
23401 end_subprog_body): Likewise.
23402 * utils2.c (build_call_raise): Likewise.
23404 2003-05-01 Laurent Guerby <guerby@acm.org>
23407 * 5iosinte.ads: Increase pthread_cond_t size to match recent
23408 LinuxThread and NPTL version, merge from ACT.
23410 2003-04-28 Zack Weinberg <zack@codesourcery.com>
23412 * utils.c (convert): No need to clear TREE_CST_RTL.
23414 2003-04-23 Geert Bosch <bosch@gnat.com>
23416 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
23417 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
23418 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
23419 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
23420 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
23421 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
23422 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
23423 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
23424 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
23425 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
23426 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
23427 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
23428 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
23429 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
23430 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
23431 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
23432 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
23433 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
23434 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
23435 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
23436 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
23437 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
23438 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
23439 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
23440 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
23441 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
23442 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
23443 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
23444 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
23445 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
23446 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
23447 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
23448 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
23449 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
23450 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
23451 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
23452 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
23453 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
23454 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
23455 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
23456 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
23457 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
23458 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
23459 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
23460 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
23461 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
23462 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
23463 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
23464 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
23465 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
23466 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23467 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23468 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
23469 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
23470 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
23471 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
23472 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
23473 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
23474 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
23475 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
23476 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
23477 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
23478 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
23479 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
23480 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
23481 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
23482 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
23483 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
23484 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
23485 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
23486 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
23487 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
23488 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23489 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
23490 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
23491 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
23492 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
23493 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
23494 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
23495 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
23496 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
23497 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
23498 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
23499 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
23500 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
23501 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
23502 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
23503 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23504 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
23505 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
23506 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
23507 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
23508 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
23509 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
23510 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
23511 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
23512 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
23513 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
23514 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
23515 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
23516 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
23517 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
23518 ali.adb, ali.ads, alloc.ads, argv.c,
23519 atree.adb, atree.ads, atree.h, aux-io.c,
23520 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
23521 binde.adb, binde.ads, binderr.adb, binderr.ads,
23522 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
23523 butil.adb, butil.ads, cal.c, calendar.ads,
23524 casing.adb, casing.ads, ceinfo.adb, checks.adb,
23525 checks.ads, cio.c, comperr.adb, comperr.ads,
23526 config-lang.in, csets.adb, csets.ads, csinfo.adb,
23527 cstand.adb, cstand.ads, cuintp.c, debug.adb,
23528 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
23529 dec-io.ads, dec.ads, deftarg.c, directio.ads,
23530 einfo.adb, einfo.ads, elists.adb, elists.ads,
23531 elists.h, errno.c, errout.adb, errout.ads,
23532 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
23533 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
23534 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
23535 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
23536 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
23537 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
23538 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
23539 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
23540 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
23541 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
23542 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
23543 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
23544 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
23545 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
23546 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
23547 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
23548 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
23549 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
23550 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
23551 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
23552 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
23553 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
23554 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
23555 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
23556 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
23557 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
23558 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
23559 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
23560 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
23561 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
23562 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
23563 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
23564 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
23565 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
23566 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
23567 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
23568 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
23569 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
23570 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
23571 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
23572 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
23573 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
23574 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
23575 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
23576 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
23577 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
23578 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
23579 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
23580 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
23581 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
23582 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
23583 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
23584 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
23585 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
23586 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
23587 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
23588 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
23589 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
23590 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
23591 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
23592 lib.adb, lib.ads, live.adb, live.ads,
23593 machcode.ads, make.adb, make.ads, makeusg.adb,
23594 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
23595 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
23596 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
23597 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
23598 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
23599 mlib.ads, namet.adb, namet.ads, nlists.adb,
23600 nlists.ads, opt.adb, opt.ads, osint-b.adb,
23601 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
23602 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
23603 osint.ads, output.adb, output.ads, par-ch10.adb,
23604 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
23605 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
23606 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
23607 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
23608 par-tchk.adb, par-util.adb, par.adb, par.ads,
23609 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
23610 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
23611 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
23612 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
23613 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
23614 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
23615 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
23616 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
23617 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
23618 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
23619 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
23620 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
23621 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
23622 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
23623 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
23624 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
23625 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
23626 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
23627 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
23628 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
23629 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
23630 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
23631 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
23632 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
23633 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
23634 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
23635 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
23636 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
23637 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
23638 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
23639 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
23640 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
23641 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
23642 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
23643 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
23644 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
23645 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
23646 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
23647 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
23648 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
23649 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23650 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
23651 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
23652 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
23653 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
23654 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23655 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
23656 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
23657 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
23658 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
23659 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23660 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
23661 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
23662 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
23663 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
23664 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23665 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
23666 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
23667 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
23668 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
23669 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23670 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
23671 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
23672 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
23673 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
23674 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
23675 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
23676 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
23677 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
23678 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
23679 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
23680 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
23681 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
23682 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
23683 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
23684 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
23685 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
23686 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
23687 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
23688 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
23689 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
23690 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
23691 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
23692 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
23693 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
23694 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
23695 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
23696 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
23697 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
23698 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
23699 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
23700 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
23701 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
23702 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
23703 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
23704 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
23705 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
23706 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
23707 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
23708 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
23709 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23710 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
23711 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
23712 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
23713 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
23714 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
23715 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
23716 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
23717 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
23718 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
23719 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
23720 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
23721 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
23722 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
23723 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
23724 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23725 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
23726 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
23727 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
23728 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
23729 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
23730 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
23731 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
23732 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
23733 snames.ads, sprint.adb, sprint.ads, stand.adb,
23734 stand.ads, stringt.adb, stringt.ads, style.adb,
23735 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
23736 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
23737 switch-m.ads, switch.adb, switch.ads, system.ads,
23738 table.adb, table.ads, targparm.adb, targparm.ads,
23739 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
23740 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
23741 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
23742 ttypef.ads, ttypes.ads, types.adb, types.ads,
23743 uintp.adb, uintp.ads, uname.adb, uname.ads,
23744 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
23745 usage.adb, usage.ads, validsw.adb, validsw.ads,
23746 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
23747 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
23748 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
23749 formatting and other trivial changes from ACT.
23751 2003-04-12 Zack Weinberg <zack@codesourcery.com>
23753 * gigi.h, utils2.c (build_constructor):
23754 Rename gnat_build_constructor. Use build_constructor.
23755 * decl.c (gnat_to_gnu_entity)
23756 * trans.c (tree_transform, pos_to_constructor, extract_values)
23757 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
23758 (unchecked_convert)
23759 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
23760 (fill_vms_descriptor):
23763 2003-04-06 Zack Weinberg <zack@codesourcery.com>
23765 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
23766 * misc.c (gnat_tree_size): New function.
23767 (LANG_HOOKS_TREE_SIZE): Override.
23769 2003-04-03 Jason Merrill <jason@redhat.com>
23771 * misc.c (gnat_adjust_rli): #if 0.
23773 2003-03-31 Geert Bosch <bosch@gnat.com>
23776 * link.c : Fix misspelled "const" keyword
23778 2003-03-23 Mark Mitchell <mark@codesourcery.com>
23781 * utils2.c: Adjust calls to put_var_into_stack.
23783 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
23785 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
23787 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
23789 * misc.c (gnat_init): Update for new prototype.
23791 2003-03-05 Olivier Hainque <hainque@gnat.com>
23794 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
23795 warning, and fix return type for the IN_RTS && !SJLJ case.
23797 2003-03-04 Tom Tromey <tromey@redhat.com>
23799 * Make-lang.in (ada.tags): New target.
23801 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
23804 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
23805 wrapper, which name remains constant whatever underlying GCC
23808 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
23809 the stable interface needed for a-except.
23811 2003-03-02 Andreas Jaeger <aj@suse.de>
23813 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23814 gnat_ug_wnt.texi: Regenerate.
23816 2003-03-02 Laurent Guerby <guerby@acm.org>
23818 * Makefile.in (install-gnatlib): Match previous change there
23821 2003-02-28 Andreas Schwab <schwab@suse.de>
23823 * Make-lang.in (install-gnatlib): Change to ada directory before
23824 running make instead of using ada/Makefile directly.
23826 2003-02-18 Ben Elliston <bje@redhat.com>
23828 Part of fix for PR ada/9406
23829 * gnat_ug.texi (Binder output file): Grammar fix.
23831 2003-02-18 Ben Elliston <bje@redhat.com>
23834 * 5qtaprop.adb (Sleep): Fix typo in comment.
23836 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
23838 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
23839 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23840 gnat_ug_wnt.texi: Regenerate.
23842 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
23844 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
23845 be created if necessary.
23846 (ada.install-common): Let $(DESTDIR)$(bindir) be created
23847 if necessary. Remove erroneous and redundant gnatchop
23848 installation commands. Test for gnatdll before attempting
23850 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
23851 and gnatdll from all plausible locations.
23853 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
23855 * utils2.c (build_unary_op): Don't check flag_volatile.
23856 * gnat_ug.texi: Remove -fvolatile from example.
23857 * gnat_ug_vxw.texi: Likewise.
23859 2003-01-29 Laurent Guerby <guerby@acm.org>
23862 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
23863 * Makefile.in: match previous change.
23864 * Make-lang.in: match previous change.
23866 2003-01-29 Joel Sherrill <joel@OARcorp.com>
23868 * 5rosinte.ads: Add SIGXCPU.
23869 * 5rtpopsp.adb: New file.
23870 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
23871 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
23872 specific file 5rtpopsp.adb.
23873 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
23874 is likely needed for all newlib targets.
23875 * init.c: Add RTEMS specific version of __gnat_initialize().
23877 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23879 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
23881 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23883 * init.c (__gnat_error_handler): Make msg const.
23885 * gmem.c (convert_addresses): Move declaration ...
23886 * adaint.h: ... here.
23887 * adaint.c (convert_addresses): Adapt addrs type to match
23890 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
23892 2003-01-24 Andreas Schwab <schwab@suse.de>
23894 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
23895 size_t to avoid warning.
23897 2003-01-21 Zack Weinberg <zack@codesourcery.com>
23899 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
23901 2003-01-09 Geoffrey Keating <geoffk@apple.com>
23903 * gnat_rm.texi: Remove RCS version number.
23905 * ada-tree.h (union lang_tree_node): Add chain_next option.
23907 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
23909 * Make-lang.in (ada.install-info, ada.install-common,
23910 ada.uninstall): Prepend $(DESTDIR) to the destination
23911 directory in all (un)installation commands.
23912 * Makefile.in (install-gnatlib, install-rts): Ditto.
23914 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
23916 * gnat_rm.texi, gnat_ug.texi: Use @copying.
23917 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23918 gnat_ug_wnt.texi: Regenerate.
23920 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
23922 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
23924 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
23925 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
23926 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
23927 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
23928 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
23929 $(srcdir)/doc/include/gcc-common.texi.
23931 2002-12-15 Geert Bosch <bosch@gnat.com>
23933 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
23935 2002-12-14 Geert Bosch <bosch@gnat.com>
23937 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
23938 case of a body created for a Renaming_As_Body, on which
23939 conformance checks are not performed. Fixes PR ada/5690.
23941 2002-11-30 Zack Weinberg <zack@codesourcery.com>
23943 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
23944 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
23945 not already included.
23946 * Make-lang.in: Update dependencies.
23948 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
23949 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
23950 solution to buffer overflow bug on GNU/Linux.
23952 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
23953 Closes PR ada/5856 and PR ada/6919 !
23954 * bindgen.adb: Remove all references to Public_Version.
23955 * comperr.adb: Remove all references to Public_Version and
23956 GNATPRO_Version; correct bug reporting instructions.
23957 * comperr.ads: Change to match bug box.
23958 * gnatvsn.ads: Remove all references to Public version and
23961 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
23963 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
23967 * config-lang.in: Remove diff_excludes.
23969 2002-11-05 Graham Stott <graham.stott@btinternet.com>
23971 * trans.c (gnu_pending_elaboration_lists): New GC root.
23972 (build_unit_elab): Use..
23974 2002-10-30 Geert Bosch <bosch@gnat.com>
23976 * misc.c : Include optabs.h
23978 * Make-lang.in (misc.o): Add dependency on optabs.h
23980 2002-10-29 Geert Bosch <bosch@gnat.com>
23982 * Make-lang.in (gnatbind): Depend on CONFIG_H
23984 2002-10-29 Geert bosch <bosch@gnat.com>
23986 * misc.c: Unrevert misc.c (1.13)
23988 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
23990 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
23991 maintainership comments.
23993 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
23995 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
23996 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
23997 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
23998 7staprop.adb: Correct statements in comments about
23999 maintainership of GNAT.
24002 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
24003 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
24004 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
24005 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
24006 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
24007 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
24008 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
24009 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
24010 comments about maintainership of GNAT.
24012 PR ada/6919 (forward port of patch for PR ada/5904)
24013 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
24014 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
24015 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
24016 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
24017 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
24018 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
24019 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
24020 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
24021 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
24022 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
24023 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
24024 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
24025 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
24026 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
24027 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
24028 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
24029 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
24030 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
24031 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
24032 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
24033 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
24034 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
24035 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
24036 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
24037 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
24038 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
24039 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
24040 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
24041 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
24042 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
24043 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
24044 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
24045 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
24046 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
24047 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
24048 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
24049 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
24050 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
24051 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
24052 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
24053 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
24054 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
24055 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
24056 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
24057 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
24058 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
24059 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
24060 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
24061 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
24062 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
24063 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
24064 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
24065 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
24066 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
24067 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
24068 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
24069 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
24070 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
24071 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
24072 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
24073 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
24074 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
24075 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
24076 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
24077 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
24078 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
24079 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
24080 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
24081 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
24082 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
24083 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
24084 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
24085 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
24086 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
24087 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
24088 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
24089 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
24090 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
24091 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
24092 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
24093 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
24094 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
24095 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
24096 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
24097 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
24098 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
24099 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
24100 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
24101 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
24102 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
24103 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
24104 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
24105 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
24106 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
24107 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
24108 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
24109 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
24110 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
24111 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
24112 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
24113 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
24114 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
24115 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
24116 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
24117 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
24118 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
24119 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
24120 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
24121 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
24122 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
24123 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
24124 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
24125 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
24126 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
24127 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
24128 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
24129 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
24130 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
24131 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
24132 par-endh.adb par-labl.adb par-load.adb par-prag.adb
24133 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
24134 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
24135 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
24136 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
24137 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
24138 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
24139 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
24140 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
24141 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
24142 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
24143 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
24144 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
24145 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
24146 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
24147 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
24148 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
24149 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
24150 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
24151 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
24152 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
24153 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
24154 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
24155 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
24156 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
24157 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
24158 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
24159 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
24160 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
24161 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
24162 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
24163 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
24164 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
24165 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
24166 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
24167 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
24168 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
24169 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
24170 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
24171 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
24172 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
24173 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
24174 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
24175 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
24176 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
24177 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
24178 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
24179 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
24180 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
24181 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
24182 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
24183 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
24184 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
24185 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
24186 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
24187 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
24188 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
24189 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
24190 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
24191 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
24192 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
24193 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
24194 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
24195 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
24196 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
24197 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
24198 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
24199 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
24200 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
24201 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
24202 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
24203 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
24204 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
24205 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
24206 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
24207 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
24208 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
24209 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
24210 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
24211 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
24212 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
24213 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
24214 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
24215 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
24216 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
24217 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
24218 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
24219 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
24220 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
24221 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
24222 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
24223 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
24224 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
24225 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
24226 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
24227 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
24228 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
24229 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
24230 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
24231 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
24232 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
24233 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
24234 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
24235 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
24236 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
24237 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
24238 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
24239 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
24240 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
24241 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
24242 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
24243 stringt.ads stringt.h style.adb style.ads stylesw.adb
24244 stylesw.ads switch.adb switch.ads sysdep.c system.ads
24245 table.adb table.ads targparm.adb targparm.ads targtyps.c
24246 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
24247 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
24248 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
24249 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
24250 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
24251 usage.ads utils.c utils2.c validsw.adb validsw.ads
24252 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
24253 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
24254 xtreeprs.adb: Correct statements in comments about maintainership
24257 2002-09-23 Zack Weinberg <zack@codesourcery.com>
24259 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
24260 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
24261 * gnatvsn.ads: Gnat_Version_String is now a function.
24262 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
24263 copy the C version_string into a String and return it.
24264 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
24265 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
24266 Remove pragma Ident (Gnat_Version_String). If this was the
24267 sole use of package Gnatvsn, remove the with statement too.
24268 * gnat1drv.adb: Tweak -gnatv output.
24270 2002-09-17 Richard Henderson <rth@redhat.com>
24272 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
24273 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
24274 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
24275 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
24276 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
24277 and real_2expN instead of a loop.
24278 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
24279 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
24281 2002-08-25 Andre Leis <a.leis@gmx.net>
24282 David Billinghurst (David.Billinghurst@riotinto.com>
24284 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
24286 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24288 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
24289 Remove $(CONFIG_H) dependency.
24291 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
24293 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
24295 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24297 * adadecode.c (ada_demangle): Use xstrdup in lieu of
24299 * misc.c (gnat_decode_option): Likewise.
24301 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
24303 * make.adb (Add_Switch): Make Generic_Position a procedure. The
24304 function approach did not work well because of a side effect (the
24305 function call could reallocate the table which was being indexed
24306 using its result). Fixes ada/4851. [RESURRECTED]
24308 2002-07-01 Roger Sayle <roger@eyesopen.com>
24310 * ada/utils.c (builtin_function): Accept an additional parameter.
24312 2002-06-28 Andreas Jaeger <aj@suse.de>
24315 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
24318 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24320 * Makefile.in (SHELL): Set to @SHELL@.
24322 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24324 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
24325 array size calculation.
24327 2002-06-04 Andreas Jaeger <aj@suse.de>
24329 * Make-lang.in (gnatbind): Readd rule that has been lost in last
24332 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
24334 Merge from pch-branch:
24336 * config-lang.in (gtfiles): Add ada-tree.h.
24337 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
24338 (SET_TYPE_MODULUS): New.
24339 (SET_TYPE_INDEX): New.
24340 (SET_TYPE_DIGITS_VALUE): New.
24341 (SET_TYPE_RM_SIZE): New.
24342 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
24343 (SET_TYPE_ADA_SIZE): New.
24344 (SET_TYPE_ACTUAL_BOUNDS): New.
24345 (SET_DECL_CONST_CORRESPONDING_VAR): New.
24346 (SET_DECL_ORIGINAL_FIELD): New.
24347 (TREE_LOOP_ID): Correct typo.
24348 * decl.c: Use new macros.
24349 * utils.c: Include debug.h, use new macros.
24350 * utils2.c: Use new macros.
24352 * ada-tree.h: Update all macros for new tree description.
24353 (struct tree_loop_id): New.
24354 (union lang_tree_node): New.
24355 (struct lang_decl): New.
24356 (struct lang_type): New.
24357 * misc.c (gnat_mark_tree): Delete.
24358 (LANG_HOOKS_MARK_TREE): Delete.
24359 * trans.c (tree_transform): No longer any need to cast
24362 * utils.c (struct language_function): New dummy structure.
24364 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
24365 (misc.o): Likewise.
24366 (utils.o): Likewise; also gtype-ada.h.
24367 * Make-lang.in (gnat1): Add dependency on s-gtype.
24368 (gnatbind): Add dependency on $(CONFIG_H).
24369 * utils.c: Correct last #include.
24370 (stuct e_stack): Remove unnecessary 'static'.
24371 (mark_e_stack): Remove unused prototype.
24373 * scn-nlit.adb: Remove whitespace after version number to
24374 keep lines under 80 chars.
24375 * snames.adb: Likewise.
24376 * treepr.ads: Likewise.
24378 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
24379 (misc.o): Likewise.
24380 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
24381 * config-lang.in (gtfiles): New.
24382 * decl.c: Use gengtype for roots.
24383 * gigi.h: Use gengtype for roots.
24384 * trans.c: Use gengtype for roots.
24385 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
24387 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
24389 * misc.c (gnat_init): Adjust setting of internal_error_function.
24391 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
24393 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
24394 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
24395 gnat_ug_wnt.texi: Regenerate.
24397 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
24399 * 5ntaprop.adb (with System.OS_Primitives): Remove.
24401 * cstreams.c (max_path_len): Move from here ...
24402 * adaint.c (__gnat_max_path_len): ... to here.
24403 * adaint.c (__gnat_max_path_len): Declare.
24404 * g-dirope.adb (Max_Path): Adjust.
24405 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
24406 * i-cstrea.ads (max_path_len): Adjust.
24407 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
24408 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
24410 * Makefile.in, Make-lang.in: Documentation is now built in
24411 Make-lang.in. Store Info and generated Texinfo files in the
24413 * gnat_ug.texi: Remove CVS keywords, correct version number.
24414 Set file name correctly.
24416 * gnat_ug_*.texi: Add.
24417 * .cvsignore: Ignore generated Texinfo files.
24419 2002-05-30 Zack Weinberg <zack@codesourcery.com>
24421 * ada.h: Add MI guard macro.
24422 (SUBTYPE): Define constants with an anonymous enum, not static
24424 (IN): Cast constants to appropriate type before use.
24426 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
24428 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
24431 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24433 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
24434 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
24435 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
24436 (ALL_ADA_CFLAGS): Likewise.
24437 (ADA_INCLUDES): Likewise.
24438 Adapt for new working dir.
24439 (GNATBIND): Use Makefile.in version.
24440 (.SUFFIXES): Copy from Makefile.in.
24441 (ada-warn): Define.
24442 (.adb.o, .ads.o): Copy from Makefile.in.
24443 Added $(OUTPUT_OPTION).
24444 (GNAT1_C_OBJS): Moved from Makefile.in.
24445 Prefix with ada subdir.
24446 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
24447 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
24448 Adapt for new working dir.
24449 (EXTRA_GNATBIND_OBJS): Likewise.
24450 (ADA_BACKEND): Moved from Makefile.in.
24451 Renamed to avoid conflict with global BACKEND.
24453 (TARGET_ADA_SRCS): Moved from Makefile.in.
24454 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
24456 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
24457 (ada_extra_files): Moved from Makefile.in.
24458 Prefix with ada subdir.
24459 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
24460 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
24461 (ada/nmake.ads): Likewise.
24462 (update-sources): Moved from Makefile.in.
24463 Prefix with ada subdir.
24464 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
24465 (ADA_TREE_H): Likewise.
24466 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
24467 (ada/memtrack.o): Likewise.
24468 (ada/adadecode.o): Likewise.
24469 Update dependencies.
24470 (ada/adaint.o): New.
24471 (ada/argv.o): Moved from Makefile.in.
24472 Prefix with ada subdir.
24473 Update dependencies.
24474 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
24475 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
24476 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
24477 Prefix with ada subdir.
24478 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
24479 (GNAT DEPENDENCIES): Regenerate.
24480 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
24481 toplevel Makefile.in.
24482 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
24483 (TARGET_ADA_SRCS): Removed.
24484 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
24485 (GNATBIND_OBJS): Likewise.
24486 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
24487 (BACKEND): Removed.
24488 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
24489 (TREE_H): Likewise.
24490 (ada_extra_files): Likewise.
24491 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
24492 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
24493 (update-sources): Likewise.
24494 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
24495 (ADA_TREE_H): Likewise.
24496 (adadecoce.o): Likewise.
24497 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
24498 (GNAT DEPENDENCIES): Likewise.
24500 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24502 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
24503 * Makefile.in: Likewise.
24505 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24507 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
24508 Restore $(CONFIG_H) and prefix.o dependencies.
24509 (ada.stage[1-4]): Depend on stage?-start.
24511 * Makefile.in (b_gnatb.c): Depend on interfac.o.
24513 2002-05-02 Jim Wilson <wilson@redhat.com>
24515 * utils.c (finish_record_type): Change record_size to record_type.
24517 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
24519 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
24520 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
24521 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
24523 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
24525 * misc.c (gnat_parse_file): Update.
24527 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
24529 * misc.c (gnat_init): Don't set lang_attribute_common.
24531 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
24533 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
24535 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
24537 * gnat_ug.texi: New file.
24539 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
24540 instead of gfdl.texi
24542 * xgnatug.adb, ug_words: New files.
24544 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
24545 gnat_rm and gnat-style manuals.
24547 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
24549 * gigi.h (incomplete_type_error): Remove.
24550 * utils.c (incomplete_type_error): Remove.
24552 2002-04-16 Mark Mitchell <mark@codesourcery.com>
24554 * trans.c (tree_transform): Add has_scope argument to
24555 expand_start_stmt_expr.
24557 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
24559 * gigi.h (truthvalue_conversion): Rename.
24560 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
24561 * trans.c (tree_transform): Update.
24562 * utils2.c (truthvalue_conversion): Rename, update.
24563 (build_binary_op, build_unary_op): Update.
24565 2002-04-04 Laurent Guerby <guerby@acm.org>
24567 * make.adb: Implement -margs, remove restriction about file name placement.
24568 * makeusg.adb: Documentation update.
24569 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
24570 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
24572 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
24574 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
24575 (builtin_function): Similarly.
24577 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
24579 * decl.c (gnat_to_gnu_entity): Update.
24580 * gigi.h (mark_addressable): Rename.
24581 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
24582 * trans.c (tree_transform): Update.
24583 * utils.c (create_var_decl): Update.
24584 * util2.c (build_binary_op, build_unary_op,
24585 fill_vms_descriptor): Update.
24586 (mark_addressable): Rename, update.
24588 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
24590 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
24592 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
24593 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
24594 * trans.c (tree_transform, convert_with_check): Update.
24595 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
24598 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
24600 * gigi.h (finish_incomplete_decl): Rename.
24601 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
24602 * utils.c (gnat_init_decl_processing): Don't set hook.
24603 (finish_incomplete_decl): Rename.
24605 2002-03-29 Andreas Schwab <schwab@suse.de>
24607 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
24610 2001-03-28 Robert Dewar <dewar@gnat.com>
24613 (Remove_Checks): New procedure
24616 (Remove_Checks): New procedure
24619 Use new Duplicate_Subexpr functions
24620 (Duplicate_Subexpr_No_Checks): New procedure
24621 (Duplicate_Subexpr_No_Checks_Orig): New procedure
24622 (Duplicate_Subexpr): Restore original form (checks duplicated)
24623 (Duplicate_Subexpr): Call Remove_Checks
24626 (Duplicate_Subexpr_No_Checks): New procedure
24627 (Duplicate_Subexpr_No_Checks_Orig): New procedure
24628 Add 2002 to copyright notice
24630 * sem_util.adb: Use new Duplicate_Subexpr functions
24633 (Eval_Indexed_Component): This is the place to call
24634 Constant_Array_Ref and to replace the value. We simply merge
24635 the code of this function in here, since it is now no longer
24636 used elsewhere. This fixes the problem of the back end not
24637 realizing we were clever enough to see that this was
24639 (Expr_Val): Remove call to Constant_Array_Ref
24640 (Expr_Rep_Val): Remove call to Constant_Array_Ref
24642 (Constant_Array_Ref): Deal with string literals (patch
24643 suggested by Zack Weinberg on the gcc list)
24645 2001-03-28 Ed Schonberg <schonber@gnat.com>
24647 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
24648 Duplicate_Subexpr_Move_Checks.
24650 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
24651 Duplicate_Subexpr_Move_Checks.
24653 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
24654 value of array exists before retrieving it (it may a private
24655 protected component in a function).
24657 2002-03-28 Geert Bosch <bosch@gnat.com>
24659 * prj-pp.adb : New file.
24661 * prj-pp.ads : New file.
24663 2002-03-28 Andreas Jaeger <aj@suse.de>
24665 * Makefile.in (stamp-sdefault): Fix path for Makefile.
24667 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
24669 * misc.c (gnat_expand_expr): Move prototype.
24671 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
24673 * misc.c (insert_default_attributes): Remove.
24675 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
24677 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
24678 (gnat_init): Don't set hook.
24679 (gnat_expand_expr): Fix prototype.
24681 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
24683 * misc.c (ggc_p): Remove.
24685 2002-03-27 Geert Bosch <bosch@gnat.com>
24687 * prj-makr.ads, prj-makr.adb : New files.
24689 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
24691 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
24692 (lang_mark_tree): Make static, rename.
24694 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
24696 * misc.c (maybe_build_cleanup): Remove.
24698 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
24700 * gigi.h (yyparse): Remove.
24702 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
24704 * gnat_rm.texi: Sync with ACT version.
24705 (From Ben Brosgol <brosgol@gnat.com>)
24707 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
24709 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
24710 (gnat_init): Remove old hook.
24712 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
24714 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
24715 (yyparse): Rename gnat_parse_file.
24717 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
24719 Delete all lines containing "$Revision:".
24720 * xeinfo.adb: Don't look for revision numbers.
24721 * xnmake.adb: Likewise.
24722 * xsinfo.adb: Likewise.
24723 * xsnames.adb: Likewise.
24724 * xtreeprs.adb: Likewise.
24726 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24728 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
24729 gnat_tree_code_name): Delete.
24730 (tree_code_type, tree_code_length, tree_code_name): Define.
24731 (gnat_init): Don't try to copy into the various tree_code
24734 2002-03-11 Richard Henderson <rth@redhat.com>
24736 * Makefile.in (.NOTPARALLEL): Add fake tag.
24738 2002-03-07 Geert Bosch <bosch@gnat.com>
24740 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
24741 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
24742 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
24743 switch-m.adb, switch-m.ads : New files.
24745 2002-03-07 Geert Bosch <bosch@gnat.com>
24747 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
24748 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
24749 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
24750 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
24751 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
24752 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
24753 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
24754 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
24755 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
24756 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
24757 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
24758 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
24759 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
24760 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
24761 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
24762 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
24763 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
24764 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
24765 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
24766 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
24767 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
24768 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
24769 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
24770 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
24771 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
24772 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
24773 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
24774 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
24775 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
24776 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
24777 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
24778 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
24779 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
24780 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
24781 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
24782 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
24783 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
24784 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
24785 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
24786 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
24787 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
24788 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
24789 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
24790 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
24791 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
24792 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
24793 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
24794 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
24795 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
24796 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
24797 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
24798 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
24799 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
24800 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
24801 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
24802 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
24803 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
24804 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
24805 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
24806 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
24807 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
24808 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
24809 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
24810 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
24811 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
24812 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
24813 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
24814 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
24815 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
24816 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
24817 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
24818 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
24819 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
24820 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
24821 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
24822 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
24823 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
24824 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
24825 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
24826 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
24827 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
24828 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
24829 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
24830 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
24831 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
24832 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
24833 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
24834 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
24835 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
24836 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
24837 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
24838 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
24839 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
24840 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
24841 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
24842 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
24843 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
24845 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
24846 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
24847 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
24848 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
24850 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
24851 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
24853 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
24854 to mdll-fil.ad[bs] and mdll-util.ad[bs]
24856 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
24857 from mdllfile.ad[bs] and mdlltool.ad[bs]
24859 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24861 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
24862 lieu of explicit sizeof/sizeof.
24864 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
24866 * misc.c (copy_lang_decl): Remove.
24868 2002-02-27 Zack Weinberg <zack@codesourcery.com>
24870 * misc.c: Delete traditional-mode-related code copied from the
24871 C front end but not used, or used only to permit the compiler
24874 2002-02-07 Richard Henderson <rth@redhat.com>
24876 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
24877 * adaint.h (__gnat_to_gm_time): Update prototype.
24879 2002-01-30 Richard Henderson <rth@redhat.com>
24881 * trans.c (tree_transform) [N_Loop_Statement]: Use
24882 expand_exit_loop_top_cond.
24884 2001-12-23 Richard Henderson <rth@redhat.com>
24886 * utils.c (end_subprog_body): Push GC context around
24887 rest_of_compilation for nested functions.
24889 2001-12-23 Richard Henderson <rth@redhat.com>
24891 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
24893 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
24895 * gnat-style.texi (Declarations and Types): Remove ancient style
24896 rule which was mandated by code generation issues.
24898 * gnat-style.texi (header): Add @dircategory, @direntry.
24899 (title page): Remove date.
24900 (general) Add @./@: where approriate, and two spaces after the
24901 full stop at the end of a sentence. Use @samp markup when
24902 referring concrete lexical entities (keywords, attribute names
24903 etc.), and @syntax for ARM grammar elements. Use @r for English
24904 text in comments. Use @emph for emphasis. Change "if-statements"
24905 etc. to "if statements" (without @samp). Break long lines. Make
24906 casing of section names consistent.
24907 (Identifiers): Use @samp markup for variable names.
24908 (Comments): Use @samp markup for comment characters. Line-end
24909 comments may follow any Ada code, not just statements. Fix
24910 misspelling of "Integer" as "integer".
24911 (Loop statements): Do not use variable name "I", use "J".
24912 (Subprogram Declarations): Document alignment.
24913 (Subprogram Bodies, Block statements): Document empty line before
24916 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
24918 * make.adb (Add_Switch): Make Generic_Position a procedure. The
24919 function approach did not work well because of a side effect (the
24920 function call could reallocate the table which was being indexed
24921 using its result). Fixes ada/4851.
24923 2001-12-19 Robert Dewar <dewar@gnat.com>
24925 * bindgen.adb: Minor reformatting
24927 * cstand.adb: Minor reformatting
24929 * fmap.adb: Minor reformatting
24930 Change name from Add for Add_To_File_Map (Add is much too generic)
24931 Change Path_Name_Of to Mapped_Path_Name
24932 Change File_Name_Of to Mapped_File_Name
24933 Fix copyright dates in header
24936 Change name from Add for Add_To_File_Map (Add is much too generic)
24937 Change Path_Name_Of to Mapped_Path_Name
24938 Change File_Name_Of to Mapped_File_Name
24939 Fix copyright dates in header
24941 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
24942 Add use clause for Fmap.
24944 * make.adb: Minor reformatting
24946 * osint.adb: Minor reformatting. Change of names in Fmap.
24947 Add use clause for Fmap.
24949 * prj-env.adb: Minor reformatting
24951 * prj-env.ads: Minor reformatting
24953 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
24954 error found (there were odd exceptions to this general rule in
24955 -gnatec/-gnatem processing)
24957 2001-12-19 Olivier Hainque <hainque@gnat.com>
24959 * raise.c (__gnat_eh_personality): Exception handling personality
24960 routine for Ada. Still in rough state, inspired from the C++ version
24961 and still containing a bunch of debugging artifacts.
24962 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
24963 inspired from the C++ library.
24965 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
24966 exception handling integration.
24968 2001-12-19 Arnaud Charlet <charlet@gnat.com>
24970 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
24971 (HIE_SOURCES): Add s-secsta.ad{s,b}.
24972 (HIE_OBJS): Add s-fat*.o
24973 (RAVEN_SOURCES): Remove files that are no longer required. Add
24974 interrupt handling files.
24975 (RAVEN_MOD): Removed, no longer needed.
24977 2001-12-19 Robert Dewar <dewar@gnat.com>
24979 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
24980 Add 2001 to copyright date
24982 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
24983 need to force universal inlining for these cases.
24985 2001-12-19 Arnaud Charlet <charlet@gnat.com>
24987 * s-taprob.adb: Minor clean ups so that this unit can be used in
24990 * exp_ch7.adb: Allow use of secondary stack in HI mode.
24991 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
24993 2001-12-19 Vincent Celier <celier@gnat.com>
24995 * prj-tree.ads (Project_Node_Record): Add comments for components
24996 Pkg_Id and Case_Insensitive.
24998 2001-12-19 Pascal Obry <obry@gnat.com>
25000 * g-socket.adb: Minor reformatting. Found while reading code.
25002 2001-12-19 Robert Dewar <dewar@gnat.com>
25004 * prj-tree.ads: Minor reformatting
25006 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
25008 * config-lang.in (diff_excludes): Remove.
25010 2001-12-17 Ed Schonberg <schonber@gnat.com>
25012 * sem_res.adb (Resolve_Selected_Component): do not generate a
25013 discriminant check if the selected component is a component of
25014 the argument of an initialization procedure.
25016 * trans.c (tree_transform, case of arithmetic operators): If result
25017 type is private, the gnu_type is the base type of the full view,
25018 given that the full view itself may be a subtype.
25020 2001-12-17 Robert Dewar <dewar@gnat.com>
25022 * sem_res.adb: Minor reformatting
25024 * trans.c (tree_transform, case N_Real_Literal): Add missing third
25025 parameter in call to Machine (unknown horrible effects from this
25028 * urealp.h: Add definition of Round_Even for call to Machine
25029 Add third parameter for Machine
25031 2001-12-17 Ed Schonberg <schonber@gnat.com>
25033 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
25034 predefined units in No_Run_Time mode.
25036 2001-12-17 Richard Kenner <kenner@gnat.com>
25038 * misc.c (insn-codes.h): Now include.
25040 2001-12-17 Olivier Hainque <hainque@gnat.com>
25042 * a-except.adb: Preparation work for future integration of the GCC 3
25043 exception handling mechanism
25044 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
25045 to factorize previous code sequences and make them externally callable,
25046 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
25047 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
25048 Use the new notification routines.
25050 2001-12-17 Emmanuel Briot <briot@gnat.com>
25052 * prj-tree.ads (First_Choice_Of): Document the when others case
25054 2001-12-17 Arnaud Charlet <charlet@gnat.com>
25056 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
25057 HI-E mode, in order to support Ravenscar profile properly.
25059 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
25060 mode on 32 bits targets.
25062 2001-12-17 Vincent Celier <celier@gnat.com>
25064 * fmap.adb: Initial version.
25066 * fmap.ads: Initial version.
25068 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
25069 If search is successfully done, add to mapping.
25071 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
25074 (Gnatmake): Add new local variable Mapping_File_Name.
25075 Create mapping file when using project file(s).
25076 Delete mapping file before exiting.
25078 * opt.ads (Mapping_File_Name): New variable
25080 * osint.adb (Find_File): Use path name found in mapping, if any.
25082 * prj-env.adb (Create_Mapping_File): New procedure
25084 * prj-env.ads (Create_Mapping_File): New procedure.
25086 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
25089 * usage.adb: Add entry for new switch -gnatem.
25091 * Makefile.in: Add dependencies for fmap.o.
25093 2001-12-17 Ed Schonberg <schonber@gnat.com>
25095 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
25096 is a package instantiation rewritten as a package body.
25097 (Install_Withed_Unit): Undo previous change, now redundant.
25099 2001-12-17 Gary Dismukes <dismukes@gnat.com>
25102 (Compute_Length): Move conversion to Unsigned to callers.
25103 (Get_Max_Size): Convert Len expression to Unsigned after calls to
25104 Compute_Length and Determine_Range.
25105 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
25106 Compute_Length and Determine_Range.
25107 Above changes fix problem with length computation for supernull arrays
25108 where Max (Len, 0) wasn't getting applied due to the Unsigned
25109 conversion used by Compute_Length.
25111 2001-12-17 Arnaud Charlet <charlet@gnat.com>
25114 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
25115 System.Secondary_Stack.
25116 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
25118 Remove unused entity RE_Exception_Data.
25120 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
25122 * rident.ads (No_Secondary_Stack): New restriction.
25124 2001-12-17 Joel Brobecker <brobecke@gnat.com>
25126 * gnat_rm.texi: Fix minor typos. Found while reading the section
25127 regarding "Bit_Order Clauses" that was sent to a customer.
25128 Very interesting documentation!
25130 2001-12-17 Robert Dewar <dewar@gnat.com>
25132 * sem_case.adb (Choice_Image): Avoid creating improper character
25133 literal names by using the routine Set_Character_Literal_Name. This
25134 fixes bombs in certain error message cases.
25136 2001-12-17 Arnaud Charlet <charlet@gnat.com>
25138 * a-reatim.adb: Minor reformatting.
25140 2001-12-17 Ed Schonberg <schonber@gnat.com>
25142 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
25143 case where the formal is an extension of another formal in the current
25144 unit or in a parent generic unit.
25146 2001-12-17 Arnaud Charlet <charlet@gnat.com>
25148 * s-tposen.adb: Update comments. Minor reformatting.
25149 Minor code clean up.
25151 * s-tarest.adb: Update comments. Minor code reorganization.
25153 2001-12-17 Gary Dismukes <dismukes@gnat.com>
25155 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
25158 2001-12-17 Robert Dewar <dewar@gnat.com>
25160 * exp_attr.adb: Minor reformatting
25162 2001-12-17 Ed Schonberg <schonber@gnat.com>
25164 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
25165 derivations nested within a child unit: verify that the parent
25166 type is declared in an outer scope.
25168 2001-12-17 Robert Dewar <dewar@gnat.com>
25170 * sem_ch12.adb: Minor reformatting
25172 2001-12-17 Ed Schonberg <schonber@gnat.com>
25174 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
25175 warning if current unit is a predefined one, from which bodies may
25178 2001-12-17 Robert Dewar <dewar@gnat.com>
25180 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
25181 Fix header format. Add 2001 to copyright date.
25183 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
25184 which caused CE during compilation if checks were enabled.
25186 2001-12-17 Vincent Celier <celier@gnat.com>
25189 (Switches_Of): New function
25190 (Test_If_Relative_Path): New procedure
25191 (Add_Switches): Use new function Switches_Of
25192 (Collect_Arguments_And_Compile): Use new function Switches_Of.
25193 When using a project file, test if there are any relative
25194 search path. Fail if there are any.
25195 (Gnatmake): Only add switches for the primary directory when not using
25196 a project file. When using a project file, change directory to the
25197 object directory of the main project file. When using a project file,
25198 test if there are any relative search path. Fail if there are any.
25199 When using a project file, fail if specified executable is relative
25200 path with directory information, and prepend executable, if not
25201 specified as an absolute path, with the exec directory. Make sure
25202 that only one -o switch is transmitted to the linker.
25204 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
25207 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
25208 when using a non standard naming scheme.
25209 (Check_Ada_Naming_Scheme): Make sure that error messages
25210 do not raise exceptions.
25211 (Is_Illegal_Append): Return True if there is no dot in the suffix.
25212 (Language_Independent_Check): Check the exec directory.
25214 * prj.adb (Project_Empty): Add new component Exec_Directory
25217 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
25218 (Project_Data): Add component Exec_Directory
25220 * snames.adb: Updated to match snames.ads revision 1.215
25222 * snames.ads: Added Exec_Dir
25224 2001-12-17 Robert Dewar <dewar@gnat.com>
25226 * make.adb: Minor reformatting
25228 * prj-nmsc.adb: Minor reformatting
25230 * snames.adb: Updated to match snames.ads
25232 * snames.ads: Alphebetize entries for project file
25234 2001-12-17 Ed Schonberg <schonber@gnat.com>
25236 * trans.c (process_freeze_entity): Do nothing if the entity is a
25237 subprogram that was already elaborated.
25239 2001-12-17 Richard Kenner <kenner@gnat.com>
25241 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
25242 and Esize if object is referenced via pointer.
25244 2001-12-17 Ed Schonberg <schonber@gnat.com>
25246 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
25247 is discrete before analyzing choices.
25249 2001-12-17 Joel Brobecker <brobecke@gnat.com>
25251 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
25252 containing the name of the Ada Main Program. This string is mainly
25253 intended for the debugger.
25254 (Gen_Output_File_C): Do the equivalent change when generating a C file.
25256 2001-12-17 Robert Dewar <dewar@gnat.com>
25258 * ali.adb: Set new Dummy_Entry field in dependency entry
25260 * ali.ads: Add Dummy_Entry field to source dependency table
25262 * bcheck.adb (Check_Consistency): Ignore dummy D lines
25264 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
25266 * lib-writ.ads: Document dummy D lines for missing files.
25268 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
25270 2001-12-17 Robert Dewar <dewar@gnat.com>
25272 * ali.adb: Type reference does not reset current file.
25274 * ali.adb: Recognize and scan renaming reference
25276 * ali.ads: Add spec for storing renaming references.
25278 * lib-xref.ads: Add documentation for handling of renaming references
25280 * lib-xref.adb: Implement output of renaming reference.
25283 (Determine_Range): Document local variables
25284 (Determine_Range): Make sure Hbound is initialized. It looks as though
25285 there could be a real problem here with an uninitialized reference
25286 to Hbound, but no actual example of failure has been found.
25288 2001-12-17 Laurent Pautet <pautet@gnat.com>
25291 Fix comment of Shutdown_Socket and Close_Socket. These functions
25292 should not fail silently because if they are called twice, this
25293 probably means that there is a race condition in the user program.
25294 Anyway, this behaviour is consistent with the rest of this unit.
25295 When an error occurs, an exception is raised with the error message
25296 as exception message.
25298 2001-12-17 Robert Dewar <dewar@gnat.com>
25300 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
25301 that it happens before modification of Sloc values for -gnatD.
25303 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
25304 so that it happens before modification of Sloc values for -gnatD.
25306 * switch.adb: Minor reformatting
25308 2001-12-15 Richard Henderson <rth@redhat.com>
25310 * sem_ch7.adb: Wrap comment.
25312 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
25314 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
25315 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
25316 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
25317 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
25318 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
25319 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
25320 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
25321 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
25322 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
25323 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
25324 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
25325 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
25326 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
25327 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
25328 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
25329 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
25330 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
25331 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
25332 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
25333 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
25334 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
25335 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
25336 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
25337 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
25340 2001-12-14 Vincent Celier <celier@gnat.com>
25342 * osint.adb(Create_Debug_File): When an object file is specified,
25343 put the .dg file in the same directory as the object file.
25345 2001-12-14 Robert Dewar <dewar@gnat.com>
25347 * osint.adb: Minor reformatting
25349 * lib-xref.adb (Output_Instantiation): New procedure to generate
25350 instantiation references.
25352 * lib-xref.ads: Add documentation of handling of generic references.
25354 * ali.adb (Read_Instantiation_Ref): New procedure to read
25355 instantiation references
25357 * ali.ads: Add spec for storing instantiation references
25359 * bindusg.adb: Minor reformatting
25361 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25363 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25365 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25367 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25371 Add 2001 to copyright date
25372 Add entry for Latin-5 (Cyrillic ISO-8859-5)
25374 2001-12-14 Matt Gingell <gingell@gnat.com>
25376 * adaint.c: mktemp is a macro on Lynx and can not be used as an
25379 2001-12-14 Richard Kenner <kenner@gnat.com>
25381 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
25382 if operand is CONSTRUCTOR.
25384 2001-12-14 Ed Schonberg <schonber@gnat.com>
25386 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
25387 before emiting check on right-hand side, so that exception information
25390 2001-12-14 Richard Kenner <kenner@gnat.com>
25392 * utils.c (create_var_decl): Throw away initializing expression
25393 if just annotating types and non-constant.
25395 2001-12-14 Vincent Celier <celier@gnat.com>
25397 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
25400 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
25402 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
25404 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
25406 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
25408 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
25410 * ChangeLog: Remove piece of diff output.
25412 2001-12-14 Geert Bosch <bosch@gnat.com>
25414 * config-lang.in: Update copyright notice
25416 * layout.adb: Remove commented out code.
25418 * mdllfile.ads: Update copyright notice. Fix header format.
25420 * sem_case.ads: Likewise.
25422 * sem_ch3.adb: Minor reformatting.
25424 2001-12-12 Geert Bosch <bosch@gnat.com>
25426 * freeze.ads: Update copyright date.
25428 * g-comlin.ads: Minor reformatting.
25430 * gnat-style.texi: Fix typo.
25432 2001-12-12 Geert Bosch <bosch@gnat.com>
25434 * einfo.h: Regenerate.
25436 2001-12-12 Ed Schonberg <schonber@gnat.com>
25438 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
25439 on known node types, rather than untyped fields. Further cleanups.
25441 2001-12-12 Robert Dewar <dewar@gnat.com>
25444 (Save_Entity_Descendant): Minor comment update.
25445 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
25446 of an N_Attribute_Reference node. As per note below, this does not
25447 eliminate need for Associated_Node in attribute ref nodes.
25448 (Associated_Node): Documentation explicitly mentions attribute
25449 reference nodes, since this field is used in such nodes.
25451 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
25453 2001-12-12 Robert Dewar <dewar@gnat.com>
25455 * s-stalib.adb: Add more comments on with statements being needed
25457 * par-ch12.adb: Minor reformatting
25459 * prj-dect.ads: Fix copyright header
25461 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
25462 inputs fit in 32 bits, but the result still overflows.
25464 * s-fatgen.ads: Minor comment improvement
25466 2001-12-12 Ed Schonberg <schonber@gnat.com>
25468 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
25469 formal derived type, look for an inherited component from the full
25470 view of the parent, if any.
25472 2001-12-12 Robert Dewar <dewar@gnat.com>
25474 * checks.ads (Apply_Alignment_Check): New procedure.
25476 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
25477 ensure that the alignment of objects with address clauses is
25478 appropriate, and raise PE if not.
25480 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
25481 Exp_Pakd.Known_Aligned_Enough
25483 * mdllfile.ads: Minor reformatting
25485 * mlib-fil.ads: Minor reformatting
25487 2001-12-12 Ed Schonberg <schonber@gnat.com>
25489 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
25490 fix to any component reference if enclosing record has non-standard
25493 2001-12-12 Vincent Celier <celier@gnat.com>
25495 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
25498 2001-12-12 Ed Schonberg <schonber@gnat.com>
25500 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
25503 2001-12-12 Robert Dewar <dewar@gnat.com>
25505 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
25507 2001-12-12 Emmanuel Briot <briot@gnat.com>
25509 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
25510 and it adds dependencies to system.io.
25512 2001-12-12 Pascal Obry <obry@gnat.com>
25514 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
25517 2001-12-11 Ed Schonberg <schonber@gnat.com>
25519 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
25520 that is the parent of other generics, the instance body replaces the
25521 instance node. Retrieve the instance of the spec, which is the one
25522 that is visible in clients and within the body.
25524 2001-12-11 Vincent Celier <celier@gnat.com>
25526 * gnatmain.adb: Initial version.
25528 * gnatmain.ads: Initial version.
25530 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
25532 * snames.adb: Updated to match snames.ads.
25534 * snames.ads: Added Gnatstub.
25536 2001-12-11 Vincent Celier <celier@gnat.com>
25538 * prj-attr.adb (Initialization_Data): Change name from
25539 Initialisation_Data.
25541 2001-12-11 Emmanuel Briot <briot@gnat.com>
25543 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
25544 + and * applied to backslashed expressions like \r.
25546 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
25548 * g-os_lib.ads: String_List type added, Argument_List type is now
25549 subtype of String_List.
25551 2001-12-11 Robert Dewar <dewar@gnat.com>
25553 * g-os_lib.ads: Change copyright to FSF
25554 Add comments for String_List type
25556 2001-12-11 Vincent Celier <celier@gnat.com>
25558 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
25559 string to the buffer).
25561 2001-12-11 Ed Schonberg <schonber@gnat.com>
25563 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
25566 * sem_attr.adb: Simplify previous fix for Address.
25567 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
25568 to avoid anomalies where the bound of the type appears to raise
25571 2001-12-11 Robert Dewar <dewar@gnat.com>
25573 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
25576 2001-12-11 Ed Schonberg <schonber@gnat.com>
25578 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
25579 renamed unit before checking for recursive instantiations.
25581 2001-12-11 Emmanuel Briot <briot@gnat.com>
25583 * prj.ads: Add comments for some of the fields.
25585 2001-12-11 Robert Dewar <dewar@gnat.com>
25587 * lib-xref.adb (Output_Refs): Don't output type references outside
25588 the main unit if they are not otherwise referenced.
25590 2001-12-11 Ed Schonberg <schonber@gnat.com>
25592 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
25593 code and diagnose additional illegal uses
25595 * sem_util.adb (Is_Object_Reference): An indexed component is an
25596 object only if the prefix is.
25598 2001-12-11 Vincent Celier <celier@gnat.com>
25600 * g-diopit.adb: Initial version.
25602 * g-diopit.ads: Initial version.
25605 (Expand_Path): Avoid use of Unbounded_String
25606 (Find, Wildcard_Iterator): Moved to child package Iteration
25608 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
25610 2001-12-11 Robert Dewar <dewar@gnat.com>
25612 * sem_attr.adb: Minor reformatting
25614 2001-12-11 Ed Schonberg <schonber@gnat.com>
25616 * sem_ch3.adb: Clarify some ???.
25618 2001-12-11 Robert Dewar <dewar@gnat.com>
25620 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
25621 Exp_Pakd.Known_Aligned_Enough
25623 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
25624 version is moved to Exp_Ch13.
25626 2001-12-11 Robert Dewar <dewar@gnat.com>
25628 * einfo.ads: Minor reformatting
25630 * exp_ch5.adb: Add comment for previous.change
25632 * ali.adb: New interface for extended typeref stuff.
25634 * ali.ads: New interface for typeref stuff.
25636 * checks.adb (Apply_Alignment_Check): New procedure.
25638 * debug.adb: Add -gnatdM for modified ALI output
25640 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
25642 * lib-xref.adb: Extend generation of <..> notation to cover
25643 subtype/object types. Note that this is a complete rewrite,
25644 getting rid of the very nasty quadratic algorithm previously
25645 used for derived type output.
25647 * lib-xref.ads: Extend description of <..> notation to cover
25648 subtype/object types. Uses {..} for these other cases.
25649 Also use (..) for pointer types.
25651 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
25653 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
25654 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
25656 2001-12-11 Vincent Celier <celier@gnat.com>
25659 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
25660 Changed /BIND_ONLY to /ACTIONS=BIND
25661 Changed /LINK_ONLY to /ACTIONS=LINK
25663 2001-12-11 Ed Schonberg <schonber@gnat.com>
25665 * sem_ch8.adb (Find_Selected_Component): improved search for a
25666 candidate package in case of error.
25668 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
25669 chain back on scope stack before reinstalling use clauses.
25671 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
25672 is enabled, do not kill the code for the condition, to preserve
25675 2001-12-11 Robert Dewar <dewar@gnat.com>
25677 * checks.adb (Insert_Valid_Check): Apply validity check to expression
25678 of conversion, not to result of conversion.
25680 2001-12-11 Ed Schonberg <schonber@gnat.com>
25682 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
25683 before freezing parent. If the declarations are mutually recursive,
25684 an access to the current record type may be frozen before the
25685 derivation is complete.
25687 2001-12-05 Vincent Celier <celier@gnat.com>
25689 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
25690 -c /COMPILE_ONLY, -l /LINK_ONLY
25693 (Bind_Only): New Flag
25694 (Link_Only): New flag
25696 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
25699 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
25702 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
25703 (Gnatmake): Set the step flags. Only perform a step if the
25704 corresponding step flag is True.
25705 (Scan_Make_Arg): Reset the bind and link step flags when -u
25706 or -gnatc has been specified.
25708 2001-12-05 Ed Schonberg <schonber@gnat.com>
25710 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
25711 get bounds from right operand.
25713 * sem_eval.adb: Minor reformatting
25715 * exp_util.adb (Make_Literal_Range): use bound of literal rather
25716 than Index'First, its lower bound may be different from 1.
25718 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
25721 2001-12-05 Vincent Celier <celier@gnat.com>
25723 * prj-nmsc.adb Minor reformatting
25725 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
25726 set and libraries are not supported.
25728 2001-12-05 Ed Schonberg <schonber@gnat.com>
25730 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
25731 private view explicitly, so the back-end can treat as a global
25734 2001-12-05 Ed Schonberg <schonber@gnat.com>
25736 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
25737 unit, always replace instance node with new body, for ASIS use.
25739 2001-12-05 Vincent Celier <celier@gnat.com>
25741 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
25742 libraries are not supported and both attributes Library_Name and
25743 Library_Dir are specified.
25745 * prj-proc.adb (Expression): Set location of Result to location of
25748 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
25749 (prj-nmsc is now importing MLib.Tgt)
25751 * prj-proc.adb: Put the change indicated above that was forgotten.
25753 2001-12-05 Robert Dewar <dewar@gnat.com>
25755 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
25757 2001-12-05 Ed Schonberg <schonber@gnat.com>
25759 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
25760 constraint, introduce explicit subtype declaration and derive from it.
25762 * sem_ch3.adb: Minor reformatting
25764 2001-12-05 Robert Dewar <dewar@gnat.com>
25766 * checks.adb (Determine_Range): Increase cache size for checks.
25769 * exp_ch6.adb: Minor reformatting
25770 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
25771 a parameter whose root type is System.Address, since treating such
25772 subprograms as pure in the code generator is almost surely a mistake
25773 that will lead to unexpected results.
25775 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
25776 change handling of conversions.
25778 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
25780 2001-12-05 Ed Schonberg <schonber@gnat.com>
25782 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
25783 aggregate with static wrong size, attach generated Raise node to
25786 2001-12-05 Robert Dewar <dewar@gnat.com>
25788 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
25789 Fixes compilation abandoned bomb in B24009B.
25791 2001-12-05 Ed Schonberg <schonber@gnat.com>
25794 Document use of Associated_Node on Selected_Components.
25795 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
25796 to clarify use of untyped descendant fields.
25798 2001-12-05 Robert Dewar <dewar@gnat.com>
25800 * prj-dect.ads: Add ??? comment
25801 Add 2001 to copyright notice (was not done in after all)
25803 * prj-part.adb: Minor reformatting. Reword one awkward error message.
25805 * prj.ads: Minor reformatting throughout, and add some ??? comments
25807 * snames.ads: Minor reformatting
25809 2001-12-05 Geert Bosch <bosch@gnat.com>
25811 * snames.adb: Autoupdate
25813 2001-12-05 Vincent Celier <celier@gnat.com>
25815 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
25817 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
25819 * prj-env.adb: Minor comment changes (modifying -> extends).
25821 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
25823 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
25826 * prj.adb (Initialize): Change Modifying to Extends.
25828 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
25830 * prj.ads: Minor comment change (Modifying -> extending).
25832 * snames.ads: Change modifying to extends.
25834 2001-12-05 Robert Dewar <dewar@gnat.com>
25836 * sem_warn.adb: Remove stuff for conditionals, we are not going to
25839 * sem_warn.ads: Remove stuff for conditionals, we are not going to
25840 do this after all. Add 2001 to copyright notice
25842 2001-12-04 Geert Bosch <bosch@gnat.com>
25844 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
25846 2001-12-04 Robert Dewar <dewar@gnat.com>
25848 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
25849 location if we already have errors. Stops some cases of cascaded
25852 * errout.adb: Improve comment.
25854 2001-12-04 Robert Dewar <dewar@gnat.com>
25857 (Analyze_Formal_Type_Definition): Defend against Error.
25858 (Analyze_Formal_Subprogram): Defend against Error.
25860 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
25861 remove following semicolon if present. Removes cascaded error.
25863 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
25866 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
25867 exceptions equals 0.
25868 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
25869 Fixes PIWG E tests (which have to be run with -gnatL).
25871 2001-12-04 Robert Dewar <dewar@gnat.com>
25873 * einfo.ads: Minor reformatting
25875 2001-12-04 Ed Schonberg <schonber@gnat.com>
25877 * einfo.ads: Block_Node points to the identifier of the block, not to
25878 the block node itself, to preserve the link when the block is
25879 rewritten, e.g. within an if-statement with a static condition.
25881 * inline.adb (Cleanup_Scopes): recover block statement from block
25882 entity using new meaning of Block_Node.
25884 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
25885 identifier of block node, rather than to node itself.
25887 2001-12-04 Gary Dismukes <dismukes@gnat.com>
25890 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
25891 (Discrimify): Go back to setting the Etypes of the selected component
25892 because the Vname component does not exist at this point and will
25893 fail name resolution. Also set Analyzed.
25894 Remove with and use of Sem_Res.
25896 2001-12-04 Arnaud Charlet <charlet@gnat.com>
25898 * Makefile.in: (HIE_SOURCES): add s-fat*.
25900 2001-12-04 Robert Dewar <dewar@gnat.com>
25903 (Compile_Time_Known_Attribute): New procedure.
25904 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
25905 proper range check.
25907 2001-12-04 Ed Schonberg <schonber@gnat.com>
25909 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
25910 processing discriminants to diagnose illegal default values.
25912 2001-12-04 Ed Schonberg <schonber@gnat.com>
25914 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
25915 access discriminant within a type extension that constrains its
25916 parent discriminants.
25918 2001-12-04 Ed Schonberg <schonber@gnat.com>
25920 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
25921 is malformed, use instance of Any_Id to allow analysis to proceed.
25923 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
25924 type definition is illegal.
25925 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
25928 2001-12-04 Ed Schonberg <schonber@gnat.com>
25930 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
25933 2001-12-04 Robert Dewar <dewar@gnat.com>
25935 * errout.adb: Minor reformatting
25937 2001-12-04 Robert Dewar <dewar@gnat.com>
25939 * exp_util.adb: Minor reformatting from last change
25941 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
25942 which is a rewriting of an expression, traverse the original
25943 expression to remove warnings that may have been posted on it.
25945 2001-12-04 Ed Schonberg <schonber@gnat.com>
25947 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
25948 record that has other packed components.
25950 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
25952 * adaint.c: Minor cleanups.
25954 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
25956 * adaint.c: Do not use utime.h on vxworks.
25958 2001-12-04 Arnaud Charlet <charlet@gnat.com>
25960 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
25961 more confusion than it solves.
25963 2001-12-04 Geert bosch <bosch@gnat.com>
25965 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
25967 2001-12-04 Geert Bosch <bosch@gnat.com>
25969 * Makefile.in (update-sources): New target.
25970 For use by gcc_release script.
25972 2001-12-04 Ed Schonberg <schonber@gnat.com>
25974 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
25975 a configuration pragma, it is now legal wherever a pragma can appear.
25977 2001-12-04 Zack Weinberg <zack@codesourcery.com>
25979 * Makefile.in: Don't set ALL. Delete @cross_defines@,
25980 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
25981 is now @CROSS@ -DIN_GCC; update comment.
25983 2001-12-04 Robert Dewar <dewar@gnat.com>
25985 * einfo.adb (Has_Pragma_Pure_Function): New flag.
25986 Fix problem that stopped ceinfo from working
25988 * einfo.ads (Has_Pragma_Pure_Function): New flag.
25990 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
25992 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
25995 (File_Time_Stamp): New procedure.
25996 (Preserve_Mode): New boolean.
25997 (Write_Unit): Pass time stamp.
25998 Implement -p switch (preserve time stamps).
26000 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
26002 * gnatchop.adb: Do usage info for -p switch
26004 * adaint.h (__gnat_set_file_time_name): New function
26006 * adaint.c (__gnat_set_file_time_name): Implement
26008 * adaint.h: Fix typo
26010 2001-12-03 Robert Dewar <dewar@gnat.com>
26012 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
26013 have Associated_Node.
26015 2001-12-03 Robert Dewar <dewar@gnat.com>
26017 * prj-proc.adb: Minor reformatting
26019 * make.adb: Minor reformatting
26021 2001-12-03 Geert Bosch <bosch@gnat.com>
26023 * make.adb: Minor reformatting.
26025 2001-12-03 Robert Dewar <dewar@gnat.com>
26027 * sem_ch12.adb: Minor reformatting
26029 2001-12-03 Ed Schonberg <schonber@gnat.com>
26031 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
26032 push Standard on the stack before analyzing the instance body,
26033 in order to have a clean visibility environment.
26035 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
26037 2001-12-03 Ed Schonberg <schonber@gnat.com>
26039 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
26040 instantiation of a body that contains an inlined body.
26042 2001-12-03 Ed Schonberg <schonber@gnat.com>
26045 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
26046 to prevent freezing within formal packages.
26047 (Freeze_Subprogram_Body): If body comes from another instance that
26048 appeared before its own body, place freeze node at end of current
26049 declarative part, to prevent a back-end crash.
26050 (Inline_Instance_Body): Handle properly a package instance within
26051 a subprogram instance that is a child unit.
26053 2001-12-01 Graham Stott <grahams@redhat.com>
26055 * Makefile.in (misc.o): Add missing $(srcdir) prefix
26056 and add optabs.h dependency.
26058 * misc.c: Include optabs.h
26059 (gnat_tree_code_type): Make static and const.
26060 (gnat_tree_code_length): Likewise.
26061 (gnat_tree_code_name): Likewise.
26062 (update_setjmp_buf): Obtain operands mode from insn_data.
26064 2001-11-29 Richard Henderson <rth@redhat.com>
26066 * init.c: Remove obsolete dwarf2 frame.h section.
26068 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
26070 * Make-lang.in (ada.generated-manpages): New dummy target.
26072 2001-11-29 Ed Schonberg <schonber@gnat.com>
26074 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
26075 into Command, an array conversion is illegal here. Uncovered by
26078 2001-11-28 Geert Bosch <bosch@gnat.com>
26080 * init.c: Minor whitespace changes.
26082 2001-11-28 Doug Rupp <rupp@gnat.com>
26084 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
26087 2001-11-28 Zack Weinberg <zack@codesourcery.com>
26089 * misc.c (gnat_expand_constant): Move declaration above
26090 definition of lang_hooks.
26091 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
26092 (gnat_init): lang_expand_constant no longer exists.
26094 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
26095 always have vprintf.
26096 (gnat_init): Always call set_internal_error_function.
26098 2001-11-27 Andreas Jaeger <aj@suse.de>
26100 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
26102 2001-11-27 Laurent Guerby <guerby@acm.org>
26104 * Makefile.in: Regenerate Ada dependencies.
26106 2001-11-26 Richard Henderson <rth@redhat.com>
26108 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
26109 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
26110 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
26112 2001-11-25 Laurent Guerby <guerby@acm.org>
26114 * sysdep.c (rts_get_*): Fix style.
26116 2001-11-19 Laurent Guerby <guerby@acm.org>
26118 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
26119 since it is of no apparent use and cause warnings.
26121 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
26123 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
26125 (gnat_init): Don't return NULL.
26126 (finish_parse): Remove.
26128 2001-11-17 Laurent Guerby <guerby@acm.org>
26130 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
26131 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
26132 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
26133 * lang-spec.h: Add missing struct field to silence warnings.
26134 * sysdep.c (rts_get_*): Provide K&R prototype.
26135 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
26136 * traceback.c (Unlock_Task, Lock_Task): Likewise.
26137 * tracebak.c (__gnat_backtrace): Remove unused variable.
26138 * utils.c (end_subprog_body): Move to K&R style.
26140 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26142 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
26144 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
26146 * misc.c (gnat_init): Change prototype. Include the
26147 functionality of the old init_parse and init_decl_processing.
26148 (gnat_init_decl_processing): New prototype.
26149 (init_parse): Remove.
26150 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
26152 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
26154 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
26155 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
26156 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
26157 set_yydebug): Remove.
26159 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
26161 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
26162 (struct lang_hooks): Constify.
26163 (language_string, lang_identify): Remove.
26164 * utils.c (init_decl_processing): Update.
26166 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
26168 * misc.c: Include langhooks-def.h.
26169 * Makefile.in: Update.
26171 2001-10-30 Robert Dewar <dewar@gnat.com>
26174 (Check_Identifier): Rewrite circuit to be compatible with use of letters
26175 in the upper half of ASCII.
26176 (Check_Identifier): Minor reformatting
26178 2001-10-30 Geert Bosch <bosch@gnat.com>
26180 * (Associated_Node, Set_Associated_Node): Do not check for
26183 2001-10-30 Robert Dewar <dewar@gnat.com>
26185 * a-reatim.ads: Minor reformatting
26187 2001-10-30 Robert Dewar <dewar@gnat.com>
26189 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
26190 undocumented declarations.
26192 2001-10-30 Pascal Obry <obry@gnat.com>
26194 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
26195 to the binder and linker.
26198 * mdll.ads: Fix layout. Update copyright notice.
26200 * mdll.adb: Fix layout. Update copyright notice.
26202 2001-10-30 Robert Dewar <dewar@gnat.com>
26204 * usage.adb: Minor fix to output for -gnaty.
26206 2001-10-30 Ed Schonberg <schonber@gnat.com>
26208 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
26209 to accommodate all its possible values.
26211 * a-reatim.adb (Split): Special-case handling of Time_Span_First
26212 and of small absolute values of T.
26214 2001-10-30 Richard Kenner <kenner@gnat.com>
26216 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
26217 set_mem_attributes since not needed and wrong if RESULT if a REG;
26218 fixes ACATS failures.
26220 2001-10-30 Geert Bosch <bosch@gnat.com>
26222 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
26223 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
26225 2001-10-30 Robert Dewar <dewar@gnat.com>
26227 * bindusg.adb: Undocument -f switch.
26229 * gnatcmd.adb: Remove /FULL_ELABORATION.
26231 * opt.ads (Force_RM_Elaboration_Order): Document that this is
26234 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
26236 * gnatbind.adb: Minor update of warning msg.
26238 2001-10-30 Vincent Celier <celier@gnat.com>
26240 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
26241 for project file switches (-P (/PROJECT_FILE=),
26242 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
26245 2001-10-30 Geert Bosch <bosch@gnat.com>
26247 * decl.c: Minor whitespace fixes.
26249 2001-10-30 Richard Kenner <kenner@gnat.com>
26251 * utils2.c (build_allocator): Test for SIZE overflow in array case too
26253 2001-10-30 Geert Bosch <bosch@gnat.com>
26255 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
26256 Found due to GCC 3.0 warning of using uninitialized value.
26259 (Get_Max_Size): Use variant record for tracking value/expression.
26260 Makes logic clearer and prevents warnings for uninitialized variables.
26261 (Layout_Array_Type): Use variant record for tracking value/expression.
26262 Makes logic clearer and prevents warnings for uninitialized variables.
26264 2001-10-30 Robert Dewar <dewar@gnat.com>
26266 * lib.adb: Minor reformatting
26268 * s-taprop.ads: Minor reformatting
26270 2001-10-29 Laurent Guerby <guerby@acm.org>
26273 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
26275 (_gnat_error_handler): Make MSG const.
26277 2001-10-29 Richard Kenner <kenner@gnat.com>
26279 * sysdep.c: Fix localtime_r problem on LynxOS.
26280 Also remove #elif to avoid warnings.
26282 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
26285 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
26287 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
26289 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
26290 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
26291 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
26292 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
26293 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
26294 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
26295 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
26296 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
26297 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
26298 types.ads, urealp.adb: Fix spelling errors.
26300 2001-10-27 Laurent Guerby <guerby@acm.org>
26302 * trans.c (gigi): Fix non determinism leading to bootstrap
26303 comparison failures for debugging information.
26305 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
26307 * gnat_rm.texi: Use @./@: where appropriate.
26309 2001-10-26 Robert Dewar <dewar@gnat.com>
26311 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
26313 2001-10-26 Richard Kenner <kenner@gnat.com>
26315 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
26317 2001-10-26 Richard Kenner <kenner@gnat.com>
26319 * decl.c (validate_size): Modify message for bad size to avoid
26320 implication that compiler is modifying the size.
26322 2001-10-26 Robert Dewar <dewar@gnat.com>
26324 * prj-util.adb: Minor reformatting. Fix bad header format.
26326 2001-10-26 Robert Dewar <dewar@gnat.com>
26328 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
26330 * sinfo.ads: Clarify use of Associated_Node (documentation only).
26332 * sem_ch12.adb: Change Node4 to Associated_Node. Change
26333 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
26334 much more narrowly in places where needed. These are cleanups.
26336 2001-10-26 Joel Brobecker <brobecke@gnat.com>
26338 * 5zosinte.ads (null_pthread): new constant.
26341 (Initialize_TCB): Initialize thread ID to null, to be able to verify
26342 later that this field has been set.
26343 (Finalize_TCB): ditto.
26344 (Suspend_Task): Verify that the thread ID is not null before using it.
26345 (Resume_Task): ditto.
26348 (Resume_All_Tasks): Lock the tasks list before using it.
26349 (Suspend_All_Tasks): ditto.
26351 2001-10-26 Richard Kenner <kenner@gnat.com>
26353 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
26354 Make constant variant of designated type for Is_Access_Constant.
26355 Call update_pointer_to with main variant.
26357 * trans.c (process_freeze_entity, process_type):
26358 Call update_pointer_to on main variant.
26360 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
26361 If main variant, update all other variants.
26363 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
26366 2001-10-26 Robert Dewar <dewar@gnat.com>
26368 * prj-util.adb: Minor reformatting
26370 2001-10-26 Robert Dewar <dewar@gnat.com>
26372 * prj-util.adb: Minor reformatting
26374 2001-10-26 Robert Dewar <dewar@gnat.com>
26376 * prj-attr.adb: Minor reformatting throughout
26378 2001-10-26 Robert Dewar <dewar@gnat.com>
26380 * prj-attr.ads: Minor reformatting
26381 Add ??? comment (this whole spec has almost no comments)
26383 2001-10-26 Vincent Celier <celier@gnat.com>
26385 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
26386 ("//") that precede the drive letter on Interix.
26388 2001-10-26 Geert Bosch <bosch@gnat.com>
26390 * gnat_rm.texi: Add GNAT Reference Manual.
26392 2001-10-25 Robert Dewar <dewar@gnat.com>
26394 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
26395 is Error. Similar change for other renaming cases.
26397 2001-10-25 Robert Dewar <dewar@gnat.com>
26399 * s-atacco.ads: Add pragma Inline_Always for functions.
26400 Fix header format. Add copyright 2001
26402 2001-10-25 Ed Schonberg <schonber@gnat.com>
26404 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
26405 return Error rather than Empty so that analysis can proceed.
26407 2001-10-25 Ed Schonberg <schonber@gnat.com>
26409 * sem_util.adb (Enter_Name): better handling of cascaded error
26410 messages when a unit appears in its own context.
26412 2001-10-25 Ed Schonberg <schonber@gnat.com>
26414 * sem_util.adb (Defining_Entity): in case of error, attach created
26415 entity to specification, so that semantic analysis can proceed.
26417 2001-10-25 Robert Dewar <dewar@gnat.com>
26420 (Defining_Entity): Deal with Error.
26421 (Process_End_Label): Deal with bad end label for.
26423 2001-10-25 Ed Schonberg <schonber@gnat.com>
26425 * sem_elab.adb (Check_A_Call): refine message when call is in an
26426 instance but callee is not declared in the generic unit.
26428 2001-10-25 Ed Schonberg <schonber@gnat.com>
26430 * sem_elab.adb (Check_A_Call): check for renaming before finding the
26431 enclosing unit, which may already be different from the calling unit.
26433 2001-10-25 Geert Bosch <bosch@gnat.com>
26435 * 4gintnam.ads: fix header format.
26437 2001-10-25 Ed Schonberg <schonber@gnat.com>
26439 * sem_res.adb (Resolve_Call): if the call is actually an indexing
26440 operation on the result of a parameterless call, perform elaboration
26441 check after the node has been properly rewritten.
26443 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
26444 inlined within the generic tree, the defining identifier is not a
26447 2001-10-25 Ed Schonberg <schonber@gnat.com>
26449 * sem_res.adb (Resolve): special-case resolution of Null in an
26450 instance or an inlined body to avoid view conflicts.
26452 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
26453 compatibility by retrieving the access type of the generic copy.
26455 2001-10-25 Robert Dewar <dewar@gnat.com>
26458 (Analyze_Number_Declaration): Handle error expression.
26459 (Signed_Integer_Type_Declaration): Handle error bound.
26460 (Analyze_Subtype_Indication): Handle error range.
26462 * sem_util.adb (Get_Index_Bounds): Check for Error.
26464 2001-10-25 Robert Dewar <dewar@gnat.com>
26466 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
26467 in no run time mode.
26469 2001-10-25 Pascal Obry <obry@gnat.com>
26471 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
26472 mode case for ALLOC case.
26474 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
26475 all platforms. Improvement of last change.
26477 2001-10-25 Robert Dewar <dewar@gnat.com>
26479 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
26481 2001-10-25 Geert Bosch <bosch@gnat.com>
26483 * osint.adb (Is_Relative): Remove duplicate.
26485 2001-10-25 Pascal Obry <obry@gnat.com>
26487 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
26488 pathnames in UNIX and DOS style with drive letter.
26489 (Is_Relative): new routine.
26491 * osint.adb: Minor reformatting
26493 * osint.adb (Is_Relative): implementation using
26494 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
26496 2001-10-25 Pascal Obry <obry@gnat.com>
26498 * g-dirope.adb (Basename): correctly compute offset between the
26499 original Path and the translated one.
26501 * g-dirope.adb: (Base_Name): add some comments.
26503 2001-10-25 Robert Dewar <dewar@gnat.com>
26505 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
26506 in HIE mode, avoids compilation abandoned message
26508 * exp_imgv.adb: Correct typo in previous change
26510 * exp_imgv.adb: Correct typo in previous change (not my day!)
26512 2001-10-25 Robert Dewar <dewar@gnat.com>
26514 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
26516 2001-10-25 Pascal Obry <obry@gnat.com>
26518 * g-awk.ads: Move all pragma inlines next to the routine
26519 declarations. This is more uniform with other GNAT spec.
26521 2001-10-22 Geert Bosch <bosch@gnat.com>
26523 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
26525 2001-10-19 Geert Bosch <bosch@gnat.com>
26527 * Makefile.in (tools, gnattools): Remove gnatmem.
26529 2001-10-17 Richard Henderson <rth@redhat.com>
26531 * Makefile.in (misc.o): Depend on langhooks.h.
26532 * misc.c: Include it.
26533 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
26534 (LANG_HOOKS_DECODE_OPTION): New.
26535 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
26537 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
26539 * trans.c (tree_transform): Adjust to recent change in
26540 expand_asm_operands to implement named asm operands.
26542 2001-10-11 Ed Schonberg <schonber@gnat.com>
26544 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
26545 renaming of discriminant for mutable record type.
26547 2001-10-11 Robert Dewar <dewar@gnat.com>
26549 * validsw.adb: Properly save -gnatVn status.
26551 2001-10-11 Robert Dewar <dewar@gnat.com>
26553 * usage.adb: Add lines for V switch.
26555 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
26556 (/VALIDITY_CHECKING).
26558 2001-10-11 Ed Schonberg <schonber@gnat.com>
26560 * sem_type.adb (Add_One_Interp): an operator for a type declared in
26561 an extension of System is known to be visible.
26563 2001-10-11 Ed Schonberg <schonber@gnat.com>
26565 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
26566 properly. Fixes regression on ACATS C34005G.
26568 2001-10-11 Robert Dewar <dewar@gnat.com>
26570 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
26571 loop in generic instance, since this is likely not very useful.
26573 2001-10-11 Robert Dewar <dewar@gnat.com>
26575 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
26576 the error message for high integrity mode.
26578 * rtsfind.adb (RTE): Give message if we try to find an entity that
26579 is not available in high integrity mode.
26582 (OK_To_Use_In_HIE_Mode): New array.
26583 (RTE): May return Empty in high integrity mode.
26585 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
26586 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
26588 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
26589 unit if not inlined always and in no runtime mode. Fixes problem
26590 caused by new Rtsfind changes.
26592 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
26595 * rtsfind.adb (RTE): Make sure we do not try to load unit after
26596 giving message for entity not available in high integrity mode.
26598 2001-10-11 Pascal Obry <obry@gnat.com>
26600 * impunit.adb: Add GNAT.CRC32.
26602 2001-10-11 Ed Schonberg <schonber@gnat.com>
26604 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
26605 properly the case where one universal operand in a non-static
26606 exponentiation of a real literal.
26608 2001-10-11 Ed Schonberg <schonber@gnat.com>
26610 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
26611 clause, return the gobal finalization list, for lack of anthing else.
26613 2001-10-11 Ed Schonberg <schonber@gnat.com>
26615 * exp_ch7.adb (Make_Transient_Block): if statement is within
26616 exception handler, always use new transient scope to place Clean
26619 2001-10-11 Pascal Obry <obry@gnat.com>
26622 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
26623 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
26624 (GNATLS_RTL_OBJS): add g-crc32.o
26625 (GNATMAKE_RTL_OBJS): add g-crc32.o
26628 (CRC_Match): new function.
26629 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
26630 instead of the previous simple checksum algorithm.
26631 (Time_Stamp_Mismatch): use CRC_Match for comparison.
26632 (Set_Source_Table): idem.
26635 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
26636 instead of simple checksum.
26637 (CRC_Match): new function.
26638 (CRC_Error): new constant.
26640 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
26641 a CRC now and not a simple checksum. A CRC uses lower-case hex
26642 letters, fixes ambiguity in parsing.
26644 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
26645 is what this variable will store.
26647 * bcheck.adb: Change reference to chechsum in comments by CRC.
26648 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
26649 rename All_Checksum_Match to All_CRC_Match. Change due to API
26650 renaming since now GNAT does not use a simple checksum but a
26651 CRC using GNAT.CRC32.
26653 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
26654 now and not anymore a simple checksum.
26656 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
26659 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
26662 (Restore_Scan_State): rename Checksum to CRC.
26663 (Save_Scan_State): idem.
26667 (Checksum): rename to CRC.
26668 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
26670 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
26671 GNAT.CRC32). Update copyright notice.
26673 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
26674 GNAT.CRC32). Update copyright notice.
26677 (Accumulate_Checksum): removed.
26678 (Update): new procedure. Add a wide-character into the CRC.
26681 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
26682 (Load_File): fix initialization of S (change Source_Checksum to
26685 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
26686 Source_CRC in S initialization.
26688 * sinput.adb (Source_Checksum): renamed to Source_CRC.
26690 * sinput.ads (Source_Checksum): renamed to Source_CRC.
26691 Update comments for the CRC.
26693 * types.adb (Hex): Use lowercase for the letter part.
26695 * types.ads (Get_Hex_String): Returns the hexadecimal representation
26696 for a word. This is currently used only for CRC. In previous version,
26697 the checksum was using a representation with all letter being
26698 upper-case. With the new implementation (using CRC) we do not remove
26699 the 32th bit of the CRC, so we can have an upper-case starting letter
26700 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
26701 It is ambigous since the CRC was optional and could be followed by
26702 options like EB, EE. So now this routines uses lower-case letter for
26703 the hexadecimal representation. Strange enough only lower case letters
26704 where checked in Scan_ALI (even if this was not a possible case).
26706 * gnatvsn.ads (Library_Version): changed to 3.15a.
26708 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
26711 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
26714 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
26715 Add 2001 to copyright notice
26716 (Accumulate_Checksum): Modify to use System.CRC32.
26718 * ali-util.ads: Redo changes of previous revision to continue to use
26719 the word Checksum. Add 2001 to copyright notice.
26721 * ali.adb: Undo some of previous changes, not needed.
26722 Keep the change for lower case letters in the checksum.
26724 * ali.ads: Undo previous change not needed.
26726 * bcheck.adb: Undo most of previous change, not needed.
26727 But do use Checksums_Match for checksum comparison.
26729 * gnatls.adb: Undo most of previous change, not needed.
26730 But do use Checksums_Match for comparing checksums.
26732 * lib-load.adb: Undo previous change, not needed.
26734 * lib-writ.adb: Undo previous change, not needed.
26736 * lib-writ.ads: Document that checksums use lower case,
26737 not upper case letters.
26739 * scans.adb: Undo previous change, not needed
26741 * scans.ads: Undo previous change, not needed.
26743 * scn-nlit.adb: Undo previous changes, not needed.
26745 * scn-slit.adb: Undo previous change, not needed. Fix header format.
26748 (Accumulate_Checksum): Use System.CRC32.
26749 (Initialize_Checksum): New procedure.
26750 Remove other changes of previous revision.
26752 * sinput-p.adb: Undo previous change, not needed.
26754 * sinput.adb: Undo previous change, not needed.
26756 * sinput-l.adb: Undo previous change, not needed.
26758 * sinput.ads: Undo previous change, not needed. Keep only comment
26759 on new checksum algorithm
26761 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
26762 Also remove a-tags and a-stream from GNAT sources.
26764 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
26766 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
26768 2001-10-11 Geert Bosch <bosch@gnat.com>
26770 * einfo.h: Regenerate.
26772 * nmake.ads: Regenerate.
26774 * nmake.adb: Regenerate.
26776 * sinfo.h: Regenerate.
26778 * treeprs.adb: Regenerate.
26780 2001-10-10 Geert Bosch <bosch@gnat.com>
26782 * gnat-style.texi: New file describing coding guidelines for Ada.
26784 2001-10-10 Ed Schonberg <schonber@gnat.com>
26786 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
26789 2001-10-10 Geert Bosch <bosch@gnat.com>
26791 * snames.ads: Add new names for project facility.
26793 * snames.adb: Update to reflect snames.ads changes.
26795 * snames.h: Update to reflect snames.ads changes.
26797 2001-10-10 Vincent Celier <celier@gnat.com>
26800 (Add_Switches): reflect the changes for the switches attributes
26801 Default_Switches indexed by the programming language,
26802 Switches indexed by the file name.
26803 (Collect_Arguments_And_Compile): Idem.
26804 Reflect the attribute name changes.
26807 (Initialisation_Data): Change the names of some packages and
26809 (Initialize): process case insensitive associative arrays.
26812 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
26815 (Parse_Attribute_Declaration): For case insensitive associative
26816 arrays, set the index string to lower case.
26819 Reflect the changes of the project attributes.
26822 Replace Check_Naming_Scheme by Ada_Check and
26823 Language_Independent_Check.
26826 Replaced Check_Naming_Scheme by 2 procedures:
26827 Ada_Check and Language_Independent_Check.
26830 (Process_Declarative_Items): For case-insensitive associative
26831 arrays, set the index string to lower case.
26832 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
26833 Prj.Nmsc.Check_Naming_Scheme.
26836 (Case_Insensitive): New function
26837 (Set_Case_Insensitive): New procedure
26840 (Case_Insensitive): New function
26841 (Set_Case_Insensitive): New procedure
26842 (Project_Node_Record): New flag Case_Insensitive.
26845 (Value_Of): new function to get the string value of a single
26846 string variable or attribute.
26849 (Value_Of): new function to get the string value of a single
26850 string variable or attribute.
26853 (Ada_Default_Spec_Suffix): New function
26854 (Ada_Default_Impl_Suffix): New function
26855 Change definitions of several constants to reflect
26856 new components of record types.
26859 (Naming_Data): Change several components to reflect new
26860 elements of naming schemes.
26861 (Project_Data): New flags Sources_Present and
26862 Language_Independent_Checked.
26863 (Ada_Default_Spec_Suffix): New function.
26864 (Ada_Default_Impl_Suffix): New function.
26867 Modification of predefined names for project manager: added
26868 Implementation, Specification_Exceptions, Implementation_Exceptions,
26869 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
26870 Default_Switches, _Languages, Builder, Cross_Reference,
26871 Finder. Removed Body_Part, Specification_Append, Body_Append,
26872 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
26875 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
26878 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
26879 not that it is Nil_Variable_Value.
26881 * prj.ads: Add ??? for uncommented declarations
26883 2001-10-10 Ed Schonberg <schonber@gnat.com>
26885 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
26886 constant, do not indicate possible modification, so that gigi can
26887 treat it as a bona fide constant.
26889 2001-10-10 Robert Dewar <dewar@gnat.com>
26891 * sem_prag.adb: Add processing for pragma External.
26893 * snames.ads: Add entry for pragma External.
26895 * par-prag.adb: Add pragma External.
26897 * snames.adb: Updated to match snames.ads.
26899 2001-10-10 Ed Schonberg <schonber@gnat.com>
26901 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
26902 a dynamic task if the allocator appears in an indexed assignment
26903 or selected component assignment.
26905 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
26906 For a dynamic task in an assignment statement, use target of
26907 assignment to generate meaningful name.
26909 2001-10-10 Ed Schonberg <schonber@gnat.com>
26911 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
26914 * einfo.ads: Body_Entity is also defined for generic package.
26915 Documentation change only
26917 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
26918 others_choice for a discriminated component initialization,
26919 convert discriminant references into the corresponding discriminals.
26921 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
26922 only if original type is private and expression has to be wrapped
26926 (Apply_Constraint_Check): Do not perform length check
26927 if expression is an aggregate with only an others_choice.
26928 (Length_N_Cond): two references to the same in_parameter
26929 (typically the discriminal in an init_proc) denote the same value.
26930 Two useful optimization uncovered by bugfixes above.
26932 2001-10-10 Robert Dewar <dewar@gnat.com>
26934 * xeinfo.adb: Change int to char in translation of enumeration types.
26935 This fixes a problem in the C representation of component alignment.
26936 Add 2001 to copyright notice
26938 2001-10-10 Richard Kenner <kenner@gnat.com>
26940 * decl.c: (validate_size): Do check size of object of integral type
26941 if it is a packed array type.
26943 2001-10-10 Richard Kenner <kenner@gnat.com>
26945 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
26946 VAR_DECL for constant if not Is_Public but -O0.
26948 2001-10-10 Richard Kenner <kenner@gnat.com>
26950 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
26952 2001-10-10 Geert Bosch <bosch@gnat.com>
26954 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
26955 use '/' as switch character, allowing for absolute file names.
26957 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
26959 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
26962 2001-10-08 Geert Bosch <bosch@gnat.com>
26964 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
26965 Automatically build utilities when files need to be regenerated.
26967 2001-10-08 Geert Bosch <bosch@gnat.com>
26969 * xsnames.adb: New utility for updating snames.ads and snames.adb
26971 2001-10-08 Zack Weinberg <zack@codesourcery.com>
26973 * Make-lang.in (ADAFLAGS): Add -W -Wall.
26974 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
26975 (gnat1): Also depend on attribs.o.
26976 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
26977 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
26978 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
26979 (ADAFLAGS): Add -W -Wall.
26980 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
26983 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
26984 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
26985 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
26986 Use $(ADAC), not $(CC), as compilation command.
26988 (gnattools): Depend directly on tools to build, don't use
26990 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
26992 * einfo.h, sinfo.h: New files (autogenerated).
26994 2001-10-08 Richard Henderson <rth@redhat.com>
26996 * comperr.adb (Abort_In_Progress): New.
26997 (Compiler_Abort): Use it to prevent recursion.
26999 2001-10-08 Robert Dewar <dewar@gnat.com>
27001 * atree.adb: Set Error_Posted in Error node, helps error recovery.
27003 * par-endh.adb (Output_End_Expected): We should also not test
27004 Error_Posted on the Error node, since now it is always set.
27006 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
27007 to help error recovery. Part of general work on 9407-004.
27009 * par.adb: Add ??? for misuse of error
27012 (Resolve): Defend against Error, fixes 9407-003.
27013 (Resolve_Discrete_Subtype_Indication): Defend against Error.
27015 * sinfo.ads (N_Error): Now has Etype field (which will be set
27016 to Any_Type to help error recovery).
27018 2001-10-08 Richard Kenner (kenner@gnat.com)
27020 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
27021 Consistently set MEM attributes from expression; fixes
27022 bootstrap failure on x86.
27024 2001-10-08 Geert Bosch (bosch@gnat.com)
27026 * 5oosinte.adb: Add 2001 to copyright notice.
27028 2001-10-08 Geert Bosch (bosch@gnat.com)
27030 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
27032 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
27034 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
27036 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
27038 2001-10-05 Geert Bosch (bosch@gnat.com)
27040 * adaint.h: Small formatting fix.
27042 2001-10-04 Geert Bosch <bosch@gnat.com>
27044 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
27045 Arg is int, not FILE *, in dummy version of functions.
27047 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
27048 Arg is int, not FILE *.
27050 2001-10-04 Geert Bosch <bosch@gnat.com>
27052 * 3lsoccon.ads: Added file, missed with initial check ins.
27054 * 4lintnam.ads: Fix header format.
27055 Change Linux to GNU/Linux.
27057 * 5iosinte.adb: Change Linux to GNU/Linux.
27059 * 5iosinte.ads: Change Linux to GNU/Linux.
27061 * 5itaprop.adb: Change Linux to GNU/Linux.
27063 * 5itaspri.ads: Change Linux to GNU/Linux.
27064 Update copyright notice.
27066 * 5lintman.adb: Change Linux to GNU/Linux.
27068 * 5lml-tgt.adb: Change Linux to GNU/Linux.
27070 * 5losinte.ads: Change Linux to GNU/Linux.
27072 * 5lsystem.ads: Change Linux to GNU/Linux.
27074 * 5qosinte.adb: Change Linux to GNU/Linux.
27076 * 5qosinte.ads: Change Linux to GNU/Linux.
27078 * 5qparame.ads: Change Linux to GNU/Linux.
27080 * 5qtaprop.adb: Change Linux to GNU/Linux.
27082 * 5qtaspri.ads: Change Linux to GNU/Linux.
27083 Add 2001 to copyright notice.
27085 * 5vintman.ads: Change Linux to GNU/Linux.
27086 Fix header format. Add 2001 to copyright notice.
27088 * g-soccon.ads: Change Linux to GNU/Linux.
27090 * g-trasym.ads: Change Linux to GNU/Linux.
27091 Add 2001 to copyright notice.
27093 * memtrack.adb: Change Linux to GNU/Linux.
27095 * s-intman.ads: Change Linux to GNU/Linux.
27096 Add 2001 to copyright notice. Fix header format.
27098 * s-stache.adb: Change Linux to GNU/Linux.
27100 * adaint.c: Change Linux to GNU/Linux.
27102 * cio.c: Change Linux to GNU/Linux.
27104 * cstreams.c: Change Linux to GNU/Linux.
27106 * init.c: Change Linux to GNU/Linux.
27108 * gmem.c: Change Linux to GNU/Linux.
27110 * tracebak.c: Change Linux to GNU/Linux.
27113 2001-10-02 Geert Bosch <bosch@gnat.com>
27115 * misc.c (insert_default_attributes): Add dummy version.