1 2007-02-21 Ed Schonberg <schonberg@adacore.com>
4 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
5 untagged derived type, add hidden components to keep discriminant
6 layout consistent, when a given discriminant of the derived type
7 constraints several discriminants of the parent type.
9 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
10 Sandra Loosemore <sandra@codesourcery.com>
12 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
13 build the call expression.
14 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
15 * utils.c (max_size) <tcc_exceptional>: Delete.
16 <tcc_vl_exp>: New case.
17 <tcc_expression>: Delete CALL_EXPR subcase.
18 (build_global_cdtor): Use build_call_nary instead of build3.
19 * utils2.c (build_call_1_expr): Likewise.
20 (build_call_2_expr): Likewise.
21 (build_call_0_expr): Likewise.
22 (build_call_alloc_dealloc): Likewise.
24 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
26 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
27 get_action_description_for): Replace _Unwind_Word with _uleb128_t
28 and _Unwind_SWord with _sleb128_t.
30 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
32 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
33 * decl.c: Include gt-ada-decl.h.
34 (annotate_value_cache): New.
35 (annotate_value): Use it instead of TREE_COMPLEXITY.
37 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
39 * misc.c, utils2.c: Fix comment typos.
41 2007-01-24 Roger Sayle <roger@eyesopen.com>
43 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
44 TREE_CONSTANT_OVERFLOW.
45 (allocatable_size_p, annotate_value): Likewise.
46 * trans.c (gnat_to_gnu): Likewise.
47 * utils.c (unchecked_convert): Likewise.
48 * utils2.c (build_simple_component_ref): Likewise.
50 2007-01-23 Richard Guenther <rguenther@suse.de>
53 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
54 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
55 (gnatboot3): Likewise.
56 (GNATBIND): Do not define.
57 * Makefile.in (GNATBIND): Do not define.
59 2007-01-08 Richard Guenther <rguenther@suse.de>
61 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
62 * trans.c (gnat_to_gnu): Likewise.
64 2006-12-07 Geoffrey Keating <geoffk@apple.com>
66 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
69 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
71 Merge from gimple-tuples-branch.
73 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
74 * ada-tree.h (lang_tree_node): Handle gimple tuples.
75 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
78 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
80 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
81 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
84 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
87 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
88 if the initializer takes into account the padding.
90 2006-11-11 Richard Guenther <rguenther@suse.de>
92 * trans.c (maybe_stabilize_reference): Remove handling of
93 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
95 2006-11-05 Arnaud Charlet <charlet@adacore.com>
98 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
99 (To_Target_Priority): New function.
101 2006-10-31 Robert Dewar <dewar@adacore.com>
103 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
104 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
105 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
106 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
107 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
108 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
109 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
110 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
111 a-szbzha.adb: Minor reformatting. Fix header.
113 * a-numaux-x86.adb: Add parentheses for use of unary minus
114 * a-ngcefu.adb: Supply missing parentheses for unary minus
115 * a-ngcoty.adb: Add parens for use of unary minus
116 * a-ngelfu.adb: Add missing parens for unary minus
117 * a-tifiio.adb: Add parentheses for uses of unary minus
119 2006-10-31 Robert Dewar <dewar@adacore.com>
120 Bob Duff <duff@adacore.com>
121 Ed Schonberg <schonberg@adacore.com>
123 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
124 with multiplying operator.
125 (Expected_Type_Is_Any_Real): New function to determine from the Parent
126 pointer whether the context expects "any real type".
127 (Resolve_Arithmetic_Op): Do not give an error on calls to the
128 universal_fixed "*" and "/" operators when they are used in a context
129 that expects any real type. Also set the type of the node to
130 Universal_Real in this case, because downstream processing requires it
131 (mainly static expression evaluation).
132 Reword some continuation messages
133 Add some \\ sequences to continuation messages
134 (Resolve_Call): Refine infinite recursion case. The test has been
135 sharpened to eliminate some false positives.
136 Check for Current_Task usage now includes entry barrier, and is now a
137 warning, not an error.
138 (Resolve): If the call is ambiguous, indicate whether an interpretation
139 is an inherited operation.
140 (Check_Aggr): When resolving aggregates, skip associations with a box,
141 which are priori correct, and will be replaced by an actual default
142 expression in the course of expansion.
143 (Resolve_Type_Conversion): Add missing support for conversion from
144 a class-wide interface to a tagged type. Minor code cleanup.
145 (Valid_Tagged_Converion): Add support for abstact interface type
147 (Resolve_Selected_Component): Call Generate_Reference here rather than
148 during analysis, and use May_Be_Lvalue to distinguish read/write.
149 (Valid_Array_Conversion): New procedure, abstracted from
150 Valid_Conversion, to incorporate accessibility checks for arrays of
151 anonymous access types.
152 (Valid_Conversion): For a conversion to a numeric type occurring in an
153 instance or inlined body, no need to check that the operand type is
154 numeric, since this has been checked during analysis of the template.
155 Remove legacy test for scope name Unchecked_Conversion.
157 * sem_res.ads: Minor reformatting
159 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
160 (PE_Current_Task_In_Entry_Body): New exception code
161 (SE_Restriction_Violation): Removed, not used
163 * a-except.ads: Update comments.
165 * types.h, types.ads: Add definition for Validity_Check
166 (PE_Current_Task_In_Entry_Body): New exception code
167 (SE_Restriction_Violation): Removed, not used
169 2006-10-31 Thomas Quinot <quinot@adacore.com>
171 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
174 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
175 Jose Ruiz <ruiz@adacore.com>
177 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
178 part of Ada.Calendar: all subprogram raise Unimplemented.
179 (Split_W_Offset): Temp function body, raising Unimplemented
181 * a-calend.ads, a-calend-vms.ads:
182 Add imported variable Invalid_TZ_Offset used to designate targets unable
183 to support time zones.
184 (Unimplemented): Temporary function raised by the body of new
186 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
187 unit provides handling of leap seconds and is used by the new Ada 2005
188 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
189 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
190 version returns an extra value which is the offset to UTC.
192 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
193 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
194 (Split_W_Offset): New function body.
195 (Time_Of): When a date is close to UNIX epoch, compute the time for
196 that date plus one day (that amount is later substracted after
197 executing mktime) so there are no problems with time zone adjustments.
199 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
201 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
202 a-catizo.ads, a-catizo.adb: New files.
204 * impunit.adb: Add new Ada 2005 entries
206 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
207 Rename all occurences of "__gnat_localtime_r" to
208 "__gnat_localtime_tzoff".
209 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
210 zone data and calculate the GMT offset.
211 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
212 Use the field "tm_gmtoff" to extract the GMT offset.
213 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
214 the external variable "timezone" to calculate the GMT offset.
216 2006-10-31 Arnaud Charlet <charlet@adacore.com>
217 Jose Ruiz <ruiz@adacore.com>
219 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
220 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
221 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
222 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
223 System.Any_Priority to a POSIX priority on the target.
225 * system-linux-ia64.ads:
226 Extend range of Priority types on Linux to use the whole range made
227 available by the system.
229 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
230 function maps from System.Any_Priority to a POSIX priority on the
232 (PTHREAD_PRIO_PROTECT): Set real value.
233 (PTHREAD_PRIO_INHERIT): Now a function.
234 (SIGCPUFAIL): New signal.
235 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
236 are documented as reserved by the OS.
238 * system-aix.ads: Use the full range of priorities provided by the
241 * s-taprop-posix.adb: Call new function To_Target_Priority.
242 (Set_Priority): Take into account Task_Dispatching_Policy and
243 Priority_Specific_Dispatching pragmas when determining if Round Robin
244 must be used for scheduling the task.
246 * system-linux-x86_64.ads, system-linux-x86.ads,
247 system-linux-ppc.ads: Extend range of Priority types on Linux to use
248 the whole range made available by the system.
250 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
251 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
252 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
253 when deallocating the TCB in order to avoid potential references to
255 (Set_Priority): Take into account Task_Dispatching_Policy and
256 Priority_Specific_Dispatching pragmas when determining if Round Robin
257 or FIFO within priorities must be used for scheduling the task.
259 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
260 the Thread field (to be used internally by the run-time system) and the
261 kernel-level task id in the LWP field (to be used by the debugger).
262 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
263 instance, and propagate the current task options to the spawned task.
264 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
265 (Initialize): Set Round Robin dispatching when the corresponding pragma
268 2006-10-31 Robert Dewar <dewar@adacore.com>
270 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
271 system-linux-hppa.ads, system-hpux-ia64.ads,
272 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
273 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
274 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
275 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
276 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
277 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
278 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
279 Default_Bit_Order) to kill constant condition warnings for references
282 2006-10-31 Vincent Celier <celier@adacore.com>
283 Eric Botcazou <ebotcazou@adacore.com>
285 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
286 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
287 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
288 Ext_To, when building the library file name
290 * mlib-tgt-vxworks.adb: ditto.
291 (Get_Target_Suffix): Add support for x86 targets.
293 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
295 * mlib-tgt-darwin.adb:
296 Use Append_To, instead of Ext_To, when building the library file name
297 (Flat_Namespace): New global variable.
298 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
299 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
300 (Link_Shared_Libgcc): Delete.
301 (Build_Dynamic_Library): Adjust for above changes.
303 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
305 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
307 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
308 (Initialize): Add type conversions required by above change.
310 2006-10-31 Jose Ruiz <ruiz@adacore.com>
312 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
313 (getpid): New body for this function that uses the underlying taskIdSelf
314 function for VxWorks 5 and VxWorks 6 in kernel mode.
315 (unsigned_int): New type, modular to allow logical bit operations.
316 (taskOptionsGet): New imported function.
318 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
319 field to be compliant with the type used by the corresponding operating
322 2006-10-31 Pascal Obry <obry@adacore.com>
323 Eric Botcazou <ebotcazou@adacore.com>
324 Vincent Celier <celier@adacore.com>
326 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
327 ASCII version of the registry API. This is needed as the GNAT runtime
328 is now UNICODE by default.
330 (get_gcc_version): Do not hardcode the return value.
331 (__gnat_file_time_name): On Windows properly set the default returned
332 value to -1 which corresponds to Invalid_Time.
333 (__gnat_fopen): New routine. A simple wrapper on all plateforms
334 except on Windows where it does conversion for unicode support.
335 (__gnat_freopen): Idem.
336 (__gnat_locate_exec_on_path): If environment variable PATH does not
337 exist, return a NULL pointer
339 * adaint.h: (__gnat_fopen): Declare.
340 (__gnat_freopen): Likewise.
342 * mingw32.h (_tfreopen): Define this macro here for older MingW
344 Activate the unicode support on platforms using a MingW runtime
345 version 3.9 or newer.
347 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
348 This is needed for proper unicode support on Windows.
351 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
352 Nicolas Setton <setton@adacore.com>
353 Olivier Hainque <hainque@adacore.com>
354 Gary Dismukes <dismukes@adacore.com>
356 * gigi.h: (tree_code_for_record_type): Declare.
357 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
358 (get_global_renaming_pointers): Rename to
359 invalidate_global_renaming_pointers.
360 (static_ctors): Delete.
361 (static_dtors): Likewise.
362 (gnat_write_global_declarations): Declare.
363 (create_var_decl): Adjust descriptive comment to indicate that the
364 subprogram may return a CONST_DECL node.
365 (create_true_var_decl): Declare new function, similar to
366 create_var_decl but forcing the creation of a VAR_DECL node.
367 (get_global_renaming_pointers): Declare.
368 (add_global_renaming_pointer): Likewise.
370 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
372 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
373 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
375 (gnat_to_gnu_entity): Remove From_With_Type from computation for
377 <E_Access_Type>: Use the Non_Limited_View as the full view of the
378 designated type if the pointer comes from a limited_with clause. Make
379 incomplete designated type if it is in the main unit and has a freeze
381 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
382 Underlying_Full_View similarly. Return earlier if the full view already
383 has an associated tree.
384 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
385 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
386 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
387 reference type built for objects with an address clause.
388 Use create_true_var_decl with const_flag set for
389 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
391 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
392 for Character and Wide_Character types. This info is read by the
393 dwarf-2 writer, and is needed to be able to use the command "ptype
394 character" in the debugger.
395 (gnat_to_gnu_entity): When generating a type representing
396 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
397 so that debug writers can distinguish it from ordinary integers.
398 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
399 addition to TREE_READONLY to assert the constantness of variables for
400 elaboration purposes.
401 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
402 parameters to call new Einfo function First_Formal_With_Extras.
403 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
404 protected type with its corresponding discriminant, to obtain a usable
406 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
407 for a multiple elaboration of the "equivalent" type.
408 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
409 into record_global_renaming_pointer.
410 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
411 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
412 <E_Array_Subtype>: Likewise.
413 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
414 incomplete subtypes and incomplete subtypes of incomplete types visible
415 through a limited with clause.
416 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
417 the base index type for the maximum size of the array only if they are
419 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
420 expression into a SAVE_EXPR if stabilization failed.
422 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
423 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
424 by lower level compilation passes.
425 (gnat_genericize): New function, lowering a function body to GENERIC.
426 Turn the type of RESULT_DECL into a real reference type if the decl
427 has been marked DECL_BY_REFERENCE, and adjust references to the latter
429 (gnat_genericize_r): New function. Tree walking callback for
431 (convert_from_reference, is_byref_result): New functions. Helpers for
433 (create_type_decl): Call gnat_pushdecl before calling
434 rest_of_decl_compilation, to make sure that field TYPE_NAME of
435 type_decl is properly set before calling the debug information writers.
436 (write_record_type_debug_info): The heuristics which compute the
437 alignment of a field in a variant record might not be accurate. Add a
438 safety test to make sure no alignment is set to a smaller value than
439 the alignment of the field type.
440 (make_dummy_type): Use the Non_Limited_View as the underlying type if
441 the type comes from a limited_with clause. Do not loop on the full view.
442 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
443 (dummy_node_table): New global variable, moved from decl.c.
444 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
445 (save_gnu_tree): Use above macros.
446 (get_gnu_tree): Likewise.
447 (present_gnu_tree): Likewise.
448 (init_dummy_type): New function, moved from decl.c. Use above macros.
449 (make_dummy_type): Likewise.
450 (tree_code_for_record_type): New function extracted from make_dummy_type
451 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
452 (static_ctors): Change it to a vector, make static.
453 (static_dtors): Likewise.
454 (end_subprog_body): Adjust for above change.
455 (build_global_cdtor): Moved from trans.c.
456 (gnat_write_global_declarations): Emit global constructor and
457 destructor, and call cgraph_optimize before emitting debug info for
459 (global_decls): New global variable.
460 (gnat_pushdecl): Store the global declarations in global_decls, for
462 (gnat_write_global_declarations): Emit debug information for global
464 (create_var_decl_1): Former create_var_decl, with an extra argument to
465 state whether the creation of a CONST_DECL is allowed.
466 (create_var_decl): Behavior unchanged. Now a wrapper around
467 create_var_decl_1 allowing CONST_DECL creation.
468 (create_true_var_decl): New function, similar to create_var_decl but
469 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
470 (create_field_decl): Do not always mark the field as addressable
471 if its type is an aggregate.
472 (global_renaming_pointers): New static variable.
473 (add_global_renaming_pointer): New function.
474 (get_global_renaming_pointers): Likewise.
476 * misc.c (gnat_dwarf_name): New function.
477 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
478 (gnat_post_options): Add comment about structural alias analysis.
479 (gnat_parse_file): Do not call cgraph_optimize here.
480 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
482 * trans.c (process_freeze_entity): Don't abort if we already have a
483 non dummy GCC tree for a Concurrent_Record_Type, as it might
484 legitimately have been elaborated while processing the associated
485 Concurrent_Type prior to this explicit freeze node.
486 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
487 exception handler volatile if it is of variable size.
488 (process_type): Remove bypass for types coming from a limited_with
490 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
491 actual, convert the corresponding gnu_actual to the real destination
493 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
494 originally TREE_READONLY but whose elaboration cannot be performed
496 Part of fix for F504-021.
497 (tree_transform, subprogram cases): Change loops on formal parameters to
498 call new Einfo function First_Formal_With_Extras.
499 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
500 stemming from type conversion for the lhs.
501 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
502 number of bits per unit for components of records.
503 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
504 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
505 with At_End_Proc after the SJLJ EH cleanup.
506 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
508 (elaborate_all_entities): Do not retest type_annotate_only.
509 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
510 result type of an abstract subprogram, which may be an itype associated
511 with an anonymous access result (related to AI-318-02).
512 (build_global_cdtor): Move to utils.c.
513 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
514 this choice is not a null tree nor an integer constant.
515 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
516 on the body of elaboration routines instead of mark_unvisited.
517 (add_stmt): Do not mark the tree.
518 (add_decl_expr): Tweak comment.
519 (mark_unvisited): Delete.
520 (unshare_save_expr): New static function.
521 (call_to_gnu): Issue an error when making a temporary around a
522 procedure call because of non-addressable actual parameter if the
523 type of the formal is by_reference.
524 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
525 after building the elaboration routine.
527 2006-10-31 Bob Duff <duff@adacore.com>
529 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
530 as finalization-started, so we can raise Program_Error on 'new'.
532 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
533 collection has already started.
535 * s-finimp.ads (Collection_Finalization_Started): Added new special
536 flag value for indicating that a collection's finalization has started.
538 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
539 create a task whose master has already waited for dependent tasks.
541 2006-10-31 Robert Dewar <dewar@adacore.com>
543 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
545 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
546 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
547 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
548 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
549 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
550 a-except-2005.ads: Add pragma Preelaborable_Warning
552 2006-10-31 Robert Dewar <dewar@adacore.com>
553 Jose Ruiz <ruiz@adacore.com>
555 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
557 * ali.adb (Get_Name): Properly handle scanning of wide character names
558 encoded with brackets notation.
559 (Known_ALI_Lines): Add S lines to this list.
560 (Scan_ALI): Acquire S (priority specific dispatching) lines.
561 New flag Elaborate_All_Desirable in unit table
563 * ali.ads (Priority_Specific_Dispatching): Add this range of
564 identifiers to be used for Priority_Specific_Dispatching table entries.
565 (ALIs_Record): Add First_Specific_Dispatching and
566 Last_Specific_Dispatching that point to the first and last entries
567 respectively in the priority specific dispatching table for this unit.
568 (Specific_Dispatching): Add this table for storing each S (priority
569 specific dispatching) line encountered in the input ALI file.
570 New flag Elaborate_All_Desirable in unit table
572 * bcheck.adb: (Check_Configuration_Consistency): Add call to
573 Check_Consistent_Dispatching_Policy.
574 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
575 verifying that the use of Priority_Specific_Dispatching,
576 Task_Dispatching_Policy, and Locking_Policy is consistent across the
579 * bindgen.adb: (Public_Version_Warning): function removed.
580 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
581 required information from ALI files in order to initialize the table
582 containing the specific dispatching policy.
583 (Gen_Adainit_Ada): Generate the variables required for priority specific
584 dispatching entries (__gl_priority_specific_dispatching and
585 __gl_num_specific_dispatching).
586 (Gen_Adainit_C): Generate the variables required for priority specific
587 dispatching entries (__gl_priority_specific_dispatching and
588 __gl_num_specific_dispatching).
589 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
591 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
592 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
594 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
595 a call to gnat_set_globals.
596 Generate a string containing settings from
597 Priority_Specific_Dispatching pragma entries.
598 (Gen_Object_Files_Options): Do not include the runtime libraries when
599 pragma No_Run_Time is specified.
601 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
602 consistency with s-intman-posix.adb.
603 (__gnat_error_handler, case FreeBSD): Account for the fact that the
604 handler is installed with SA_SIGINFO.
605 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
606 FreeBSD ZCX support, copied from Linux version.
607 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
608 sigfillset, and sigemptyset so the routines defined by MaRTE.
609 (__gl_priority_specific_dispatching): Add this variable that stores the
610 string containing priority specific dispatching policies in the
612 (__gl_num_specific_dispatching): Add this variable that indicates the
613 highest priority for which a priority specific dispatching pragma
615 (__gnat_get_specific_dispatching): Add this routine that returns the
616 priority specific dispatching policy, as set by a
617 Priority_Specific_Dispatching pragma appearing anywhere in the current
618 partition. The input argument is the priority number, and the result
619 is the upper case first character of the policy name.
620 (__gnat_set_globals): Now a dummy function.
621 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
622 mechargs instead of sigargs, as the latter can be retrieved from the
623 former and sigargs is not what we want on ia64.
624 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
626 (__gnat_adjust_context_for_raise, ia64-vms): New function.
627 (tasking_error): Remove unused symbol.
628 (_abort_signal): Move this symbol to the IRIX specific part since this
629 is the only target that uses this definition.
630 (Check_Abort_Status): Move this symbol to the IRIX specific part since
631 this is the only target that uses this definition.
632 (Lock_Task): Remove unused symbol.
633 (Unlock_Task): Remove unused symbol.
635 * lib-writ.adb (Write_ALI): Output new S lines for
636 Priority_Specific_Dispatching pragmas.
637 Implement new flag BD for elaborate body desirable
639 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
640 (Specific_Dispatching): Add this table for storing the entries
641 corresponding to Priority_Specific_Dispatching pragmas.
642 Document new BD flag for elaborate body desirable
644 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
647 2006-10-31 Javier Miranda <miranda@adacore.com>
649 * a-tags.ads, a-tags.adb:
650 (Predefined_DT): New function that improves readability of the code.
651 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
652 Inherit_DT): Use the new function Predefined_DT to improve code
654 (Register_Interface_Tag): Update assertion.
655 (Set_Interface_Table): Update assertion.
656 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
657 determining progenitor interfaces in Tags.
658 (Inherit_CPP_DT): New subprogram.
660 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
661 analysis of the thunk code.
662 (Expand_Interface_Conversion): Handle run-time conversion of
663 access to class wide types.
664 (Expand_Dispatching_Call): When generating the profile for the
665 subprogram itype for a dispatching operation, properly terminate the
666 formal parameters chaind list (set the Next_Entity of the last formal
668 (Collect_All_Interfaces): Removed. This routine has been moved to
669 sem_util and renamed as Collect_All_Abstract_Interfaces.
670 (Set_All_DT_Position): Hidden entities associated with abstract
671 interface primitives are not taken into account in the check for
672 3.9.3(10); this check is done with the aliased entity.
673 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
674 interfacing with CPP by default.
675 (Expand_Interface_Conversion): Add missing support for static conversion
676 from an interface to a tagged type.
677 (Collect_All_Interfaces): Add new out formal containing the list of
678 abstract interface types to cleanup the subprogram Make_DT.
679 (Make_DT): Update the code to generate the table of interfaces in case
680 of abstract interface types.
681 (Is_Predefined_Dispatching_Alias): New function that returns true if
682 a primitive is not a predefined dispatching primitive but it is an
683 alias of a predefined dispatching primitive.
684 (Make_DT): If the ancestor of the type is a CPP_Class and we are
685 compiling under full ABI compatibility mode we avoid the generation of
686 calls to run-time services that fill the dispatch tables because under
687 this mode we currently inherit the dispatch tables in the IP subprogram.
688 (Write_DT): Emit an "is null" indication for a null procedure primitive.
689 (Expand_Interface_Conversion): Use an address as the type of the formal
690 of the internally built function that handles the case in which the
691 target type is an access type.
693 2006-10-31 Robert Dewar <dewar@adacore.com>
695 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
697 2006-10-31 Robert Dewar <dewar@adacore.com>
699 * bindusg.ads, bindusg.adb:
700 Change to package and rename procedure as Display, which
701 now ensures that it only outputs usage information once.
703 2006-10-31 Jose Ruiz <ruiz@adacore.com>
705 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
708 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
711 2006-10-31 Robert Dewar <dewar@adacore.com>
712 Ed Schonberg <schonberg@adacore.com>
714 * treepr.adb: Use new subtype N_Membership_Test
716 * checks.ads, checks.adb: Add definition for Validity_Check
717 (Range_Or_Validity_Checks_Suppressed): New function
718 (Ensure_Valid): Test Validity_Check suppressed
719 (Insert_Valid_Check): Test Validity_Check suppressed
720 (Insert_Valid_Check): Preserve Do_Range_Check flag
721 (Validity_Check_Range): New procedure
722 (Expr_Known_Valid): Result of membership test is always valid
723 (Selected_Range_Checks): Range checks cannot be applied to discriminants
724 by themselves. Disabling those checks must also be done for task types,
725 where discriminants may be used for the bounds of entry families.
726 (Apply_Address_Clause_Check): Remove side-effects if address expression
727 is non-static and is not the name of a declared constant.
728 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
729 Code cleanup and new error messages.
730 (Enable_Range_Check): Test for some cases of suppressed checks
731 (Generate_Index_Checks): Suppress index checks if index checks are
732 suppressed for array object or array type.
733 (Apply_Selected_Length_Checks): Give warning for compile-time detected
734 length check failure, even if checks are off.
735 (Ensure_Valid): Do not generate a check on an indexed component whose
736 prefix is a packed boolean array.
737 * checks.adb: (Alignment_Checks_Suppressed): New function
738 (Apply_Address_Clause_Check): New procedure, this is a completely
739 rewritten replacement for Apply_Alignment_Check
740 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
741 we request a discriminal value only in case of discriminants.
742 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
743 assignments where the target subtype is unconstrained and the target
744 object is a parameter or dereference (other aliased cases are known
745 to be unconstrained).
747 2006-10-31 Robert Dewar <dewar@adacore.com>
749 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
750 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
751 vms_conv.adb: Fix bad table increment values (much too small)
753 * table.adb (Realloc): Make sure we get at least some new elements
754 Defends against silly small values for table increment
756 2006-10-31 Robert Dewar <dewar@adacore.com>
757 Ed Schonberg <schonberg@adacore.com>
758 Bob Duff <duff@adacore.com>
760 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
761 entities. Move other fields around to make this possible
762 (Is_Derived_Type): Add missing call to Is_Type.
763 (Extra_Formals): New function for subprograms, entries, subprogram
765 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
766 (First_Formal_With_Extras): New function for subprogs, entries, subp
768 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
769 Add node information for E_Return_Statement.
770 (Elaborate_Body_Desirable): New flag
771 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
772 to be Is_Inherently_Limited_Type, because return-by-reference has
773 no meaning in Ada 2005.
774 (E_Return_Statement): New entity kind.
775 (Return_Applies_To): Field of E_Return_Statement.
776 (Is_Return_Object): New flag in object entities.
777 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
778 (Must_Have_Preelab_Init): New flag
779 (Known_To_Have_Preelab_Init): New flag
780 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
781 (Is_Visible_Formal): New flag on entities in formal packages.
782 (Low_Bound_Known): New flag
783 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
785 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
786 output when Id is an incomplete subtype.
788 2006-10-31 Robert Dewar <dewar@adacore.com>
790 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
791 Avoid abbreviation Creat
792 (Finalize): List all sources in extended mail source if -gnatl
794 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
795 (Finalize): Implement new -gnatl=xxx switch to output listing to file
796 (Set_Specific_Warning_On): New procedure
797 (Set_Specific_Warning_Off): New procedure
798 Add implementation of new insertion \\
799 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
800 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
802 (Error_Msg_Internal): Make sure that we set Last_Killed to
803 True when a message from another package is suppressed.
804 Implement insertion character ~ (insert string)
805 (First_Node): Minor adjustments to get better placement.
808 Implement new -gnatl=xxx switch to output listing to file
811 Implement new -gnatl=xxx switch to output listing to file
813 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
814 (Commands_To_Stdout): New flag
815 Implement new -gnatl=xxx switch to output listing to file
816 New switch Dump_Source_Text
817 (Warn_On_Deleted_Code): New warning flag for -gnatwt
818 Define Error_Msg_Line_Length
819 (Warn_On_Assumed_Low_Bound): New switch
821 * osint.ads, osint.adb
822 (Normalize_Directory_Name): Fix bug.
823 Implement new -gnatl=xxx switch to output listing to file
824 (Concat): Removed, replaced by real concatenation
825 Make use of concatenation now allowed in compiler
826 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
827 we find the 'lib' or 'bin' directory even when the tool has been
828 invoked with a relative path.
829 (Executable_Name): New function taking string parameters.
831 * osint-c.ads, osint-c.adb:
832 Implement new -gnatl=xxx switch to output listing to file
834 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
837 Implement new -gnatl=xxx switch to output listing to file
838 Recognize new -gnatL switch
839 (no longer keep in old warning about old style usage)
840 Use concatenation to simplify code
841 Recognize -gnatjnn switch
842 (Scan_Front_End_Switches): Clean up handling of -gnatW
843 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
845 2006-10-31 Robert Dewar <dewar@adacore.com>
847 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
848 (Set_Specific_Warning_Off): New procedure
849 (Warning_Specifically_Suppressed): New function
850 (Validate_Specific_Warnings): New procedure
851 (Output_Msg_Text): Complete rewrite to support -gnatjnn
853 * err_vars.ads: Implement insertion character ~ (insert string)
855 2006-10-31 Bob Duff <duff@adacore.com>
856 Ed Schonberg <schonberg@adacore.com>
858 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
859 the parent part is a build-in-place function call, generate assignments.
860 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
861 are build-in-place function calls.
862 (Replace_Self_Reference): New subsidiary of
863 Make_OK_Assignment_Statement, to replace an access attribute that is a
864 self-reference into an access to the appropriate component of the
865 target object. Generalizes previous mechanism to handle self-references
867 (Is_Self_Referential_Init): Remove, not needed.
868 (Is_Self_Referential_Init): New predicate to simplify handling of self
869 referential components in record aggregates.
870 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
871 check for presence of entity before checking for self-reference.
872 (Has_Default_Init_Comps): Return True if a component association is a
873 self-reference to the enclosing type, which can only come from a
874 default initialization.
875 (Make_OK_Assignment_Statement): If the expression is of the form
876 Typ'Acc, where Acc is an access attribute, the expression comes from a
877 default initialized self-referential component.
878 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
879 that has been derived from several abstract interfaces we must also
880 initialize the tags of the secondary dispatch tables.
882 2006-10-31 Ed Schonberg <schonberg@adacore.com>
883 Thomas Quinot <quinot@adacore.com>
884 Javier Miranda <miranda@adacore.com>
885 Robert Dewar <dewar@adacore.com>
888 (Expand_Access_To_Protected_Op): If the context indicates that an access
889 to a local operation may be transfered outside of the object, create an
890 access to the wrapper operation that must be used in an external call.
891 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
892 target, pass the Valid attribute applied to a floating-point prefix on
893 to the back end without expansion.
894 (Storage_Size): Use the new run-time function Storage_Size to retrieve
895 the allocated storage when it is specified by a per-object expression.
896 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
897 Nothing to do here, the attribute has been rewritten during semantic
899 (Expand_Attribute_Reference): Handle expansion of the new Priority
901 (Find_Fat_Info): Handle case of universal real
902 (Expand_Access_To_Protected_Op): Fix use of access to protected
903 subprogram from inside the body of a protected entry.
904 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
905 'Access and 'Unrestricted_Access, to transform the attribute reference
907 (Is_Constrained_Aliased_View): New predicate to help determine whether a
908 subcomponent's enclosing variable is aliased with a constrained subtype.
909 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
910 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
911 an aliased prefix must be known to be constrained in order to use True
912 for the attribute value, and now it's possible for some aliased views
915 2006-10-31 Robert Dewar <dewar@adacore.com>
917 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
918 (Expand_Entity_Reference): Correct error of not handling subprogram
919 formals in current_value processing.
921 2006-10-31 Javier Miranda <miranda@adacore.com>
922 Robert Dewar <dewar@adacore.com>
923 Ed Schonberg <schonberg@adacore.com>
924 Gary Dismukes <dismukes@adacore.com>
926 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
927 register in the final list objects containing class-wide interfaces;
928 otherwise we incorrectly register the tag of the interface in the final
930 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
931 generate the wrapper if the parent primitive is abstract. This is
932 required to report the correct error message.
933 (Expand_N_Subtype_Indication): Do validity checks on range
934 (Clean_Task_Names): If an initialization procedure includes a call to
935 initialize a task (sub)component, indicate that the procedure will use
937 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
938 compatibility for interfacing with CPP by default.
939 (Expand_N_Object_Declaration): Only build an Adjust call when the
940 object's type is a nonlimited controlled type.
941 * exp_ch3.adb: Add with and use of Exp_Ch6.
942 (Expand_N_Object_Declaration): Check for object initialization that is a
943 call to build-in-place function and apply Make_Build_In_Place_Call_In_
944 Object_Declaration to the call.
945 (Freeze_Type): When the designated type of an RACW was not frozen at the
946 point where the RACW was declared, validate the primitive operations
947 with respect to E.2.2(14) when it finally is frozen.
948 (Build_Initialization_Call,Expand_Record_Controller): Rename
949 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
950 return-by-reference has no meaning in Ada 2005.
951 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
952 to register tag of the immediate ancestor interfaces in the
954 (Init_Secondary_Tags): Moved to the specification to allow the
955 initialization of extension aggregates with abstract interfaces.
956 (Build_Master_Renaming): Make public, for use by function declarations
957 whose return type is an anonymous access type.
958 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
959 Insert_List_Before_And_Analyze after the generation of the specs
960 associated with null procedures.
961 (Expand_Tagged_Root): Update documentation in its specification.
962 (Init_Secondary_Tags): Update documentation.
963 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
964 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
965 then generate code to inherit the contents of the dispatch table
966 directly from the ancestor.
967 (Expand_Record_Controller): Insert controller component after tags of
968 implemented interfaces.
969 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
970 create null procedure overridings when null procedures are inherited
972 (Make_Null_Procedure_Specs): New procedure to generate null procedure
973 declarations for overriding null primitives inherited from interfaces.
974 (Is_Null_Interface_Procedure): New function in
975 Make_Null_Procedure_Specs.
976 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
977 immediate ancestor of a tagged type is an abstract interface type we
978 must generate the specification of the predefined primitives associated
979 with controlled types (because the dispatch table of the ancestor is
980 null and hence these entries cannot be inherited). This is required to
981 elaborate well the dispatch table.
983 2006-10-31 Javier Miranda <miranda@adacore.com>
984 Ed Schonberg <schonberg@adacore.com>
985 Bob Duff <duff@adacore.com>
986 Gary Dismukes <dismukes@adacore.com>
987 Robert Dewar <dewar@adacore.com>
989 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
991 (Expand_N_In): Do validity checks on range
992 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
993 (Expand_N_Allocator): For "new T", if the object is constrained by
994 discriminant defaults, allocate the right amount of memory, rather than
995 the maximum for type T.
996 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
997 when the allocator is initialized by a build-in-place call, since the
998 allocator is already rewritten as a reference to the function result,
999 and this prevents an unwanted duplication of the function call.
1000 Add with and use of Exp_Ch6.
1001 (Expand_Allocator_Expresssion): Check for an allocator whose expression
1002 is a call to build-in-place function and apply
1003 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
1004 untagged designated types).
1005 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
1006 optimization if source or target is biased.
1007 (Expand_N_Allocator): Add comments for case of an allocator within a
1008 function that returns an anonymous access type designating tasks.
1009 (Expand_N_Allocator): apply discriminant checks for access
1010 discriminants of anonymous access types (AI-402, AI-416)
1012 2006-10-31 Bob Duff <duff@adacore.com>
1013 Robert Dewar <dewar@adacore.com>
1014 Gary Dismukes <dismukes@adacore.com>
1015 Ed Schonberg <schonberg@adacore.com>
1017 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
1019 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
1020 (Expand_N_Assignment_Statement): Call
1021 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
1022 build-in-place function call. Currently, this can happen only for
1023 assignments that come from aggregates.
1024 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
1025 in order to alleviate the upward compatibility introduced by AI-318.
1026 (Expand_N_Extended_Return_Statement): Add support for handling the
1027 return object as a build-in-place result.
1028 (Expand_Non_Function_Return): Implement simple return statements nested
1029 within an extended return.
1030 (Enable_New_Return_Processing): Turn on the new processing of return
1032 (Expand_Non_Function_Return): For a return within an extended return,
1033 don't raise Program_Error, because Sem_Ch6 now gives a warning.
1034 (Expand_N_Extended_Return_Statement): Implement AI-318
1035 (Expand_Simple_Function_Return): Ditto.
1036 (Expand_N_If_Statement): Handle new -gnatwt warning
1037 (Expand_N_Case_Statement): Handle new -gnatwt warning
1038 (Expand_N_Assignment): Handle assignment to the Priority attribute of
1040 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
1041 validity checking of assignments to elementary record components.
1042 (Expand_N_Return_Statement): return Class Wide types on the secondary
1043 stack independantly of their controlled status since with HIE runtimes,
1044 class wide types are not potentially controlled anymore.
1046 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
1049 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
1050 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
1051 it expects a block, procedure, or task. The return statement will get
1052 turned into a block, and Expand_Cleanup_Actions will happen then.
1054 2006-10-31 Robert Dewar <dewar@adacore.com>
1055 Ed Schonberg <schonberg@adacore.com>
1056 Bob Duff <duff@adacore.com>
1057 Gary Dismukes <dismukes@adacore.com>
1059 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
1061 (Expand_Inlined_Call): Tagged types are by-reference types, and
1062 therefore should be replaced by a renaming declaration in the expanded
1063 body, as is done for limited types.
1064 (Expand_Call): If this is a call to a function with dispatching access
1065 result, propagate tag from context.
1066 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
1068 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
1069 build-in-place when the right-hand side of an assignment is a
1070 build-in-place function call.
1071 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
1072 of the explicit dereference of the allocator to the result subtype of
1073 the build-in-place function. This is needed to satisfy type checking
1074 in cases where the caller's return object is created by an allocator for
1075 a class-wide access type and the type named in the allocator is a
1077 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
1078 conversion of the reference to the declared object to the result subtype
1079 of the build-in-place function. This is needed to satisfy type checking
1080 in cases where the declared object has a class-wide type. Also, in the
1081 class-wide case, change the type of the object entity to the specific
1082 result subtype of the function, to avoid passing a class-wide object
1083 without explicit initialization to the back end.
1084 (Register_Interface_DT_Entry): Moved outside the body of
1085 Freeze_Subprogram because this routine is now public; it is called from
1086 Check_Dispatching_Overriding to handle late overriding of abstract
1087 interface primitives.
1088 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
1089 adding an implicit access actual on a call to a build-in-place function.
1090 (Expand_Actuals): Test for an actual parameter that is a call to a
1091 build-in-place function and apply
1092 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
1093 (Is_Build_In_Place_Function): New function to determine whether an
1094 entity is a function whose calls should be handled as build-in-place.
1095 (Is_Build_In_Place_Function_Call): New function to determine whether an
1096 expression is a function call that should handled as build-in-place.
1097 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
1098 calls to build-in-place functions as the initialization of an allocator.
1099 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
1100 handling calls to build-in-place functions in contexts that do not
1101 involve init of a separate object (for example, actuals of subprogram
1103 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
1104 handling calls to build-in-place functions as the initialization of an
1106 (Detect_Infinite_Recursion): Add explicit parameter Process to
1107 instantiation of Traverse_Body to avoid unreferenced warning.
1108 (Check_Overriding_Inherited_Interfaces): Removed.
1109 (Register_Interface_DT_Entry): Code cleanup.
1110 (Register_Predefined_DT_Entry): Code cleanup.
1111 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
1112 inlined statements if within a transient scope.
1113 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
1114 formal parameters with occurrences of actuals in inlined body, establish
1115 visibility on the proper view of the actual's subtype for the body's
1117 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
1118 compatibility mode and we have an imported CPP subprogram because
1119 for now we assume that imported CPP primitives correspond with
1120 objects whose constructor is in the CPP side (and therefore we
1121 don't need to generate code to register them in the dispatch table).
1122 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
1123 aligned selected component.
1124 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
1125 the actual of an in-mode parameter is a type conversion.
1126 (Expand_Actuals): If the call does not come from source and the actual
1127 is potentially misaligned, let gigi handle it rather than rejecting the
1128 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
1129 Class Wide types as returning by reference independantly of their
1130 controlled status since with HIE runtimes class wide types are not
1131 potentially controlled anymore.
1133 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1135 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
1136 references that are private components of the protected object.
1137 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
1138 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
1139 instantiation to deal with warnings.
1140 (Initialize_Protection): If expression for priority is non-static, use
1141 System_Priority as its expected type, in case the expression has not
1144 2006-10-31 Robert Dewar <dewar@adacore.com>
1146 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
1147 initialization of Homonym_Len.
1148 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
1149 names from fully qualified name. Fixes problem of duplicate
1150 external names differing only in the presence of such a block name.
1152 2006-10-31 Thomas Quinot <quinot@adacore.com>
1153 Pablo Oliveira <oliveira@adacore.com>
1155 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
1156 subprogram Ids, even if they are not yet assigned.
1157 (Build_Subprogram_Id): It is now this function that will take care of
1158 calling Assign_Subprogram_Ids if necessary.
1159 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
1160 should be done only once they are assigned.
1161 (Build_From_Any_Function, case of tagged types): Add missing call to
1163 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
1164 type for an RACW type.
1165 (Add_RACW_Features): When processing an RACW declaration for which the
1166 designated type is already frozen, enforce E.2.2(14) rules immediately.
1167 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
1168 special reordering of controlling formals.
1170 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
1171 associated stub type for an RACW type.
1173 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1175 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
1176 fixed-point operations in an integer context, i.e. as operands of a
1177 conversion to an integer type, indicate that result must be rounded.
1179 2006-10-31 Robert Dewar <dewar@adacore.com>
1181 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
1182 cases, pass the encoding method, since it is now required by the run
1185 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
1186 assumption that Str'First = 1.
1187 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
1188 it on to the Value_Wide_Wide_Character call.
1189 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
1190 properly handles a string of the form quote-encoded_wide_char-quote.
1192 * s-wchcnv.adb: Minor reformatting
1194 2006-10-31 Javier Miranda <miranda@adacore.com>
1196 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
1197 run-time membership test to ensure that the constructed object
1198 implements the target abstract interface.
1200 2006-10-31 Robert Dewar <dewar@adacore.com>
1202 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
1203 Machine_Attribute pragma internally to implement the user pragma.
1204 Add processing for pragma Interface so that it is now completely
1205 equivalent to pragma Import.
1207 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
1208 so that it can be applied to all entities, including record components
1209 and enumeration literals.
1210 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
1211 priority ranges are correct, verify compatibility against task
1212 dispatching and locking policies, and if everything is correct an entry
1213 is added to the table containing priority specific dispatching entries
1214 for this compilation unit.
1215 (Delay_Config_Pragma_Analyze): Delay processing
1216 Priority_Specific_Dispatching pragmas because when processing the
1217 pragma we need to access run-time data, such as the range of
1218 System.Any_Priority.
1219 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
1220 Allow pragma Unreferenced as a context item
1221 Add pragma Preelaborable_Initialization
1222 (Analyze_Pragma, case Interface): Interface is extended so that it is
1223 now syntactically and semantically equivalent to Import.
1224 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
1225 insertion characters.
1226 Add handling for Pragma_Wide_Character_Encoding
1227 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
1228 never supercedes a real restriction, and that a real restriction
1229 always supercedes a warning.
1230 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
1233 2006-10-31 Bob Duff <duff@adacore.com>
1234 Ed Schonberg <schonberg@adacore.com>
1235 Robert Dewar <dewar@adacore.com>
1237 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
1238 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
1239 Is_Inherently_Limited_Type, because return-by-reference has no meaning
1241 (Find_Node_To_Be_Wrapped): Use new method of determining the result
1242 type of the function containing a return statement, because the
1243 Return_Type field was removed. We now use the Return_Applies_To field.
1245 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
1246 (Build_Task_Image_Decl): If procedure is not called from an
1247 initialization procedure, indicate that function that builds task name
1248 uses the sec. stack. Otherwise the enclosing initialization procedure
1249 will carry the indication.
1250 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
1251 N_Object_Declaration instead.
1252 (Kill_Dead_Code): New interface to implement -gnatwt warning for
1253 conditional dead code killed, and change implementation accordingly.
1254 (Insert_Actions): Add N_Return_Object_Declaration case.
1255 Correct comment to mention N_Extension_Aggregate node.
1256 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
1257 attempts to save information for global variables which cannot be
1259 (Get_Current_Value_Condition): Handle conditions the other way round
1260 (constant on left). Also handle right operand of AND and AND THEN
1261 (Set_Current_Value_Condition): Corresponding changes
1262 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
1263 (Get_Current_Value_Condition): Handle simple boolean operands
1264 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
1265 (Get_Current_Value_Condition): If the variable reference is within an
1266 if-statement, does not appear in the list of then_statments, and does
1267 not come from source, treat it as being at unknown location.
1268 (Get_Current_Value_Condition): Enhance to allow while statements to be
1269 processed as well as if statements.
1270 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
1272 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
1273 of loop. This is safe now that we fixed Kill_Current_Values.
1274 (OK_To_Do_Constant_Replacement): Check whether current scope is
1275 Standard, before examining outer scopes.
1277 2006-10-31 Vincent Celier <celier@adacore.com>
1279 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
1280 When True, apply VMS treatment to children of packages A, G, I and S.
1283 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
1285 2006-10-31 Robert Dewar <dewar@adacore.com>
1286 Ed Schonberg <schonberg@adacore.com>
1288 * freeze.adb: Add handling of Last_Assignment field
1289 (Warn_Overlay): Supply missing continuation marks in error msgs
1290 (Freeze_Entity): Add check for Preelaborable_Initialization
1292 * g-comlin.adb: Add Warnings (Off) to prevent new warning
1294 * g-expect.adb: Add Warnings (Off) to prevent new warning
1296 * lib-xref.adb: Add handling of Last_Assignment field
1297 (Generate_Reference): Centralize handling of pragma Obsolescent here
1298 (Generate_Reference): Accept an implicit reference generated for a
1299 default in an instance.
1300 (Generate_Reference): Accept a reference for a node that is not in the
1301 main unit, if it is the generic body corresponding to an subprogram
1304 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
1306 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
1308 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
1310 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
1311 use clauses, to avoid messages on packages used to qualify, and also
1312 to avoid messages from obsolescent units.
1313 (Warn_On_Useless_Assignments): Don't generate messages for imported
1314 and exported variables.
1315 (Warn_On_Useless_Assignments): New procedure
1316 (Output_Obsolescent_Entity_Warnings): New procedure
1317 (Check_Code_Statement): New procedure
1319 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
1320 Change name Is_Ada_2005 to Is_Ada_2005_Only
1321 (Last_Assignment): New field for useless assignment warning
1323 2006-10-31 Olivier Hainque <hainque@adacore.com>
1325 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
1326 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
1328 2006-10-31 Bob Duff <duff@adacore.com>
1329 Robert Dewar <dewar@adacore.com>
1330 Ed Schonberg <schonberg@adacore.com>
1332 * g-awk.adb (Default_Session, Current_Session): Compile this file in
1333 Ada 95 mode, because it violates the new rules for AI-318.
1335 * g-awk.ads: Use overloaded subprograms in every case where we used to
1336 have a default of Current_Session. This makes the code closer to be
1337 correct for both Ada 95 and 2005.
1339 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
1340 code, relying on the fact that the compiler generates a warning
1341 instead of an error in -gnatg mode.
1343 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
1344 E_Return_Statement entity kind.
1345 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
1347 * par.adb (P_Interface_Type_Definition): Addition of one formal to
1348 report an error if the reserved word abstract has been previously found.
1349 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
1351 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
1352 parenthesized range attribute usage
1353 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
1355 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
1356 in the syntax for extended_return_statement. This is not in the latest
1357 RM, but the ARG is expected to issue an AI allowing this.
1358 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
1359 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
1360 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
1361 P_Return_Statement): Parse the new syntax for extended_return_statement.
1363 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
1364 Output_End_Missing): Add error-recovery code for the new
1365 extended_return_statement syntax; that is, the new E_Return entry on
1368 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
1369 limited to nonlimited, because otherwise we violate the new Ada 2005
1370 rules about returning limited types in function Create_AST_Handler in
1373 * sem.adb (Analyze): Add cases for new node kinds
1374 N_Extended_Return_Statement and N_Return_Object_Declaration.
1376 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
1377 type is in the same category as type of context before applying check,
1378 to prevent anomalies in instantiations.
1379 (Resolve_Aggregate): Remove test for limited components in aggregates.
1380 It's unnecessary in Ada 95, because if it has limited components, then
1381 it must be limited. It's wrong in Ada 2005, because limited aggregates
1383 (Resolve_Record_Aggregate): Move check for limited types later, because
1384 OK_For_Limited_Init requires its argument to have been resolved.
1385 (Get_Value): When copying the component default expression for a
1386 defaulted association in an aggregate, use the sloc of the aggregate
1387 and not that of the original expression, to prevent spurious
1388 elaboration errors, when the expression includes function calls.
1389 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
1390 were missing. We also didn't handle qualified expressions. Now also
1391 allow function calls. Use new common routine OK_For_Limited_Init.
1392 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
1393 with space can upper case letter).
1395 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
1396 Has_Static_Discriminants flag
1397 (Record_Type_Declaration): Diagnose an attempt to declare an interface
1398 type with discriminants.
1399 (Process_Range_Expr_In_Decl): Do validity checks on range
1400 (Build_Discriminant_Constraints): Use updated form of
1401 Denotes_Discriminant.
1402 (Process_Subtype): If the subtype is a private subtype whose full view
1403 is a concurrent subtype, introduce an itype reference to prevent scope
1405 (Build_Derived_Record_Type, Collect_Interface_Primitives,
1406 Record_Type_Declaration): The functionality of the subprograms
1407 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
1408 is now performed by a single routine.
1409 (Build_Derived_Record_Type): If the type definition includes an explicit
1410 indication of limitedness, then the type must be marked as limited here
1411 to ensure that any access discriminants will not be treated as having
1412 a local anonymous access type.
1413 (Check_Abstract_Overriding): Issue a detailed error message when an
1414 abstract subprogram was not overridden due to incorrect mode of its
1416 (Analyze_Private_Extension_Declaration): Add support for the analysis of
1417 synchronized private extension declarations. Verify that the ancestor is
1418 a limited or synchronized interface or in the generic case, the ancestor
1419 is a tagged limited type or synchronized interface and all progenitors
1420 are either limited or synchronized interfaces.
1421 Derived_Type_Declaration): Check for presence of private extension when
1422 dealing with synchronized formal derived types.
1423 Process_Full_View): Enchance the check done on the usage of "limited" by
1424 testing whether the private view is synchronized.
1425 Verify that a synchronized private view is completed by a protected or
1427 (OK_For_Limited_Init_In_05): New function.
1428 (Analyze_Object_Declaration): Move check for limited types later,
1429 because OK_For_Limited_Init requires its argument to have been resolved.
1430 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
1431 in order to alleviate the upward compatibility introduced by AI-318.
1432 (Constrain_Corresponding_Record): If the constraint is for a component
1433 subtype, mark the itype as frozen, to avoid out-of-scope references to
1434 discriminants in the back-end.
1435 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
1436 this subprogram against wrong sources.
1437 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
1438 discriminant of limited type completed with a protected type, when the
1439 discriminant is used to constrain a private component of the type, and
1440 expansion is disabled.
1441 (Find_Type_Of_Object): Do not treat a return subtype that is an
1442 anonymous subtype as a local_anonymous_type, because its accessibility
1443 level is the return type of the enclosing function.
1444 (Check_Initialization): In -gnatg mode, turn the error "cannot
1445 initialize entities of limited type" into a warning.
1446 (OK_For_Limited_Init): Return true for generated nodes, since it
1447 sometimes violates the legality rules.
1448 (Make_Incomplete_Declaration): If the type for which an incomplete
1449 declaration is created happens to be the currently visible entity,
1450 preserve the homonym chain when removing it from visibility.
1451 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
1452 inherited subprograms.
1453 (Access_Definition): If this is an access to function that is the return
1454 type of an access_to_function definition, context is a type declaration
1455 and the scope of the anonymous type is the current one.
1456 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
1457 incomplete subtype to the set of private dependents of the original
1459 (Constrain_Discriminated_Type): Emit an error message whenever an
1460 incomplete subtype is being constrained.
1461 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
1462 corresponding subtype of the full view of the original incomplete type.
1463 (Check_Incomplete): Properly detect invalid usage of incomplete types
1466 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
1468 * g-catiio.ads, g-catiio.adb (Value): New function.
1469 Given an input String, try and parse a valid Time value.
1471 2006-10-31 Vincent Celier <celier@adacore.com>
1473 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
1474 Integer_Address arithmetic, as in Set_Valid.
1476 2006-10-31 Arnaud Charlet <charlet@adacore.com>
1477 Robert Dewar <dewar@adacore.com>
1479 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
1480 handling executable extension manually and duplicating code.
1482 * make.adb: Implement new -S switch
1483 (Gnatmake): Use new function Osint.Executable_Name instead
1484 of handling executable extension manually.
1486 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
1487 is specified, the executable name ends with this suffix.
1488 Take advantage of Osint.Executable_Name instead of duplicating code.
1490 * switch-m.adb: Recognize new gnatmake -S switch
1492 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
1494 (Get_Target_Parameters): Set Executable_Extension_On_Target if
1497 * makeusg.adb: Add line for gnatmake -S switch
1499 2006-10-31 Vincent Celier <celier@adacore.com>
1501 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
1502 call it with -static-libgcc, as there are some platforms, such as
1503 Darwin, where one of these two switches is compulsory to link.
1505 2006-10-31 Vincent Celier <celier@adacore.com>
1507 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
1508 instead of ADA_PROJECT_PATH, for the project path.
1509 (Gnatls): When displaying the project path directories, use host dir
1512 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
1513 names in the project path, as absolute paths may correspond to
1514 multi-valued VMS logical names.
1516 2006-10-31 Vincent Celier <celier@adacore.com>
1518 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
1520 (Locate_Regular_File): Ditto
1521 (Change_Dir): Remove, no longer used
1522 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
1523 on Windows. Get it calling Get_Current_Dir.
1524 (OpenVMS): Remove imported boolean, no longer needed.
1525 (Normalize_Pathname)[VMS]: Do not resolve directory names.
1526 (Pid_To_Integer): New function to convert a Process_Id to Integer
1528 2006-10-31 Thomas Quinot <quinot@adacore.com>
1530 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
1531 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
1533 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
1536 2006-10-31 Robert Dewar <dewar@adacore.com>
1538 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
1539 initial letter o as a zero.
1541 2006-10-31 Robert Dewar <dewar@adacore.com>
1543 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
1545 2006-10-31 Robert Dewar <dewar@adacore.com>
1547 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
1549 (Layout_Variant_Record): Retrieve the discriminants from the entity
1550 rather than from the type definition, because in the case of a full
1551 type for a private type we need to take the discriminants from the
1553 (Layout_Component_List): When applying the Max operator to variants with
1554 a nonstatic size, check whether either operand is static and scale that
1555 operand from bits to storage units before applying Max.
1556 (Layout_Type): In VMS, if a C-convention access type has no explicit
1557 size clause (and does not inherit one in the case of a derived type),
1558 then the size is reset to 32 from 64.
1560 2006-10-31 Vincent Celier <celier@adacore.com>
1562 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
1563 its file has already been loaded, according to the unit being loaded,
1564 not to the current value of Multiple_Unit_Index.
1566 2006-10-31 Thomas Quinot <quinot@adacore.com>
1567 Eric Botcazou <ebotcazou@adacore.com>
1568 Arnaud Charlet <charlet@adacore.com>
1570 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
1571 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
1573 (a-except.o): Pass it to the compiler.
1574 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
1575 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
1576 a-calend-mingw.adb version.
1578 * Makefile.rtl: Added s-dsaser.
1579 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
1580 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
1581 Ada.Dispatching.Round_Robin.
1582 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
1584 * Make-lang.in: Remove all references to gt-ada-decl.h.
1585 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
1587 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
1588 Update dependencies.
1590 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
1592 2006-10-31 Vincent Celier <celier@adacore.com>
1594 * mlib-utl.adb (Initialized): Remove, no longer used
1595 (Initialize): Remove, no longer used
1596 (Ar): If Ar_Exec is null, get the location of the archive builder and,
1597 if there is one, the archive indexer. Fail if the archive builder cannot
1599 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
1602 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1604 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
1605 Process_Body_Clauses): If the context of a body includes a use clause
1606 for P.Q then a with_clause for P in the same body is not redundant,
1607 even if the spec also has a with_clause on P.
1608 Add missing continuation mark to error msg
1609 (Build_Limited_Views): A limited view of a type is tagged if its
1610 declaration includes a record extension.
1611 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
1612 node, even if the subunit has errors. This avoids malfunction by
1613 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
1614 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
1615 generation of obsolescent messages for with statements (cannot do
1616 this too early, or we cannot implement avoiding the messages in the
1617 case of obsolescent units withing obsolescent units).
1618 (Install_Siblings): If the with_clause is on a remote descendant of
1619 an ancestor of the current compilation unit, find whether there is
1620 a sibling child unit that is immediately visible.
1621 (Remove_Private_With_Clauses): New procedure, invoked after completing
1622 the analysis of the private part of a nested package, to remove from
1623 visibility the private with_clauses of the enclosing package
1625 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
1626 now centralized in Generate_Reference.
1627 (Install_Limited_Context_Clauses): Remove superfluous error
1628 message associated with unlimited view visible through use
1629 and renamings. In addition, at the point in which the error
1630 is reported, we add the backslash to the text of the error
1631 to ensure that it is reported as a single error message.
1632 Use new // insertion for some continuation messages
1633 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
1634 to create implicit with_clause for parent unit mentioned in original
1635 limited_with_clause.
1636 (Install_Limited_With_Unit): Set entity of parent identifiers if the
1637 unit is a child unit. For ASIS queries.
1638 (Analyze_Subunit): If the subunit appears within a child unit, make all
1639 ancestor child units directly visible again.
1641 2006-10-31 Robert Dewar <dewar@adacore.com>
1643 * par-ch10.adb (P_Context_Clause): Minor error message fix
1645 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
1646 Javier Miranda <miranda@adacore.com>
1648 * par-ch12.adb: Grammar update and cleanup.
1649 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
1650 support for synchronized derived type definitions.
1651 Add the new actual Abstract_Present to every call to
1652 P_Interface_Type_Definition.
1653 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
1654 a formal object declaration with an access definition or a subtype mark
1655 with a null exclusion.
1656 (P_Generic_Association): Handle association with box, and others_choice
1657 with box, to support Ada 2005 partially parametrized formal packages.
1659 2006-10-31 Robert Dewar <dewar@adacore.com>
1660 Javier Miranda <miranda@adacore.com>
1662 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
1663 (P_Type_Declaration): Remove barrier against the reserved word "limited"
1664 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
1665 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
1667 (P_Type_Declaration): Add the new actual Abstract_Present to every call
1668 to P_Interface_Type_Definition.
1669 (P_Interface_Type_Definition): Addition of one formal to report an error
1670 if the reserved word abstract has been previously found.
1671 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
1672 object renaming declaration with an access definition or subtype mark
1673 with a possible null exclusion.
1675 * par-ch9.adb: Minor error msg fix
1677 * par-load.adb: Add missing continuation mark to error msg
1679 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
1681 2006-10-31 Vincent Celier <celier@adacore.com>
1683 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
1684 unknown attribute in unknown package or in package that does not need
1686 (Parse_Package_Declaration): Do not issue warning for unknown package in
1689 2006-10-31 Vincent Celier <celier@adacore.com>
1691 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
1692 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
1695 2006-10-31 Vincent Celier <celier@adacore.com>
1697 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
1698 on VMS, change "__" to '.' before checking the name.
1699 (Record_Ada_Source): Always add the source file name in the list of
1700 of sources, even if it is not the first time, as it is for another
1702 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
1703 dot, instead of replacing only the first '_'.
1705 * prj-part.adb (Parse): Convert project file path to canonical form
1707 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
1708 extended, the project id of the project extending it is recorded in its
1709 data, even when it has already been processed as an imported project.
1711 2006-10-31 Robert Dewar <dewar@adacore.com>
1713 * repinfo.adb (List_Entities): Don't list entities from renaming
1716 2006-10-31 Arnaud Charlet <charlet@adacore.com>
1717 Robert Dewar <dewar@adacore.com>
1719 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
1720 only a restriction warning is active for the given restriction. This is
1721 desirable because we do not want to modify code in the case where only
1723 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
1724 causes overriding of real restrictions.
1725 Take advantage of new No_Restrictions constant.
1727 * raise.h: (__gnat_set_globals): Change profile.
1729 2006-10-31 Arnaud Charlet <charlet@adacore.com>
1731 * rtsfind.adb: Remove s-polint from comment as it exists no more.
1734 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
1735 Move all the entities in obsolete package System.PolyORB_Interface to
1736 System.Partition_Interface.
1737 (RE_Storage_Size): New function in System.Tasking.
1738 (RE_Get_Ceiling): New entity.
1739 (RE_Set_Ceiling): New entity.
1740 (RO_PE_Get_Ceiling): New entity.
1741 (RO_RE_Set_Ceiling): New entity.
1742 (Inherit_CPP_DT): New entity
1744 2006-10-31 Robert Dewar <dewar@adacore.com>
1746 * scng.adb (Scan, case of numeric literal): Better msg for identifier
1747 starting with a digit.
1749 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1750 Thomas Quinot <quinot@adacore.com>
1751 Javier Miranda <miranda@adacore.com>
1752 Gary Dismukes <dismukes@adacore.com>
1754 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
1755 properly an attempt to apply Unchecked_Access to a protected operation.
1756 (OK_Self_Reference): New subprogram to check the legality of an access
1757 attribute whose prefix is the type of an enclosing aggregate.
1758 Generalizes previous mechanism to handle attribute references nested
1759 arbitrarily deep within the aggregate.
1760 (Analyze_Access_Attribute): An access attribute whose prefix is a type
1761 can appear in an aggregate if this is a default-initialized aggregate
1762 for a self-referential type.
1763 (Resolve_Attribute, case Access): Ditto.
1764 Add support for new implementation defined attribute Stub_Type.
1765 (Eval_Attribute, case Attribute_Stub_Type): New case.
1766 (Analyze_Attribute, case Attribute_Stub_Type): New case.
1767 (Stream_Attribute_Available): Implement using new subprogram from
1768 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
1769 Has_Specified_Stream_Attribute flag.
1770 Disallow Storage_Size and Storage_Pool for access to subprogram
1771 (Resolve_Attribute, case 'Access et al): Take into account anonymous
1772 access types of return subtypes in extended return statements. Remove
1773 accessibility checks on anonymous access types when Unchecked_Access is
1775 (Analyze_Attribute): Add support for the use of 'Class to convert
1776 a class-wide interface to a tagged type.
1777 Add support for the attribute Priority.
1778 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
1779 whether the designated type is discriminated with a constrained partial
1780 view and require static matching in that case.
1781 Add local variable Des_Btyp. The Designated_Type
1782 of an access to incomplete subtype is either its non-limited view if
1783 coming from a limited with or its etype if regular incomplete subtype.
1785 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
1786 Fix predicate to identify and allow cases of (expander-generated)
1787 references to tag of designated object of a RACW.
1788 (Validate_Static_Object_Name): In Ada 2005, a formal object is
1789 non-static, and therefore cannot appear as a primary in a preelaborable
1791 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
1792 Has_Read_Write_Attributes.
1793 (Has_Read_Write_Attributes): Reimplement in termes of
1794 Has_Stream_Attribute_Definition.
1795 (Missing_Read_Write_Attributes): When checking component types in a
1796 record, unconditionally call Missing_Read_Write_Attributes recursively
1797 (remove guard checking for Is_Record_Type / Is_Access_Type).
1799 2006-10-31 Robert Dewar <dewar@adacore.com>
1801 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
1802 useless assignments here and conditionalize it on absence of exception
1804 (Analyze_Exception_Handlers): Small code reorganization of error
1805 detection code, for new handling of formal packages.
1807 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1808 Hristian Kirtchev <kirtchev@adacore.com>
1810 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
1811 that has been constant-folded, preserve information of original tree,
1813 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
1814 generated private extension declaration if the formal derived type is
1815 synchronized. Carry synchronized present over to the generated private
1817 (Validate_Derived_Type_Instance): Ensure that the actual of a
1818 synchronized formal derived type is a synchronized tagged type.
1819 (Instantiate_Formal_Package): When creating the instantiation used to
1820 validate the actual package of a formal declared without a box, check
1821 whether the formal itself depends on a prior actual.
1822 (Instantiate_Formal_Subprogram): Create new entities for the defining
1823 identifiers of the formals in the renaming declaration, for ASIS use.
1824 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
1825 a renaming declaration or a subtype declaration for an actual in an
1826 instance, capture location information of declaration in generic, for
1828 (Instantiate_Formal_Package): Add comments on needed additional tests.
1829 AI-317 (partial parametrization) is fully implemented.
1830 (Validate_Private_Type_Instance): Add check for actual which
1831 must have preelaborable initialization
1832 Use new // insertion for some continuation messages
1833 (Analyze_Formal_Object_Declaration): Change usage of Expression to
1834 Default_Expression. Add type retrieval when the declaration has an
1835 access definition. Update premature usage of incomplete type check.
1836 (Check_Access_Definition): New subsidiary routine. Check whether the
1837 current compilation version is Ada 05 and the supplied node has an
1839 (Instantiate object): Alphabetize local variables. Handle the creation
1840 of new renaming declarations with respect to the kind of definition
1841 used - either an access definition or a subtype mark. Guard against
1842 unnecessary error message in the context of anonymous access types after
1843 they have been resolved. Add check for required null exclusion in a
1844 formal object declaration.
1845 (Switch_View): A private subtype of a non-private type needs to be
1846 switched (the base type can have been switched without its private
1847 dependents because of the last branch of Check_Private_View.
1848 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
1850 (Instantiate_Type): Emit an error message whenever a class-wide type of
1851 a tagged incomplete type is used as a generic actual.
1852 (Find_Actual_Type): Extend routine to handle a component type in a child
1853 unit that is imported from a formal package in a parent.
1854 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
1855 agree on constrainedness, rather than checking against ultimate ancestor
1856 (Instantiate_Subprogram_Body): Create a cross-reference link to the
1857 generic body, for navigation purposes.
1859 2006-10-31 Robert Dewar <dewar@adacore.com>
1860 Thomas Quinot <quinot@adacore.com>
1862 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
1864 (New_Stream_Subprogram): When processing an attribute definition clause
1865 for a stream-oriented subprogram, record an entity node occurring at
1866 the point of clause to use for checking the visibility of the clause,
1867 as defined by 8.3(23) as amended by AI-195.
1868 (New_Stream_Subprogram): New procedure, factoring behaviour from both
1869 New_Stream_Function and New_Stream_Procedure.
1870 (New_Stream_Function, New_Stream_Procedure): Removed.
1871 (Analyze_Attribute_Definition_Clause, case Address): Check new
1872 Alignment_Check check
1874 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1875 Javier Miranda <miranda@adacore.com>
1876 Robert Dewar <dewar@adacore.com>
1878 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
1879 generate the same errors compiling under -gnatc.
1880 (Try_Object_Operation): If no candidate interpretation succeeds, but
1881 there is at least one primitive operation with the right name, report
1882 error in call rather than on a malformed selected component.
1883 (Analyze_Selected_Component): If the prefix is an incomplete type from
1884 a limited view, and the full view is available, use the full view to
1885 determine whether this is a prefixed call to a primitive operation.
1886 (Operator_Check): Verify that a candidate interpretation is a binary
1887 operation before checking the type of its second formal.
1888 (Analyze_Call): Add additional warnings for function call contexts not
1890 (Analyze_Allocator): Move the check for "initialization not allowed for
1891 limited types" after analyzing the expression. This is necessary,
1892 because OK_For_Limited_Init looks at the structure of the expression.
1893 Before analysis, we don't necessarily know what sort of expression it
1894 is. For example, we don't know whether F(X) is a function call or an
1895 indexed component; the former is legal in Ada 2005; the latter is not.
1896 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
1897 were missing. We also didn't handle qualified expressions. Now also
1898 allow function calls. Use new common routine OK_For_Limited_Init.
1899 (Analyze_Type_Conversion): Do not perform some legality checks in an
1900 instance, because the error message will be redundant or spurious.
1901 (Analyze_Overloaded_Selected_Component): Do not do style check when
1902 setting an entity, since we do not know it is the right entity yet.
1903 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
1904 (Analyze_Overloaded_Selected_Component): Same change
1905 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
1906 since regular incomplete subtypes are transformed into corresponding
1907 subtypes of their full views.
1908 (Complete_Object_Operation): Treat name of transformed subprogram call
1909 as coming from source, for browsing purposes.
1910 (Try_Primitive_Operation): If formal is an access parameter, compare
1911 with base type of object to determine whether it is a primitive
1913 (Operator_Check): If no interpretation of the operator matches, check
1914 whether a use clause on any candidate might make the operation legal.
1915 (Try_Class_Wide_Operation): Check whether the first parameter is an
1916 access type whose designated type is class-wide.
1918 2006-10-31 Robert Dewar <dewar@adacore.com>
1919 Ed Schonberg <schonberg@adacore.com>
1920 Gary Dismukes <dismukes@adacore.com>
1922 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
1923 warn on infinite loops.
1924 Add \\ to some continuation messages
1925 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
1926 (Process_Bounds): If the bounds are integer literals that result from
1927 constant-folding, and they carry a user-defined type, preserve that type
1928 rather than treating this as an integer range.
1929 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
1930 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
1931 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
1932 left hand side of assignment.
1933 (Analyze_Assignment): Add suport to manage assigments to the attribute
1934 priority of a protected object.
1935 (Check_Possible_Current_Value_Condition): Allow fully qualified names
1936 not just identifiers.
1937 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
1938 or AND THEN for possible tracking.
1939 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
1940 case of while loops so we can track values in the loop body.
1942 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1943 Hristian Kirtchev <kirtchev@adacore.com>
1944 Bob Duff <duff@adacore.com>
1946 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
1947 procedure cannot be a protected operation (it is a basic_declaration,
1948 not a subprogram_declaration).
1949 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
1950 Subp. Add logic for entry processing.
1951 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
1952 Determine whether an entry or subprogram of a protected or task type
1953 override an inherited primitive of an implemented interface.
1954 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
1955 Update the actual used in calls to Check_Overriding_Indicator.
1956 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
1957 generate the proper reference to the parent unit, for cross-reference.
1958 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
1960 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
1961 (Add_Extra_Formal): Revise procedure to allow passing in associated
1962 entity, scope, and name suffix, and handle setting of the new
1963 Extra_Formals field.
1964 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
1965 pass new parameters. Add support for adding the new extra access formal
1966 for functions whose calls are treated as build-in-place.
1967 (Analyze_A_Return_Statement): Correct casing in error message.
1968 Move Pop_Scope to after Analyze_Function_Return, because an extended
1969 return statement really is a full-fledged scope. Otherwise, visibility
1970 doesn't work right. Correct use of "\" for continuation messages.
1971 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
1972 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
1973 the node doesn't get properly marked as analyzed.
1974 (Analyze_Subprogram_Body): If subprogram is a function that returns
1975 an anonymous access type that denotes a task, build a Master Entity
1977 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
1978 proper usage of null exclusion in a result definition.
1979 (Process_Formals): Code cleanup and new error message.
1980 (Process_Formals): Detect incorrect application of null exclusion to
1982 (Conforming_Types): Handle conformance between [sub]types and itypes
1983 generated for entities that have null exclusions applied to them.
1984 (Maybe_Primitive_Operation): Add an additional type retrieval when the
1985 base type is an access subtype. This case arrises with null exclusions.
1986 (New_Overloaded_Entity): Do not remove the overriden entity from the
1987 homonym chain if it corresponds with an abstract interface primitive.
1988 (Process_Formals): Replace membership test agains Incomplete_Kind with a
1989 call to the synthesized predicate Is_Incomplete_Type.
1990 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
1992 (Analyze_Subprogram_Declaration): Check that abstract interface
1993 primitives are abstract or null.
1994 (Analyze_Subprogram_Specification): Remove previous check for abstract
1995 interfaces because it was not complete.
1996 (Has_Interface_Formals): Removed.
1998 2006-10-31 Ed Schonberg <schonberg@adacore.com>
1999 Javier Miranda <miranda@adacore.com>
2001 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
2002 of Analyze_Package_Body, to create Itype references for anonymous
2003 access types created in the package declaration, whose designated types
2004 may have only a limited view.
2005 (Analyze_Package_Specification): For the private part of a nested
2006 package, install private_with_clauses of enclosing compilation unit if
2007 we are in its visible part.
2008 (Declare_Inherited_Private_Subprograms): Complete barrier
2009 to ensure that the primitive operation has an alias to some parent
2010 primitive. This is now required because, after the changes done for the
2011 implementation of abstract interfaces, the contents of the list of
2012 primitives has entities whose alias attribute references entities of
2013 such list of primitives.
2014 (Analyze_Package_Specification): Simplify code that handles parent units
2015 of instances and formal packages.
2016 (Uninstall_Declarations): Check the convention consistency among
2017 primitive overriding operations of a tagged record type.
2019 2006-10-31 Robert Dewar <dewar@adacore.com>
2020 Hristian Kirtchev <kirtchev@adacore.com>
2021 Javier Miranda <miranda@adacore.com>
2022 Ed Schonberg <schonberg@adacore.com>
2024 * sem_ch8.adb: Minor error msg rewording
2025 (Undefined): When checking for misspellings, invert arguments (to get
2026 expected and found set right)
2027 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
2028 (Analyze_Generic_Renaming): Same fix
2029 (Use_One_Package): Do not take into account the internal entities of
2030 abstract interfaces during the analysis of entities that are marked
2031 as potentially use-visible.
2032 (Find_Type): Handle the case of an attribute reference for
2033 implementation defined attribute Stub_Type (simply let the analysis of
2034 the attribute reference rewrite it).
2035 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
2036 type that appears in a Use_Type clause.
2037 (Analyze_Object_Renaming): Add support for renaming of the Priority
2039 (Find_Type): In Ada 2005, a task type can be used within its own body,
2040 when it appears in an access definition.
2041 (Analyze_Object_Renaming): Remove warning on null_exclusion.
2042 (Analyze_Object_Renaming): Introduce checks for required null exclusion
2043 in a formal object declaration or in a subtype declaration.
2044 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
2045 (Check_Null_Exclusion): New local routine to
2046 Analyze_Subprogram_Renaming. Check whether the formals and return
2047 profile of a renamed subprogram have required null exclusions when
2048 their counterparts of the renaming already impose them.
2049 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
2050 Determine whether an entity is inside a generic scope.
2051 (In_Open_Scope): First pass of documentation update.
2052 (Find_Expanded_Name): Add support for shadow entities associated with
2053 limited withed packages. This is required to handle nested packages.
2054 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
2055 that makes a renaming of a limited withed package illegal.
2057 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
2058 Ed Schonberg <schonberg@adacore.com>
2060 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
2061 Check_Overriding_Indicator.
2062 (Analyze_Task_Definition): Ditto.
2063 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
2064 (Check_Overriding_Indicator): To find overridden interface operation,
2065 examine only homonyms that have an explicit subprogram declaration, not
2066 inherited operations created by an unrelated type derivation.
2067 (Check_Overriding_Indicator): When checking for the presence of "null"
2068 in a procedure, ensure that the queried node is a procedure
2070 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
2071 type when the formal is an access to variable.
2072 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
2073 (Analyze_Task_Type): Same addition
2074 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
2075 provide navigation capabilities for entries.
2077 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
2078 Ed Schonberg <schonberg@adacore.com>
2079 Javier Miranda <miranda@adacore.com>
2080 Gary Dismukes <dismukes@adacore.com>
2082 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
2083 inherited from an interface ancestor by another interface in the
2084 context of an instance as 'late'.
2085 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
2086 of a call to a function that dispatches on access result.
2087 (Check_Dispatching_Operation): In case of late overriding of a primitive
2088 that covers abstract interface subprograms we register it in all the
2089 secondary dispatch tables associated with abstract interfaces.
2090 (Check_Dispatching_Call): Add check that a dispatching call is not made
2091 to a function with a controlling result of a limited type. This is a
2092 current implementation restriction.
2093 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
2094 (Check_Dispatching_Operation): Do no emit a warning if the controlling
2095 argument is an interface type that is a generic formal.
2096 (Is_Interface_Subprogram): Removed.
2097 (Check_Dispatching_Operation): If the subprogram is not a dispatching
2098 operation, check the formals to handle the case in which it is
2099 associated with an abstract interface type.
2101 2006-10-31 Robert Dewar <dewar@adacore.com>
2102 Ed Schonberg <schonberg@adacore.com>
2104 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
2105 Add new calls to this procedure during traversal
2106 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
2107 another unit if expansion is disabled.
2109 2006-10-31 Robert Dewar <dewar@adacore.com>
2111 * sem_eval.adb (Compile_Time_Compare): Make use of information from
2112 Current_Value in the conditional case, to evaluate additional
2113 comparisons at compile time.
2115 2006-10-31 Ed Schonberg <schonberg@adacore.com>
2116 Hristian Kirtchev <kirtchev@adacore.com>
2117 Javier Miranda <miranda@adacore.com>
2119 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
2120 subprogram type to provide better diagnostics in case of ambiguity.
2121 (Covers): Handle coverage of formal and actual anonymous access types in
2122 the context of generic instantiation.
2123 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
2124 abstract interface types; this is required to handle concurrent types
2125 with discriminants and abstract interface types.
2126 (Covers): Include type coverage of both regular incomplete subtypes and
2127 incomplete subtypes of incomplete type visibles through a limited with
2130 2006-10-31 Robert Dewar <dewar@adacore.com>
2131 Hristian Kirtchev <kirtchev@adacore.com>
2132 Ed Schonberg <schonberg@adacore.com>
2134 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
2135 messages for entities in packages which are not used.
2136 (Collect_Synchronized_Interfaces): New procedure.
2137 (Overrides_Synchronized_Primitive): New function.
2138 (Denotes_Discriminant): Extend predicate to apply to task types.
2139 Add missing continuation marks in error msgs
2140 (Unqualify): New function for removing zero or more levels of
2141 qualification from an expression. There are numerous places where this
2142 ought to be used, but we currently only deal properly with zero or one
2144 (In_Instance); The analysis of the actuals in the instantiation of a
2145 child unit is not within an instantiation, even though the parent
2146 instance is on the scope stack.
2147 (Safe_To_Capture_Value): Exclude the case of variables that are
2149 (Check_Obsolescent): Removed
2150 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
2151 is an aliased view, even when rewritten as a reference to the target
2152 object in an assignment.
2153 (Get_Subprogram_Entity): New function
2154 (Known_To_Be_Assigned): New function
2155 (Type_Access_Level): Compute properly the access level of a return
2156 subtype that is an anonymous access type.
2157 (Explain_Limited_Type): Correct use of "\" for continuation messages.
2158 (Is_Transfer): The new extended_return_statement causes a transfer of
2160 (Has_Preelaborable_Initialization): New function
2161 (Has_Null_Exclusion): New function. Given a node N, determine whether it
2162 has a null exclusion depending on its Nkind.
2163 Change Is_Lvalue to May_Be_Lvalue
2164 (May_Be_Lvalue): Extensive additional code to deal with subprogram
2165 arguments (IN parameters are not Lvalues, IN OUT parameters are).
2166 (Safe_To_Capture_Value): Extend functionality so it can be used for
2167 the current value condition case.
2168 (Has_Compatible_Alignment): New function
2169 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
2170 objects to handle the Ada 2005 case, where aliasedness no longer implies
2171 that the object is constrained. In particular, for dereferenced names,
2172 the designated object must be assumed to be unconstrained.
2173 (Kill_Current_Values): Properly deal with the case where we encounter
2174 a loop in the scope chain.
2175 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
2177 (Compile_Time_Constraint_Error): Improve error message in error case
2179 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
2180 associated with entities of abstract interface primitives.
2181 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
2183 2006-10-31 Robert Dewar <dewar@adacore.com>
2185 * s-osinte-tru64.adb:
2186 Mark Asm statements Volatile to prevent warnings (seems a
2187 reasonable change anyway)
2190 * s-mastop-irix.adb: Add Volatile to Asm statements
2191 Suppresses warning, and seems appropriate in any case
2193 * s-osinte-vms.adb: Add Volatile to Asm statement
2195 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
2197 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
2199 Add call to Check_Code_Statement
2201 2006-10-31 Robert Dewar <dewar@adacore.com>
2202 Ed Schonberg <schonberg@adacore.com>
2203 Bob Duff <duff@adacore.com>
2205 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
2206 Synchronized_Present): Add Formal_Derived_Type_Definition and
2207 Private_Extension_Declaration to the list of assertions.
2208 (Is_Entry_Barrier_Function): New flag
2209 (Has_Self_Reference): New flag on aggregates, to indicate that they
2210 contain a reference to the enclosing type, inserted through a default
2212 (Next_Rep_Item): Move from Node4 to Node5.
2213 (Entity): Add this field for N_Attribute_Definition_Clause.
2214 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
2215 (N_Return_Object_Declaration): Remove this node kind. We now use
2216 N_Object_Declaration instead.
2217 (Actual_Designated_Subtype): Move to a different place to make room in
2218 N_Extended_Return_Statement.
2219 (Procedure_To_Call): Move to a different place to make room in
2220 N_Extended_Return_Statement.
2221 (Return_Type): Removed this field to make room in return statements
2223 (Return_Statement_Entity): New field in return statements, in part to
2224 replace Return_Type, and in part to support the fact that return
2225 statements are now pushed on the scope stack during semantic analysis.
2226 (Return_Object_Declarations): New field to support extended return
2228 (N_Extended_Return_Statement): New node for extended_return_statement
2230 (N_Return_Object_Declaration): New node for part of
2231 extended_return_statement nonterminal. Needed because all the necessary
2232 fields won't fit in N_Extended_Return_Statement.
2233 Generic_associations now carry the Box_Present flag, to indicate a
2234 default for an actual in a partially parametrized formal package.
2236 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
2237 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
2238 and for the new predefined dispatching policies: EDF_Across_Priorities,
2239 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
2240 Introduce new name Stub_Type for implementation defined attribute.
2241 Add pragma Preelaborable_Initialization
2242 Add entry for Priority attribute.
2243 Add Pragma_Wide_Character_Encoding
2244 (Get_Convention_Name): Given a convention id, this function returns the
2245 corresponding name id from the names table.
2247 2006-10-31 Ed Schonberg <schonberg@adacore.com>
2248 Robert Dewar <dewar@adacore.com>
2249 Bob Duff <duff@adacore.com>
2251 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
2252 print null exclusion twice in the case of an access definition,
2253 Implement new -gnatL switch
2254 Remove N_Return_Object_Declaration. We now use
2255 N_Object_Declaration instead. Implement the case for
2256 N_Extended_Return_Statement. Alphabetize the cases.
2257 Add cases for new nodes N_Extended_Return_Statement and
2258 N_Return_Object_Declaration. The code is not yet written.
2259 Update the output for N_Formal_Object_Declaration
2260 and N_Object_Renaming_Declaration.
2261 (Write_Itype): Account for the case of a modular integer subtype whose
2262 base type is private.
2264 2006-10-31 Arnaud Charlet <charlet@adacore.com>
2266 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
2267 Remove elaboration code, now done in the binder.
2269 * s-rident.ads: Make this unit Preelaborate.
2270 (No_Restrictions): New constant used to clean up code and follow
2271 preelaborate constraints.
2274 Add System.Restrictions dependence, referenced directly from the
2275 binder generated file.
2277 2006-10-31 Gary Dismukes <dismukes@adacore.com>
2279 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
2280 True when AAMP extended floating-point is in use (48-bit). Change type
2281 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
2282 the two byte array types on AFloat. Change type of IV_Ilf overlay
2283 variable from Byte8 to ByteLF. Add appropriate initializations of
2284 floating-point overlays for AAMP cases.
2286 2006-10-31 Javier Miranda <miranda@adacore.com>
2288 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
2289 (Get_Ceiling): New subprogram that returns
2290 the ceiling priority of the protected object.
2291 (Set_Ceiling): New subprogram that sets the new ceiling priority of
2292 the protected object.
2294 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
2296 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
2298 2006-10-31 Jose Ruiz <ruiz@adacore.com>
2300 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
2301 requeuing to the same protected object to give higher priority tasks
2302 the opportunity to execute.
2304 2006-10-31 Robert Dewar <dewar@adacore.com>
2306 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
2307 add more precise check for the character sequence that follows '[' to
2308 avoid possible confusion in case if '[' is the last character of a
2310 (Scan_Wide): Always allow brackets encoding
2312 2006-10-31 Olivier Hainque <hainque@adacore.com>
2314 * s-stchop.ads: make this unit preelaborate. This is desirable in
2315 general and made mandatory by the use of this unit by s-taprop which
2316 is itself preelaborate.
2318 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
2319 Td_Events component.
2321 2006-10-31 Vincent Celier <celier@adacore.com>
2323 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
2326 2006-10-31 Vincent Celier <celier@adacore.com>
2328 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
2330 2006-10-31 Vincent Celier <celier@adacore.com>
2332 * makegpr.adb (Check_Compilation_Needed): Take into account path names
2334 (Check_Compilation_Needed): When checking a C or C++ source, do not
2335 resolve symbolic links.
2336 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
2337 When not in verbose mode and Ellipse is True, display "..." for the
2338 first argument with Display set to False.
2339 (Build_Global_Archive): Always set Display True for the first object
2340 file. Call Display_Command with Ellipse set to True.
2342 2006-10-31 Matt Heaney <heaney@adacore.com>
2344 * a-crbtgo.ads: Commented each subprogram
2346 * a-crbtgo.adb: Added reference to book from which algorithms were
2349 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
2350 indicate which child.
2351 (Generic_Conditional_Insert): changed parameter name from "Success" to
2353 (Generic_Unconditional_Insert_With_Hint): improved algorithm
2355 * a-coorse.adb (Replace_Element): changed parameter name in call to
2356 conditional insert operation.
2358 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
2360 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
2363 * a-ciorse.adb (Replace_Element): changed parameter name in call to
2364 conditional insert operation.
2366 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
2369 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
2370 instead of mode inout.
2372 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
2374 (Generic_Read): preserve existing buckets array if possible
2375 (Generic_Write): don't send buckets array length anymore
2377 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
2378 instead of mode inout.
2380 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
2381 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
2383 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
2384 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
2385 (Replace_Element): local operation is now an instantiation
2387 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
2388 check current length.
2389 (Generic_Replace_Element): new operation
2391 2006-10-31 Doug Rupp <rupp@adacore.com>
2393 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
2394 Call TBK$SYMBOLIZE without omitting parameters.
2396 2006-10-31 Vincent Celier <celier@adacore.com>
2398 * symbols-processing-vms-ia64.adb,
2399 symbols-processing-vms-alpha.adb (Process): Do not include symbols
2400 that come from generic instantiations in bodies.
2402 2006-10-31 Pat Rogers <rogers@adacore.com>
2404 * a-rttiev.ads, a-rttiev.adb:
2405 This is a significant redesign primarily for the sake of automatic
2406 timer task termination but also to fix a design flaw.
2407 Therefore we are now using an RTS lock, instead of a protected
2408 object, to provide mutual exclusion to the queue of pending events
2409 and the type Timing_Event is no longer a protected type.
2411 2006-10-31 Robert Dewar <dewar@adacore.com>
2412 Cyrille Comar <comar@adacore.com>
2413 Ben Brosgol <brosgol@adacore.com>
2415 * debug.adb: Update flags documentation
2417 * gnat_ugn.texi: Add documentation for new -gnatwq switch
2418 Clean up documentation for several other warning switches
2419 Clarify how task stack size can be specified with various
2420 versions of Windows.
2421 Add note that -gnatVo includes ranges including loops
2422 Add documentation for -gnatL switch
2423 Add note on elaboration warning for initializing variables
2424 Add documentation for new -gnatwt warning switch
2425 Document new form of pragma Warnings (On|Off, string)
2426 Add comment on use of pragma Warnings to control warnings
2427 Add documentation for -gnatjnn switch
2428 Modify section on interfacing with C for VMS 64-bit.
2429 Add doc for -gnatVe/E
2430 Add documentation of new warning flags -gnatww/-gnatwW
2431 Add warnings about address clause overlays to list of warnings
2432 (Exception Handling Control): Document that the option --RTS must be
2433 used consistently for gcc and gnatbind.
2434 Clarify that inlining is not always possible
2435 Update documentation on pragma Unchecked_Union.
2438 Add documentation for new extended version of pragma Obsolescent
2439 Add documentation for implementation defined attribute 'Stub_Type.
2440 Add note on use of Volatile in asm statements
2441 Add documentation on use of pragma Unreferenced in context clause
2442 Document new form of pragma Warnings (On|Off, pattern)
2443 Document pragma Wide_Character_Encoding
2444 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
2445 enforced if code generation is active.
2446 Add section on pragma Suppress to document GNAT specific check
2448 Clarify difference between No_Dispatching_Calls & No_Dispatch.
2449 Add documentation for pragma Restrictions (No_Elaboration_Code)
2452 Add comments on layout of subprogram local variables in the
2453 presence of nested subprograms.
2457 * elists.ads: Minor reformatting
2458 Node returns Node_Or_Entity_Id (doc change only)
2460 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
2462 * g-arrspl.ads (Create): Update comments.
2464 * sem.ads: Add details on the handling of the scope stack.
2466 * usage.adb: Update documentation.
2468 * validsw.ads, validsw.adb:
2469 Add definition of Validity_Check_Components and implement -gnatVe/E
2471 * vms_data.ads: Add missing VMS qualifiers.
2473 * s-addope.ads: Add documentation on overflow and divide by zero
2475 2006-10-31 Robert Dewar <dewar@adacore.com>
2476 Thomas Quinot <quinot@adacore.com>
2477 Arnaud Charlet <charlet@adacore.com>
2479 * fmap.adb: Put routines in alpha order
2481 * g-boumai.ads: Remove redundant 'in' keywords
2483 * g-cgi.adb: Minor reformatting
2485 * g-cgi.ads: Remove redundant 'in' keywords
2487 * get_targ.adb: Put routines in alpha order
2489 * prj-attr.ads: Minor reformatting
2491 * s-atacco.ads: Minor reformatting
2493 * scn.adb: Put routines in alpha order
2495 * sinput-l.adb: Minor comment fix
2497 * sinput-p.adb: Minor comment fix
2499 * s-maccod.ads: Minor reformatting
2501 * s-memory.adb: Minor reformatting
2503 * s-htable.adb: Fix typo in comment.
2505 * s-secsta.adb: Minor comment update.
2507 * s-soflin.adb: Minor reformatting
2510 Add comment about odd qualification in Storage_Offset declaration
2513 Remove unnecessary 'in' keywords for formal parameters.
2515 * treeprs.adt: Minor reformatting
2517 * urealp.adb: Put routines in alpha order
2519 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
2522 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
2524 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
2526 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
2527 workaround as on other platforms.
2529 * g-eacodu-vms.adb: Remove redundant 'in' keywords
2530 * g-expect-vms.adb: Remove redundant 'in' keywords
2532 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
2533 clear error message if the list-of-files file cannot be opened.
2535 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
2536 equality operator is always visible.
2538 * lang.opt: Woverlength-strings: New option.
2541 Update copyright, since nmake.ads and nmake.adb have changed.
2543 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
2544 (Binder_Output_Time_Stamps_Set): removed.
2545 (Old_Binder_Output_Time_Stamp): idem.
2546 (New_Binder_Output_Time_Stamp): idem.
2547 (Recording_Time_From_Last_Bind): idem.
2548 (Recording_Time_From_Last_Bind): Make constant.
2550 * output.ads, output.adb (Write_Str): Allow LF characters
2551 (Write_Spaces): New procedure
2553 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
2555 * inline.adb: Minor reformatting
2557 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
2559 * s-mastop-vms.adb: Remove redundant 'in' keywords
2561 * s-osprim-vms.adb: Remove redundant 'in' keywords
2563 * s-trafor-default.adb: Remove redundant 'in' keywords
2565 * 9drpc.adb: Remove redundant 'in' keywords
2567 * s-osinte-mingw.ads: Minor reformatting
2569 * s-inmaop-posix.adb: Minor reformatting
2571 * a-direio.ads: Remove quotes from Compile_Time_Warning message
2573 * a-exexda.adb: Minor code reorganization
2575 * a-filico.adb: Minor reformatting
2577 * a-finali.adb: Minor reformatting
2579 * a-nudira.ads: Remove quote from Compile_Time_Warning message
2581 * a-numeri.ads: Minor reformatting
2583 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
2585 * exp_pakd.ads: Fix obsolete comment
2587 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
2588 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
2589 Probably not a bug, but certainly neater and more efficient.
2591 * a-tienio.adb: Minor reformatting
2593 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
2594 Avoid assuming low bound of string is 1.
2596 * gnatbind.adb: Change Bindusg to package and rename procedure as
2597 Display, which now ensures that it only outputs usage information once.
2598 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
2600 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
2603 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
2605 (Match): Add pragma Assert to ensure that Matches'First is zero
2607 * g-regpat.ads (Match): Document that Matches lower bound must be zero
2609 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
2610 documented preconditions (also kills warnings about bad indexes).
2612 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
2614 (Build_Import_Library): Ditto;
2616 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
2618 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
2620 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
2621 lower bound of choice table is 1.
2623 * sem_case.ads (Analyze_Choices): Document that lower bound of
2626 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
2629 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
2630 and add appropriate Assert pragma to suppress warnings.
2632 * atree.h, atree.ads, atree.adb
2633 Change Elist24 to Elist25
2634 Add definitions of Field28 and Node28
2635 (Traverse_Field): Use new syntactic parent table in sinfo.
2637 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
2639 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
2641 * exp_tss.adb: Put routines in alpha order
2643 * fe.h: Remove redundant declarations.
2645 2006-10-23 Rafael Avila de Espindola <rafael.espindola@gmail.com>
2647 * utils.c (builtin_function): Rename to gnat_builtin_function.
2648 Move common code to add_builtin_function.
2649 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
2650 gnat_builtin_function.
2651 * gigi.h (builtin_function): Rename to gnat_builtin_function.
2652 Change the signature.
2654 2006-10-16 Brooks Moses <bmoses@stanford.edu>
2656 * Makefile.in: Add TEXI2PDF definition.
2657 * Make-lang.in: Add "ada.pdf" target.
2659 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
2661 * decl.c, utils.c: Fix comment typos.
2662 * utils.c: Fix a typo.
2664 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
2666 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
2667 on "pure" Ada subprograms if SJLJ exceptions are used.
2668 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
2669 on the declaration node of JMPBUF_SAVE.
2670 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
2671 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
2672 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
2674 2006-08-20 Laurent GUERBY <laurent@guerby.net>
2677 g-socket.adb (Bind_Socket): Call Set_Address.
2679 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
2682 * decl.c (same_discriminant_p): New static function.
2683 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
2684 subtype and we have discriminants, fix up the COMPONENT_REFs
2685 for the discriminants to make them reference the corresponding
2686 fields of the parent subtype after it has been built.
2688 2006-09-15 Roger Sayle <roger@eyesopen.com>
2691 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
2692 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
2694 2006-09-13 Olivier Hainque <hainque@adacore.com>
2697 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
2698 of a SAVE_EXPR, just make the operand addressable/not-readonly and
2699 let the common gimplifier code make and propagate a temporary copy.
2700 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
2701 out/in-out actuals and defer setting the addressable/readonly bits
2704 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
2707 * decl.c (components_to_record): Defer emitting debug info for the
2708 record type associated with the variant until after we are sure to
2711 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
2714 * gigi.h (gnat_internal_attribute_table): Declare.
2715 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
2716 * utils.c (gnat_internal_attribute_table): New global variable.
2717 (builtin_function): Always call decl_attributes on the builtin.
2718 (handle_const_attribute): New static function.
2719 (handle_nothrow_attribute): Likewise.
2721 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2723 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
2725 2006-06-23 Olivier Hainque <hainque@adacore.com>
2727 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
2728 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
2730 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
2731 Eric Botcazou <ebotcazou@adacore.com>
2734 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
2735 check-gnat into check-acats.
2737 2006-06-17 Karl Berry <karl@gnu.org>
2739 * gnat-style.texi (@dircategory): Use "Software development"
2740 instead of "Programming", following the Free Software Directory.
2742 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2745 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
2747 2006-06-06 Laurent GUERBY <laurent@guerby.net>
2750 mlib-utl.adb: Use Program_Name.
2752 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
2754 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
2755 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
2756 trans.c, utils.c: Fix comment typos. Follow spelling
2758 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
2761 2006-05-19 Nicolas Setton <setton@adacore.com>
2763 * misc.c (gnat_dwarf_name): New function.
2764 (LANG_HOOKS_DWARF_NAME): Define to it.
2766 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
2768 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
2769 (ada/misc.o): Likewise.
2770 (ada/utils.o): Likewise.
2772 2006-04-08 Aurelien Jarno <aurel32@debian.org>
2774 * Makefile.in: Add Ada support for GNU/kFreeBSD.
2775 * s-osinte-kfreebsd-gnu.ads: New file.
2777 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
2779 * Make-lang.in: Rename docdir to gcc_docdir.
2781 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
2783 * gigi.h (get_ada_base_type): Delete.
2784 * utils2.c (get_ada_base_type): Likewise.
2785 * trans.c (convert_with_check): Operate in the real base type.
2787 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2789 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
2791 2006-03-02 Richard Sandiford <richard@codesourcery.com>
2793 * utils.c (create_var_decl): Use have_global_bss_p when deciding
2794 whether to make the decl common.
2796 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
2798 * Make-lang.in (Ada): Remove.
2799 (.PHONY): Remove Ada
2801 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2803 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
2804 aggregate, check the interpretations of the other operand to find one
2805 that may be a boolean array.
2807 (Analyze_Selected_Component): Fix flow-of-control typo in case where
2808 the prefix is a private extension.
2810 2006-02-17 Eric Botcazou <botcazou@adacore.com>
2813 * utils2.c (find_common_type): If both input types are BLKmode and
2814 have the same constant size, keep using the first one.
2816 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
2818 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
2820 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
2822 2006-02-17 Jose Ruiz <ruiz@adacore.com>
2824 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
2825 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
2826 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
2827 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
2828 Abort_Defer/Undefer pairs to avoid the possibility of a task being
2829 aborted while owning a lock.
2831 2006-02-17 Javier Miranda <miranda@adacore.com>
2832 Robert Dewar <dewar@adacore.com>
2834 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
2835 through an access to class-wide interface we force the displacement of
2836 the pointer to the allocated object to reference the corresponding
2837 secondary dispatch table.
2838 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
2839 if Long_Shifts are supported on the target, even if 64 bit divides
2840 are not supported (configurable run time mode).
2841 (Expand_N_Type_Conversion): Do validity check if validity checks on
2842 operands are enabled.
2843 (Expand_N_Qualified_Expression): Do validity check if validity checks
2844 on operands are enabled.
2846 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2848 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
2849 must be materialized when the renamed expression is an explicit
2852 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2854 * freeze.adb (Statically_Discriminated_Components): Return false if
2855 the bounds of the type of the discriminant are not static expressions.
2857 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
2858 the bounds of the discriminant type are not static.
2860 2006-02-17 Robert Dewar <dewar@adacore.com>
2862 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
2863 then we close To if it is valid.
2865 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
2867 * init.c (facility_resignal_table): new array
2868 (__gnat_default_resignal_p): enhance default predicate to resignal if
2869 VMS condition has one of the predefined facility codes.
2871 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
2873 * Makefile.in: Use VMS64 specialized versions of several units in
2874 Interfaces.C hierarchy to be compatible with HP C default size choices.
2875 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
2877 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2879 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
2880 instantiation, the corresponding entity is the related_instance of the
2881 wrapper package created for the instance.
2883 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2885 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
2886 the current instance is nested within another instance in a child unit.
2888 2006-02-17 Javier Miranda <miranda@adacore.com>
2889 Ed Schonberg <schonberg@adacore.com>
2891 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
2892 type we cannot inherit the primitive operations; we inherit the
2893 Corresponding_Record_Type (which has the list of primitive operations).
2894 (Check_Anonymous_Access_Types): When creating anonymous access types for
2895 access components, use Rewrite in order to preserve the tree structure,
2897 (Analyze_Object_Declaration): For limited types with access
2898 discriminants with defaults initialized by an aggregate, obtain
2899 subtype from aggregate as for other mutable types.
2900 (Derived_Type_Declaration): If the derived type is a limited interface,
2901 set the corresponding flag (Is_Limited_Record is not sufficient).
2903 2006-02-17 Ed Schonberg <schonberg@adacore.com>
2905 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
2906 to inline a function that returns an unconstrained type, the return
2907 expression must be the first variable declared in the body of the
2910 2006-02-17 Javier Miranda <miranda@adacore.com>
2912 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
2913 abstract interface type, the static analysis is not enough to know if
2914 the interface is implemented or not by the source tagged type. Hence
2915 we must pass the work to the expander to generate the required code to
2916 evaluate the conversion at run-time.
2917 (Resolve_Equality_Op): Do not apply previous
2918 transformation if expansion is disasbled, to prevent anomalies when
2919 locating global references in a generic unit.
2921 2006-02-17 Vincent Celier <celier@adacore.com>
2923 * snames.ads, snames.adb: New standard names for new project attributes:
2924 archive_builder, archive_indexer, compiler_pic_option,
2925 config_body_file_name, config_body_file_name_pattern,
2926 config_file_switches, config_file_unique, config_spec_file_name,
2927 config_spec_file_name_pattern, default_builder_switches,
2928 default_global_compiler_switches, default_language,
2929 dependency_file_kind, global_compiler_switches, include_path,
2930 include_path_file, language_kind, linker_executable_option,
2931 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
2932 roots, runtime_project.
2934 2006-02-17 Matthew Heaney <heaney@adacore.com>
2936 * a-convec.ads, a-convec.adb:
2937 (operator "&"): handle potential overflow for large index types
2938 (Insert): removed Contraint_Error when using large index types
2939 (Insert_Space): removed Constraint_Error for large index types
2940 (Length): moved constraint check from Length to Insert
2942 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
2944 Explicit raise statements now include an exception message.
2945 (operator "&"): handle potential overflow for large index types
2946 (Insert): removed Contraint_Error when using large index types
2947 (Insert_Space): removed Constraint_Error for large index types
2948 (Length): moved constraint check from Length to Insert
2950 2006-02-17 Robert Dewar <dewar@adacore.com>
2952 * s-wchcnv.adb: Document handling of [ on output (we do not change
2953 this to ["5B"] and the new comments say why not.
2956 Add note for -gnatVo that this now includes the cases of type
2957 conversions and qualified expressions.
2958 Add comments on handling of brackets encoding for Text_IO
2960 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
2961 Thomas Quinot <quinot@adacore.com>
2962 Robert Dewar <dewar@adacore.com>
2963 Javier Miranda <miranda@adacore.com>
2965 * expander.adb: Fix typo in comment
2967 * exp_pakd.adb: Fix typo
2968 Minor comment reformatting.
2970 * g-dyntab.adb: Minor reformatting
2972 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
2973 aliased subprograms to look for the abstract interface subprogram.
2975 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
2977 * env.c (__gnat_setenv): Use size_t.
2978 (__gnat_unsetenv): Likewise.
2979 (__gnat_clearenv): Likewise.
2981 2006-02-16 Arnaud Charlet <charlet@adacore.com>
2983 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
2985 2006-02-13 Arnaud Charlet <charlet@adacore.com>
2987 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
2988 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
2989 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
2990 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
2991 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
2992 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
2993 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
2994 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
2995 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
2998 2006-02-13 Jose Ruiz <ruiz@adacore.com>
3000 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
3001 protection against race conditions is not needed.
3002 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
3004 (Set_Specific_Handler): Add mutual exclusive access to the specific
3006 (Specific_Handler): Add mutual exclusive access for retrieving the
3009 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
3012 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
3013 Fall_Back_Handler and Specific_Handler.
3015 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
3016 termination handlers.
3017 Set two different owerflow depending on the maximal stack size.
3019 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
3020 protection against race conditions is not needed when executing the
3021 task termination handler.
3023 2006-02-13 Robert Dewar <dewar@adacore.com>
3025 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
3026 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
3027 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
3028 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
3029 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
3030 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
3031 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
3032 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
3033 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
3034 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
3035 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
3036 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
3037 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
3038 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
3039 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
3040 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
3041 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
3042 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
3043 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
3044 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
3045 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
3046 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
3047 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
3048 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
3049 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
3050 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
3051 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
3052 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
3053 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
3054 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
3055 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
3056 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
3057 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
3058 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
3061 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
3063 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
3064 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
3065 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
3066 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
3067 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
3068 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
3069 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
3070 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
3071 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
3073 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3075 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
3076 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
3077 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
3078 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
3079 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
3080 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
3081 replaced by anonymous access type.
3082 (pthread_sigmask): Now take an access sigset_t
3084 * s-osinte-hpux.ads: Ditto.
3085 (pthread_mutex_t, pthread_cond_t): Update definitions to support
3086 properly 32 and 64 bit ABIs.
3088 2006-02-13 Pascal Obry <obry@adacore.com>
3090 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
3091 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
3092 s-taprop-linux.adb, s-taprop-solaris.adb,
3093 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
3094 adjustement is already done when calling this routine.
3096 2006-02-13 Pascal Obry <obry@adacore.com>
3098 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
3099 table to take advantage of the 16 priority levels available on Windows
3100 2000 and XP. On NT4 there are only 7 priority levels, this is properly
3101 supported by this new mapping.
3103 2006-02-13 Nicolas Setton <setton@adacore.com>
3105 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
3106 (get_encoding): New subprogram. Extracts the encodings from an encoded
3109 2006-02-13 Pascal Obry <obry@adacore.com>
3110 Nicolas Roche <roche@adacore.com>
3111 Arnaud Charlet <charlet@adacore.com>
3113 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
3115 (__gnat_try_lock): Add unicode support by using a specific section on
3117 (__gnat_get_current_dir): Idem.
3118 (__gnat_open_read): Idem.
3119 (__gnat_open_rw): Idem.
3120 (__gnat_open_create): Idem.
3121 (__gnat_create_output_file): Idem.
3122 (__gnat_open_append): Idem.
3123 (__gnat_open_new): Idem.
3124 (__gnat_file_time_name): Idem.
3125 (__gnat_set_file_time_name): Idem.
3126 (__gnat_stat): Idem.
3127 (win32_no_block_spawn): Idem.
3128 (__gnat_locate_exec_on_path): Idem.
3129 (__gnat_opendir): New routine.
3130 (__gnat_closedir): Idem.
3131 (__gnat_readdir): Add new parameter length (pointer to int). Update
3132 implementation to use it and add specific Win32 code for Unicode
3134 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
3135 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
3136 (convert_addresses): Do not define this dummy routine on VMS.
3138 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
3139 runtime Unicode support will be activated.
3140 (S2WS): String to Wide-String conversion. This version just copy a
3141 string in non Unicode version.
3142 (WS2S): Wide-String to String conversion. This version just copy a
3143 string in non Unicode version.
3145 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
3146 (Open): Now import __gnat_opendir from adaint.c.
3147 (Read): Change the implementation to support unicode characters. It is
3148 not possible to use strlen() on Windows as this version supports only
3149 standard ASCII characters. So the length of the directory entry is now
3150 returned from the imported __gnat_readdir routine.
3151 Update copyright notice.
3153 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
3154 (opendir): Moved to adaint.c.
3156 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
3157 (Get_Directory): Fix wrong indexing.
3158 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
3159 __gnat_getenv from env.c
3160 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
3163 * env.h, env.c: New file.
3165 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
3166 adaint.c by __gnat_getenv from env.c
3168 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
3169 adaint.c by __gnat_getenv from env.c
3171 * Make-lang.in: Add env.o in the list of C object needed by gnat1
3173 Update dependencies.
3175 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3176 Olivier Hainque <hainque@adacore.com>
3177 Eric Botcazou <ebotcazou@adacore.com>
3179 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
3181 * gigi.h (value_factor_p): Add prototype and description, now public.
3183 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
3184 promotion for field with rep clause if the associated size was proven
3186 Expand comments describing attempts to use a packable type.
3187 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
3188 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
3189 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
3190 necessary since these are not different types and pointers may
3191 actually designate any subtype in this hierarchy.
3192 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
3193 discriminants but put them into record only if not Unchecked_Union;
3194 pass flag to components_to_record showing Unchecked_Union.
3195 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
3196 components before variants; don't set TYPE_UNCHECKED_UNION_P.
3197 (components_to_record): New argument UNCHECKED_UNION.
3198 Remove special case code for Unchecked_Union and instead use main code
3202 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
3203 variable with the expression being built, only its inner field.
3205 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
3206 emit_sequence_entry_statements.
3207 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
3208 (establish_gnat_vms_condition_handler): Move before
3209 Subprogram_Body_to_gnu.
3210 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
3211 for a subprogram if it has a foreign convention or is exported.
3212 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
3213 substituted for a CONST_DECL.
3214 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
3215 Etype to assoc_to_constructor.
3216 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
3217 discriminants of Unchecked_Union.
3218 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
3219 don't need cluttering preprocessor directives.
3220 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
3221 condition handler as current in the compiled function.
3222 (body_with_handlers_p): New function. Tell whether a given sequence of
3223 statements node is attached to a package or subprogram body and involves
3224 exception handlers possibly nested within inner block statements.
3225 (emit_sequence_entry_statements): New function, to emit special
3226 statements on entry of sequences when necessary. Establish GNAT
3227 condition handler in the proper cases for VMS.
3228 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
3229 emit_sequence_entry_statements.
3231 * utils2.c (find_common_type): If both input types are BLKmode and
3232 have a constant size, use the smaller one.
3233 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
3236 * utils.c (value_factor_p): Make public, to allow uses from other gigi
3238 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
3239 (convert, case UNION_TYPE): Remove special treatment for unchecked
3243 (update_pointer_to): Update variants of pointer types to unconstrained
3244 arrays by attaching the list of fields of the main variant.
3246 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3247 Robert Dewar <dewar@adacore.com>
3249 * a-exexpr.adb, a-exexpr-gcc.adb
3250 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
3251 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
3252 Remove code unused for exception propagation for the compiler itself
3253 from a-except.adb and update to still share separate packages.
3255 * a-except.ads, a-except.adb: Ditto.
3256 Add comments that this version is now used only by the compiler and
3257 other basic tools. The full version that includes the Ada 2005 stuff
3258 is in separate files a-except-2005.ads/adb. The reason is that we do
3259 not want to cause bootstrap problems with compilers not recognizing
3261 Add exception reason code PE_Implicit_Return
3262 Add new exception reason code (Null Exception_Id)
3264 * a-except-2005.adb, a-except-2005.ads: New files.
3266 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
3268 * s-wchcon.adb: New file.
3270 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
3271 (traceback.o deps): Likewise.
3272 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
3273 Activate build of GMEM instrumentation library on VMS targets.
3274 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
3275 Use a-except-2005.ads/adb for all run-time library builds unless
3276 specified otherwise.
3277 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
3278 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
3279 Use s-parame.adb on all native platforms.
3280 Use s-parame-vxworks.adb on all vxworks platforms.
3281 Add env.c env.h in LIBGNAT_SRCS
3282 Add env.o in LIBGNAT_OBJS
3283 (GNATMAKE_OBJS): Remove ctrl_c.o object.
3284 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
3285 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
3286 supports VxWorks 6 RTPs.
3287 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
3288 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
3290 * types.h, types.ads (Terminate_Program): New exception
3291 Add comment on modifying multiple versions of a-except.adb when the
3292 table of exception reasons is modified.
3293 Add exception reason code PE_Implicit_Return
3294 Add new exception reason code (Null Exception_Id)
3296 * clean.adb (Initialize): Get the target parameters before checking
3297 if target is OpenVMS. Move the OpenVMS specific code here from package
3298 body elaboration code.
3300 2006-02-13 Thomas Quinot <quinot@adacore.com>
3301 Vincent Celier <celier@adacore.com>
3302 Robert Dewar <dewar@adacore.com>
3304 * ali-util.adb (Get_File_Checksum): Update to account for change in
3305 profile of Initialize_Scanner.
3307 * gprep.adb (Gnatprep): Update to account for change in profile of
3309 (Process_One_File): Same.
3311 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
3312 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
3313 that behaviour using the new Unit information recorded in the source
3314 files table, rather than going through all units every time.
3315 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
3316 (Get_Source_Unit): Same.
3318 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
3319 change in profile of Initialize_Scanner.
3320 (Prepare_To_Preprocess): Same.
3322 * lib.ads: Fix typo in comment (templace -> template).
3324 * prj-part.adb (Parse_Single_Project): Update to account for change in
3325 profile of Initialize_Scanner.
3327 * scn.adb (Initialize_Scanner): Account for change in profile of
3328 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
3329 Also record the association of the given Source_File_Index to the
3330 corresponding Unit_Number_Type.
3332 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
3334 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
3335 Remove Unit formal for generic scanner: this formal
3336 is only relevant to Scn (the scanner instance used to parse Ada source
3337 files), not to other instances. Update comment accordingly.
3338 (Scan): Use new function Snames.Is_Keyword_Name.
3340 * sinfo-cn.adb: Fix typo in comment.
3342 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
3345 * sinput.ads (Source_File_Record): New component Unit, used to capture
3346 the unit identifier (if any) associated to a source file.
3348 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
3349 Unit in Source_File_Record.
3351 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
3352 in profile of Initialize_Scanner.
3354 * scans.adb (Initialize_Ada_Keywords): New procedure
3356 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
3357 Ada keywords in the Namet table, without the need to call
3360 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
3361 (Is_Keyword_Name): New function
3363 * snames.ads: Add subtype Configuration_Pragma_Names
3364 Add pragma Ada_2005 (synonym for Ada_05)
3365 (Is_Keyword_Name): New function
3367 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
3369 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3371 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
3374 * a-stwima.adb (To_Set): Add extra check when N = 0.
3376 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
3378 2006-02-13 Arnaud Charlet <charlet@adacore.com>
3380 * s-parame-mingw.adb, s-parame-linux.adb,
3381 s-parame-solaris.adb: Removed, replaced by s-parame.adb
3383 * s-parame-vxworks.ads: Fix typo.
3385 * s-parame-vxworks.adb: New file.
3387 * s-parame.adb: Version now used by all native platforms.
3388 (Default_Stack_Size): Use 2 megs for default stack size and use
3389 __gl_default_stack_size when available.
3390 (Minimum_Stack_Size): Use 12K.
3392 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
3393 (Create_Task): Refine implementation taking advantage of the XP stack
3394 size support. On XP, we now create the thread using the flag
3395 STACK_SIZE_PARAM_IS_A_RESERVATION.
3397 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
3399 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
3400 XP and 0 on older Windows versions.
3402 * interfac-vms.ads: Removed, no longer used.
3404 2006-02-13 Matthew Heaney <heaney@adacore.com>
3406 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
3407 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
3408 a-cohase.adb: All explicit raise statements now include an exception
3411 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
3412 (Update_Element_Preserving_Key): renamed op to just Update_Element.
3413 Explicit raise statements now include an exception message
3415 * a-cihase.ads, a-cohase.ads: Removed comment.
3417 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
3418 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
3419 a-szbzha.adb, a-szfzha.ads: New files.
3421 2006-02-13 Matthew Heaney <heaney@adacore.com>
3423 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
3426 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
3428 * lang.opt: Wvariadic-macros: New option.
3429 Wold-style-definition: Likewise.
3430 Wmissing-format-attribute: Likewise.
3432 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
3433 -Wold-style-definition and -Wmissing-format-attribute.
3435 2006-02-13 Robert Dewar <dewar@adacore.com>
3437 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
3439 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
3441 2006-02-13 Nicolas Roche <roche@adacore.com>
3443 * a-envvar.adb, a-envvar.ads: New files.
3445 2006-02-13 Douglas Rupp <rupp@adacore.com>
3447 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
3449 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
3451 2006-02-13 Pat Rogers <rogers@adacore.com>
3453 * a-rttiev.adb, a-rttiev.ads: New files.
3455 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
3457 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
3458 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
3460 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
3462 2006-02-13 Robert Dewar <dewar@adacore.com>
3464 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
3465 sem_case.adb: Minor code reorganization (not Present should be No)
3467 2006-02-13 Geert Bosch <bosch@adacore.com>
3468 Gary Dismukes <dismukes@adacore.com>
3470 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
3471 0, since the lower bound of the actual string may be greater than one.
3474 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
3475 layout is requested.
3477 2006-02-13 Vincent Celier <celier@adacore.com>
3479 * back_end.adb (Scan_Compiler_Arguments): Check if
3480 Search_Directory_Present is True and, if it is, add the argument in
3481 the source search directory path.
3483 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
3484 Search_Directory_Present to True.
3486 2006-02-13 Joel Brobecker <brobecke@adacore.com>
3488 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
3489 volatile, to tell the compiler to preserve this variable at any level
3491 (Gen_Versions_Ada): Temporarily work around codegen bug.
3493 2006-02-13 Vincent Celier <celier@adacore.com>
3495 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
3496 gcc to link with option -shared-libgcc.
3497 (Gnatlink): Remove duplicate switches -shared-libgcc
3499 2006-02-13 Robert Dewar <dewar@adacore.com>
3501 * gnatvsn.ads (Current_Year): New constant, used to easily update
3502 copyright on all GNAT tools.
3504 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
3507 2006-02-13 Robert Dewar <dewar@adacore.com>
3509 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
3510 after hyphen (small aesthetic change useful for a range of numbers
3512 Suppress range checks for a couple of assignments which otherwise
3513 cause validity checks with validity checking turned on.
3515 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
3516 Improvement in error message for object.
3517 (Rep_Item_Too_Late): Remove '!' in warning message.
3519 2006-02-13 Robert Dewar <dewar@adacore.com>
3520 Eric Botcazou <ebotcazou@adacore.com>
3522 * err_vars.ads: Suppress range checks for a couple of assignments
3523 which otherwise cause validity checks with validity checking turned on.
3526 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
3527 Make message unconditional if it is a warning.
3528 (Error_Msg_NEL): Always output warning messages.
3529 Suppress range checks for a couple of assignments which otherwise
3530 cause validity checks with validity checking turned on.
3532 * errout.ads (Message Insertion Characters): Document that '!' is
3533 implied by '?' in error messages.
3535 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
3536 (Gnat1drv): Use a goto to end of main subprogram instead of
3537 Exit_Program (E_Success) so that finalization can occur normally.
3539 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
3541 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
3544 2006-02-13 Vincent Celier <celier@adacore.com>
3546 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
3547 Unchecked_Conversion functions.
3548 (Modification_Time): Use direct conversion of OS_Time to Calendar time
3549 when OpenVMS returns False.
3551 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
3552 a-dirval.adb (OpenVMS): New Boolean function
3554 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3555 Thomas Quinot <quinot@adacore.com>
3557 * checks.adb (Build_Discriminant_Checks): If the expression being
3558 checks is an aggregate retrieve the values of its discriminants to
3559 generate the check, rather than creating a temporary and a reference
3561 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
3562 (Install_Null_Excluding_Check): Ditto
3563 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
3564 not for the renamed object, so that the actual itype is attached in the
3567 2006-02-13 Robert Dewar <dewar@adacore.com>
3568 Vincent Celier <celier@adacore.com>
3570 * debug.adb: Eliminate numeric switches for binder/gnatmake
3572 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
3573 switches for the compiler.
3574 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
3575 (Scan_Make_Switches): When failing with an illegal switch, output an
3576 error message with the full switch.
3577 Eliminate numeric switches for binder/gnatmake
3579 * switch.ads, switch.adb (Bad_Switch): New procedure
3581 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
3582 Remove 0-9 as debug flag character possibilities
3583 -d is now controlling the primary stack size when its value is a
3584 positive. Also add checks against invalid values, and support for kb,
3585 mb. Ditto for -D switch.
3587 2006-02-13 Robert Dewar <dewar@adacore.com>
3588 Serguei Rybin <rybin@adacore.com>
3590 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
3591 save/restore routines.
3592 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
3593 were not always properly handled previously.
3594 Since we are changing the tree format anyway, also get rid of the
3595 junk obsolete Immediate_Errors flag.
3596 (Tree_Read): Change the way of reading Tree_Version_String - now we
3597 read the version string from the tree even if its length is not the
3598 same as the length of the version string computed from Gnatvsn.
3599 (Search_Directory_Present): New Boolean flag for the compiler.
3600 Define Tree_Version_String as a dynamic string.
3601 (Default_Stack_Size): new variable, used to handle switch -d.
3604 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
3606 Add pragma Ada_2005 (synonym for Ada_05)
3607 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
3608 were not always properly handled previously.
3610 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
3611 explicit Ada_95 to Ada_2005.
3613 2006-02-13 Javier Miranda <miranda@adacore.com>
3614 Robert Dewar <dewar@adacore.com>
3615 Ed Schonberg <schonberg@adacore.com>
3617 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
3618 against errors in the source program: a private types for which the
3619 corresponding full type declaration is missing and pragma CPP_Virtual
3621 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
3622 (Is_Known_Null): New flag
3623 (Has_Pragma_Pure): New flag
3624 (No_Return): Present in all entities, set only for procedures
3625 (Is_Limited_Type): A type whose ancestor is an interface is limited if
3626 explicitly declared limited.
3627 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
3628 entities. Only used for component marked Is_Tag. If present it stores
3629 the Offset_To_Top function used to provide this value in tagged types
3630 whose ancestor has discriminants.
3632 * exp_ch2.adb: Update status of new Is_Known_Null flag
3634 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
3636 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
3637 the categorization sense if Is_Pure was set by pragma Pure_Function.
3639 2006-02-13 Quentin Ochem <ochem@adacore.com>
3640 Olivier Hainque <hainque@adacore.com>
3642 * bindusg.adb: Updated documentation for -d and -D switches.
3644 * raise.h (__gnat_set_globals): added new parameter for
3647 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
3648 (__gnat_handle_vms_condition): Adjust context before raise.
3649 (__gnat_install_handler): Restore the global vector setup for GCC
3650 versions before 3.4, as the frame based circtuitry is not available
3652 (__gnat_set_globals): added a parameter default_stack_size
3653 (__gl_default_stack_size): new variable.
3655 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3657 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
3658 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
3659 does not exist in the Ada RM.
3660 (Compatible_Int_Bounds): Determine whether two integer range bounds
3661 are of equal length and have the same start and end values.
3662 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
3663 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
3664 aggregate when it is part of an object declaration.
3665 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
3666 constrains discriminants of its parent, add explicitly the discriminant
3667 constraints of the ancestor by retrieving them from the
3668 stored_constraint of the parent.
3670 2006-02-13 Robert Dewar <dewar@adacore.com>
3672 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
3673 attribute Mechanism_Code is applied to renamed subprogram, modify
3674 prefix to point to base subprogram.
3675 Max/Min attributes now violate Restriction No_Implicit_Conditionals
3677 * sinfo.ads: Document that Mechanism_Code cannot be applied to
3678 renamed subprograms so that the front-end must replace the prefix
3681 2006-02-13 Javier Miranda <miranda@adacore.com>
3682 Gary Dismukes <dismukes@adacore.com>
3684 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
3685 availability of RE_Interface_Tag.
3686 (Build_Initialization_Call): Fix wrong access to the discriminant value.
3687 (Freeze_Record_Type): Do not generate the tables associated with
3688 timed and conditional dispatching calls through synchronized
3689 interfaces if compiling under No_Dispatching_Calls restriction.
3690 When compiling for Ada 2005, for a nonabstract
3691 type with a null extension, call Make_Controlling_Function_Wrappers
3692 and insert the wrapper function declarations and bodies (the latter
3693 being appended as freeze actions).
3694 (Predefined_Primitive_Bodies): Do not generate the bodies of the
3695 predefined primitives associated with timed and conditional
3696 dispatching calls through synchronized interfaces if we are
3697 compiling under No_Dispatching_Calls.
3698 (Build_Init_Procedure): Use RTE_Available to check if a run-time
3699 service is available before generating a call.
3700 (Make_Controlling_Function_Wrappers): New procedure.
3701 (Expand_N_Full_Type_Declaration): Create a class-wide master for
3702 access-to-limited-interfaces because they can be used to reference
3703 tasks that implement such limited interface.
3704 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
3705 procedure spec and body of the Offset_To_Top function that is generated
3706 when the parent of a type with discriminants has secondary dispatch
3708 (Init_Secondary_Tags): Handle the case in which the parent of the type
3709 containing secondary dispatch tables has discriminants to generate the
3710 correct arguments to call Set_Offset_To_Top.
3711 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
3713 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
3714 Add Wide_[Wide_]Expanded_Name.
3715 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
3716 the same functionality of Get_Prim_Op_Address but applied to predefined
3717 primitive operations because the pointers to the predefined primitives
3718 are now saved in a separate table.
3719 (Parent_Size): Modified to get access to the separate table of primitive
3720 operations or the parent type.
3721 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
3722 functionality of Set_Prim_Op_Address but applied to predefined primitive
3724 (Set_Signature): New subprogram used to store the signature of a DT.
3725 (Displace): If the Offset_To_Top value is not static then call the
3726 function generated by the expander to get such value; otherwise use
3727 the value stored in the table of interfaces.
3728 (Offset_To_Top): The type of the actual has been changed to Address to
3729 give the correct support to tagged types with discriminants. In this
3730 case this value is stored just immediately after the tag field.
3731 (Set_Offset_To_Top): Two new formals have been added to indicate if the
3732 offset_to_top value is static and hence pass this value to the run-time
3733 to store it in the table of interfaces, or else if this value is dynamic
3734 and then pass to the run-time the address of a function that is
3735 generated by the expander to provide this value for each object of the
3738 * rtsfind.ads (Default_Prin_Op_Count): Removed.
3739 (Default_Prim_Op_Count): New entity
3740 (Get_Predefined_Prim_Op_Address): New entity
3741 (Set_Predefined_Prim_Op_Address): New entity
3742 (RE_Set_Signature): New entity
3744 2006-02-13 Thomas Quinot <quinot@adacore.com>
3745 Ed Schonberg <schonberg@adacore.com>
3747 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
3748 Make_Adjust_Call done for a newly-allocated object.
3750 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
3751 in a subprogram are wrapped in a cleanup block, indicate that the
3752 subprogram contains an inner block with an exception handler.
3753 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
3754 Adjust call is for a newly-allocated object. In that case we must not
3755 assume that the finalization list chain pointers are correct (since they
3756 come from a bit-for-bit copy of the original object's pointers) so if
3757 the attach level would otherwise be zero (no change), we set it to 4
3758 instead to cause the pointers to be reset to null.
3760 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
3761 reset chain pointers to null.
3763 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3765 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
3766 string, and the context requires a loop for the assignment (e.g.
3767 because the left-hand side is packed), generate a unique name for the
3768 temporary that holds the string, to prevent spurious name clashes.
3770 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3771 Javier Miranda <miranda@adacore.com>
3772 Robert Dewar <dewar@adacore.com>
3773 Gary Dismukes <dismukes@adacore.com>
3775 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
3776 return unconstrained arrays.
3778 (Expand_Call): An indirect call through an access parameter of a
3779 protected operation is not a protected call.
3780 Add circuit to raise CE in Ada 2005 mode following call
3782 (Register_DT_Entry): Do nothing if
3783 the run-time does not give support to abstract interfaces.
3784 (Freeze_Subprogram): In case of dispatching operations, do not generate
3785 code to register the operation in the dispatch table if the source
3786 is compiled with No_Dispatching_Calls.
3787 (Register_Predefined_DT_Entry): Generate code that calls the new
3788 run-time subprogram Set_Predefined_Prim_Op_Address instead of
3789 Set_Prim_Op_Address.
3791 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
3792 on array assignments if the right-hand side is a function call that has
3793 been inlined. Check is performed on the assignment in the block.
3794 (Process_Bounds): If bounds and range are overloaded, apply preference
3795 rule for root operations to disambiguate, and diagnose true ambiguity.
3796 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
3797 a tag-indeterminate right-hand side even when Expander_Active is True.
3798 Needed to ensure that dispatching calls to T'Input are allowed and
3799 get the tag of the target class-wide object.
3801 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
3802 an inherited primitive operation that already overrides several
3803 abstract interface primitives. For transitivity, the new entity must
3804 also override all the abstract interface primitives covered by the
3805 inherited overriden primitive.
3806 Emit warning if new entity differs from homograph in same scope only in
3807 that one has an access parameter and the other one has a parameter of
3808 a general access type with the same designated type, at the same
3809 position in the signature.
3810 (Make_Inequality_Operator): Use source locations of parameters and
3811 subtype marks from corresponding equality operator when creating the
3812 tree structure for the implicit declaration of "/=". This does not
3813 change anything in behaviour except that the decoration of the
3814 components of the subtree created for "/=" allows ASIS to get the
3815 string images of the corresponding identifiers.
3816 (Analyze_Return_Statement): Remove '!' in warning message.
3817 (Check_Statement_Sequence): Likewise.
3818 (Analyze_Subprogram_Body): For an access parameter whose designated type
3819 is an incomplete type imported through a limited_with clause, use the
3820 type of the corresponding formal in the body.
3821 (Check_Returns): Implicit return in No_Return procedure now raises
3822 Program_Error with a compile time warning, instead of beging illegal.
3823 (Has_Single_Return): Function returning unconstrained type cannot be
3824 inlined if expression in unique return statement is not an identifier.
3825 (Build_Body_To_Inline): It is possible to inline a function call that
3826 returns an unconstrained type if all return statements in the function
3827 return the same local variable. Subsidiary procedure Has_Single_Return
3828 verifies that the body conforms to this restriction.
3830 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
3831 same type, and one of them is of an anonymous access type, convert
3832 the other operand to it, so that this is a valid binary operation for
3834 (Resolve_Type_Conversion): Handle subtypes of protected types and
3835 task types when accessing to the corresponding record type.
3836 (Resolve_Allocator): Add '\' in 2-line warning message.
3837 Remove '!' in warning message.
3838 (Resolve_Call): Add '\' in 2-line warning message.
3839 (Valid_Conversion): Likewise.
3840 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
3841 resulting type may be an access type with an implicit dereference.
3842 Obtain the proper component from the designated type.
3843 (Make_Call_Into_Operator): Handle properly a call to predefined equality
3844 given by an expanded name with prefix Standard, when the operands are
3845 of an anonymous access type.
3846 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
3847 Explicit_Dereference and Resolve_Selected_Component, to verify that the
3848 prefix of the expression is not of an incomplete type. Allows full
3849 diagnoses of all semantic errors.
3850 (Resolve_Actuals): If the actual is an allocator whose directly
3851 designated type is a class-wide interface we build an anonymous
3852 access type to use it as the type of the allocator. Later, when
3853 the subprogram call is expanded, if the interface has a secondary
3854 dispatch table the expander will add a type conversion to force
3855 the displacement of the pointer.
3856 (Resolve_Call): If a function that returns an unconstrained type is
3857 marked Inlined_Always and inlined, the call will be inlined and does
3858 not require the creation of a transient scope.
3859 (Check_Direct_Boolean_Op): Removed
3860 (Resolve_Comparison_Op): Remove call to above
3861 (Resolve_Equality_Op): Remove call to above
3862 (Resolve_Logical_Op): Inline above, since this is only call.
3863 (Valid_Conversion): Handle properly conversions between arrays of
3864 convertible anonymous access types.
3867 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
3868 the literal in an unchecked conversion, because GCC 4.x needs a static
3869 value for a string bound.
3871 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3872 Hristian Kirtchev <kirtchev@adacore.com>
3874 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
3875 components of the corresponding record, take into account component
3876 definitions that are access definitions.
3877 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
3878 procedure is not considered a dispatching call and will be expanded
3881 2006-02-13 Javier Miranda <miranda@adacore.com>
3883 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
3884 controlling argument of the dispatching call is an abstract interface
3885 class-wide type then we use it directly.
3886 Check No_Dispatching_Calls restriction.
3887 (Default_Prim_Op_Position): Remove the code that looks for the last
3888 entity in the list of aliased subprograms. This code was wrong in
3890 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
3891 when the source is compiled with the No_Dispatching_Calls restriction.
3892 (Init_Predefined_Interface_Primitives): No need to inherit primitives
3893 if we are compiling with restriction No_Dispatching_Calls.
3894 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
3895 subprograms if we are compiling under No_Dispatching_Calls restriction.
3896 (Make_DT): Generate a dispatch table with a single dummy entry if
3897 we are compiling with the No_Dispatching_Calls restriction. In
3898 addition, in this case we don't generate code that calls to the
3899 following run-time subprograms: Set_Type_Kind, Inherit_DT.
3900 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
3901 of this subprogram if compiling with the No_Dispatching_Calls
3903 (Expand_Type_Conversion): Instead of using the actual parameter,
3904 the argument passed as parameter to the conversion function was
3905 erroneously referenced by the expander.
3906 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
3907 Set_Predefined_Primitive_Op_Address and Set_Signature.
3908 (Expand_Dispatching_Call): Generate call to
3909 Get_Predefined_Prim_Op_Address for predefined primitives.
3910 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
3911 predefined primitives.
3912 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
3913 primitives we reserve one dummy entry to ensure that the tag does not
3914 point to some memory that is associated with some other object. In
3915 addition, remove all the old code that generated the assignments
3916 associated with the signature of the dispatch table and replace them
3917 by a call to the new subprogram Set_Signature.
3918 (Set_All_DT_Position): Change the algorithm because now we have a
3919 separate dispatch table associated with predefined primitive operations.
3920 (Expand_Interface_Conversion): In case of non-static offset_to_top
3921 add explicit dereference to get access to the object after the call
3922 to displace the pointer to the object.
3923 (Expand_Interface_Thunk): Modify the generation of the actual used
3924 in the calls to the run-time function Offset_To_Top to fulfil its
3926 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
3928 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3930 * exp_dist.adb (Copy_Specification): For access parameters, copy
3931 Null_Exclusion flag, which will have been set for stream subprograms
3934 2006-02-13 Pascal Obry <obry@adacore.com>
3936 * expect.c (__gnat_expect_portable_execvp): New implementation. The
3937 previous implementation was using the C runtime spawnve routine but
3938 the corresponding wait was using directly the Win32 API. This was
3939 causing some times a lock when waiting for an event using
3940 WaitForSingleObject in __gnat_waitpid. This new implementation uses
3941 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
3942 API fixes this problem.
3944 2006-02-13 Robert Dewar <dewar@adacore.com>
3946 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
3949 2006-02-13 Thomas Quinot <quinot@adacore.com>
3951 * exp_pakd.ads: Fix typos in comments.
3953 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
3954 array reference that is an explicit dereference, mark the converted
3955 (packed) array reference as analyzed to prevent a forthcoming
3956 reanalysis from resetting its type to the original (non-packed) array
3959 2006-02-13 Ed Schonberg <schonberg@adacore.com>
3960 Javier Miranda <miranda@adacore.com>
3961 Eric Botcazou <ebotcazou@adacore.com>
3963 * exp_util.ads, exp_util.adb (Find_Prim_Op,
3964 Is_Predefined_Primitive_Operation): When
3965 searching for the predefined equality operator, verify that operands
3967 (Is_Predefined_Dispatching_Operation): Remove the code that looks
3968 for the last entity in the list of aliased subprograms. This code
3969 was wrong in case of renamings.
3970 (Set_Renamed_Subprogram): New procedure
3971 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
3972 Exp_Type constant computed when entering this subprogram.
3973 (Known_Null): New function
3974 (OK_To_Do_Constant_Replacement): New function
3975 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
3976 (Side_Effect_Free): An attribute reference 'Input is not free of
3977 side effect, unlike other attributes that are functions. (from code
3979 (Remove_Side_Effects): Expressions that involve packed arrays or records
3980 are copied at the point of reference, and therefore must be marked as
3981 renamings of objects.
3982 (Is_Predefined_Dispatching_Operation): Return false if the operation is
3983 not a dispatching operation.
3986 (Remove_Side_Effects): Lift enclosing type conversion nodes for
3987 elementary types in all cases.
3989 2006-02-13 Javier Miranda <miranda@adacore.com>
3991 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
3992 task types when accessing to the corresponding record type.
3993 Remove '!' in warning message.
3995 2006-02-13 Olivier Hainque <hainque@adacore.com>
3997 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
3998 to avoid useless and space inefficient overalignments on targets where
3999 Max_Alignment is larger than 16.
4001 2006-02-13 Pascal Obry <obry@adacore.com>
4003 * g-catiio.adb (Sec_Number): New type used to compute the number of
4004 seconds since 1-1-1970.
4005 (Image) [Natural]: The parameter was an Integer, as we can't deal with
4006 negative numbers (years, months...) it is better to have a Natural here.
4008 (Image) [Number]: Change parameter from Long_Integer to Number.
4009 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
4010 overflow for dates past year 2038.
4012 2006-02-13 Matthew Heaney <heaney@adacore.com>
4014 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
4017 2006-02-13 Arnaud Charlet <charlet@adacore.com>
4019 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
4021 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
4022 finalization can occur normally.
4024 2006-02-13 Vincent Celier <celier@adacore.com>
4026 * gnatcmd.adb (Rules_Switches): New table
4027 (Add_To_Rules_Switches): New procedure
4028 (GNATCmd): For command CHECK, put all options following "-rules" in the
4029 Rules_Switches table. Append these -rules switches after the -cargs
4032 2006-02-13 Robert Dewar <dewar@adacore.com>
4034 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
4035 These two cases were generating incorrect output, and if this unit
4036 was built with checks on, generated a discriminant mismatch constraint
4039 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4040 Robert Dewar <dewar@adacore.com>
4042 * lib-xref.adb (Get_Type_Reference): For a private type whose full
4043 view is an array type, indicate the component type as well, for
4044 navigation purposes.
4045 (Generate_Reference): Don't consider array ref on LHS to be a case
4046 of violating pragma Unreferenced.
4047 Do not give Ada 2005 warning except on real reference.
4049 2006-02-13 Vincent Celier <celier@adacore.com>
4051 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
4052 main source, add switch -mdebug-main=_ada_ so that the executable can
4053 be debugged by the standard VMS debugger.
4054 (Gnatmake): Set No_Main_Subprogram to True when there is no main
4055 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
4056 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
4057 of the last source, as the binding and linking phases are never
4059 Set all executable obsolete when rebuilding a library.
4061 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
4064 2006-02-13 Javier Miranda <miranda@adacore.com>
4068 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
4069 code to improve the error message reported when the program has
4070 declarations of abstract interface types and it is not compiled with
4072 (P_Access_Definition): Reorganize the code to improve the error
4073 message reported when the new Ada 2005 syntax for anonymous
4074 access types is used and the program is not compiled with the
4077 2006-02-13 Robert Dewar <dewar@adacore.com>
4079 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
4080 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
4083 2006-02-13 Javier Miranda <miranda@adacore.com>
4085 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
4086 against source containing syntax errors.
4088 2006-02-13 Vincent Celier <celier@adacore.com>
4090 * prj.adb (Reset): Initialize the first element of table Namings with
4091 the standard naming data.
4093 2006-02-13 Vincent Celier <celier@adacore.com>
4095 * prj.ads (Error_Warning): New enumeration type
4097 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
4098 unknown, use the location of the project to report the error.
4099 (When_No_Sources): New global variable
4100 (Report_No_Ada_Sources): New procedure
4101 (Check): New parameter When_No_Sources. Set value of global variable
4103 (Find_Sources): Call Report_No_Ada_Sources when appropriate
4104 (Get_Sources_From_File): Ditto
4105 (Warn_If_Not_Sources): Better warning messages indicating the unit name
4108 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
4109 Call Prj.Proc.Process with parameter When_No_Sources.
4111 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
4112 Call Recursive_Check with parameter When_No_Sources.
4113 (Recursive_Check): New parameter When_No_Sources. Call itself and
4114 Prj.Nmsc.Check with parameter When_No_Sources.
4115 (Process): New parameter When_No_Sources. Call Check with parameter
4117 (Copy_Package_Declarations): New procedure to copy renamed parameters
4118 and setting the location of the declared attributes to the location
4119 of the renamed package.
4120 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
4123 2006-02-13 Vincent Celier <celier@adacore.com>
4125 * prj-makr.adb (Make): Preserve the comments from the original project
4127 When removing nodes (attributes Source_Dirs, Source_Files,
4128 Source_List_File and package Naming), save the comments and attach the
4129 saved comments to the newly created nodes.
4130 Do not add a with clause for the naming package if one already exists.
4132 2006-02-13 Javier Miranda <miranda@adacore.com>
4133 Gary Dismukes <dismukes@adacore.com>
4134 Robert Dewar <dewar@adacore.com>
4136 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
4138 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
4139 aliased entities to look for the overriden abstract interface
4141 (Is_Interface_Subprogram): Complete documentation.
4142 (Check_Dispatching_Operation): Do not generate code to register the
4143 operation in the dispatch table if the source is compiled with
4144 restriction No_Dispatching_Calls.
4145 (Override_Dispatching_Operation): Check for illegal attempt to override
4146 No_Return procedure with procedure that is not No_Return
4147 (Check_Dispatching_Call): Suppress the check for an abstract operation
4148 when the original node of an actual is a tag-indeterminate attribute
4149 call, since the attribute, which must be 'Input, can never be abstract.
4150 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
4151 call to the Input attribute (even when rewritten).
4152 (Propagate_Tag): Augment comment to indicate the possibility of a call
4153 to an Input attribute.
4155 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
4156 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
4158 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
4159 No_Wide_Characters is no longer partition-wide
4160 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
4163 2006-02-13 Douglas Rupp <rupp@adacore.com>
4165 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
4167 2006-02-13 Javier Miranda <miranda@adacore.com>
4169 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
4170 handles default-initialized components to keep separate the management
4171 of this feature but also avoid the unrequired resolution and
4172 expansion of components that do not have partially initialized
4174 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
4175 (Check_Bounds): Likewise.
4176 (Check_Length): Likewise.
4178 2006-02-13 Javier Miranda <miranda@adacore.com>
4179 Ed Schonberg <schonberg@adacore.com>
4181 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
4182 abstract interface type call analyze_and_resolve to expand the type
4183 conversion into the corresponding displacement of the
4184 reference to the base of the object.
4185 (Eval_Attribute, case Width): For systems where IEEE extended precision
4186 is supported, the maximum exponent occupies 4 decimal digits.
4187 (Accessibility_Message): Add '\' in 2-line warning message.
4188 (Resolve_Attribute): Likewise.
4189 (case Attribute_Access): Significantly revise checks
4190 for illegal access-to-subprogram Access attributes to properly enforce
4191 the rules of 3.10.2(32/2).
4192 Diagnose use of current instance with an illegal attribute.
4194 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
4196 (Enclosing_Generic_Unit): New function to return a node's innermost
4197 enclosing generic declaration node.
4198 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
4199 (Type_Access_Level): The accessibility level of anonymous acccess types
4200 associated with discriminants is that of the current instance of the
4201 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
4202 (Compile_Time_Constraint_Error): Handle case of conditional expression.
4203 (Kill_Current_Values_For_Entity): New function
4204 (Enter_Name): Change formal type to Entity_Id
4206 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
4207 Ed Schonberg <schonberg@adacore.com>
4208 Gary Dismukes <dismukes@adacore.com>
4210 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
4211 Analyze_Compilation_Unit.
4212 Detect and warn on redundant with clauses detected in a package spec
4213 and/or body when -gnatwr is used.
4214 (Analyze_Context): Analyze config pragmas before other items
4215 (Install_Context_Items): Don't analyze config pragmas here
4216 (Install_Limited_Withed_Unit): Set limited entity of package in
4217 with_clause so that cross-reference information or warning messages on
4218 unused packages can be properly generated
4219 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
4220 has Error_Posted set. Prevent infinite loops in illegal programs.
4221 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
4222 to the point of the error test requiring the current unit to be private.
4223 This ensures that private with clauses are not exempted from the basic
4224 checking for being a descendant of the same library unit parent as a
4225 withed private descendant unit.
4226 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
4227 handle private with clauses properly, as well as to account for cases
4228 where the withed unit is a public descendant of a private ancestor
4229 (in which case the current unit must be a descendant of the private
4230 ancestor's parent). The spec comments were updated accordingly. Also,
4231 the old error message in this subprogram was replaced with error
4232 messages that mirror the errors tested and reported by
4233 Check_Private_Child_Unit.
4234 Parameter and variable names improved for readability.
4235 (Install_Limited_Context_Clauses): Remove test for a withed unit being
4236 private as the precondition for calling
4237 Check_Private_Limited_Withed_Unit since that subprogram has been
4238 revised to test public units as well as private units.
4240 2006-02-13 Thomas Quinot <quinot@adacore.com>
4241 Robert Dewar <dewar@adacore.com>
4242 Ed Schonberg <schonberg@adacore.com>
4243 Javier Miranda <miranda@adacore.com>
4245 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
4246 that Scope_Stack.First = 1.
4247 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
4248 were not always properly handled previously.
4249 (Formal_Entity): Complete rewrite, to handle properly some complex case
4250 with multiple levels of parametrization by formal packages.
4251 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
4252 to the corresponding derived type declaration for proper semantics.
4254 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
4255 (Check_Component): Enforce restriction on components of
4256 unchecked_unions: a component in a variant cannot contain tasks or
4258 (Unchecked_Union): Allow nested variants and multiple discriminants, to
4260 Add pragma Ada_2005 (synonym for Ada_05)
4261 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
4262 were not always properly handled previously.
4263 Document that pragma Propagate_Exceptions has no effect
4264 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
4265 (Set_Convention_From_Pragma): Check that if a convention is
4266 specified for a dispatching operation, then it must be
4267 consistent with the existing convention for the operation.
4268 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
4269 longer required to specify an vtable-ptr component in the record. For
4270 compatibility reasons we leave the support for the previous definition.
4271 (Analyze_Pragma, case No_Return): Allow multiple arguments
4273 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
4274 non-overrideen inherited operation with a controlling result as
4275 illegal only its implicit declaration comes from the derived type
4276 declaration of its result's type.
4277 (Check_Possible_Deferred_Completion): Relocate the object definition
4278 node of the subtype indication of a deferred constant completion rather
4279 than directly analyzing it. The analysis of the generated subtype will
4280 correctly decorate the GNAT tree.
4281 (Record_Type_Declaration): Check whether this is a declaration for a
4282 limited derived record before analyzing components.
4283 (Analyze_Component_Declaration): Diagnose record types not explicitly
4284 declared limited when a component has a limited type.
4285 (Build_Derived_Record_Type): Code reorganization to check if some of
4286 the inherited subprograms of a tagged type cover interface primitives.
4287 This check was missing in case of a full-type associated with a private
4289 (Constant_Redeclaration): Check that the subtypes of the partial and the
4290 full view of a constrained deferred constant statically match.
4291 (Mentions_T): A reference to the current type in an anonymous access
4292 component declaration must be an entity name.
4293 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
4294 class_wide type to refer to full type, not to the incomplete one.
4295 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
4296 available. Required to give support to the certified run-time.
4297 (Analyze_Component_Declaration): In case of anonymous access components
4298 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
4299 (Process_Discriminants): For an access discriminant, use the
4300 discriminant specification as the associated_node_for_itype, to
4301 simplify accessibility checks.
4303 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4304 Javier Miranda <miranda@adacore.com>
4306 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
4307 abstract interpretations on an operator, remove interpretations that
4308 yield Address or a type derived from it, if one of the operands is an
4310 (Try_Object_Operation.Try_Primitive_Operation,
4311 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
4312 location when creating the new reference to a primitive or class-wide
4313 operation as a part of rewriting a subprogram call.
4314 (Try_Primitive_Operations): If context requires a function, collect all
4315 interpretations after the first match, because there may be primitive
4316 operations of the same type with the same profile and different return
4317 types. From code reading.
4318 (Try_Primitive_Operation): Use the node kind to choose the proper
4319 operation when a function and a procedure have the same parameter
4321 (Complete_Object_Operation): If formal is an access parameter and prefix
4322 is an object, rewrite as an Access reference, to match signature of
4323 primitive operation.
4324 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
4325 by an expanded name with prefix Standard, when the operands are of an
4326 anonymous access type.
4327 (Remove_Abstract_Operations): If the operation is abstract because it is
4328 inherited by a user-defined type derived from Address, remove it as
4329 well from the set of candidate interpretations of an overloaded node.
4330 (Analyze_Membership_Op): Membership test not applicable to cpp-class
4333 2006-02-13 Bob Duff <duff@adacore.com>
4335 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
4336 redundant use clauses.
4337 In particular, if the scope of two use clauses overlaps, but one is not
4338 entirely included in the other, we should not warn. This can happen
4339 with nested packages.
4340 (Analyze_Subprogram_Renaming): Protect the compiler against previously
4341 reported errors. The bug was reported when the compiler was built
4342 with assertions enabled.
4343 (Find_Type): If the node is a 'Class reference and the prefix is a
4344 synchronized type without a corresponding record, return the type
4347 2006-02-13 Javier Miranda <miranda@adacore.com>
4349 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
4350 if this is the full-declaration associated with a private declaration
4351 that implement interfaces, then the private type declaration must be
4353 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
4354 as aliased. The use of the 'access attribute is not available for such
4355 object (for this purpose the object should be explicitly marked as
4356 aliased, but being an anonymous type this is not possible).
4358 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4359 Robert Dewar <dewar@adacore.com>
4361 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
4362 compilation unit is an elaboration scope.
4363 (Add_Task_Proc): Add '\' in 2-line warning message.
4364 (Activate_All_Desirable): Deal with case of unit with'ed by parent
4366 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4367 Javier Miranda <miranda@adacore.com>
4369 * sem_type.adb (Write_Overloads): Improve display of candidate
4371 (Add_One_Interp): Do not add to the list of interpretations aliased
4372 entities corresponding with an abstract interface type that is an
4373 immediate ancestor of a tagged type; otherwise we have a dummy
4374 conflict between this entity and the aliased entity.
4375 (Disambiguate): The predefined equality on universal_access is not
4376 usable if there is a user-defined equality with the proper signature,
4377 declared in the same declarative part as the designated type.
4378 (Find_Unique_Type): The universal_access equality operator defined under
4379 AI-230 does not cover pool specific access types.
4380 (Covers): If one of the types is a generic actual subtype, check whether
4381 it matches the partial view of the other type.
4383 2006-02-13 Thomas Quinot <quinot@adacore.com>
4385 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
4386 line. This is necessary to allow In_Extended_Main_Unit to provide
4387 correct results for itypes while writing out expanded source.
4388 (Close_File): No need to update the source_index_table here since it's
4389 now done for each line.
4391 2006-02-13 Ed Schonberg <schonberg@adacore.com>
4392 Robert Dewar <dewar@adacore.com>
4394 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
4395 preserve the source unit where the itype is declared, and prevent a
4397 (Note_Implicit_Run_Time_Call): New procedure
4398 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
4401 * sprint.ads: Document use of $ for implicit run time routine call
4403 2006-02-13 Quentin Ochem <ochem@adacore.com>
4405 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
4408 2006-02-13 Bob Duff <duff@adacore.com>
4410 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
4411 Scan_Unsigned, so we do not scan leading blanks and sign twice.
4412 Integer'Value("- 5") and Integer'Value("-+5") now correctly
4413 raise Constraint_Error.
4415 * s-vallli.adb (Scan_Long_Long_Integer): Call
4416 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
4417 do not scan leading blanks and sign twice.
4418 Integer'Value("- 5") and Integer'Value("-+5") now correctly
4419 raise Constraint_Error.
4421 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
4422 Scan_Long_Long_Unsigned): Split out most of the processing from
4423 Scan_Long_Long_Unsigned out into
4424 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
4425 This prevents scanning leading blanks and sign twice.
4426 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
4429 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
4430 out most of the processing from Scan_Unsigned out into
4431 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
4432 This prevents scanning leading blanks and sign twice.
4434 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
4435 use with Modular'Value attribute.
4436 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
4439 2006-02-13 Robert Dewar <dewar@adacore.com>
4441 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
4443 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
4445 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
4446 (PPC VxWorks): Likewise.
4447 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
4448 (forced_callee): Make non-inlinable and non-pure.
4449 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
4451 2006-02-13 Arnaud Charlet <charlet@adacore.com>
4452 Ben Brosgol <brosgol@adacore.com>
4453 Robert Dewar <dewar@adacore.com>
4455 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
4457 Document that gnatbind -M option is for cross environments only.
4458 Added description of using gnatmem to trace gnat rtl allocs and deallocs
4459 Add note on use of $ to label implicit run time calls
4460 Add documentation for -gnatyI (check mode IN)
4461 Updated chapter on compatibility with HP Ada
4463 Ran spell and corrected errors
4464 Add documentation for gnatbind -d and rework documentation of -D
4466 Add subprogram/data elimination section.
4467 Minor editing of annex A.
4468 Add section for gnatcheck.
4469 Add documentation for restriction No_Dispatching_Calls
4470 Add documentation for pragma Ada_2005
4471 Remove mention of obsolete pragma Propagate_Exceptions
4472 Document that pragma Unreferenced can appear after DO in ACCEPT
4473 Clarify Pure_Function for library level units
4474 Mention Max/Min in connection with No_Implicit_Conditionals
4475 No_Wide_Characters restriction is no longer partition-wide
4476 Add a nice example for Universal_Literal_String attribute
4477 Document that pragma No_Return can take multiple arguments
4479 * ug_words: Added entry for gnatcheck
4481 * g-ctrl_c.ads (Install_Handler): Enhance comments
4483 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
4485 * g-trasym.ads: Add documentation on how to do off line symbolic
4486 traceback computation.
4488 * s-fatgen.adb: Add comments for Unaligned_Valid
4490 * stand.ads: Fix typo in comment
4492 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4494 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
4496 2006-02-06 Roger Sayle <roger@eyesopen.com>
4498 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
4500 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4503 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
4504 implementation that calls __main.
4506 2006-01-25 Peter O'Gorman <peter@pogma.com>
4509 * Makefile.in (GCC_LINK): Remove quotes.
4510 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
4513 (powerpc-darwin): Pass -shared-libgcc when building shared library.
4515 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4518 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
4520 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4522 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
4524 2005-12-12 Arnaud Charlet <charlet@adacore.com>
4526 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
4529 2005-12-12 Arnaud Charlet <charlet@adacore.com>
4531 * Make-lang.in: Update dependencies
4533 2005-12-12 Arnaud Charlet <charlet@adacore.com>
4535 * Make-lang.in: Add rule for ada/exp_sel.o
4537 2005-12-12 Arnaud Charlet <charlet@adacore.com>
4539 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
4541 2005-12-09 Arnaud Charlet <charlet@adacore.com>
4543 * gnatvsn.ads (Library_Version): Bump to version 4.2
4544 (ASIS_Version_Number): Bumped.
4546 2005-12-09 Doug Rupp <rupp@adacore.com>
4548 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
4549 Ada bind file prefix on VMS from b$ to b__.
4550 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
4553 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
4554 Targparm.OpenVMS_On_Target.
4555 (Object_Suffix): Initialize with target object suffix.
4556 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
4558 * butil.adb: Change some Hostparm.OpenVMS checks to
4559 Targparm.OpenVMS_On_Target.
4561 * clean.adb: Change some Hostparm.OpenVMS checks to
4562 Targparm.OpenVMS_On_Target.
4563 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
4564 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
4565 Ada bind file prefix on VMS from b$ to b__.
4567 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
4568 --GCC so that Get_Target_Parameters can find system.ads.
4569 (Gnatlink): Call Get_Target_Parameters in mainline.
4570 Initialize standard packages for Targparm.
4571 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
4572 (Process_Args): Also Check for object files with target object
4574 (Make_Binder_File_Names): Create with target object extension.
4575 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
4578 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
4579 Targparm.OpenVMS_On_Target.
4580 ({declaration},Build_Library,Check_Library): Change Ada bind file
4581 prefix on VMS from b$ to b__.
4583 * osint-b.adb: Change some Hostparm.OpenVMS checks to
4584 Targparm.OpenVMS_On_Target.
4585 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
4588 * targext.c: New file.
4590 * Makefile.in: add support for vxworks653 builds
4591 (../../vxaddr2line): gnatlink with targext.o.
4592 (TOOLS_LIBS): Move targext.o to precede libgnat.
4593 (init.o, initialize.o): Minor clean up in dependencies.
4594 (GNATLINK_OBJS): Add targparm.o, snames.o
4595 Add rules fo building targext.o and linking it explicitly with all
4597 Also add targext.o to gnatlib.
4599 * Make-lang.in: Add rules for building targext.o and linking it in
4600 with gnat1 and gnatbind.
4601 Add entry for exp_sel.o.
4603 * osint.adb Change some Hostparm.OpenVMS checks to
4604 Targparm.OpenVMS_On_Target.
4605 (Object_File_Name): Use target object suffix.
4607 * osint.ads (Object_Suffix): Remove, no longer used.
4608 (Target_Object_Suffix): Initialize with target object suffix.
4610 * rident.ads: Add special exception to license.
4612 * targparm.adb (Get_Target_Parameters): Set the value of
4613 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
4615 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
4617 * targparm.ads: Add special exception to license.
4619 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
4621 (Copy_File): Make sure from file is closed if error on to file
4622 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
4624 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
4625 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
4627 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
4628 target object suffix.
4630 2005-12-09 Jose Ruiz <ruiz@adacore.com>
4631 Quentin Ochem <ochem@adacore.com>
4632 Florian Villoing <villoing@adacore.com>
4634 * a-taster.ads, a-taster.adb: New files.
4636 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
4637 link to the version that does nothing. This way the task termination
4638 routine is not executed twice for the environment task when finishing
4639 because of an unhandled exception.
4641 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
4642 handler because of an unhandled exception.
4644 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
4645 System.Tasking.Utilities instead of that in System.Tasking.Stages.
4647 * s-finimp.adb (initialization code): Modify the soft link for the
4648 finalization of the global list instead of Adafinal.
4650 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
4651 non-tasking version of the soft link for task termination. We do
4652 nothing since if we are using the non-tasking version it
4653 means that the task termination functionality is not used.
4654 (Null_Finalize_Global_List): Add this null version for the procedure
4655 in charge of finalizing the global list for controlled objects.
4656 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
4657 instead for handling run-time termination in a more flexible way.
4658 (Adafinal_NT): This new procedure will take care of finalizing the
4659 global list for controlled objects if needed, but no tasking
4662 * s-tarest.adb (Task_Lock): Do not try to lock again the
4663 Global_Task_Lock if we already own it. Otherwise, we get blocked in
4664 some run-time operations.
4665 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
4666 until all nested locks have been released.
4667 (Task_Wrapper): Call the fall-back task termination handler. It
4668 applies to all tasks but the environment task.
4669 (Finalize_Global_Tasks): Add the call for the task termination
4670 procedure for the environment task.
4671 (Task_Wrapper): suppress warnings around declaration of
4672 Secondary_Stack_Address.
4674 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
4675 moved to the Common_ATCB record.
4676 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
4678 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
4681 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
4682 Fall_Back_Handler, and Specific_Handler.
4684 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
4685 defined in Ada.Task_Termination, to avoid circular dependencies.
4686 (Termination_Handler): Redefine this type here, alredy defined in
4687 Ada.Task_Termination, for avoiding circular dependencies.
4688 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
4689 for storing task termination handlers. In addition,
4690 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
4691 Common_ATCB because it is used by both the regular and the restricted
4693 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
4694 Common_ATCB because it is used by both the regular and the restricted
4696 (Common_ATCB): Added a dynamic task analyzer field.
4698 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
4699 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
4700 (Task_Wrapper): Call the task termination handler. It applies to all
4701 tasks but the environment task.
4702 (Finalize_Global_Tasks): Call the task termination procedure for the
4703 environment task. The call to Finalize_Global_List is now performed
4704 using the soft links mechanism.
4705 (Task_Wrapper): added dynamic stack analysis.
4707 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
4708 potentially blocking operations has been moved from
4709 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
4710 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
4711 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
4712 this run-time check.
4714 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
4715 of task termination procedure.
4716 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
4717 link for the task termination procedure.
4719 * bindusg.adb: (Bindusg): Added documentation for -u option.
4721 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
4722 (Get_Main_C): Add handling of dynamic stack analysis.
4723 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
4725 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
4726 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
4727 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
4729 * opt.ads: Added flags used by dynamic stack measurement.
4730 (Max_Line_Length): Remove (not used anymore)
4732 * s-io.ads, s-io.adb (Standard_Error): new subprogram
4733 (Standart_Output): new subprogram
4734 (Set_Output): new subprogram
4735 (Put): now uses the value of Current_Out to know if the output has to be
4736 send to stderr or stdout.
4738 * s-stausa.ads: Complete implementation.
4740 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
4742 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
4743 list of Ada 05 files.
4744 (GNAT Library Units): Add AltiVec files.
4746 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
4747 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
4748 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
4750 2005-12-09 Nicolas Setton <setton@adacore.com>
4752 * adaint.c (__gnat_locate_regular_file): Return immediately if
4755 2005-12-09 Javier Miranda <miranda@adacore.com>
4756 Hristian Kirtchev <kirtchev@adacore.com>
4758 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
4759 to the specification because the frontend generates code that uses this
4761 (Set_Interface_Table): Add missing assertion.
4762 Update documentation describing the run-time structure.
4763 (Displace): New subprogram that displaces the pointer to the object
4764 to reference one of its secondary dispatch tables.
4765 (IW_Membership): Modified to use the new table of interfaces.
4766 (Inherit_TSD): Modified to use the new table of interfaces.
4767 (Register_Interface_Tag): Use the additional formal to fill the
4768 contents of the new table of interfaces.
4769 (Set_Interface_Table): New subprogram that stores in the TSD the
4770 pointer to the table of interfaces.
4771 (Set_Offset_To_Top): Use the additional formal to save copy of
4772 the offset value in the table of interfaces.
4773 Update structure of GNAT Primary and Secondary dispatch table diagram.
4774 Add comment section on GNAT dispatch table prologue.
4775 (Offset_To_Signature): Update the constant value of the Signature field.
4776 (Dispatch_Table): Update comment on hidden fields in the prologue.
4777 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
4778 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
4779 the type of formal parameter T to Tag, introduce additional assertions.
4780 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
4782 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
4784 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
4785 in all the calls to Expand_Interface_Thunk. Instead of referencing the
4786 record component containing the tag of the secondary dispatch table we
4787 have to use the Offset_To_Top run-time function to get this information;
4788 otherwise if the pointer to the base of the object has been displace
4789 we get a wrong value if we use the 'position attribute.
4791 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
4792 all the calls to Expand_Interface_Thunk.
4793 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
4794 interfaces; hence the call to Set_Interface_Table was clearly wrong.
4795 (Collect_All_Interfaces): Modify the internal subprogram Collect to
4796 ensure that the interfaces implemented by the ancestors are placed
4797 at the header of the generated list.
4798 (Expand_Interface_Conversion): Handle the case in which the displacement
4799 associated with the interface conversion is not statically known. In
4800 this case we generate a call to the new run-time subprogram Displace.
4801 (Make_DT): Generate and fill the new table of interfaces.
4802 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
4803 Get_Tagged_Kind and Set_Tagged_Kind.
4804 (Tagged_Kind): New function that determines the tagged kind of a type
4805 with respect to limitedness and concurrency and returns a reference to
4807 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
4808 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
4809 primary dispatch table for a type.
4810 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
4811 secondary dispatch table respectively of a tagged type.
4813 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
4814 (Expand_Interface_Conversion): New subprogram to indicate if the
4815 displacement of the type conversion is statically known.
4816 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
4818 * rtsfind.ads (RE_Offset_To_Top): New entity
4819 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
4820 accessible to users.
4821 (Re_Displace): New entity
4822 (RE_Interface_Data): New entity
4823 (RE_Set_Interface_Data): New_Entity
4824 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
4825 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
4826 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
4827 RE_TK_Tagged, RE_TK_Task.
4829 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
4830 Init_Secondary_Tags_Internal to allow its use with interface types and
4831 also to generate the code for the new additional actual required
4832 by Set_Offset_To_Top.
4833 (Build_Init_Statements): In case of components associated with abstract
4834 interface types there is no need to generate a call to its IP.
4835 (Freeze_Record_Type): Generate Select Specific Data tables only for
4837 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
4838 the bodies and specifications of the predefined primitive operations
4839 dealing with dispatching selects and abort, 'Callable, 'Terminated only
4840 for concurrent types.
4842 * exp_sel.ads, exp_sel.adb: New files.
4844 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
4845 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
4846 properly protected objects and attach handler in the case of the
4848 Move embeded package Select_Expansion_Utilities into a separate external
4850 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
4851 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
4852 (Build_K, Build_S_Assignment): New subprograms, part of the select
4853 expansion utilities.
4854 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
4855 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
4856 where the trigger is a dispatching procedure of a limited tagged type.
4858 2005-12-09 Olivier Hainque <hainque@adacore.com>
4860 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
4861 pointer initialization values. Make a SAVE_EXPR instead. Add comments
4862 about the use and expansion of SAVE_EXPRs in the various possible
4863 renaming handling cases.
4864 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
4865 abusing DECL_FCONTEXT.
4867 2005-12-09 Matthew Heaney <heaney@adacore.com>
4869 * a-convec.adb (Merge): Added assertions to check whether vector params
4872 * a-coinve.adb (Merge): Added assertions to check whether vector params
4875 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
4877 (Cursor'Read): raises PE
4879 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
4880 to its default value.
4882 * a-cihama.adb: Manually check whether cursor's key and elem are
4885 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
4886 (Merge): Assert that target and source lists are in order
4887 (Swap): Declare non-const temporaries, to pass to Splice
4889 * a-cdlili.ads: (Splice): Changed param name and param mode
4891 * a-cdlili.adb: (Splice): Changed param name and param mode
4892 (Merge): Assert that target and source lists are in order
4893 (Swap): Declare non-const temporaries, to pass to Splice
4895 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
4896 (Write): declare Stream param as not null
4898 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
4899 an exception message.
4901 2005-12-09 Thomas Quinot <quinot@adacore.com>
4902 Robert Dewar <dewar@adacore.com>
4904 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
4905 which is the absolute maximum length we can support.
4907 * frontend.adb: For the processing of configuration pragma files,
4908 remove references to Opt.Max_Line_Length, which is not checked anymore.
4910 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
4913 * scn.adb, scng.adb:
4914 Always check line length against the absolute supported maximum,
4915 Hostparm.Max_Line_Length.
4917 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
4918 value for the maximum line length is Max_Line_Length (not
4919 Column_Number'Last).
4920 Minor error msg update
4921 (Set_Style_Check_Options): New interface returning error msg
4922 Minor code reorganization (processing for 'M' was out of alpha order)
4924 * switch-c.adb: New interface for Set_Style_Check_Options
4926 * stylesw.ads (Set_Style_Check_Options): New interface returning error
4929 2005-12-09 Javier Miranda <miranda@adacore.com>
4931 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
4932 with IP subprogram were only supported if there were limited types.
4934 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
4935 records with IP subprogram were only supported if there were limited
4938 2005-12-09 Olivier Hainque <hainque@adacore.com>
4939 Eric Botcazou <ebotcazou@adacore.com>
4941 * trans.c (tree_transform, emit_check): Adjust calls to
4942 build_call_raise, passing the now expected GNAT_NODE argument.
4944 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
4945 source line information than what the current global locus indicates
4948 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
4949 field has overflowed.
4950 (build_call_raise): Add a GNAT_NODE argument to convey better source
4951 line information than what the current global locus indicates when
4953 (build_component_ref): Adjust call to build_call_raise.
4955 2005-12-09 Pascal Obry <obry@adacore.com>
4957 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
4958 the iterator is quitting iteration on parent directory.
4960 2005-12-09 Javier Miranda <miranda@adacore.com>
4962 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
4963 and the assignment to a class-wide object, before the assignment we
4964 generate a run-time check to ensure that the tag of the Target is
4965 covered by the tag of the source.
4967 2005-12-09 Robert Dewar <dewar@adacore.com>
4969 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
4970 parameter in call to Image_Wide_Character.
4972 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
4973 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
4974 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
4975 annoying FFFE/FFFF inconsistency.
4977 2005-12-09 Robert Dewar <dewar@adacore.com>
4978 Javier Miranda <miranda@adacore.com>
4979 Ed Schonberg <schonberg@adacore.com>
4981 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
4983 (Find_Interface): New subprogram that given a tagged type and one of its
4984 component associated with the secondary table of an abstract interface
4985 type, return the entity associated with such abstract interface type.
4986 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
4987 base type to create anonymous subtype, because entity may be a locally
4988 declared subtype or generic actual.
4989 (Find_Interface): New subprogram that given a tagged type and one of its
4990 component associated with the secondary table of an abstract interface
4991 type, return the entity associated with such abstract interface type.
4993 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
4994 conversion cannot be handled at compile time. In this case we pass this
4995 information to the expander to generate the appropriate code.
4997 2005-12-09 Robert Dewar <dewar@adacore.com>
4998 Ed Schonberg <schonberg@adacore.com>
4999 Gary Dismukes <dismukes@adacore.com>
5000 Javier Miranda <miranda@adacore.com>
5001 Hristian Kirtchev <kirtchev@adacore.com>
5003 * einfo.adb (Itype_Printed): New flag
5004 (Is_Limited_Type): Derived types do not inherit limitedness from
5005 interface progenitors.
5006 (Is_Return_By_Reference_Type): Predicate does not apply to limited
5009 * einfo.ads (Itype_Printed): New flag
5010 Move Is_Wrapper_Package to proper section
5011 Add missing Inline for Is_Volatile
5013 * output.ads, output.adb (Write_Erase_Char): New procedure
5014 (Save/Restore_Output_Buffer): New procedures
5015 (Save/Restore_Output_Buffer): New procedures
5017 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
5018 Add missing support for anonymous access type
5019 (Write_Id): Insert calls to Write_Itype
5020 (Write_Itype): New procedure to output itypes
5022 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
5023 use of "limited" in declaration.
5025 * sinfo.ads, sinfo.adb:
5026 Formal derived types can carry an explicit "limited" indication.
5028 * sem_ch3.adb: Add with and use of Targparm.
5029 (Create_Component): If Frontend_Layout_On_Target is True and the
5030 copied component does not have a known static Esize, then reset
5031 the size and positional fields of the new component.
5032 (Analyze_Component_Declaration): A limited component is
5033 legal within a protected type that implements an interface.
5034 (Collect_Interfaces): Do not add to the list the interfaces that
5035 are implemented by the ancestors.
5036 (Derived_Type_Declaration): If the parent of the full-view is an
5037 interface perform a transformation of the tree to ensure that it has
5038 the same parent than the partial-view. This simplifies the job of the
5039 expander in order to generate the correct object layout, and it is
5040 needed because the list of interfaces of the full-view can be given in
5042 (Process_Full_View): The parent of the full-view does not need to be
5043 a descendant of the parent of the partial view if both parents are
5045 (Analyze_Private_Extension_Declaration): If declaration has an explicit
5046 "limited" the parent must be a limited type.
5047 (Build_Derived_Record_Type): A derived type that is explicitly limited
5048 must have limited ancestor and progenitors.
5049 (Build_Derived_Type): Ditto.
5050 (Process_Full_View): Verify that explicit uses of "limited" in partial
5051 and full declarations are consistent.
5052 (Find_Ancestor_Interface): Remove function.
5053 (Collect_Implemented_Interfaces): New procedure used to gather all
5054 implemented interfaces by a type.
5055 (Contain_Interface): New function used to check whether an interface is
5057 (Find_Hidden_Interface): New function used to determine whether two
5058 lists of interfaces constitute a set equality. If not, the first
5059 differing interface is returned.
5060 (Process_Full_View): Improve the check for the "no hidden interface"
5061 rule as defined by AI-396.
5063 2005-12-09 Robert Dewar <dewar@adacore.com>
5065 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
5066 types, not on record subtypes.
5067 (Freeze_Entity): Code cleanup. Add barrier to the loop
5068 that generates the references for primitive operations. This allows to
5069 remove an unnecessary exception handler.
5070 Code reformatting and comment clean ups.
5072 2005-12-09 Vincent Celier <celier@adacore.com>
5074 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
5075 If GNAT CHECK is called with a project file, but with no
5076 source on the command line, call gnatcheck with all the compilable
5077 sources of the project.
5078 Take into account the new command Check, for gnatcheck. Treat as for
5079 other ASIS tools: take into account project, specific package Check and
5081 For ASIS tools, add the switches in package Compiler for
5082 the invocation of the compiler.
5084 * prj-attr.adb: Add package Check and its attributes
5086 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
5088 * vms_conv.adb (Initialize): Change Params of command Check to
5090 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
5091 Add data for new command Check
5093 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
5095 Add qualifiers for Check command options
5096 (Command_Type): New command Check
5098 2005-12-09 Thomas Quinot <quinot@adacore.com>
5100 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
5101 command line switch overruns the output buffer.
5103 2005-12-09 Robert Dewar <dewar@adacore.com>
5105 * sem_prag.adb: Processing for new pragma Complete_Representation
5106 (Analyze_Pragma, case Debug): Implement two argument form.
5108 * par-prag.adb: Entry for new pragma Complete_Representation
5109 (Prag, case Debug): Recognize two argument form of pragma Debug
5110 New interface for Set_Style_Check_Options.
5112 * sem_ch13.adb: Implement new pragma Complete_Representation.
5114 * snames.adb, snames.ads, snames.h: Entry for new pragma
5115 Complete_Representation.
5117 2005-12-09 Gary Dismukes <dismukes@adacore.com>
5119 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
5120 available user-specified stream attributes on limited parameters to
5121 also test the type directly rather than only its underlying type (for
5122 Ada 95) and, in the case of Ada 2005, to check that the user-specified
5123 attributes are visible at the point of the subprogram declaration.
5124 For Ada 2005, the error message is modified to indicate that the
5125 type's stream attributes must be visible (again, only for -gnat05).
5127 2005-12-09 Ed Schonberg <schonberg@adacore.com>
5129 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
5130 anonymous access types.
5132 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
5133 matching of anonymous access types and anonymous access to subprogram
5134 types. 'R'M 4.9.1 (2/2).
5136 2005-12-09 Ed Schonberg <schonberg@adacore.com>
5138 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
5139 rule prematurely when operands are universal, remaining ambiguities
5140 will be removed during resolution.
5143 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
5144 that are Ada 2005 functions.
5145 (Has_Abstract_Interpretation): Subsidiary to
5146 Remove_Conversions, to remove ambiguities caused by abstract operations
5147 on numeric types when operands are universal.
5149 2005-12-09 Robert Dewar <dewar@adacore.com>
5151 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
5152 for case where spec is categorized.
5154 2005-12-09 Javier Miranda <miranda@adacore.com>
5156 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
5157 types use the corresponding record type. This was not needed before
5158 the implementation of Ada 2005 synchronized types because
5159 concurrent types were never tagged types in Ada 95.
5161 2005-12-09 Ed Schonberg <schonberg@adacore.com>
5163 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
5164 first subtype of the type of the expression to verify that it is a
5167 2005-12-09 Robert Dewar <dewar@adacore.com>
5169 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
5172 2005-12-09 Quentin Ochem <ochem@adacore.com>
5173 Robert Dewar <dewar@adacore.com>
5174 Ed Falis <falis@adacore.com>
5175 Florian Villoing <villoing@adacore.com>
5176 Thomas Quinot <quinot@adacore.com>
5177 Arnaud Charlet <charlet@adacore.com>
5179 * gnat_ugn.texi: Created section "Stack Related Tools"
5180 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
5181 "Stack Related Tools"
5182 Added subsection "Static Stack Usage Analysis"
5183 Added subsection "Dynamic Stack Usage Analysis"
5184 Include documentation of itypes in sprint listing (-gnatG)
5185 Documented gnatbind -D switch (default sec stack size for fixed sec
5187 Added Interrupt_State and Persistent_BSS to list of configuration
5189 Add missing doc for maximum value of nnn in -gnatyMnnn
5191 * gnat_rm.texi: Document the AltiVec binding.
5192 Add documentation for pragma Complete_Representation
5193 Shortened an overly long line (> 79 chars)
5194 Clarify documentation of unchecked conversion in implementation
5196 Document two argument form of pragma Debug
5198 * types.ads (Column_Number): Update documentation.
5200 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
5201 library level Finalize_Storage_Only objects (these are not attached to
5202 any finalization list).
5204 * system-mingw.ads: (Underlying_Priorities): Update comment.
5206 2005-12-09 Robert Dewar <dewar@adacore.com>
5208 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
5209 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
5210 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
5211 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
5212 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
5213 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
5214 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
5215 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
5218 2005-12-09 Robert Dewar <dewar@adacore.com>
5220 * s-vaflop-vms-alpha.adb: (Ne_F): New function
5221 (Ne_G): New function
5223 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
5225 (Rewrite_Comparison): Handle case where operation is not a comparison
5226 and ignore, and also handle type conversion case.
5228 2005-12-09 Thomas Quinot <quinot@adacore.com>
5230 * exp_aggr.ads: Fix typo in comment.
5231 ???-mark Convert_Aggr_In_Assignment as needing documentation.
5233 2005-12-09 Gary Dismukes <dismukes@adacore.com>
5235 * layout.adb: Replace various uses of byte by storage unit throughout.
5236 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
5237 static size, convert to storage units before returning, to conform to
5240 2005-12-09 Matthew Gingell <gingell@adacore.com>
5242 * g-exctra.ads: Fix typo in comment.
5244 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5246 * utils.c: Minor reformatting.
5248 2005-12-09 Robert Dewar <dewar@adacore.com>
5251 Further comment fixes to make the status of the default file clear
5253 * s-bitops.adb: Clarify comment for Bits_Array
5255 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
5257 * Make-lang.in (ada.install-normal): Remove.
5259 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
5261 * Make-lang.in: Remove all dependencies on s-gtype.
5263 2005-12-05 Richard Guenther <rguenther@suse.de>
5265 * utils.c (convert): Use fold_convert where appropriate.
5267 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
5269 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
5272 2005-12-02 Richard Guenther <rguenther@suse.de>
5274 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
5276 2005-12-01 Roger Sayle <roger@eyesopen.com>
5278 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
5281 2005-11-23 Laurent GUERBY <laurent@guerby.net>
5283 * mlib-prj.adb (Build_Library): Initialize Delete.
5285 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
5287 * socket.c: Add extern int h_errno for rtems since networking header
5288 files are not available at this point in a tool bootstrap. Newlib
5289 only has basic C library header files.
5291 2005-11-19 Richard Guenther <rguenther@suse.de>
5292 Roger Sayle <roger@eyesopen.com>
5295 * misc.c (internal_error_function): Don't use vsprintf to format
5296 the error message text, instead use pp_format_text and the new
5297 pretty printer APIs. This allows handling of %qs, %w, etc.
5299 2005-11-18 Laurent GUERBY <laurent@guerby.net>
5302 * Makefile.in: Use s-auxdec-empty for RTEMS.
5304 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5307 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
5308 a temporary if taking the address of something that is neither
5309 reference, declaration, or constant, since the gimplifier
5310 can't handle that case.
5312 2005-11-17 Laurent GUERBY <laurent@guerby.net>
5315 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
5317 2005-11-16 Richard Guenther <rguenther@suse.de>
5319 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
5321 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
5324 * raise-gcc.c: Add missing stdarg.h include.
5326 2005-11-16 Richard Guenther <rguenther@suse.de>
5328 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
5329 (ada/misc.o): Likewise.
5331 2005-11-14 Thomas Quinot <quinot@adacore.com>
5333 * g-soccon.ads: Minor reformatting. Update comments.
5335 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
5336 gain visibility on the declaration of struct timeval.
5338 * g-soccon-freebsd.ads,
5339 g-soccon-darwin.ads,
5344 g-soccon-solaris.ads,
5347 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
5349 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
5350 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
5351 g-soccon-linux-x86.ads: New files.
5353 * g-socthi-mingw.adb:
5354 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
5356 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
5357 (time_t, suseconds_t): New types constructed to match the tv_sec
5358 and tv_usec fields of C struct timeval.
5359 (Timeval): Construct structure in terms of the new types.
5360 (Host_Errno): New function (imported from socket.c), returns last hosts
5363 * g-socthi-vxworks.adb: Add error handling circuitry.
5365 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
5366 components of struct timeval.
5367 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
5368 (Check_Selector): In error conditions, clear internal socket sets to
5369 avoid a memory leak.
5370 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
5371 Send_Timeout, Receive_Timeout.
5373 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
5374 the tv_sec and tv_usec fields of C struct timeval.
5375 (Timeval): Construct structure in terms of the new types.
5376 (Host_Errno): New function (imported from socket.c), returns last hosts
5379 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
5380 hosts database last error code.
5382 * gen-soccon.c: Complete value expansion should not be performed on
5383 TARGET, as it has the form of a math expression, and some components
5384 may be platform-defined macros.
5385 For VxWorks, generate the OK and ERROR values.
5386 New constants giving the sizes of the components of C struct timeval.
5388 2005-11-14 Robert Dewar <dewar@adacore.com>
5389 Ed Schonberg <schonberg@adacore.com>
5393 * types.ads: Include All_Checks in Suppress_Array
5395 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
5396 not(a=b), since we no longer do this rewriting, and hence it is not
5398 (Elaboration_Checks_Suppressed): Add special casing to
5399 deal with different cases of static and dynamic elaboration checks (all
5400 checks does not count in the first case, but does in the second).
5401 (Expr_Known_Valid): Do not assume that the result of any arbitrary
5402 function call is valid, since this is not the case.
5403 (Ensure_Valid): Do not apply validity check to a real literal
5404 in a universal or fixed context
5406 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
5407 elementary types using the operator in standard. It is cleaner not to
5408 modify the programmers intent, especially in the case of floating-point.
5409 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
5410 it did not matter because we always rewrote a/=b to not(a=b).
5411 (Expand_Allocator_Expression): For an allocator expression whose nominal
5412 subtype is an unconstrained packed type, convert the expression to its
5413 actual constrained subtype.
5414 Implement warning for <= or >= where < or > not possible
5415 Fix to Vax_Float tests (too early in many routines, causing premature
5416 Vax_Float expansions.
5418 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
5419 to be used with packages and generic packages as well as with
5421 (Suppress): Set All_Checks, but not Elaboration_Check, for case
5422 of pragma Suppress (All_Checks)
5423 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
5424 a string literal for precise control over warnings.
5425 Avoid raise of pragma in case of unrecognized pragma and just return
5428 * sem_prag.ads: Minor reformatting
5430 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
5431 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
5432 Switch. Do not handle any exception.
5433 Include -gnatwx as part of -gnatg (warn on redundant parens)
5434 Allow optional = after -gnatm
5435 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
5436 longer sets Elaboration_Checks.
5437 Code to set warning mode moved to Sem_Warn
5438 so that it can be shared by pragma processing.
5440 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
5443 * s-taprop-solaris.adb:
5444 Change some <= to =, to avoid new warning
5446 * a-exexda.adb, prj-proc.adb:
5447 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
5448 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
5450 2005-11-14 Robert Dewar <dewar@adacore.com>
5452 * exp_vfpt.adb: Handle /= case
5453 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
5454 so that we do not get duplicate scaling for fixed point conversions.
5456 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
5458 2005-11-14 Matthew Gingell <gingell@adacore.com>
5460 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
5461 Increase default priority on Lynx from 15 to 17, and meet the Ada
5462 requirement that Default_Priority be ((Priority'First +
5463 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
5465 2005-11-14 Vincent Celier <celier@adacore.com>
5467 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5468 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
5469 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
5470 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
5471 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
5472 mlib-tgt-lynxos.adb (DLL_Prefix): New function
5474 2005-11-14 Doug Rupp <rupp@adacore.com>
5476 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
5479 2005-11-14 Arnaud Charlet <charlet@adacore.com>
5481 * s-traces-default.adb, s-trafor-default.ads,
5482 s-tratas-default.adb: Fix compilation errors.
5484 2005-11-14 Jose Ruiz <ruiz@adacore.com>
5486 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
5487 raising the exception so the memory used is freed.
5489 2005-11-14 Arnaud Charlet <charlet@adacore.com>
5491 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
5492 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
5493 (convert_address): Update comments and list of platforms using this.
5495 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
5498 2005-11-14 Pascal Obry <obry@adacore.com>
5499 Vincent Celier <celier@adacore.com>
5501 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
5504 * memroot.adb: Remove redundant with/use clause on
5505 System.Storage_Elements.
5507 2005-11-14 Arnaud Charlet <charlet@adacore.com>
5509 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
5510 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
5511 related code to a-exexpr.adb
5512 (Save_Occurrence_And_Private): Move GCC EH related code to
5514 (Raise_Current_Excep): Add new variable Id with pragma
5515 volatile, to ensure that the variable lives on stack.
5517 * a-exexpr-gcc.adb, raise-gcc.c: New file.
5519 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
5521 Move GCC EH related code to a-exexpr-gcc.adb
5523 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
5525 Split the Linux version of g-soccon into separate variants for 32 and 64
5527 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
5528 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
5529 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
5530 of host variable $(RANLIB_FLAGS).
5531 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
5532 Code clean up: remove unused/obsolete targets.
5533 (EH_MECHANISM): New variable introduced to differenciate between the
5534 two EH mechanisms statically.
5535 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
5536 (LIBGNAT_OBJS): Add raise-gcc.o
5537 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
5538 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
5539 supports VxWorks 6 RTPs.
5540 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
5541 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
5543 * raise.c: Move all GCC EH-related routines to raise-gcc.c
5545 2005-11-14 Jose Ruiz <ruiz@adacore.com>
5547 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
5548 deferral level, when abort is not allowed, to a later stage (the
5550 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
5551 it will not get changed by the generated code. It was previously done
5554 2005-11-14 Thomas Quinot <quinot@adacore.com>
5555 Olivier Hainque <hainque@adacore.com>
5556 Eric Botcazou <ebotcazou@adacore.com>
5559 Factor common code to build a storage type for an unconstrained object
5560 from a fat or thin pointer type and a constrained object type.
5561 (annotate_value): Handle BIT_AND_EXPR.
5562 (annotate_rep): Don't restrict the back annotation of inherited
5563 components to the type_annotate_only case.
5564 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
5565 we are not defining the type.
5566 <E_Record_Type>: Likewise.
5567 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
5568 to get advantage of the new maybe_stabilize_reference interface, to
5569 ensure that what we reference is indeed stabilized instead of relying
5570 on assumptions on what the stabilizer does.
5571 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
5572 type imported through a limited_with clause, use its non-limited view.
5573 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
5575 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
5576 of #if sections + explicit comparisons of convention identifiers.
5577 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
5578 before early-returning for certain types when code generation is
5580 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
5581 nullification of gnu_expr we do for objects with address clause and
5582 that we are not defining.
5583 (elaborate_expression_1): Do not create constants when creating
5584 variables needed by the debug info: the dwarf2 writer considers that
5585 CONST_DECLs is used only to represent enumeration constants, and emits
5587 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
5588 object with an address clause into an indirect reference, drop the
5589 initializing expression.
5591 (STACK_CHECK_BUILTIN): Delete.
5592 (STACK_CHECK_PROBE_INTERVAL): Likewise.
5593 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
5594 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
5595 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
5596 corresponding to the renamed object as ignored for debugging purposes.
5598 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
5599 related): For a prefix that is a dereference of a fat or thin pointer,
5600 if there is an actual subtype provided by the front-end, use that
5601 subtype to build an actual type with bounds template.
5602 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
5603 is provided by the front-end, use that subtype to compute the size of
5604 the deallocated object.
5605 (gnat_to_gnu): When adding a statement into an elaboration procedure,
5606 check for a potential violation of a No_Elaboration_Code restriction.
5607 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
5608 with extra arguments to control whether to recurse through non-values
5609 and to let the caller know if the stabilization has succeeded.
5610 (gnat_stabilize_reference): Now a simple wrapper around
5611 maybe_stabilize, for common uses without restriction on lvalues and
5612 without need to check for the success indication.
5613 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
5614 pass false instead of 0 as the FORCE argument which is a bool.
5615 (Identifier_to_gnu): Remove checks ensuring that an renamed object
5616 attached to a renaming pointer has been properly stabilized, as no such
5617 object is attached otherwise.
5618 (call_to_gnu): Invoke create_var_decl to create the temporary when the
5619 function uses the "target pointer" return mechanism.
5620 Reinstate conversion of the actual to the type of the formal
5621 parameter before any other specific treatment based on the passing
5622 mechanism. This turns out to be necessary in order for PLACEHOLDER
5623 substitution to work properly when the latter type is unconstrained.
5625 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
5627 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
5628 with extra arguments to control whether to recurse through non-values
5629 and to let the caller know if the stabilization has succeeded.
5631 * utils2.c (gnat_build_constructor): Only sort the fields for possible
5632 static output of record constructor if all the components are constant.
5633 (gnat_build_constructor): For a record type, sort the list of field
5634 initializers in increasing bit position order.
5635 Factor common code to build a storage type for an unconstrained object
5636 from a fat or thin pointer type and a constrained object type.
5637 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
5638 types variants, and process special cases of VIEW_CONVERT expressions
5639 as their NOP_EXPR counterpart to ensure we get to the
5640 CORRESPONDING_VARs associated with CONST_DECls.
5641 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
5642 on the right-hand side.
5644 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
5646 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
5647 are converting back to its original type.
5648 (convert) <JM input>: Fallthrough regular conversion code instead of
5649 extracting the object if converting to a type variant.
5650 (create_var_decl): When a variable has an initializer requiring code
5651 generation and we are at the top level, check for a potential violation
5652 of a No_Elaboration_Code restriction.
5653 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
5654 SIZE and SIZE_UNIT which we need for later back-annotations.
5655 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
5656 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
5657 is an unchecked union.
5658 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
5659 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
5660 main variant, just replace the VIEW_CONVERT_EXPR.
5661 <UNION_TYPE>: Revert 2005-03-02 change.
5663 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
5665 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
5667 2005-11-14 Matthew Heaney <heaney@adacore.com>
5669 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
5670 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
5671 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
5672 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
5673 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
5674 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
5675 Compiles against the spec for ordered maps described in sections
5676 A.18.6 of the most recent (August 2005) AI-302 draft.
5678 2005-11-14 Olivier Hainque <hainque@adacore.com>
5680 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
5681 to ensure bias adjustments take place when need be and to prevent
5682 occurrences of intermediate overflows.
5684 2005-11-14 Matthew Gingell <gingell@adacore.com>
5685 Olivier Hainque <hainque@adacore.com>
5687 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
5690 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
5691 tracebacks on ia64 HP-UX and provide explanatory comment.
5692 Enable backtraces on ia64 GNU/Linux.
5693 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
5694 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
5696 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
5697 Javier Miranda <miranda@adacore.com>
5699 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
5700 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
5701 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
5702 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
5704 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
5705 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
5708 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
5709 subprogram that generates the external name associated with a
5710 secondary dispatch table.
5711 (Get_Secondary_DT_External_Name): New subprogram that generates the
5712 external name associated with a secondary dispatch table.
5714 2005-11-14 Emmanuel Briot <briot@adacore.com>
5716 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
5717 line in the ALI file to include both an instantiation reference, and a
5720 2005-11-14 Vincent Celier <celier@adacore.com>
5722 * clean.adb (Check_Project): Look for Ada code in extending project,
5723 even if Ada is not specified as a language.
5724 Use new function DLL_Prefix for DLL_Name
5725 (Clean_Interface_Copy_Directory): New procedure
5726 (Clean_Library_Directory): New procedure
5727 (Clean_Directory): Remove procedure, no longer used
5728 (Clean_Project): Do not delete any file in an externally built project
5730 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
5731 directory of an extending project, even when there are no Ada source
5733 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
5734 (Set_Ada_Paths.Add.Recursive_Add): Ditto
5736 * mlib-prj.adb (Check_Library): For all library projects, get the
5737 library file timestamp.
5738 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
5739 (Build_Library): Use new function DLL_Prefix for the DLL_Name
5740 (Clean): Remove procedure, no longer used
5741 (Ultimate_Extension_Of): New function
5742 (Build_Library): When cleaning the library directory, only remove an
5743 existing library file and any ALI file of a source of the project.
5744 When cleaning the interface copy directory, remove any source that
5745 could be a source of the project.
5747 * prj.ads, prj.adb (Project_Empty): Add values of new components
5748 Library_TS and All_Imported_Projects.
5749 (Project_Empty): Add values for new components of Project_Data:
5750 Library_ALI_Dir and Display_Library_ALI_Dir
5752 * prj-attr.adb: New project level attribute name Library_ALI_Dir
5754 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
5755 attribute Library_ALI_Dir.
5756 (Check_Library_Attributes): The library directory cannot be the same as
5757 any source directory of the project tree.
5758 (Check_Stand_Alone_Library): The interface copy directory cannot be
5759 the same as any source directory of the project tree.
5761 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
5762 all temporary files.
5764 2005-11-14 Robert Dewar <dewar@adacore.com>
5765 Ed Schonberg <schonberg@adacore.com>
5767 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
5768 (Check_Elab_Call): A call within a protected body is never an
5769 elaboration call, and does not require checking.
5770 (Same_Elaboration_Scope): Take into account protected types for both
5772 (Activate_Elaborate_All_Desirable): New procedure
5774 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
5777 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
5778 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
5780 * lib-writ.ads, lib-writ.adb:
5781 Implement new AD/ED for Elaborate_All/Elaborate desirable
5782 Use new Elaborate_All_Desirable flag in N_With_Clause node
5784 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
5785 N_Free_Statement nodes.
5786 Define new class N_Subprogram_Instantiation
5787 Add Elaborate_Desirable flag to N_With_Clause node
5788 Add N_Delay_Statement (covering two kinds of delay)
5790 * debug.adb: Introduce d.f flag for compiler
5791 Add -da switch for binder
5793 2005-11-14 Ed Schonberg <schonberg@adacore.com>
5794 Cyrille Comar <comar@adacore.com>
5796 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
5797 for task component, in the case of a limited aggregate. The enclosed
5798 object declaration will create it earlier. Otherwise, in the case of a
5799 nested aggregate, the object may appear in the wrong scope.
5800 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
5801 (Gen_Assign): If the component being assigned is an array type and the
5802 expression is itself an aggregate, wrap the assignment in a block to
5803 force finalization actions on the temporary created for each row of the
5805 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
5806 structures are initialized after all discriminants are set so that
5807 they can be accessed even when their offset is dynamic.
5809 2005-11-14 Robert Dewar <dewar@adacore.com>
5810 Hristian Kirtchev <kirtchev@adacore.com>
5812 * sem_attr.adb: Implement Machine_Rounding attribute
5813 (Analyze_Access_Attribute): The access attribute may appear within an
5814 aggregate that has been expanded into a loop.
5815 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
5816 'Terminated whenever the prefix is of a task interface class-wide type.
5817 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
5818 the prefix is of a task interface class-wide type.
5820 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
5823 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
5824 Remove pragma Inline for [Unaligned_]Valid.
5825 Add comments that Valid routines do not work for Vax_Float
5827 * exp_attr.adb: Implement Machine_Rounding attribute
5829 * snames.h: Add entry for Machine_Rounding attribute
5831 2005-11-14 Javier Miranda <miranda@adacore.com>
5832 Robert Dewar <dewar@adacore.com>
5833 Hristian Kirtchev <kirtchev@adacore.com>
5835 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
5836 and related): For a prefix that is an explicit dereference of an
5837 access to unconstrained packed array type, annotate the dereference
5838 with an actual subtype so GIGI can make a correct size computation.
5839 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
5840 'Unrestricted_Access, if the designated type is an interface we
5841 add a type conversion to force the displacement of the pointer
5842 to the secondary dispatch table.
5843 Use Universal_Real instead of Long_Long_Float when we need a high
5844 precision float type for the generated code (prevents gratuitous
5845 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
5846 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
5847 'Terminated for task interface class-wide objects. Generate a call to
5848 the predefined dispatching routine used to retrieve the _task_id from
5849 a task corresponding record.
5850 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
5852 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
5853 (Check_Dispatching_Operation): Protect the frontend againts
5854 previously detected errors.
5856 * Makefile.rtl: Add new instantiations of system.fat_gen
5858 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
5859 Change name of instantiated package for better consistency
5860 with newly added system.fat_gen instantiations.
5862 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
5863 s-fvagfl.ads: New files.
5865 2005-11-14 Cyrille Comar <comar@adacore.com>
5866 Thomas Quinot <quinot@adacore.com>
5868 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
5869 assignment of a value of a tagged type that has been rewritten to a
5870 block statement, it is known by construction that no checks are
5871 necessary for the statements within the block: analyze it with checks
5873 (Expand_N_If_Statement): When killing a dead then-branch in an
5874 if-statement that has elsif_parts, recompute the Current_Value node
5875 for any entity whose value is known from the condition of the first
5877 (Expand_N_Return_Statement): When returning a mutable record, convert
5878 the return value into its actual subtype in order to help the backend
5879 to return the actual size instead of the maximum. This is another
5880 aftermath of not returning mutable records on the sec-stack anymore.
5882 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
5883 handling of error msg for suspicious reverse range iteration.
5884 (Check_Possible_Current_Value_Condition): Move declaration from body to
5885 spec, to allow this subprogram to be called from exp_ch5.
5887 2005-11-14 Thomas Quinot <quinot@adacore.com>
5889 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
5890 generate a set of nested array aggregates instead of a single flat
5891 aggregate for multi-dimensional arrays.
5893 2005-11-14 Pascal Obry <obry@adacore.com>
5895 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
5896 by spawnve is a process handle, no need to convert. Add a parameter
5897 close to control wether the process handle must be closed.
5898 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
5899 a process handle, not need to convert.
5900 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
5902 * g-expect.adb: (Kill): Document the new close parameter.
5903 (Close): Do not release the process handle in the kill there as
5904 waitpid() is using it.
5905 (Send_Signal): Release the process handle.
5907 2005-11-14 Robert Dewar <dewar@adacore.com>
5909 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
5910 need a high precision float type for the generated code (prevents
5911 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
5914 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
5915 need a high precision float type for the generated code (prevents
5916 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
5918 (Expand_Width_Attribute): In configurable run-time, the attribute is not
5919 allowed on non-static enumeration subtypes. Force a load error to emit
5920 the correct diagnostic.
5922 2005-11-14 Thomas Quinot <quinot@adacore.com>
5923 Robert Dewar <dewar@adacore.com>
5924 Ed Schonberg <schonberg@adacore.com>
5926 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
5927 subtype to compute the size of the designated object at run-time,
5928 create such a subtype and store it in the Actual_Designated_Subtype
5929 attribute of the N_Free_Statement.
5930 Generate itype for classwide designated object in both cases of
5931 user-specified storage pool: specific and class-wide, not only in the
5933 Raise CE when trying to set a not null access type object to null.
5934 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
5935 an explicit loop, because freeze nodes make its position variable.
5937 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
5940 2005-11-14 Javier Miranda <miranda@adacore.com>
5942 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
5943 Build_Stream_Procedure): Add the null-excluding attribute to the first
5945 This has no semantic meaning under Ada95 mode but it is a
5946 requirement under Ada05 mode.
5948 * par-ch3.adb (P_Access_Definition): Addition of warning message if
5949 the null exclusion is used under Ada95 mode
5950 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
5951 (P_Access_Definition): Remove assertion that forbids the use of
5952 the null-exclusion feature in Ada95.
5954 2005-11-14 Robert Dewar <dewar@adacore.com>
5956 * impunit.adb: Exclude container helper units not intended for use by
5959 2005-11-14 Ed Schonberg <schonberg@adacore.com>
5961 * freeze.adb (Freeze_Entity): For an access formal that is an access
5962 to subprogram, freeze the anonymous subprogram type at the same time,
5963 to prevent later freezing in the wrong scope, such as the enclosing
5965 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
5966 subprogram whenever available.
5968 2005-11-14 Arnaud Charlet <charlet@adacore.com>
5971 * gnatvsn.ads (Library_Version): Bump to 4.1
5973 2005-11-14 Robert Dewar <dewar@adacore.com>
5975 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
5976 Storage_Offset to avoid wrap around causing invalid results.
5978 2005-11-14 Pascal Obry <obry@adacore.com>
5980 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
5982 (Scan_Bind_Arg): Fail with an error message if -M option is used
5983 on a native compiler.
5985 2005-11-14 Robert Dewar <dewar@adacore.com>
5986 Vincent Celier <celier@adacore.com>
5988 * gprep.adb: Implement -C switch to scan comments
5990 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
5992 * scans.ads: Comment updates (including new use of Tok_Comment in
5995 * opt.ads: Add documentation for flags that are used by gprmake,
5996 currently and in the next version of gprmake.
5997 (Verbosity_Level): New variable
5998 Add Replace_In_Comments switch
6000 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
6002 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
6004 2005-11-14 Arnaud Charlet <charlet@adacore.com>
6006 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
6007 message, friendlier.
6009 2005-11-14 Robert Dewar <dewar@adacore.com>
6011 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
6013 2005-11-14 Doug Rupp <rupp@adacore.com>
6015 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
6017 2005-11-14 Robert Dewar <dewar@adacore.com>
6019 * interfac.ads: Change declarations of IEEE float types so that we no
6020 longer need a separate version of this package for VMS.
6022 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6024 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
6025 internal entity created for the declaration of a child subprogram body
6026 with no spec as coming from source, to generate proper cross-reference
6029 2005-11-14 Vincent Celier <celier@adacore.com>
6031 * make.adb (Compile_Sources): Change verbose message to minimum
6032 verbosity level High for "is in an Ada library", "is a read-only
6033 library" and "is an internal library",
6034 (Create_Binder_Mapping_File): Path name of ALI file for library project
6035 must include the library directory, not the object directory.
6036 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
6037 for new switches -vl, -vm and -vh.
6038 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
6039 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
6040 (Compile_Sources): Do not attempt to compile if an ALI file is missing
6041 in a project that is externally built.
6042 (Compute_All_Imported_Projects): New procedure
6043 (Gnatmake): Check if importing libraries should be regenerated because
6044 at least an imported library is more recent.
6045 (Initialize): For each project compute the list of the projects it
6046 imports directly or indirectly.
6047 (Add_Library_Search_Dir): New procedure, used in place of
6048 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
6049 put in the search paths.
6050 (Add_Source_Search_Dir): New procedure, used in place of
6051 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
6052 put in the search paths.
6053 (Mark_Directory): Resolve the absolute path the directory before marking
6056 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
6057 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
6058 Switch. Do not handle any exception.
6059 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
6060 so that the switch is recognized as valid.
6061 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
6063 2005-11-14 GNAT Script <nobody@adacore.com>
6065 * Make-lang.in: Makefile automatically updated
6067 2005-11-14 Pascal Obry <obry@adacore.com>
6069 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
6071 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
6072 In both cases the last argument was dropped.
6074 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
6076 * namet.h: (Column_Numbe): New type.
6077 (Get_Column_Number): Define to sinput__get_column_number.
6078 (Instantiation): Define to sinput__instantiation.
6079 (Get_Column_Number): Declare.
6080 (Instantiation): Likewise.
6082 2005-11-14 Robert Dewar <dewar@adacore.com>
6084 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
6085 syntax, which could cause compiler hangs.
6087 2005-11-14 Vincent Celier <celier@adacore.com>
6089 * prj-ext.adb: Take into account new environment variable
6090 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
6092 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
6093 normalize its path name, making it absolute and resolving symbolic
6094 links, and replace the original if resolved path is different.
6096 2005-11-14 Vincent Celier <celier@adacore.com>
6098 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
6099 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
6101 2005-11-14 Emmanuel Briot <briot@adacore.com>
6103 * prj-pp.adb (Print): Do not output the with statement if the
6104 associated name is empty, which happens for virtual extending projects.
6105 (Print): Preserve the "extends all" attribute when printing the project.
6107 * prj-tree.ads (String_Value_Of): Add comment about returned value for
6108 a virtual extending project.
6110 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6112 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
6113 rhs of an assignment even if the type is unconstrained, when the
6114 context is non-expanding.
6115 In an inlined body, if the context type is private,
6116 resolve with its full view, which must be a composite type.
6118 2005-11-14 Robert Dewar <dewar@adacore.com>
6119 Ed Schonberg <schonberg@adacore.com>
6121 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
6122 Do not give obsolescent warning on with of subprogram (since we
6124 (Analyze_With_Clause): Add test for obsolescent package
6125 (Install_Context_Clauses): If the unit is the body of a child unit, do
6126 not install twice the private declarations of the parents, to prevent
6127 circular lists of Use_Clauses in a parent.
6128 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
6129 compiling body of child unit.
6130 Use new class N_Subprogram_Instantiation
6131 (Expand_With_Clause): If this is a private with_clause for a child unit,
6132 appearing in the context of a package declaration, then the implicit
6133 with_clauses generated for parent units are private as well.
6134 (License_Check): Do not generate message if with'ed unit is internal
6136 2005-11-14 Gary Dismukes <dismukes@adacore.com>
6137 Ed Schonberg <schonberg@adacore.com>
6138 Thomas Quinot <quinot@adacore.com>
6140 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
6141 names are internal, because they will not have a corresponding partner
6142 in the actual package.
6143 (Analyze_Formal_Package): Move the setting of the formal package spec's
6144 Generic_Parent field so that it occurs prior to analyzing the package,
6145 to allow proper operation of Install_Parent_Private_Declarations.
6146 (Analyze_Package_Instantiation): Set the instantiated package entity's
6147 Package_Instantiation field.
6148 (Get_Package_Instantiation_Node): Move declaration to package spec.
6149 Retrieve the N_Package_Instantiation node when the Package_Instantiation
6151 (Check_Generic_Child_Unit): Within an inlined call, the only possible
6152 instantiation is Unchecked_Conversion, for which no parents are needed.
6153 (Inline_Instance_Body): Deinstall and record the use_clauses for all
6154 parent scopes of a scope being removed prior to inlining an instance
6156 (Analyze_Package_Instantiation): Do not perform front-end inlining when
6157 the current context is itself an instance within a non-instance child
6158 unit, to prevent scope stack errors.
6159 (Save_References): If the node is an aggregate that is an actual in a
6160 call, rewrite as a qualified expression to preserve some type
6161 information, to resolve possible ambiguities in the instance.
6162 (Instance_Parent_Unit): New global variable to record the ultimate
6163 parent unit associated with a generic child unit instance (associated
6164 with the existing Parent_Unit_Visible flag).
6165 (type Instance_Env): New component Instance_Parent_Unit for stacking
6166 parents recorded in the global Instance_Parent_Unit.
6167 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
6169 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
6170 it's not a top-level unit, and only do this if Instance_Parent_Unit is
6171 not already set. Replace test of Is_Child_Unit with test of parent's
6172 scope against package Standard. Add comments and a ??? comment.
6173 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
6174 on a child instance parent to test that the parent equals
6175 Instance_Parent rather than simply checking that the unit is not a
6177 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
6178 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
6179 a formal interface are ancestors of the corresponding actual.
6180 (Validate_Formal_Interface_Type): Additional legality checks.
6181 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
6182 interface types with ancestors.
6183 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
6184 to diagnose attempts to use generic within its own declaration.
6186 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6187 Javier Miranda <miranda@adacore.com>
6189 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
6191 (Build_Private_Derived_Type): The entity of the created full view of the
6192 derived type does not come from source. If after installing the private
6193 declarations of the parent scope the parent is still private, use its
6194 full view to construct the full declaration of the derived type.
6195 (Build_Derived_Record_Type): Relax the condition that controls the
6196 execution of the check that verifies that the partial view and
6197 the full view agree in the set of implemented interfaces. In
6198 addition, this test now only takes into account the progenitors.
6199 (Derive_Interface_Subprograms): No need to derive subprograms
6200 of ancestors that are interfaces.
6201 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
6203 Change name Is_Package to Is_Package_Or_Generic_Package
6204 (Complete_Subprograms_Derivation): Handle the case in which the full
6205 view is a transitive derivation of the ancestor of the partial view.
6206 (Process_Full_View): Rename local subprogram Find_Interface_In_
6207 Descendant to Find_Ancestor_Interface to leave the code more clear.
6208 Remove wrong code that avoids the generation of an error message
6209 when the immediate ancestor of the partial view is an interface.
6210 In addition some minor reorganization of the code has been done to
6211 leave it more clear.
6212 (Analyze_Type_Declaration): If type has previous incomplete tagged
6213 partial view, inherit properly its primitive operations.
6214 (Collect_Interfaces): Make public, for analysis of formal
6216 (Analyze_Interface_Declaration): New procedure for use for regular and
6217 formal interface declarations.
6218 (Build_Derived_Record_Type): Add support for private types to the code
6219 that checks if a tagged type implements abstract interfaces.
6220 (Check_Aliased_Component_Type): The test applies in the spec of an
6222 (Access_Type_Declaration): Clean up declaration of malformed type
6223 declared as an access to its own classwide type, to prevent cascaded
6225 (Collect_Interfaces): For private extensions and for derived task types
6226 and derived protected types, the parent may be an interface that must
6227 be included in the interface list.
6228 (Access_Definition): If the designated type is an interface that may
6229 contain tasks, create Master_Id for it before analyzing the expression
6230 of the declaration, which may be an allocator.
6231 (Record_Type_Declaration): Set properly the interface kind, for use
6232 in allocators, the creation of master id's for task interfaces, etc.
6234 2005-11-14 Javier Miranda <miranda@adacore.com>
6235 Ed Schonberg <schonberg@adacore.com>
6237 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
6238 omitted in case of stream attribute subprograms.
6239 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
6240 appear immediately after a subprogram body, when there is no previous
6241 subprogram declaration.
6242 Change name Is_Package to Is_Package_Or_Generic_Package
6243 (Process_Formals): A non null qualifier on a non null named access
6244 type is not an error, and is a warning only if Redundant_Constructs
6247 2005-11-14 Gary Dismukes <dismukes@adacore.com>
6248 Ed Schonberg <schonberg@adacore.com>
6250 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
6251 nested within Analyze_Package_Specification to install the private
6252 declarations and use clauses within each of the parent units of a
6253 package instance of a generic child package.
6254 (Analyze_Package_Specification): When entering a private part of a
6255 package associated with a generic instance or formal package, the
6256 private declarations of the parent must be installed (by calling new
6257 procedure Install_Parent_Private_Declarations).
6258 Change name Is_Package to Is_Package_Or_Generic_Package
6259 (Preserve_Full_Attributes): For a synchronized type, the corresponding
6260 record is absent in a generic context, which does not indicate a
6263 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6265 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
6266 not try to rewrite a renamed stream attribute, because the operations
6267 on the type may not have been generated.
6268 Handle properly a renaming_as_body generated for a stream operation
6269 whose default is abstract because the object type itself is abstract.
6270 (Find_Type): If the type is incomplete and appears as the prefix of a
6271 'Class reference, it is tagged, and its list of primitive operations
6272 must be initialized properly.
6273 (Chain_Use_Clauses): When chaining the use clauses that appear in the
6274 private declaration of a parent unit, prior to compiling the private
6275 part of a child unit, find on the scope stack the proper parent entity
6276 on which to link the use clause.
6277 (Note_Redundant_Use): Emit a warning when a redundant use clause is
6279 (Analyze_Object_Renaming): An attribute reference is not a legal object
6280 if it is not a function call.
6282 2005-11-14 Robert Dewar <dewar@adacore.com>
6283 Ed Schonberg <schonberg@adacore.com>
6285 * sem_eval.adb: Implement d.f flag
6286 (Subtype_Statically_Match): A generic actual type has unknown
6287 discriminants when the corresponding actual has a similar partial view.
6288 If the routine is called to validate the signature of an inherited
6289 operation in a child instance, the generic actual matches the full view,
6291 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
6292 Ed Schonberg <schonberg@adacore.com>
6293 Robert Dewar <dewar@adacore.com>
6294 Thomas Quinot <quinot@adacore.com>
6296 * sem_res.adb (Resolve_Call): Provide a better error message whenever
6297 a procedure call is used as a select statement trigger and is not an
6298 entry renaming or a primitive of a limited interface.
6299 (Valid_Conversion): If the operand has a single interpretation do not
6300 remove address operations.
6301 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
6302 statement to inhibit warning.
6303 (Resolve_Unary_Op): Do not produce a warning when
6304 processing an expression of the form -(A mod B)
6305 Use Universal_Real instead of Long_Long_Float when we need a high
6306 precision float type for the generated code (prevents gratuitous
6307 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
6308 (Resolve_Concatenation_Arg): Improve error message when argument is an
6309 ambiguous call to a function that returns an array.
6310 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
6311 there is an implicit operator in the given scope if we are within an
6312 instance: legality check has been performed on the generic.
6313 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
6314 after resolving operand, to avoid false warnings on overloaded calls.
6316 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6317 Javier Miranda <miranda@adacore.com>
6321 * sem_type.adb (Covers): In an inlined body, a composite type matches
6322 a private type whose full view is a composite type.
6323 (Interface_Present_In_Ancestor): Protect the frontend against
6324 previously detected errors to ensure that its compilation
6325 with assertions enabled gives the same output that its
6326 compilation without assertions.
6327 (Interface_Present_In_Ancestor): Add support for private types.
6328 Change name In_Actual to In_Generic_Actual (clean up)
6329 (Disambiguate): New predicate In_Actual, to recognize expressions that
6330 appear in the renaming declaration generated for generic actuals, and
6331 which must be resolved in the outer context.
6333 2005-11-14 Robert Dewar <dewar@adacore.com>
6334 Thomas Quinot <quinot@adacore.com>
6335 Hristian Kirtchev <kirtchev@adacore.com>
6336 Ed Schonberg <schonberg@adacore.com>
6338 * sem_util.ads, sem_util.adb: Change name Is_Package to
6339 Is_Package_Or_Generic_Package.
6340 (Check_Obsolescent): New procedure.
6341 (Set_Is_Public): Remove obsolete junk test.
6342 (Set_Public_Status): Do not set Is_Public on an object whose declaration
6343 occurs within a handled_sequence_of_statemets.
6344 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
6345 for a parameterless procedure.
6346 (Enter_Name): Recognize renaming declarations created for private
6347 component of a protected type within protected operations, so that
6348 the source name of the component can be used in the debugger.
6350 2005-11-14 Ed Schonberg <schonberg@adacore.com>
6351 Robert Dewar <dewar@adacore.com>
6353 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
6354 of a generic subprogram are not visible outside the body.
6355 (Set_Warning_Switch): New procedure (code to set warning mode moved
6356 here from Switch.C so that it can be shared by pragma processing.
6357 (Check_References): Special case warning for non-modified non-imported
6359 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
6360 form with a string literal argument
6362 2005-11-14 Javier Miranda <miranda@adacore.com>
6364 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
6366 (Write): Addition of "not null" to the anonymous access.
6367 (Read): Addition of "not null" to the anonymous access.
6368 (Write): Addition of "not null" to the anonymous access.
6370 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
6371 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
6372 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
6373 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
6374 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
6375 "not null" to the anonymous access.
6377 2005-11-14 Robert Dewar <dewar@adacore.com>
6379 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
6382 2005-11-14 Vincent Celier <celier@adacore.com>
6384 * switch.adb (Bad_Switch): New procedure
6385 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
6386 message when in error.
6388 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
6389 Too_Many_Output_Files): Remove declarations, no longer used.
6390 (Scan_Nat): New parameter Switch
6392 (Bad_Switch): New procedure
6394 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
6395 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
6396 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
6397 to Osint.Fail. Do not handle any exception.
6399 2005-11-14 Vincent Celier <celier@adacore.com>
6401 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
6402 designates a non existent directory.
6404 2005-11-14 Robert Dewar <dewar@adacore.com>
6406 * xgnatugn.adb: Replace invalid membership test by 'Valid
6408 2005-11-14 Vincent Celier <celier@adacore.com>
6410 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
6411 there is no object directory.
6413 2005-11-14 Robert Dewar <dewar@adacore.com>
6415 * usage.adb: Minor adjustment to output format, use nn instead of nnn
6416 (so that -gnateInnn does not run into next column)
6418 2005-11-14 Ed Falis <falis@adacore.com>
6420 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
6423 2005-11-14 Cyrille Comar <comar@adacore.com>
6425 * s-chepoo.ads: Add comments on Dereference.
6426 Remove unnecessary inherited abstract primitives.
6429 2005-11-14 Robert Dewar <dewar@adacore.com>
6431 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
6432 node parameter, not needed, since it is available as Declaration_Node.
6434 2005-11-14 Geert Bosch <bosch@adacore.com>
6436 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
6437 grammatically correct.
6439 2005-11-14 Vincent Celier <celier@adacore.com>
6441 * s-fileio.ads: Correct spelling error in comment
6443 2005-11-14 Cyrille Comar <comar@adacore.com>
6444 Robert Dewar <dewar@adacore.com>
6445 Vincent Celier <celier@adacore.com>
6446 Ben Brosgol <brosgol@adacore.com>
6447 Jose Ruiz <ruiz@adacore.com>
6448 Pascal Obry <obry@adacore.com>
6451 Document that -fstack-check is needed for strict compliance with the
6452 Ada 95 Reference Manual.
6453 Correct reference to VAX systems to meet HP guidelines
6454 Add documentation for new gnatmake switches -vl, -vm and -vh
6455 Replace DEC Ada by HP Ada
6456 Replace DIGITAL by HP
6457 Remove empty section on tools in compatibility section
6458 Clarify the Windows convention semantics.
6459 Document the Win32 calling convention.
6460 The Stdcall, Win32 and DLL convention are synonyms.
6461 Add a note in -gnatR description about zero size record components
6462 Note on new >= and <= warnings for -gnatwc
6463 Document that equal sign after -gnatm is optional.
6464 Note that strip is working fine on DLL built with a Library
6465 Project. The restriction apply only to DLL built with gnatdll.
6466 Update section about the way to debug a DLL.
6467 Update information about the DLL convention.
6468 Document -C switch for gnatprep
6469 Document new attribute Library_ALI_Dir
6470 Update elaboration doc to include implicit Elaborate pragmas now
6471 generated for subprogram instantiations.
6472 Document limitation on executable names that include spaces for --GCC,
6473 --GNATBIND, and --GNATLINK switches.
6474 Document that -w causes -gnatws to be added at start of gcc switches
6476 * gnat_rm.texi: Document that -mieee is needed for generating infinite
6477 and NaN values in case of overflow on machines that are not fully
6478 compliant with the IEEE floating-point standard.
6479 Create a section describing the set of compiler options needed for
6480 strict compliance with the Ada 95 Reference Manual.
6481 Add documentation for pragma Obsolescent applied to a package
6482 Clarify potential issues of mixed language programs related to the
6483 I/O buffering enabling in the elaboration of the GNAT runtime.
6484 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
6485 This documentation only patch adds extra documentsion for pragma
6486 Restrictions (No_Elaboration_Code), explaining why it is not possible
6487 to document this restriction in terms of allowed source constructs.
6488 Document string literal form of pragma Warnings
6489 Document new attribute Library_ALI_Dir
6490 Add documentation on stable attributes in project files that was missing
6492 * gnat-style.texi: Indicate that paragraphs within a single comment
6493 should be separated by empty comment lines
6495 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
6498 * bindusg.adb: Minor cleanup, put -m before -M for consistency
6500 2005-11-14 Robert Dewar <dewar@adacore.com>
6502 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
6503 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
6504 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
6505 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
6506 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
6507 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
6508 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
6509 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
6510 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
6511 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
6512 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
6513 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
6514 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
6515 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
6516 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
6517 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
6518 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
6519 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
6520 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
6521 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
6522 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
6523 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
6524 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
6525 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
6526 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
6527 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
6528 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
6529 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
6530 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
6531 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
6532 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
6533 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
6534 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
6535 system-interix.ads, system-solaris-sparc.ads,
6536 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
6537 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
6538 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
6539 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
6540 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
6541 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
6542 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
6543 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
6544 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
6545 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
6546 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
6547 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
6548 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
6549 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
6550 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
6551 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
6552 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
6553 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
6554 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
6555 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
6556 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
6557 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
6558 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6559 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
6560 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
6561 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
6562 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
6563 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
6564 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
6565 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
6566 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
6567 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
6568 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
6569 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
6570 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
6571 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
6572 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
6573 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
6574 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
6575 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
6576 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
6577 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
6578 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
6579 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
6580 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
6581 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
6582 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
6583 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
6584 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
6585 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
6586 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
6587 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
6588 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
6589 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
6590 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
6591 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
6592 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
6593 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
6594 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
6595 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
6596 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
6597 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
6598 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
6599 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
6600 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
6601 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
6602 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
6603 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
6604 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
6605 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
6606 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
6607 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
6608 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
6609 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
6610 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
6611 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
6612 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
6613 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
6614 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
6615 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
6616 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
6617 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
6618 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
6619 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
6620 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
6621 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
6622 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
6623 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
6624 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
6625 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
6626 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
6627 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
6628 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
6629 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
6630 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
6631 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
6632 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
6633 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
6634 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
6635 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
6636 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
6637 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
6638 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
6639 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
6640 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
6641 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
6642 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
6643 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
6644 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
6645 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
6646 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
6647 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
6648 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
6649 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
6650 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
6651 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
6652 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
6653 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
6654 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
6655 a-numaux-darwin.ads, a-numaux-darwin.adb,
6656 a-swuwha.ads, a-stunha.ads: Minor reformatting
6658 2005-11-14 Robert Dewar <dewar@adacore.com>
6661 * osint-m.adb: Add pragma Elaborate_All for Osint
6663 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
6666 * trans.c (call_to_gnu): Restore statement lost in translation.
6668 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
6670 * init.c: Use the Linux-specific section for the IA-64/Linux target.
6671 (__gnat_adjust_context_for_raise): Add conditional code so that the
6672 IA-64 is also supported.
6674 2005-11-03 James E Wilson <wilson@specifix.com>
6677 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
6678 TREE_OVERFLOW check.
6680 2005-09-21 Olivier Hainque <hainque@adacore.com>
6683 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
6684 as we create them to store a size in bits.
6686 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
6694 * utils2.c (build_return_expr): New helper function.
6695 * gigi.h (build_return_expr): Declare it.
6696 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
6697 of manually building the RETURN_EXPR tree.
6698 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
6699 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
6700 build_binary_op for the "target pointer" case. Use build_return_expr
6701 instead of manually building the RETURN_EXPR tree.
6703 2005-09-16 Laurent GUERBY <laurent@guerby.net>
6706 * s-tpinop.ads: Make this unit Preelaborate.
6708 2005-09-16 Andreas Jaeger <aj@suse.de>
6710 * socket.c: Add string.h for memcpy.
6712 2005-09-05 Arnaud Charlet <charlet@adacore.com>
6714 * dec-io.ads, dec-io.adb: Removed, no longer used.
6716 2005-09-01 Arnaud Charlet <charlet@adacore.com>
6718 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
6720 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
6721 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
6722 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
6723 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
6724 dependent units are Preelaborate.
6725 (Initialize): Call Interrupt_Managemeent.Initialize and
6726 OS_Primitives.Initialize to ensure proper initialization of this unit.
6727 Remove use of System.Soft_Links
6728 Make this unit Preelaborate.
6730 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
6731 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
6732 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
6733 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
6734 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
6735 s-tratas.ads, s-tasinf.ads: Minor reformatting.
6736 Add pragma Preelaborate, since these packages are suitable for this
6740 * s-traent-vms.ads, s-intman-dummy.adb,
6741 s-taprop-dummy.adb: Make this unit Preelaborate.
6743 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
6744 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
6745 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
6746 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
6747 s-intman-solaris.adb, s-intman-irix-athread.adb,
6748 s-intman-irix.adb: Mark this unit Preelaborate.
6749 (Initialize): New procedure.
6752 * s-taspri-linux.ads: Removed.
6754 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
6755 as done by other implementations (e.g. posix).
6757 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
6758 responsible for deferring abort.
6759 Mark this unit Preelaborate.
6761 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
6762 proper initialization of the tasking run-time.
6764 * s-tasdeb.ads: Mark this unit Preelaborate.
6765 (Known_Tasks): Add explicit default value to avoid elaboration code.
6767 * s-inmaop-vms.adb (Elaboration code): Add call to
6768 Interrupt_Management.Initialize since the elaboration code depends on
6769 proper initialization of this package.
6771 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
6772 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
6773 s-osprim-posix.adb: Make this unit Preelaborate.
6775 * a-calend.adb: Add call to OS_Primitives.Initialize
6777 * a-elchha.adb: Update use of Except.Id.Full_Name.
6779 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
6781 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
6782 Move with clauses outside Warnings Off now that dependent units are
6784 Use raise xxx with "..."; Ada 2005 form.
6786 * a-taside.ads, a-taside.adb:
6787 Remove some dependencies, to make it easier to make this unit truly
6789 Rewrite some code to be conformant with Preelaborate rules.
6791 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
6792 marked Preelaborate in the future.
6794 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
6795 these units Preelaborate.
6797 * s-exctab.adb: Update use of Except.Id.Full_Name.
6799 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
6800 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
6801 Set_Exc_Stack_Addr): Removed, no longer used.
6802 Remove reference to *Machine_State_Addr*, no longer needed.
6804 * s-stalib.ads: Mark this unit as Preelaborate[_05].
6805 (Exception_Data): Full_Name is now a System.Address so that this unit
6806 can be made Preelaborate.
6807 Clean up/simplify code thanks to Full_Name being a System.Address.
6808 Remove obsolete pragma Suppress (All_Checks), no longer needed.
6810 * s-taskin.ads, s-taskin.adb:
6811 Move with clauses outside Warnings Off now that dependent units are
6813 Make this unit Preelaborate.
6814 (Initialize): New proceduure, replace elaboration code and makes the
6815 set up of the tasking run-time cleaner.
6816 (Detect_Blocking): Now a function instead of a deferred boolean, to
6817 obey Preelaborate rules.
6819 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
6820 soft links, no longer used.
6822 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
6823 packages are suitable for this categorization.
6825 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
6826 since we compile run-time sources in Ada 2005 mode.
6827 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
6828 avoid having s-taprop*.adb depend on s-soflin and to avoid code
6830 Remove reference to *Machine_State_Addr*, no longer needed.
6832 2005-09-01 Arnaud Charlet <charlet@adacore.com>
6834 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
6835 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
6836 Remove reference to System.Exceptions.
6838 * s-mastop-x86.adb: Removed, no longer used.
6840 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
6842 * a-excach.adb: Minor reformatting.
6844 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
6845 instead fix new warnings that were hidden by this change.
6846 (AAA, ZZZ): Removed, replaced by...
6847 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
6848 are used instead of constants, to help make Ada.Exception truly
6850 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
6851 Raise_Storage_Error): File is now a System.Address, to simplify code.
6852 (Elab code): Removed, no longer used.
6853 (Null_Occurrence): Remove Warnings Off and make this construct
6855 Remove code related to front-end zero cost exception handling, since
6856 it is no longer used.
6857 Remove -gnatL/-gnatZ switches.
6859 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
6860 Update use of Except.Msg.
6862 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
6863 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
6864 to front-end zero cost exception handling, since it is no longer used.
6865 Remove -gnatL/-gnatZ switches.
6867 * lib-writ.ads: Minor reformatting
6870 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
6872 * Make-lang.in: Remove references to s-except.ads
6874 * s-except.ads: Removed, no longer used.
6876 * s-mastop.ads, s-mastop.adb:
6877 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
6878 Remove reference to System.Exceptions.
6880 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
6881 switch-b.adb: Remove code related to front-end zero cost exception
6882 handling, since it is no longer used.
6883 Remove -gnatL/-gnatZ switches.
6885 2005-09-01 Robert Dewar <dewar@adacore.com>
6886 Gary Dismukes <dismukes@adacore.com>
6887 Javier Miranda <miranda@adacore.com>
6889 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
6890 type by valid test and generate warning.
6891 (Tagged_Membership): Generate call to the run-time
6892 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
6893 Change formal name Subtype_Mark to Result_Definition in several calls to
6894 Make_Function_Specification.
6895 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
6896 check for proper accessibility of the operand of a class-wide allocator.
6897 The check can be left out if checks are suppressed or if the expression
6898 has a specific tagged type whose level is known to be safe.
6900 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
6901 generates the run-time check associated with null-excluding entities.
6902 (Expand_N_Return_Statement): Add tests to determine if the accessibility
6903 check on the level of the return expression of a class-wide function
6904 can be elided. The check usually isn't needed if the expression has a
6905 specific type (unless it's a conversion or a formal parameter). Also
6906 add a test for whether accessibility checks are suppressed. Augment
6907 the comments to describe the conditions for performing the check.
6909 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
6910 Javier Miranda <miranda@adacore.com>
6911 Gary Dismukes <dismukes@adacore.com>
6912 Ed Schonberg <schonberg@adacore.com>
6914 * a-tags.adb (IW_Membership): Give support to
6915 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
6916 subprogram has been extended to look for the tag in the ancestors tag
6918 Update the structure of the GNAT Dispatch Table to reflect the
6919 additional two tables used in dispatching selects.
6920 Introduce appropriate array types and record components in
6921 Type_Specific_Data to reflect the two tables.
6922 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
6923 the TSD of a tag, indexed by position.
6924 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
6925 operation kind in the TSD of a tag, indexed by position.
6927 * a-tags.ads: Introduce an enumeration type to capture different
6928 primitive operation kinds. Define a constant reflecting the number of
6929 predefined primitive operations.
6930 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
6931 of an entry wrapper.
6932 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
6933 callable entity of a primitive operation.
6935 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
6936 primitive operations used in dispatching selects for limited
6937 interfaces, limited tagged, task and protected types what implement a
6939 (Freeze_Type): Generate the bodies of the primitive operations used in
6940 dispatching selects for limited tagged, task and protected types that
6941 implement a limited interface. Generate statements to populate the two
6942 auxiliary tables used for dispatching in select statements.
6943 (Freeze_Record_Type): Add call to initialize the dispatch table entries
6944 associated with predefined interface primitive operations.
6945 (Build_Dcheck_Function): Change Set_Subtype_Mark to
6946 Set_Result_Definition.
6947 (Build_Variant_Record_Equality): Change Subtype_Mark to
6949 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
6950 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
6951 (Build_Assignment): Simplify the code that adds the run-time-check.
6952 (Expand_N_Object_Declaration): Code cleanup.
6954 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
6955 entries when there is a protected type that implements a limited
6958 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
6959 common routines used in expansion of dispatching selects.
6960 (Add_Private_Declarations): Select the appropriate protection type when
6961 there is a protected type that implements a limited interface.
6962 (Build_Parameter_Block): Generate a wrapped parameter block.
6963 (Build_Protected_Subprogram_Body): Select the appropriate type for
6964 locking entries when there is a protected type that implements a
6966 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
6967 classified as entry wrappers.
6968 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
6969 asynchronous selects.
6970 (Expand_N_Conditional_Entry_Call): Add support for expansion of
6971 dispatching conditional selects.
6972 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
6973 protection when there is a protected type that implements limited
6975 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
6977 (Extract_Dispatching_Call): Extract the entity of the name of a
6978 dispatching call, the object parameter, actual parameters and
6979 corresponding formals.
6980 (Make_Initialize_Protection): Correct logic of protection initialization
6981 when there is a protected type that implements a limited interface.
6982 (Parameter_Block_Pack): Populate a wrapped parameter block with the
6983 values of actual parameters.
6984 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
6985 block and assign them to the original actual parameters.
6987 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
6988 (Build_Protected_Sub_Specification): Change the type and name of the
6989 last formal to account for the increased variety of protection modes.
6991 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
6992 entities. Used to save the value of the Is_Hidden attribute when the
6993 limited-view is installed.
6994 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
6995 the attribute of procedures classified as entry wrappers.
6996 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
6997 entity of a primitive wrapper.
6998 (Write_Entity_Flags): Output the name and value of the
6999 Is_Primitive_Wrapper attribute.
7000 (Write_Field27_Name): Output the name and entity of the field Wrapped_
7002 (Underlying_Type): If we have an incomplete entity that comes from
7003 the limited view then we return the Underlying_Type of its non-limited
7004 view if it is already available.
7005 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
7006 including operators.
7007 (Write_Field26_Name): Add entry for Overridden_Operation
7008 (Overridden_Operation): New attribute of functions and procedures.
7010 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
7011 predefined position in the dispatch table for the primitive operations
7012 used in dispatching selects.
7013 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
7014 predefined primitive operations and replace it with
7015 Default_Prim_Op_Count.
7016 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
7017 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
7018 the names of the generated primitive operations used in dispatching
7020 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
7021 case of abstract interface types. They will be inherit by the objects
7022 implementing the interface.
7023 (Make_DT): There is no need to inherit the dispatch table of the
7024 ancestor interface for the elaboration of abstract interface types.
7025 The dispatch table will be inherited by the object implementing the
7027 (Copy_Secondary_DTs): Add documentation.
7028 (Validate_Position): Improve this static check in case of
7029 aliased subprograms because aliased subprograms must have
7031 (Init_Predefined_Interface_Primitives): New subprogram that initializes
7032 the entries associated with predefined primitives of all the secondary
7034 (Build_Anonymous_Access_Type): Removed.
7035 (Expand_Interface_Actuals): With the previous cleanup there is no need
7036 to build an anonymous access type. This allows further cleanup in the
7037 code generated by the expander.
7038 (Expand_Interface_Conversion): If the actual is an access type then
7039 build an internal function to handle the displacement. If the actual
7040 is null this function returns null because no displacement is
7041 required; otherwise performs a type conversion that will be
7042 expanded in the code that returns the value of the displaced actual.
7043 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
7044 conversions that have no effect in the generated code because no
7045 displacement is required. Code cleanup; use local variables to
7046 avoid repeated calls to the subprogram directly_designated_type().
7048 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7049 Classify the primitive operations used in dispatching selects as
7051 (Implements_Limited_Interface): Determine whether some type either
7052 directly implements a limited interface or extends a type that
7053 implements a limited interface.
7054 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
7055 (Expand_Subtype_From_Expr): Do not build actual subtype if the
7056 expression is limited.
7057 (Find_Interface_Tag): Add code to handle class-wide types and
7058 entities from the limited-view.
7060 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
7061 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
7062 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
7063 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
7066 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
7067 of procedure name or prefix that appears as a trigger in a triggering
7070 * uintp.ads: Introduce constants Uint_11 and Uint_13.
7072 2005-09-01 Arnaud Charlet <charlet@adacore.com>
7074 * s-tataat.adb, a-tasatt.adb:
7075 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
7077 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
7078 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
7079 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
7082 2005-09-01 Arnaud Charlet <charlet@adacore.com>
7083 Jose Ruiz <ruiz@adacore.com>
7085 * s-taprop-vxworks.adb:
7086 Move with clauses outside Warnings Off now that dependent units are
7088 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
7089 initialization of this unit.
7090 (Specific): Add new procedures Initialize and Delete so that this
7091 package can be used for VxWorks 5.x and 6.x
7092 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
7093 differences between VxWorks 5.x and 6.x
7095 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
7097 Use only Preelaborate-compatible constructs.
7099 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
7100 Primitives.Operations.
7101 (Delete, Initialize): New procedures.
7103 * s-osinte-vxworks.adb: Body used to handle differences between
7105 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
7107 * s-osinte-vxworks.ads: Minor reformatting.
7108 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
7109 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
7111 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
7112 between Vxworks 5 and 6.
7113 (taskLock, taskUnlock): Removeed, no longer used.
7115 * adaint.c: The wait.h header is not located in the sys directory on
7116 VxWorks when using RTPs.
7117 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
7119 (__gnat_dup): dup is available on Vxworks when using RTPs.
7120 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
7122 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
7124 * expect.c: The wait.h header is not located in the sys directory on
7125 VxWorks when using RTPs.
7127 2005-09-01 Thomas Quinot <quinot@adacore.com>
7129 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
7131 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
7133 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
7134 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
7135 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
7136 g-soccon-freebsd.ads: Add new constants:
7138 SO_RCVTIMEO/SO_SNDTIMEO
7142 Move all target-specific file inclusions and macro definitions to
7143 gsocket.h, in order to ensure that any C code in socket.c will see a
7144 set of constants that is consistent with the contents of g-soccon.ads.
7146 * gsocket.h: Code imported from gen-soccon.c:
7147 Move all target-specific file inclusions and macro definitions to
7148 gsocket.h, in order to ensure that any C code in socket.c will see a set
7149 of constants that is consistent with the contents of g-soccon.ads.
7150 This change also makes gen-soccon self-contained (removing dependencies
7151 upon GCC internal headers).
7153 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
7155 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
7157 * socket.c: Minor reformatting.
7159 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7160 Thomas Quinot <quinot@adacore.com>
7162 * fname-sf.adb, mlib-tgt.ads,
7163 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
7164 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
7165 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
7166 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
7167 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
7168 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
7169 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
7170 makegpr.adb: Remove redundant use_clauses.
7172 2005-09-01 Arnaud Charlet <charlet@adacore.com>
7174 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
7175 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
7176 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
7177 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
7178 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
7179 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
7180 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
7181 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
7182 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7183 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
7184 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
7185 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
7186 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
7187 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
7188 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
7189 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7190 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
7191 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
7192 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
7193 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7194 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
7195 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
7196 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
7197 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
7198 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
7199 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
7200 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
7201 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
7202 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
7203 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
7204 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
7205 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
7206 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
7207 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
7208 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
7209 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
7210 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
7211 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
7212 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
7213 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
7214 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
7215 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
7216 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
7217 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
7218 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
7219 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
7220 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
7221 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
7222 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
7223 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
7224 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
7225 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
7226 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
7227 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
7228 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
7229 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
7230 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
7231 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
7232 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
7233 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
7234 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
7235 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
7236 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
7237 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
7238 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
7239 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
7240 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
7241 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
7242 and always use the no parameter form for consistency.
7244 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
7246 2005-09-01 Robert Dewar <dewar@adacore.com>
7248 * binde.adb: Minor reformatting
7249 (Find_Elab_Order): Output warning if -p used with static elab order
7251 2005-09-01 Robert Dewar <dewar@adacore.com>
7253 * checks.adb (Check_Needed): New procedure, deals with removing checks
7254 based on analysis of short-circuited forms. Also generates warnings for
7255 improper use of non-short-circuited forms.
7258 2005-09-01 Robert Dewar <dewar@adacore.com>
7260 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
7263 2005-09-01 Robert Dewar <dewar@adacore.com>
7265 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
7267 Implement new insertion char < (conditional warning)
7268 * errutil.adb, erroutc.adb: Implement new insertion char <
7269 (conditional warning).
7270 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
7271 (Error_Msg_Warn): New variable for < insertion char.
7272 * prj-nmsc.adb: Implement new errout insertion char < (conditional
7274 (Check_For_Source): Change value of Source_Id only after the current
7275 source has been dealt with.
7277 2005-09-01 Robert Dewar <dewar@adacore.com>
7278 Doug Rupp <rupp@adacore.com>
7280 * exp_attr.adb: Handle vax fpt for 'Valid attribute
7281 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
7282 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
7283 (Valid_D, Valid_F, Valid_G): New functions
7285 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7286 Hristian Kirtchev <kirtchev@adacore.com>
7287 Javier Miranda <miranda@adacore.com>
7289 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
7290 from object notation, the original node is unanalyzed and carries no
7291 semantic information, so that accessiblity checks must be performed on
7292 the type of the actual itself.
7293 (Expand_N_Subprogram_Declaration): Change last actual parameter for
7294 compatibility with Build_Protected_Sub_Specification.
7295 (Check_Overriding_Inherited_Interfaces): Add suport to handle
7296 overloaded primitives.
7297 (Register_Interface_DT_Entry): Use the new name of the formal
7298 the the calls to Expand_Interface_Thunk
7300 * exp_dbug.ads: Augment comments on encoding of protected types to
7301 include the generation of dispatching subprograms when the type
7302 implements at least one interface.
7304 * lib.ads: Extend information in Load_Stack to include whether a given
7305 load comes from a Limited_With_Clause.
7307 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
7308 whether a potential circularity is harmless, because it includes units
7309 loaded through a limited_with clause. Extends previous treatment which
7310 did not handle properly arbitrary combinations of limited and
7311 non-limited clauses.
7313 2005-09-01 Nicolas Setton <setton@adacore.com>
7315 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
7316 to be encoded as typ___XBLU_lowerbound__upperbound instead of
7317 typ___XB_lowerbound__upperbound.
7319 2005-09-01 Thomas Quinot <quinot@adacore.com>
7321 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
7322 dummy access formal for RACW/RAS TypeCode TSS.
7323 (Build_TypeCode_Call): Do not generate dummy null access actual for
7324 calls to the TypeCode TSS.
7326 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7328 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
7329 fully qualified name, to distinguish instances with the same local name.
7331 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
7334 2005-09-01 Robert Dewar <dewar@adacore.com>
7336 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
7339 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
7341 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
7342 (Free): New deallocation procedure for filter elements
7343 (Close): Deallocate any existing filter for the concerned connection
7345 2005-09-01 Laurent Pautet <pautet@adacore.com>
7347 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
7348 position set is provided, we compute one in order to reduce the maximum
7349 length of the keys. This computation first selects a character
7350 position between 1 and the minimum length of the keys in order to
7351 avoid reducing one of the keys to an empty string.
7352 (Initialize, Compute): When the ratio V to K is too low, the algorithm
7353 does not converge. The initialization procedure now comes with a
7354 maximum number of iterations such that when exceeded, an exception is
7355 raised in Compute. The user can initialize this ratio to another value
7357 Reformating and updated headers.
7359 2005-09-01 Javier Miranda <miranda@adacore.com>
7361 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
7362 that given an entity T creates and returns an Itype that duplicates the
7363 contents of T. The returned Itype has the null-exclusion
7364 attribute set to True, and its Etype attribute references T
7365 to keep the association between the two entities.
7366 Update copyright notice
7368 * sem_aggr.adb (Check_Can_Never_Be_Null,
7369 Aggregate_Constraint_Checks, Resolve_Aggregate,
7370 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
7372 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
7374 2005-09-01 Gary Dismukes <dismukes@adacore.com>
7375 Robert Dewar <dewar@adacore.com>
7376 Hristian Kirtchev <kirtchev@adacore.com>
7378 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
7381 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
7383 Call Set_Result_Definition instead of Set_Subtype_Mark.
7384 (P_Subprogram_Specification): Add parsing of anonymous access result
7385 plus null exclusions. Call Set_Result_Definition instead of
7388 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
7389 (P_Access_Type_Definition): Add parsing for an anonymous access result
7390 subtype, plus parsing for null exclusions. Call Set_Result_Definition
7391 instead of Set_Subtype_Mark.
7393 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
7394 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
7395 (Result_Definition): New function for N_Function_Specifications.
7396 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
7397 N_Function_Specification.
7398 (Set_Null_Exclusion_Present): Allow this flag for
7399 N_Function_Specification.
7400 (Set_Result_Definition): New procedure for N_Function_Specifications.
7401 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
7402 and N_Function_Specification.
7404 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
7405 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
7406 Add support for LIMITED NEW for Ada 2005 AI-419
7407 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
7408 syntax for anonymous access results.
7409 Replace Subtype_Mark field by Result_Definition in
7410 N_Function_Specification and N_Access_Definition specs.
7411 Add Null_Exclusion_Present to spec of N_Function_Specification.
7412 (Result_Definition): New function for N_Function_Specification and
7413 N_Access_Function_Definition.
7414 (Set_Result_Definition): New procedure for N_Function_Specification and
7415 N_Access_Function_Definition.
7417 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
7418 Result_Definition for cases of N_Access_Function_Definition and
7419 N_Function_Specification.
7420 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
7422 2005-09-01 Vincent Celier <celier@adacore.com>
7424 * lib-writ.adb: Update Copyright notice
7425 (Write_With_Lines): On platforms where file names are case-insensitive,
7426 record the file names in lower case.
7427 (Write_ALI): For D lines, on platforms where file names are
7428 case-insensitive, record the file names in lower case.
7430 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7431 Emmanuel Briot <briot@adacore.com>
7433 * lib-xref.adb (Output_Overridden_Op): Display information on
7434 overridden operation.
7436 * lib-xref.ads: Add documentation on overridden operations.
7438 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
7441 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
7442 overriding entity information.
7444 2005-09-01 Vincent Celier <celier@adacore.com>
7446 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
7447 including those that are inherited.
7449 2005-09-01 Robert Dewar <dewar@adacore.com>
7451 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
7453 * par-prag.adb: Implement new pragma Debug_Policy
7455 * sem_prag.adb Implement new pragma Debug_Policy
7456 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
7457 Component_Size attribute specification. Give warning for ignored pragma
7460 * snames.h, snames.ads, snames.adb: Introduce entries in
7461 Preset_Names for Name_Disp_Asynchronous_Select,
7462 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
7463 Name_Disp_Timed_Select.
7464 New pragma Debug_Policy
7466 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
7468 Switch -gnata also sets Debug_Pragmas_Enabled
7470 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
7471 handle an explicit -gnata when compiling predefined files.
7473 2005-09-01 Vincent Celier <celier@adacore.com>
7475 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
7476 directories of projects that have no Ada sources.
7478 2005-09-01 Robert Dewar <dewar@adacore.com>
7480 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
7481 (makes a difference for wide characters)
7483 * widechar.adb, widechar.ads:
7484 Add Wide_Char_Byte_Count feature to count chars vs bytes
7486 2005-09-01 Thomas Quinot <quinot@adacore.com>
7487 Ed Schonberg <schonberg@adacore.com>
7488 Robert Dewar <dewar@adacore.com>
7490 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
7491 'Address attribute reference with an overloaded prefix, use the
7492 location of the prefix (not the location of the attribute reference) as
7494 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
7495 a function renaming thereof, is a valid prefix for 'Size (where it is
7496 intepreted as a function call).
7497 (Statically_Denotes_Entity): New predicate to determine whether the
7498 prefix of an array attribute can be considered static.
7501 (Eval_Attr): Fix failure to evaluate Component_Size for
7502 unconstrained arrays (resulted in wrong value in packed case, since
7503 back end cannot handle this case)
7505 2005-09-01 Robert Dewar <dewar@adacore.com>
7507 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
7508 error msgs for most common cases.
7509 Use new errout insertion char < (conditional warning)
7511 2005-09-01 Javier Miranda <miranda@adacore.com>
7512 Ed Schonberg <schonberg@adacore.com>
7514 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
7515 become local to the whole package.
7516 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
7517 the package was already analyzed the new algorithm "replaces" the
7518 real entities by the shadow ones. This is required to ensure that
7519 the order of these entities in the homonym chains does not change;
7520 otherwise we can have undefined references at linking time because
7521 in case of conflicts the external name of the entities will have
7522 a suffix that depends on the order of the entities in the chain.
7523 (Remove_Limited_With_Clause): Complementary code that completes the
7524 new algorithm and replaces the shadow entities by the real ones.
7525 (Install_Limited_Withed_Unit): When unchaining entities before the
7526 installation of the shadow entities, only regular entities of the
7527 public part must be taken into account. This is required to
7528 keep this routine in synch with the work done by Remove_Limited_
7530 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
7531 even if unit is analyzed, because the analysis of the unit is
7532 idempotent in any case, and the limited view of the unit may have to
7533 be installed for proper visibility.
7534 (Expand_Limited_With_Clause): Even if the unit in the implicit
7535 with_clause has been analyzed already, a limited view of the package
7536 must be built for the current context, if it does not exist yet.
7538 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7539 Javier Miranda <miranda@adacore.com>
7540 Gary Dismukes <dismukes@adacore.com>
7542 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
7543 defining entity for the instance body, make a new defining identifier
7544 rather than copying the entity of the spec, to prevent accidental
7545 sharing of the entity list.
7546 (Check_Private_View): When exchanging views of private types, build the
7547 list of exchanged views as a stack, to ensure that on exit the exchanges
7548 are undone in the proper order.
7549 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
7550 Restore the compilation environment in case of instantiation_error.
7551 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
7552 for an anonymous access result.
7553 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
7554 (Formal_Entity): Handle properly the case of a formal package that
7555 denotes a generic package renaming.
7557 2005-09-01 Thomas Quinot <quinot@adacore.com>
7559 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
7560 clause if the array aggregate is surrounded by parentheses.
7562 2005-09-01 Cyrille Comar <comar@adacore.com>
7563 Gary Dismukes <dismukes@adacore.com>
7564 Ed Schonberg <schonberg@adacore.com>
7565 Javier Miranda <miranda@adacore.com>
7567 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
7569 to check if a type is Constrained in cases related to code generation
7570 (rather than semantic checking) since otherwise we do not generate
7571 similar code for mutable private types depending if their
7572 discriminants are visible or not.
7573 (Check_Abstract_Overriding): Do not complain about failure to override
7574 the primitive operations used in dispatching selects since they will
7575 always be overriden at the freeze point of the type.
7576 (Access_Definition): Separate out handling for resetting the scope
7577 of an anonymous access function result type. Retrieve the scope
7578 of the associated function rather than using Current_Scope, which
7579 does not have a consistent value (depends on whether we're in the
7580 middle of analyzing formal parameters). Add ??? comment about
7581 finding a cleaner way to handle the special cases of scope setting.
7582 (Process_Incomplete_Dependents): A protected operation is never a
7583 dispatching operation (only its wrapper may be).
7584 (Build_Derived_Record_Type): In case of tagged private types that
7585 implement interfaces add derivation of predefined primitive
7587 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
7588 by two parameters that are used in case of derivation from abstract
7589 interface types: No_Predefined_Prims is used to avoid the derivation
7590 of predefined primitives from the interface, and Predefined
7591 Prims_Only is used to complete the derivation predefined primitives
7592 in case of private tagged types implementing interfaces.
7593 Fix typo in comments
7594 (Find_Interface_In_Descendant): Protect the frontend against
7595 wrong code with large circularity chains.
7596 (Is_Private_Overriding): Add support for entities overriding interface
7597 subprograms. The test failed because Entities associated with overriden
7598 interface subprograms are always marked as hidden (and used to build
7599 the secondary dispatch table); in this case the overriden entity is
7600 available through the field abstract_interface_alias (cf. override_
7601 dispatching_operation)
7602 (Access_Definition): Set the scope of the type to Current_Scope for the
7603 case of a function with an anonymous access result type.
7604 (Access_Subprogram_Declaration): Handle creation of the type entity for
7605 an access-to-function type with an anonymous access result.
7606 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
7607 in handling for N_Access_Function_Definition.
7608 (Analyze_Subtype_Declaration): Modify the text of error message.
7609 (Derived_Type_Declaration): Modify the text of error message.
7610 (Process_Subtype): Modify the text of error message plus cleanup
7611 of one redundant error message.
7612 (Analyze_Component_Declaration): Code cleanup.
7613 (Analyze_Object_Declaration): Code cleanup.
7614 (Analyze_Subtype_Declaration): Propagate the null-exclusion
7615 attribute in case of access types. Code cleanup.
7616 (Array_Type_Declaration): Code cleanup.
7617 (Process_Discriminants): Create the new null-excluding itype
7618 if required. Code cleanup.
7619 (Process_Subtype): Create the new null-excluding itype if
7620 required. Code cleanup.
7621 (Build_Derived_Record_Type): Code cleanup to avoid calling
7622 twice the subprogram derive_subprograms in case of private
7623 types that implement interfaces. In this particular case the
7624 subprogram Complete_Subprograms_Derivation already does the
7625 job associated with the second call.
7627 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
7628 conversion to the full view when generating an operation for a
7629 discriminant whose type may currently be private.
7631 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7632 Javier Miranda <miranda@adacore.com>
7634 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
7635 V (Obj.F), the rewriting does not involve the indexed component, but
7636 only the selected component itself.
7637 Do not apply the transformation if the analyzed node is an actual of a
7638 call to another subprogram.
7639 (Complete_Object_Operation): Retain the entity of the
7640 dispatching operation in the selector of the rewritten node. The
7641 entity will be used in the expansion of dispatching selects.
7642 (Analyze_One_Call): Improve location of the error message associated
7644 (Analyze_Selected_Component): No need to resolve prefix when it is a
7645 function call, resolution is done when parent node is resolved, as
7647 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
7648 when attempting to resolve a call transformed from its object notation.
7649 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
7650 of the argument list for each interpretation of the operation.
7651 (Try_Object_Operation): The designated type of an access parameter may
7652 be an incomplete type obtained through a limited_with clause, in which
7653 case the primitive operations of the type are retrieved from its full
7655 (Analyze_Call): If this is an indirect call, and the return type of the
7656 access_to_subprogram is incomplete, use its full view if available.
7658 2005-09-01 Javier Miranda <miranda@adacore.com>
7659 Gary Dismukes <dismukes@adacore.com>
7661 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
7662 access types the null-exclusion and access-to-constant attributes must
7664 (Analyze_Return_Statement): When the result type is an anonymous access
7665 type, apply a conversion of the return expression to the access type
7666 to ensure that appropriate accessibility checks are performed.
7667 (Analyze_Return_Type): For the case of an anonymous access result type,
7668 generate the Itype and set Is_Local_Anonymous_Access on the type.
7669 Add ??? placeholder for check to disallow returning a limited object
7670 in Ada 2005 unless it's an aggregate or a result of a function call.
7671 Change calls from Subtype_Mark to Result_Definition.
7672 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
7673 Result_Definition in call to Make_Function_Specification.
7674 (Build_Body_To_Inline): Change Set_Subtype_Mark to
7675 Set_Result_Definition.
7676 (Make_Inequality_Operator): Change formal Subtype_Mark to
7677 Result_Definition in call to Make_Function_Specification.
7678 (Process_Formals): Create the new null-excluding itype if required.
7679 (New_Overloaded_Entity): For an entity overriding an interface primitive
7680 check if the entity also covers other abstract subprograms in the same
7681 scope. This is required to handle the general case, that is, overriding
7682 other interface primitives and overriding abstract subprograms inherited
7683 from some abstract ancestor type.
7684 (New_Overloaded_Entity): For an overriding entity that comes from
7685 source, note the operation that it overrides.
7686 (Check_Conformance, Type_Conformant): Addition of one new formal
7687 to skip controlling formals in the analysis. This is used to
7688 handle overloading of abstract interfaces.
7689 (Base_Types_Match): Add missing case for types imported from
7690 limited-with clauses
7691 (New_Overloaded_Entity): Add barrier to protect the use of
7692 the "alias" attribute.
7694 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7696 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
7697 verify that the procedure and the entry are mode conformant.
7698 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
7699 as a different operator, which is often a cut-and-paste error.
7701 2005-09-01 Javier Miranda <miranda@adacore.com>
7702 Ed Schonberg <schonberg@adacore.com>
7704 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
7705 used in controlling parameters exclude null because it is necessary to
7706 read the tag to dispatch, and null has no tag.
7707 (Override_Dispatching_Operation): If the previous operation is inherited
7708 from an interface, it becomes hidden and does not participate in later
7711 2005-09-01 Javier Miranda <miranda@adacore.com>
7712 Ed Schonberg <schonberg@adacore.com>
7713 Gary Dismukes <dismukes@adacore.com>
7715 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
7716 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
7717 the expander will generate the corresponding run-time check to evaluate
7719 (Resolve_Call): Check for legal type of procedure name or prefix that
7720 appears as a trigger in a triggering alternative.
7721 (Valid_Conversion): If expression is ambiguous and the context involves
7722 an extension of System, remove System.Address interpretations.
7723 (Resolve_Qualified_Expression): Reject the case of a specific-type
7724 qualification applied to a class-wide argument. Enhance comment
7725 to explain checking of Original_Node.
7726 (Resolve_Type_Conversion): The location of the error message was not
7727 general enough to handle the general case and hence it has been removed.
7728 In addition, this patch improves the text of the message.
7729 (Resolve_Type_Conversion): Add missing support for access to interface
7731 (Resolve_Type_Conversion): If the target is a class-wide interface type,
7732 do not expand if the expression is the actual in a call, because proper
7733 expansion will take place when the call itself is expanded.
7734 (Resolve_Allocator): If the context is an unchecked conversion, the
7735 allocator inherits its storage pool, if any, from the target type of
7738 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7739 Javier Miranda <miranda@adacore.com>
7741 * sem_type.adb (Add_One_Interp): If a candidate operation is an
7742 inherited interface operation that has an implementation, use the
7743 implementation to avoid spurious ambiguities.
7744 (Interface_Present_In_Ancestor): In case of concurrent types we can't
7745 use the Corresponding_Record_Typ attribute to look for the interface
7746 because it is set by the expander (and hence it is not always
7747 available). For this reason we traverse the list of interfaces
7748 (available in the parent of the concurrent type).
7749 (Interface_Present_In_Ancestor): Handle entities from the limited view
7751 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7753 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
7754 from the list of required components.
7755 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
7756 primitive procedure of a limited interface with a controlling first
7758 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
7760 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
7761 capture if it is generated in the second operand of a short-circuit
7763 Do not capture values for variables with address clauses.
7764 (Is_Object_Reference): Treat a function call as an object reference only
7765 if its type is not Standard_Void_Type.
7767 2005-09-01 Ed Schonberg <schonberg@adacore.com>
7769 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
7770 to a variable that is statically known to be constant.
7772 2005-09-01 Geert Bosch <bosch@adacore.com>
7773 Robert Dewar <dewar@adacore.com>
7775 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
7776 (VAXGF_Safe_First): Idem.
7778 2005-09-01 Robert Dewar <dewar@adacore.com>
7779 Arnaud Charlet <charlet@adacore.com>
7781 * g-dirope.ads: Minor reformatting
7782 Document that bounds of result of Base_Name match the input index
7784 Add documentation on environment variable syntax for Expand_Path
7786 * gnat_ugn.texi: Update documentation to include mention of -m switches
7787 Document new treatment of wide characters in max line length
7789 Remove -gnatL/-gnatZ switches, no longer used.
7790 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
7793 * gnat_rm.texi: Add doc for two argument form of pragma
7794 Float_Representation.
7795 Add documentation for pragma No_Strict_Aliasing
7796 Add note that explicit component clause overrides pragma Pack.
7797 Add documentation of pragma Debug_Policy
7799 2005-09-01 Matthew Heaney <heaney@adacore.com>
7801 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
7802 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
7803 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
7804 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
7805 draft (Draft 13, August 2005) of Ada Amendment 1.
7807 2005-09-01 Arnaud Charlet <charlet@adacore.com>
7809 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
7810 Note that the platform-specific version of g-soccon.ads for VMS is now
7811 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
7812 really is a package spec).
7813 Replace s-taspri-linux.ads by s-taspri-posix.ads
7814 Remove references to s-mastop-x86.adb
7816 * system-vxworks-xscale.ads: Removed, no longer used.
7817 * s-vxwork-xscale.ads: Removed, no longer used.
7819 2005-09-01 Robert Dewar <dewar@adacore.com>
7821 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
7822 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
7823 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
7824 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
7825 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
7826 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
7827 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
7828 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
7829 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
7830 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
7831 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
7832 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
7833 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
7834 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
7835 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
7836 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
7837 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
7838 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
7839 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
7840 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
7841 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
7843 2005-08-29 Arnaud Charlet <charlet@adacore.com>
7847 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
7849 2005-08-29 Arnaud Charlet <charlet@adacore.com>
7850 Doug Rupp <rupp@adacore.com>
7852 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
7854 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
7855 this code in the GNAT run-time.
7857 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
7860 * init.c (__gnat_error_handler [many]): Mark "msg" as const
7861 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
7863 (__gnat_inside_elab_final_code): Moved here from
7864 Standard_Library and only defined for the compiler.
7865 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
7866 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
7867 using RTPs because directly vectored Interrupt routines are not
7868 supported on this configuration.
7869 (getpid): Do not redefine this function on VxWorks when using RTPs
7870 because this primitive is well supported by the RTP libraries.
7871 (copy_msg): Correct the code that checks for buffer overflow.
7872 Discovered during code reading.
7874 2005-08-29 Olivier Hainque <hainque@adacore.com>
7876 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
7877 a library level mutable variable with an initializer, tell
7878 build_allocator to ignore the initializer's size. It may not be large
7879 enough for all the values that might be assigned to the variable later
7882 2005-08-29 Arnaud Charlet <charlet@adacore.com>
7883 Eric Botcazou <ebotcazou@adacore.com>
7885 * trans.c: Protect < in error msg with quote
7886 Replace GCC_ZCX by Back_End_Exceptions.
7887 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
7888 has been sufficiently aligned in the record.
7890 2005-08-15 James E. Wilson <wilson@specifix.com>
7892 * system-linux-alpha.ads: Change ia64 to alpha.
7894 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
7896 * decl.c, utils.c: Fix comment typos.
7898 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
7900 * decl.c, init.c, initialize.c: Fix comment typos.
7902 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
7904 Make CONSTRUCTOR use VEC to store initializers.
7905 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
7907 * trans.c (extract_values): Likewise.
7908 * utils.c (convert, remove_conversions): Likewise.
7909 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
7910 gnat_build_constructor): Likewise.
7912 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
7914 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
7916 (compare_field_bitpos): Likewise.
7918 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
7920 * utils.c (create_var_decl): Only set DECL_COMMON on
7921 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
7922 VAR_OR_FUNCTION_DECL_P.
7924 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
7926 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
7929 2005-07-07 Pascal Obry <obry@adacore.com>
7931 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
7932 returned type on Windows.
7934 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
7937 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
7938 exception in this case.
7939 Simplify the code as "Image (Image'Range)" = "Image".
7941 2005-07-07 Vincent Celier <celier@adacore.com>
7943 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
7944 the destructor/constructor attributes for <lib>final/<lib>init.
7946 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
7948 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
7950 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
7951 type if the parameter is not passed by copy but reference by default.
7953 2005-07-07 Javier Miranda <miranda@adacore.com>
7955 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
7956 Reimplementation of the support for abstract interface types in order
7957 to leave the code more clear and easy to maintain.
7959 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
7960 abstract interface types in order to leave the code clearer and easier
7963 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
7964 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
7965 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
7966 appropriate entry of the secondary dispatch table.
7967 (Make_DT): Add code to inherit the secondary dispatch tables of
7970 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
7971 implementing both functionalities by means of a common routine, each
7972 routine has its own code.
7974 2005-07-07 Javier Miranda <miranda@adacore.com>
7976 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
7978 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
7981 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
7984 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
7985 use of tag incomplete types.
7987 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
7988 give support to tagged incomplete types.
7990 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
7991 expression is a discriminant reference and its type is private, as can
7992 happen within a stream operation for a mutable record, use the full
7993 view of the type to resolve the case alternatives.
7994 (Analyze_Assignment): Check wrong dereference of incomplete types.
7996 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
7999 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
8002 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
8003 N_Incomplete_Type_Declaration nodes.
8005 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
8006 Tag_Present to give support to tagged incomplete types:
8008 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
8011 2005-07-07 Olivier Hainque <hainque@adacore.com>
8015 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
8016 definitions for the Unwind wrappers in the compiler case.
8018 2005-07-07 Ed Schonberg <schonberg@adacore.com>
8019 Javier Miranda <miranda@adacore.com>
8021 * par-load.adb (Load): If a child unit is loaded through a limited_with
8022 clause, each parent must be loaded as a limited unit as well.
8024 * sem_ch10.adb (Previous_Withed_Unit): Better name for
8025 Check_Withed_Unit. Return true if there is a previous with_clause for
8026 this unit, whether limited or not.
8027 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
8029 (Is_Visible_Through_Renamings): New local subprogram of install_limited
8030 _withed_unit that checks if some package installed through normal with
8031 clauses has a renaming declaration of package whose limited-view is
8032 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
8033 of the current Draft document for Ada 2005.
8034 (Analyze_Context): Complete the list of compilation units that
8035 are allowed to contain limited-with clauses. It also contains
8036 checks that were previously done by Install_Limited_Context_Clauses.
8037 This makes the code more clear and easy to maintain.
8038 (Expand_Limited_With_Clause) It is now a local subprogram of
8039 Install_Limited_Context_Clauses, and contains the code that adds
8040 the implicit limited-with clauses for parents of child units.
8041 This functionality was prevously done by Analyze_Context.
8043 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
8046 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
8047 been erroneously named in a limited-with clause of its own context.
8048 In this case the error has been previously notified by Analyze_Context.
8050 2005-07-07 Ed Schonberg <schonberg@adacore.com>
8052 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
8053 generic package that contains local declarations with the same name.
8054 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
8056 2005-07-07 Bernard Banner <banner@adacore.com>
8058 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
8059 ia64 platform only on platforms that you the GCC unwind library
8060 rather than the system unwind library.
8062 2005-07-07 Thomas Quinot <quinot@adacore.com>
8064 * expect.c: Minor reformatting
8066 2005-07-07 Sergey Rybin <rybin@adacore.com>
8068 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
8071 * gnat_ugn.texi: Add description for new gnatpp option
8074 2005-07-04 Thomas Quinot <quinot@adacore.com>
8076 * g-expect-vms.adb, g-expect.ads, g-expect.adb
8077 (Get_Command_Output): New subprogram to launch a process and get its
8078 standard output as a string.
8080 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
8081 Olivier Hainque <hainque@adacore.com>
8083 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
8084 fetch a code-range descriptor associated with the machine state. On
8085 failure set the machine state's PC to 0; on success, pass the
8086 descriptor to exc_virtual_unwind.
8088 * init.c (Tru64 section): New function __gnat_set_code_loc.
8090 2005-07-04 Vincent Celier <celier@adacore.com>
8092 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
8093 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
8094 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
8095 Remove all auto-initialization code, as this is now done through the
8096 constructor mechanism.
8098 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
8099 __gnat_sals_init_using_constructors): New functions.
8101 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
8102 Linker_Constructor and Linker_Destructor when switch -a is used.
8104 * bindusg.adb: Add line for new switch -a
8106 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
8107 (Gnatbind): When switch -a is used, check if it is allowed
8109 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
8111 2005-07-04 Joel Brobecker <brobecker@adacore.com>
8113 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
8114 This prevents us from hitting a limitation during the debug info
8115 generation when using stabs.
8116 (Prims_Ptr): Likewise.
8118 2005-07-04 Gary Dismukes <dismukes@adacore.com>
8119 Ed Schonberg <schonberg@adacore.com>
8120 Javier Miranda <miranda@adacore.com>
8122 * checks.adb (Null_Exclusion_Static_Checks): In the case of
8123 N_Object_Declaration, only perform the checks if the Object_Definition
8124 is not an Access_Definition.
8126 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
8127 where the parent of an the access definition is an N_Object_Declaration
8128 when determining the Associated_Node_For_Itype and scope of an
8129 anonymous access-to-subprogram type.
8131 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
8132 Corresponding_Spec on the body created for a null procedure. Add ???
8133 comment. Remove New_Copy_Tree call on body argument to
8136 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
8137 discriminants, use the type of the actual as well, because the
8138 discriminants may be read by the called subprogram.
8140 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
8141 access type we do not need to handle non-limited views.
8142 (Build_Derived_Record_Type): Additional check to check that in case of
8143 private types, interfaces are only allowed in private extensions.
8145 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
8147 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
8148 <Pragma_Linker_Destructor>: Likewise.
8150 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
8151 Pragma_Linker_Destructor.
8153 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
8154 ATTR_LINK_DESTRUCTOR.
8155 (static_ctors, static_dtors): New variables.
8157 * misc.c (gnat_expand_body): Output current function as constructor
8158 and destructor if requested.
8160 * par-prag.adb: Add processing for pragma Linker_Constructor and
8163 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
8164 extracted from Check_Interrupt_Or_Attach_Handler.
8165 (Check_Interrupt_Or_Attach_Handler): Invoke it.
8166 Implement pragma Linker_Constructor and Linker_Destructor with the
8167 help of Find_Unique_Parameterless_Procedure.
8168 Replace Name_Alias with Name_Target for pragma Linker_Alias.
8170 * snames.h, snames.ads, snames.adb:
8171 Add Name_Linker_Constructor and Name_Linker_Destructor.
8172 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
8173 * snames.adb: Remove Name_Alias.
8175 * trans.c: Include cgraph.h.
8176 (build_global_cdtor): New function.
8177 (Compilation_Unit_to_gnu): Build global constructor and destructor if
8179 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
8181 (addressable_p) <COMPONENT_REF>: Unconditionally test
8182 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
8184 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
8185 variable if it is external.
8187 (static_ctors, static_dtors): New global variables.
8188 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
8189 <ATTR_LINK_DESTRUCTOR>: Likewise.
8190 (end_subprog_body): Chain function as constructor and destructor
8193 * exp_util.adb (Force_Evaluation): Unconditionally invoke
8194 Remove_Side_Effects with Variable_Ref set to true.
8195 (Remove_Side_Effects): Handle scalar types first. Use a renaming
8196 for non-scalar types even if Variable_Ref is true and for class-wide
8199 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8201 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
8202 to prevent spurious warnings.
8204 2005-07-04 Thomas Quinot <quinot@adacore.com>
8206 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
8207 Itypes. Itypes are really unexpected there.
8208 (Build_TypeCode_Function): Generalise special processing for Itypes to
8209 handle the case of numeric implicit base types as well as enumerated
8212 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8214 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
8215 controlled, indicate the expected type of the dereference that is
8216 created for the call to Deep_Finalize, to prevent spurious errors when
8217 the designated type is private and completed with a derivation from
8218 another private type.
8220 2005-07-04 Vincent Celier <celier@adacore.com>
8222 * make.adb (Change_To_Object_Directory): When unable to change the
8223 current dir to the object directory, output the full path of the
8226 2005-07-04 Matthew Gingell <gingell@adacore.com>
8228 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
8230 * indepsw-linux.adb: Replace by...
8232 * indepsw-gnu.adb: ...this new file
8234 2005-07-04 Vincent Celier <celier@adacore.com>
8236 * mlib-prj.adb (Auto_Initialize): New constant String
8237 (SALs_Use_Constructors): New Boolean function
8238 (Build_Library): Call gnatbind with Auto_Initialize switch when
8239 SALs_Use_Constructors returns True.
8241 * mlib-tgt.ads: Minor reformatting
8243 * mlib-utl.ads: Minor reformatting
8245 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
8247 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8249 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
8250 single protected declarations can have an interface list.
8251 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
8252 with seriously malformed entry declarations, and lead to compilation
8255 2005-07-04 Javier Miranda <miranda@adacore.com>
8257 * par-load.adb: Load the context items in two rounds.
8259 2005-07-04 Robert Dewar <dewar@adacore.com>
8261 * scng.adb: Do not consider Mod used as an attribute to be a keyword
8263 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8264 Javier Miranda <miranda@adacore.com>
8266 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
8267 type extension needs a limited view.
8268 Remove previous restriction on private types available through the
8269 limited-view (only tagged private types were previously allowed).
8270 (Install_Withed_Unit): In the code that implements the
8271 legality rule given in AI-377, exclude a child unit with the name
8272 Standard, because it is a homonym of the Standard environment package.
8274 2005-07-04 Thomas Quinot <quinot@adacore.com>
8276 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
8277 overloaded function call, carry interpretations from the original tree
8280 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8282 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
8283 types check whether some designated type is a limited view, and use
8284 the non-limited view if available.
8286 2005-07-04 Gary Dismukes <dismukes@adacore.com>
8288 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
8289 constraint of full view of a private view T1 if present, when T2 is a
8290 discriminated full view.
8292 2005-07-04 Thomas Quinot <quinot@adacore.com>
8294 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
8295 actual that is a view conversion of a bit packed array reference.
8297 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8299 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
8300 present before checking whether an interface type covers a synchronized
8303 2005-07-04 Ed Schonberg <schonberg@adacore.com>
8305 * sem_util.adb (Is_Object_Reference): An indexed or selected component
8306 whose prefix is an implicit dereference is an object reference. Removes
8307 spurious errors when compiling with -gnatc.
8309 2005-07-04 Robert Dewar <dewar@adacore.com>
8313 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
8315 2005-07-04 Matthew Gingell <gingell@adacore.com>
8317 * tracebak.c: Enable tracebacks on ia64 platforms
8319 2005-07-04 Vincent Celier <celier@adacore.com>
8321 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
8322 the GNAT BIND command, as gnatbind accepts multiples ALI files with
8323 the -L or -n switches.
8325 2005-07-04 Vincent Celier <celier@adacore.com>
8327 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
8328 correctly computed and the main project data is not modified while
8330 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
8331 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
8332 c++linker as this does not work on some platforms.
8334 2005-07-04 Matthew Heaney <heaney@adacore.com>
8336 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
8338 * a-coinve.adb: Perform constraint checks explicitly.
8340 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8341 Thomas Quinot <quinot@adacore.com>
8343 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
8344 new target gen-soccon.
8346 2005-07-04 Robert Dewar <dewar@adacore.com>
8348 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
8350 2005-07-04 Thomas Quinot <quinot@adacore.com>
8352 * g-socket.ads (Check_Selector): Minor rewording of comment.
8354 2005-07-04 Vincent Celier <celier@adacore.com>
8356 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
8358 2005-07-04 Thomas Quinot <quinot@adacore.com>
8360 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
8362 2005-07-04 Sergey Rybin <rybin@adacore.com>
8364 * gnat_ugn.texi: Add description of --eol gnatpp option
8366 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
8367 Thomas Quinot <quinot@adacore.com>
8369 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
8370 if the user wants all calls of a subprogram to be flagged,
8371 independently of whether they are made from within the same unit or
8373 Mention restriction for pragma Linker_Alias on some platforms.
8374 Document pragma Linker_Constructor and Linker_Destructor.
8375 Rewrite documentation of Weak_External, Linker_Section and
8376 Linker_Alias pragmas.
8378 2005-07-04 Arnaud Charlet <charlet@adacore.com>
8380 * s-stausa.ads, s-stausa.adb: New files.
8382 2005-06-30 Kelley Cook
8384 * all files: Update FSF address in copyright headers.
8385 * gen-soccon.co (main): Output new FSF address in generated files.
8387 2005-06-28 Paul Brook <paul@codesourcery.com>
8389 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
8391 2005-06-14 Olivier Hainque <hainque@adacore.com>
8392 Eric Botcazou <ebotcazou@adacore.com>
8394 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
8395 exc_unwind, now that we are generating proper .debug_frame output for
8398 * tracebak.c: Remove the mips-irix section, as we are now using the
8399 s-mastop based unwinder again.
8400 Under SPARC/Solaris, take into account the stack bias to compute the
8401 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
8404 2005-06-14 Doug Rupp <rupp@adacore.com>
8406 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
8408 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
8410 2005-06-14 Pascal Obry <obry@adacore.com>
8412 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
8413 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
8414 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
8417 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
8418 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
8419 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
8420 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
8421 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
8422 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
8423 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
8424 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
8425 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
8426 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
8427 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
8428 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
8429 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
8430 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
8431 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
8432 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
8433 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
8434 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
8435 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
8436 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
8437 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
8438 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
8439 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
8440 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
8441 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
8442 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
8443 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
8444 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
8445 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
8446 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
8447 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
8448 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
8449 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
8450 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
8451 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
8452 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
8453 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
8454 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
8455 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
8456 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
8457 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
8458 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
8459 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
8460 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
8461 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
8462 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
8463 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
8464 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
8465 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
8466 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
8467 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
8468 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
8469 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
8470 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
8471 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
8472 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
8473 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
8474 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
8475 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
8476 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
8477 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
8478 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
8479 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
8480 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
8481 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
8482 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
8483 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
8484 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
8485 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
8486 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
8487 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
8488 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
8489 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
8490 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
8491 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
8492 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
8493 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8494 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
8495 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
8496 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
8497 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
8498 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
8499 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
8500 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
8501 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
8502 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
8503 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
8504 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
8505 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
8506 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
8507 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
8508 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
8509 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
8510 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
8511 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
8512 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
8513 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
8514 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
8515 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
8516 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
8517 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
8518 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
8519 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
8520 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
8521 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
8522 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
8523 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
8524 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
8525 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
8526 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
8527 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
8528 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
8529 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
8530 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
8531 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
8532 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
8533 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
8534 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
8535 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
8536 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
8537 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
8538 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
8539 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
8540 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
8541 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
8542 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
8543 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
8544 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
8545 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
8546 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
8547 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
8548 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
8549 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
8551 2005-06-14 Jose Ruiz <ruiz@adacore.com>
8552 Arnaud Charlet <charlet@adacore.com>
8554 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
8555 longer protected objects. They have been replaced by lower-level
8556 suspension objects made up by a mutex and a condition variable (or
8557 their equivalent given a particular OS) plus some internal data to
8558 reflect the state of the suspension object.
8559 (Initialize, Finalize): Add this initialization procedure for
8560 Suspension_Object, which is a controlled type.
8561 (Finalize): Add the finalization procedure for Suspension_Object,
8562 which is a controlled type.
8564 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
8565 Ada.Synchronous_Task_Control because there is no longer a need for a
8566 VxWorks specific version of this package. Target dependencies
8567 has been moved to System.Task_Primitives.Operations.
8569 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
8571 (InitializeCriticalSection, EnterCriticalSection,
8572 LeaveCriticalSection, DeleteCriticalSection): Replace the type
8573 pCriticalSection by an anonymous access type so that we avoid problems
8574 of accessibility to local objects.
8576 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
8577 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
8578 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
8579 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
8580 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
8581 set the environment task mask here.
8582 (Current_State): Add this function that returns the state of the
8584 (Set_False): Add this procedure that sets the state of the suspension
8586 (Set_True): Add this procedure that sets the state of the suspension
8587 object to True, releasing the task that was suspended, if any.
8588 (Suspend_Until_True): Add this procedure that blocks the calling task
8589 until the state of the object is True. Program_Error is raised if
8590 another task is already waiting on that suspension object.
8591 (Initialize): Add this procedure for initializing the suspension
8592 object. It initializes the mutex and the condition variable which are
8593 used for synchronization and queuing, and it sets the internal state
8595 (Finalize): Add this procedure for finalizing the suspension object,
8596 destroying the mutex and the condition variable.
8598 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
8599 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
8600 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
8601 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
8602 which provides a low-level abstraction (using operating system
8603 primitives) for Ada.Synchronous_Task_Control.
8604 This object is made up by a mutex (for ensuring mutual exclusion), a
8605 condition variable (for queuing threads until the condition is
8606 signaled), a Boolean (State) indicating whether the object is open,
8607 and a Boolean (Waiting) reflecting whether there is a task already
8608 suspended on this object.
8610 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
8611 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
8612 s-intman-vms.ads, s-intman-mingw.adb,
8613 (Initialize_Interrupts): Removed, no longer used.
8615 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
8616 (Setup_Interrupt_Mask): New procedure.
8618 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
8620 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
8622 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
8623 this is no longer done in the body of s-taprop
8624 (Server_Task): Explicitely test for Pending_Action in case
8625 System.Parameters.No_Abort is True.
8627 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
8628 is no longer done in the body of s-taprop
8630 2005-06-14 Robert Dewar <dewar@adacore.com>
8632 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
8633 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
8634 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
8635 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
8636 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
8637 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
8638 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
8639 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
8640 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
8641 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
8642 system-linux-hppa.ads, system-vms_64.ads,
8643 system-vxworks-alpha.ads: Minor comment update for
8644 AI-362 (unit is Pure).
8646 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
8647 Add pragma Pure_05 for AI-362
8648 Make remaining conversion functions obsolescent in Ada 95
8650 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
8651 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
8652 Add entries for a-wichun and a-zchuni
8653 Add a-widcha a-zchara for AI-395
8654 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
8656 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
8657 Add entries for a-wichun.o and a-zchuni.o
8658 Entries for a-widcha.o and a-zchara.o
8659 Add entry for a-chacon.o
8661 * a-ztenau.adb: Add with of Ada.Characters.Conversions
8663 * a-chacon.ads, a-chacon.adb: New files.
8665 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
8666 categorization violations.
8668 * a-strmap.ads: Add pragma Pure_05 for AI-362
8669 * a-strmap.ads: Add note on implicit categorization for AI-362
8671 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
8673 * par-prag.adb: Dummy entry for pragma Persistent_BSS
8674 Set Ada_Version_Explicit, for implementation of AI-362
8675 Add processing for pragma Pure_05 and Preelaborate_05
8676 Add entry for Assertion_Policy pragma
8678 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
8679 when needed for proper processing of categorization stuff
8682 For several cases, make errors in preealborate units warnings,
8683 instead of errors, if GNAT_Mode is set. For AI-362.
8685 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
8686 preelaborate unit is now warning if in GNAT mode
8688 * s-stoele.ads: Document AI-362 for pragma preelaborate
8690 2005-06-14 Doug Rupp <rupp@adacore.com>
8692 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
8693 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
8694 Default_Exception_Msg_Max_Length: new parameter.
8696 * a-except.ads: (Exception_Msg_Max_Length): Set to
8697 System.Parameters.Default_Exception_Msg_Max_Length
8698 Add pragma Preelaborate_05 for AI-362
8699 Add warnings off to allow categorization violations for AI-362
8701 2005-06-14 Vincent Celier <celier@adacore.com>
8703 * gnatsym.adb: Adapt to modification of package Symbols: procedure
8704 Process is now in package Processing.
8706 * symbols.ads, symbols.adb:
8707 (Processing): New package, containing procedure Process
8709 * symbols-vms-alpha.adb:
8710 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
8712 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
8713 symbols-processing-vms-ia64.adb: New files.
8715 2005-06-14 Pascal Obry <obry@adacore.com>
8717 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
8718 implementation. This new version generates the proper DllMain routine
8719 to initialize the SAL. The DllMain is generated in Ada and compiled
8720 before being added as option to the library build command.
8722 2005-06-14 Doug Rupp <rupp@adacore.com>
8723 Pascal Obry <obry@adacore.com>
8725 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
8726 call to decc$translate_vms.
8727 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
8728 need to remove those quotes before catenating the filename.
8729 (__gnat_locate_exec_on_path): improvements to the Win32 section:
8730 * avoid allocating the memory twice for better efficiency;
8731 * allocate 32K buffer for environment expansion as suggested by MSDN;
8732 * prepend ".;" to the path so that current directory is searched too.
8734 2005-06-14 Robert Dewar <dewar@adacore.com>
8736 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
8737 instead of raising CE (AI-241)
8738 Add warnings off to allow categorization violations for AI-362
8740 2005-06-14 Robert Dewar <dewar@adacore.com>
8742 * ali-util.adb, gnatbind.adb: Remove references to
8743 Force_RM_Elaboration_Order.
8745 * switch-b.adb: Remove recognition of -f switch
8747 2005-06-14 Pascal Obry <obry@adacore.com>
8749 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
8750 implementation which is slightly more efficient.
8752 2005-06-14 Gary Dismukes <dismukes@adacore.com>
8753 Javier Miranda <miranda@adacore.com>
8754 Ed Schonberg <schonberg@adacore.com>
8755 Hristian Kirtchev <kirtchev@adacore.com>
8757 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
8758 allocator's designated type is a class-wide type, and compiling for
8759 Ada 2005, emit a run-time check that the accessibility level of the
8760 type given in the allocator's expression is not deeper than the level
8761 of the allocator's access type.
8763 (Tagged_Membership): Modified to gives support to abstract interface
8766 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
8768 (Descendant_Tag): New predefined function
8769 (Is_Descendant_At_Same_Level): New predefined function
8770 (Get_Access_Level): New private function
8771 (Set_Access_Level): New private procedure
8772 (IW_Membership): New function. Given the tag of an object and the tag
8773 associated with an interface, evaluate if the object implements the
8775 (Register_Interface_Tag): New procedure used to initialize the table of
8776 interfaces used by the IW_Membership function.
8777 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
8778 of the dispatch table.
8779 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
8780 table of interfaces of the parent.
8781 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
8782 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
8783 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
8784 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
8785 Ada 2005 semantics for the new predefined function.
8787 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
8788 call to Descendant_Tag rather than Internal_Tag.
8789 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
8790 the accessibility level of the attribute's Item parameter is not deeper
8791 than the level of the attribute's prefix type. Tag_Error is raised if
8792 the check fails. The check is only emitted for Ada_05.
8793 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
8794 requested stream attribute, use it.
8795 (Expand_N_Attribute_Reference): If the designated type is an interface
8796 then rewrite the referenced object as a conversion to force the
8797 displacement of the pointer to the secondary dispatch table.
8798 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
8799 is a dereference of an object with a constrained partial view.
8801 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
8802 type is a class-wide type, emit a run-time check that the accessibility
8803 level of the returned object is not deeper than the level of the
8804 function's master (only when compiling for Ada 2005).
8806 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
8807 Action_Nb_Arg): Add entries for new Get_Access_Level and
8808 Set_Access_Level routines in these tables.
8809 (Make_DT): Generate a call to set the accessibility level of the
8810 tagged type in its TSD.
8811 (Make_DT): Code cleanup. The functionality of generating all the
8812 secondary dispatch tables has been moved to freeze_record_type.
8813 (Make_Abstract_Interface_DT): Minor code cleanup.
8814 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
8815 this subprogram implements a new algorithm that provides the
8816 same functionality and it is more clear in case of primitives
8817 associated with abstract interfaces.
8818 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
8819 clean up, the functionality of this subprogram is now provided
8820 by Set_All_DT_Position.
8821 (Write_DT): New subprogram: a debugging procedure designed to be called
8822 within gdb to display the dispatch tables associated with a tagged
8824 (Collect_All_Interfaces): New subprogram that collects the whole list
8825 of interfaces that are directly or indirectly implemented by a tagged
8827 (Default_Prim_Op_Position): New subprogram that returns the fixed
8828 position in the dispatch table of the default primitive operations.
8829 (Expand_Interface_Actuals): New subprogram to generate code that
8830 displaces all the actuals corresponding to class-wide interfaces to
8831 reference the interface tag of the actual object.
8832 (Expand_Interface_Conversion): New subprogram. Reference the base of
8833 the object to give access to the interface tag associated with the
8834 secondary dispatch table.
8835 (Expand_Interface_Thunk): New subprogram that generates the code of the
8836 thunk. This is required for compatibility with the C+ ABI.
8837 (Make_Abstract_Interface_DT): New subprogram that generate the
8838 declarations for the secondary dispatch tables associated with an
8840 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
8841 attribute for each primitive operation covering interface subprograms
8842 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
8843 These subprograms were upgraded to give support to abstract interfaces
8845 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
8846 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
8847 RE_Set_Access_Level.
8848 (RE_Unit_Table): Add entries for new Ada.Tags operations.
8849 Add support to call the followig new run-time subprograms:
8850 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
8852 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
8853 match its full declaration when both have an access definition with
8854 statically matching designated subtypes.
8855 (Analyze_Component_Declaration): Delete commented out code that was
8856 incorrectly setting the scope of an anonymous access component's type.
8857 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
8858 an access discriminant when the containing type is nonlimited.
8859 (Make_Incomplete_Type_Declaration): Create an incomplete type
8860 declaration for a record type that includes self-referential access
8862 (Check_Anonymous_Access_Types): Before full analysis of a record type
8863 declaration, create anonymous access types for each self-referential
8865 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
8866 an access component in this context is a Local_Anonymous_Access, for
8867 proper accessibility checks.
8868 (Access_Definition): Set properly the scope of the anonymous access type
8869 created for a stand-alone access object.
8870 (Find_Type_Of_Object): An object declaration may be given with an access
8872 (Complete_Subprograms_Derivation): New subprogram used to complete
8873 type derivation of private tagged types implementing interfaces.
8874 In this case some interface primitives may have been overriden
8875 with the partial-view and, instead of re-calculating them, they
8876 are included in the list of primitive operations of the full-view.
8877 (Build_Derived_Record_Type): Modified to give support to private
8878 types implemening interfaces.
8879 (Access_Definition): Reject ALL on anonymous access types.
8880 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
8881 type derivation to occur at a deeper accessibility level than the
8883 For the case of derivation within a generic body however, disallow the
8884 derivation if the derived type has an ancestor that is a formal type
8885 declared in the formal part of an enclosing generic.
8886 (Analyze_Object_Declaration): For protected objects, remove the check
8887 that they cannot contain interrupt handlers if not declared at library
8889 (Add_Interface_Tag_Components): New subprogram to add the tag components
8890 corresponding to all the abstract interface types implemented by a
8891 record type or a derived record type.
8892 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
8893 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
8894 Process_Full_View, Record_Type_Declaration): Modified to give
8895 support to abstract interface types
8896 (Collect_Interfaces): New subprogram that collects the list of
8897 interfaces that are not already implemented by the ancestors
8898 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
8899 when partial view has no discriminants and full view has defaults.
8900 (Constrain_Access): Reject a constraint on a general access type
8901 if the discriminants of the designated type have defaults.
8902 (Access_Subprogram_Declaration): Associate the Itype node with the inner
8903 full-type declaration or subprogram spec. This is required to handle
8904 nested anonymous declarations.
8905 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
8906 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
8907 Process_Full_View, Record_Type_Declaration): Modified to give
8908 support to abstract interface types
8909 (Derive_Subprograms): Addition of a new formal to indicate if
8910 we are in the case of an abstact-interface derivation
8911 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
8912 to the specification because it is requied to analyze all the
8913 identifiers found in a list of interfaces
8915 * debug.adb: Complete documentation of flag "-gnatdZ"
8917 * exp_ch3.adb: Implement config version of persistent_bss pragma
8918 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
8919 testing for TSS presence to properly enforce visibility rules.
8920 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
8921 Make_Abstract_Interfaces_DT to generate the secondary tables
8922 associated with abstract interfaces.
8923 (Build_Init_Procedure): Modified to initialize all the tags
8925 (Component_Needs_Simple_Initialization): Similar to other tags,
8926 interface tags do not need initialization.
8927 (Freeze_Record_Type): Modified to give support to abstract interface
8929 (Expand_N_Object_Declaration): Do not generate an initialization for
8930 a scalar temporary marked as internal.
8932 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
8933 in-out parameter that is a component in an initialization procedure,
8934 whose constraint might depend on discriminants, and that may be
8935 misaligned because of packing or representation clauses.
8936 (Is_Legal_Copy): New predicate to determine whether a possibly
8937 misaligned in-out actual can actually be passed by copy/return. This
8938 is an error in case the type is by_reference, and a warning if this is
8939 the consequence of a DEC import pragma on the subprogram.
8940 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
8942 (Expand_Inlined_Call): Mark temporary generated for the return value as
8943 internal, so that no useless scalar normalization is generated for it.
8944 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
8945 null procedure can always be inlined.
8946 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
8947 procedure, generate an explicit empty body for it.
8949 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
8950 Given a type implementing an interface, returns the corresponding
8951 access_disp_table value.
8952 (Find_Interface_Tag): New subprogram. Given a type implementing an
8953 interface, returns the record component containing the tag of the
8955 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
8956 previous ones that return the corresponding tag and access_disp_table
8958 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
8959 is a predefined primitive operation.
8960 (Expand_Subtype_From_Expr): If the expression is a selected component
8961 within an initialization procedure, compute its actual subtype, because
8962 the component may depend on the discriminants of the enclosing record.
8964 * i-cpp.ads, i-cpp.adb:
8965 This package has been left available for compatibility with previous
8966 versions of the frontend. As part of the new layout this is now a
8967 dummy package that uses declarations available at a-tags.ads
8969 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
8970 "constant access" and "aliased [constant] access" when not compiling
8972 Suppress Ada 2005 keyword warning if -gnatwY used
8973 (P_Identifier_Declarations): Add support for object declarations with
8975 (Private_Extension_Declaration): Complete the documentation
8976 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
8977 attribute in case of private extension declaration
8978 (P_Type_Declaration): Mark as "abstract" the type declarations
8979 corresponding with protected, synchronized and task interfaces
8980 (P_Declarative_Items): "not" and "overriding" are overriding indicators
8981 for a subprogram or instance declaration.
8983 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
8984 instantiation that is a dispatching operation has controlling access
8985 parameters that are null excluding.
8986 Save and restore Ada_Version_Explicit, for implementation of AI-362
8987 (Validate_Derived_Type_Instance): Add check for abstract interface
8989 (Analyze_Formal_Package): Establish Instantiation source for the copy of
8990 the generic that is created to represent the formal package.
8991 (Analyze_Package_Instantiation): Instantiate body immediately if the
8992 package is a predefined unit that contains inlined subprograms, and
8993 we are compiling for a Configurable_Run_Time.
8994 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
8995 If the program has a null default, generate an empty body for it.
8997 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
8998 error message condition, null procedures are correctly detected now.
8999 (New_Overloaded_Entity): Bypass trivial overriding indicator check
9000 for subprograms in the context of protected types. Instead, the
9001 indicator is examined in Sem_Ch9 while analysing the subprogram
9003 (Check_Overriding_Indicator): Check consistency of overriding indicator
9004 on subprogram stubs as well.
9005 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
9007 (Analize_Subprogram_Specification): When analyzing a subprogram in which
9008 the type of the first formal is a concurrent type, replace this type
9009 by the corresponding record type.
9010 (Analyze_Subprogram_Body): Undo the previous work.
9011 (Analyze_Procedure_Call): If the call has the form Object.Op, the
9012 analysis of the prefix ends up analyzing the call itself, after which
9014 (Has_Interface_Formals): New subprogram subsidiary to analyze
9015 subprogram_specification that returns true if some non
9016 class-wide interface subprogram is found
9017 (New_Overloaded_Entity): Modified to give support to abstract
9019 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
9020 access to subprograms must be recursive.
9021 (Is_Unchecked_Conversion): Improve the test that recognizes
9022 instantiations of Unchecked_Conversion, and allows them in bodies that
9023 are to be inlined by the front-end. When the body comes from an
9024 instantiation, a reference to Unchecked_Conversion will be an
9025 Expanded_Name, even though the body has not been analyzed yet.
9026 Replace Is_Overriding and Not_Overriding in subprogram_indication with
9027 Must_Override and Must_Not_Override, to better express intent of AI.
9028 (Analyze_Subprogram_Body): If an overriding indicator is given, check
9029 that it is consistent with the overrinding status of the subprogram
9031 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
9033 If the subprogram is a null procedure, indicate that it does not need
9036 * sem_disp.adb (Check_Controlling_Type): Give support to entities
9037 available through limited-with clauses.
9038 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
9039 allowed as the last primitive of a tagged type if it has no previous
9041 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
9042 to give support to abstract interface types
9044 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
9045 in the case where the target type is an anonymous access type of an
9046 object or component (that is, when Is_Local_Anonymous_Access is true).
9047 Prevent the special checks for conversions of access discriminants in
9048 the case where the discriminant belongs to a nonlimited type, since
9049 such discriminants have their accessibility level defined in the same
9050 way as a normal component of an anonymous access type.
9051 (Resolve_Allocator): When an allocator's designated type is a class-wide
9052 type, check that the accessibility level of type given in the
9053 allocator's expression or subtype indication is not statically deeper
9054 than the level of the allocator's access type.
9055 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
9056 name in a discriminant constraint of a record component.
9057 (Resolve_Explicit_Dereference): Do not check whether the type is
9058 incomplete when the dereference is a use of an access discriminant in
9059 an initialization procedure.
9060 (Resolve_Type_Conversion): Handle conversions to abstract interface
9062 (Valid_Tagged_Conversion): The conversion of a tagged type to an
9063 abstract interface type is always valid.
9064 (Valid_Conversion): Modified to give support to abstract interface types
9065 (Resolve_Actuals): Enable full error reporting on view conversions
9066 between unrelated by_reference array types.
9067 The rule for view conversions of arrays with aliased components is
9068 weakened in Ada 2005.
9069 Call to obsolescent subprogram is now considered to be a violation of
9070 pragma Restrictions (No_Obsolescent_Features).
9071 (Check_Direct_Boolean_Operator): If the boolean operation has been
9072 constant-folded, there is nothing to check.
9073 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
9074 check on possible violation of restriction No_Direct_Boolean_Operators
9075 until after expansion of operands, to prevent spurious errors when
9076 operation is constant-folded.
9078 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
9079 Has_Compatible_Type): Modified to give support to abstract interface
9081 (Interface_Present_In_Ancestor): New function to theck if some ancestor
9082 of a given type implements a given interface
9084 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
9085 prefix is a parameterless function that returns an access_to_procedure.
9086 (Transform_Object_Operation): Handle properly function calls of the
9087 form Obj.Op (X), which prior to analysis appear as indexed components.
9088 (Analyze_One_Call): Complete the error notification to help new Ada
9090 (Analyze_Allocator): For an allocator without an initial value, where
9091 the designated type has a constrained partial view, a discriminant
9092 constraint is illegal.
9094 2005-06-14 Robert Dewar <dewar@adacore.com>
9096 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
9097 do with treatment of Set_Col when positioned at end of line character.
9099 2005-06-14 Robert Dewar <dewar@adacore.com>
9101 * atree.adb: (Elist*): Protect against uninitialized field
9103 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9105 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
9106 for an attribute reference that returns an access type.
9107 (Apply_Discriminant_Check): No need for check if (designated) type has
9108 constrained partial view.
9110 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
9111 both bound checks, rather than a conjunction.
9112 (Insert_Valid_Check): If the expression is an actual that is an indexed
9113 component of a bit-packed array, force expansion of the packed element
9114 reference, because it is specifically inhibited elsewhere.
9116 2005-06-14 Vincent Celier <celier@adacore.com>
9118 * clean.adb (Clean_Project): Correctly delete executable specified as
9119 absolute path names.
9121 * make.adb (Gnatmake): Allow relative executable path names with
9122 directory information even when project files are used.
9123 (Change_To_Object_Directory): Fail gracefully when unable to change
9124 current working directory to object directory of a project.
9125 (Gnatmake): Remove exception handler that could no longer be exercized
9126 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
9127 may be deallocated by Normalize_Arguments.
9128 (Collect_Arguments): Eliminate empty arguments
9130 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
9131 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
9132 (Check_Project): Return False when Project is No_Project. Return True
9133 when All_Projects is True.
9134 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
9135 All_Projects to True.
9138 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9139 Javier Miranda <miranda@adacore.com>
9140 Thomas Quinot <quinot@adacore.com>
9141 Robert Dewar <dewar@adacore.com>
9142 Hristian Kirtchev <kirtchev@adacore.com>
9143 Gary Dismukes <dismukes@adacore.com>
9145 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
9146 anonymous access types, to indicate that the accessibility level of
9147 the type is determined by that of the enclosing declaration.
9148 (Has_Persistent_BSS): New flag
9149 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
9150 of this attribute with functions.
9151 (Is_Primitive_Wrapper): Remove the barrier.
9152 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
9153 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
9155 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
9156 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
9158 (Is_Pure_Unit_Access_Type): New flag
9159 (Abstract_Interfaces): Complete the assertion to cover all usages.
9160 (Set_Is_Interface): Complete the assertion to cover all usages.
9161 (Is_Primitive_Wrapper): New attribute.
9162 (Is_Obsolescent): Now applies to all entities (though it is only set
9163 for subprograms currently)
9164 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
9165 which solves various problems concerning access subtypes.
9166 (Has_Persistent_BSS): New flag
9167 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
9168 Remove these subprograms because this attribute is currently
9171 Has_Specified_Stream_Input (Flag190)
9172 Has_Specified_Stream_Output (Flag191)
9173 Has_Specified_Stream_Read (Flag192)
9174 Has_Specified_Stream_Write (Flag193)
9175 Present in all type and subtype entities. Set for a given view if the
9176 corresponding stream-oriented attribute has been defined by an
9177 attribute definition clause. When such a clause occurs, a TSS is set
9178 on the underlying full view; the flags are used to track visibility of
9179 the attribute definition clause for partial or incomplete views.
9180 (Is_Pure_Unit_Access_Type): New flag
9181 Clarify use of Is_Internal.
9182 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
9183 internally generated to wrap the invocation of tasks and protected
9184 types that implement interfaces.
9185 (Implementation_Base_Type): Documentation correction
9186 (Is_Obsolescent): Now applies to all entities (though it is only set
9187 for subprograms currently)
9188 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
9189 which solves various problems concerning access subtypes.
9191 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
9192 for examined parameters. Identify unequal parameter list lengths as
9193 non-conformant parameters.
9194 (Overriding_Possible): Do not check for "All" qualifier in declaration
9195 of controlling access parameter, following prescription of AI-404.
9196 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
9197 that build the procedure body that wraps an entry invocation
9198 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
9199 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
9200 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
9201 give support to abstract interface types
9203 * freeze.adb (Freeze_Entity): Issue error message if
9204 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
9205 type has no storage pool (Ada 2005) AI-366.
9206 Also modified to give support to abstract interface types
9207 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
9208 Inline_Always pragma.
9210 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
9211 now begin an entry declaration.
9212 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
9213 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
9214 a subprogram declaration preceded by an overriding indicator.
9215 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
9216 declarations or subprogram declarations preceded by reserved words
9217 "not" or "overriding".
9218 (P_Entry_Declaration): Update comment. Parse and check overriding
9219 indicator, set semantic flags of entry declarations.
9220 (P_Task): New error message in case of private applied
9221 to a task type declaration.
9222 (P_Protected): New error message in case of private applied
9223 to a task type declaration.
9225 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
9226 in which the full view of a type implementing an interface is a
9228 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
9229 Declare_Inherited_Private_Subprograms): If an explicit operation
9230 overrides an operation that is inherited in the private part, mark the
9231 explicit one as overriding, to enable overriding indicator checks.
9232 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
9233 full view to partial view, to simplify handling in back-end.
9235 * sprint.adb: Print interface lists where needed: derived types,
9236 protected types, task types.
9237 output "is null" for null procedures. Part of implementation of
9239 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
9240 relaxation of rules for access types in pure, shared passive partitions.
9242 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
9243 first read discriminants into temporary objects, performing checks on
9244 the read values, then possibly performing discriminant checks on the
9245 actual (if it is constrained), and only finally reading the components
9246 into a constrained temporary object.
9247 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
9248 case of reading discriminants of a mutable record type to recognize
9249 the new form of the code generated by
9250 Build_Mutable_Record_Read_Procedure.
9252 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
9253 of a simple call to Make_TSS_Name.
9254 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
9255 buffer, in order for Is_TSS to work correctly on local TSS names.
9257 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
9258 Is_Local_Anonymous_Access to check legaliy of attributes in the
9259 context of access components and stand-alone access objects.
9260 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
9261 treated as available for a limited private type if there is an
9262 attribute_definition_clause that applies to its full view, but not in
9263 other cases where the attribute is available for the full view
9264 (specifically, the sole fact that the full view is non-limited does not
9265 make the attribute available for the partial view).
9266 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
9267 non-overloaded intrinsic subprogram.
9268 (Check_Stream_Attribute): Reject an attribute reference for an
9269 unavailable stream attribute even if the prefix is not a limited type
9270 (case of a 'Input attribute reference for an abstract, non-classwide
9272 (Stream_Attribute_Available): New function to determine whether a stream
9273 attribute is available at a place.
9274 (Check_Attribute): Use Stream_Attribute_Available instead of just
9275 testing for TSS presence on the implementation base type.
9276 (Analyze_Attribute): Modified to give support to task interfaces.
9277 (Analyze_Access_Attribute): Add error check for use of an Access (or
9278 Unrestricted_Access) attribute with a subprogram marked as
9280 (Analyze_Attribute, case Attribute_Address): Add error check for use of
9281 an Address attribute with a subprogram marked as Inline_Always.
9282 Update Eval_Attribute to handle new value of Width from AI-395
9284 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
9285 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
9286 Factor common code across the stream-oriented attribute circcuits into
9287 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
9288 processing is functionally identical to the previous duplicated one,
9289 except that an expression that denotes an abstract subprogram will now
9290 be rejected, as mandated by AI-195 item 5.
9292 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
9293 Is_Local_Anonymous_Access to apply accessibility checks to access
9294 components and stand-alone access objects.
9295 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
9297 (Is_Potentially_Persistent_Type): New function
9298 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
9299 a heap-object whose type has a constrained partial view, the object is
9300 unconstrained and the component may depend on a discriminant, making its
9303 * sinfo.ads, sinfo.adb
9304 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
9305 (Must_Override): Flag applicable to N_Entry_Declaration.
9306 Indicate that interface_list can appear in single task and single
9307 protected declarations.
9308 Replace Is_Overriding and Not_Overriding with Must_Override and
9309 Must_Not_Override, to better express intent of AI.
9310 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
9311 of an overriding indicator in a subprogram or instance.
9312 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
9313 Add the overriding indicator [[not] overriding] construct to the
9314 following grammar productions:
9316 GENERIC_INSTANTIATION
9317 SUBPROGRAM_SPECIFICATION
9319 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
9320 can start with an overriding indicator.
9322 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
9323 flags accordingly on subrogram specifications or instances.
9326 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
9327 overriding_indicator, if present, is consistent with status of spec.
9328 Improve error message for null-excluding checks on controlling access
9330 (Check_In_Previous_With_Clause): Protect the frontend against
9331 previously reported critical errors in the context clauses.
9332 Save and restore Ada_Version_Explicit, for implementation of AI-362
9333 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
9334 operation verify that controlling formals of the renamed entity that
9335 are access parameters are explicitly non-null.
9336 (Find_Expanded_Name): Improve error message when prefix is an illegal
9337 reference to a private child unit.
9339 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
9340 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
9341 Rewrite to correspond to new wide character names in AI-395
9343 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
9346 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9347 Robert Dewar <dewar@adacore.com>
9349 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
9350 code, not on the bodies of predefined operations, to cut down on
9353 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9355 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
9356 be expanded in place. The size computation does not require a
9357 subtraction, which would raise an exception on a compiler built with
9358 assertions when the upper bound is Integer'first.
9359 (Flatten): For an array of composite components, take into account the
9360 size of the components to determine whether it is safe to expand the
9361 array into a purely positional representation.
9363 2005-06-14 Thomas Quinot <quinot@adacore.com>
9365 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
9366 denoting a formal parameter into account.
9368 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9370 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
9371 the entry_call alternative of a conditional entry call, wrap the
9372 conditional entry call itself.
9374 2005-06-14 Nicolas Setton <setton@adacore.com>
9375 Ed Schonberg <schonberg@adacore.com>
9377 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
9378 the "simple_choice" member in a variant record, in accordance with the
9379 description in the package spec: the information output for a constant
9380 should be "S number", not "SS number".
9381 (Get_Encoded_Name): Return at once if not generating code. Avoids name
9382 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
9384 2005-06-14 Thomas Quinot <quinot@adacore.com>
9386 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
9387 RACW without any primitives, do not generate the if statement for
9388 dispatching by name in the PolyORB/DSA case, as it would be malformed
9389 (it would have an Elsif_Parts list that is not No_List, but with a
9392 2005-06-14 Robert Dewar <dewar@adacore.com>
9394 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
9396 2005-06-14 Jose Ruiz <ruiz@adacore.com>
9398 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
9399 can determine whether pragma Suppress_Exception_Locations is in effect.
9401 * utils2.c (build_call_raise): Do not pass the file name to the
9402 exception handler if pragma Suppress_Exception_Locations is in effect.
9403 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
9405 2005-06-14 Emmanuel Briot <briot@adacore.com>
9407 * g-debpoo.adb (Deallocate, Dereference): Improve output.
9409 2005-06-14 Nicolas Roche <roche@adacore.com>
9411 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
9413 (Next_Level): Fix minor bug in handling of ../dir case
9414 (Read): Add dir separator to Directory name so that "" is understood as
9417 2005-06-14 Pascal Obry <obry@adacore.com>
9419 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
9420 releasing the items.
9422 2005-06-14 Vincent Celier <celier@adacore.com>
9423 Cyrille Comar <comar@adacore.com>
9425 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
9426 with output file descriptor and with output file name.
9427 (Dup, Dup2): Now global procedures as they are used by two subprograms
9428 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
9430 2005-06-14 Thomas Quinot <quinot@adacore.com>
9434 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
9436 (Create_Selector): Bind listening socket used to create the signalling
9437 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
9438 Set listen backlog to 1 to ensure that we detect socket theft by a
9439 failure of our own connect(2) call.
9440 (Check_Selector): Improve documentation of the selector mechanism.
9441 (Broadcast_Inet_Addr): New constant.
9443 2005-06-14 Gary Dismukes <dismukes@adacore.com>
9445 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
9446 type which turns out to be an incomplete and incorrect fix.
9447 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
9448 of the type is declared in a record (for determination of insertion
9450 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
9451 a private type and ensure that the primary entity is used for the type
9452 of the newly created function's V formal by taking the Etype of the
9455 2005-06-14 Javier Miranda <miranda@adacore.com>
9456 Jose Ruiz <ruiz@adacore.com>
9457 Robert Dewar <dewar@adacore.com>
9458 Ed Schonberg <schonberg@adacore.com>
9460 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
9461 that indicates if we are parsing a compilation unit found in a
9462 limited-with clause.
9463 It is use to avoid the circularity check.
9465 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
9466 we are parsing a compilation unit found in a limited-with clause. This
9467 is use to avoid the circularity check.
9469 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
9470 unit as a consequence of parsing a limited-with clause. This is used
9471 to avoid the circularity check.
9473 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
9474 (Analyze_Context): Limited-with clauses are now allowed
9475 in more compilation units.
9476 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
9477 againts previously reported critical errors in context clauses
9478 (Install_Limited_Withed_Unit): Code cleanup plus static detection
9479 of two further errors: renamed subprograms and renamed packages
9480 are not allowed in limited with clauses.
9481 (Install_Siblings): Do not install private_with_clauses on the package
9482 declaration for a non-private child unit.
9483 (Re_Install_Parents): When a parent of the subunit is reinstalled,
9484 reset visibility of child units properly.
9485 (Install_Withed_Unit): When a child unit appears in a with_clause of its
9486 parent, it is immediately visible.
9488 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9489 Emmanuel Briot <briot@adacore.com>
9491 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
9492 declared within an inlined body as referenced, to prevent spurious
9494 (Output_One_Ref): If an entity renames an array component, indicate in
9495 the ALI file that this aliases (renames) the array. Capture as well
9496 function renamings that rename predefined operations.
9497 Add information about generic parent for package and subprogram
9499 (Get_Type_Reference): For a subtype that is the renaming of an actual in
9500 an instantiation, use the first_subtype to ensure that we don't generate
9501 cross-reference information for internal types.
9502 For objects and parameters of a generic private type, retain the '*'
9503 indicator to distinguish such an entity from its type.
9505 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
9506 to store information about instantiated entities.
9508 * ali.adb (Scan_ALI): Add support for parsing the reference to the
9511 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
9512 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
9515 2005-06-10 Doug Rupp <rupp@adacore.com>
9516 Arnaud Charlet <charlet@adacore.com>
9517 Olivier Hainque <hainque@adacore.com>
9518 Jose Ruiz <ruiz@adacore.com>
9520 * Make-lang.in: Add initialize.o when needed.
9521 Remove obsolete references to RT_FLAGS.
9522 Add missing dependencies for sdefault.o
9524 * initialize.c: New file.
9526 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
9527 [VMS] cond_signal_table: Fix problem in declaration.
9528 [VMS] __gnat_error_handler: rewrite.
9529 Move all __gnat_initialize() routines to initialize.c
9530 Specialize the former "hpux" section to "hppa hpux", as this is what the
9531 section really is here for and we now have other hpux ports that need
9533 (__gnat_adjust_context_for_raise) i386-linux: First version of this
9534 function for this target. Adjust PC by one in the machine context. This
9535 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
9536 it is more reliable to do that in the signal handler itself.
9537 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
9538 flags, so that the handler is passed the context structure to adjust
9540 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
9541 SA_SIGINFO sigaction should look like. Call
9542 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
9543 Machine_State_Operations stuff.
9544 Add conditional code so that the x86_64 is also supported.
9546 2005-06-14 Pascal Obry <obry@adacore.com>
9548 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
9551 2005-06-14 Robert Dewar <dewar@adacore.com>
9553 * opt.ads, opt.adb: New flags for persistent_bss mode
9554 Add Ada_Version_Explicit, for implementation of AI-362
9555 Add Assertions_Enabled_Config and associated handling
9556 Needed since setting can be changed with Assertion_Policy pragma
9557 Add new flag Warn_On_Ada_2005_Compatibility
9559 * switch-c.adb: Recognize -gnatwy/Y
9560 Set Ada_Version_Explicit, for implementation of AI-362
9561 The -gnatg switch now includes -gnatyu
9563 * usage.adb: Add -gnatwy/Y
9564 Remove wrong asterisk on -gnatwX line
9565 Add line for -gnatyu switch
9567 2005-06-14 Vincent Celier <celier@adacore.com>
9569 * osint.adb (Add_Default_Search_Dirs): Put source and object
9570 directories of project files before directories coming from
9571 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
9573 2005-06-14 Robert Dewar <dewar@adacore.com>
9577 * par-ch2.adb (Scan_Pragma_Argument): New procedure
9578 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
9580 2005-06-14 Vincent Celier <celier@adacore.com>
9582 * prep.adb (Preprocess): Ignore error when scanning the first token of
9585 2005-06-14 Vincent Celier <celier@adacore.com>
9587 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
9588 (Check_Stand_Alone_Library): If the specified reference symbol file does
9589 not exist, only issue a warning when the symbol policy is not
9590 Controlled. And, when symbol policy is Compliant, set the symbol
9591 policy to Autonomous.
9593 2005-06-14 Vincent Celier <celier@adacore.com>
9595 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
9596 when the project file in a with clause is not the last one, that is the
9597 project file name is followed by a comma.
9598 * prj-pp.adb: (First_With_In_List): New Boolean global variable
9599 (Print): Issue list of project files separated by commas in with clauses
9600 according to the values returned by Is_Not_Last_In_List.
9601 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
9602 (Set_Is_Not_Last_In_List): New procedure
9604 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
9606 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
9608 2005-06-14 Robert Dewar <dewar@adacore.com>
9610 * scng.adb: Add call to new Check_EOF routine
9611 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
9612 Add some comments regarding wide character handling
9614 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
9616 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
9618 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
9619 characters are now considered graphic characters and hence yield false
9622 * nmake.adt: Modify header so that xnmake does not generate output
9623 files with multiple blank lines.
9625 * treeprs.adt: Remove a blank line so that output from xtreeprs does
9626 not have an extra blank line
9628 2005-06-14 Gary Dismukes <dismukes@adacore.com>
9630 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
9631 expression when the component type is an anonymous access type to
9632 ensure that appropriate accessibility checks are done.
9634 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
9635 expression of an assignment when the target object is of an anonymous
9636 access type. This ensures that required accessibility checks are done.
9637 (One_Bound): Move the check for type Universal_Integer to
9639 (Process_Bounds): Check whether the type of the preanalyzed range is
9640 Universal_Integer, and in that case set Typ to Integer_Type prior
9641 to setting the type of the original range and the calls to One_Bound.
9643 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9645 * sem_case.adb (Expand_Others_Choice): Improve warning.
9647 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9649 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
9650 constraint of full view if present, when other type is discriminated.
9651 (Eval_Relational_Op): Recognize tests of pointer values against Null,
9652 when the pointer is known to be non-null, and emit appropriate warning.
9654 2005-06-14 Robert Dewar <dewar@adacore.com>
9655 Ed Schonberg <schonberg@adacore.com>
9659 * sem_prag.adb: Implement pragma Persistent_BSS
9660 Remove obsolete pragma Persistent_Data, Persistent_Object
9661 Set Ada_Version_Explicit, for implementation of AI-362
9662 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
9663 Add processing for pragma Pure_05 and Preelaborate_05
9664 Add processing for Assertion_Policy pragma
9665 Add pragma identifiers for Assert
9666 (Analyze_Pragma, case Assert): Check number of arguments
9667 (Process_Inline): Additional guard against an illegal program, where the
9668 argument of the pragma is undefined, and warnings on redundant
9669 constructs are enabled.
9670 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
9671 Ada_05 to this pragma, specifying that the pragma is only active in
9673 (Check_Arg_Order): New procedure
9674 Add appropriate calls to this procedure throughout
9675 Also throughout, check entity name before doing any other checks
9677 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
9678 Remove obsolete pragma Persistent_Data, Persistent_Object
9679 Add entries for pragma Pure_05 and Preelaborate_05
9680 Add entries for Assertion_Policy pragma and associated names
9681 Add some names for pragma argument processing
9683 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
9685 2005-06-14 Ed Schonberg <schonberg@adacore.com>
9687 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
9688 appears within a negation (either from source or as a rewriting of
9689 inequality) adjust text of warning accordingly.
9691 2005-06-14 Thomas Quinot <quinot@adacore.com>
9693 * s-strxdr.adb: Follow AI95-00132
9695 2005-06-14 Arnaud Charlet <charlet@adacore.com>
9697 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
9699 2005-06-14 Arnaud Charlet <charlet@adacore.com>
9700 Jose Ruiz <ruiz@adacore.com>
9702 * s-tposen.adb, s-tpobop.adb
9703 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
9705 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
9706 there is no violation of the Max_Entry_Queue_Length restriction (if it
9707 has been set); Program_Error is raised otherwise.
9708 (Requeue_Call): Before requeuing the task on the target entry queue we
9709 check that there is no violation of the Max_Entry_Queue_Length
9710 restriction (if it has been set); Program_Error is raised otherwise.
9712 2005-06-14 Robert Dewar <dewar@adacore.com>
9714 * styleg.adb: Fix several remaining problems in -gnatyu switch
9715 Blank line count not reset at start
9716 Scanning outside source buffer in some cases
9717 Confusing message for blanks at end of file
9718 Non-empty blank lines not recognized
9720 * nmake.adt: Modify header so that xnmake does not generate output
9721 files with multiple blank lines.
9723 * treeprs.adt: Remove a blank line so that output from xtreeprs does
9724 not have an extra blank line
9726 2005-06-14 Sergey Rybin <rybin@adacore.com>
9728 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
9730 2005-06-14 Doug Rupp <rupp@adacore.com>
9731 Vincent Celier <celier@adacore.com>
9733 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
9736 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
9737 Remove "Library" command.
9738 Change keyword for style check -gnatyd from NOCRLF to
9740 Remove useless second style check keyword NONE
9741 Remove help documentation for inexistent style check keyword
9743 Add help documentation for style check keywords DOS_LINE_ENDINGS,
9744 UNNECESSARY_BLANK_LINES and XTRA_PARENS
9745 Add UNNECESSARY_BLANK_LINES for -gnatyu
9746 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
9748 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
9750 2005-06-14 Vincent Celier <celier@adacore.com>
9752 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
9753 gprmake was invoked with -d.
9754 (Compile_Sources): If -d was used, output the "completed ..." message
9755 for each compilation.
9756 (Scan_Arg): Recognize new switch -d
9757 When -c and at least one main is specified, set
9758 Unique_Compile to True to guarantee that no other sources will be
9761 2005-06-14 Matthew Heaney <heaney@adacore.com>
9763 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
9764 * a-swuwha.ads, a-swuwha.adb: New files
9766 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
9767 * a-szuzha.ads, a-szuzha.adb: New files.
9769 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
9770 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
9771 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
9772 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
9773 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
9774 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
9775 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
9776 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
9777 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
9778 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
9781 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
9782 Olivier Hainque <hainque@adacore.com>
9783 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9784 Pascal Obry <obry@adacore.com>
9786 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
9788 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
9789 making a temporary around a procedure call because of non-addressable
9791 (process_freeze_entity): If entity is a private type, capture size
9792 information that may have been computed for the full view.
9793 (tree_transform, case N_Allocator): If have initializing expression,
9794 check type for Has_Constrained_Partial_View and pass that to
9796 (tree_transform, case N_Return_Statement): Pass extra arg to
9799 * decl.c (annotate_value): Remove early return if -gnatR is not
9801 (gnat_to_gnu_field): Don't make a packable type for a component clause
9802 if the position is byte aligned, the field is aliased, and the clause
9803 size isn't a multiple of the packable alignment. It serves no useful
9804 purpose packing-wise and would be rejected later on.
9805 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
9808 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
9809 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
9811 (create_concat_name): Idem.
9813 2005-06-10 Robert Dewar <dewar@adacore.com>
9814 Eric Botcazou <ebotcazou@adacore.com>
9815 Ben Brosgol <brosgol@adacore.com>
9816 Cyrille Comar <comar@adacore.com>
9817 Sergey Rybin <rybin@adacore.com>
9818 Pascal Obry <obry@adacore.com>
9820 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
9821 Document second argument (Ada_05) of pragma Obsolescent
9822 Add note that call to subprogram marked with pragma Obsolescent
9823 is now considered to be a violation of program Restrictions
9824 (No_Obsolescent_Features).
9825 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
9826 that only machine-dependent attributes are supported.
9829 Commented out menu lines and empty section for gnatclean examples
9831 Fix some over long lines
9832 Clarify and enhance documentation of ADA_PROJECT_PATH.
9833 Rework section 2.11.2(3) about linking with a non-GNU compiler.
9834 Mention new switch -fcallgraph-info.
9835 Mention new switch -fstack-usage.
9836 For gnatpp, replace '-notab' with '-N' and add this option to Index
9837 Corrected VMS example.
9838 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
9840 Add documentation for -gnatyu switch (unnecessary blank lines)
9841 Document new switch -U for GNAT PRETTY and GNAT METRIC
9842 Add note about Stdcall being handled as C convention on non Windows OS.
9843 Remove some junk typo in description of gnatbind -S switch
9844 Remove reference to Extensions_Allowed pragma
9845 Document the new order of the directories to be searched (source and
9846 object directories of project files before directories in ADA_*_PATH
9847 environment variables.
9849 * g-trasym.ads: Document that IRIX is supported
9851 2005-06-10 Arnaud Charlet <charlet@adacore.com>
9853 * Makefile.in: Add initialize.o when needed.
9854 Adapt to new VMS package body Symbols and subunits
9855 No specialized version of a-sytaco is needed for VxWorks.
9857 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
9858 * a-zchara.ads, a-widcha.ads: New files.
9860 * system-hpux-ia64.ads: New file.
9862 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
9863 is imported from the VxWorks kernel.
9865 2005-06-14 Robert Dewar <dewar@adacore.com>
9867 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
9868 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
9869 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
9870 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
9871 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
9872 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
9873 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
9874 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
9875 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
9876 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
9877 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
9878 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
9880 2005-06-14 Thomas Quinot <quinot@adacore.com>
9882 * xeinfo.adb: Fix typo in comment
9884 2005-06-14 Javier Miranda <miranda@adacore.com>
9886 * repinfo.ads: Fix typo in comment
9888 2005-06-14 Gary Dismukes <dismukes@adacore.com>
9890 * s-finimp.adb (Parent_Tag): Delete this imported function (function
9891 Parent_Tag is now in the visible part of Ada.Tags).
9892 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
9893 using imported function.
9895 2005-06-14 Bernard Banner <banner@adacore.com>
9897 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
9898 also apply for handling support for VxSim 653.
9900 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
9902 * xsnames.adb: Add automatic generation of snames.h.
9904 2005-06-14 Thomas Quinot <quinot@adacore.com>
9906 * gen-soccon.c: Add IP_MULTICAST_IF constant
9907 Minor reformatting and adjustments to prevent warnings.
9909 2005-06-14 Pascal Obry <obry@adacore.com>
9911 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
9913 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
9915 * trans.c (gnat_gimplify_expr): Call
9916 recompute_tree_invarant_for_addr_expr when we change
9917 the operand of the ADDR_EXPR.
9919 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9921 * misc.c: Don't include errors.h.
9923 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9925 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
9927 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
9929 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
9931 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
9933 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
9936 * Makefile.in: Make TGT_LIB behave correctly.
9938 2005-04-23 DJ Delorie <dj@redhat.com>
9940 * misc.c: Adjust warning() callers.
9942 2005-04-16 Laurent GUERBY <laurent@guerby.net>
9945 * a-nudira.adb (Value): Check for valid string.
9946 * a-nuflra.adb (Value): Likewise.
9948 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
9950 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
9952 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
9954 * adaint.c, init.c, tracebak.c: Fix comment typos.
9955 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
9957 2005-04-07 Laurent GUERBY <laurent@guerby.net>
9958 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9960 * Makefile.in: Add make ifeq define for hppa linux tasking support.
9961 * system-hpux.ads: Define Signed_Zeros to be True.
9962 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
9964 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
9966 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
9967 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
9970 2005-03-30 Tom Tromey <tromey@redhat.com>
9972 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
9974 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
9976 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
9978 2005-03-29 Robert Dewar <dewar@adacore.com>
9980 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
9981 fixed-point expression has value that is not a multiple of the Small
9984 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
9986 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
9989 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
9991 2005-03-29 Vincent Celier <celier@adacore.com>
9993 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
9994 (Build_Dynamic_Library.Version_String): Return the empty string when
9995 Lib_Version is empty or when the symbol policy is not Autonomous.
9997 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
9998 a symbol is not in the reference symbol file, increase the Major ID
9999 and set the Minor ID to 0.
10000 Use gsmatch=lequal instead of gsmatch=equal
10002 2005-03-29 Doug Rupp <rupp@adacore.com>
10004 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
10005 name and translate.
10007 2005-03-29 Javier Miranda <miranda@adacore.com>
10009 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
10010 (Inherit_DT): The first formal has been redefined as a Tag.
10011 This allows us the removal of the subprogram Get_TSD.
10012 (TSD): Replace the call to Get_TSD by the actual code.
10014 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
10015 (Make_DT): Upgrade the call to Inherit_TSD according to the
10016 new interface: the first formal is now a Tag.
10018 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
10019 redefined as a Tag.
10020 This change allows us to remove the subprogram Get_TSD.
10021 (CPP_Get_TSD): Subprogram removed.
10022 (TSD): Replace the call to CPP_Get_TSD by the actual code.
10024 * rtsfind.ads: Remove support to call the run-time
10027 2005-03-29 Robert Dewar <dewar@adacore.com>
10029 * errutil.adb, errout.adb:
10030 Minor comment updates on Line_Terminator references
10032 * par-ch10.adb: Add ??? comment about line terminator
10034 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
10035 (check dos line terminator).
10036 (Check_Line_Max_Length): New procedure, split off from the existing
10037 Check_Line_Terminator routine. Separating this out allows -gnatyf to
10038 be properly recognized.
10040 * styleg.adb: Add ??? comment for line terminator reference
10042 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
10043 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
10045 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
10046 (check dos line terminator).
10047 (Check_Line_Max_Length): New procedure, split off from the existing
10048 Check_Line_Terminator routine. Separating this out allows -gnatyf to
10049 be properly recognized.
10051 * stylesw.ads, stylesw.adb:
10052 Add handling for new -gnatyd switch (check dos line terminator)
10054 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
10055 Recognize -gnatwb/-gnatwB switches
10056 Include Warn_On_Bad_Fixed_Value for -gnatg
10059 Add line for new -gnatyd switch (check dos line terminator)
10061 * usage.adb: Add lines for -gnatwb/-gnatwB
10063 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
10065 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
10067 * gnat_ugn.texi: Fix overlong lines
10068 Document new -gnatyd switch
10069 Document new -gnatwb/-gnatwB switches
10071 2005-03-29 Ed Schonberg <schonberg@adacore.com>
10073 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
10074 order to retrieve the component list of the type, before examining
10075 individual components.
10077 * sem_type.adb (Covers): Types are compatible if one is the base type
10078 of the other, even though their base types might differ when private
10079 views are involved.
10081 2005-03-29 Thomas Quinot <quinot@adacore.com>
10083 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
10084 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
10085 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
10086 analyzed if expansion is disabled (which could otherwise cause spurious
10087 error messages if expansion has been disabled due to previous
10088 (unrelated) errors).
10090 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
10091 is disabled, the entity denoted by the argument is the access type
10092 itself, not an underlying record type, so there is no need to go back
10093 to the Corresponding_Remote_Type.
10095 2005-03-29 Gary Dismukes <dismukes@adacore.com>
10096 Robert Dewar <dewar@adacore.com>
10098 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
10099 expand a call to an instance of
10100 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
10101 Constructor actual of the instance. A class-wide membership
10102 check is also generated, to ensure that the tag passed to the instance
10103 denotes a type in the class.
10104 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
10105 of Name_Generic_Dispatching_Constructor.
10107 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
10108 05 unit for AI-260-02).
10110 * a-tgdico.ads: New file.
10112 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
10113 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
10115 * snames.ads, snames.adb (Preset_Names): Add entry for
10116 Generic_Dispatching_Constructor.
10120 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
10121 character type cases.
10122 (Analyze_Subprogram_Renaming): Add special handling for
10123 the case of renaming of stream attributes when the renaming denotes a
10124 generic formal subprogram association for an abstract formal subprogram.
10125 Check that the attribute is a primitive stream attribute (and not
10126 a class-wide stream attribute) and then rewrite the attribute name
10127 as the name of the appropriate compiler-generated stream primitive.
10129 2005-03-29 Robert Dewar <dewar@adacore.com>
10131 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
10133 (Is_Possibly_Unaligned_Object): Correct typo that
10134 resulted in inaccurate result for unaligned scalars within records.
10136 2005-03-29 Ed Schonberg <schonberg@adacore.com>
10138 * freeze.adb (Freeze_Record_Type): If the type of the component is an
10139 itype whose parent is controlled and not yet frozen, do not create a
10140 freeze node for the itype if expansion is disabled.
10142 2005-03-29 Vincent Celier <celier@adacore.com>
10144 * make.adb (Gnatmake): Don't fail if the main project file is declared
10145 as having no Ada sources. Do not display message "no sources to
10146 compile" in quiet output.
10148 2005-03-29 Doug Rupp <rupp@adacore.com>
10150 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
10153 2005-03-29 Robert Dewar <dewar@adacore.com>
10155 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
10158 2005-03-29 Robert Dewar <dewar@adacore.com>
10160 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
10161 missing TYPE Improve the error message generated when compiling a
10162 limited interface in Ada83 or Ada95 mode.
10164 2005-03-29 Robert Dewar <dewar@adacore.com>
10166 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
10167 rather than proceed ahead using a junk attribute name.
10169 2005-03-29 Vincent Celier <celier@adacore.com>
10171 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
10173 * prj-part.adb (Parse_Single_Project): Set the location of a project
10174 on its defining identifier, rather than on the reserved word "project".
10176 * prj-proc.adb (Expression): Adapt to the fact that default of external
10177 references may be string expressions, not always literal strings.
10178 (Recursive_Process): Set Display_Name equal to Name
10179 when Location is No_Location, that is when there is no actual file.
10180 Get the Display_Name of the project from the source, when it is not a
10182 (Process): Use the Display_Name in error messages
10184 * prj-strt.adb (External_Reference): Allow default to be string
10185 expressions, not only literal strings.
10187 2005-03-29 Vincent Celier <celier@adacore.com>
10189 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
10190 file and the reference symbol file to be the same file.
10192 2005-03-29 Thomas Quinot <quinot@adacore.com>
10194 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
10195 forbid conversion of a local access-to-subprogram type to a remote one.
10197 * sem_util.adb (Wrong_Type): For a record type that is the expanded
10198 equivalent type for a remote access-to-subprogram type, go back to the
10199 original RAS entity when displaying an error message, so the casing is
10200 the original source casing.
10202 2005-03-29 Robert Dewar <dewar@adacore.com>
10204 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
10207 2005-03-29 Ed Schonberg <schonberg@adacore.com>
10209 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
10210 subtype if code is being pre-analyzed, to prevent un-expanded
10211 references to protected formals, among others.
10212 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
10213 interpretation that can be a call, include the result of the call as a
10214 possible interpretation of the dereference.
10216 * sem_ch5.adb (Process_Bounds): Determine type of range by
10217 pre-analyzing a copy of the original range, and then analyze the range
10218 with the expected type.
10220 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
10221 with an overloaded prefix where not all interpretations yield an
10222 access to subprogram, do not rewrite node as a call.
10223 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
10224 the node as a call once the context identifies the interpretation of
10225 the prefix whose call yields the context type.
10226 (Valid_Conversion): For the case of a conversion between
10227 local access-to-subprogram types, check subtype conformance using
10228 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
10229 detailed error message.
10231 2005-03-29 Ed Schonberg <schonberg@adacore.com>
10233 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
10234 indicator, indicate that the formal can never be null.
10235 (Process_Formals): If a formal has a non_null indicator, insert the
10236 resulting subtype immediately before the enclosing subprogram decl,
10237 and not at the beginning of the corresponding declarative part, to
10238 prevent access before elaboration (Ada2005).
10240 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10243 * utils.c (finish_record_type): Use variable_size when setting sizes.
10245 2005-03-29 Robert Dewar <dewar@adacore.com>
10247 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
10248 guarantee Unix style line terminators for the output files, even when
10249 running on windows.
10251 2005-03-29 Robert Dewar <dewar@adacore.com>
10253 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
10254 buffer if an exception is raised.
10256 2005-03-29 Ed Falis <falis@adacore.com>
10258 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
10261 2005-03-29 Robert Dewar <dewar@adacore.com>
10263 * sem_util.ads: Minor reformatting
10264 * gnat_rm.texi: Minor editing.
10266 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
10268 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
10269 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
10271 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10273 * adaint.c (__gnat_portable_spawn): Adjust cast.
10275 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
10277 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
10279 2005-03-17 Pascal Obry <obry@adacore.com>
10281 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
10284 * expect.c (__gnat_waitpid): Moved here from adaint.c.
10285 Reimplement under Win32 using Win32 API.
10287 (__gnat_kill) [Win32]: Properly close the process handle before leaving
10290 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
10292 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
10293 (DECL_RENAMED_OBJECT): New accessor macro.
10294 (SET_DECL_RENAMED_OBJECT): New setter macro.
10296 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
10297 object in all cases. Attach the renamed object to the VAR_DECL.
10298 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
10299 field is not prescribed.
10301 * misc.c (gnat_handle_option): Handle -gnatO separately.
10302 (gnat_print_decl) <VAR_DECL>: New case.
10303 Print the DECL_RENAMED_OBJECT node.
10305 * lang.opt: Declare separate -gnatO option.
10307 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
10308 pointer, replace it with the renamed object.
10309 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
10310 pointer type if the source is not a fat pointer type whose underlying
10311 array has the same non-zero alias set as that of the destination array.
10313 2005-03-17 Javier Miranda <miranda@adacore.com>
10315 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
10316 (Get_Inheritance_Depth): Removed.
10317 (Set_Inheritance_Depth): Removed.
10319 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
10320 subprogram Get_Expanded_Name because it is not referenced by the
10323 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
10324 (CPP_Get_Inheritance_Depth): Removed.
10325 (CPP_Set_Inheritance_Depth): Removed.
10327 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
10329 2005-03-17 Robert Dewar <dewar@adacore.com>
10331 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
10332 3, since we now expect GCC 3 to do all the work.
10334 2005-03-17 Javier Miranda <miranda@adacore.com>
10336 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
10337 of one barrier to avoid wrong usage of this attribute.
10339 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
10340 First_Private_Entity.
10342 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
10343 the subprogram against wrong usage.
10344 Adapt the code to traverse the entities in the
10345 scope of a record_type because in addition to its usage regarding
10346 packages, this subprogram is also called by Expand_N_Freeze_Entity
10347 to install the visible declarations of the enclosing scope of a
10348 record_type_with_private to establish the proper visibility before
10349 freezing the entity and related subprograms.
10351 2005-03-17 Ed Schonberg <schonberg@adacore.com>
10353 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
10356 2005-03-17 Thomas Quinot <quinot@adacore.com>
10358 * exp_ch3.adb (Check_Attr): New subprogram.
10359 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
10360 into a new Check_Attr subprogram, in order to provide a more
10361 explanatory error message (including the name of the missing attribute).
10362 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
10363 subprogram determines whether a default implementation exists for a
10364 given stream attribute.
10365 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
10366 Determine whether to generate a default implementation for each stream
10367 attribute separately, as this depends on the specific attribute.
10369 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
10370 limited extension where a stream attribute is missing for a limited
10371 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
10372 generate a bogus reference to the missing attribute to prevent
10373 cascaded errors. Instead, generate a null statement.
10375 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
10376 available for a limited type if it has been specified for an ancestor
10379 2005-03-17 Ed Schonberg <schonberg@adacore.com>
10381 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
10382 entity is an operator.
10384 2005-03-17 Thomas Quinot <quinot@adacore.com>
10386 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
10387 spec, to make this predicate available to other units.
10389 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
10392 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
10393 when no distribution runtime library is available.
10395 * sem_res.adb, sem_dist.adb: Disable expansion of remote
10396 access-to-subprogram types when no distribution runtime library is
10398 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
10399 predicate available to other units.
10401 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
10402 spec, to make this predicate available to other units.
10404 2005-03-17 Vincent Celier <celier@adacore.com>
10406 * make.adb (Insert_Project_Sources): Make sure the Q is always
10409 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
10410 the default for the tree, not the global default naming.
10412 * prj-proc.adb (Recursive_Process): No need to put the default naming
10413 in the project data, it's already there.
10415 2005-03-17 Doug Rupp <rupp@adacore.com>
10417 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
10419 * 5xcrtl.ads: Renamed to...
10420 * s-crtl-vms64.ads: ...this new file
10422 2005-03-17 Robert Dewar <dewar@adacore.com>
10426 * namet.adb (Copy_One_Character): Set proper wide character encoding
10427 for upper half character if we have upper half encoding.
10429 2005-03-17 Robert Dewar <dewar@adacore.com>
10431 * par.adb (Par): Improved msg for attempt to recompile predefined unit
10433 2005-03-17 Thomas Quinot <quinot@adacore.com>
10435 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
10436 tagged limited type, the TSS is a newly built renaming declaration:
10437 insert it using Set_TSS, not Copy_TSS.
10439 2005-03-17 Javier Miranda <miranda@adacore.com>
10441 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
10442 Try_Object_Operation): Analyze the object that is accessible
10443 through the prefix of the subprogram call before we apply
10444 the transformation of the object-operation notation.
10446 2005-03-17 Jose Ruiz <ruiz@adacore.com>
10448 * s-taprob.adb (Initialize_Protection): Initialize the protected
10449 object's owner to Null_Task.
10450 (Lock): If pragma Detect_Blocking is in effect and the caller of this
10451 procedure is already the protected object's owner then Program_Error
10452 is raised. In addition the protected object's owner is updated.
10453 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
10454 of this procedure is already the protected object's owner then
10455 Program_Error is raised.
10456 In addition the protected object's owner is updated.
10457 (Unlock): Remove the ownership of the protected object.
10459 * s-taprob.ads (Protection): Add the field Owner, used to store the
10460 protected object's owner.
10461 This component is needed for detecting one type of potentially blocking
10462 operations (external calls on a protected subprogram with the same
10463 target object as that of the protected action). Document the rest of
10466 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
10467 Initialize the protected object's owner to Null_Task.
10468 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
10469 caller of this procedure is already the protected object's owner then
10470 Program_Error is raised.
10471 Do not raise Program_Error when this procedure is called from a
10473 (Unlock_Entries): Remove the ownership of the protected object.
10474 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
10475 of this procedure is already the protected object's owner then
10476 Program_Error is raised.
10477 Do not raise Program_Error when this procedure is called from
10478 a protected action.
10480 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
10481 used to store the protected object's owner.
10483 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
10484 effect and this procedure (a potentially blocking operation) is called
10485 from whithin a protected action, Program_Error is raised.
10486 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
10487 and this procedure (a potentially blocking operation) is called from
10488 whithin a protected action, Program_Error is raised.
10490 2005-03-17 Vincent Celier <celier@adacore.com>
10491 Nicolas Setton <setton@adacore.com>
10493 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
10494 switch, not supported by the linker on Darwin. Add '_' before
10495 <library>init, as this character is added unconditionally by the
10497 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
10498 correct one ".dylib". This fixes detection of the archive files when
10499 building library projects.
10501 2005-03-17 Vincent Celier <celier@adacore.com>
10503 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
10504 -gnat83, -gnat95 and -gnat05.
10506 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
10508 * gnat_ugn.texi: Document gnatmem restriction
10510 2005-03-17 Thomas Quinot <quinot@adacore.com>
10512 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
10515 2005-03-17 Robert Dewar <dewar@adacore.com>
10517 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
10518 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
10519 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
10521 * casing.adb: Comment improvements
10523 2005-03-17 Pascal Obry <obry@adacore.com>
10525 * g-expect.adb: Minor reformatting.
10527 2005-03-15 Zack Weinberg <zack@codesourcery.com>
10529 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
10530 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
10533 2005-03-15 Vincent Celier <celier@adacore.com>
10535 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
10536 Add new parameter In_Tree to specify the project tree: needed
10537 by the project manager. Adapt to changes in project manager
10538 using new parameter In_Tree.
10540 2005-03-15 Jakub Jelinek <jakub@redhat.com>
10542 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
10543 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
10544 ada/bldtools to avoid make -jN failures.
10546 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
10548 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
10549 to NULL_TREE on entry.
10551 2005-03-15 Robert Dewar <dewar@adacore.com>
10553 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
10554 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
10555 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
10556 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
10557 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
10558 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
10559 system-interix.ads, system-solaris-sparc.ads,
10560 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
10561 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
10562 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
10563 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
10564 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
10565 Compiler_System_Version to be False.
10567 * opt.ads: Add new flag Opt.Address_Is_Private
10569 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
10570 Add new parameter Compiler_System_Version to avoid checking for
10571 completeness of parameters when compiler is compiling itself.
10572 Allows old versions of GNAT to be compiled with new compiler.
10574 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
10576 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
10577 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
10579 (Stack_Base_Available): New flag.
10580 (Get_Page_Size): New overloaded functions imported from C.
10581 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
10582 PROT_ON, PROT_OFF): New constants.
10583 (mprotect): New function imported from C.
10584 (pthread_teb_t): New record type.
10586 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
10587 (Create_Task): Account for the Yellow Zone and the guard page.
10589 2005-03-15 Vincent Celier <celier@adacore.com>
10591 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10592 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
10593 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
10594 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
10595 Library_File_Name_For): Add new parameter In_Tree
10596 to specify the project tree: needed by the project manager.
10597 Adapt to changes in project manager using new parameter In_Tree.
10598 Remove local imports, use functions in System.CRTL.
10600 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
10601 to use the project manager.
10603 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
10604 In_Tree to designate the project tree. Adapt to changes in the project
10605 manager, using In_Tree.
10607 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
10608 Copy_Interface_Sources): Add new parameter In_Tree to specify the
10609 project tree: needed by the project manager.
10610 (Build_Library): Check that Arg'Length >= 6 before checking if it
10611 contains "--RTS=...".
10613 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
10614 Library_File_Name_For): Add new parameter In_Tree to specify the
10615 project tree: needed by the project manager.
10617 * prj.ads, prj.adb: Major modifications to allow several project trees
10618 in memory at the same time.
10619 Change tables to dynamic tables and hash tables to dynamic hash
10620 tables. Move tables and hash tables from Prj.Com (in the visible part)
10621 and Prj.Env (in the private part). Move some constants from the visible
10622 part to the private part. Make other constants deferred.
10623 (Project_Empty): Make it a variable, not a function
10624 (Empty_Project): Add parameter Tree. Returns the data with the default
10625 naming data of the project tree Tree.
10626 (Initialize): After updating Std_Naming_Data, copy its value to the
10627 component Naming of Project Empty.
10628 (Register_Default_Naming_Scheme): Use and update the default naming
10629 component of the project tree, instead of the global variable
10631 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
10632 Tree is not defaulted, return the default naming data of the Tree.
10633 (Initial_Buffer_Size): Constant moved from private part
10634 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
10635 variables initialized in procedure Initialize.
10636 (Add_To_Buffer): Add two in out parameters to replace global variables
10637 Buffer and Buffer_Last.
10638 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
10640 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
10642 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
10643 for the project tree.
10644 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
10645 constant at the beginning of the package spec, so that they cane be used
10646 in subprograms before their full declarations.
10647 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
10648 (Empty_Project): Add parameter of type Project_Node_Ref
10649 (Private_Project_Tree_Data): Add component Default_Naming of type
10651 (Buffer, Buffer_Last): remove global variables
10652 (Add_To_Buffer): Add two in out parameters to replace global variables
10653 Buffer and Buffer_Last.
10654 (Current_Packages_To_Check): Remove global variable
10655 (Empty_Name): Move to private part
10656 (No-Symbols): Make it a constant
10657 (Private_Project_Tree_Data): New type for the private part of the
10659 (Project_Tree_Data): New type for the data of a project tree
10660 (Project_Tree_Ref): New type to designate a project tree
10661 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
10662 for the project tree.
10664 * prj-attr.ads: Add with Table; needed, as package Prj no longer
10665 imports package Table.
10667 * prj-com.adb: Remove empty, no longer needed body
10669 * prj-com.ads: Move most of the content of this package to package Prj.
10671 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
10672 designate the project node tree and Packages_To_Check to replace
10673 global variable Current_Packages_To_Check.
10674 Add new parameters In_Tree and Packages_To_Check to local subprograms,
10675 when needed. Adapt to changes in project manager with project node tree
10678 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
10679 project tree to most subprograms. Move tables and hash tables to
10680 private part of package Prj.
10681 Adapt to changes in project manager using project tree In_Tree.
10683 * prj-makr.adb (Tree): New constant to designate the project node tree
10684 Adapt to change in project manager using project node tree Tree
10686 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
10687 display the Library_Src_Dir and the Library_Dir.
10688 Add new parameter In_Tree to designate the project node tree to most
10689 subprograms. Adapt to changes in the project manager, using project tree
10691 (Check_Naming_Scheme): Do not alter the casing on platforms where
10692 the casing of file names is not significant.
10693 (Check): Add new parameter In_Tree to designate the
10695 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
10696 designate the project tree.
10697 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
10699 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
10700 to replace those that were in the private part of package Prj.
10701 Add new parameter In__Tree to designate the project node tree to most
10702 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
10703 (Post_Parse_Context_Clause): When specifying the project node of a with
10704 clause, indicate that it is a limited with only if there is "limited"
10705 in the with clause, not necessarily when In_Limited is True.
10706 (Parse): Add new parameter In_Tree to designate the project node tree
10708 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
10709 designate the project node tree. Adapt to change in Prj.Tree with
10710 project node tree In_Tree.
10712 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
10713 tree In_Tree in the call to function Empty_Process to give its initial
10714 value to the project data Processed_Data.
10715 Add new parameters In_Tree to designate the project tree and
10716 From_Project_Node_Tree to designate the project node tree to several
10717 subprograms. Adapt to change in project manager with project tree
10718 In_Tree and project node tree From_Project_Node_Tree.
10720 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
10721 to replace those that were in the private part of package Prj.
10722 Add new parameter In_Tree to designate the project node tree to most
10723 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
10725 * prj-tree.ads, prj-tree.adb: Add new parameter of type
10726 Project_Node_Tree_Ref to most subprograms.
10727 Use this new parameter to store project nodes in the designated project
10729 (Project_Node_Tree_Ref): New type to designate a project node tree
10730 (Tree_Private_Part): Change table to dynamic table and hash tables to
10731 dynamic hash tables.
10733 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
10734 the project tree to most subprograms. Adapt to changes in project
10735 manager using project tree In_Tree.
10737 * makegpr.adb (Project_Tree): New constant needed to use project
10740 2005-03-15 Olivier Hainque <hainque@adacore.com>
10742 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
10743 for sigactions with SA_SIGINFO set. Call
10744 __gnat_adjust_context_for_raise before raising, to perform the
10745 potentially required adjustments to the machine context for the GCC
10748 * raise.h (__gnat_adjust_context_for_raise): New prototype.
10750 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
10751 Adjust PC by one in the provided machine context.
10752 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
10753 so that the handler is passed the context structure to adjust prior to
10755 (__gnat_error_handler) HPUX: Adjust the signature to match what an
10756 SA_SIGINFO sigaction should look like. Call
10757 __gnat_adjust_context_for_raise before actually raising.
10758 (__gnat_adjust_context_for_raise): Default noop to help PC
10759 adjustments before raise from signal handlers.
10760 (__gnat_error_handler): Indirectly call a predicate function to
10761 determine if a condition should be resignaled or not.
10762 (__gnat_set_resignal_predicate): User interface to modify the predicate.
10763 (__gnat_default_resignal_p): Default GNAT predicate.
10765 2005-03-15 Doug Rupp <rupp@adacore.com>
10767 * adaint.c: Prefix #include of VMS system header files with vms/
10768 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
10769 Do not define a dummy function "convert_addresses" under Darwin,
10772 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
10775 2005-03-15 Nicolas Setton <setton@adacore.com>
10777 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
10780 2005-03-15 Robert Dewar <dewar@adacore.com>
10782 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
10785 * a-retide.ads: Minor comment changes
10787 2005-03-15 Robert Dewar <dewar@adacore.com>
10789 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
10790 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
10791 Realloc_For_Chunk to private part of package.
10792 New subprograms for AI-301
10794 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
10795 Get_Line procedure.
10796 Avoid unnecessary use of Get/Set_Wide_String
10798 2005-03-15 Robert Dewar <dewar@adacore.com>
10802 * a-stunau.ads, a-stunau.adb:
10803 Change interface to allow efficient (and correct) implementation
10804 The previous changes to allow extra space in unbounded strings had
10805 left this interface a bit broken.
10807 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
10809 * g-spipat.ads, g-spipat.adb: New interface for Get_String
10810 Minor reformatting (function specs)
10812 * g-spitbo.adb: New interface for Get_String
10814 * g-spitbo.ads: Minor reformatting
10816 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
10818 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
10820 2005-03-15 Javier Miranda <miranda@adacore.com>
10821 Robert Dewar <dewar@adacore.com>
10822 Thomas Quinot <quinot@adacore.com>
10823 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10825 * atree.ads, atree.adb: Add support for Elist24 field
10827 * atree.h: Fix wrong definition of Field27
10828 Add support for Elist16 field
10829 Add support for Elist24 field
10831 * einfo.ads, einfo.adb (Abstract_Interfaces,
10832 Set_Abstract_Interfaces): New subprograms.
10833 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
10835 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
10836 entities rather than a single node.
10837 (Is_Interface, Set_Is_Interface): New subprogram
10838 (First_Tag_Component): New syntesized attribute
10839 (Next_Tag_Component): New synthesized attribute
10840 (Write_Entity_Flags): Upgraded to write Is_Interface
10841 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
10842 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
10843 (Task_Body_Procedure): New subprogram to read this attribute.
10844 (Set_Task_Body_Procedure): New subprogram to set this attribute.
10845 (Has_Controlled_Component): Now applies to all entities.
10846 This is only a documentation change, since it always worked to apply
10847 this to other than composite types (yielding false), but now this is
10849 Update documentation on Must_Be_Byte_Aligned for new spec
10851 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
10852 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
10853 uses of the Access_Disp_Table attribute to reference the first dispatch
10854 table associated with a tagged type. As
10855 part of the implementation of abstract interface types,
10856 Access_Disp_Table has been redefined to contain a list of dispatch
10857 tables (rather than a single dispatch table).
10858 Similarly, upgrade all the references to Tag_Component by the
10859 new attribute First_Tag_Component.
10860 (Find_Inherited_TSS): Moved to exp_tss.
10861 Clean up test in Expand_N_Object_Declaration for cases
10862 where we need to do a separate assignment of the initial value.
10863 (Expand_N_Object_Declaration): If the expression in the
10864 declaration of a tagged type is an aggregate, no need to generate an
10865 additional tag assignment.
10866 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
10868 Bit packed array ops are only called if operands are known to be
10870 (Component_Equality): When returning an N_Raise_Program_Error statement,
10871 ensure that its Etype is set to Empty to avoid confusing GIGI (which
10872 expects that only expressions have a bona fide type).
10873 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
10874 determine the amount of data to be copied.
10876 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
10877 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
10878 INTERFACE_TYPE_DEFINITION ::=
10879 [limited | task | protected | synchronized] interface
10880 [AND interface_list]
10882 * par-ch3.adb (P_Type_Declaration): Modified to give support to
10884 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
10886 (P_Interface_Type_Definition): New subprogram that parses the new
10887 syntax rule of Ada 2005 interfaces
10888 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
10889 messages by the correct RENAMES (quotes removed).
10891 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
10892 attribute First_Tag_Component.
10894 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
10895 (Interface_List, Set_Interface_List): New subprograms.
10896 (Interface_Present, Set_Interface_Present): New subprograms.
10897 (Limited_Present, Set_Limited_Present): Available also in derived
10898 type definition nodes.
10899 (Protected_Present, Set_Protected_Present): Available also in
10900 record type definition and
10901 derived type definition nodes.
10902 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
10903 (Task_Present, Set_Task_Present): New subprogram.
10904 (Task_Body_Procedure): Removed.
10905 (Set_Task_Body_Procedure): Removed.
10906 These subprogram have been removed because the attribute
10907 Task_Body_Procedure has been moved to the corresponding task type
10908 or task subtype entity to leave a field free to store the list
10909 of interfaces implemented by a task (for AI-345)
10910 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
10911 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
10912 expression flag Do_Range_Check
10913 (Exception_Junk): Change to Flag7 to accomodate above change
10914 (Box_Present, Default_Name, Specification, Set_Box_Present,
10915 Set_Default_Name, Set_Specification): Expand the expression
10916 "X in N_Formal_Subprogram_Declaration" into the corresponding
10917 two comparisons. Required to use the csinfo tool.
10919 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
10920 "with string" given.
10922 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
10925 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
10928 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
10929 attribute Task_Body_Procedure rather than the old semantic field that
10930 was available in the task_type_declaration node.
10932 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
10933 interface type definitions.
10934 (P_Formal_Derived_Type_Definition): Modified to handle the list of
10937 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
10938 task type declaration.
10939 (P_Protected): Modified to handle the list of interfaces in a
10940 protected type declaration.
10942 2005-03-15 Doug Rupp <rupp@adacore.com>
10943 Vincent Celier <celier@adacore.com>
10945 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
10946 (Gen_Output_File_C): Likewise.
10947 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
10949 2005-03-15 Thomas Quinot <quinot@adacore.com>
10951 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
10952 is an N_Raise_Constraint_Error node, create a new copy of it without
10953 going through a call to Duplicate_Subexpr.
10955 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
10956 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10957 Nicolas Setton <setton@adacore.com>
10958 Ed Schonberg <schonberg@adacore.com>
10965 * decl.c (gnat_to_gnu_field): Reject aliased components with a
10966 representation clause that prescribes a size not equal to the rounded
10967 size of their types.
10968 (gnat_to_gnu_entity, case E_Component): Always look at
10969 Original_Record_Component if Present and not the entity.
10970 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
10971 of tagged extension types by not making field for components that are
10973 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
10974 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
10975 expression to the type of the object when the object is constant.
10976 Reverse defer_debug_incomplete_list before traversing it, so that trees
10977 are processed in the order at which they were added to the list. This
10978 order is important when using the stabs debug format.
10979 If we are deferring the output of debug information, also defer this
10980 output for a function return type.
10981 When adding fields to a record, prevent emitting debug information
10982 for incomplete records, emit the information only when the record is
10984 (components_to_record): New parameter defer_debug.
10985 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
10986 (gnat_to_gnu_field_decl): New function.
10987 (substitution_list, annotate_rep): Call it.
10988 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
10989 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
10990 No longer update discriminants to not be a COMPONENT_REF.
10991 (copy_alias_set): Strip padding from input type; also handle
10992 unconstrained arrays properly.
10994 * gigi.h (write_record_type_debug_info): New function.
10995 Convert to use ANSI-style prototypes. Remove unused
10996 declarations for emit_stack_check, elab_all_gnat and
10997 set_second_error_entity.
10998 (gnat_to_gnu_field_decl): New decl.
11000 * utils.c (write_record_type_debug_info): New function.
11001 (finish_record_type): Delegate generation of debug information to
11002 write_record_type_debug_info.
11003 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
11004 (update_pointer_to): Fix pasto.
11005 (convert) <UNION_TYPE>: Accept slight type variations when
11006 converting to an unchecked union type.
11008 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
11009 replace the N_Freeze_Entity with a null statement.
11011 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
11012 within a constrained subcomponent of an enclosing record, place the
11013 freeze nodes in the scope stack entry for the enclosing record.
11014 (Undelay_Type): New Subprogram.
11015 (Set_Small_Size): Pass T, the type to modify; all callers changed.
11016 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
11017 within records; allow them to have freeze nodes if their base types
11020 * exp_util.adb (Remove_Side_Effects): Properly test for
11021 Expansion_Delayed and handle case when it's inside an
11022 N_Qualified_Expression.
11024 * sem_ch3.adb (Derived_Type_Declaration): New predicate
11025 Comes_From_Generic, to recognize accurately that the parent type in a
11026 derived type declaration can be traced back to a formal type, because
11027 it is one or is derived from one, or because its completion is derived
11029 (Constrain_Component_Type): If component comes from source and has no
11030 explicit constraint, no need to constrain in in a subtype of the
11032 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
11033 Minor change to propagate Is_Ada_2005 flag
11035 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
11036 Expansion_Delayed is False.
11037 (assoc_to_constructor): Ignore fields that have a
11038 Corresponding_Discriminant.
11039 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
11040 function returns "by target", dereference the target pointer using the
11041 type of the actual return value.
11042 <all>: Be prepared for a null gnu_result.
11043 (processed_inline_subprograms): Check flag_really_no_inline
11044 instead of flag_no_inline.
11045 (set_second_error_entity): Remove unused function.
11046 (gnat_to_gnu, case N_Selected_Component): Call
11047 gnat_to_gnu_field_decl.
11048 (assoc_to_constructor): Likewise.
11050 2005-03-15 Robert Dewar <dewar@adacore.com>
11051 Ed Schonberg <schonberg@adacore.com>
11052 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11054 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
11055 Must_Be_Byte_Aligned for cases where we do not need to use a
11056 System.Pack_nn unit.
11058 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
11060 Needed now that we do some processing for IN parameters as well. This
11061 may well fix some unrelated errors.
11062 (Expand_Call): Handle case of unaligned objects (in particular those
11063 that come from packed arrays).
11064 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
11065 renamed entity is an inherited operation, re-expand the call using the
11066 original operation, which is the one to call.
11067 Detect attempt to inline parameterless recursive subprogram.
11068 (Represented_As_Scalar): Fix to work properly with private types
11069 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
11070 accurate estimate. Yields True in far fewer cases than before,
11071 improving the quality of code that depends on this test.
11073 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
11074 over both visible and private declarations to remove them from tree,
11075 and mark subprograms declared in package as eliminated, to prevent
11076 spurious use in subsequent compilation of generic units in the context.
11078 * exp_util.ads: Minor cleanup in variable names
11080 * sem_eval.ads, sem_eval.adb: Minor reformatting
11081 (Compile_Time_Known_Bounds): New function
11083 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11085 * exp_ch7.adb (Convert_View): Use base types of underlying types when
11086 determining whether an unchecked conversion is needed for the argument
11087 of an initialization call.
11089 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11091 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
11092 that appears in the instantiation rather than the internal subtype
11093 generated in the wrapper package, to avoid anomalies in gigi when the
11094 target is derived from a private type whose full view is an access type.
11096 2005-03-15 Robert Dewar <dewar@adacore.com>
11098 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
11100 Add documentation to replace the use of this flag
11101 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
11104 2005-03-15 Thomas Quinot <quinot@adacore.com>
11106 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
11107 here from exp_attr so it can be shared between exp_attr and exp_dist.
11108 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
11109 all TSS names, not a subset thereof, and the previous name introduced
11110 an unnecessarily confusion that a distinction might exist between
11111 "OK" TSS names and some "not OK" TSS names.
11113 2005-03-15 Doug Rupp <rupp@adacore.com>
11115 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
11118 2005-03-15 Pascal Obry <obry@adacore.com>
11119 Eric Botcazou <ebotcazou@adacore.com>
11124 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
11125 when IN_RTS. This is to work around a bootstrap path problem.
11127 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
11128 table and pass it to __gnat_install_SEH_handler().
11129 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
11131 * lang.opt: Fix specification of -fRTS=.
11133 2005-03-15 Doug Rupp <rupp@adacore.com>
11134 Bernard Banner <banner@adacore.com>
11135 Vincent Celier <celier@adacore.com>
11136 Arnaud Charlet <charlet@adacore.com>
11139 This change works fine when gnatlib is built from the gcc directory,
11140 but does not work when using the libada Makefile, since GCC_FOR_TARGET
11141 is not passed to ada/Makefile.in, so more work is needed by a
11142 Makefile/configure expert.
11144 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
11145 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
11146 Setup gnatlink switch -M for x86_64 linux, as it is already setup
11148 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
11149 Run ranlib on libgccprefix.a
11150 Define PREFIX_OBJS for Darwin, to build libgccprefix.
11151 (ADA_INCLUDE_SRCS): Split Ada packages.
11153 2005-03-15 Robert Dewar <dewar@adacore.com>
11155 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
11157 * impunit.adb: Add GNAT.UTF_32
11159 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
11161 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
11162 now uses GNAT.UTF_32).
11164 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
11165 capabilities for categorizing characters using Unicode categories
11167 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11169 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
11170 instantiation that has been rewritten as a package body, retrieve spec
11171 to generate proper name for implicit_with_clause.
11172 (Install_Parents): Recognize a parent that is an instantiation but has
11173 been rewritten as a package declaration during analysis.
11175 2005-03-15 Javier Miranda <miranda@adacore.com>
11176 Ed Schonberg <schonberg@adacore.com>
11178 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
11179 parameter reported some error we immediately return. This improves the
11180 behaviour of the frontend in case of errors.
11181 (Install_Parent, Remove_Parent): Introduce new flag
11182 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
11183 ancestor of a generic child unit, when the child is being instantiated.
11184 (Inline_Instance_Body): If we are compiling the private
11185 part or the body of a child unit, restore the proper visibility of the
11186 parents after compiling the instance body.
11188 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11189 Javier Miranda <miranda@adacore.com>
11192 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
11193 of a private type, in which case it is underlying_type that denotes
11194 the proper task. Also modified to use the new entity attribute
11195 that is directly available in the task type and task subtype entities
11196 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
11197 arrays when other dimensions than the first are constrained by
11198 discriminants of an enclosing record.
11199 (Insert_Explicit_Dereference): If the prefix is an indexed component or
11200 a combination of indexed and selected components, find ultimate entity
11201 and generate the appropriate reference for it, to suppress spurious
11203 (Note_Possible_Modification): If an entity name has no entity, return.
11204 (Is_Variable): A function call never denotes a variable.
11205 (Requires_Transient_Scope): For record types, recurse only on
11206 components, not on internal subtypes that may have been generated for
11207 constrained components.
11209 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11211 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
11212 Eliminated as candidates for resolution. Both efficient, and avoids
11213 anomalies with operators declared in deleted code.
11214 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
11215 expansion is disabled (as when compiling a generic) to prevent spurious
11216 warnings on prefixes of selected components.
11218 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11220 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
11221 attached to a list before checking whether it appears in the private
11222 declarations of the current package.
11223 (Make_Inequality_Operator): Insert declaration in proper declarative
11224 list rather than just setting the Parent field, so that
11225 Is_Private_Declaration can handle it properly.
11227 2005-03-15 Ed Schonberg <schonberg@adacore.com>
11229 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
11230 a renaming a body, check that the renamed subprogram in not intrinsic.
11231 (Find_Direct_Name): If several use_visible entities hide
11232 each other, and the context is a predefined file compiled through
11233 rtsfind, keep only the entity that comes from a predefined file.
11235 2005-03-15 Geert Bosch <bosch@adacore.com>
11237 * s-fatgen.adb (Valid): Extend special exceptions to account for long
11238 long float padding to also cover AMD64 and IA64.
11240 2005-03-15 Gary Dismukes <dismukes@adacore.com>
11242 * s-imgwch.adb: Add with and use of Interfaces.
11243 (Img_Wide_Character): Change type of Val to Unsigned_16.
11244 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
11246 2005-03-15 Matthew Gingell <gingell@adacore.com>
11248 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
11250 2005-03-15 Robert Dewar <dewar@adacore.com>
11252 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
11254 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
11256 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
11258 2005-03-15 Robert Dewar <dewar@adacore.com>
11260 * s-bitops.adb, s-bitops.ads,
11261 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
11262 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
11263 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
11264 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
11265 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
11266 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
11267 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
11268 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
11271 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
11273 * utils2.c (build_binary_op): Fix typo.
11275 2005-03-15 Doug Rupp <rupp@adacore.com>
11277 * s-crtl.ads (popen,pclose): New imports.
11279 2005-03-15 Cyrille Comar <comar@adacore.com>
11281 * comperr.adb (Compiler_Abort): remove references to obsolete
11282 procedures in the bug boxes for various GNAT builds.
11284 2005-03-15 Vincent Celier <celier@adacore.com>
11286 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
11288 2005-03-15 Geert Bosch <bosch@adacore.com>
11289 Arnaud Charlet <charlet@adacore.com>
11290 Robert Dewar <dewar@adacore.com>
11291 Cyrille Comar <comar@adacore.com>
11292 Sergey Rybin <rybin@adacore.com>
11294 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
11295 too specific and long-winded to be appropriate for the GNAT User's
11297 Warn about use of GCC switches not documented in the GNAT User's Guide,
11298 as these may cause generated code to not conform to Ada semantics.
11299 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
11300 Add documentation for -gnat95 and -gnat05 switches
11301 Remove paragraph documenting obsolete way to refer to third party
11303 Add a few references to Ada_05 that were missing.
11304 Update documentation on -gnatZ/-gnatL.
11305 Document limitation when using -m64 under Solaris.
11306 Change the "Name Casing" subsection of the pretty-printer section
11307 according to the changes in the dictionary processing.
11309 * gnat_rm.texi: Document the Ada_05 pragma.
11310 Section on record representation clauses describes the new more
11311 relaxed rules about placement of large packed bit array components.
11312 Add documentation of GNAT.UTF_32
11314 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
11316 * misc.c (gnat_post_options): Turn off structural
11319 2005-03-08 Laurent Guerby <laurent@guerby.net>
11321 * system-linux-sparc.ads: Fix typo in previous commit.
11323 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
11324 Laurent Guerby <laurent@guerby.net>
11327 * system-linux-sparc.ads: New.
11328 * Makefile.in: Add sparc linux entry.
11330 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
11332 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
11333 parameters as unused.
11335 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
11336 Partial merge from libada-gnattools-branch:
11338 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
11339 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
11340 into code in gnattools/Makefile.in. Remove direct dependencies on
11341 stamp-tools by tools clauses.
11342 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
11343 * config-lang.in: Add gnattools to $lang_dirs.
11345 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
11348 * utils.c (gnat_type_for_mode): Return null instead of ICE because
11349 we asked for an unknown mode.
11351 2005-02-12 Richard Henderson <rth@redhat.com>
11353 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
11354 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
11356 2005-02-10 Andreas Jaeger <aj@suse.de>
11358 * init.c (__gnat_initialize): Mark parameter as unused.
11360 2005-02-09 Doug Rupp <rupp@adacore.com>
11362 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
11363 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
11365 2005-02-09 Doug Rupp <rupp@adacore.com>
11367 * gnatchop.adb (dup, dup2),
11368 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
11370 * gnatlbr.adb (mkdir),
11371 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
11373 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
11375 2005-02-09 Doug Rupp <rupp@adacore.com>
11377 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
11379 2005-02-09 Robert Dewar <dewar@adacore.com>
11380 Thomas Quinot <quinot@adacore.com>
11381 Javier Miranda <miranda@adacore.com>
11382 Pascal Obry <obry@adacore.com>
11383 Ed Schonberg <schonberg@adacore.com>
11384 Doug Rupp <rupp@adacore.com>
11385 Gary Dismukes <dismukes@adacore.com>
11386 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11388 * g-zstspl.ads: New file.
11390 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
11392 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
11394 Add definition of Wide_Wide_Space for AI-285
11396 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
11397 interface (to support Ada 95 and Ada 2005 units).
11398 Add Unbounded_IO files
11399 Add entries for Wide_Wide packages for AI-285
11400 Add list of containers packages to Ada 2005 unit list
11402 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
11403 support new Unbounded_IO package cleanly.
11405 * g-utf_32.ads, g-utf_32.adb: New files.
11407 * Makefile.rtl: Add entry for g-utf_32
11408 Add new files for Unbounded_IO
11409 Adjust make file for new AI-285 wide wide packages
11410 Add AI-302 containers to the run time.
11412 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
11413 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
11414 subprograms for AI-301.
11416 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
11418 * a-stunau.ads: Minor comment correction
11420 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
11422 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
11423 (Check_RPC): Update to match changes in expanded code.
11424 Clean up unused entity.
11426 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
11427 was not taken into account.
11428 This includes proper initialization with Normalize_Scalars.
11429 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
11430 normalize scalars cases (particularly the latter) to do a better job
11431 of finding invalid representations.
11433 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
11435 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
11438 * exp_dist.adb: Add support for wide wide character type
11439 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
11440 private part, generate stub bodies at the end of the private part,
11441 not the visible part.
11442 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
11444 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
11445 generic wrapper to execute final processing after completing the
11446 expansion of the RPC receiver for an RACW.
11448 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
11449 packages and attributes.
11450 (Preset_Names): Addition of the new reserved words of Ada 2005,
11451 that is interface, overriding and synchronized.
11452 (Get_Pragma_Id): Give support to the use of the new reserved word
11453 "interface" as a pragma name.
11454 (Is_Pragma_Name): Give support to the use of the new reserved word
11455 "interface" as a pragma name.
11456 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
11457 attribute implementation.
11459 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
11460 checks to entities that are output parameters of Asm operations.
11461 Handle the Stream_Size attribute.
11462 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
11464 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
11466 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
11467 for second parameter being 0.0.
11468 Add support for wide wide character type.
11469 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
11471 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
11472 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
11473 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
11474 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
11475 for wide wide character cases.
11477 * cstand.adb: Create entities for Wide_Wide_Character and
11480 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
11481 accordance with AI-258.
11482 Add new declarations for 16/32 bit C character types (Part of AI285)
11484 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
11485 (Obsolescent_Warning): New field
11486 (Rep_Clause): New local subprogram used to share code. Returns the rep
11487 clause for which the name is given in parameter.
11488 (Has_Stream_Size_Clause): New routine.
11489 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
11490 (Address_Clause): Implementation is now using Rep_Clause.
11491 (Alignment_Clause): Idem.
11492 (Size_Clause): Idem.
11494 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
11495 entity in non-Ada 2005 mode and generate warning.
11497 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
11498 (Prag): Code cleanup. Remove old gnat pragma "overriding"
11500 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
11501 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
11502 on the named unit if the pragma is not in the current compilation unit,
11503 so that elaboration calls in the current unit can set up an elaboration
11504 dependency on the named unit, as needed.
11505 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
11506 subprogram as well as for subprograms declared within a package.
11507 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
11510 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
11511 to z) to avoid some instances of duplication for Wide_Wide packages.
11513 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
11516 * scn.adb: Char_Literal_Value field is now a Uint
11518 * scng.adb: Significant rewrite to handle new Ada 2005 features
11519 allowing wide and wide wide characters in program text, e.g. for
11520 identifiers, as described in AI-285.
11521 (Set_Reserved): New procedure, makes setting up keywords cleaner.
11522 (Initialize_Scanner): Register the new reserved words of Ada 2005.
11523 (Scan): Give support to the new reserved words.
11525 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
11526 warning notifying that interface, overriding, and synchronized are
11527 new reserved words.
11528 (P_Pragma): Allow the use of the new reserved word "interface" as
11531 * gnatls.adb, gnatbind.adb,
11532 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
11533 identifiers named "interface" to "SAL_Interface".
11535 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
11536 (Structured Exception handling).
11537 (Gen_Main_C): Idem.
11540 (Gen_Main_Ada): Set the default exit code if specified.
11541 (Gen_Main_C): Likewise.
11543 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
11544 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
11546 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
11549 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
11550 has a collision with the new Ada 2005 "interface" reserved word.
11552 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
11553 generate a warning notifying that interface, overriding, and
11554 synchronized are new reserved words.
11556 * scans.ads (Token_Type): Addition of the tokens corresponding to the
11557 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
11558 and Tok_Synchronized.
11560 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
11561 "dispatching" rather than "primitive" operations, since dispatching
11562 calls are now allowed to abstract formal subprograms (which are not
11564 Char_Literal_Value field is now a Uint
11565 (Resolve_Slice): If the prefix is an access to an unconstrained array,
11566 compute the actual subtype of the designated object to impose the proper
11568 (Resolve_Selected_Component): Do not insert an access check if the
11569 prefix is an access type: such a node is expanded into an explicit
11570 dereference, on which the access check is performed anyway. Removes
11571 expensive duplicate checks.
11572 (Resolve_Call): Use new flag Is_Obsolescent and field
11573 Obsolescent_Warning so that pragma Obsolescent works on library
11575 Add support for wide wide character type
11576 (Resolve_Allocator): Replace the error message on wrong null-exclusion
11577 value by a warning message.
11578 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
11579 as fixed-point, and one of the operands is non-static and universal, it
11580 can only be an illegal exponentiation operation, in which case there is
11581 no real value to retrieve.
11583 * exp_strm.adb: Add support for wide wide character type
11584 (Build_Elementary_Input_Call): Compute the size of the stream element by
11585 querying the rep chain to find the Stream_Attribute attribute value.
11586 (Build_Elementary_Write_Call): Ditto.
11588 * sem_aggr.adb: Char_Literal_Value field is now a Uint
11589 Add support for wide wide character type
11590 Replace the error messages on wrong null-exclusion value by warnings
11591 as described in Ada 2005.
11592 (Resolve_Extension_Aggregate): Document the fact that the error
11593 message on class-wide expressions in extensions aggregates.
11595 * sem_case.adb: Add support for wide wide character type
11597 * sem_ch13.adb: Add support for wide wide character type
11598 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
11600 * sem_ch3.adb: Add support for wide wide character type
11601 (Process_Subtype): If constraint is illegal for the type, set Ekind of
11602 now-useless Itype, to prevent cascaded errors on a compiler built
11605 * sem_ch8.adb: Add with and use of Sem_Disp.
11606 (Analyze_Subprogram_Renaming): Replace unclean uses of
11607 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
11608 of Corresponding_Spec to Empty).
11609 (Attribute_Renaming): Replace use of Corresponding_Spec with
11610 Corresponding_ Formal_Spec and simplify condition.
11611 (Use_One_Package): Check that scope of homonym of identifier is defined,
11612 before checking whether it is a wrapper package.
11613 Add support for wide wide character type
11615 * sem_eval.adb: Add support for wide wide character type.
11616 (Eval_Arithmetic_Op): Check for compile time known signed integer
11617 overflow in the non-static case.
11618 (Subtypes_Statically_Match): A formal scalar type and its base type do
11619 not statically match.
11621 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
11622 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
11624 (Unit_Declaration_Node): Ditto.
11625 (Is_Variable_Prefix): For the case of an indexed component whose prefix
11626 has a packed array type, the prefix has been rewritten into a type
11627 conversion. Determine variable-ness from the converted expression.
11628 Handle wide wide character cases.
11630 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
11632 * stringt.ads, stringt.adb: Handle full UTF-32 range.
11633 Remove ["0A"] from comment, since it can look like a line terminator.
11634 Currently we don't permit this, but this is under discussion by the
11635 ARG, and it is easy enough to use a different example.
11637 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
11638 handling UTF-32 encoding for wide wide character.
11639 Implement new brackets coding ["hhhhhhhh"]
11640 Add UTF-8 encodings for full UTF-32 range
11642 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
11644 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
11645 bit range Add full UTF-32 support.
11646 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
11647 notify that constraint error will be raised at run-time
11648 because a null value is assigned to a null-excluding object.
11649 Remove some obsolete declarations and make Char_Code
11652 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
11653 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
11654 Rcheck subprograms.
11656 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
11657 wrong null-exclusion value by a warning message.
11658 (Enable_Range_Check): Do range check if the prefix is an
11659 explicit dereference whose designated object is an unconstrained array.
11660 Current algorithm for removing duplicate checks is over-eager in this
11663 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
11664 null-exclusion value by a warning message
11666 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
11667 completely. Add support for Uint2 field
11669 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
11670 exp_prag.adb: Char_Literal_Value field is now a Uint.
11672 * exp_util.adb (Insert_Actions): Replace
11673 N_Formal_Subprogram_Declaration by
11674 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
11675 Char_Literal_Value field is now a Uint.
11677 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
11678 defined for subprogram renaming declarations. When set, the field
11679 indicates the defining entity of a corresponding formal subprogram
11680 when the renaming corresponds to a formal subprogram association in an
11682 (Set_Corresponding_Formal_Spec): New procedure to return
11683 Corresponding_Formal_Spec field.
11684 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
11685 (which is now a subtype).
11686 Char_Literal_Value field is now a Uint
11688 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
11689 pointer to the base of the dispatch table.
11690 Minor changes to comments.
11691 (Controlling_Type): New function for determining the tagged type
11692 associated with a tagged primitive subprogram.
11693 (Expand_Dispatching_Call): Add support for a controlling actual that is
11694 directly a value of type Ada.Tag rather than a tagged object.
11696 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
11697 describing the new layout.
11698 (Dispatch_Table): The expander computes the actual array size, allocates
11699 the Dispatch_Table record accordingly, and generates code that displaces
11700 the base of the record after the Typeinfo_Ptr component. The access to
11701 these components is done by means of local functions.
11702 (Offset_To_Top): New function.
11703 (Typeinfo_Ptr): New function.
11704 (Get_TSD): Modified to access the new position of the TSD.
11705 (Set_TSD): Modified to save the TSD in its new position.
11707 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
11708 case of formal abstract subprograms. Add check and message for -gnat05.
11711 * sem_ch12.adb: Add with and use for Sem_Disp.
11712 (Analyze_Associations): Minor change from "=" to "in" for use of
11713 N_Formal_Subtype_Declaration (which is now a subtype).
11714 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
11715 N_Formal_Subtype_Declaration (which is now a subtype).
11716 (Analyze_Formal_Subprogram): Add handling for
11717 N_Formal_Abstract_Subprogram, marking the formal as abstract and
11718 dispatching, setting the controlling status of the formal parameters
11719 and result, and issuing an error if there is no controlling type for
11720 the formal subprogram.
11721 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
11722 which is an unclean use of that field, we set the new field
11723 Corresponding_Formal_Spec to make the formal subprogram available to
11724 processing in Analyze_Subprogram_Declaration.
11725 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
11726 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
11727 Constrained, so that it is is does not statically match its anonymous
11730 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
11731 abstract formal subprograms in error check for functions returning
11732 abstract types. Set scope of new designator for
11733 a parameterless subprogram, so that it is available when checking the
11734 body for nested subprograms, before full analysis of said body.
11735 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
11736 subprogram only if inner one comes from source.
11737 (Analyze_Function_Call): If the call is given in object notation, the
11738 analysis of the name rewrites the node and analyzes it with the proper
11739 argument list. After analyzing the name, if the call has been rewritten
11740 and the result type is set, no further analysis is needed.
11741 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
11742 mark in function specification, in a context where the formals are
11743 visible and hide outer homographs.
11745 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
11746 as the tagged type for the cases of abstract formal subprograms and
11747 renamings of those. Clean up spec comments.
11748 (Check_Dispatching_Context): Add error message to indicate "abstract
11749 procedure", covering the case of a call to a formal abstract procedure
11750 that has statically tagged operands.
11751 (Check_Dispatching_Call): Check for the case of an actual given by
11752 a tag-indeterminate function call whose type is an ancestor of the
11753 containing call's associated tagged type. This situation can occur
11754 for inherited primitives with function defaults. In this case we
11755 use the tagged type's tag directly as the controlling argument for
11757 (Expand_Call): Name change on call to Expand_Dispatch_Call.
11759 * sprint.adb (Sprint_Node_Actual): Split
11760 N_Formal_Subprogram_Declaration into two alternatives for the new
11761 cases N_Formal_Abstract_Subprogram_Declaration and
11762 N_Formal_Concrete_Subprogram_Declaration.
11763 Char_Literal_Value field is now a Uint.
11765 * trans.c: Get rid of junk Uint2 reference.
11766 Char_Literal_Value field is now a Uint.
11767 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
11768 (gigi): Correct third arg to gimplify_body.
11770 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
11771 (TYPE_LANG_FLAG_0): Check for record or union.
11773 * treepr.adb: Char_Literal_Value field is now a Uint
11775 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
11778 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
11779 Add full UTF-32 support
11780 Char_Code is now 32 bits
11782 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
11783 wide character UTF_32 line terminators.
11784 Initialize Main_Source_File to avoid error when no main
11787 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
11788 (Main_Source_File) when no main source has been loaded, to avoid
11791 2005-02-09 Robert Dewar <dewar@adacore.com>
11793 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
11794 Fix name of Set routine
11796 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
11799 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
11800 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
11803 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
11804 forms of Get_Line subprograms for AI-301.
11806 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
11807 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
11808 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
11809 a-stwima.ads: Minor reformatting.
11811 2005-02-09 Doug Rupp <rupp@adacore.com>
11812 Thomas Quinot <quinot@adacore.com>
11814 * adaint.c, adaint.h
11815 [VMS] (to_ptr32): New function.
11816 (MAYBE_TO_PTR32): New macro.
11817 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
11819 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
11820 [VMS] (#define fork()): Remove since unneccessary.
11821 (__gnat_set_close_on_exec): New routine to support
11822 GNAT.OS_Lib.Set_Close_On_Exec.
11824 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
11825 the parent side as close-on-exec so that they are not inherited by the
11828 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
11829 set or clear the FD_CLOEXEC flag on a file descriptor.
11831 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
11832 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11834 Fix for c330001 - PR ada/19386
11837 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
11838 on the field if Pragma Component_Alignment (Storage_Unit).
11839 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
11840 side-effects as if it were a constant; also make SAVE_EXPR to protect
11842 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
11844 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
11845 (components_to_record): Test it.
11846 Fix improper usage of REFERENCE_CLASS_P.
11848 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
11851 * utils2.c: Minor reformatting.
11853 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
11854 handle other cases like RECORD_TYPE.
11856 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
11858 2005-02-09 Ed Schonberg <schonberg@adacore.com>
11860 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
11861 component of an array of arrays in an assignment context, and the
11862 aggregate has component associations that require sliding on
11863 assignment, force reanalysis of the aggregate to generate a temporary
11864 before the assignment.
11865 (Must_Slide): Make global to the package, for use in Gen_Assign.
11867 2005-02-09 Ed Schonberg <schonberg@adacore.com>
11869 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
11870 unchecked union with no inferable discriminants, return a
11871 Raise_Program_Error node, rather than inserting it at the point the
11873 (Expand_Record_Equality, Component_Equality): Handle properly the case
11874 where some subcomponent is an unchecked union whose generated equality
11875 code raises program error.
11877 2005-02-09 Doug Rupp <rupp@adacore.com>
11879 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
11880 [VMS] (#define exit hack): Remove.
11882 2005-02-09 Pascal Obry <obry@adacore.com>
11883 Arnaud Charlet <charlet@adacore.com>
11885 * init.c (__gnat_initialize): Add a new parameter eh which contains the
11886 address of the exception registration. The Win32 version of this
11887 routine calls __gnat_install_SEH_handler() to initialize the SEH
11888 (Structured Exception Handling) handler.
11889 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
11890 SEH (Structured Exception Handling) now.
11891 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
11892 (__gnat_initialize for ppc-vxworks): Adjust comments and the
11893 preprocessor condition protecting the call to the extra eh setup
11894 subprogram, which is only available for the ppc target.
11895 (__gnat_clear_exception_count): replaced reference to
11896 variable taskIdCurrent by call to taskIdSelf(), cleaner.
11898 * seh_init.c: New file.
11900 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
11901 (GNATBIND_OBJS): Idem.
11903 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
11904 routine takes a new parameter (a pointer to the exception registration
11905 for the SEH (Structured Exception Handling) support.
11907 * raise.h: (__gnat_install_SEH_handler): New prototype.
11908 Update copyright notice.
11910 * s-tassta.adb (Task_Wrapper): Declare the exception registration
11911 record and initialize it by calling __gnat_install_SEH_handler.
11913 2005-02-09 Vincent Celier <celier@adacore.com>
11915 * make.adb (Gnatmake): Do not fail when the main project has no object
11918 2005-02-09 Doug Rupp <rupp@adacore.com>
11920 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
11921 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
11922 [VMS]: Add translations for g-enblsp.adb.
11924 * s-asthan-vms.adb: Removed.
11925 * s-asthan-vms-alpha.adb: Added.
11927 2005-02-09 Pascal Obry <obry@adacore.com>
11929 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
11930 (LIBGNAT_OBJS): Add seh_init.o.
11932 2005-02-09 Arnaud Charlet <charlet@adacore.com>
11936 * Makefile.in: Link all gnat tools with -static-libgcc, since
11937 -shared-libgcc is now used by default on some systems (e.g. linux with
11939 Remove references to Makefile.prolog/generic, no longer used.
11941 2005-02-09 Vincent Celier <celier@adacore.com>
11943 * prj-makr.adb (Process_Directory): Put file name in canonical case
11944 before matching against the patterns.
11945 If gnatname has been invoked as <prefix>-gnatname
11946 then invoke the compiler as <prefix>-gcc, not just "gcc".
11948 2005-02-09 Ed Schonberg <schonberg@adacore.com>
11950 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
11951 with expansion disabled. The actual subtype is needed among other
11952 places when the selected component appears in the context of a loop
11953 bound, and denotes a packed array.
11954 (Operator_Check): Always use the first subtype in the
11955 error message, to avoid the appearance of internal base types.
11956 (Transform_Object_Operation): Copy each actual in full
11957 to the parameter associations of the constructed call, rather than
11958 using the shallow copy mechanism of New_Copy_List. This ensures that
11959 the chaining of named associations is done properly.
11960 (Complete_Object_Operation): Rewrite node, rather than
11961 replacing it, so that we can trace back to the original selected
11964 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
11965 and calls that use object notation, if the called function is not
11966 declared in a withed unit, place the elaboration constraint on the
11967 unit in the context that makes the function accessible.
11968 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
11969 imposes an elaboration constraint between two packages.
11971 2005-02-09 Ed Schonberg <schonberg@adacore.com>
11973 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
11974 views of a private type after handling its private dependents, to
11975 maintain proper stack discipline between entry and exit from the
11978 2005-02-09 Cyrille Comar <comar@adacore.com>
11980 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
11981 Minor reformatting.
11983 2005-02-09 Arnaud Charlet <charlet@adacore.com>
11985 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
11986 fields for foreign threads.
11988 2005-02-09 Doug Rupp <rupp@adacore.com>
11990 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
11991 recursion warnings when compiled with -gnatdm.
11993 2005-02-09 Robert Dewar <dewar@adacore.com>
11995 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
11996 Slight fix to documentation of -gnaty with no parameters
11998 * xr_tabls.ads: Add ??? comment for missing overall comment
12000 * xsinfo.adb: Make default file name be sinfo.h, since this is what
12001 we now use by default.
12003 * xsnames.adb: Adjust end of file test to look for five space followed
12004 by '#' instead of six spaces. The format of xsnames.adb was modified
12005 in the last update.
12007 * a-numeri.ads: Add reference to AI-388 for greek letter pi
12010 * clean.adb: Minor reformatting.
12012 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
12013 gnatname.adb: Minor reformatting
12014 Add 2005 to copyright output when utility is run
12016 * csets.adb: Eliminate obsolete comment
12018 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
12021 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
12023 2005-02-09 Sergey Rybin <rybin@adacore.com>
12025 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
12026 the difference between compact and incompact layout and add the record
12027 representation clause to the example illustrating different layouts.
12028 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
12029 component clauses").
12031 2005-02-09 Florian Villoing <villoing@adacore.com>
12033 * gnat_ugn.texi: Fix typos.
12034 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
12036 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
12037 in the generated documentation.
12039 2005-02-09 Arnaud Charlet <charlet@adacore.com>
12041 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
12043 Update linker wrapper when linking with non GNU C++.
12045 2005-02-09 Pascal Obry <obry@adacore.com>
12048 Document the procedure to debug the DllMain routine on Windows.
12049 Add note about -funwind-tables and mixed Ada and C/C++ programming in
12051 Document new BIND qualifer /RETURN_CODES=VMS.
12053 2005-02-09 Ben Brosgol <brosgol@adacore.com>
12055 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
12056 Edited gnatmetric chapter
12058 2005-02-09 Robert Dewar <dewar@adacore.com>
12061 Changes to document new wide wide character support
12063 Update documentation on Normalize_Scalars and Initialize_Scalars
12065 2005-02-09 Pascal Obry <obry@adacore.com>
12067 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
12069 2005-02-09 Jose Ruiz <ruiz@adacore.com>
12071 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
12072 from the VxWorks kernel) that is needed for getting the active
12073 priority of the different tasks.
12075 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
12076 Use a pragma Elaborate_Body in the spec file instead.
12077 Noticed by code reading.
12079 2005-02-09 Thomas Quinot <quinot@adacore.com>
12081 * exp_util.ads: Minor correction in comment.
12083 2005-02-09 Arnaud Charlet <charlet@adacore.com>
12085 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
12086 since this procedure is now too complex to be worth inlining.
12088 2005-02-09 Richard Henderson <rth@redhat.com>
12090 * utils.c (gnat_define_builtin): Remove.
12091 (gnat_install_builtins): Use build_common_builtin_nodes.
12093 2005-02-09 Arnaud Charlet <charlet@adacore.com>
12095 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
12096 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
12097 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
12098 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
12099 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
12100 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
12101 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
12102 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
12103 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
12104 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
12105 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
12106 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
12107 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
12108 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
12109 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
12110 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
12111 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
12112 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
12113 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
12114 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
12115 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
12116 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
12117 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
12118 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
12119 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
12120 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
12121 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
12122 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
12123 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
12124 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
12125 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
12126 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
12127 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
12128 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
12131 2005-01-27 Laurent GUERBY <laurent@guerby.net>
12133 * Makefile.in: Fix a-intnam.ads from previous commit,
12134 add 2005 to copyright.
12135 * a-intman-rtems.ads: Renamed to...
12136 * a-intnam-rtems.ads:
12138 2005-01-27 Laurent GUERBY <laurent@guerby.net>
12140 * Makefile.in: Rename GNAT RTEMS specific files.
12141 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
12142 5rosinte.ads, 5rparame.adb: Replaced by files below.
12143 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
12144 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
12146 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
12147 Laurent GUERBY <laurent@guerby.net>
12150 * 5rosinte.ads: Add No_Key constant.
12151 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
12152 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
12154 2005-01-26 Laurent GUERBY <laurent@guerby.net>
12157 * i-cobol.adb (Valid_Numeric): Handle zero length case.
12159 2005-01-20 Richard Henderson <rth@redhat.com>
12161 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
12162 a-intnam-linux.ads and system-linux-alpha.ads.
12163 * a-intnam-linux-alpha.ads: Remove file.
12164 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
12165 * system-linux-alpha.ads: New file.
12167 2005-01-18 Jakub Jelinek <jakub@redhat.com>
12170 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
12171 set to the new string.
12173 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
12175 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
12178 2005-01-18 Richard Henderson <rth@redhat.com>
12180 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
12181 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
12183 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
12185 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
12187 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
12188 (GCC_ZCX_Support): Likewise.
12190 2005-01-11 Bastian Blank <waldi@debian.org>
12192 * system-linux-s390.ads: Define Preallocated_Stacks.
12193 * system-linux-s390x.ads: Likewise.
12195 2005-01-04 Arnaud Charlet <charlet@adacore.com>
12197 * gnat_ugn.texi: Fix texi errors with null variables.
12199 2005-01-03 Thomas Quinot <quinot@adacore.com>
12201 * gen-soccon.c: New utility program to generate g-soccon.ads
12204 * socket.c, gsocket.h: Split inclusion of system header files into a
12205 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
12207 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
12208 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
12209 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
12210 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
12211 should not be edited by hand anymore, but should be regenerated using
12214 2005-01-03 Robert Dewar <dewar@adacore.com>
12215 Ed Schonberg <schonberg@adacore.com>
12216 Vincent Celier <celier@adacore.com>
12218 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
12219 on/off, since this is an obsolescent feature, for which we now generate
12222 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
12223 warning mode is set and obsolescent usage of this attribute occurs.
12224 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
12225 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
12226 predates, and partly motivates, the adoption of the AI.
12227 Implement new Ada 2005 attribute Mod
12229 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
12232 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
12234 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
12235 pragma restrictions.
12236 New entry for Ada 2005 attribute Mod.
12239 Add recognition of new pragma Restrictions No_Dependence
12240 Recognize restriction No_Obsolescent_Features at parse time
12242 * bcheck.adb: Add circuitry for checking for consistency of
12243 No_Dependence restrictions.
12245 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
12248 * restrict.ads, restrict.adb: Add subprograms to deal with
12249 No_Dependence restrictions.
12251 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
12254 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
12255 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
12257 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
12258 dummy parameter to scng instantiation.
12259 Needed for new restriction No_Obsolescent_Features
12261 * scn.adb: (Obsolescent_Check): New procedure
12262 Needed for new restriction No_Obsolescent_Features
12264 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
12265 specified by AI-285, needed for implementation of AI-388 (adding greek
12266 pi to Ada.Numerics).
12267 Add new generic formal to scng, needed for new restriction
12268 No_Obsolescent_Features.
12270 * s-rident.ads: Add new restriction No_Obsolescent_Features.
12272 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
12273 restrictions lines.
12274 (Scan_ALI): When finding an unexpected character on an R line, raise
12275 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
12276 Ignore_Errors is True, default restrictions are set and scanning of the
12277 ALI file continues with the next line. Also, when Bad_R_Line is raised
12278 and Ignore_Errors is True, skip to the end of le line.
12280 * sem_ch10.adb: Check that explicit with's do not violate
12281 No_Dependence restrictions.
12282 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
12283 illegal context clauses containing child units of instance.
12285 * sem_prag.adb: Processing and checking for new No_Dependence
12287 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
12288 analyze and check the External argument.
12290 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
12292 2005-01-03 Robert Dewar <dewar@adacore.com>
12294 * atree.adb: Add a fifth component to entities
12295 This allows us to add 32 flags and four new fields
12297 * atree.ads: Add a fifth component to entities
12298 This allows us to add 32 flags and four new fields
12300 * einfo.ads, einfo.adb: Document new fields and new flags now available
12301 Add routines for printing new fields
12303 * treepr.adb: Call routines to print out additional fields if present
12305 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12307 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
12308 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
12310 * Makefile.in: Add support to build shared Ada libraries on solaris x86
12311 Remove gpr2make, replaced by gprmake.
12312 Remove references to gnatmem and libaddr2line.
12313 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
12314 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
12315 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
12316 a-numaux-darwin.ads and a-numaux-darwin.adb
12317 Enable mlib-tgt-lynxos.adb on lynxos.
12319 * Make-lang.in: Remove rules for gpr2make.
12320 When generating sdefault.adb, do not call Relocate_Path
12321 on S3 for function Target_Name, as it is not a path.
12322 Remove references to gnatmem and libaddr2line.
12324 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
12327 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
12329 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
12330 address is incompatible with its base type alignment constraints when
12331 this can be decided statically.
12333 2005-01-03 Olivier Hainque <hainque@adacore.com>
12335 * decl.c (compatible_signatures_p): New function. The intended purpose
12336 is to check if two function signatures for a call-site and a callee are
12337 compatible enough for the call to be valid. The underlying purpose is
12338 to check if a call to a mapped builtin is using the right interface.
12339 The current code actually does not check antyhing - this a placeholder
12340 for future refinements.
12341 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
12342 builtin calls for convention Intrinsic.
12344 * gigi.h (builtin_decl_for): Declare (new function).
12346 * utils.c (gnat_install_builtins): Install the target specific builtins.
12347 (builtin_decl_for): New function, provide a dummy body for now.
12349 2005-01-03 Geert Bosch <bosch@adacore.com>
12351 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
12352 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
12353 (Pred): Implement in terms of Succ.
12355 * trans.c (convert_with_check): Reimplement conversion of float to
12358 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12359 Vincent Celier <celier@adacore.com>
12361 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
12362 bounds can be negative, and must be declared Int, not Nat.
12364 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
12365 array is checked after using the index in the array.
12367 * makegpr.adb (Add_Switches): Check if there is a package for the
12368 processor. If there is no package, do not look for switches.
12370 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12372 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
12373 generation of predefined stream operations (specs and bodies) should
12374 proceed. Under various restrictions these subprograms must not be
12377 2005-01-03 Thomas Quinot <quinot@adacore.com>
12380 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
12381 amount of PCS-specific code in RACW stubs generation.
12382 (Copy_Specification): Set Etype on copied formal parameter entities, as
12383 this information is needed for PolyORB stubs generation.
12384 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
12385 variable Dynamic_Async.
12386 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
12387 (Build_RPC_Receiver_Specification): Make generic again, as recent
12388 changes have allowed RPC receivers to have the same profile for both
12389 variants of the PCS.
12390 Reorganise RPC receiver generation to reduce differences between the
12391 structure of GARLIC and PolyORB RPC receivers.
12392 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
12394 Simplify elaboration code for RCI packages.
12396 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
12397 generation to reduce differences between the structure of GARLIC and
12398 PolyORB RPC receivers.
12400 * s-stratt.adb: Fix typo in comment.
12402 2005-01-03 Thomas Quinot <quinot@adacore.com>
12404 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
12405 copied from Make_Init_Call).
12407 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
12408 reads and assignments on a temporary variable declared with appropriate
12411 2005-01-03 Robert Dewar <dewar@adacore.com>
12413 * i-c.adb (To_C): Raise CE if string is null and Append_Null
12415 2005-01-03 Robert Dewar <dewar@adacore.com>
12417 * i-cstrin.adb (Update): Do not append a null in form called with a
12418 String. This avoids unintended behavior.
12420 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12423 * init.c: Fix warnings on Free BSD section.
12425 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12428 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
12431 2005-01-03 Vincent Celier <celier@adacore.com>
12433 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
12434 libraries when Unique_Compile is True (-u switch).
12437 2005-01-03 Robert Dewar <dewar@adacore.com>
12439 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
12440 upper case letter or underscore after W, as allowed by spec.
12442 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12444 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
12445 darwin port by using proper type definitions from header files.
12446 Use SIGTERM instead of SIGABRT for SIGADAABORT.
12448 2005-01-03 Robert Dewar <dewar@adacore.com>
12450 * par.adb: Enhance error message handling for configuration file
12453 2005-01-03 Robert Dewar <dewar@adacore.com>
12455 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
12456 removed during the previous update (test properly for case of dividing
12457 largest negative number by -1, which generates overflow).
12459 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12460 Sergey Rybin <rybin@adacore.com>
12462 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
12463 to use as the defining identifier for a formal package.
12464 (Remove_Parent): If the instance takes place within (an instance of)
12465 a sibling, preserve private declarations of common parent.
12467 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12469 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
12470 to determine whether one of the operands is a fixed-point type for
12471 which a user-defined multiplication or division operation might be
12474 * sem_res.adb (Valid_Conversion): The legality rules for conversions
12475 of access types are symmetric in Ada 2005: either designated type can
12478 2005-01-03 Vincent Celier <celier@adacore.com>
12480 * s-fileio.adb (Temp_File_Record): Change length of string component
12481 Name from L_tmpnam + 1 to max_path_len + 1.
12483 2005-01-03 Arnaud Charlet <charlet@adacore.com>
12485 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
12486 Self_Id.Deferral_Level = 0.
12487 (Do_Pending_Action): Move this function to the spec.
12489 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
12490 Do_Pending_Action explicitely when needed, in case we're using
12491 No_Abort restrictions.
12493 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
12494 deferral level since it will not get changed by the generated code.
12495 Keeping a default value of 1 would prevent some operations (e.g.
12496 select or delay) to proceed successfully.
12498 2005-01-03 Ben Brosgol <brosgol@adacore.com>
12499 Robert Dewar <dewar@adacore.com>
12500 Cyrille Comar <comar@adacore.com>
12502 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
12503 porting guide chapter (vms version).
12504 Revised doc title (removed "for native platforms") and subtitle.
12505 Add discussion on warning flag for obsolescent features. First we
12506 note that it applies to obsolete GNAT features, which was previously
12507 omitted. Second we contrast the behavior with that of the new
12508 Ada 2005 AI-368 restriction No_Obsolescent_Features.
12509 Preliminary rewriting of GNAT & libraries chapter in order to take
12510 into account default project locations & new project manager
12513 2005-01-03 Robert Dewar <dewar@adacore.com>
12515 * cstand.adb (Create_Operators): Clean up format and documentation of
12516 unary and binary operator result tables. No change in code, just
12517 reformatting and addition of comments.
12519 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
12520 sem_ch2.adb: Minor reformatting
12522 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
12523 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
12524 comments for Tree_Read and Tree_Write.
12526 2005-01-03 Pascal Obry <obry@adacore.com>
12528 * exp_attr.ads: Minor reformatting.
12530 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
12532 * comperr.adb (Compiler_Abort): Add specialized message for GAP
12535 2005-01-03 Ed Schonberg <schonberg@adacore.com>
12537 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
12538 whether the ancestor type is private, as may be the case with nested
12541 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
12544 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
12546 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
12548 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
12549 * utils2.c (build_unary_op): Likewise.
12551 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12553 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
12555 2004-12-19 Richard Henderson <rth@redhat.com>
12557 * trans.c (gigi): Update gimplify_body call.
12559 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
12561 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
12563 2004-12-07 Ed Falis <falis@adacore.com>
12565 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
12566 current task being suspended.
12568 * init.c (__gnat_clear_exception): added to reset VxWorks exception
12570 (__gnat_map_signal): removed test for current task being suspended.
12572 2004-12-07 Gary Dismukes <dismukes@adacore.com>
12574 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
12575 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
12576 targets (such as AAMP).
12578 2004-12-07 Ed Schonberg <schonberg@adacore.com>
12580 * atree.adb (Visit_Itype): Create a new name for the generated itype,
12581 because the back-end may otherwise treat it as a redefinition of the
12584 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
12586 * back_end.adb (Scan_Back_End_Switches): Accept --param.
12588 * lang-specs.h: Accept --param.
12590 2004-12-07 Vincent Celier <celier@adacore.com>
12592 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
12593 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
12594 Current_Body_Suffix => Ada_Body_Suffix).
12595 Take into account Externally_Built attribute.
12597 * clean.adb (In_Extension_Chain): Always return False when one of the
12598 parameter is No_Project.
12599 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
12600 Ada_Language_Index).
12601 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
12602 Process_Languages for procedure Parse).
12604 * gnatcmd.adb (Carg_Switches): New table.
12605 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
12606 Adapt to name changes in package Prj (Current_Spec_Suffix =>
12607 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
12609 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
12610 Header_Num and function Hash are now declared in package Prj,
12613 * prj.adb (Suffix_Of): New function.
12614 (Set (Suffix)): New procedure.
12615 (Hash): One function moved from Prj.Com
12616 (Is_Present, Language_Processing_Data_Of): New functions
12617 (Set): Two new procedures
12618 (Add_Language_Name, Display_Language_Name): New procedures
12620 * prj.ads: (Suffix_Of): New function
12621 (Set (Suffix)): New procedure
12622 Add several types and tables for multi-language support.
12623 (Header_Num): Type moved from Prj.Com
12624 (Hash): Two functions moved from Prj.Com
12625 (Is_Present, Language_Processing_Data_Of): New functions
12626 (Set): Two new procedures
12627 (Add_Language_Name, Display_Language_Name): New procedures
12628 (Naming): Component name changes:
12629 Current_Spec_Suffix => Ada_Spec_Suffix,
12630 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
12631 Impl_Suffixes, Supp_Suffixes.
12632 (Project_Data): New components: Externally_Built, Supp_Languages,
12633 First_Language_Processing, Supp_Language_Processing, Default_Linker,
12634 Default_Linker_Path.
12636 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
12637 new package Language_Processing with its attributes (Compiler_Driver,
12638 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
12639 Binder_Driver, Default_Linker).
12641 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
12642 (Header_Num): Type moved to package Prj
12644 * prj-env.adb: Adapt to name changes in package Prj
12645 (Current_Spec_Suffix => Ada_Spec_Suffix,
12646 Current_Body_Suffix => Ada_Body_Suffix).
12648 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
12649 default to the project path, except the "-" is one of the directories
12650 in env var ADA_PROJECT_PATH.
12651 (Current_Project_Path): Global variable, replacing Project_Path
12652 that was in the body of Prj.Part.
12653 (Project_Path): New function
12654 (Set_Project_Path): New procedure
12655 Initialize Current_Project_Path during elaboration of the package
12656 Remove dependency on Prj.Com, no longer needed
12658 * prj-ext.ads (Project_Path): New function
12659 (Set_Project_Path): New procedure
12661 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
12662 suffix is defined for language <lang>.
12663 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
12664 accessing directly the components of Naming.
12665 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
12666 Reorganise of this package.
12667 Break procedure Check in several procedures.
12669 * prj-nmsc.ads: Replace all procedures (Ada_Check,
12670 Other_Languages_Check and Language_Independent_Check) with a single
12673 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
12674 Process_Languages, no longer needed.
12676 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
12677 Current_Project_Path.
12678 Remove elaboration code, moved to the body of Prj.Ext
12679 Use new function Prj.Ext.Project_Path instead of old variable
12681 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
12682 When comparing with project paths on the stack, first put the resolved
12683 path in canonical case.
12684 (Parse_Single_Project): Set the path name of the project file in the
12685 tree to the normalized path.
12687 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
12688 parameter Process_Languages, no longer needed.
12689 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
12690 Other_Languages_Check.
12692 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
12693 to store the resolved canonical path of the project file.
12694 Remove dependency to Prj.Com, no longer needed
12696 * prj-util.adb: Adapt to name changes in package Prj
12697 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
12700 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
12701 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
12702 Externally_Built, Include_Option, Language_Processing.
12704 * makegpr.adb: Numerous changes due to changes in packages
12707 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
12708 default to the project path, except whe "-" is one of the directories
12709 in env var ADA_PROJECT_PATH.
12710 (Gnatls): In verbose mode, add the new section "Project Search Path:"
12712 2004-12-07 Robert Dewar <dewar@adacore.com>
12714 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
12716 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
12719 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
12720 flag. No longer needed now that we handle this in gnat1drv.adb.
12722 * repinfo.ads: Minor reformatting
12724 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12725 Olivier Hainque <hainque@adacore.com>
12726 Eric Botcazou <ebotcazou@adacore.com>
12728 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
12729 TYPE_SIZE_UNIT of result type if SIZE is not specified.
12730 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
12731 of a bitfield, which we know is useless and causes trouble because of
12732 alignment implications.
12734 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
12736 (process_attributes): Clear DECL_COMMON again when a section attribute
12738 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
12739 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
12740 (create_field_decl): Special case ADDRESSABLE negative to mean
12741 "no bitfield creation", to be used by make_aligning_type. Don't
12742 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
12743 fields claimed addressable still have to be bitfields. Use
12744 value_factor_p instead of a raw binop construction to check for the
12745 position's alignment.
12747 2004-12-07 Geert Bosch <bosch@adacore.com>
12749 * eval_fat.adb: Revert previous change.
12751 2004-12-07 Thomas Quinot <quinot@adacore.com>
12752 Ed Schonberg <schonberg@adacore.com>
12754 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
12755 with an implicit dereference as its prefix, use
12756 Insert_Explicit_Dereference instead of merely rewriting the prefix into
12757 an explicit dereference. This ensures that a reference to the original
12758 prefix is generated, if appropriate.
12760 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
12761 dereference is rewritten to an explicit one, generate a reference to
12762 the entity denoted by its prefix using the original prefix node, so
12763 the dereference can be properly recorded as a read of the denoted
12764 access value, if appropriate.
12766 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
12767 emitting 'assigned but never read' warning on a variable on the basis
12768 that it has an access type.
12769 (Check_References): Emit unreferenced warning when the scope is a
12772 2004-12-07 Robert Dewar <dewar@adacore.com>
12773 Ed Schonberg <schonberg@adacore.com>
12775 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
12778 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
12779 leaving call unchanged.
12780 This deals with the case where the pragma Import specified
12781 an external name, to be handled by the back end.
12783 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
12784 subprogram which is Imported with convention Intrinsic if an
12785 External_Name argument is specified.
12786 (Process_Import_Or_Interface): Properly diagnose link name argument.
12787 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
12788 with Sem_Ch6.Cannot_Inline.
12789 (Process_Inline): Provide separate warning for inapplicable inline
12791 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
12792 treatment is uniform on different targets.
12794 2004-12-07 Ed Schonberg <schonberg@adacore.com>
12796 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
12797 construct is rewritten, preserve end label to permit source navigation.
12799 2004-12-07 Thomas Quinot <quinot@adacore.com>
12801 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
12802 Specific_Build_Stub_Target): New subprograms.
12803 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
12804 the PCS implementation used, using the above PCS-customized subprograms.
12805 Minor reformatting.
12806 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
12807 for generation of DSA code targeted to the PolyORB PCS.
12808 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
12809 implementation of the partition communication subsystem in ancillary
12811 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
12812 PolyORB_Support.Build_Stub_Type): New subrograms containing the
12813 PCS-specific part of Add_Stub_Type.
12814 (Insert_Partition_Check): Use runtime library function to perform
12817 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
12818 (RE_Same_Partition): New entity, from s-parint.
12820 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
12822 2004-12-07 Gary Dismukes <dismukes@adacore.com>
12824 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
12825 Output the copyright message on a separate line from the version
12828 2004-12-07 Joel Brobecker <brobecker@adacore.com>
12830 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
12831 compile-time warning.
12833 2004-12-07 Robert Dewar <dewar@adacore.com>
12835 * g-regpat.adb: (Match): Change a misuse of or to or else
12837 2004-12-07 Ed Schonberg <schonberg@adacore.com>
12840 (Generate_Reference): Handle properly a reference to an entry formal,
12841 when an accept statement has a pragma Unreferenced for it.
12843 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
12844 and the Has_Pragma_Unreferenced flag for each formal before analyzing
12845 the body, to ensure that warnings are properly emitted for each accept
12846 statement of a given task entry.
12848 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
12850 * Makefile.in: Add support for foreign threads on VMS.
12852 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12854 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
12856 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
12858 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
12860 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
12862 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
12864 2004-12-07 Robert Dewar <dewar@adacore.com>
12866 * nlists.adb (Prepend_Debug): Remove parameters and nest within
12868 (Remove_Next_Debug): Same fix
12870 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
12871 maintain back pointers now, though we did not used to, and comments
12873 (Prepend): Remove pragma Inline.
12874 (Remove_Next): Same cleanup
12876 2004-12-07 Thomas Quinot <quinot@adacore.com>
12878 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
12879 used to record an implicit dereference as a read operation on its
12880 prefix when operating under -gnatc. Necessary to avoid spurious
12881 'variable assigned but never read' warnings in that mode.
12882 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
12883 is a non-overloaded implicit dereference, call the above subprogram to
12884 ensure proper recording of references.
12886 2004-12-07 Gary Dismukes <dismukes@adacore.com>
12888 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
12889 to be resolved later as part of Analyze_Iteration_Scheme's call to
12892 2004-12-07 Ed Schonberg <schonberg@adacore.com>
12894 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
12895 prefix is not a scalar type, place error message on prefix, not on
12898 2004-12-07 Bernard Banner <banner@adacore.com>
12900 * vxaddr2line.adb: Add support for x86 vxworks
12902 2004-12-07 Thomas Quinot <quinot@adacore.com>
12904 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
12905 documentation of the behaviour of these functions when passed an IP
12906 address that has no record in the system hosts database and no reverse
12909 * cstand.adb, a-tags.ads: Fix typos in comment.
12911 2004-12-07 Robert Dewar <dewar@adacore.com>
12913 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
12914 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
12915 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
12916 s-poosiz.ads: Minor reformatting
12918 * make.adb: Minor reformatting
12919 Add some ??? comments asking for more comments
12921 * s-poosiz.adb: Minor reformatting
12922 Add comments on alignment requirement
12924 * sinfo.ads: Remove obsolete comment and fix typo.
12926 2004-12-07 Vincent Celier <celier@adacore.com>
12927 Sergey Rybin <rybin@adacore.com>
12929 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
12930 Files" with the new tool and package names.
12931 Reformatting to suppress most of the warnings for line too long
12932 Document the new section "Project Search Path:" in the output of
12934 Add gnatmetric section
12936 2004-12-07 Vincent Celier <celier@adacore.com>
12938 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
12939 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
12940 and -eit to -ept. Added qualifier
12941 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
12943 2004-11-27 Andreas Schwab <schwab@suse.de>
12945 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
12947 2004-11-25 Arnaud Charlet <charlet@adacore.com>
12949 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
12950 internal implementation unit GNAT.Sockets.Thin,
12951 as their usage for sockets is non-portable (using the read and write
12952 functions from the system runtime library is fine on UNIX but won't
12953 work under Windows).
12955 * mingw32.h: Update copyright notice.
12957 2004-11-25 Arnaud Charlet <charlet@adacore.com>
12959 * ada-tree.h: Minor reformatting of previous change to avoid lines
12960 longer than 79 characters.
12962 2004-11-25 Olivier Hainque <hainque@adacore.com>
12964 * tb-gcc.c: GCC infrastructure based implementation of
12967 2004-11-24 Steven Bosscher <stevenb@suse.de>
12969 * misc.c (gnat_post_options): Don't clear
12970 flag_inline_functions.
12972 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
12975 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
12978 2004-11-21 Andreas Jaeger <aj@suse.de>
12980 * stylesw.adb: Change Style_Check_Subprogram_Order to
12981 Style_Check_Order_Subprograms.
12983 2004-11-18 Arnaud Charlet <charlet@adacore.com>
12985 * adaint.h, adaint.c
12986 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
12988 Add also a cast to kill another warning.
12989 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
12990 parameter with the priority class of the parent process instead of
12991 always using the NORMAL_PRIORITY_CLASS.
12992 (__gnat_dup): New function.
12993 (__gnat_dup2): New function.
12994 (__gnat_is_symbolic_link): Enable the effective body of this
12995 function when __APPLE__ is defined.
12997 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
13000 2004-11-18 Olivier Hainque <hainque@adacore.com>
13002 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
13003 address of which may be used to represent "others" and "all others"
13004 choices in exception tables, instead of the current harcoded
13005 (void *)0 and (void *)1.
13006 (Setup_Exception): Do nothing in the GNAT SJLJ case.
13008 * gigi.h (others_decl, all_others_decl): New decls representing the
13009 new Others_Value and All_Others_Value objects.
13010 (struct attrib): Rename "arg" component as "args", since GCC expects a
13011 list of arguments in there.
13013 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
13014 corresponding objects exported by a-exexpr, instead of hardcoded dummy
13017 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
13018 others_decl and all_others_decl instead of hardcoded dummy addresses
13019 to represent "others" and "all others" choices, which is cleaner and
13020 more flexible with respect to the possible eh pointer encoding policies.
13022 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
13023 (process_attributes): Account for the naming change of the "args"
13024 attribute list entry component.
13026 * decl.c (build_attr_list): Rename into prepend_attributes to allow
13027 cumulating attributes for different entities into a single list.
13028 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
13029 attributes for the current entity and propagate first subtype
13030 attributes to other subtypes.
13031 <E_Procedure>: Attribute arguments are attr->args and not
13032 attr->arg any more.
13033 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
13034 argument provided, as this is what GCC expects. Use NULL_TREE instead
13037 2004-11-18 Robert Dewar <dewar@adacore.com>
13039 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
13040 Minor reformatting througout (including new function specs)
13041 Add ??? comments asking for clarification.
13043 2004-11-18 Thomas Quinot <quinot@adacore.com>
13045 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
13046 incomplete duplicate implementation of this subprogram from butil.
13048 2004-11-18 Thomas Quinot <quinot@adacore.com>
13050 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
13051 procedures factors the common processing for building an RPC receiver
13052 for an RCI package or an RACW type.
13053 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
13054 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
13055 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
13057 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
13059 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
13061 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
13062 distribution subprogram identifiers that are either subprogram numbers
13064 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
13065 string distribution identifiers assigned to a given subprogram.
13066 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
13067 (Add_RAS_Dereference_TSS): Add comments.
13068 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
13069 is not referenced yet because it will be used by the PolyORB DSA
13071 (Insert_Partition_Check): Remove fossile code.
13072 (First_RCI_Subprogram_Id): Document this constant.
13073 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
13075 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
13076 replaced with calls to Get_Library_Unit_Name_String. Previously there
13077 were several instances of the same code in different locations in the
13078 compiler; this checkin completes the replacement of all of these
13079 instances with calls to a common subprogram.
13080 Minor reformatting.
13082 * sem_dist.adb: Remove comment noting that RPC receiver generation
13083 should be disabled for RACWs that implement RASs.
13084 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
13086 * sem_util.ads, sem_util.adb (Has_Stream): New function
13087 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
13088 qualified name of a library unit into the name buffer.
13089 (Note_Possible_Modification): Generate a reference only
13090 if the context comes from source.
13092 * snames.ads (PCS_Names): New subtype corresponding to names of
13093 supported implementations of the Partition Communication Subsystem
13094 (PCS) (i.e. the runtime library support modules for the distributed
13097 2004-11-18 Robert Dewar <dewar@adacore.com>
13098 Ed Schonberg <schonberg@adacore.com>
13100 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
13101 (Has_Rep_Pragma): New function
13102 (Has_Attribute_Definition_Clause): New function
13103 (Record_Rep_Pragma): Moved here from sem_ch13.adb
13104 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
13106 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
13108 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
13109 (Expand_Pragma_Psect_Object): New procedure
13110 These procedures contain the revised and cleaned up processing for
13111 these two pragmas. This processing was formerly in Sem_Prag, but
13112 is more appropriately moved here. The cleanup involves making sure
13113 that the pragmas are properly attached to the tree, and that no
13114 nodes are improperly shared.
13116 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
13117 pragmas to Exp_Prag, which is more appropriate.
13118 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
13119 check for duplicates Remove use of Is_Psected flag, no longer needed.
13120 Use new Make_String_Literal function with string.
13122 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
13123 that are functions return universal values, that have to be converted
13124 to the context type.
13125 Use new Make_String_Literal function with string.
13126 (Get_Stream_Convert_Pragma): New function, replaces the use of
13127 Get_Rep_Pragma, which had to be kludged to work in this case.
13129 * freeze.adb: Use new Has_Rep_Pragma function
13131 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
13132 function with string.
13133 Use new Has_Rep_Pragma function.
13135 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
13138 2004-11-18 Robert Dewar <dewar@adacore.com>
13140 * errout.ads, errout.adb: (First_Sloc): New function
13142 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
13143 check (-gnatyx) instead of being included as a redundant construct
13146 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
13147 Style_Check_Order_Subprograms.
13149 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
13150 stylesw.adb: Add Style_Check_Xtra_Parens
13152 * usage.adb: Add line for -gnatyx (check extra parens)
13154 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
13156 2004-11-18 Ed Schonberg <schonberg@adacore.com>
13157 Robert Dewar <dewar@adacore.com>
13159 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
13160 discriminant of a constrained subtype, analyze the copy of the
13161 corresponding constraint, because in some cases it may be only
13162 partially analyzed.
13163 Removes long-lived ??? comments.
13165 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
13166 handled controlled or secondary-stack expressions within the
13167 iteration_scheme of a loop.
13169 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
13170 bounds that may contain functions calls, to prevent memory leaks when
13171 the bound contains a call to a function that uses the secondary stack.
13172 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
13173 generate temporaries for loop bounds that might contain function calls
13174 that require secondary stack and/or finalization actions.
13176 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
13177 selected component and the selector is overloadable (not just a
13178 function) treat as function call, Analyze_Call will disambiguate if
13180 (Analyze_Selected_Component): Do not generate an actual subtype for the
13181 selected component if expansion is disabled. The actual subtype is only
13182 needed for constraint checks.
13183 (Analyze_Allocator): If restriction No_Streams is set, then do
13184 not permit objects to be declared of a stream type, or of a
13185 composite type containing a stream.
13187 * restrict.ads: Remove the a-stream entry from Unit_Array, since
13188 No_Streams no longer prohibits with'ing this package.
13190 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
13191 discriminants, but the parent base has unknown discriminants, there is
13192 no discriminant constraint to inherit. Such a discrepancy can arise
13193 when the actual for a formal type with unknown discriminants is a
13194 similar private type whose full view has discriminants.
13195 (Analyze_Object_Declaration): If restriction No_Streams is set, then
13196 do not permit objects to be declared of a stream type, or of a
13197 composite type containing a stream.
13199 2004-11-18 Ed Schonberg <schonberg@adacore.com>
13201 * exp_dbug.ads: Update documentation to reflect simpler encoding for
13202 protected operations.
13204 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
13205 generated name, it complicates decoding in gdb and hinders debugging
13206 of protected operations.
13207 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
13208 flag for the protected entry barrier function.
13209 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
13210 flag for the protected entry function.
13212 2004-11-18 Nicolas Setton <setton@adacore.com>
13214 * expect.c: Define __unix__ when __APPLE__ is defined.
13216 * Makefile.in: Inform the value of the variable GMEM_LIB in the
13217 Darwin-specific section.
13219 * lang-specs.h: Change the placement of the %1 marker.
13220 Works around the fact that gcc adds -fPIC by default under Darwin.
13222 2004-11-18 Ed Schonberg <schonberg@adacore.com>
13224 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
13225 type of the object with the packed array type, set the Analyzed flag
13226 on the object if it is an entity or simple indexed component, to avoid
13227 spurious type errors.
13229 2004-11-18 Gary Dismukes <dismukes@adacore.com>
13231 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
13232 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
13233 separate line from the version message.
13235 2004-11-18 Ed Falis <falis@adacore.com>
13237 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
13239 (init_float): Eliminate initialization of floating point status for
13240 AE653. The instructions have no effect for vThreads.
13242 2004-11-18 Vincent Celier <celier@adacore.com>
13244 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
13245 gnatbind is invoked with -shared.
13247 2004-11-18 Jose Ruiz <ruiz@adacore.com>
13249 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
13250 for Detect_Blocking which is redundant with the check done within the
13251 procedure Protected_Single_Entry_Call.
13252 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
13253 Detect_Blocking which is redundant with the check done within the
13254 procedure Protected_Single_Entry_Call.
13256 2004-11-18 Vincent Celier <celier@adacore.com>
13258 * makegpr.adb (Compile): Put the compiling switches (in package
13259 Compiler and on the command line) immediately after "-c", instead of
13260 at the end of the command line invocation of the compiler, when
13261 compiling a non-Ada file.
13262 (Build_Global_Archive): When there is no need to rebuild the archive,
13263 set Global_Archive_Exists, so that the archive is passed to the linker
13266 2004-11-18 Robert Dewar <dewar@adacore.com>
13267 Sergey Rybin <rybin@adacore.com>
13270 Remove extra paren check from list of checks for redundant constructs
13271 Add documentation of new -gnatyx style check (check extra parens)
13272 Remove paragraph about gnatelim debug options.
13274 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
13275 objects rather than forbidding dependencies on the package Ada.Streams.
13277 * sinfo.ads: Add ??? note that we should document pragmas passed to
13280 * g-expect.ads: Fix a few typos in the comments.
13282 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
13284 * misc.c (gnat_handle_option): Use %< and %> for quoting in
13287 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13289 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
13291 2004-11-07 Andreas Schwab <schwab@suse.de>
13293 * Makefile.in (install-gnatlib): Remove spurious hyphen.
13295 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
13298 * Makefile.in (darwin): Set soext to .dylib.
13300 2004-10-26 Vincent Celier <celier@gnat.com>
13301 Thomas Quinot <quinot@act-europe.fr>
13303 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
13304 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
13305 there is no use of GNAT.Sockets.Constants.
13306 Remove remaining pragma Import for C_Write
13307 Remove C_Read and C_Write from internal implementation unit
13308 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
13309 the read and write functions from the system runtime library is fine
13310 on UNIX but won't work under Windows).
13312 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
13313 (Check_Selector): Use C_Recv instead of C_Read.
13314 Selectors are the GNAT.Sockets abstraction to perform a select()
13315 call on a set of descriptors. To allow abortion of an ongoing
13316 select operation, some data is written to a dedicated socket that
13317 is always monitored.
13318 Under Windows, the write and read library functions cannot operate
13319 on sockets, so we need to use send and recv instead, which is portable
13320 across all supported platforms.
13322 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
13323 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
13324 (using the read and write functions from the system runtime library is
13325 fine on UNIX but won't work under Windows).
13327 2004-10-26 Nicolas Setton <setton@act-europe.fr>
13329 * mlib-tgt-darwin.adb: New file.
13331 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13332 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
13333 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
13334 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
13337 * Makefile.in: Add support for building shared libraries under Darwin.
13338 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
13339 the low level EH init subprogram to be called from __gnat_initialize.
13341 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
13342 indicates which options to pass to the archive indexer.
13344 * mlib-utl.adb: Add support for calling ranlib with additional
13345 options. This is needed for instance under Mac OS X.
13346 (Ranlib_Options): New global variable, used to store the potential
13347 options to pass to ranlib.
13348 (Ar): Use Ranlib_Options when spawning ranlib.
13349 (Initialize): Set the value of ranlib option.
13351 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
13353 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
13354 instead of 8K, to reflect the real potential needs for stack-checking
13357 2004-10-26 Pascal Obry <obry@gnat.com>
13359 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
13361 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
13362 Windows only the initial thread stack size can be set so it is good to
13363 start we a low stack size.
13364 The OS will adjust the size as needed.
13366 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
13367 Nicolas Setton <setton@act-europe.fr>
13369 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
13370 "__unix__" instead of "unix".
13371 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
13372 sections were just mistakenly ignored. The former is
13373 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
13374 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
13375 of hpux. This prevents an unwanted definition of the symbol
13376 convert_addresses in adaint.o.
13378 2004-10-26 Gary Dismukes <dismukes@gnat.com>
13380 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
13381 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
13383 2004-10-26 Cyrille Comar <comar@act-europe.fr>
13385 * a-filico.ads, a-filico.adb: fix incorrect header.
13387 2004-10-26 Javier Miranda <miranda@gnat.com>
13389 * a-ststio.ads: Fix typo in identifier
13391 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
13393 * sem_ch4.adb: Minor reformatting.
13395 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13397 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
13398 enabled, check the result of unary and binary operations when the
13399 expression is the right-hand side of an assignment.
13401 2004-10-26 Vincent Celier <celier@gnat.com>
13403 * clean.adb (Delete): Do not output warnings when in quiet output and
13404 not in verbose mode.
13405 (Force_Deletions): New Boolean flag, defaulted to False
13406 (Delete): Only delete a file if it is writable, and when
13407 Force_Deletions is True.
13408 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
13409 (Usage): Line for new switch -f
13410 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
13413 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
13415 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
13416 JM type only if its size matches that of the wrapper. When a size is
13417 prescribed and the field is not aliased, remove the wrapper of a JM
13418 type only if the size is not greater than that of the packed array.
13419 (gnat_to_gnu_entity): Change the extension of packed array wrappers
13422 2004-10-26 Geert Bosch <bosch@gnat.com>
13424 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
13425 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
13426 (Pred): Implement in terms of Succ.
13428 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13430 * exp_aggr.adb (Safe_Component): An aggregate component that is an
13431 unchecked conversion is safe for in-place use if the expression of the
13432 conversion is safe.
13433 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
13434 be expandable in place even if the aggregate does not come from source.
13435 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
13436 designated object of an allocator in place, rather than building it
13437 first on the stack. The previous scheme forces a full copy of the array,
13438 and may be altogether unsusable if the size of the array is too large
13439 for stack allocation.
13441 2004-10-26 Robert Dewar <dewar@gnat.com>
13443 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
13444 compares if the component is atomic.
13446 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
13447 array assignment if the component type is atomic.
13449 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13450 Eric Botcazou <ebotcazou@act-europe.fr>
13452 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
13453 is aliased and is a by_reference type, do not pass by copy.
13454 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
13455 detect whether the call is in the right side of an assignment or
13456 the expression of an object declaration. Recurse on component
13457 association within aggregates.
13458 Call it in the condition that determines whether the temporary is
13459 necessary for correct stack-checking.
13461 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
13463 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
13464 RACW_Type, used in the PolyORB version.
13465 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
13466 version and the GARLIC version.
13468 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
13469 Rename RCI_Info to RCI_Locator for better consistency between the
13470 GARLIC and PolyORB versions of the distributed systems annex.
13471 (DSA_Implementation_Name): This enumeration lists the possible
13472 implementations of the Partition Communication Subsystem for the
13473 Distributed Systems Annex (DSA). The three available implementations
13474 are the dummy stub implementation (No_DSA), and two versions based on
13475 two different distribution runtime libraries: GARLIC and PolyORB. Both
13476 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
13478 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
13481 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
13482 between the GARLIC and PolyORB versions of the distributed systems
13484 Remove RE_Unbounded_Reclaim_Pool since it is unused.
13486 2004-10-26 Gary Dismukes <dismukes@gnat.com>
13488 * gnat1drv.adb: Suppress calling the back end when
13489 Frontend_Layout_On_Target is true.
13491 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
13493 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
13494 Set_Read_Only): New subprograms.
13495 These new routines allow the user to set or unset the Owner execute
13496 and Owner write permission flags on a file.
13498 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
13499 GNAT.OS_Lib.Set_Executable instead of rolling our own.
13501 2004-10-26 Matthew Gingell <gingell@gnat.com>
13503 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
13505 2004-10-26 Pascal Obry <obry@gnat.com>
13507 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
13508 memory before the faulting page we properly test the process read
13509 access for this address using appropriate Win32 routine.
13510 (HPUX sections): guard with "__hpux__" instead of "hpux".
13512 2004-10-26 Robert Dewar <dewar@gnat.com>
13514 * lib-xref.adb (Generate_Reference): Don't complain about reference to
13515 entry parameter if pragma Unreferenced set, since we do not properly
13516 handle the case of multiple parameters.
13518 2004-10-26 Vincent Celier <celier@gnat.com>
13520 * prj-env.adb: (Contains_ALI_Files): New Boolean function
13521 (Ada_Objects_Path.Add): For a library project, add to the object path
13522 the library directory only if there is no object directory or if the
13523 library directory contains ALI files.
13524 (Set_Ada_Paths.Add.Recursive_Add): Ditto
13526 2004-10-26 Vincent Celier <celier@gnat.com>
13528 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
13529 extension of library projects.
13531 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
13532 path defaults to ".:<prefix>/lib/gnat".
13533 (Parse): For an extending all project, allow direct import of a project
13534 that is virtually extended.
13536 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
13537 the specified name is directly imported, return its ID. Otherwise, if
13538 an extension of this project is imported, return the ID of the
13541 2004-10-26 Robert Dewar <dewar@gnat.com>
13543 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
13544 (Sub3): New procedure, used by Scaled_Divide
13545 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
13546 correct more than one instance of failure to propagate carries
13548 (Double_Divide): Handle overflow case of largest negative number
13549 divided by minus one.
13551 * s-arit64.ads (Double_Divide): Document that overflow can occur in
13552 the case of a quotient value out of range.
13555 2004-10-26 Robert Dewar <dewar@gnat.com>
13557 * s-bitops.adb (Bit_Eq): Remove redundant check.
13559 * s-bitops.ads: Minor comment updates
13560 Change some occurrences of Address to System.Address
13562 * s-carsi8.ads: Fix minor cut-and-paste error in comments
13564 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13566 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
13567 accessibility check to prefix that is a protected operation.
13569 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13571 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
13572 empty, post message on stub.
13574 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13575 Javier Miranda <miranda@gnat.com>
13577 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
13578 current instance appears within a unit that is directly in the context
13580 Used to determine whether the body of the instance should be analyzed
13581 immediately after its spec, to make its subprogram bodies available
13582 for front-end inlining.
13583 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
13584 constraint is not allowed on the component type (AARM 12.5.3(3))
13586 2004-10-26 Cyrille Comar <comar@act-europe.fr>
13588 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
13589 'Storage_Pool): enhance, document & limit detection of non-sharable
13592 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
13594 * s-pooglo.ads: Add more documentation now that this pool is properly
13597 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13599 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
13600 or protected type with discriminants, do not constrain the
13601 corresponding record type if the subtype declaration has no
13602 discriminant constraints. This can be the case in source code, or in
13603 the subtype declaration created to rename an actual type within an
13606 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13608 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
13609 different kind of stub (possibly wrong name for file), do not check
13611 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
13612 includes call to some function that returns an unconstrained type, do
13615 2004-10-26 Ed Schonberg <schonberg@gnat.com>
13617 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
13618 appear in the code for the main unit. Dependencies among units in the
13619 context of the main unit are established when those other units are
13620 compiled. Otherwise spurious elaboration constraints can generate
13621 incorrect elaboration circularities.
13623 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
13624 Ed Schonberg <schonberg@gnat.com>
13626 * sem_util.adb (Is_Aliased_View): Defend against the case where this
13627 subprogram is called with a parameter that is not an object name. This
13628 situation arises for some cases of illegal code, which is diagnosed
13629 later, and in this case it is wrong to call Is_Aliased, as that might
13630 cause a compiler crash.
13631 (Explain_Limited_Type): Refine previous fix to include
13632 inherited components of derived types, to provide complete information.
13634 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
13635 is the prival for a protected object.
13636 It is necessary to mark this entity as a variable, in addition to
13637 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
13638 modified to avoid checking the Aliased flag on entities that are not
13639 objects. (Checking that flag for non-objects is erroneous and could
13640 lead to a compiler crash).
13642 2004-10-26 Robert Dewar <dewar@gnat.com>
13644 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
13645 X_Frac = 0.5, then we know that the number X must be positive.
13646 (Succ): Remove the same redundant test, and also fix the primary test
13647 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
13649 (Decompose): Add fuller comments to spec
13651 2004-10-26 Pascal Obry <obry@gnat.com>
13653 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
13654 validity (process must have read access). Set to 0 in all other cases.
13655 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
13656 violation on Win32.
13657 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
13658 segmentation violation.
13660 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
13662 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
13663 whose type is a constructed subtype of an aliased object with an
13664 unconstrained nominal subtype, convert the actual to the constructed
13665 subtype before taking its address.
13667 2004-10-26 Vincent Celier <celier@gnat.com>
13669 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
13670 (Is_Path_Name_Case_Sensitive): New function
13672 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
13673 (Base_Name, Simple_Name, Current_Directory, Compose,
13674 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
13677 2004-10-26 Cyrille Comar <comar@act-europe.fr>
13678 Vasiliy Fofanov <fofanov@act-europe.fr>
13679 Vincent Celier <celier@gnat.com>
13681 * gnat_ugn.texi: Generalize "finding memory problems" section into a
13682 "memory management issues" section and document some of the useful
13683 memory pools provided as part of the GNAT library.
13684 Remove "virtual" from declaration of A::method2 in
13685 the simple example of Ada/C++ mixed system.
13686 Library Projects may be virtually extended: their virtual extensions
13687 are not Library Projects.
13688 Added section on extending project hierarchies.
13690 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
13692 * adaint.c (__gnat_get_libraries_from_registry): Cast value
13694 (__gnat_portable_spawn): Remove const.
13696 * mingw32.h (MAXPATHLEN): Check for previous definition.
13698 2004-10-17 Matthias Klose <doko@debian.org>
13700 * gnatvsn.ads: Set gnat library version to 4.0.
13702 2004-10-05 Vincent Celier <celier@gnat.com>
13704 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
13706 2004-10-04 Laurent GUERBY <laurent@guerby.net>
13709 * Makefile.in: Define and use RANLIB_FLAGS.
13711 2004-10-04 Pascal Obry <obry@gnat.com>
13713 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
13714 other x86 platforms).
13716 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
13718 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
13719 in general and triggers stack alignment adjustment for thread entry
13720 points on targets where this is necessary.
13722 2004-10-04 Bernard Banner <banner@gnat.com>
13726 * Makefile.in: Add section for powerpc linux
13727 Add variant i-vxwork-x86.ads
13729 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
13731 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
13733 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
13734 table registration calls when need be. Ensures no reference to the crt
13735 ctors symbol are issued in the SJLJ case, which avoids possible
13736 undefined symbol errors in the case of modules to be statically linked
13739 2004-10-04 Javier Miranda <miranda@gnat.com>
13741 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
13742 in-line the code corresponding to subprogram Analyze_Actuals. In
13743 addition, analyze the actuals only in case of subprogram call.
13745 2004-10-04 Ed Falis <falis@gnat.com>
13747 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
13749 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
13751 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
13752 in the documentation.
13754 2004-10-04 Robert Dewar <dewar@gnat.com>
13756 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
13758 (Analyze_Block_Statement): Add circuitry to detect following dead code
13759 (Check_Unreachable_Code): Handle case of block exit
13761 2004-10-04 Robert Dewar <dewar@gnat.com>
13763 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
13764 (XMatchD): Avoid warning for Logic_Error call
13766 2004-10-04 Robert Dewar <dewar@gnat.com>
13768 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
13769 consider expressions buried within a procedure actual to be an actual.
13770 This caused some blowups with uses of packed slices within a procedure
13773 2004-10-04 Robert Dewar <dewar@gnat.com>
13775 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
13776 longer need to be initialized to zero.
13777 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
13778 initialized to zero.
13780 * checks.adb (Expr_Known_Valid): Packed arrays are now always
13781 considered valid, even if the representation is modular. That's correct
13782 now that we no longer initialize packed modular arrays to zero.
13784 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
13785 suffixes. These are now documented as the only cases in which the
13786 debugger ignores outer records.
13787 Previously, the spec allowed arbitrary suffixes for this purpose.
13788 Change name of LJM to JM for packed array pad records
13789 Create separate section on packed array handling, and add a whole new
13790 set of comments to this section describing the situation with packed
13791 modular types and justification requirements depending on endianness.
13793 2004-10-04 Robert Dewar <dewar@gnat.com>
13795 * a-except.adb: Add a comment for last change
13797 * einfo.ads: Minor spelling correction in comment
13799 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
13801 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
13804 * sem_util.ads: Minor comment update
13806 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13808 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
13809 Inline_Always when in Configurable_Run_Time mode.
13811 * sem_prag.adb (Process_Convention): If entity is an inherited
13812 subprogram, apply convention to parent subprogram if in same scope.
13813 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
13814 when in Configurable_Run_Time mode.
13816 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13818 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
13819 class_wide type after component list has been inherited.
13821 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13823 * sem_ch12.adb (Check_Generic_Actuals): New predicate
13824 Denotes_Previous_Actual, to handle properly the case of a private
13825 actual that is also the component type of a subsequent array actual.
13826 The visibility status of the first actual is not affected when the
13827 second is installed.
13828 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
13829 make fully recursive the treatment of formals of packages declared
13831 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
13832 the above on exit from an instantiation.
13833 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
13834 current instantiation which is now complete.
13835 (Analyze_Package_Instantiation): No instantiated body is needed if the
13836 main unit is generic. Efficient, and avoid anomalies when a instance
13837 appears in a package accessed through rtsfind.
13839 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13841 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
13842 do not generate a declaration for a temporary if the call is part of a
13843 library-level instantiation.
13845 2004-10-04 Ed Schonberg <schonberg@gnat.com>
13847 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
13848 searching for a limited component to flag.
13850 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
13851 expansion of Input, to account for the fact that the implicit call
13852 generated by the attribute reference must freeze the user-defined
13853 stream subprogram. This is only relevant to 'Input, because it can
13854 appear in an object declaration, prior to the body of the subprogram.
13856 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
13857 expansion can proceed and further errors uncovered.
13858 (Minor clean up): Fix cases of using | instead of \ for continuation
13861 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13863 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
13865 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
13866 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
13867 Use gcc_assert and gcc_unreachable.
13869 * decl.c (gnat_to_gnu_entity, case object): Check and process a
13870 specified alignment before validating size.
13871 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
13872 stripped-down declaration for the type of the inner field when making
13875 * utils.c (finish_record_type): Do not compute the size in units
13876 incrementally. Instead compute it once for the rep clause case.
13877 Use gcc_assert and gcc_unreachable.
13879 2004-10-04 Vincent Celier <celier@gnat.com>
13881 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
13883 (Is_Valid_Path_Name): Take '/' as a directory separator.
13885 2004-10-04 Vincent Celier <celier@gnat.com>
13887 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
13888 (Extended_Project) only if Extended_Project is defined, to avoid
13890 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
13892 (Parse_Single_Project): Ditto.
13894 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
13895 Add_To_Project_Path for virtual projects.
13897 2004-10-04 Vincent Celier <celier@gnat.com>
13899 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
13900 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
13901 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
13902 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
13903 parameter Options_2.
13905 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
13906 Build_Dynamic_Library with an empty Options_2.
13908 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
13911 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
13912 directory separator, if any.
13913 (Gprmake): Do not allow mains on the command line for library projects.
13914 Do not attempt to link when the project is a library project.
13915 (Library_Opts): New table to store Library_Options.
13916 (Build_Library): If Library_Options is specified, pass these options
13917 when building a shared library.
13919 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
13921 * s-tposen.adb (Service_Entry): The object must be always unlocked at
13922 the end of this procedure now that the unlock operation was inserted
13925 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
13927 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
13928 corresponding to the Preallocated_Stacks flags in System.
13929 (Get_Target_Parameters): Including the processing for
13930 Preallocated_Stacks.
13932 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
13933 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
13934 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
13935 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
13936 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
13937 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
13938 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
13939 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
13940 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
13941 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
13942 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
13943 used to signal whether the compiler creates the required stacks and
13944 descriptors for the different tasks (when True) or it is done by the
13945 underlying operating system at run time (when False).
13946 It is initially set to False in all targets.
13948 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
13949 if it is supported by the target.
13950 (Make_Task_Create_Call): Pass the stack address if it has been
13951 previously created. Otherwise pass a Null_Address.
13953 * snames.adb: Add _stack.
13955 * snames.ads: Add Name_uStack. Required to allow the expander to
13956 statically allocated task stacks.
13958 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
13959 Stack_Address argument.
13960 Check that its value is equal to Null_Address because this target does
13961 not support the static stack allocation.
13963 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
13965 * usage.adb: Change "pragma inline" to "pragma Inline" in information
13968 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
13970 * exp_dist.adb: Split declaration of asynchronous flag out of
13971 Add_RACW_Read_Attribute.
13972 Minor reformatting for better alignment with PolyORB version.
13973 Store the entity for the asynchronous flag of an RACW, rather than the
13974 expression, in the asynchronous flags table. This will allow this flag
13975 to be used in other subprograms beside Add_RACW_Read_Attribute.
13977 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
13979 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
13980 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
13981 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
13982 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
13983 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
13984 sockets constant MSG_NOSIGNAL (Linux-specific).
13985 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
13986 all Send operations.
13987 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
13988 from trigerring SIGPIPE.
13989 Rename components to avoid clash with Ada 2005 possible reserved
13991 (Check_Selector): When the select system call returns with an error
13992 condition, propagate Socket_Error to the caller.
13994 2004-10-01 Jan Hubicka <jh@suse.cz>
13996 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
13998 2004-09-23 Robert Dewar <dewar@gnat.com>
14002 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
14003 instead do this at freeze time (we won't do it if there is an address
14005 Change "pragma inline" to "pragma Inline" in information and error
14007 Minor reformatting.
14009 * freeze.adb (Check_Address_Clause): Remove previous change, not the
14010 right way of doing things after all.
14011 (Freeze_Entity): For object, set Is_Public for imported entities
14012 unless there is an address clause present.
14014 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
14016 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
14017 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
14018 ensures proper handling of types with rep clauses, which might have
14019 their TYPE_SIZE set already.
14021 2004-09-21 Robert Dewar <dewar@gnat.com>
14023 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
14024 packed array types in both little- and big-endian cases. This change
14025 ensures that we no longer count on the unused bits being initialized
14026 for such types (and in particular ensures that equality testing will
14027 only read the relevant bits).
14028 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
14029 These changes mean that we no longer need to initialize small packed
14031 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
14032 optimization to an LJM field as to its parent field.
14034 * ada-tree.h, trans.c, utils.c, utils2.c:
14035 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
14037 2004-09-20 Jan Hubicka <jh@suse.cz>
14039 * utils.c (gnat_finalize): Remove.
14040 (end_subprog_body): Directly call cgraph_finalize_function;
14041 do not lower the nested functions.
14043 2004-09-20 Robert Dewar <dewar@gnat.com>
14047 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
14048 if an address clause is present, since that means that the Import
14051 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
14053 * 5tsystem.ads: Removed, no longer used.
14055 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
14056 Zack Weinberg <zack@codesourcery.com>
14058 * ada-tree.def: Use tree_code_class enumeration constants
14059 instead of code letters.
14060 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
14061 Update for new tree-class enumeration constants.
14063 2004-09-17 Vincent Celier <celier@gnat.com>
14065 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
14066 capabilities of the general project manager.
14068 2004-09-09 Vincent Celier <celier@gnat.com>
14070 * a-direct.ads: Add pragma Ada_05
14071 (Directory_Entry_Type): Give default value to component Kind to avoid
14072 not initialized warnings.
14074 * a-direct.adb (Current_Directory): Remove directory separator at the
14076 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
14077 an existing directory.
14078 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
14079 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
14080 Convert the result to File_Size.
14082 * prj.ads: (Project_Error): New exception
14084 * prj-attr.adb: Except in procedure Initialize, Fail comes from
14085 Prj.Com, not from Osint.
14086 (Attrs, Package_Attributes): Tables moved to private part of spec
14087 (Add_Attribute, Add_Unknown_Package): Moved to new child package
14089 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
14090 Prj.Project_Error after call to Fail.
14091 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
14092 Fail. Check that package name is not already in use.
14094 * prj-attr.ads: Comment updates to indicate that all subprograms may be
14095 used by tools, not only by the project manager, and to indicate that
14096 exception Prj.Prj_Error may be raised in case of problem.
14097 (Add_Unknown_Package, Add_Attribute): Moved to new child package
14099 (Attrs, Package_Attributes): Table instantiations moved from the body to
14100 the private part to be accessible from Prj.Attr.PM body.
14102 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
14103 from new package Prj.Attr.PM.
14104 (Parse_Attribute_Declaration): Call Add_Attribute from new package
14107 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
14109 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
14110 instead of Elaboration_Checks).
14112 * a-calend.adb: Minor reformatting
14114 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14116 * gigi.h (maybe_pad_type): New declaration.
14117 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
14119 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
14121 * cuintp.c: Convert to use buildN.
14123 * decl.c (maybe_pad_type): No longer static.
14124 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
14126 Convert to use buildN.
14128 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
14129 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
14130 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
14132 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
14133 (gnat_gimplify_expr, case ADDR_EXPR): New case.
14134 Convert to use buildN.
14136 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
14137 TREE_READONLY for const.
14138 Convert to use buildN.
14140 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
14141 (create_var_decl): Refine when TREE_STATIC is set.
14142 Convert to use buildN.
14144 2004-09-09 Gary Dismukes <dismukes@gnat.com>
14146 * gnat_ugn.texi: Delete text relating to checking of ali and object
14149 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
14152 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
14154 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
14155 pragmas recognized by GNAT.
14157 * gnat_rm.texi: Document pragma Detect_Blocking.
14159 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
14160 raise Program_Error if called from a protected operation.
14162 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
14163 the protected action nesting level.
14164 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
14165 protected action nesting level.
14166 (Unlock): When pragma Detect_Blocking is active decrease the protected
14167 action nesting level.
14169 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
14170 Protected_Action_Nesting.
14172 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
14173 Common_ATCB record. It contains the dynamic level of protected action
14174 nesting for each task. It is needed for checking whether potentially
14175 blocking operations are called from protected operations.
14176 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
14177 Detect_Blocking is active or not in the partition.
14179 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
14180 raise Program_Error if called from a protected operation.
14181 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
14182 Program_Error if called from a protected operation.
14183 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
14184 Program_Error if called from a protected operation.
14186 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
14187 raise Program_Error if called from a protected operation.
14189 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
14190 raise Program_Error if called from a protected operation, and increase
14191 the protected action nesting level.
14192 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
14193 Program_Error if called from a protected operation, and increase the
14194 protected action nesting level.
14195 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
14196 protected action nesting level.
14198 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
14199 raise Program_Error if called from a protected operation, and increase
14200 the protected action nesting level.
14201 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
14202 Program_Error if called from a protected operation, and increase the
14203 protected action nesting level.
14204 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
14205 raise Program_Error if called from a protected operation.
14206 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
14207 active, raise Program_Error if called from a protected operation.
14208 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
14209 protected action nesting level.
14211 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
14212 insertion of the statement raising Program_Error. The run time
14213 contains the required machinery for handling that.
14215 * sem_util.ads: Change comment associated to procedure
14216 Check_Potentially_Blocking_Operation.
14217 This procedure does not insert a call for raising the exception because
14218 that is currently done by the run time.
14220 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
14222 * init.c: Add the global variable __gl_detect_blocking that indicates
14223 whether pragma Detect_Blocking is active (1) or not (0). Needed for
14224 making the pragma available at run time.
14225 (__gnat_set_globals): Pass and update the detect_blocking parameter.
14227 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
14228 pragma Detect_Blocking is active.
14230 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
14232 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
14233 DB is found in the ali file. Any unit compiled with pragma
14234 Detect_Blocking active forces its effect in the whole partition.
14236 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
14237 Detect_Blocking is active and delay is called from a protected
14240 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
14241 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
14242 Detect_Blocking is active (0 otherwise).
14243 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
14244 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
14247 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
14249 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
14250 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
14253 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
14254 (Register_Receiving_Stub): Add Subp_Info formal parameter.
14255 Update API in placeholder implemetation of s-parint to reflect changes
14256 in distribution runtime library.
14258 * sem_ch3.adb (Expand_Derived_Record): Rename to
14259 Expand_Record_Extension.
14261 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
14262 primitive operations of potentially distributed object types that have
14263 non-controlling anonymous access formals.
14265 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
14267 New implementation of expansion for remote access-to-subprogram types,
14268 based on the RACW infrastructure.
14269 This version of sem_dist is compatible with PolyORB/DSA as well as
14272 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
14273 Asynchrronous that applies to a remote access-to-subprogram type, mark
14274 the underlying RACW type as asynchronous.
14276 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
14277 __gnat_using_gnu_linker to 1.
14279 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
14280 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
14281 GNAT.Perfect_Hash_Generators, and remove the empty
14282 GNAT.Perfect_Hash package.
14284 * atree.adb: Minor reformatting
14286 * exp_ch3.adb (Expand_Derived_Record): Rename to
14287 Expand_Record_Extension.
14288 (Build_Record_Init_Proc.Build_Assignment): The default expression in
14289 a component declaration must remain attached at that point in the
14290 tree so New_Copy_Tree copies it if the enclosing record type is derived.
14291 It is therefore necessary to take a copy of the expression when building
14292 the corresponding assignment statement in the init proc.
14293 As a side effect, in the case of a derived record type, we now see the
14294 original expression, without any rewriting that could have occurred
14295 during expansion of the ancestor type's init proc, and we do not need
14296 to go back to Original_Node.
14298 * exp_ch3.ads (Expand_Derived_Record): Rename to
14299 Expand_Record_Extension.
14301 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
14302 Returns the RACW type used to implement a remote access-to-subprogram
14304 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
14305 New subprograms. Used to create a proxy tagged object for a remote
14306 subprogram. The proxy object is used as the designated object
14307 for RAS values on the same partition (unless All_Calls_Remote applies).
14308 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
14309 System.Partition_Interface.Get_Unique_Remote_Pointer.
14310 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
14311 Renamed from Add_RAS_*_Attribute.
14312 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
14314 New implementation of expansion for remote access-to-subprogram types,
14315 based on the RACW infrastructure.
14317 * exp_dist.ads (Copy_Specification): Update comment to note that this
14318 function can copy the specification from either a subprogram
14319 specification or an access-to-subprogram type definition.
14321 2004-09-09 Ed Schonberg <schonberg@gnat.com>
14323 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
14324 in an instance, between an explicit subprogram an one inherited from a
14325 type derived from an actual.
14327 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
14328 add a polling call if the subprogram is to be inlined by the back-end,
14329 to avoid repeated calls with multiple inlinings.
14331 * checks.adb (Apply_Alignment_Check): If the expression in the address
14332 clause is a call whose name is not a static entity (e.g. a dispatching
14333 call), treat as dynamic.
14335 2004-09-09 Robert Dewar <dewar@gnat.com>
14337 * g-trasym.ads: Minor reformatting
14339 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
14340 packed arrays, since unused bits are expected to be zero for a
14343 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
14345 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
14348 2004-09-09 Pascal Obry <obry@gnat.com>
14350 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
14351 enable map file generation. Add the right option to generate the map
14352 file if Map_File is set to True.
14354 * gnatdll.adb (Gen_Map_File): New variable.
14355 (Syntax): Add info about new -m (Map_File) option.
14356 (Parse_Command_Line): Add support for -m option.
14357 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
14358 Minor reformatting.
14360 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
14362 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
14363 new gnatdist implementation.
14364 Define a subpackage isolating the output routines specific to this
14367 2004-09-09 Joel Brobecker <brobecker@gnat.com>
14369 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
14371 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
14373 2004-09-09 Cyrille Comar <comar@act-europe.fr>
14375 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
14378 * opt.ads: Add Ada_Version_Runtime constant used to decide which
14379 version of the language is used to compile the run time.
14381 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
14383 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
14384 of variable length temporaries for function return now that the
14385 back-end and gigi support it.
14387 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14389 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
14391 * trans.c (struct stmt_group): Delete field GLOBAL.
14392 (gnat_init_stmt_group): Do not initialize it.
14393 (call_to_gnu): Use save_expr, not protect_multiple_eval.
14394 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
14395 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
14396 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
14397 (start_stmt_group): Likewise.
14398 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
14400 * utils2.c (ggc.h): Include.
14401 (build_call_raise): Call build_int_cst, not build_int_2.
14403 * utils.c (gnat_init_decl_processing): Fix arg to
14404 build_common_tree_nodes.
14405 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
14406 (gnat_define_builtin): Set built_in_decls.
14407 (init_gigi_decls): Call build_int_cst, not build_int_2.
14409 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
14410 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
14411 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
14412 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
14413 SET_TYPE_MODULE): Use them.
14414 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
14415 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
14416 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
14417 SET_TYPE_ADA_SIZE): Likewise.
14418 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
14419 (DECL_CONST_CORRESPONDING_VAR,
14420 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
14421 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
14422 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
14423 (TYPE_RM_SIZE_NUM): New macro.
14424 (TYPE_RM_SIZE): Modified to use above.
14426 * cuintp.c: (build_cst_from_int): New function.
14427 (UI_To_gnu): Use it.
14429 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
14430 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
14431 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
14432 MIN_EXPR for the size, copy it into new.
14434 2004-09-01 Robert Dewar <dewar@gnat.com>
14436 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
14437 packed indexed component where array is an IN OUT formal. This
14438 generated garbage code previously.
14440 * gnat_ugn.texi: Document -fverbose-asm
14442 * gnat-style.texi: Minor updates (note that boolean constants and
14443 variables are joined with AND/OR rather than short circuit forms).
14445 2004-09-01 Ed Schonberg <schonberg@gnat.com>
14447 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
14448 it is an upward conversion of an untagged type with no representation
14451 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
14453 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
14454 System.Partition_Interface.
14456 * checks.adb (Apply_Access_Checks): Do not generate checks when
14457 expander is not active (but check for unset reference to prefix of
14460 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
14461 pragma Debug as an if statement with a constant condition, for
14462 consistent treatment of entity references contained within the
14463 enclosed procedure call.
14465 2004-09-01 Vincent Celier <celier@gnat.com>
14467 * bindgen.adb: (Set_EA_Last): New procedure
14468 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
14470 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
14471 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
14472 linked without errors.
14473 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
14475 (Gen_Exception_Table_C): Correct same bugs
14477 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
14479 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
14480 on Windows, make sure that the drive letter is in upper case.
14482 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
14483 Windows, when the drive letter is added and Case_Sensitive is True, the
14484 drive letter is forced to upper case.
14486 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
14487 to Options_2 for the call to MLib.Utl.Gcc.
14489 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
14490 directory separator when defining BASE_DIR.
14492 2004-09-01 Pascal Obry <obry@gnat.com>
14494 * gprcmd.adb (Extend): Do not output trailing directory separator. This
14495 is not needed and it confuses Windows GNU/make which does not report
14496 directory terminated by a slash as a directory.
14497 (gprcmd): Idem for "pwd" internal command.
14499 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
14500 target names rewrite to fix regressions with recent version of
14501 GNU/make. Starting with GNU/make 3.80 the pipe character was not
14502 handled properly anymore.
14504 2004-09-01 Andreas Schwab <schwab@suse.de>
14506 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
14507 * raise.c [!IN_RTS]: Undef abort.
14509 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
14511 * utils2.c (build_allocator): Use ssize_int.
14513 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
14515 2004-08-27 Andreas Schwab <schwab@suse.de>
14517 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
14519 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
14520 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14522 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
14524 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
14526 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
14527 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
14528 * utils.c (init_gigi_decls): Likewise.
14529 * utils2.c (build_call_raise, build_allocator): Likewise.
14531 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
14533 * utils.c (gnat_init_decl_processing): Adjust
14534 build_common_tree_nodes call.
14536 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
14538 * utils2.c (build_allocator): Use build_int_cst for negative
14541 2004-08-18 Richard Henderson <rth@redhat.com>
14543 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
14545 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
14547 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
14549 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
14550 (gnat_to_gnu): Likewise.
14552 2004-08-16 Pascal Obry <obry@gnat.com>
14554 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
14555 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
14556 option and not mdll anymore. Update comment.
14558 2004-08-16 Pascal Obry <obry@gnat.com>
14560 * bld.adb (Put_Include_Project): Properly handle directory separators
14563 2004-08-16 Ed Schonberg <schonberg@gnat.com>
14565 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
14566 decreasing the number of allocated junk nodes while searching for the
14567 appropriate subprogram.
14569 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
14571 * cuintp.c (UI_To_gnu): Use build_int_cst..
14572 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
14573 * utils.c (init_gigi_decls): Likewise.
14574 * utils2.c (build_call_raise): Likewise.
14576 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
14578 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
14579 for a global aliased object with a variable size and an unconstrained
14580 nominal subtype, pretend there is no initializer if the one we have is
14581 incomplete, and avoid referencing an inexistant component in there. The
14582 part we have will be rebuilt anyway and the reference may confuse
14583 further operations.
14585 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
14587 * einfo.ads: Minor reformatting
14589 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
14590 restrictions in the ALI if we only want to warn about violations.
14592 2004-08-13 Vincent Celier <celier@gnat.com>
14594 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
14595 when creating a new Unit_Record in table Units.
14597 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
14598 that are violated, if any.
14600 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
14601 add directory separator if path already ends with a directory separator.
14603 2004-08-13 Ed Schonberg <schonberg@gnat.com>
14605 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
14606 unit, this is an attempt to inline a construct that is not available in
14607 the current restricted mode, so abort rather than trying to continue.
14609 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
14610 discriminants that rename those of the parent, recover names of
14611 original discriminants for the constraint on the full view of the
14613 (Complete_Private_Subtype): Do not create a subtype declaration if the
14614 subtype is an itype.
14616 * gnat_rm.texi: Added section on implementation of discriminated
14617 records with default values for discriminants.
14619 2004-08-13 Ed Schonberg <schonberg@gnat.com>
14622 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
14623 the second operand is overloaded.
14625 2004-08-10 Richard Henderson <rth@redhat.com>
14627 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
14628 add __builtin_alloca.
14630 2004-08-10 Richard Henderson <rth@redhat.com>
14632 * config-lang.in (boot_language): Yes.
14634 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
14636 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
14637 from complaining on potential uninitialized reference.
14638 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
14639 new specification and test explicitly for non-zero return value.
14641 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
14642 returning C.int, to avoid using a derived boolean type.
14644 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
14645 Duplicate_Subexpr_No_Checks in preference to direct use of
14646 Remove_Side_Effects and New_Copy_Tree.
14647 Clear Comes_From_Source on prefix of 'Size attribute reference.
14649 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
14650 g-socthi-vxworks.adb: Change calls to
14651 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
14652 and test explicitly for non-zero return value.
14654 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
14655 (Is_Socket_In_Set): Declare imported function as returning C.int, to
14656 avoid using a derived boolean type.
14658 2004-08-09 Albert Lee <lee@gnat.com>
14660 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
14662 2004-08-09 Pascal Obry <obry@gnat.com>
14664 * gnat_ugn.texi: Document new way to build DLLs on Windows using
14665 GCC's -shared option.
14667 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
14668 Options_2 parameter (options put after object files).
14670 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
14672 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
14673 ignore overflows on low and high bounds of an index to also account for
14674 differences in signedness between sizetype and gnu_index_subtype.
14675 These are as legitimate as the ones caused by a lower TYPE_PRECISION
14678 2004-08-09 Robert Dewar <dewar@gnat.com>
14680 * s-solita.ads, s-solita.adb: Minor reformatting
14682 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
14683 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
14684 obsolescent section
14685 Add note that No_Implicit_Conditionals does not suppress
14686 run time constraint checks.
14688 * vms_conv.ads: Minor reformatting
14690 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
14691 and necessary for following change).
14692 (Mark): Return new format Mark_Id containing sec stack address
14693 (Release): Use sec stack address from Mark_Id avoiding Self call
14695 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
14696 pointer (cleanup and necessary for following change).
14697 Define Mark_Id as record containing address of secondary stack, that way
14698 Release does not need to find the stack again, decreasing the number of
14699 calls to Self and improving efficiency.
14701 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
14703 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
14704 case variable into the individual case branches when possible.
14706 * sem_ch11.adb: Minor reformatting
14708 * prj.ads: Correct spelling of suffixs
14710 * prj-nmsc.adb: Minor reformatting
14711 Correct spelling suffixs throughout (also in identifiers)
14713 * freeze.adb: Minor spelling correction
14715 * exp_ch2.adb: Cleanups to handling of Current_Value
14716 (no functional effect).
14718 * bld.adb: Correct spelling of suffixs
14720 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
14722 2004-08-09 Ed Schonberg <schonberg@gnat.com>
14726 * sem_ch7.adb (Install_Private_Declarations): In the body of the
14727 package or of a child, private entities are both immediately_visible
14730 2004-08-09 Ed Schonberg <schonberg@gnat.com>
14732 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
14733 there are no range checks on the value of the literal.
14735 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
14736 wrapped is the triggering alternative of an asynchronous select, action
14737 statements mustbe inserted before the select itself.
14739 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
14740 case where the prefix is a protected function call.
14741 (Resolve_Attribute, case 'Access): The attribute reference on a
14742 subprogram is legal in a generic body if the subprogram is declared
14745 2004-08-09 Vincent Celier <celier@gnat.com>
14747 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
14748 languages, otherwise building the library may fail with unresolved
14750 (Compile_Sources): Do not build libraries if -c switch is used
14752 * gnatlink.adb (Process_Args): New switches -M and -Mmap
14753 (Write_Usage): If map file creation is supported, output new switches
14755 (Gnatlink): When -M is specified, add the necessary switch(es) to the
14756 gcc call, when supported.
14758 * Makefile.in: Added indepsw.o to the object list for gnatlink
14759 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
14761 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
14762 indepsw.adb, indepsw.ads: New files.
14764 2004-08-09 Bernard Banner <banner@gnat.com>
14766 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
14768 * Makefile.in: add section for vxworks x86
14770 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
14772 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
14773 per-object constrained components where the discriminant is of an
14775 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
14776 the parent initialization procedure for derived Unchecked_Unions.
14777 Instead, derived Unchecked_Unions build their own initialization
14779 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
14780 Check the body of the subprogram for details.
14781 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
14782 functions for derived Unchecked_Union types by introducing a condition.
14783 Allow the creation of TSS equality functions for Unchecked_Unions.
14784 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
14785 Add formal parameter Discr to function signature. Discr is used to
14786 control the generated case statement for Unchecked_Union types.
14787 (Make_Eq_If): Rename formal parameter Node to E in function signature.
14789 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
14791 Check the body of the subprogram for details.
14792 (Expand_Composite_Equality): Augment composite type equality to include
14793 correct handling of Unchecked_Union components.
14794 (Expand_N_In): Add condition to detect illegal membership tests when the
14795 subtype mark is a constrained Unchecked_Union and the expression lacks
14796 inferable discriminants, and build a Raise_Program_Error node.
14797 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
14798 to detect types that contain components of unconstrained Unchecked_Union
14799 subtype. Add condition to detect equality between types that have an
14800 unconstrained Unchecked_Union component, and build a Raise_Program_Error
14801 node. Add condition to detect equality between Unchecked_Union types
14802 that lack inferable discriminants, and build a Raise_Program_Error node.
14803 Otherwise build a TSS equality function call.
14804 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
14805 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
14806 with the operand lacking inferable discriminants, and build a Raise_
14807 Program_Error node.
14808 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
14809 composite equality.
14810 (Has_Inferable_Discriminants): Implement new predicate for objects and
14811 expressions of Unchecked_Union type. Check the body of subprogram for
14813 (Has_Unconstrained_UU_Components): Add function
14814 Component_Is_Unconstrained_UU. It is used to detect whether a single
14815 component is of an unconstrained Unchecked_Union subtype. Add function
14816 Variant_Is_Unconstrained_UU. It is used to detect whether a single
14817 component inside a variant is of an unconstrained Unchecked_Union type.
14819 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
14820 inferred discriminant values. Add condition to generate a case
14821 statement with an inferred discriminant as the switch.
14822 (Make_Component_List_Assign): Introduce a Boolean flag that determines
14823 the behaviour of the subprogram in the presence of an Unchecked_Union.
14824 Add condition to trigger the usage of the inferred discriminant value
14825 as the generated case statement switch.
14826 (Make_Field_Assign): Introduce a Boolean flag that determines the
14827 behaviour of the subprogram in the presence of an Unchecked_Union. Add
14828 condition to trigger the usage of the inferred discriminant value as
14829 the right-hand side of the generated assignment.
14831 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
14832 parameter generation when dealing with Unchecked_Unions.
14834 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
14835 checks for Unchecked_Unions.
14837 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
14839 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
14840 Raise_Program_Error nodes for the execution of Read and Write
14841 attributes of Unchecked_Union types and the execution of Input and
14842 Output attributes of Unchecked_Union types that lack default
14843 discriminant values.
14845 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
14846 Unchecked_Union. Add procedure Check_Component. It is used to inspect
14847 per-object constrained components of Unchecked_Unions for being
14848 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
14849 check individual components withing a variant.
14851 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
14852 comparison of Unchecked_Unions.
14853 (Resolve_Equality_OP): Remove guard that prevents equality between
14856 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
14857 of component subtypes for Unchecked_Union components.
14858 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
14859 since it is the actual subtype.
14861 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
14862 pass of Unchecked_Union subtypes as generic actuals to formal types
14863 that lack known_discriminant_parts or that are derived Unchecked_Union
14864 types, and do nothing. In any other case, produce an error message.
14866 * sem_ch3.adb (Analyze_Component_Declaration): Add function
14867 Contains_POC. It determines whether a constraint uses the discriminant
14868 of an enclosing record type.
14869 Add condition to detect per-object constrained component and set the
14871 (Derived_Type_Declaration): Remove guard that prevents derivation from
14872 Unchecked_Union types.
14873 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
14876 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
14877 references to Unchecked_Union discriminants.
14879 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
14880 formal generation when dealing with Unchecked_Unions.
14881 (Set_Actual_Subtypes): Add condition to prevent generation of actual
14882 subtypes for Unchecked_Unions.
14884 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
14885 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
14886 completions of discriminated partial views by Unchecked_Unions and
14887 produce an error message.
14889 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14891 * trans.c (struct stmt_group): New field, GLOBAL.
14892 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
14893 (struct elab_info): New struct.
14894 (elab_info_list, gnu_elab_proc_stack): New variables.
14895 (Compilation_Unit_to_gnu): New procedure.
14896 (gigi): Call it and also handle elaboration procs we've saved.
14897 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
14898 global field from parent.
14899 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
14900 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
14901 (start_stmt_group): Initialize global field from parent.
14902 (add_decl_expr): Set to global for current statement group.
14903 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
14906 * utils.c (global_bindings_p): True when no current_function_decl; no
14907 longer check current_binding_level.
14909 2004-08-09 Ben Brosgol <brosgol@gnat.com>
14911 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
14914 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
14916 2004-08-06 Andreas Schwab <schwab@suse.de>
14918 * utils.c (gnat_define_builtin): Remove second parameter of
14920 (begin_subprog_body): Likewise.
14922 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
14924 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
14925 optimization, not supported by the tree-ssa back-end.
14927 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
14929 * s-mastop-irix.adb: Update comments.
14931 * a-except.adb (Exception_Information): Raise Constraint_Error if
14932 exception Id is Null_Id.
14933 This is required behavior, which is more reliably and clearly checked
14934 at the top level interface level.
14936 2004-07-26 Javier Miranda <miranda@gnat.com>
14938 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
14939 call if a component has no default_expression and the box is used.
14941 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
14942 default_expression and you use box, it behaves as if you had declared a
14943 stand-alone object.
14944 (Resolve_Record_Aggregate): If a component has no default_expression and
14945 you use box, it behaves as if you had declared a stand-alone object.
14947 * sem_ch10.adb (Install_Siblings): Do not make visible the private
14948 entities of private-with siblings.
14950 2004-07-26 Ed Schonberg <schonberg@gnat.com>
14952 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
14953 for a component of an itype, set the parent pointer for analysis,
14954 there is no list in which to insert it.
14956 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
14957 bona-fide renamings, not for inherited operations.
14959 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
14960 actual for a formal that is an access parameter, create local
14961 finalization list even if the expression is not an aggregate.
14963 2004-07-26 Ed Schonberg <schonberg@gnat.com>
14966 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
14967 Diagnose properly illegal subprogram renamings that are library units.
14969 2004-07-26 Ed Schonberg <schonberg@gnat.com>
14972 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
14973 conversion rewritten as an unchecked conversion, check that original
14974 expression is a variable.
14976 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
14977 unchecked_conversion, create new node rather than rewriting in place,
14978 to preserve original construct.
14980 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14982 * gigi.h (gnat_expand_body): Deleted.
14984 * Make-lang.in: (trans.o): Depends on function.h.
14986 * misc.c: (gnat_expand_body): Moved to here.
14988 * trans.c (gnat_expand_body_1): Deleted.
14989 (gnat_expand_body): Moved from here.
14990 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
14991 (add_stmt): Check for marked visited with global_bindings_p.
14992 (gnat_gimplify_expr, case COMPONENT_REF): New case.
14993 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
14995 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
14996 VIEW_CONVERT_EXPR if not operation type.
14998 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
15001 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
15002 changes: reformatting of negation operators, removing unneeded
15003 inequality comparison with zero, converting equality comparisons with
15004 zero to negations, changing int/0/1 to bool/false/true, replace calls
15005 to gigi_abort with abort, and various other similar changes.
15007 2004-07-26 Vincent Celier <celier@gnat.com>
15009 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
15012 * make.adb (Gnatmake): Fail when a library is not present and there is
15013 no object directory.
15015 * mlib-prj.adb (Check_Library): No need to check if the library needs
15016 to be rebuilt if there is no object directory, hence no object files
15017 to build the library.
15019 * opt.ads (Setup_Projects): New Boolean flag.
15021 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
15023 Create directory when Kind /= "" and in "gnat setup". Report error if
15024 directory cannot be created.
15025 (Ada_Check): Create library interface copy dir if it does not exist
15026 and we are in "gnat setup".
15027 (Find_Sources): No error if in "gnat setup" and no Ada sources were
15029 (Language_Independent_Check): Create object directory, exec directory
15030 and/or library directory if they do not exist and we are in
15033 * vms_conv.ads: (Command_Type): New command Setup.
15035 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
15037 * vms_data.ads: Add qualifiers/switches for new built-in command
15040 2004-07-25 Richard Henderson <rth@redhat.com>
15042 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
15043 DECL_IGNORED_P on RESULT_DECL.
15045 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
15047 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
15048 allocation and potentially overflowing update with
15049 Tailored_Exception_Information. Use the sec-stack free procedural
15050 interface to output Exception_Information instead.
15052 * a-except.adb (To_Stderr): New subprogram for character, and string
15053 version moved from a-exextr to be visible from other separate units.
15054 (Tailored_Exception_Information): Remove the procedural version,
15055 previously used by the default Last_Chance_Handler and not any more.
15056 Adjust various comments.
15058 * a-exexda.adb: Generalize the exception information procedural
15059 interface, to minimize the use of secondary stack and the need for
15060 local buffers when the info is to be output to stderr:
15061 (Address_Image): Removed.
15062 (Append_Info_Character): New subprogram, checking for overflows and
15063 outputing to stderr if buffer to fill is of length 0.
15064 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
15065 (Append_Info_Address, Append_Info_Exception_Name,
15066 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
15067 Append_Info_Basic_Exception_Traceback,
15068 Append_Info_Exception_Information): New subprograms.
15069 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
15070 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
15071 Exception_Info_Maxlength, Exception_Name_Length,
15072 Exception_Message_Length): New subprograms.
15073 (Exception_Information): Use Append_Info_Exception_Information.
15074 (Tailored_Exception_Information): Use
15075 Append_Info_Basic_Exception_Information.
15076 Export services for the default Last_Chance_Handler.
15078 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
15079 other separate units.
15081 2004-07-20 Vincent Celier <celier@gnat.com>
15083 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
15085 2004-07-20 Ed Schonberg <schonberg@gnat.com>
15087 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
15088 emit itype references for the designated types of component types that
15089 are declared outside of the full record declaration, and that may
15090 denote a partial view of that record type.
15092 2004-07-20 Ed Schonberg <schonberg@gnat.com>
15095 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
15096 which is the designated type in an access component declaration, to the
15097 list of incomplete dependents of the parent type, to avoid elaboration
15098 issues with out-of-scope subtypes.
15099 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
15100 full view of the parent.
15102 2004-07-20 Ed Schonberg <schonberg@gnat.com>
15105 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
15106 entities that are hidden, such as references to generic actuals
15107 outside an instance.
15109 2004-07-20 Javier Miranda <miranda@gnat.com>
15111 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
15112 support to the new notation.
15113 (Analyze_Selected_Component): Add call to Try_Object_Operation.
15115 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
15117 * s-taprob.adb: Adding the elaboration code required for initializing
15118 the tasking soft links that are common to the full and the restricted
15121 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
15122 restricted run time has been moved to the package
15123 System.Soft_Links.Tasking.
15125 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
15126 restricted run time has been moved to the package
15127 System.Soft_Links.Tasking.
15129 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
15131 * s-solita.ads, s-solita.adb: New files.
15133 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15135 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
15136 Case_Statement_to_gnu): Split off from gnat_to_gnu.
15137 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
15138 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
15139 Exception_Handler_to_gnu_zcx): Likewise.
15141 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
15143 * gigi.h (builtin_function): Declare.
15145 2004-07-15 Robert Dewar <dewar@gnat.com>
15147 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
15150 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
15151 access values as an example of a warning.
15153 * gnat_rm.texi: Document new attribute Has_Access_Values
15155 * gnat-style.texi: Document that box comments belong on nested
15158 * sem_util.ads (Has_Access_Values): Improved documentation
15160 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
15162 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
15163 (Process_Interface_Name): Call to this new procedure
15164 (Set_Extended_Import_Export_External_Name): Call to this new procedure
15166 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
15168 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
15170 * einfo.ads: Minor comment typo fixed
15172 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
15174 * snames.adb: Add _atcb.
15176 * snames.ads: Add Name_uATCB.
15178 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
15179 (in the expanded code) when using the restricted run time.
15181 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
15182 a in parameter in order to allow ATCBs to be preallocated (in the
15185 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
15186 order to allow ATCBs to be preallocated. In case of error, the ATCB is
15187 deallocated in System.Tasking.Stages.
15189 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
15190 order to allow ATCBs to be preallocated.
15192 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
15193 here. It was previously done in Initialize_ATCB.
15195 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
15197 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
15198 Restricted run time.
15200 * exp_ch3.adb: When using the Restricted run time, pass the
15201 preallocated Ada_Task_Control_Block when creating a task.
15203 2004-07-15 Ed Schonberg <schonberg@gnat.com>
15205 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
15206 function call that is itself an actual in an enclosing call, diagnose
15207 problem here rather than assuming that resolution will catch it.
15209 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
15210 the local copy of a generic unit for a formal package, and the generic
15211 is a child unit, install private part of ancestors before compiling
15212 private part of spec.
15214 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
15215 use scope entities rather than tree structures, to handle properly
15216 parent units that are instances rewritten as bodies for inlining
15219 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
15220 Remove_Parents): Handle properly a parent unit that is an
15221 instantiation, when the unit has been rewritten as a body for inlining
15224 * par.adb (Goto_List): Global variable to collect goto statements in a
15225 given unit, for use in detecting natural loops.
15227 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
15228 use in detecting natural loops.
15230 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
15231 backwards goto's, and rewrite as a infinite loop, to improve locality
15234 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
15235 subcomponent that includes an indexed reference, to prevent the
15236 generation of copies that would miscompile the desired assignment
15238 (Build_Task_Image_Decls): Add a numeric suffix to
15239 generated name for string variable, to avoid spurious conflicts with
15240 the name of the type of a single protected object.
15242 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
15243 loop with an explicit exit statement, to avoid generating an
15244 out-of-range value with 'Succ leading to spurious constraint_errors
15245 when compiling with -gnatVo.
15247 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
15249 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
15250 might not be analyzed yet, even if its Etype is already set (case of an
15251 unchecked conversion built using Unchecked_Convert_To, for example).
15252 If the prefix has already been analyzed, this will be a nop anyway.
15254 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
15255 controller type, or an assignment of a record type with controlled
15256 components, copy only user data, and leave the finalization chain
15257 pointers untouched.
15259 2004-07-15 Vincent Celier <celier@gnat.com>
15261 * make.adb (Collect_Arguments): Improve error message when attempting
15262 to compile a source not part of any project, when -x is not used.
15264 * prj.ads: (Defined_Variable_Kind): New subtype
15266 * prj-attr.adb (Register_New_Package): Two new procedures to register
15267 a package with or without its attributes.
15268 (Register_New_Attribute): Mew procedure to register a new attribute in a
15270 New attribute oriented subprograms: Attribute_Node_Id_Of,
15271 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
15272 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
15274 New package oriented subprograms: Package_Node_Id_Of,
15275 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
15277 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
15279 (Package_Node_Id): Now a private, self initialized type
15280 (Register_New_Package): New procedure to register a package with its
15282 New attribute oriented subprograms: Attribute_Node_Id_Of,
15283 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
15284 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
15286 New package oriented subprograms: Package_Node_Id_Of,
15287 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
15289 * prj-dect.adb (Parse_Attribute_Declaration,
15290 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
15292 * prj-makr.adb (Make): Parse existing project file before creating
15293 other files. Fail if there was an error during parsing.
15295 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
15296 new spec of Prj.Attr.
15298 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
15299 to new spec of Prj.Attr.
15301 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15303 * utils2.c: Fix typo in comment.
15305 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15307 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
15308 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
15310 2004-07-14 Andreas Schwab <schwab@suse.de>
15312 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
15314 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15316 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
15318 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
15321 * misc.c (gnat_types_compatible_p): New function.
15322 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
15323 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
15325 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
15326 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
15327 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
15328 (mark_visited): Don't mark dummy type.
15329 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
15330 parameter, we must remove any LJM building from GNU_NAME.
15331 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
15332 (pos_to_constructor): Use int_const_binop.
15333 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
15336 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
15337 (gnat_pushlevel): Set TREE_USE on BLOCK node.
15338 (gnat_install_builtins): Add __builtin_memset.
15340 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
15342 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
15343 for a renaming, stabilize the initialization expression if we are at a
15344 local level. At the local level, uses of the renaming may be performed
15345 by a direct dereference of the initializing expression, and we don't
15346 want possible variables there to be evaluated for every use.
15348 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
15349 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
15350 them on the way. Account for the fact that we may introduce side
15351 effects in the process.
15353 2004-07-13 Richard Henderson <rth@redhat.com>
15355 * misc.c (default_pass_by_ref): Use pass_by_reference.
15357 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
15359 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
15360 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
15362 2004-07-08 Richard Henderson <rth@redhat.com>
15364 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
15367 2004-07-06 Vincent Celier <celier@gnat.com>
15369 * vms_conv.ads: Minor reformatting.
15370 Alphabetical order for enumerated values of type Command_Type, to have
15371 the command in alphabetical order for the usage.
15373 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
15374 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
15376 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
15378 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
15379 (Add_Archive_Path): Only add the global archive if there is one.
15380 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
15381 or not any object file to put in the global archive, and don't build
15382 a global archive if there is none.
15383 (X_Switches): New table
15384 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
15385 in the X_Switches table, if any.
15386 (Initialize): Make sure the X_Switches table is empty
15387 (Scan_Arg): Record -X switches in table X_Switches
15389 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
15391 * make.adb: Minor comment fix
15393 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
15394 invoked with directory information, add the directory in front of the
15397 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
15398 invoked with directory information, add the directory in front of the
15401 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
15402 when Keep_Temporary_Files is False.
15403 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
15404 directory information, add the directory in front of the path.
15405 When not on VMS, handle new switch -dn before the command to set
15406 Keep_Temporary_Files to True.
15407 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
15410 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
15411 invoked with directory information, add the directory in front of the
15414 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
15416 * snames.ads, snames.adb (Name_Stub): New name for the distributed
15419 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
15420 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
15422 * g-socket.adb (To_Timeval): Fix incorrect conversion of
15423 Selector_Duration to Timeval for the case of 0.0.
15425 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
15426 documentation from Evolve_And_Then.
15428 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
15430 * s-taprop-tru64.adb, s-taprop-os2.adb,
15431 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
15433 2004-07-06 Robert Dewar <dewar@gnat.com>
15435 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
15436 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
15437 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
15438 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
15439 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
15440 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
15441 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
15442 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
15443 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
15444 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
15445 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
15446 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
15447 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
15448 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
15449 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
15450 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
15451 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
15452 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
15453 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
15454 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
15455 vms_data.ads: Minor reformatting,
15456 Fix bad box comment format.
15458 * gnat_rm.texi: Fix minor grammatical error
15460 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
15462 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
15463 more cases of discriminated records to be recognized as not needing a
15465 (Has_Access_Values): New function.
15467 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
15469 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
15470 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
15471 with LRM terminology).
15472 Change terminology in comments primitive type => elementary type.
15474 2004-07-06 Ed Schonberg <schonberg@gnat.com>
15477 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
15478 parameters do not impose any requirements on the presence of a body.
15480 2004-07-06 Ed Schonberg <schonberg@gnat.com>
15483 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
15484 compilation unit and is in an open scope at the point of instantiation,
15485 assume that a body may be present later.
15487 2004-07-06 Ed Schonberg <schonberg@gnat.com>
15489 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
15490 Improve error message when specified size is not supported.
15492 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
15493 is never a primitive operation.
15495 2004-07-05 Andreas Schwab <schwab@suse.de>
15497 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
15498 RECORD_OR_UNION_CHECK.
15499 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
15501 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
15503 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
15504 dependency on xgnatugn, instead build it via a submake.
15505 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
15507 2004-07-04 Richard Henderson <rth@redhat.com>
15509 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
15511 2004-07-01 Richard Henderson <rth@redhat.com>
15513 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
15514 * utils.c (max_size): Likewise.
15516 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15518 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
15519 and rest_of_type_compilation; add arg to create_*_decl.
15520 (annotate_decl_with_node): Deleted.
15521 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
15522 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
15523 (get_current_block_context, gnat_pushdecl): New declarations.
15524 (gnat_init_stmt_group): Likewise.
15525 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
15526 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
15527 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
15528 (gnat_init): Call gnat_init_stmt_group.
15529 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
15530 (gnu_pending_elaboration_list): Deleted.
15531 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
15532 (gigi): Rearrange initialization calls and move some to last above.
15533 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
15534 Delete calls to add_decl_expr; add arg to create_*_decl.
15535 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
15536 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
15537 begin_subprog_body and call it.
15538 Don't push and pop ggc context.
15539 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
15540 (add_stmt): Remove handling of DECL_EXPR from here.
15541 If not in function, mark visited.
15542 (add_decl_expr): Put global at top level.
15543 Check for cases of DECL_INITIAL we have to handle here.
15544 (process_type): Add extra arg to create_type_decl.
15545 (build_unit_elab): Rework to just gimplify.
15546 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
15547 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
15548 (get_pending_elaborations, pending_elaborations_p): Likewise.
15549 (push_pending_elaborations, pop_pending_elaborations): Likewise.
15550 (get_elaboration_location, insert_elaboration_list): Likewise.
15551 (gnat_binding_level): Renamed from ada_binding_level.
15552 (init_gnat_to_gnu): Don't clear pending_elaborations.
15553 (global_bindings_p): Treat as global if no current_binding_level.
15554 (set_current_block_context): New function.
15555 (gnat_pushdecl): Renamed from pushdecl; major rework.
15556 All callers changed.
15557 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
15558 (finish_record_type): Call call pushdecl for stub decl.
15559 (function_nesting_depth): Deleted.
15560 (begin_subprog_body): Delete obsolete code.
15561 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
15563 2004-06-28 Robert Dewar <dewar@gnat.com>
15565 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15566 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
15567 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
15568 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
15569 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
15571 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
15572 deal with problem of inefficient slices on machines with strict
15573 alignment, when the slice is a component of a composite.
15575 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
15576 machines, we need the check there as well.
15578 2004-06-28 Ed Schonberg <schonberg@gnat.com>
15580 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
15581 determine safe copying direction for overlapping slice assignments
15582 when component is controlled.
15584 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
15585 formal derived type in the actual for a formal package are visible in
15586 the enclosing instance.
15588 2004-06-28 Ed Schonberg <schonberg@gnat.com>
15591 * sem_util.adb (Trace_Components): Diagnose properly an illegal
15592 circularity involving a private type whose completion includes a
15593 self-referential component.
15594 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
15595 renaming or an instantiation from an implicit derived operation.
15597 2004-06-28 Pascal Obry <obry@gnat.com>
15599 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
15601 (Library_File_Name_For): Idem.
15603 2004-06-28 Matthew Gingell <gingell@gnat.com>
15605 * g-traceb.ads: Add explanatory note on the format of addresses
15606 expected by addr2line.
15608 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
15610 * Makefile.in: Force debugging information on s-tasdeb.adb,
15611 a-except.adb and s-assert.adb needed by the debugger.
15613 2004-06-28 Vincent Celier <celier@gnat.com>
15615 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
15619 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
15621 * prj.adb: Minor reformatting
15622 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
15624 * prj.ads: Comment updates
15626 (Project_Data): Change Flag1 to Need_To_Build_Lib.
15627 Remove Flag2: not used.
15629 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
15632 * gnat_ugn.texi: Put a "null;" declaration in one project file example
15634 * gnat_rm.texi: Document Empty declarations "null;".
15636 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
15637 front of the linker options.
15638 (Link_Foreign): Put the global archives and the libraries in front of
15639 the linker options.
15641 2004-06-28 Javier Miranda <miranda@gnat.com>
15643 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
15644 (RTU_Loaded): Code cleanup
15645 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
15646 withed predefined units.
15648 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
15649 explicitly withed predefined units.
15650 Fix typo in comment
15652 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
15653 explicitly withed predefined units.
15655 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15657 * ada-tree.def (DECL_STMT): Deleted.
15658 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
15659 (DECL_STMT_VAR): Deleted.
15660 * decl.c: add_decl_stmt now add_decl_expr.
15661 * gigi.h: Likewise.
15662 * trans.c: Likewise.
15663 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
15664 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
15665 (add_stmt): Only handle padded type here.
15666 (add_stmt_with_node): Allow gnat_node to not be present.
15667 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
15668 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
15669 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
15670 make a SAVE_EXPR for the entire fat pointer.
15671 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
15672 (create_index_type): Make a DECL_EXPR.
15673 (end_subprog_body): Don't call allocate_struct_function here but
15676 2004-06-25 Pascal Obry <obry@gnat.com>
15678 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
15679 Relocatable from Build_Dynamic_Library call.
15681 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
15682 Relocatable are now synonym.
15684 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
15686 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
15687 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
15690 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
15691 Lib_Address and Relocatable.
15692 (Default_DLL_Address): Removed.
15694 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15695 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
15696 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
15697 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
15698 (Default_DLL_Address): Removed.
15700 * mlib-tgt-mingw.adb: Ditto.
15701 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
15703 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
15704 the initial thread stack size.
15706 * a-strmap.ads: Move package L to private part as it is not used in
15707 the spec. Found while reading code.
15709 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
15711 * tracebak.c: Introduce support for a GCC infrastructure based
15712 implementation of __gnat_backtrace.
15714 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
15715 any more. Use accessors instead. This eases maintenance and relaxes
15716 some alignment constraints.
15717 (_GNAT_Exception structure): Remove the Ada specific fields
15718 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
15720 (is_handled_by, __gnat_eh_personality): Replace component references to
15721 exception structure by use of the new accessors.
15723 * init.c (__gnat_initialize): Adjust comments to match the just
15724 reverted meaning of the -static link-time option.
15726 * adaint.c (convert_addresses): Arrange not to define a stub for
15727 mips-irix any more, as we now want to rely on a real version from a
15728 recent libaddr2line.
15730 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
15731 the personality routine can use them and not have to rely on a C
15732 counterpart of the record anymore. This simplifies maintenance and
15733 relaxes the constraint of having Standard'Maximum_Alignment match
15735 Update comments, and add a section on the common header alignment issue.
15737 2004-06-25 Geert Bosch <bosch@gnat.com>
15739 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
15740 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
15742 2004-06-25 Robert Dewar <dewar@gnat.com>
15744 * gnat_rm.texi: Fix section on component clauses to indicate that the
15745 restriction on byte boundary placement still applies for bit packed
15747 Add comment on stack usage from Initialize_Scalars
15749 * gnat_ugn.texi: Add documentation for -gnatyLnnn
15751 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
15752 limiting nesting level.
15754 * usage.adb: Add line for -gnatyLnnn switch
15756 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
15757 sem_ch13.adb, exp_aggr.adb: Minor reformatting
15759 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
15760 type as well as on the subtype. This corrects a problem in freeze in
15761 setting alignments of atomic types.
15763 * sem_eval.ads: Minor comment typo fixed
15765 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
15766 level. Minor reformatting.
15768 * fname.adb (Is_Predefined_File_Name): Require a letter after the
15769 minus sign. This means that file names like a--b.adb will not be
15770 considered predefined.
15772 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
15773 record Test new flag and give diagnostic for bad component clause.
15774 (Freeze_Entity): Set alignment of array from component alignment in
15775 cases where this is safe to do.
15777 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
15780 * cstand.adb: (Create_Standard): Set alignment of String to 1
15782 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
15784 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
15785 code in the common constrained array cases.
15787 * a-storio.adb: Change implementation to avoid possible alignment
15788 problems on machines requiring strict alignment (data should be moved
15789 as type Buffer, not type Elmt).
15791 * checks.adb (Apply_Array_Size_Check): Improve these checks by
15792 killing the overflow checks which we really do not need (64-bits is
15795 2004-06-25 Vincent Celier <celier@gnat.com>
15797 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
15798 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
15799 inconditionally for the main project.
15800 (Recursive_Add_Archives.Add_Archive_Path): New procedure
15801 (Link_Executables.Check_Time_Stamps): New procedure
15802 (Link_Executables.Link_Foreign): New procedure
15803 Changes made to reduce nesting level of this package
15804 (Check): New procedure
15805 (Add_Switches): When not in quiet output, check that a switch is not
15806 the concatenation of several valid switches. If it is, issue a warning.
15807 (Build_Global_Archive): If the global archive is rebuilt, linking need
15809 (Compile_Sources): Rebuilding a library archive does not imply
15810 rebuilding the global archive.
15811 (Build_Global_Archive): New procedure
15812 (Build_Library): New name for Build_Archive, now only for library
15814 (Check_Archive_Builder): New procedure
15815 (Create_Global_Archive_Dependency_File): New procedure
15816 (Gprmake): Call Build_Global_Archive before linking
15817 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
15819 (Scan_Arg): Display the Copyright notice when -v is used
15821 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
15824 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
15826 Add new GNAT LIST qualifier /FILES=
15827 Added qualifier /DIRECTORY= to GNAT METRIC
15828 Added qualifier /FILES= to GNAT METRIC
15829 Added qualifier /FILES to GNAT PRETTY
15831 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
15832 to take into account both versions of the switch.
15834 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
15835 always be the last switch to the gcc driver. Disable switch storing so
15836 that switches automatically added by the gcc driver are not put in the
15839 * prj.adb (Project_Empty): Take into account changes in components of
15842 * prj.ads (Languages_Processed): New enumaration value All_Languages.
15844 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
15845 used. Split Boolean component Ada_Sources_Present in two Boolean
15846 components Ada_Sources_Present and Other_Sources_Present.
15849 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
15850 instead of Sources_Present.
15851 (Set_Ada_Paths.Add.Recursive_Add): Ditto
15853 * prj-nmsc.adb: Minor reformatting
15854 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
15855 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
15856 Check_Ada_Naming_Scheme.
15857 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
15860 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
15862 Make sure that all cycles where there is at least one "limited with"
15864 (Parse_Single_Project): New Boolean parameter In_Limited
15866 * prj-proc.adb (Recursive_Check): When Process_Languages is
15867 All_Languages, call first Prj.Nmsc.Ada_Check, then
15868 Prj.Nmsc.Other_Languages_Check.
15870 * prj-proc.adb (Process): Use Ada_Sources_Present or
15871 Other_Sources_Present (instead of Sources_Present) depending on
15874 * lang-specs.h: Keep -g and -m switches in the same order, and as the
15877 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
15878 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
15880 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
15883 * lib.ads (Disable_Switch_Storing): New procedure.
15885 * make.adb: Modifications to reduce nesting level of this package.
15886 (Check_Standard_Library): New procedure
15887 (Gnatmake.Check_Mains): New procedure
15888 (Gnatmake.Create_Binder_Mapping_File): New procedure
15889 (Compile_Sources.Compile): Add switch -gnatez as the last option
15890 (Display): Never display -gnatez
15892 * Makefile.generic:
15893 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
15895 * gnatcmd.adb (Check_Project): New function
15896 (Process_Link): New procedure to reduce nesting depth
15897 (Check_Files): New procedure to reduce the nesting depth.
15898 For GNAT METRIC, include the inherited sources in extending projects.
15899 (GNATCmd): When GNAT LS is invoked with a project file and no files,
15900 add the list of files from the sources of the project file. If this list
15901 is too long, put it in a temp text files and use switch -files=
15902 (Delete_Temp_Config_Files): Delete the temp text file that contains
15903 a list of source for gnatpp or gnatmetric, if one has been created.
15904 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
15905 in the project file is too large, create a temporary text file that
15906 list them and pass it to the tool with "-files=<temp text file>".
15907 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
15909 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
15910 generated file is in not in Ada.
15912 * gnatls.adb: Remove all parameters And_Save that are no longer used.
15913 (Scan_Ls_Arg): Add processing for -files=
15914 (Usage): Add line for -files=
15916 * g-os_lib.adb (On_Windows): New global constant Boolean flag
15917 (Normalize_Pathname): When on Windows and the path starts with a
15918 directory separator, make sure that the resulting path will start with
15921 * clean.adb (Clean_Archive): New procedure
15922 (Clean_Project): When there is non-Ada code, delete the global archive,
15923 the archive dependency files, the object files and their dependency
15924 files, if they exist.
15925 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
15927 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
15929 * sinfo.ads: Fix typo in comment.
15931 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
15932 the TSS for remote access-to-subprogram types, since these TSS are
15933 always present once the type has been analyzed.
15934 (RAS_E_Dereference): Same.
15936 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
15937 reference raises Bad_Attribute, mark the reference as analyzed so the
15938 node (and any children resulting from rewrites that could have occurred
15939 during the analysis that ultimately failed) is not analyzed again.
15941 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
15943 * exp_dist.adb: Minor comment fix.
15945 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
15946 type is an anonymous access type, no unchecked deallocation of the
15947 allocated object can occur. If the object is controlled, attach it with
15948 a count of 1. This allows attachment to the Global_Final_List, if
15949 no other relevant list is available.
15950 (Get_Allocator_Final_List): For an anonymous access type that is
15951 the type of a discriminant or record component, the corresponding
15952 finalisation list is the one of the scope of the type.
15954 2004-06-25 Ed Schonberg <schonberg@gnat.com>
15956 * sem_ch3.adb (Replace_Type): When computing the signature of an
15957 inherited subprogram, use the first subtype if the derived type
15958 declaration has no constraint.
15960 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
15961 before applying previous optimization. Minor code cleanup.
15963 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
15964 placed at the beginning of an unpacked record without explicit
15965 alignment, a slice of it will be aligned and does not need a copy when
15968 2004-06-25 Ed Schonberg <schonberg@gnat.com>
15972 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
15973 reference is written with expressions mimicking parameters.
15975 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
15978 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
15979 STEP 2a. The constraints of a full type declaration of a derived record
15980 type are checked for conformance with those declared in the
15981 corresponding private extension declaration. The message
15982 "not conformant with previous declaration" is emitted if an error is
15985 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
15987 * g-traceb.ads: Document the need for -E binder switch in the spec.
15989 * g-trasym.ads: Document the need for -E binder switch in the spec.
15991 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
15993 * sem_prag.adb: Add handling of pragma Detect_Blocking.
15995 * snames.h, snames.ads, snames.adb: Add entry for pragma
15998 * s-rident.ads: Change reference to pragma Detect_Blocking.
16000 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
16003 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
16004 to indicate whether pragma Detect_Blocking is active.
16006 * par-prag.adb: Add entry for pragma Detect_Blocking.
16008 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
16009 of not handling WITH.
16010 Note that this replaces the previous update which was incorrect.
16012 2004-06-25 Javier Miranda <miranda@gnat.com>
16014 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
16015 use-clauses to have a clean environment.
16017 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
16018 the installation of the use-clauses to stablish a clean environment in
16019 case of compilation of a separate unit; otherwise the call to
16020 use_one_package is protected by the barrier Applicable_Use.
16022 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
16023 the installation of the use-clauses to stablish a clean environment in
16024 case of compilation of a separate unit.
16025 (End_Use_Clauses): Minor comment cleanup.
16027 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
16029 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
16031 2004-06-23 Richard Henderson <rth@redhat.com>
16033 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
16035 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16037 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
16038 now bool instead of int.
16039 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
16040 * trans.c (gnu_switch_label_stack): New function.
16041 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
16042 elaboration of renamed entity returns.
16043 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
16044 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
16045 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
16046 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
16047 DECL_SIZE_UNIT and simplify variable-sized case.
16048 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
16049 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
16050 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
16051 (build_unit_elab): Disable for now.
16052 * utils.c (mark_visited): New function.
16053 (pushdecl): Walk tree to call it for global decl.
16054 (update_pointer_to): Update all variants of pointer and ref types.
16055 Add arg to COMPONENT_REF.
16056 (convert): Likewise.
16057 Move check for converting between variants lower down.
16058 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
16059 (build_allocator): Don't force type of MODIFY_EXPR.
16060 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
16061 put_var_into_stack.
16063 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16065 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
16066 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
16067 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
16069 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
16070 all callers changed.
16071 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
16072 the way that EXIT_STMT finds the loop label.
16073 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
16074 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
16075 (add_stmt): Use annotate_with_locus insted of setting directly.
16076 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
16077 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
16078 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
16079 (build_vms_descriptor): Add extra args to ARRAY_REF.
16080 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
16081 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
16083 (build_binary_op): Don't make explicit CONVERT_EXPR.
16084 Add extra rgs to ARRAY_REF.
16086 2004-06-14 Pascal Obry <obry@gnat.com>
16088 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
16089 Windows. Fix minor typo.
16091 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
16092 which is now supported on Windows. With this implementation using the
16093 Library Project feature is no different on Windows than on UNIX.
16095 2004-06-14 Vincent Celier <celier@gnat.com>
16097 * makegpr.adb (Compile_Sources): Nothing to do when there are no
16100 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
16102 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
16103 found, show the project name and the path of the previously parsed
16106 2004-06-14 Ed Schonberg <schonberg@gnat.com>
16108 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
16109 array, avoid copying the actual before the call.
16111 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
16113 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
16114 Instead, allocate memory on worst-case alignment assumptions, and then
16115 return an aligned address within the allocated zone.
16117 2004-06-14 Robert Dewar <dewar@gnat.com>
16119 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
16120 elab entities in predefined units in No_Run_Time_Mode.
16121 (Gen_Adainit_C): Same fix
16122 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
16123 units in No_Run_Time_Mode
16124 (Gen_Elab_Calls_C): Same fix
16126 * symbols-vms-alpha.adb: Minor reformatting
16128 * g-debpoo.ads: Minor reformatting
16130 * lib.adb (In_Same_Extended_Unit): Version working on node id's
16132 * lib.ads (In_Same_Extended_Unit): Version working on node id's
16134 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
16137 * make.adb: Minor reformatting
16139 * par-ch12.adb: Minor reformatting
16141 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
16143 * prj-strt.adb: Minor reformatting
16145 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
16148 * sem_attr.adb: Minor reformatting
16150 * sem_ch7.adb: Minor reformatting
16152 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
16153 for type in the same unit as the object declaration.
16155 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
16156 static string expressions and not just string literals.
16158 (Set_Warning): Reset restriction warning flag for restriction pragma
16159 Implement pragma Profile_Warnings
16160 Implement pragma Profile (Restricted)
16161 Give obolescent messages for old restrictions and pragmas
16163 * snames.h, snames.ads, snames.adb: Add new entry for pragma
16166 * s-rident.ads: Add declarations for restrictions required by profile
16167 Restricted and profile Ravenscar.
16169 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
16171 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
16172 configuration pragmas.
16174 2004-06-11 Vincent Celier <celier@gnat.com>
16176 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
16177 gnatsym, when symbol policy is Restricted.
16179 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
16180 gnatsym, when symbol policy is Restricted.
16182 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
16183 read the symbol file.
16184 (Finalize): Fail in symbol policy Restricted if a symbol in the original
16185 symbol file is not in the object files. Do not create a new symbol file
16186 when symbol policy is Restricted.
16188 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
16191 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
16193 (Usage): Line for new switch -R
16195 * make.adb (Initialize): When the platform is not VMS, add the
16196 directory where gnatmake is invoked in the front of the path, if
16197 gnatmake is invoked with directory information. Change the Scan_Args
16198 while loop to a for loop.
16199 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
16200 if Depth is equal or greater than the proposed depth, there is nothing
16202 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
16205 * prj.ads: Add new symbol policy Restricted.
16207 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
16208 with the new parameters Check_All_Labels and Case_Location.
16210 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
16211 (Library_Symbol_File needs to be defined).
16213 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
16214 and Case_Location If Check_All_Labels is True, check that all values of
16215 the string type are used, and output warning(s) if they are not.
16217 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
16220 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
16222 * gnat_ugn.texi: Update documentation about the library directory in
16225 * makegpr.adb (Display_Command): In verbose mode, also display the
16226 value of the CPATH env var, when the compiler is gcc.
16227 (Initialize): Change the Scan_Args while loop to a for loop
16228 (Compile_Individual_Sources): Change directory to object directory
16229 before compilations.
16231 * symbols.ads: New symbol policy Restricted.
16233 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
16235 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
16236 is now taken care of internally in the Exception_Propagation package
16237 and does not require clients assistance any more.
16239 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
16240 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
16241 functions. Helpers to maintain a predicate required in the handling of
16242 occurrence transfer between tasks.
16243 This is now handled internally and does not require clients assistance
16244 for the setup/propagate separation anymore.
16245 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
16246 allocation strategy, handle the Setup_And_Not_Propagated predicate and
16249 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
16250 raise_after_setup, now that everything is handled internally within the
16251 setup/propagation engine.
16253 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
16255 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
16256 Add additional conditions for the case of an actual being a simple
16257 name or literal. Improve inlining by preventing the generation
16258 of temporaries with a short lifetime (one use).
16260 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
16264 * einfo.ads: Minor comment updates for Has_Completion and
16265 E_Constant list of flags.
16267 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
16268 and constant redeclarations now set the Has_Completion flag of their
16269 defining identifiers.
16271 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
16272 Inspect_Deferred_Constant_Completion.
16273 Used to detect private deferred constants that have not been completed
16274 either by a constant redeclaration or pragma Import. Emits error message
16275 "constant declaration requires initialization expression".
16277 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
16278 completes a deferred constant.
16280 2004-06-11 Geert Bosch <bosch@gnat.com>
16282 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
16284 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
16285 calculating exponent for scaling denormal numbers.
16286 (Leading_Part): Properly raise Constraint_Error for zero or negative
16288 (Remainder): Properly raise Constraint_Error for zero divisor.
16290 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
16292 * sem_util.adb: Minor reformatting.
16294 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
16295 dereference when accessing the entry parameter record.
16296 (Check_Array_Type): Always check for possible implicit dereference.
16297 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
16298 Abort if a pointer is still present (denoting that an implicit
16299 dereference was left in the tree by the front-end).
16301 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
16302 dereference when accessing the entry parameter record.
16303 (Check_Array_Type): Always check for possible implicit dereference.
16304 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
16305 Abort if a pointer is still present (denoting that an implicit
16306 dereference was left in the tree by the front-end).
16308 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
16310 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
16311 message, like the compiler itself does. Easier to parse the output.
16313 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
16315 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
16316 be base names, and not includes directories.
16318 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
16320 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
16321 so that dependencies are properly taken into account by make.
16323 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
16326 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
16327 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
16329 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
16331 * Makefile.in (install-gnatlib): install target-specific run-time files.
16333 * Make-lang.in: Remove obsolete targets.
16335 2004-06-11 Ed Schonberg <schonberg@gnat.com>
16337 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
16338 specification, to catch misuses of program unit names.
16340 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
16341 superfluous conversions in an instance.
16343 2004-06-11 Ed Schonberg <schonberg@gnat.com>
16347 * sem_ch12.adb (Save_References): If operator node has been folded to
16348 enumeration literal, associated_node must be discarded.
16350 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
16352 * s-stchop-vxworks.adb: Add required pragma Convention to
16353 Task_Descriptor because it is updated by a C function.
16355 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
16359 * Makefile.in: Remove target specific SO_OPT on IRIX
16361 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16363 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
16364 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
16365 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
16366 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
16367 (STMT_STMT, USE_STMT): New statement codes.
16368 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
16369 * ada-tree.h: Reflect above changes.
16370 (struct tree_loop_id): Deleted.
16371 (union lang_tree_node, struct lang_decl, struct lang_type):
16372 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
16373 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
16374 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
16375 (IS_ADA_STMT): New macro.
16376 * decl.c (annotate_decl_with_node): New function.
16377 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
16378 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
16379 Call add_stmt_with_node to do needed assignments.
16380 Add call to update setjmp buffer directly, not via EXPR_STMT.
16381 (maybe_variable): Argment GNAT_NODE deleted.
16382 * gigi.h (maybe_variable): Likewise.
16383 (make_transform, add_stmt_with_node, set_block_for_group): New.
16384 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
16385 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
16386 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
16387 (set_lineno, set_lineno_from_sloc): Likewise.
16388 (record_code_position, insert_code_for): Likewise.
16389 (gnat_poplevel): Now returns void.
16390 (end_subprog_body): Now takes argument.
16391 * misc.c (cgraph.h, tree-inline.h): New includes.
16392 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
16393 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
16394 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
16395 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
16396 (gnat_parse_file): Don't set immediate_size_expand.
16397 Call cgraph functions.
16398 (gnat_expand_expr): Remove most cases.
16399 (record_code_position, insert_code_for): Remove from here.
16400 * trans.c (toplev.h, tree-gimple.h): Now included.
16401 (discard_file_names): Deleted.
16402 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
16403 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
16404 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
16405 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
16406 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
16407 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
16408 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
16409 (set_block_for_group, add_stmt_list): Likewise.
16410 (start_stmt_group): Renamed from start_block_stmt.
16411 (end_stmt_group): Likewise, from end_block_stmt.
16412 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
16413 (gigi): Don't set discard_file_names or call set_lineno.
16414 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
16415 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
16416 Numerous changes throughout to reflect new names and complete
16417 function-at-a-time implementation.
16418 (gnat_expand_stmt): Delete or comment out all cases.
16419 (process_inlined_subprograms): Use add_stmt.
16420 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
16421 call set_lineno; also remove unneeded block handling.
16422 (process_type): Remove unneeded block handling.
16423 (build_unit_elab): Remove calls to deleted functions.
16424 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
16425 (tree-dump.h): Likewise.
16426 (struct ada_binding_level): Add field jmpbuf_decl.
16427 (gnat_define_builtin, gnat_install_builtins): New.
16428 (gnat_gimplify_function, gnat_finalize): Likewise.
16429 (gnat_poplevel): No longer return BLOCK, set it instead.
16430 Remove code dealing with nested functions.
16431 (gnat_init_decl_processing): Also set size_type_node.
16432 Call gnat_install_builtins.
16433 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
16434 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
16435 Remove special-case for "main".
16436 (end_subprog_body): Add arg and rework for tree-ssa.
16437 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
16438 Add case for BOOLEAN_TYPE.
16439 * utils2.c (rtl.h): Now include.
16440 (build_call_raise): Test Debug_Flag_NN directly.
16441 (build_call_alloc_dealloc): Don't use local stack allocation for now.
16442 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
16443 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
16445 2004-06-07 Robert Dewar <dewar@gnat.com>
16447 * a-direct.ads, einfo.ads: Minor comment updates
16449 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
16450 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16451 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
16452 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
16453 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
16455 * s-interr-sigaction.adb: Remove unreferenced variable
16456 (Attached_Interrupts). Minor reformatting.
16457 Avoid use of variable I (replace by J).
16459 * par-ch10.adb: Fix text of one error message
16461 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
16462 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
16463 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
16464 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
16465 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
16466 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
16467 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
16468 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
16469 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
16470 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
16471 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
16474 2004-06-07 Doug Rupp <rupp@gnat.com>
16476 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
16478 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
16480 * mlib-tgt-vms-ia64.adb: New file.
16482 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
16483 Add mlib-tgt-vms-ia64.adb
16484 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
16485 Move to alpha specific ifeq section.
16486 Add VMS specific versions of symbols.adb
16487 Renaming of 5q vms files.
16489 * 5qsystem.ads renamed to system-vms_64.ads.
16491 2004-06-07 Vincent Celier <celier@gnat.com>
16493 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
16494 explain that when a time of day corresponding to the non existing hour
16495 on the day switching to DST is specified, Split may return a different
16498 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
16501 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
16502 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
16504 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
16506 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
16507 the linking options.
16508 (Build_Library.Check_Libs): On VMS, if there is a dependency on
16509 g-trasym.ads, set Gtrasymobj_Needed to True.
16511 * prj-attr.adb: Add new package Metrics for gnatmetric
16513 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
16514 canonical case to take into account files with upper case characters on
16516 (Ada_Check): Load the reference symbol file name in the name buffer to
16517 check it, not the symbol file name.
16519 * snames.ads, snames.adb: Add standard name Metrics (name of project
16520 file package for gnatmetric).
16522 * vms_conv.ads: Add Metric to Comment_Type
16524 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
16526 * vms_data.ads: Add qualifiers for GNAT METRIC
16528 * makegpr.adb (Link_Executables): Take into account the switches
16529 specified in package Linker of the main project.
16531 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
16533 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
16534 the index of the last element is Units.Last, not Units.Table'Last
16535 (which is usually not a valid index within the actually allocated
16536 storage for the table).
16538 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
16539 determines whether to generate a call to a checked storage pool
16540 Dereference action.
16541 Generate such a call only for a dereference that either comes from
16542 source, or is the result of rewriting a dereference that comes from
16545 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
16547 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
16549 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
16551 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
16552 file level, elaborate the stride for inner dimensions in alignment
16555 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
16558 2004-06-07 Javier Miranda <miranda@gnat.com>
16560 * exp_ch6.adb: Correct wrong modification in previous patch
16562 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
16564 * g-trasym.ads: Corrected comment to properly reflect level of support
16567 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
16569 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
16570 includes case of a variable referenced on the left hand side of an
16571 assignment, therefore remove redundant code. Variables and prefixes of
16572 indexed or selected components are now marked as referenced on left
16573 hand side. Warnings are now properly emitted when variables or prefixes
16574 are assigned but not read.
16576 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
16577 left hand side referenced variables. Private access types do not
16578 produce the warning "variable ... is assigned but never read".
16579 Add also additional checks to left hand side referenced variables.
16580 Aliased, renamed objects and access types do not produce the warning
16581 "variable ... is assigned but never read" since other entities may read
16582 the memory location.
16584 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
16586 * Makefile.in: In the powerpc/vxworks-specific section, restore
16587 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
16590 2004-06-07 Ed Schonberg <schonberg@gnat.com>
16592 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
16593 predefined operators.
16594 Removes spurious type errors from g-trasym-vms.adb.
16596 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
16597 distinct from the operator appearing in the source, call appropriate
16598 routine to insert conversions when needed, and complete resolution of
16600 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
16601 interpretations for rewritten right operand.
16602 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
16603 the other operand is overloaded and the context is a type conversion.
16605 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16607 * ada-tree.def (BLOCK_STMT): Now has two operands.
16610 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
16612 * gigi.h: (gnat_poplevel): Now returns a tree.
16614 * trans.c (end_block_stmt): Add arg; all callers changed.
16615 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
16616 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
16617 (add_stmt): Set TREE_TYPE.
16618 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
16619 (gnat_expand_stmt, case BREAK_STMT): New case.
16621 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
16623 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
16625 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
16626 procedure Set_Stack_Size that is not needed.
16628 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
16630 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
16631 used for gnatpp input file and for the files upon which it depends
16633 2004-06-07 Ben Brosgol <brosgol@gnat.com>
16635 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
16637 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
16639 * gnatvsn.ads: Bump version numbers appropriately.
16640 Add new build type.
16642 2004-06-07 Pascal Obry <obry@gnat.com>
16644 * gnat_ugn.texi: Improve comments about imported names and link names
16645 on Windows. Add a note about the requirement to use -k gnatdll's option
16646 when working with a DLL which has stripped stdcall symbols (no @nn
16649 2004-05-27 Vincent Celier <celier@gnat.com>
16651 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
16652 COMMENTS_LAYOUT=UNTOUCHED
16654 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
16655 symbols-vms-alpha.adb
16657 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
16659 * sem.ads: Clarify documentation on checks suppression.
16661 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
16663 2004-05-27 Ed Schonberg <schonberg@gnat.com>
16665 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
16666 the case of multiple derivations.
16667 (Is_Object_Reference): For a selected component, verify that the prefix
16668 is itself an object and not a value.
16670 * sem_ch12.adb (Same_Instantiated_Constant): New name for
16671 Same_Instantiated_Entity.
16672 (Same_Instantiated_Variable): Subsidiary to
16673 Check_Formal_Package_Instance, to recognize actuals for in-out generic
16674 formals that are obtained from a previous formal package.
16675 (Instantiate_Subprogram_Body): Emit proper error when
16676 generating code and the proper body of a stub is missing.
16678 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
16679 has a universal interpretation, do the disambiguation here.
16681 * exp_ch4.adb (Expand_N_Type_Conversion,
16682 Expand_N_Unchecked_Type_Conversion): Special handling when target type
16683 is Address, to avoid typing anomalies when Address is a visible integer
16686 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
16687 to determine whether a subprogram should not be marked Pure, even when
16688 declared in a pure package.
16690 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
16692 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
16694 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
16695 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
16696 Update the documentation about the Ravenscar profile, following the
16697 definition found in AI-249.
16699 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
16700 setting the Profile (Ravenscar). This must be done in addition to
16701 setting the required restrictions.
16703 * rtsfind.ads: Add the set of operations defined in package
16706 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
16709 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
16711 lang-specs.h: Always require -c or -S and always redirect to /dev/null
16712 if -gnatc or -gnats is passed.
16714 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
16716 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
16717 a significant reference. Warnings are now properly emitted when a
16718 discriminated type is not referenced.
16720 * lib-xref.adb (Generate_Reference): A deferred constant completion,
16721 record representation clause or record type discriminant does not
16722 produce a reference to its corresponding entity. Warnings are now
16723 properly emitted when deferred constants and record types are not
16726 2004-05-27 Geert Bosch <bosch@gnat.com>
16728 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
16729 Fixes ACATS Annex G tests.
16731 2004-05-27 Robert Dewar <dewar@gnat.com>
16733 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
16736 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
16738 * s-interr.adb (Server_Task): Take into account case of early return
16739 from sigwait under e.g. linux.
16741 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
16743 * gnat_ugn.texi: Add description for the new gnatpp options:
16744 -rnb - replace the original source without creating its backup copy
16745 -c0 - do not format comments
16747 2004-05-24 Geert Bosch <bosch@gnat.com>
16749 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
16750 with 192 bits of precision, sufficient to reduce a double-extended
16751 arguments X with a maximum relative error of T'Machine_Epsilon, for X
16752 in -2.0**32 .. 2.0**32.
16753 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
16754 reduction by the processor, which only uses a 68-bit approximation of
16756 (Tan): Always reduce arguments and compute function either using
16757 the processor's fptan instruction, or by dividing sin and cos as needed.
16759 2004-05-24 Doug Rupp <rupp@gnat.com>
16761 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
16762 gcc error on 32/64 bit VMS.
16764 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
16766 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
16767 since this is what we get for stack overflows although not documented
16769 Document the issues which may require adjustments to our signal
16772 2004-05-24 Ed Schonberg <schonberg@gnat.com>
16774 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
16775 enclosing dynamic scope if the instantiation is within a generic unit.
16777 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
16779 * exp_dbug.ads: Fix typo.
16781 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
16782 Rename it to its proper name: system-linux-ia64.ads
16783 (stamp-gnatlib1): Remove extra target specific run time files when
16784 setting up the rts directory.
16786 2004-05-24 Javier Miranda <miranda@gnat.com>
16788 * einfo.ads, einfo.adb (Limited_Views): Removed.
16789 (Limited_View): New attribute that replaces the previous one. It is
16790 now a bona fide package with the limited-view list through the
16791 first_entity and first_private attributes.
16793 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
16794 limited-private-with clause.
16795 (Install_Limited_Withed_Unit): Install the private declarations of a
16796 limited-private-withed package. Update the installation of the shadow
16797 entities according to the new structure (see Build_Limited_Views)
16798 (Build_Limited_Views): Replace the previous implementation of the
16799 limited view by a package entity that references the first shadow
16800 entity plus the first shadow private entity (required for limited-
16801 private-with clause)
16802 (New_Internal_Shadow_Entity): Code cleanup.
16803 (Remove_Limited_With_Clause): Update the implementation to undo the
16804 new work carried out by Build_Limited_Views.
16805 (Build_Chain): Complete documentation.
16806 Replace Ada0Y by Ada 0Y in comments
16809 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
16810 types the level of accessibility depends on the enclosing type
16813 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
16814 entities. Complete documentation of previous change.
16816 2004-05-24 Robert Dewar <dewar@gnat.com>
16818 * namet.adb: Minor reformatting
16819 Avoid use of name I (replace by J)
16820 Minor code restructuring
16822 * sem_ch6.adb: Minor reformatting
16824 * lib-writ.adb: Do not set restriction as active if this is a
16825 Restriction_Warning case.
16827 * sem_prag.adb: Reset restriction warning flag if real pragma
16828 restriction encountered.
16830 * s-htable.adb: Minor reformatting
16831 Change rotate count to 3 in Hash (improves hash for small strings)
16833 * 5qsystem.ads: Add comments for type Address (no literals allowed).
16835 * gnat_ugn.texi: Add new section of documentation "Code Generation
16836 Control", which describes the use of -m switches.
16838 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
16840 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
16841 through the DECL_INITIAL for renamed variables.
16843 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
16845 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
16847 2004-05-19 Joel Brobecker <brobecker@gnat.com>
16849 * exp_dbug.ads: Correct comments concerning handling of overloading,
16850 since we no longer use $ anymore.
16852 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
16854 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
16855 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
16856 with illegal subunits.
16858 2004-05-19 Ed Schonberg <schonberg@gnat.com>
16860 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
16861 body with front-end inlining enabled, check whether an inline pragma
16862 appears immediately after the body and applies to it.
16864 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
16865 enabled and the pragma appears after the body of the subprogram.
16867 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16869 Part of function-at-a-time conversion
16871 * misc.c (adjust_decl_rtl): Deleted.
16872 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
16875 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
16876 (add_decl_stmt, add_stmt, block_has_vars): New functions.
16877 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
16879 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
16880 when making a decl.
16881 (gnat_to_gnu_entity): Likewise.
16882 Use add_stmt to update setjmp buffer.
16883 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
16885 No longer call adjust_decl_rtl.
16886 (DECL_INIT_BY_ASSIGN_P): New macro.
16887 (DECL_STMT_VAR): Likewise.
16889 * trans.c (gigi): Call start_block_stmt to make the outermost
16891 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
16892 Call start_block_stmt and end_block_stmt temporarily.
16893 Use gnat_expand_stmt instead of expand_expr_stmt.
16894 (add_decl_stmt): New function.
16895 (tree_transform): Call it.
16896 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
16897 (end_block_stmt): Set type and NULL_STMT.
16898 (gnat_expand_stmt): Make recursize call instead of calling
16900 (gnat_expand_stmt, case DECL_STMT): New case.
16901 (set_lineno_from_sloc): Do nothing if global.
16902 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
16903 (start_block_stmt, add_stmt, end_block_stmt): New functions.
16904 (build_block_stmt): Call them.
16905 (gnat_to_code): Don't expand NULL_STMT.
16906 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
16908 (tree_transform): Likewise.
16909 (tree_transform, case N_Null_Statement): Return NULL_STMT.
16910 (gnat_expand_stmt, case NULL_STMT): New case.
16911 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
16914 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
16917 * utils.c (create_var_decl): Do not call expand_decl or
16919 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
16920 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
16922 (struct e_stack): Add chain_next to GTY.
16923 (struct binding_level): Deleted.
16924 (struct ada_binding_level): New struct.
16925 (free_block_chain): New.
16926 (global_binding_level, clear_binding_level): Deleted.
16927 (global_bindings_p): Rework to see if no chain.
16928 (kept_level_p, set_block): Deleted.
16929 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
16930 new data structure and work directly on BLOCK node.
16931 (gnat_poplevel): Similarly.
16932 (get_decls): Look at BLOCK_VARS.
16933 (insert_block): Work directly on BLOCK node.
16934 (block_has_var): New function.
16935 (pushdecl): Rework for new binding structures.
16936 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
16938 (build_subprog_body): Likewise.
16939 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
16941 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
16943 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
16944 (DECL_STMT_VAR): Likewise.
16946 2004-05-17 Robert Dewar <dewar@gnat.com>
16948 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
16951 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
16952 of restriction synonyums by using
16953 Restrict.Process_Restriction_Synonyms.
16955 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
16957 * s-restri.ads (Tasking_Allowed): Correct missing comment
16959 * s-rident.ads: Add entries for restriction synonyms
16961 * ali.adb: Fix some problems with badly formatted ALI files that can
16962 result in infinite loops.
16964 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
16965 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
16966 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
16967 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
16968 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
16969 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
16970 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
16971 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
16972 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
16973 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
16974 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
16975 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
16976 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
16977 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
16978 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
16979 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
16980 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
16981 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
16982 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
16983 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
16984 to Task_Id (minor cleanup).
16986 2004-05-17 Vincent Celier <celier@gnat.com>
16988 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
16989 directory separator.
16991 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
16992 project being extended, if Languages is not declared in extending
16995 2004-05-17 Javier Miranda <miranda@gnat.com>
16997 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
16998 limited view of a visible sibling.
17000 2004-05-14 Robert Dewar <dewar@gnat.com>
17002 * gnat_ugn.texi: Minor change to -gnatS documentation
17004 * sprint.adb: Remove some instances of Assert (False) and for this
17005 purpose replace them by output of a ??? string.
17007 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
17010 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
17011 flag processing. This was suppressing required dependencies in
17012 No_Run_Time mode and is not needed since the binder does not generate
17013 references for things in libgnat anyway.
17015 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
17018 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
17020 * gnat_ugn.texi: Document AIX-specific issue with initialization of
17023 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
17024 action for the case of an actual parameter in an init proc call.
17026 2004-05-14 Ed Schonberg <schonberg@gnat.com>
17028 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
17029 subtype, check visible entities in base type.
17031 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
17032 actions if the object is a renaming.
17034 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
17035 Check_Formal_Package_Instance, to determine more precisely when the
17036 formal and the actual denote the same entity.
17038 2004-05-14 Javier Miranda <miranda@gnat.com>
17040 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
17042 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
17043 corresponding to a private_with must be removed from visibility; it
17044 will be made visible later, just before we analyze the private part of
17046 (Check_Private_Child_Unit): Allow private_with clauses in public
17048 (Install_Siblings): Make visible the private entities of private-withed
17050 (Install_Withed_Unit): Do not install the private withed unit if we
17051 are compiling a package declaration and the Private_With_OK flag was
17052 not set by the caller. These declarations will be installed later,
17053 just before we analyze the private part of the package.
17055 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
17056 during the evaluation of the expression that initializes the object,
17057 decorate it with the expected type to avoid cascade errors.
17060 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
17061 subprogram we have to install the private_with clauses after its
17062 specification has been analyzed (as documented in AI-262.TXT).
17064 * sem_ch8.adb (Has_Private_With): New function. Determines if the
17065 current compilation unit has a private with on a given entity.
17066 (Find_Direct_Name): Detect the Beaujolais problem described in
17069 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
17070 provides the functionality of the function Is_Ancestor that was
17071 previously available in sem_ch10. It has been renamed to avoid
17074 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
17076 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17078 * utils.c (build_vms_descriptor): Use SImode pointers.
17080 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
17082 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
17084 2004-05-14 GNAT Script <nobody@gnat.com>
17086 * Make-lang.in: Makefile automatically updated
17088 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
17090 Renaming of target specific files for clarity
17092 * Makefile.in: Rename GNAT target specific files.
17094 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
17095 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
17096 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
17097 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
17098 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
17099 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
17100 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
17101 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
17102 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
17103 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
17104 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
17105 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
17106 51osinte.adb, 51osinte.ads, 51system.ads,
17107 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
17108 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
17109 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
17110 56tpopsp.adb, 57system.ads, 58system.ads,
17111 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
17112 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
17113 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
17114 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
17115 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
17116 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
17117 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
17118 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
17119 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
17120 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
17121 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
17122 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
17123 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
17124 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
17125 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
17126 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
17127 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
17128 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
17129 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
17130 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
17131 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
17132 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
17133 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
17134 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
17135 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
17136 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
17137 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
17138 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
17139 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
17140 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
17141 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
17142 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
17143 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
17144 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
17145 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
17146 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
17147 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
17148 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
17149 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
17150 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
17152 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
17153 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
17154 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
17155 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
17156 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
17157 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
17158 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
17159 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
17160 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
17161 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
17162 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
17163 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
17164 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
17165 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
17166 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
17167 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
17168 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
17169 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
17170 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
17171 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
17172 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
17173 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
17174 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
17175 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
17176 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
17177 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
17178 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
17179 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
17180 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
17181 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
17182 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
17183 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
17184 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
17185 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
17186 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
17187 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
17188 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
17189 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
17190 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
17191 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
17192 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
17193 s-osinte-vms.ads, s-osinte-vxworks.adb,
17194 s-osinte-vxworks.ads, s-osprim-mingw.adb,
17195 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
17196 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
17197 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
17198 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
17199 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
17200 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
17201 s-stchop-vxworks.adb, s-taprop-dummy.adb,
17202 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
17203 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
17204 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
17205 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
17206 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
17207 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
17208 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
17209 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
17210 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
17211 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
17212 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
17213 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
17214 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
17215 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
17216 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
17217 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
17218 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
17219 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
17220 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
17221 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
17222 system-irix-o32.ads, system-linux-x86_64.ads,
17223 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
17224 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
17225 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
17226 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
17227 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
17228 system-vxworks-mips.ads, system-vxworks-ppc.ads,
17229 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
17232 2004-05-13 Zack Weinberg <zack@codesourcery.com>
17234 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
17236 2004-05-13 Diego Novillo <dnovillo@redhat.com>
17238 Merge from tree-ssa-20020619-branch.
17240 * config-lang.in (boot_language, build_by_default): Set
17242 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
17243 (max_size): Add static chain op for call_expr.
17245 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
17248 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
17250 2004-05-11 Roger Sayle <roger@eyesopen.com>
17252 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
17255 2004-05-10 Doug Rupp <rupp@gnat.com>
17257 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
17260 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
17262 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
17264 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
17265 Fixes undefined symbols in IA64 gnatlib.
17267 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
17269 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
17270 Short_Address). This will be moved to system.auxdec.
17272 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
17274 * sem_util.adb: Replace test for presence of a node that is always
17275 present with a call to Discard_Node.
17277 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
17278 Analyze on the library unit node after generation of distribution stub
17279 constructs. The call was a no-op because Unit_Node has already been
17280 Analyzed, and the tree fragments for the distribution stubs are
17281 analyzed as they are inserted in Exp_Dist.
17282 Update comment regarding to distribution stubs to reflect that we
17283 do not generate stub in separate files anymore.
17285 * einfo.ads: Clarify the fact that a tagged private type has the
17286 E_Record_Type_With_Private Ekind.
17288 * erroutc.adb: Minor reformatting
17290 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
17291 values if line length is increased using -gnatyM (noticed during code
17294 * eval_fat.adb: Minor reformatting
17295 Put spaces around exponentiation operator
17297 2004-05-10 Ed Schonberg <schonberg@gnat.com>
17300 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
17301 has been rewritten as an explicit dereference, retrieve type of
17302 original node to check for possibly unconstrained record type.
17304 2004-05-10 Ed Schonberg <schonberg@gnat.com>
17306 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
17307 overriding, use the operation of the parent unconditionally.
17309 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
17310 operation when either operand is a literal, to avoid further
17313 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
17314 overridden by a previous explicit declaration, mark the previous entity
17317 * sem_disp.adb (Check_Dispatching_Operation): New predicate
17318 Is_Visibly_Controlled, to determine whether a declaration of a
17319 primitive control operation for a derived type overrides an inherited
17320 one. Add warning if the explicit declaration does not override.
17322 2004-05-10 Vincent Celier <celier@gnat.com>
17324 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
17325 some cases when the sources are no longer present.
17327 * make.adb (Collect_Arguments): Fail if an external source, not part
17328 of any project need to be compiled, when switch -x has not been
17331 * makeusg.adb: Document new switch -x
17333 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
17334 defaulted to False.
17336 * switch-m.adb (Scan_Make_Switches): New switch -x
17338 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
17339 gnatmake switch -x.
17341 * gnat_ugn.texi: Document new gnatmake switch -x
17343 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
17345 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
17347 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
17348 (process_attributes): Likewise.
17350 2004-05-10 Joel Brobecker <brobecker@gnat.com>
17352 * s-inmaop.ads: Fix spelling mistake in one of the comments.
17354 2004-05-10 Robert Dewar <dewar@gnat.com>
17356 * gnat_ugn.texi: Document that for config pragma files, the maximum
17357 line length is always 32767.
17359 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
17360 literals is now allowed.
17362 * gnat-style.texi: Remove statement about splitting long lines before
17363 an operator rather than after, since we do not follow this rule at all.
17364 Clarify rule (really lack of rule) for spaces around exponentiation
17366 * sem_elim.adb: Allow concatenation of string literals as well as a
17367 single string literal for pragma arguments.
17369 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
17371 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
17372 written for append case.
17374 * frontend.adb: Changes to avoid checking max line length in config
17377 * g-os_lib.ads: Minor reformatting
17379 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
17380 wrong in any case. Instead use standard value. Noticed during code
17383 * opt.ads (Max_Line_Length): New field, used to implement removal of
17384 limitation on length of lines when scanning config pragma files.
17386 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
17387 makeutl.ads, makeutl.adb: Minor reformatting
17389 * scn.adb: Do not check line length while scanning config pragma files
17390 Do not check line length while scanning out license information
17392 * scng.adb: Changes to avoid line length checks while parsing config
17395 2004-05-10 GNAT Script <nobody@gnat.com>
17397 * Make-lang.in: Makefile automatically updated
17399 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
17401 * osint.adb (Find_Program_Name): Fix handling of VMS version
17404 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
17406 * g-os_lib.ads (Invalid_Time): New constant
17408 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
17409 return OS_Time instead of time_t to match what is imported by Ada.
17410 Now return -1 if the file doesn't exist, instead of a random value
17412 2004-05-05 Robert Dewar <dewar@gnat.com>
17414 * usage.adb: Add line for -gnatR?s switch
17416 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
17418 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
17419 and for Match (Data_First, Data_last)
17421 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
17422 written when we are dealing with multi-unit files.
17424 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
17426 * Makefile.in: Remove unused targets and variables.
17428 2004-05-05 Vincent Celier <celier@gnat.com>
17430 * switch-m.adb: New gnatmake switch -eI
17432 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
17433 of new gnatmake switch -eInnn.
17435 * makegpr.adb: Take into account new parameters Index and Src_Index in
17438 * clean.adb: Implement support for multi-unit sources, including new
17441 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
17444 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
17445 (Extract_From_Q): New out parameter Index
17446 (Mark, Is_Marked): Subprograms moved to Makeutl
17447 (Switches_Of): New parameter Source_Index
17448 (Add_Switch): New parameter Index
17449 (Check): New parameter Source_Index
17450 (Collect_Arguments): New parameter Source_Index
17451 (Collect_Arguments_And_Compile): New parameter Source_Index
17452 (Compile): New parameter Source_Index
17453 Put subprograms in alphabetical order
17454 Add support for multi-source sources, including in project files.
17456 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
17457 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
17460 * makeusg.adb: New gnatmake switch -eInnn
17462 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
17465 * opt.ads (Main_Index): New variable, defaulted to 0.
17467 * osint.ads, osinte.adb (Add_File): New parameter Index
17468 (Current_Source_Index): New function
17470 * prj.adb: Take into account new components Index and Src_Index
17472 * prj.ads (String_Element): New component Index
17473 (Variable_Value): New component Index
17474 (Array_Element): New component Src_Index
17476 * prj-attr.adb: Indicate that optional index may be specified for
17477 attributes Main, Executable, Spec, Body and some of Switches.
17479 * prj-attr.ads (Attribute_Kind): New values for optional indexes
17480 (Attribute_Record): New component Optional_Index
17482 * prj-com.ads (File_Name_Data): New component Index
17484 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
17486 * prj-env.adb (Put): Output optional index
17488 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
17489 attributes Spec and Body.
17491 * prj-nmsc.adb: Process optional indexes
17493 * prj-pp.adb: Ouput "at" for optional indexes
17495 * prj-proc.adb: Take into account optional indexes
17497 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
17498 Optional_Index. For string literal,
17499 process optional index when Optional_Index is True.
17500 (Parse_Expresion): New Boolean parameter Optional_Index
17502 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
17503 (Set_Source_Index_Of): New procedure
17505 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
17508 * prj-util.ads (Executable_Of): New parameter Index
17509 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
17510 New parameter Src_Index, defaulted to 0.
17512 2004-05-05 Ed Schonberg <schonberg@gnat.com>
17515 * sem_ch3.adb (Access_Definition): If this is an access parameter
17516 whose designated type is imported through a limited_with clause, do
17517 not add the enclosing subprogram to the list of private dependents of
17520 2004-05-05 Ed Schonberg <schonberg@gnat.com>
17523 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
17524 a limited_with clause, and the other is its non-limited view.
17526 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
17528 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
17530 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
17531 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
17532 Stand.Boolean_Literals to produce references to entities
17533 Standard_False and Standard_True from compile-time computed boolean
17536 * stand.ads (Boolean_Literals): New variable, provides the entity
17537 values for False and True, for use by the expander.
17539 2004-05-05 Doug Rupp <rupp@gnat.com>
17541 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
17542 5vinmaop.adb: Unchecked convert Short_Address vice Address
17544 * adaint.c, raise.c: Caste CRTL function return value
17545 to avoid gcc error on 32/64 bit IVMS.
17547 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
17550 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
17552 * 5qsystem.ads (Address): Declare as Long_Integer
17553 (Short_Address): Declare as 32 bit subtype of Address
17554 Declare abstract address operations to avoid gratuitous ambiguities.
17556 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
17558 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
17559 instead of the old Boolean_Entry_Barriers.
17560 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
17562 2004-05-05 GNAT Script <nobody@gnat.com>
17564 * Make-lang.in: Makefile automatically updated
17566 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
17568 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
17570 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
17574 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
17575 alone. Replacing object references by literals is inappropriate in a
17576 so low level context.
17578 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
17580 * a-exexpr.adb: Add comments
17582 2004-05-03 Joel Brobecker <brobecker@gnat.com>
17584 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
17585 declare the Ancestor_Tags array in Type_Specific_Data with a small size
17586 without risking a bounds check error when accessing one of its
17588 (Type_Specific_Data): Define Ancestor_Tags as a small array.
17589 This prevents us from hitting a limitation during the debug info
17590 generation when using stabs.
17592 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
17594 This prevents us from hitting a limitation during the debug info
17595 generation when using stabs.
17597 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
17599 lang-specs.h: Remove -gnatz* from specs.
17601 2004-05-03 Vincent Celier <celier@gnat.com>
17603 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
17605 * Make-lang.in, Makefile.in: Add gprmake
17607 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
17609 * sem_aggr.adb: Fix typo in comment.
17611 2004-05-03 Robert Dewar <dewar@gnat.com>
17613 * make.adb: Minor reformatting
17615 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
17617 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
17618 so that it works when address is not a private type.
17620 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
17621 properly with rewritten unchecked conversions. This prevents
17622 order-of-elaboration issues that can otherwise arise.
17623 (Minimum_Size): Don't check size of access types under VMS
17625 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
17626 interpretations of integer literals as type System.Address.
17628 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
17629 (Is_Descendent_Of): New function
17631 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
17633 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
17634 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
17635 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
17637 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
17638 of the old Max_Entry_Queue_Depth.
17640 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
17641 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
17642 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
17644 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
17645 New entry for proper handling of Max_Entry_Queue_Depth.
17646 New entry for proper handling of No_Dynamic_Interrupts.
17648 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
17649 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
17650 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
17651 the GNAT specific restriction Max_Entry_Queue_Depth.
17652 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
17653 the GNAT specific restriction No_Dynamic_Interrupts.
17655 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
17656 instead of the old Boolean_Entry_Barriers.
17657 Use the new restriction No_Dynamic_Attachment instead of the old
17658 No_Dynamic_Interrupts.
17660 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
17661 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
17663 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
17664 of the old Max_Entry_Queue_Depth.
17666 2004-05-03 GNAT Script <nobody@gnat.com>
17668 * Make-lang.in: Makefile automatically updated
17670 2004-04-29 Ed Schonberg <schonberg@gnat.com>
17672 * checks.adb (Enable_Range_Check): If the prefix of an index component
17673 is an access to an unconstrained array, perform check unconditionally.
17675 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17677 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
17680 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
17682 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
17683 alternate stack setting. There was no support for the tasking cases
17684 and the changes eventually caused a number of side-effect failures in
17685 the non-tasking case too.
17687 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
17689 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
17692 2004-04-29 Vincent Celier <celier@gnat.com>
17694 * make.adb (Gnatmake): Increase max size of argument array for
17695 gnatbind for the potential addition of -F.
17696 If there are Stand-Alone Library projects, invoke gnatbind with -F to
17697 be sure that elaboration flags will be checked.
17699 * switch-c.adb: Correct call to Scan_Pos for -gnateI
17701 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
17703 * sem_warn.adb (Check_References): Move '<access-variable> may be
17704 null' warning out of under Warn_On_No_Value_Assigned.
17706 2004-04-29 Ed Falis <falis@gnat.com>
17708 * gnat_ugn.texi: Fixed texi error
17710 2004-04-29 Robert Dewar <dewar@gnat.com>
17712 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
17713 abstract operations if they come from predefined files.
17715 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
17718 * s-addope.adb: Correct obvious error in mod function
17720 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
17722 * Makefile.in: Add target pairs for powerpc darwin*
17725 * a-intnam-darwin.ads, s-osinte-darwin.adb,
17726 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
17728 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
17730 * Makefile.in: Add target macro definitions for s390*-linux*.
17731 * system-linux-s390.ads: New file.
17732 * system-linux-s390x.ads: New file.
17734 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
17736 * gnat_ugn.texi: Correct argument to @setfilename.
17738 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
17740 * a-exexpr.adb (Unwind_Word): New data type.
17741 (Unwind_Exception): Use it as type of Private1 and Private2.
17743 * raise.c (db_action_for): Fix debug printf.
17745 2004-04-27 Ed Schonberg <schonberg@gnat.com>
17747 * a-wtmoio.ads: Formal type must be a modular type, not a signed
17750 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17752 * decl.c (gnat_to_gnu_entity, case object): Call
17753 __builtin_update_setjmp_buf.
17755 * gigi.h (update_setjmp_buf): Deleted.
17756 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
17758 * misc.c: (update_setjmp_buf): Deleted.
17760 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
17761 around block of RTL.
17763 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
17765 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
17767 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
17768 subprogram for which no pragma All_Calls_Remote applies, store the
17769 address of the real subprogram in the underlying record type, so local
17770 dereferences do not go through the PCS.
17772 2004-04-26 Robert Dewar <dewar@gnat.com>
17774 * i-c.ads: Add some type qualifications to avoid ambiguities when
17775 compiling with s-auxdec.ads and a non-private address type.
17777 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
17779 * Makefile.rtl: Fix error in previous check-in:
17780 Add s-addope.o to non tasking object list (rather than tasking object
17783 2004-04-26 Javier Miranda <miranda@gnat.com>
17785 * sem_aggr.adb: Fix typo in comments
17786 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
17787 Required to check the null-exclusion attribute.
17789 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
17790 case of anonymous access types in record and array components. For a
17791 component definition the level is the same of the enclosing composite
17794 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
17795 that are anonymous access types the level of accessibility depends on
17796 the enclosing type declaration. In order to have this information, set
17797 the scope of the anonymous access type to the enclosing record type
17799 (Array_Type_Declaration): In case of components that are anonymous
17800 access types the level of accessibility depends on the enclosing type
17801 declaration. In order to have this information, set the scope of the
17802 anonymous access type to the enclosing array type declaration.
17804 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
17807 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
17808 renaming of anonymous access-to-constant types allowed if and only if
17809 the renamed object is access-to-constant.
17811 * sem_util.adb (Type_Access_Level): In case of anonymous access types
17812 that are component_definition or discriminants of a nonlimited type,
17813 the level is the same as that of the enclosing component type.
17815 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
17817 * sem_elim.adb: Some minor code reorganization from code reading. Fix
17818 misprint in the function name (File_Name_Match).
17820 2004-04-23 Laurent GUERBY <laurent@guerby.net>
17822 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
17825 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17827 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
17829 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
17831 * adaint.c (__gnat_try_lock): No longer requires that the parent
17832 directory be writable, the directory itself is enough.
17833 (gnat_is_absolute_path): Change profile, so that the call from
17834 GNAT.OS_Lib can be made more efficient.
17836 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
17837 from GNAT.OS_Lib can be made more efficient.
17839 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
17840 one copy of the file name. Found by code reading.
17842 2004-04-23 Vincent Celier <celier@gnat.com>
17844 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
17845 Correct documentation on gnatmake switches transmitted to the compiler
17847 * ali.ads: Minor comment fix
17849 2004-04-23 Javier Miranda <miranda@gnat.com>
17851 * sem_ch6.adb: (Confirming Types): Code cleanup
17853 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
17854 subprogram types: E_Anonymous_Access_Subprogram_Type and
17855 E_Anonymous_Access_Protected_Subprogram_Type.
17857 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
17859 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
17860 whether a pragma All_Calls_Remote applies to the subprogram on which
17862 No functional change is introduced by this revision; the new parameter
17863 will be used to allow calls to local RCI subprograms to be optimized
17864 to not use the PCS in the case where no pragma All_Calls_Remote applies,
17865 as is already done in the PolyORB implementation of the DSA.
17867 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
17868 whether a pragma All_Calls_Remote applies to the subprogram on which
17870 No functional change is introduced by this revision; the new parameter
17871 will be used to allow calls to local RCI subprograms to be optimized
17872 to not use the PCS in the case where no pragma All_Calls_Remote applies,
17873 as is already done in the PolyORB implementation of the DSA.
17875 2004-04-23 Robert Dewar <dewar@gnat.com>
17877 * Makefile.rtl: Add entry for s-addope.o in run time library list
17878 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
17879 * s-addope.ads, s-addope.adb: New files.
17881 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
17882 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
17883 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
17884 System.Address to be non-private and signed.
17886 * sem_elim.adb: Minor reformatting (fairly extensive)
17887 Some minor code reorganization from code reading
17888 Add a couple of ??? comments
17890 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17892 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
17893 (tree_transform, case N_If_Statement): Remove non-determinism.
17895 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
17897 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
17899 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
17900 Eliminate' section.
17902 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
17903 no longer used as a parameter name for Eliminate pragma).
17905 2004-04-22 Laurent GUERBY <laurent@guerby.net>
17907 PR optimization/14984
17908 PR optimization/14985
17909 * trans.c (gigi): Fix non determinism leading to bootstrap
17910 comparison failures.
17912 2004-04-21 Pascal Obry <obry@gnat.com>
17914 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
17915 passed to spawnvp() to properly handle program pathname with spaces on
17918 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
17920 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
17921 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
17922 unlocked in case of exceptions.
17924 2004-04-21 Joel Brobecker <brobecker@gnat.com>
17926 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
17927 This function does not exist anymore.
17929 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
17931 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
17933 * link.c: Move variables to the __gnat name space.
17935 * Makefile.in: list link.o explicitly when needed.
17937 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
17939 2004-04-21 Javier Miranda <miranda@gnat.com>
17941 * einfo.adb (Original_Access_Type): New subprogram
17942 (Set_Original_Access_Type): New subprogram
17943 (Write_Field21_Name): Write the name of the new field
17945 * einfo.ads (Original_Access_Type): New field present in access to
17947 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
17948 E_Anonymous_Access_Protected_Subprogram_Type.
17950 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
17953 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
17954 to anonymous access to subprogram types.
17956 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
17957 to subprogram types.
17959 * sem_ch3.adb (Access_Definition): Complete decoration of entities
17960 corresponding to anonymous access to subprogram types.
17961 (Analyze_Component_Declaration): Add new actual to the call to
17962 subprogram replace_anonymous_access_to_protected_subprogram.
17963 (Array_Type_Declaration): Add new actual to the call to subprogram
17964 replace_anonymous_access_to_protected_subprogram.
17965 (Process_Discriminants): Add new actual to the call to subprogram
17966 replace_anonymous_access_to_protected_subprogram.
17967 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
17969 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
17972 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
17973 access to subprogram types.
17975 * sem_util.adb (Has_Declarations): Addition of package_specification
17978 2004-04-21 Ed Schonberg <schonberg@gnat.com>
17980 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
17981 inlined flags to renamed entity only if in current unit.
17983 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
17985 * s-parint.ads: Add DSA implementation marker.
17987 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
17988 value of System.Partition_Interface.DSA_Implementation to determine
17989 what version of the distributed systems annex is available (no
17990 implementation, GLADE, or PolyORB).
17992 2004-04-21 Joel Brobecker <brobecker@gnat.com>
17994 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
17996 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17998 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
17999 with new type if alias sets differ.
18000 Fixes ACATS c41103b.
18002 2004-04-21 Vincent Celier <celier@gnat.com>
18004 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
18005 Add array Lang_Args for the language specific compiling argument
18008 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
18010 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
18012 * gnat_rm.texi: Update the descripton of the Eliminate pragma
18013 according to the recent changes in the format of the parameters of the
18014 pragma (replacing Homonym_Number with Source_Location).
18016 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
18018 * 5isystem.ads: Removed, unused.
18020 * gnat_rm.texi: Redo 1.13 change.
18022 2004-04-19 Robert Dewar <dewar@gnat.com>
18024 * s-stoele.ads: Clean up definition of Storage_Offset (the new
18025 definition is cleaner, avoids the kludge of explicit Standard operator
18026 references, and also is consistent with a visible System.Address with
18027 no visible operations.
18029 * s-geveop.adb: Add declarations to avoid assumption of visible
18030 operations on type System.Address (since these might not be available
18031 if Address is a non-private type for which the operations
18032 are made abstract).
18034 * sem_eval.adb: Minor reformatting
18036 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
18037 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
18038 reformatting (new function spec format).
18040 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
18041 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
18042 s-caun64.adb: Add declarations to avoid assumption of visible
18043 operations on type System.Address (since these might not be available
18044 if Address is a non-private type for which the operations are made
18047 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
18049 * exp_intr.adb: Minor comment update
18051 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
18053 * 5omastop.adb: Add declarations to avoid assumption of visible
18054 operations on type System.Address (since these might not be available
18055 if Address is a non-private type for which the operations
18056 are made abstract).
18058 2004-04-19 Vincent Celier <celier@gnat.com>
18060 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
18062 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
18065 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
18067 Call Check with Process_Languages.
18068 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
18069 with Process_Languages.
18070 (Recursive_Check): New Boolean parameter Process_Languages. Call
18071 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
18074 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
18076 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
18077 parameter Ada_Main, defaulted to True.
18078 Check for Ada specific characteristics only when Ada_Main is True.
18080 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
18082 * prj.adb: (Project_Empty): Add new Project_Data components.
18084 * prj.ads: New types and tables for non Ada languages.
18085 (Project_Data): New components Languages, Impl_Suffixes,
18086 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
18087 Include_Path, Include_Data_Set.
18089 * prj-env.ads, prj-env.adb: Minor reformatting
18091 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
18092 Put subprograms in alphabetical order
18094 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
18095 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
18098 * mlib-prj.adb: Back out modification in last version, as they are
18100 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
18102 * make.adb: (Mains): Moved to package Makeutl
18103 (Linker_Opts): Moved to package Makeutl
18104 (Is_External_Assignment): Moved to package Makeutl
18105 (Test_If_Relative_Path): Moved to package Makeutl
18106 (Gnatmake): Move sorting of linker options to function
18107 Makeutl.Linker_Options_Switches.
18109 * makeutl.ads, makeutl.adb: New files.
18111 * Makefile.in: Add makeutl.o to the object files for gnatmake
18113 * makeusg.adb: Add line for new switch -eL.
18115 * gnatls.adb (Image): New function.
18116 (Output_Unit): If in verbose mode, output the list of restrictions
18117 specified by pragmas Restrictions.
18119 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
18122 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
18123 needed, to put it in the range 1970 (included) - 2026 (excluded).
18124 (Time_Of): Do not shift Unix_Min_Year (1970).
18125 Shift the date by multiple of 56 years, if needed, to put it in the
18126 range 1970 (included) - 2026 (excluded).
18128 * adaint.h, adaint.c (__gnat_set_executable): New function.
18130 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18132 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
18133 and pop GC context.
18134 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
18135 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
18136 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
18137 (tree_transform, case N_Code_Statement): Likewise.
18138 (gnat_expand_stmt, case LABEL_STMT): Don't look at
18139 LABEL_STMT_FIRST_IN_EH.
18140 (gnat_expand_stmt, case ASM_STMT): New case.
18142 * utils2.c (build_unary_op): Properly set TREE_READONLY of
18143 UNCONSTRAINED_ARRAY_REF.
18145 * utils.c (poplevel): Temporarily push/pop GC context around inline
18146 function expansion.
18148 * decl.c (maybe_variable): Properly set TREE_READONLY of
18149 UNCONSTRAINED_ARRAY_REF.
18150 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
18152 * ada-tree.def: (ASM_STMT): New.
18154 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
18155 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
18156 ASM_STMT_INPUT): New.
18157 (ASM_STMT_CLOBBER): Likewise.
18159 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
18161 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
18162 general rcheck mechanism to raise Program_Error for E.4(18), instead
18163 of a custom raiser in System.Partition_Interface.
18164 Part of general cleanup work before PolyORB integration.
18166 * snames.ads, snames.adb: Add new runtime library entities and names
18169 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
18171 (Build_Subprogram_Id): New subprogram provided by exp_dist
18172 Code reorganisation in preparation for PolyORB integration.
18174 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
18176 (Build_Subprogram_Id): New subprogram provided by exp_dist
18178 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
18179 actual parameter types for call to dereference of an
18180 access-to-subprogram type.
18182 * rtsfind.ads: Add new runtime library entities and names for PolyORB
18185 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
18186 instead, which has the same behaviour here since we never pass it a
18189 * link.c (run_path_option, Solaris case): Use -Wl, as for other
18192 * Makefile.in: adjust object file lists for gnatlink and gnatmake
18193 to account for new dependency upon Interfaces.C.Strings + link.o
18194 For x86 FreeBSD, use 86numaux.
18196 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
18197 from Mlib.Tgt to Mlib.
18199 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
18200 target-independent.
18202 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
18203 target-specific versions of this subprogram, now implemented as a
18204 target-independent function in Mlib.
18206 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
18207 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
18208 (Linker_Library_Path_Option): Remove target-specific versions of this
18209 subprogram, now implemented as a target-independent function in Mlib.
18211 * atree.adb: (Allocate_Initialize_Node): New subprogram.
18212 Factors out node table slots allocation.
18213 (Fix_Parents): New subprogram.
18214 Encapsulate the pattern of fixing up parent pointers for syntactic
18215 children of a rewritten node.
18216 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
18217 (Rewrite): Use New_Copy when creating saved copy of original node.
18218 (Replace): Use Copy_Node to copy nodes.
18220 2004-04-19 Javier Miranda <miranda@gnat.com>
18222 * sprint.adb (Sprint_Node_Actual): Give support to the new
18223 Access_To_Subprogram node available in Access_Definition nodes. In
18224 addition, give support to the AI-231 node fields: null-exclusion,
18225 all-present, constant-present.
18227 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
18229 * sinfo.ads, sinfo.adb:
18230 New field Access_To_Subprogram_Definition in Access_Definition nodes
18232 * sem_ch6.adb (Process_Formals): Move here the code that creates and
18233 decorates internal subtype declaration corresponding to the
18234 null-excluding formal. This code was previously in Set_Actual_Subtypes.
18235 In addition, carry out some code cleanup on this code. In case of
18236 access to protected subprogram call
18237 Replace_Anonymous_Access_To_Protected_Subprogram.
18238 (Set_Actual_Subtypes): Code cleanup.
18240 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
18241 Find_Type in case of anonymous access renamings. Add warning in case of
18242 null-excluding attribute used in anonymous access renaming.
18244 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
18247 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
18249 (Access_Definition): In case of anonymous access to subprograms call
18250 the corresponding semantic routine to decorate the node.
18251 (Access_Subprogram_Declaration): Addition of some comments indicating
18252 some code that probably should be added here. Detected by comparison
18253 with the access_definition subprogram.
18254 (Analyze_Component_Declaration): In case of access to protected
18255 subprogram call Replace_Anonymous_Access_To_Protected.
18256 (Array_Type_Declaration): In case of access to protected subprogram call
18257 Replace_Anonymous_Access_To_Protected_Subprogram.
18258 (Process_Discriminants): In case of access to protected subprogram call
18259 Replace_Anonymous_Access_To_Protected_Subprogram.
18261 * par.adb (P_Access_Definition): New formal that indicates if the
18262 null-exclusion part was present.
18263 (P_Access_Type_Definition): New formal that indicates if the caller has
18264 already parsed the null-excluding part.
18266 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
18267 (P_Identifier_Declarations): Code cleanup and give support to renamings
18268 of anonymous access to subprogram types.
18269 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
18270 (P_Array_Type_Definition): Give support to AI-254.
18271 (P_Component_Items): Give support to AI-254.
18272 (P_Access_Definition): New formal that indicates if the header was
18273 already parsed by the caller.
18274 (P_Access_Type_Definition): New formal that indicates if the caller has
18275 already parsed the null-excluding part.
18277 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
18278 call to P_Access_Definition.
18280 2004-04-19 Geert Bosch <bosch@gnat.com>
18282 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
18283 the delicate semantics of floating-point to integer conversion.
18284 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
18286 * eval_fat.adb (Machine_Mantissa): Moved to spec.
18287 (Machine_Radix): New function.
18289 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
18291 (Machine_Radix): New function also for use in conversion checks.
18293 2004-04-19 Ed Schonberg <schonberg@gnat.com>
18295 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
18297 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
18298 to decorate the access-to-protected subprogram and the equivalent type.
18300 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
18301 to anonymous access to subprogram types.
18303 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
18304 constant-folding, for legality checks in contexts that require an RM
18307 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
18308 temporary but stack checking is not enabled, increment serial number
18309 to so that symbol generation is consistent with and without stack
18312 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
18313 independent on whether stack checking is enabled, caller must check
18314 the corresponding flag.
18316 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
18318 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
18319 parent if it has discriminants.
18320 (Build_Derived_Private_Type): Constructed full view does
18321 not come from source.
18322 (Process_Discriminants): Default discriminants on a tagged type are
18323 legal if this is the internal completion of a private untagged
18326 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
18327 no constraint checks, because it corresponds to an existing object.
18329 * sem_prag.adb (Process_Convention): Pragma applies
18330 only to subprograms in the same declarative part, i.e. the same unit,
18331 not the same scope.
18333 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
18334 ignore type mismatch on a numeric conversion if expression comes from
18337 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
18339 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
18340 Homonym_Number parameter, add processing for Source_Location parameter
18342 (Check_Eliminated): Remove the check for homonym numbers, add the check
18343 for source location traces.
18345 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
18346 with Arg_Source_Location corresponding to the changes in the format of
18349 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
18350 Eliminate pragma corresponding to the changes in the format of the
18351 pragma: Homonym_Number is replaced with Source_Location, two ways of
18352 distinguishing homonyms are mutially-exclusive.
18354 2004-04-19 Joel Brobecker <brobecker@gnat.com>
18356 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
18358 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
18359 No_Dollar_In_Label, no longer necessary, as it is always True.
18360 (Strip_Suffixes): Likewise.
18362 2004-04-19 Gary Dismukes <dismukes@gnat.com>
18364 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
18365 modulus for compatibility with size clause on targets with 16-bit
18368 * layout.adb (Discrimify): In the case of private types, set Vtyp to
18369 full type to fix type mismatches on calls to size functions for
18370 discriminant-dependent array components.
18372 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
18374 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
18377 2004-04-19 Pascal Obry <obry@gnat.com>
18379 * mdll-utl.adb (Locate): New version is idempotent.
18381 2004-04-17 Laurent Guerby <laurent@guerby.net>
18383 PR ada/14988 (partial)
18384 * impunit.adb: Fix typo.
18386 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
18388 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
18389 and install-rts-cert targets. Remove all gnatlib and gnattools
18390 targets and all other rts-* targets (moved to libada). Remove (now)
18391 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
18392 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
18394 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18396 * trans.c (tree_transform): Shortcut returning error_mark_node for
18397 statements in annotate_only_mode.
18398 (tree_transform, case N_Label, case N_Return_Statement,
18399 N_Goto_Statement): Make statement tree instead of generating code.
18400 (tree_transform, case N_Assignment_Statement): No longer check
18401 type_annotate_only.
18402 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
18404 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
18406 (gnat_to_gnu): Collect any RTL generated and deal with it.
18407 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
18408 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
18409 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
18411 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
18413 * ada-tree.def (EXPR_STMT): Fix typo in name.
18414 (BLOCK_STMT, IF_STMT): New nodes.
18416 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
18417 LABEL_STMT_FIRST_IN_EH): New macros.
18418 (RETURN_STMT_EXPR): Likewise.
18420 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
18421 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
18423 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
18425 * atree.ads: Correct documentation on extended nodes.
18427 * link.c: Set run_path_option for FreeBSD.
18429 2004-04-08 Vincent Celier <celier@gnat.com>
18431 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
18432 one of the ALI file, do not link with DEC lib.
18434 * par.adb Remove the last two characters ("%s" or "%b") when checking
18435 if a language defined unit may be recompiled.
18437 2004-04-08 Ed Schonberg <schonberg@gnat.com>
18439 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
18440 removal of abstract operation leaves no possible interpretation for
18443 * sem_eval.adb (Eval_Qualified_Expression): Use
18444 Set_Raises_Constraint_Error on node when needed, so that it does not
18445 get optimized away by subsequent optimizations.
18447 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
18448 operands even when they are not wrapped in a type conversion.
18450 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
18452 * sem_prag.adb (Set_Exported): Warn about making static as result of
18453 export only when the export is coming from source. This may be not
18454 be true e.g. on VMS where we expand export pragmas for exception codes
18455 together with imported or exported exceptions, and we don't want the
18456 user to be warned about something he didn't write.
18458 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
18460 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
18461 duplication between normal entities and those declared as renamings.
18462 No functional change.
18464 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
18465 inline functions returning an unconstrained result.
18467 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
18469 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
18470 conform to what other front-ends do.
18472 2004-04-08 Doug Rupp <rupp@gnat.com>
18474 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
18477 2004-04-06 Pascal Obry <obry@gnat.com>
18479 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
18481 * osint.adb (Program_Name): Do not look past a directory separator.
18483 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
18485 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
18487 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
18488 requirement for preserving a copy of the original assignment node.
18490 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
18492 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
18494 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
18497 2004-04-06 Ed Schonberg <schonberg@gnat.com>
18499 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
18500 operator calls in functional notation, and apply
18501 Universal_Interpretation to operands, not to their type.
18503 2004-04-06 Robert Dewar <dewar@gnat.com>
18505 * 5wdirval.adb: Minor reformatting
18507 2004-04-06 Ed Falis <falis@gnat.com>
18509 * gnat_rm.texi: Improve a reference to the GCC manual
18511 2004-04-05 Vincent Celier <celier@gnat.com>
18513 * adaint.h, adaint.c: Add function __gnat_named_file_length
18515 * impunit.adb: Add Ada.Directories to the list
18517 * Makefile.in: Add VMS and Windows versions of
18518 Ada.Directories.Validity package body.
18520 * Makefile.rtl: Add a-direct and a-dirval
18522 * mlib-tgt.ads: Minor comment update.
18524 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
18525 a-direct.ads, a-direct.adb: New files.
18527 2004-04-05 Vincent Celier <celier@gnat.com>
18530 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
18531 just to the compiler.
18533 2004-04-05 Robert Dewar <dewar@gnat.com>
18535 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
18536 returned string is 1.
18538 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
18540 * eval_fat.ads: Minor reformatting
18542 * g-curexc.ads: Document that lower bound of returned string values
18545 * gnatlink.adb: Add ??? comment for previous change
18546 (need to document why this is VMS specific)
18548 * s-stoele.ads: Minor reformatting
18550 * tbuild.ads: Minor reformatting throughout (new function specs)
18552 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
18555 * scng.adb: Minor reformatting
18557 2004-04-05 Geert Bosch <bosch@gnat.com>
18559 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
18560 (Leading_Part): Still perform truncation to machine number if the
18561 specified radix_digits is greater or equal to machine_mantissa.
18563 2004-04-05 Javier Miranda <miranda@gnat.com>
18565 * par-ch3.adb: Complete documentation of previous change
18566 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
18567 (aliased must appear before constant).
18569 * par-ch4.adb: Complete documentation of previous change.
18571 * par-ch6.adb: Complete documentation of previous change.
18573 * sinfo.ads: Fix typo in commment.
18575 2004-04-05 Ed Schonberg <schonberg@gnat.com>
18577 * sem_ch3.adb (Inherit_Components): If derived type is private and has
18578 stored discriminants, use its discriminants to constrain parent type,
18579 as is done for non-private derived record types.
18581 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
18582 Ada 2005 AI-310: an abstract non-dispatching operation is not a
18583 candidate interpretation in an overloaded call.
18585 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
18586 expression is Null and target type is not an access type (e.g. a
18587 non-private address type).
18589 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
18591 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
18592 statement whose right-hand side is an inlined call, save a copy of the
18593 original assignment subtree to preserve enough consistency for
18594 Analyze_Assignment to proceed.
18596 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
18597 complete assignment subtree which is now unnecessary, as the expansion
18598 of inlined call has been improved to preserve a consistent assignment
18599 tree. Note_Possible_Modification must be called only
18600 after checks have been applied, or else unnecessary checks will
18603 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
18604 of explicit dereferences that do not Come_From_Source:
18605 - be selective on cases where we must go back to the dereferenced
18606 pointer (an assignment to an implicit dereference must not be
18607 recorded as modifying the pointer);
18608 - do not rely on Original_Node being present (Analyze_Assignment
18609 calls Note_Possible_Modification on a copied tree).
18611 * sem_warn.adb (Check_References): When an unset reference to a pointer
18612 that is never assigned is encountered, prefer '<pointer> may be null'
18613 warning over '<pointer> is never assigned a value'.
18615 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
18617 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
18620 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
18622 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
18623 libexc. We currently don't reference anything in this library and
18624 linking it in triggers linker warnings we don't want to see.
18626 * init.c: Update comments.
18628 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18630 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
18631 * utils.c (create_field_decl): Likewise.
18632 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
18634 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
18636 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
18637 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
18638 Add info directory entry and category.
18640 2004-04-02 Jan Hubicka <jh@suse.cz>
18642 * utils.c: Include function.h
18643 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
18645 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
18648 * Make-lang.in: Clean up generation of documentation
18650 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
18652 * xgnatug.adb: Removed, replaced by xgnatugn.adb
18654 * xgnatugn.adb: Replaces xgnatug.adb
18656 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
18658 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
18660 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
18661 gnat_ug_wnt.texi: Removed.
18663 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
18665 * utils2.c: Update copyright notice.
18667 2004-04-01 Robert Dewar <dewar@gnat.com>
18669 * checks.adb: Minor reformatting throughout
18670 Note that prev checkin added RM reference to alignment warning
18672 2004-04-01 Ed Schonberg <schonberg@gnat.com>
18674 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
18675 non-static when building aggregate for bit-packed array.
18677 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
18678 function call that is itself the actual in a procedure call, build
18681 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
18682 a string literal, create a temporary for it, constant folding only
18683 handles scalars here.
18685 2004-04-01 Vincent Celier <celier@gnat.com>
18687 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
18688 Error_Msg_SP): New empty procedures to instantiate the Scanner.
18689 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
18691 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
18692 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
18693 and get the checksum.
18695 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
18697 Increase the Marking_Label at the end of the Multiple_Main_Loop,
18698 instead of at the beginning.
18700 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
18702 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
18705 * osint.ads (Multi_Unit_Index_Character): New Character global variable
18707 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
18710 * par.adb: Remove test on file name to detect language defined units.
18711 Add test on unit name, after parsing, to detect language defined units
18712 that are not compiled with -gnatg (except System.RPC and its children)
18714 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
18715 following units without style checking.
18717 * switch-c.adb: Change -gnatC to -gnateI
18719 * usage.adb: Document new switch -gnateInnn
18721 * scng.adb (Accumulate_Token_Checksum): New procedure
18722 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
18723 word or literal number.
18724 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
18727 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
18730 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
18731 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
18732 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
18733 5vtpopde.adb: Add missing 'constant' keywords.
18735 2004-04-01 Javier Miranda <miranda@gnat.com>
18737 * par-ch4.adb: (P_Allocator): Code cleanup
18739 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
18742 * sinfo.ads: Complete documentation of previous change
18744 2004-04-01 Pascal Obry <obry@gnat.com>
18746 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
18747 only on VMS. This special handling was done because an old GNU/ld bug
18748 on Windows which has been fixed.
18750 2004-04-01 GNAT Script <nobody@gnat.com>
18752 * Make-lang.in: Makefile automatically updated
18754 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18756 * decl.c (gnat_to_gnu_entity, make_type_from_size):
18757 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
18758 * trans.c (tree_transform, convert_with_check): Likewise.
18759 * utils.c (gnat_signed_or_unsigned_type): Likewise.
18760 (build_vms_descriptor, unchecked_convert): Likewise.
18761 * utils2.c (nonbinary_modular_operation): Likewise.
18763 2004-03-29 Javier Miranda <miranda@gnat.com>
18765 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
18766 (Install_Null_Excluding_Check): Local subprogram that determines whether
18767 an access node requires a runtime access check and if so inserts the
18768 appropriate run-time check.
18769 (Apply_Access_Check): Call Install_Null_Excluding check if required
18770 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
18772 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
18774 * einfo.ads: Fix typo in comment
18776 * exp_ch3.adb (Build_Assignment): Generate conversion to the
18777 null-excluding type to force the corresponding run-time check.
18778 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
18779 type to force the corresponding run-time check.
18781 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
18782 the null-excluding type to force the corresponding run-time check.
18784 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
18785 case of access types unless they have the null-excluding attribute.
18787 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
18790 * exp_util.ads: Fix typo in comment
18792 * par.adb (P_Null_Exclusion): New subprogram
18793 (P_Subtype_Indication): New formal that indicates if the null-excluding
18794 part has been scanned-out and it was present
18796 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
18798 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
18799 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
18800 type to force the corresponding run-time check
18801 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
18803 (Resolve_Array_Aggregate): Carry out some static checks
18804 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
18806 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
18807 attribute must be set only if specified by means of the null-excluding
18808 part. In addition, we must also propagate the access-constant attribute
18810 (Access_Subprogram_Declaration, Access_Type_Declaration,
18811 Analyze_Component_Declaration, Analyze_Object_Declaration,
18812 Array_Type_Declaration, Process_Discriminants,
18813 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
18814 and carry out some static checks.
18815 (Build_Derived_Access_Type): Set the null-excluding attribute
18816 (Derived_Type_Declaration, Process_Subtype): Carry out some static
18819 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
18821 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
18823 * sem_ch6.adb (Process_Formals): Carry out some static checks.
18824 (Set_Actual_Subtypes): Generate null-excluding subtype if the
18825 null-excluding part was present; it is not required to be done here in
18826 case of anonymous access types.
18827 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
18830 * sem_res.adb (Resolve_Actuals): Carry out some static check
18831 (Resolve_Null): Allow null in anonymous access
18833 * sinfo.adb: New subprogram Null_Exclusion_Present
18834 All_Present and Constant_Present available on access_definition nodes
18836 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
18837 object_declaration, derived_type_definition, component_definition,
18838 discriminant_specification, access_to_object_definition,
18839 access_function_definition, allocator, access_procedure_definition,
18840 access_definition, parameter_specification, All_Present and
18841 Constant_Present flags available on access_definition nodes.
18843 2004-03-29 Robert Dewar <dewar@gnat.com>
18845 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
18846 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
18847 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
18848 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
18849 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
18850 sem_prag.adb: Updates to handle multiple units/file
18852 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
18854 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
18855 sem_util.adb: Minor reformatting
18857 * sem_ch12.adb: Add comment for previous change
18859 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
18861 * osint.adb (Executable_Prefix): Set Exec_Name to the current
18862 executable name when not initialized. Otherwise, use its current value.
18864 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
18865 initialize it to another executable name than the current one. This
18866 allows to configure paths for an executable name (gnatmake) different
18867 from the current one (gnatdist).
18869 2004-03-29 Ed Schonberg <schonberg@gnat.com>
18871 * exp_ch6.adb (Expand_Call): A call to a function declared in the
18872 current unit cannot be inlined if it appears in the body of a withed
18873 unit, to avoid order of elaboration problems in gigi.
18875 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
18876 information for protected (wrapper) operation as well, to simplify gdb
18879 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
18880 protected body, indicate that the entity for the generated spec comes
18881 from source, to ensure that references are properly generated for it.
18882 (Build_Body_To_Inline): Do not inline a function that returns a
18885 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
18886 apply convention to homonyms that are declared explicitly.
18888 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
18889 that renames an equality operator and the operands are overloaded,
18890 resolve them with the declared formal types, before rewriting as an
18893 2004-03-29 GNAT Script <nobody@gnat.com>
18895 * Make-lang.in: Makefile automatically updated
18897 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
18899 * memtrack.adb: Log realloc calls, which are treated as free followed
18902 2004-03-25 Vincent Celier <celier@gnat.com>
18904 * prj-makr.adb (Process_Directories): Detect when a file contains
18905 several units. Do not include such files in the config pragmas or
18906 in the naming scheme.
18908 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
18909 Resolve links only when not in Trusted_Mode.
18910 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
18911 Do not resolve links for the display names.
18913 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
18914 resolve links when computing the display names.
18916 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
18918 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
18919 attribute reference does not denote a subtype, it can be any
18920 expression that has a classwide type, potentially after an implicit
18921 dereference. In particular, the prefix can be a view conversion for
18922 a classwide type (for which Is_Object_Reference holds), but it can
18923 also be a value conversion for an access-to-classwide type. In the
18924 latter case, there is an implicit dereference, and the original node
18925 for the prefix does not verify Is_Object_Reference.
18927 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
18928 conversion of a discriminant-dependent component of a mutable object
18931 2004-03-25 Ed Schonberg <schonberg@gnat.com>
18933 * freeze.adb (Freeze_Entity): When an inherited subprogram is
18934 inherited, has convention C, and has unconstrained array parameters,
18935 place the corresponding warning on the derived type declaration rather
18936 than the original subprogram.
18938 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
18939 indication on renaming declaration, if formal has a box and actual
18942 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
18943 determine whether to generate an implicit or explicit reference to
18944 the renamed entity.
18946 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
18947 subprogram renaming comes from a defaulted formal subprogram in an
18950 2004-03-25 Gary Dismukes <dismukes@gnat.com>
18952 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
18953 value expressions to ensure that calls within a component definition
18954 will be checked (since those are evaluated during the record type's
18957 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
18959 * s-tpobop.adb: Code clean up:
18960 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
18962 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
18964 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
18966 * Makefile.in: Clean up in the ravenscar run time.
18968 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
18970 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
18971 of No_Strict_Aliasing to build_pointer_type_for_mode.
18972 * utils.c (update_pointer_to): Walk pointer and ref chains.
18974 2004-03-22 Cyrille Comar <comar@act-europe.fr>
18976 * ali.ads: Fix Comment about Dynamic_Elab.
18978 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
18979 Has_RACW, Is_Generic, etc.)
18980 (Output_Object, Gnatls): Take into account ALI files not attached to
18983 2004-03-22 Vincent Celier <celier@gnat.com>
18985 * gprep.adb: Change all String_Access to Name_Id
18986 (Is_ASCII_Letter): new function
18987 (Double_File_Name_Buffer): New procedure
18988 (Preprocess_Infile_Name): New procedure
18989 (Process_Files): New procedure
18990 (Gnatprep): Check if output and input are existing directories.
18991 Call Process_Files to do the real job.
18993 2004-03-22 Robert Dewar <dewar@gnat.com>
18995 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
18996 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
18998 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
19000 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
19001 case when the source contains only comments.
19003 2004-03-22 Ed Schonberg <schonberg@gnat.com>
19005 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
19006 declaration for a child subprogram body that acts as a spec, indicate
19007 that the entity in the declaration needs debugging information.
19009 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
19010 full view if the subtype is created for a constrained record component;
19011 gigi has enough information to construct the record, and there is no
19012 place in the tree for the declaration.
19014 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
19015 serial number for the dummy body that is built for analysis, to avoid
19016 inconsistencies in the generation of internal names when compiling
19019 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
19021 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
19024 2004-03-22 GNAT Script <nobody@gnat.com>
19026 * Make-lang.in: Makefile automatically updated
19028 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19030 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
19031 * trans.c (tree_transform, emit_index_check): Likewise.
19032 * utils.c (build_template): Likewise.
19033 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
19034 (maybe_unconstrained_array, unchecked_convert): Likewise.
19035 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
19036 (build_unary_op): Likewise.
19037 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
19038 (fill_vms_descriptor): Likewise.
19039 (build_call_alloc_dealloc): Likewise.
19041 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
19043 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
19046 * gnat_ug.texi: Add info directory category and entry.
19047 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19048 gnat_ug_wnt.texi: Regenerate.
19050 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
19052 * ada-tree.h: Update copyright notice.
19053 Minor reformatting.
19055 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
19057 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
19058 as regular exception objects and not as mere integers representing the
19059 condition code. The latter approach required some dynamics to mask off
19060 severity bits, which did not fit well into the GCC table based model.
19061 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
19062 exception data objects. We don't it and it would conflict with the other
19063 external symbol we have to generate for such exceptions.
19065 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
19066 the special code for VMS exceptions, since these are now represented
19067 as regular exceptions objects.
19069 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19071 * decl.c (debug_no_type_hash): Remove.
19072 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
19073 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
19075 2004-03-19 Laurent Guerby <laurent@guerby.net>
19077 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
19078 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
19080 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19082 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
19083 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
19084 (TYPE_RM_SIZE_INT): Directly use type.values.
19085 (TREE_LOOP_ID): Clean up check.
19086 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
19087 TYPE_VALUES, not TYPE_FIELDS.
19088 * trans.c (convert_with_check): Delay access of bounds of basetype
19089 until sure is numeric.
19091 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
19093 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
19096 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
19097 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
19098 Specific.Set instead of direct call to e.g pthread_setspecific.
19100 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
19102 * adaint.c: Update comments.
19104 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
19105 GNATLIB_SHARED for FreeBSD.
19107 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
19109 * init.c [VxWorks]: Do not fix the stack size for the environment task.
19110 When needed (stack checking) the stack size is retrieved
19111 from the VxWorks kernel.
19113 * Makefile.in: Flag -nostdinc is required when building the run time
19114 for avoiding looking for files in the base compiler.
19115 Add the VxWorks specific version of the package body for
19116 System.Stack_checking.Operations (5zstchop.adb).
19118 * Make-lang.in: Add the object file for
19119 System.Stack_Checking.Operations.
19121 * Makefile.rtl: Add object file for the package
19122 System.Stack_Checking.Operations.
19124 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
19126 * s-stache.ads, s-stache.adb: Move the operations related to stack
19127 checking from this package to package System.Stack_Checking.Operations.
19128 This way, stack checking operations are only linked in the final
19129 executable when using the -fstack-check flag.
19131 2004-03-18 Doug Rupp <rupp@gnat.com>
19133 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
19136 * 5qsystem.ads, 5xcrtl.ads: New files.
19138 2004-03-18 Vincent Celier <celier@gnat.com>
19140 * prj.adb (Reset): Reset hash table Files_Htable
19142 * prj-env.adb (Source_Paths, Object_Paths): New tables.
19143 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
19144 the procedures Add_To_Path_File.
19145 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
19146 making sure that each directory is present only once and, for object
19147 dirs, when a directory already present is added, the duplicate is
19148 removed and the directory is always put as the last in the table.
19149 Write the path files at the end of these accumulations.
19151 * prj-nmsc.adb (Record_Source): Add source file name in hash table
19152 Files_Htable for all sources.
19154 * prj-proc.adb (Process): Remove restrictions between not directly
19155 related extending projects.
19157 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
19159 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
19160 (Find_Sources): Minor speed optimization.
19162 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
19163 parameter Trusted_Mode.
19165 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
19167 * scn.adb (Determine_License): Take into account a degenerated case
19168 when the source contains only comments.
19170 2004-03-18 Ed Schonberg <schonberg@gnat.com>
19172 * sem_warn.adb (Check_References): For a warning on a selected
19173 component that does not come from source, locate an uninitialized
19174 component of the record type to produce a more precise error message.
19176 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
19178 * 3zsoccon.ads: Fix multicast options.
19180 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
19183 2004-03-15 Robert Dewar <dewar@gnat.com>
19185 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
19186 pragma used for a private type.
19188 * lib-xref.adb (Generate_Reference): Do not generate warning if
19189 reference is in a different unit from the pragma Unreferenced.
19191 * 5vtpopde.adb: Minor reformatting
19192 Fix casing of To_Task_ID
19194 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
19195 flag if we have an unchecked conversion to an access type in the same
19198 2004-03-15 Geert Bosch <bosch@gnat.com>
19200 * a-ngcoty.adb (Modulus): In alternate formula for large real or
19201 imaginary parts, use Double precision throughout.
19203 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
19204 we want to be able to compile run-time with -gnata for testing, but
19205 this may also be instantiated in user code that is compiled with -gnata.
19207 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
19209 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
19210 codes. Having a separate type for this is useful to enforce consistency
19211 throughout the various run-time units.
19212 (Exception_Data): Use Exception_Code for Import_Code.
19214 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
19215 Natural and Integer in various places.
19216 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
19217 with the severity bits masked off.
19218 (Register_VMS_Exception): Handle the additional exception data pointer
19221 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
19222 component, now reflected by an exported accessor.
19223 (is_handled_by): New routine to compute whether the propagated
19224 occurrence matches some handler choice specification. Extracted out of
19225 get_action_description_for, and expanded to take care of the VMS
19227 (get_action_description_for): Use is_handled_by instead of an explicit
19228 complex condition to decide if the current choice at hand catches the
19229 propagated occurrence.
19231 * raise.h (Exception_Code): New type for C.
19233 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
19234 System.Standard_Library.Exception_Code, to allow references from the
19235 pragma import/export expander.
19237 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
19238 New accessors to allow easy access to GNAT exception data
19240 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
19241 redundant Handled_By_Others component, helper for the personality
19242 routine which will now be able to call the appropriate exception data
19245 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
19246 component of Standard_Exception_Type to be the closest possible to
19247 Exception_Code in System.Standard_Library, that we cannot get at this
19248 point. Expand a ??? comment to notify that this type node should
19249 probably be rewritten later on.
19251 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
19252 registration call to include a pointer to the exception object in the
19255 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
19256 instead of int and explicit bitmasks.
19258 2004-03-15 Vincent Celier <celier@gnat.com>
19260 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
19261 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
19263 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
19264 longer needed now that it is in the spec of
19265 System.Tasking.Task_Attributes.
19267 * adaint.h, adaint.c: (__gnat_create_output_file): New function
19269 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
19271 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
19273 * make.adb (Gnatmake): Do not check the executable suffix; it is being
19274 taken care of in Scan_Make_Arg.
19275 (Scan_Make_Arg): Add the executable suffix only if the argument
19276 following -o, in canonical case, does not end with the executable
19277 suffix. When in verbose mode and executable file name does not end
19278 with executable suffix, output the executable name, in canonical case.
19280 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
19281 to avoid warnings when instantiating Ada.Task_Attributes.
19284 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
19285 in the correct order.
19287 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
19288 redirect standard output and error to a file for the invocation of the
19289 compiler, then read the file.
19291 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
19292 directory, instead of the Value.
19293 (Find_Source_Dirs): Remove useless code & comments.
19295 2004-03-15 Ed Schonberg <schonberg@gnat.com>
19297 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
19298 tagged type is inherited, and the parent operation is not frozen yet,
19299 force generation of a freeze node for the inherited operation, so the
19300 corresponding dispatch entry is properly initialized.
19301 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
19302 when looking for user-defined equality operation.
19304 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
19305 boolean when locating primitive equality of tagged component.
19307 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
19308 bit-aligned field and the right-hand side a string literal, introduce
19309 a temporary before expanding assignment into a loop.
19311 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
19312 priority in full, to ensure that any expanded subepxressions of it are
19313 elaborated in the scope of the init_proc.
19315 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
19316 after object declaration, skipping over code that may have been
19317 generated for validity checks.
19319 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
19320 discriminants, ignore the known discriminants of its full view, if
19321 any, to check legality.
19323 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
19324 component if type has unknown discriminants.
19325 (Analyze_Private_Extension_Declaration): Discriminant constraint is
19326 null if type has unknown discriminants.
19328 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
19329 for end label when present.
19331 * s-fileio.adb (Open): When called with a C_Stream, use given name for
19332 temporary file, rather than an empty string.
19334 2004-03-15 Ed Falis <falis@gnat.com>
19336 * s-thread.adb: Removed, no longer used.
19338 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19340 * decl.c (target.h): Now include.
19341 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
19342 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
19343 (validate_size): For POINTER_TYPE, get smallest size permitted on
19346 * fe.h: Sort Einfo decls and add Set_Mechanism.
19348 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
19349 (ada/decl.o): Depends on target.h.
19351 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
19352 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
19354 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
19356 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
19358 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
19359 Insert_Dereference_Action when rewriting an implicit dereference into
19360 an explicit one, this will be taken care of during expansion of the
19361 explicit dereference.
19362 (Expand_N_Slice): Same. Always do the rewriting, even for the case
19363 of non-packed slices, since the dereference action generated by
19364 expansion of the explicit dereference is needed in any case.
19365 (Expand_N_Selected_Component): When rewriting an implicit dereference,
19366 analyze and resolve the rewritten explicit dereference so it is seen
19368 (Insert_Dereference_Action): This procedure is now called only for the
19369 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
19370 dereferences that do not come from source (including explicit
19371 dereferences resulting from rewriting implicit ones), but do not
19372 recursively insert a check for the dereference nodes contained within
19374 (Insert_Dereference_Action): Clarify and correct comment.
19376 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
19379 Move language detection to the top level.
19380 * config-lang.in: Build by default.
19382 2004-03-05 Robert Dewar <dewar@gnat.com>
19384 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
19386 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
19387 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
19388 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
19389 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
19390 unchecked conversion to spec to avoid warnings.
19392 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
19395 * 7stpopsp.adb: Correct casing in To_Task_ID call
19397 * a-strsea.ads, a-strsea.adb: Minor reformatting
19399 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
19401 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
19402 Adjust Max_Msg_Length to be clearly large enough.
19404 * fe.h: Define In_Same_Source_Unit
19406 * osint.adb: Add pragma Warnings Off to suppress warnings
19407 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
19410 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
19412 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
19414 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
19416 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
19418 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
19420 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
19421 node. We now do generate them for gcc back end.
19423 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
19426 * sinput-c.adb: Fix bad name in header.
19427 Add pragma Warnings Off to suppress aliasing warning.
19429 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
19431 * snames.h, snames.ads, snames.adb: Add entry for pragma
19432 No_Strict_Aliasing.
19434 2004-03-05 Vincent Celier <celier@gnat.com>
19436 * prj-com.ads: Add hash table Files_Htable to check when a file name
19437 is already a source of another project.
19439 * prj-nmsc.adb (Record_Source): Before recording a new source, check
19440 if its file name is not already a source of another project. Report an
19443 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
19444 source file name, call gnatpp with all the sources of the main project.
19446 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
19449 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
19450 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
19451 /RUNTIME_SYSTEM=, converted to --RTS=
19452 /NOTABS, converted to -notabs
19454 2004-03-05 Pascal Obry <obry@gnat.com>
19456 * make.adb: Minor reformatting.
19458 2004-03-05 Ed Schonberg <schonberg@gnat.com>
19460 Part of implemention of AI-262.
19461 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
19463 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
19466 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
19467 when component type is a partially constrained class-wide subtype.
19468 (Constrain_Discriminated_Type): If parent type has unknown
19469 discriminants, a constraint is illegal, even if full view has
19471 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
19472 with unknown discriminants whose full view is a discriminated record.
19474 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
19475 flag, to handle properly derivations of tagged types with unknown
19477 (Analyze_Package_Spec, Analyze_Package_Body): Install
19478 Private_With_Clauses before analyzing private part or body.
19480 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
19481 Has_Discriminants can be true for a given type (documentation).
19483 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
19485 * s-restri.ads: Fix license (GPL->GMGPL).
19487 * s-tassta.adb: Minor reformatting.
19489 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
19490 by calls to Exit_One_ATC_Level, since additional clean up is performed
19493 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
19494 by calls to Exit_One_ATC_Level, since additional clean up is performed
19497 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19499 * trans.c: Reflect GCC changes to fix bootstrap problem.
19500 Add warning for suspicious aliasing unchecked conversion.
19502 2004-03-05 GNAT Script <nobody@gnat.com>
19504 * Make-lang.in: Makefile automatically updated
19506 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
19508 * ali.adb (Read_Instantiation_Instance): Do not modify the
19509 current_file_num when reading information about instantiations, since
19510 this corrupts files in later references.
19512 2004-03-02 Vincent Celier <celier@gnat.com>
19514 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
19515 before checking if it is read-only.
19517 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
19518 of SRC_DIRS and eliminate duplicates.
19520 * gprcmd.adb: Replace command "path" with command "path_sep" to return
19521 the path separator.
19522 (Usage): Document path_sep
19524 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
19525 C++ compiler. No need for a script.
19526 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
19527 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
19530 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
19531 where there are Ada sources.
19532 (Set_Ada_Paths): Only add to the include path the source dirs of project
19534 (Add_To_Path): Add the Display_Values of the directories, not their
19537 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
19540 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
19542 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
19543 Value is canonicalized.
19544 (Language_Independent_Check): Do not copy Value to Display_Value when
19545 canonicalizing Value.
19547 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
19548 path to find limited with cycles.
19549 (Parse_Single_Project): Use canonical cased path to find the end of a
19552 2004-03-02 Ed Schonberg <schonberg@gnat.com>
19554 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
19555 and not a child unit.
19557 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
19558 appear in a with_clause.
19560 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
19561 only happen in type_annotate mode, do not try to elaborate it.
19563 * exp_util.adb (Force_Evaluation): If expression is a selected
19564 component on the left of an assignment, use a renaming rather than a
19565 temporary to remove side effects.
19567 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
19568 inlined instance body, which is analyzed before the end of the
19571 2004-03-02 Robert Dewar <dewar@gnat.com>
19573 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
19574 sem_ch4.adb: Use new feature for substitution of keywords in VMS
19576 * errout.ads, errout.adb: Implement new circuit for substitution of
19579 * sem_case.adb (Analyze_Choices): Place message properly when case is
19580 a subtype reference rather than an explicit range.
19582 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
19584 2004-03-02 Doug Rupp <rupp@gnat.com>
19586 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
19588 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
19590 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
19592 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19594 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
19597 2004-02-25 Robert Dewar <dewar@gnat.com>
19599 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
19600 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
19601 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
19602 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
19603 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
19604 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
19605 the defining instance of the type to avoid aliasing problems.
19606 Fix copyright header. Fix bad comments in package header.
19608 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
19610 2004-02-25 Ed Schonberg <schonberg@gnat.com>
19612 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
19613 rewritten as references when aliased through an address clause.
19615 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
19616 whether call can be interpreted as an indirect call to the result of a
19617 parameterless function call returning an access subprogram.
19619 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
19622 * exp_ch7.adb (Make_Clean): Remove generation of calls to
19623 Unlock[_Entries], since this is now done by Service_Entries directly.
19625 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
19627 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
19628 Requeue_Call for better code readability. Change spec and update calls:
19629 PO_Service_Entries now unlock the PO on exit.
19630 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
19631 PO_Service_Entries.
19633 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
19635 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
19637 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
19639 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
19640 protected subprogram call and analyzing the result of such expanding
19641 in case when the called protected subprogram is eliminated.
19643 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
19646 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
19648 * Makefile.in: Clean ups.
19650 2004-02-23 Ed Schonberg <schonberg@gnat.com>
19652 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
19653 protected operations if original subprogram is flagged as eliminated.
19654 (Expand_N_Subprogram_Body): For a protected operation, create
19655 discriminals for next operation before checking whether the operation
19658 * exp_ch9.adb (Expand_N_Protected_Body,
19659 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
19660 for internal protected operations if the original subprogram is
19663 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
19664 declared in a single protected object.
19666 2004-02-23 Vincent Celier <celier@gnat.com>
19668 * prj-attr.adb: Make attribute Builder'Executable an associative array,
19669 case insensitive if file names are case insensitive, instead of a
19670 standard associative array.
19672 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
19673 them as case insensitive on platforms where the file names are case
19676 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
19677 project file has already been parsed that canonical path are compared.
19679 2004-02-23 Robert Dewar <dewar@gnat.com>
19681 * sinput-c.ads: Correct bad unit title in header
19683 * freeze.adb: Minor reformatting
19685 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19687 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
19688 nonaddressable COMPONENT_REF that is removing padding that we are
19689 taking the address of, take the address of the padded record instead
19690 if item is variable size.
19692 2004-02-20 Robert Dewar <dewar@gnat.com>
19694 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
19696 2004-02-20 Ed Schonberg <schonberg@gnat.com>
19698 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
19699 itype references for the constrained designated type of a component
19700 whose base type is already frozen.
19702 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
19704 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
19705 avoid GCC warnings.
19707 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
19709 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
19710 identifier for a phantom package that rewrites the formal package
19711 declaration with a box. The Add semantic decorations for the defining
19712 identifier from the original node (that represents the formal package).
19714 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
19716 * Make-lang.in (ada/stamp-sdefault): Use the top level
19719 2004-02-19 Richard Henderson <rth@redhat.com>
19721 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
19723 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
19725 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
19726 Scan_ALI can be used for multiple ALI files without reinitializing
19729 2004-02-18 Robert Dewar <dewar@gnat.com>
19731 * debug.adb: Minor reformatting.
19733 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19735 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
19736 to zero if there is an address clause.
19738 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
19740 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
19742 2004-02-18 Gary Dismukes <dismukes@gnat.com>
19744 * layout.adb (Layout_Component_List): Revise generation of call to
19745 discriminant-checking function to pass selections of all of the type's
19746 discriminants rather than just the variant-controlling discriminant.
19748 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
19750 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
19751 fail in the current setup and triggers spurious system error messages.
19752 Pretend it occurred and failed instead.
19754 2004-02-18 Vincent Celier <celier@gnat.com>
19756 * bld.adb: Mark FLDFLAGS as saved
19757 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
19758 it is not the root project. Put each directory to be
19759 extended between double quotes to prevent it to be expanded on Windows.
19760 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
19761 the project file. Set them back to their initial values if they have not
19762 been set in the project file.
19764 * gprcmd.adb: (Gprdebug, Debug): New global variables
19765 (Display_Command): New procedure
19766 (Usage): Document new command "linkopts"
19767 Call Display_Command when env var GPRDEBUG has the value "TRUE"
19768 Implement new command "linkopts"
19769 Remove quotes that may be around arguments for "extend"
19770 Always call Normalize_Pathname with arguments formatted for the platform
19772 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
19773 Change @echo to @$(display) in target clean to be able to clean silently
19775 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
19777 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
19780 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
19781 = Extending_All when current project is an extending all project.
19783 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
19784 set to True only for LINK command, after Unix switch -o.
19785 (Process_Arguments): Set Output_File_Expected to True for LINK command
19786 after Unix switch -o. When Output_File_Expected is True, never add an
19787 extension to a file name.
19789 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
19790 option file name, only to the --for-linker= switch.
19791 (Option_File_Name): If option file name do not end with ".opt", append
19794 2004-02-18 GNAT Script <nobody@gnat.com>
19796 * Make-lang.in: Makefile automatically updated
19798 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
19800 * Make-lang.in (stamp-sdefault): Do not depend on
19803 2004-02-12 Zack Weinberg <zack@codesourcery.com>
19805 * config-lang.in: Disable Ada by default until probe logic for
19806 a bootstrap Ada compiler can be moved to the top level configure
19809 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
19811 * decl.c (components_to_record): Don't claim that the internal fields
19812 we make to hold the variant parts are semantically addressable, because
19815 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
19816 adjust the comment describing the modular type form when we can use it.
19817 (Install_PAT): Account for the Esiz renaming.
19819 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
19820 sc_onstack context indication before raising the exception to which
19821 the signal is mapped. Allows better handling of later signals possibly
19822 triggered by the resumed user code if the exception is handled.
19824 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
19826 * 5zinit.adb: Removed, no longer used.
19828 2004-02-12 Robert Dewar <dewar@gnat.com>
19830 * ali.adb: Remove separating space between parameters on R line. Makes
19831 format consistent with format used by the binder for Set_Globals call.
19833 * atree.ads, atree.adb: Minor reformatting (new function header format)
19835 * bindgen.adb: Add Run-Time Globals documentation section containing
19836 detailed documentation of the globals passed from the binder file to
19839 * gnatls.adb: Minor reformatting
19841 * init.c (__gnat_set_globals): Add note pointing to documentation in
19844 * lib-writ.ads, lib-writ.adb: Remove separating space between
19845 parameters on R line.
19846 Makes format consistent with format used by the binder for Set_Globals
19849 * osint.ads: Add 2004 to copyright notice
19852 * snames.ads: Correct capitalization of FIFO_Within_Priorities
19853 Noticed during code reading, documentation issue only
19855 * usage.adb: Remove junk line for obsolete C switch
19856 Noticed during code reading
19858 2004-02-12 Vincent Celier <celier@gnat.com>
19860 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
19861 extend for each directory, so that multiple /** directories are
19862 extended individually.
19863 (Recursive_Process): Set the default for LANGUAGES to ada
19865 * gprcmd.adb: Define new command "ignore", to do nothing.
19866 Implement new comment "path".
19868 * Makefile.generic: Suppress output when SILENT is set
19869 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
19870 used, so that the correct compiler is invoked.
19871 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
19872 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
19874 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
19876 * Makefile.in: Clean ups and remove obsolete targets.
19878 2004-02-12 Ed Schonberg <schonberg@gnat.com>
19880 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
19881 predicate declared in exp_util.
19883 * exp_util.adb: Add comments.
19885 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
19886 visibility before compiling context of the subunit.
19888 * sem_res.adb (Check_Parameterless_Call): If the context expects a
19889 value but the name is a procedure, do not attempt to analyze as a call,
19890 in order to obtain more telling diagnostics.
19892 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
19893 'Access on parameterless function calls.
19894 (Normalize_Actuals): For a parameterless function call with missing
19895 actuals, defer diagnostic until resolution of enclosing call.
19897 * sem_util.adb (Wrong_Type): If the context type is an access to
19898 subprogram and the expression is a procedure name, suggest a missing
19901 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
19902 Nathanael Nerode <neroden@gcc.gnu.org>
19904 PR ada/6637, PR ada/5911
19905 Merge with libada-branch:
19906 * config-lang.in: Build libada only when ada is built.
19908 2004-02-09 Ed Schonberg <schonberg@gnat.com>
19910 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
19911 for a tagged type, verify that both formals have the same type.
19913 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
19914 temporary when the formal is an in-parameter and the actual a possibly
19917 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
19918 when expansion is disabled, to ensure proper name capture with
19919 overloaded literals. Condition can be of any boolean type, resolve
19922 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
19923 renaming is for a formal subprogram with a default operator name, and
19924 there is a usable operator that is visible at the point of
19927 2004-02-09 Robert Dewar <dewar@gnat.com>
19929 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
19930 rewrite to ignore errors in ali files, intended to allow tools downward
19931 compatibility with new versions of ali files.
19933 * ali.ads: Add new parameter Ignore_Errors
19935 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
19936 duplicating the error message giving the file with restrictions.
19938 * debug.adb: Add debug flag I for gnatbind
19940 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
19941 operators for the case where the operator is a defining operator.
19943 * exp_ch3.adb: Minor reformatting (new function spec format).
19945 * exp_ch4.adb: Add comment for previous change, and make minor
19946 adjustment to loop to always check for improper loop termination.
19947 Minor reformatting throughout (new function spec format).
19949 * gnatbind.adb: Implement -di debug flag for gnatbind
19951 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
19953 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
19955 * lib-load.adb: Fix bad assertion.
19956 Found by testing and code reading.
19957 Minor reformatting.
19959 * lib-load.ads: Minor reformatting.
19961 * lib-writ.adb: There is only one R line now.
19963 * lib-writ.ads: Add documentation on making downward compatible changes
19964 to ali files so old tools work with new ali files.
19965 There is only one R line now.
19966 Add documentation on format incompatibilities (with special GPS note)
19968 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
19970 * par-load.adb: Minor reformatting
19972 * sem_ch8.adb: Fix to error message from last update
19973 Minor reformatting and restructuring of code from last update
19975 * par-prag.adb, snames.adb, snames.ads, snames.h,
19976 sem_prag.adb: Implement pragma Profile.
19978 * stylesw.adb: Implement -gnatyN switch to turn off all style check
19981 * usage.adb: Add line for -gnatyN switch
19983 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
19985 2004-02-09 Albert Lee <lee@gnat.com>
19987 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
19989 2004-02-09 Ed Schonberg <schonberg@gnat.com>
19991 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
19994 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
19995 is nested in an instance that is not frozen yet, to avoid
19996 order-of-elaboration problems in gigi.
19998 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
19999 body the attribute is legal.
20001 2004-02-09 Robert Dewar <dewar@gnat.com>
20003 * s-rident.ads: Minor comment correction
20005 * targparm.adb: Remove dependence on uintp completely. There was
20006 always a bug in Make in that it called Targparm before initializing
20007 the Uint package. The old code appeared to get away with this, but
20008 the new code did not! This caused an assertion error in gnatmake.
20010 * targparm.ads: Fix bad comment, restriction pragmas with parameters
20011 are indeed fully supported.
20013 2004-02-06 Alan Modra <amodra@bigpond.net.au>
20015 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
20017 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
20019 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
20020 with targetm.calls.promote_prototypes.
20022 2004-02-04 Robert Dewar <dewar@gnat.com>
20024 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
20025 ali.ads, gprcmd.adb: Minor reformatting
20027 * bindgen.adb: Output restrictions string for new style restrictions
20030 * impunit.adb: Add s-rident.ads (System.Rident) and
20031 s-restri (System.Restrictions)
20033 * lib-writ.adb: Fix bug in writing restrictions string (last few
20036 * s-restri.ads, s-restri.adb: Change name Restrictions to
20037 Run_Time_Restrictions to avoid conflict with package name.
20038 Add circuit to read and acquire run time restrictions.
20040 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
20042 * restrict.ads, restrict.adb: Use the new restriction
20043 No_Task_Attributes_Package instead of the old No_Task_Attributes.
20045 * sem_prag.adb: No_Task_Attributes is a synonym of
20046 No_Task_Attributes_Package.
20048 * snames.ads, snames.adb: New entry for proper handling of
20049 No_Task_Attributes.
20051 * s-rident.ads: Adding restriction No_Task_Attributes_Package
20052 (AI-00249) that supersedes the GNAT specific restriction
20053 No_Task_Attributes.
20055 2004-02-04 Ed Schonberg <schonberg@gnat.com>
20058 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
20059 body, an identifier may be wrapped in an unchecked conversion.
20061 2004-02-04 Vincent Celier <celier@gnat.com>
20063 * lib-writ.ads: Comment update for the W lines
20065 * bld.adb: (Expression): An empty string list is static
20067 * fname-uf.adb: Minor comment update
20069 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
20071 * gnatbind.adb: Initialize Cumulative_Restrictions with the
20072 restrictions on the target.
20074 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
20076 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
20079 2004-02-02 Arnaud Charlet <charlet@gnat.com>
20081 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
20083 2004-02-02 Vincent Celier <celier@gnat.com>
20085 * gprcmd.adb (Check_Args): If condition is false, print the invoked
20086 comment before the usage.
20087 Gprcmd: Fail when command is not recognized.
20088 (Usage): Document command "prefix"
20090 * g-md5.adb (Digest): Process last block.
20091 (Update): Do not process last block. Store remaining characters and
20094 * g-md5.ads (Update): Document that several call to update are
20095 equivalent to one call with the concatenated string.
20096 (Context): Add fields to allow new Update behaviour.
20098 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
20099 defaulted to False.
20100 When May_Fail is True and no existing file can be found, return No_File.
20102 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
20105 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
20106 spec file name instead on the W line.
20108 2004-02-02 Robert Dewar <dewar@gnat.com>
20110 * ali.adb: Read and acquire info from new format restrictions lines
20112 * bcheck.adb: Add circuits for checking restrictions with parameters
20114 * bindgen.adb: Output dummy restrictions data
20115 To be changed later
20117 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
20118 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
20119 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
20120 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
20121 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
20123 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
20124 the warning message on access to possibly uninitialized variable S)
20125 Minor changes for new restrictions handling.
20127 * gnatbind.adb: Minor reformatting
20128 Minor changes for new restrictions handling
20129 Move circuit for -r processing here from bcheck (cleaner)
20131 * gnatcmd.adb, gnatlink.adb: Minor reformatting
20133 * lib-writ.adb: Output new format restrictions lines
20135 * lib-writ.ads: Document new R format lines for new restrictions
20138 * s-restri.ads/adb: New files
20140 * Makefile.rtl: Add entry for s-restri.ads/adb
20142 * par-ch3.adb: Fix bad error messages starting with upper case letter
20145 * restrict.adb: Major rewrite throughout for new restrictions handling
20146 Major point is to handle restrictions with parameters
20148 * restrict.ads: Major changes in interface to handle restrictions with
20149 parameters. Also generally simplifies setting of restrictions.
20151 * snames.ads/adb: New entry for proper handling of No_Requeue
20153 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
20154 restriction counting.
20155 Other minor changes for new restrictions handling
20157 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
20158 Restriction_Warnings now allows full parameter notation
20159 Major rewrite of Restrictions for new restrictions handling
20161 2004-02-02 Javier Miranda <miranda@gnat.com>
20163 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
20164 syntax rule for object renaming declarations.
20165 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
20166 component definitions.
20168 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
20170 (Array_Type_Declaration): Give support to access components. In addition
20171 it was also modified to reflect the name of the object in anonymous
20172 array types. The old code did not take into account that it is possible
20173 to have an unconstrained anonymous array with an initial value.
20174 (Check_Or_Process_Discriminants): Allow access discriminant in
20176 (Process_Discriminants): Allow access discriminant in non-limited types
20177 Initialize the new Access_Definition field in N_Object_Renaming_Decl
20178 node. Change Ada0Y to Ada 0Y in comments
20180 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
20181 equality operators.
20182 Change Ada0Y to Ada 0Y in comments
20184 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
20185 renamings Change Ada0Y to Ada 0Y in comments
20187 * sem_type.adb (Find_Unique_Type): Give support to the equality
20188 operators for universal access types
20189 Change Ada0Y to Ada 0Y in comments
20191 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
20193 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
20195 (N_Object_Renaming_Declaration): Addition of Access_Definition field
20196 Change Ada0Y to Ada 0Y in comments
20198 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
20199 component definition and object renaming nodes
20200 Change Ada0Y to Ada 0Y in comments
20202 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
20204 * restrict.adb: Use the new restriction identifier
20205 No_Requeue_Statements instead of the old No_Requeue for defining the
20206 restricted profile.
20208 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
20209 No_Requeue_Statements.
20211 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
20212 that supersedes the GNAT specific restriction No_Requeue. The later is
20213 kept for backward compatibility.
20215 2004-02-02 Ed Schonberg <schonberg@gnat.com>
20217 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
20218 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
20219 pragma and fix incorrect ones.
20221 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
20222 warning if the pragma is redundant.
20224 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
20226 * 5staprop.adb: Add missing 'constant' keywords.
20228 * Makefile.in: use consistent value for SYMLIB on
20229 platforms where libaddr2line is supported.
20231 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20233 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
20236 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
20238 * init.c (__gnat_install_handler): Setup an alternate stack for signal
20239 handlers in the environment thread. This allows proper propagation of
20240 an exception on stack overflows in this thread even when the builtin
20241 ABI stack-checking scheme is used without support for a stack reserve
20244 * utils.c (create_field_decl): Augment the head comment about bitfield
20245 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
20246 here, because the former is not accurate enough at this point.
20247 Let finish_record_type decide instead.
20248 Don't make a bitfield if the field is to be addressable.
20249 Always set a size for the field if the record is packed, to ensure the
20250 checks for bitfield creation are triggered.
20251 (finish_record_type): During last pass over the fields, clear
20252 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
20253 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
20254 from DECL_BIT_FIELD.
20256 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
20258 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
20259 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
20260 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
20262 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20264 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
20266 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
20267 (ZCX_By_Default): Likewise.
20268 (Front_End_ZCX_Support): Likewise.
20270 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
20271 (Initialize_Lock): Mark Level unreferenced.
20272 (Sleep): Mark Reason unreferenced.
20273 (Timed_Sleep): Likewise.
20274 (Wakeup): Likewise.
20275 (Exit_Task): Use Result.
20276 (Check_No_Locks): Mark Self_ID unreferenced.
20278 * 5gtasinf.adb (New_Sproc): Make Attr constant.
20279 (Bound_Thread_Attributes): Make Sproc constant.
20280 (New_Bound_Thread_Attributes): Likewise.
20282 2004-01-26 Ed Schonberg <schonberg@gnat.com>
20284 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
20285 one-dimensional array an slice assignments, when component type is
20288 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
20289 component type is controlled, and control_actions are in effect, use
20290 TSS procedure rather than generating inline code.
20292 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
20293 arrays with controlled components.
20295 2004-01-26 Vincent Celier <celier@gnat.com>
20297 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
20298 command line for the non VMS case.
20300 * gnatlink.adb (Process_Binder_File): When building object file, if
20301 GNU linker is used, put all object paths between quotes, to prevent ld
20302 error when there are unusual characters (such as '!') in the paths.
20304 * Makefile.generic: When there are sources in Ada and the main is in
20305 C/C++, invoke gnatmake with -B, instead of -z.
20307 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
20308 from VMS_Conversion.
20309 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
20310 specification of argument file on the command line.
20312 2004-01-26 Bernard Banner <banner@gnat.com>
20314 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
20316 2004-01-26 Ed Schonberg <schonberg@gnat.com>
20318 * snames.adb: Update copyright notice.
20319 Add info on slice assignment for controlled arrays.
20321 2004-01-23 Robert Dewar <dewar@gnat.com>
20323 * exp_aggr.adb: Minor reformatting
20325 * exp_ch9.adb: Minor code clean up
20327 Fix bad character in comment
20330 * targparm.adb (Get_Target_Parameters): Give clean abort error on
20331 unexpected end of file, along with more detailed message.
20333 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20335 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
20338 * decl.c (copy_alias_set): New function.
20339 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
20341 2004-01-23 Doug Rupp <rupp@gnat.com>
20343 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
20344 lib$${file} in case subsequent character is not a separator.
20346 2004-01-23 Vincent Celier <celier@gnat.com>
20348 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
20349 when the GCC version is at least 3.
20351 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
20352 Remove all "Opt.", to prepare for opt split
20354 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
20355 Extends_All. Set to True when the project parsed is an extending all
20356 project. Fails for importing an extending all project only when the
20357 imported project is an extending all project.
20358 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
20359 depending on the value of Extends_All returned.
20361 * prj-proc.adb (Process): Check that no project shares its object
20362 directory with a project that extends it, directly or indirectly,
20363 including a virtual project.
20364 Check that no project extended by another project shares its object
20365 directory with another also extended project.
20367 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
20368 Kind = N_With_Clause
20370 * prj-tree.ads: Minor reformatting
20371 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
20373 2004-01-23 Ed Schonberg <schonberg@gnat.com>
20375 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
20376 applies to a type with an incomplete view, use full view in Name of
20377 clause, for consistency with uses of Get_Attribute_Definition_Clause.
20379 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
20381 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
20382 SCHED_RR, since other values are not supported by this policy.
20383 (Initialize): Move initialization of mutex attribute to package
20384 elaboration, to prevent early access to this variable.
20386 * Makefile.in: Remove mention of Makefile.adalib, unused.
20388 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
20389 1ssecsta.ads: Removed, unused.
20391 2004-01-21 Javier Miranda <miranda@gnat.com>
20393 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
20394 entity if already built in the current scope.
20396 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
20397 reminder in internal scopes. Required for nested limited aggregates.
20399 2004-01-21 Doug Rupp <rupp@gnat.com>
20401 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
20402 VMS. Replace all occurences of libgnat- and libgnarl- with
20403 libgnat$(hyphen) and libgnarl$(hyphen).
20404 Fixed shared library build problem on VMS.
20406 2004-01-21 Robert Dewar <dewar@gnat.com>
20408 * mlib-prj.adb: Minor reformatting
20410 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
20412 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
20413 'constant' keywords for declaration of pointers that are not modified.
20415 * exp_pakd.adb: Fix English in comment.
20417 2004-01-21 Ed Schonberg <schonberg@gnat.com>
20420 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
20421 copy all attributes of the parent, including the foreign language
20424 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
20427 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
20428 for 'delay until' statement.
20430 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
20432 * Make-lang.in: Replace $(docdir) with doc.
20433 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
20434 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
20435 to use consistent MAKEINFO rule.
20436 (ada.man, ada.srcman): Dummy entry.
20437 (ADA_INFOFILES): Define.
20438 (ada.info, ada.srcinfo): New rules.
20440 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
20442 * utils.c: Update copyright notice, missed in previous change.
20444 2004-01-19 Vincent Celier <celier@gnat.com>
20446 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
20447 args if Bind is True. Set First_ALI, if not already done.
20448 (Build_Library): For Stand Alone Libraries, extract from one ALI file
20449 an eventual --RTS switch, for gnatbind, and all backend switches +
20450 --RTS, for linking.
20452 2004-01-19 Robert Dewar <dewar@gnat.com>
20454 * sem_attr.adb, memtrack.adb: Minor reformatting
20456 2004-01-19 Ed Schonberg <schonberg@gnat.com>
20458 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
20459 that rename enumeration literals. This is properly done in sem_eval.
20461 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
20462 to functions that rename enumeration literals.
20464 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
20465 functions that rename enumeration literals.
20467 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
20469 * Make-lang.in (utils.o): Depend on target.h.
20470 * utils.c: Include target.h.
20471 (process_attributes): Use targetm.have_named_sections instead
20472 of ASM_OUTPUT_SECTION_NAME.
20474 2004-01-16 Andreas Jaeger <aj@suse.de>
20476 * Makefile.in: Add $(DESTDIR).
20478 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
20480 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
20481 also when not defining if a Size clause applies. That information is
20484 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
20486 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
20487 symbolic links for the shared gnat run time when needed.
20489 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
20491 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
20492 for writing, and terminate with an error message if not.
20494 2004-01-15 Ed Schonberg <schonberg@gnat.com>
20496 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
20497 warning on an access to subprogram in an instance, when the target
20498 type is declared in the same generic unit.
20499 (Eval_Attribute): If 'access is known to fail accessibility check,
20500 rewrite as a raise statement.
20502 2004-01-15 GNAT Script <nobody@gnat.com>
20504 * Make-lang.in: Makefile automatically updated
20506 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
20508 * Make-lang.in (ada.srcextra): Dummy entry.
20510 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
20512 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
20514 2004-01-13 Ed Schonberg <schonberg@gnat.com>
20516 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
20517 components that are initialized with aggregates.
20519 2004-01-13 Vincent Celier <celier@gnat.com>
20521 * gnatlink.adb (Process_Binder_File): To find directory of shared
20522 libgcc, if "gcc-lib" is not a subdirectory, look for the last
20523 subdirectory "lib" in the path of the shared libgnat or libgnarl.
20525 * make.adb (Gnatmake): If GCC version is at least 3, link with
20526 -shared-libgcc, when there is at least one shared library project.
20528 * opt.ads (GCC_Version): New integer constant.
20530 * adaint.c (get_gcc_version): New function.
20532 2004-01-13 Robert Dewar <dewar@gnat.com>
20534 * sem_dist.adb, sem_res.adb, sem_util.adb,
20535 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
20536 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
20538 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
20540 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
20541 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
20544 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
20546 * misc.c: Remove trailing spaces.
20547 Update copyright notice missed in previous change.
20550 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
20553 * Makefile.generic: Update copyright.
20554 Add license notice.
20556 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
20557 of prefix/share/make.
20559 * Makefile.prolog: Update copyright.
20560 Add license notice.
20562 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
20564 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
20565 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
20566 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
20569 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
20572 2004-01-12 Javier Miranda <miranda@gnat.com>
20574 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
20575 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
20576 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
20577 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
20578 Component_Definition node.
20580 2004-01-12 Ed Falis <falis@gnat.com>
20582 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
20584 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
20586 * link.c: Change default libgnat kind to STATIC for FreeBSD.
20588 2004-01-12 Bernard Banner <banner@gnat.com>
20590 * Makefile.in: map 86numaux to a-numaux for x86_64
20592 2004-01-12 Ed Schonberg <schonberg@gnat.com>
20594 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
20595 generated to rename a generic actual, go to the actual itself, the
20596 subtype is not a user-visible entity.
20598 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
20599 part is a private subtype, reset the visibility of its full view, if
20600 any, to be consistent.
20603 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
20604 to use a generic package G as a formal package for another generic
20607 2004-01-12 Robert Dewar <dewar@gnat.com>
20609 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
20611 * usage.adb: Remove mention of obsolete -gnatwb switch
20612 Noticed during code reading
20614 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
20616 * 1ssecsta.adb: Minor changes for -gnatwa warnings
20618 2004-01-12 GNAT Script <nobody@gnat.com>
20620 * Make-lang.in: Makefile automatically updated
20622 2004-01-09 Mark Mitchell <mark@codesourcery.com>
20624 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
20626 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20628 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
20630 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
20632 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
20633 Update comment and copyright date.
20634 * stamp-xgnatug: Delete.
20636 2004-01-05 Robert Dewar <dewar@gnat.com>
20638 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
20639 be modified by the binder generated main program if the -D switch is
20642 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
20643 imported functions (since now we expect this to be done for imported
20646 * 5vtaprop.adb: Add several ??? for sections requiring more comments
20647 Minor reformatting throughout
20649 * 5zinit.adb: Minor reformatting
20650 Add 2004 to copyright date
20651 Minor changes to avoid -gnatwa warnings
20652 Correct some instances of using OR instead of OR ELSE (noted while
20653 doing reformatting)
20655 * sprint.adb: Minor updates to avoid -gnatwa warnings
20657 * s-secsta.ads, s-secsta.adb:
20658 (SS_Get_Max): New function to obtain high water mark for ss stack
20659 Default_Secondary_Stack is not a constant since it may be modified by
20660 the binder generated main program if the -D switch is used.
20662 * switch-b.adb: New -Dnnn switch for binder
20665 Make -gnatg imply all warnings currently in -gnatwa
20667 * vms_conv.adb: Minor reformatting
20668 Add 2004 to copyright notice
20669 Add 2004 to printed copyright notice
20671 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
20672 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
20673 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
20674 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
20675 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
20676 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
20677 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
20678 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
20679 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
20680 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
20681 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
20682 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
20683 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
20684 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
20685 checks.adb, clean.adb, cstand.adb, einfo.ads,
20686 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
20687 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
20688 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
20689 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
20690 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
20691 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
20692 Minor reformatting and code clean ups.
20693 Minor changes to prevent -gnatwa warnings
20695 * ali.adb: Minor reformatting and cleanup of code
20696 Acquire new SS indication of secondary stack use from ali files
20698 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
20699 (since now we expect this to be done for imported functions)
20701 * bindgen.adb: Generate call to modify default secondary stack size if
20704 * bindusg.adb: Add line for new -D switch
20706 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
20707 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
20708 Add circuitry for both records and arrays to avoid gigi
20709 processing if the type involved has non-bit-aligned components
20711 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
20712 N_String_Literal node always references an E_String_Literal_Subtype
20713 entity. This may not be true in the future.
20714 (Possible_Bit_Aligned_Component): Move processing of
20715 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
20717 * exp_ch6.adb (Expand_Thread_Body): Pick up
20718 Default_Secondary_Stack_Size as variable so that we get value modified
20719 by possible -Dnnn binder parameter.
20721 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
20722 (Type_May_Have_Bit_Aligned_Components): New function.
20724 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
20725 (Type_May_Have_Bit_Aligned_Components): New function.
20727 * fe.h: (Set_Identifier_Casing): Fix prototype.
20728 Add declaration for Sem_Elim.Eliminate_Error_Msg.
20729 Minor reformatting.
20731 * freeze.adb (Freeze_Entity): Add RM reference to error message about
20732 importing constant atomic/volatile objects.
20733 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
20734 unless explicit Pure_Function pragma given, to avoid insidious bug of
20735 call to non-pure imported function getting eliminated.
20737 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
20738 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
20739 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
20740 Add 2004 to printed copyright notice
20742 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
20745 * Makefile.rtl: Add entry for g-sestin.o
20746 g-sestin.ads: New file.
20748 * mdll.adb: Minor changes to avoid -gnatwa warnings
20750 * mlib-tgt.adb: Minor reformatting
20752 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
20753 New switch Sec_Stack_Used (GNAT, GNATBIND)
20754 Make Default_Secondary_Stack_Size a variable instead of a constant,
20755 so that it can be modified by the new -Dnnn bind switch.
20757 * rtsfind.adb (Load_Fail): Give full error message in configurable
20758 run-time mode if all_errors mode is set. This was not done in the case
20759 of a file not found, which was an oversight.
20760 Note if secondary stack unit is used by compiler.
20762 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
20763 ineffective elaborate all pragmas on non-visible packages (this
20764 happened when a renamed subprogram was called). Now the elaborate all
20765 always goes on the package containing the renaming rather than the one
20766 containing the renamed subprogram.
20768 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
20769 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
20771 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
20772 has an Etype that references an E_String_Literal.
20773 (Eval_String_Literal): Avoid assumption that N_String_Literal node
20774 always references an E_String_Literal_Subtype entity. This may not
20775 be true in the future.
20777 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
20780 * sem_res.adb (Resolve): Specialize msg for function name used in proc
20783 2004-01-05 Ed Falis <falis@gnat.com>
20785 * g-debuti.adb: Replaced direct boolean operator with short-circuit
20788 2004-01-05 Vincent Celier <celier@gnat.com>
20790 * bld.adb: Minor comment updates
20791 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
20794 * make.adb (Gnatmake): Special process for files to compile/check when
20795 -B is specified. Fail when there are only foreign mains in attribute
20796 Main of the project file and -B is not specified. Do not skip bind/link
20797 steps when -B is specified.
20799 * makeusg.adb: Document new switch -B
20801 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
20803 * switch-m.adb: (Scan_Make_Switches): Process -B switch
20805 * vms_data.ads: Add new GNAT PRETTY qualifier
20806 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
20808 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20810 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
20813 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
20814 Set_Identifier_Casing.
20816 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
20817 has size that overflows.
20819 2004-01-05 Gary Dismukes <dismukes@gnat.com>
20821 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
20822 -gnatwa warning on static condition.
20824 2004-01-05 Doug Rupp <rupp@gnat.com>
20826 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
20828 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
20830 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
20831 all attributes, including read-only attribute.
20833 2004-01-05 Pascal Obry <obry@gnat.com>
20835 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
20836 library naming scheme.
20838 * mlib-prj.adb (Build_Library): Generate different names for the static
20839 or dynamic version of the GNAT runtime. This is needed to support the
20840 new shared library naming scheme.
20841 (Process_Binder_File): Add detection of shared library in binder file
20842 based on the new naming scheme.
20844 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
20845 scheme for the shared runtime libraries.
20848 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
20850 (install-gnatlib): Do not create symlinks for shared libraries.
20851 (gnatlib-shared-default): Idem.
20852 (gnatlib-shared-dual-win32): New target. Not used for now as the
20853 auto-import feature does not support arrays/records.
20854 (gnatlib-shared-win32): Do not create copy for the shared libraries.
20855 (gnatlib-shared-vms): Fix shared runtime libraries names.
20857 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
20858 dependent runtime shared library name.
20860 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
20862 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
20865 2004-01-05 Ed Schonberg <schonberg@gnat.com>
20867 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
20868 protected objects when allocator has a subtype indication, not a
20869 qualified expression. Note that qualified expressions may have to be
20870 checked when limited aggregates are implemented.
20872 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
20873 pure, emit warning.
20874 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
20875 subprogram is imported, remove warning.
20877 2004-01-05 Geert Bosch <bosch@gnat.com>
20879 * s-poosiz.adb: Update copyright notice.
20880 (Allocate): Use Task_Lock to protect against concurrent access.
20881 (Deallocate): Likewise.
20883 2004-01-05 Joel Brobecker <brobecker@gnat.com>
20885 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
20888 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
20890 * gnat_ug.texi: Force a CVS commit by updating copyright.
20891 * gnat_ug_vxw.texi: Regenerate.
20892 * gnat_ug_wnt.texi: Regenerate.
20893 * gnat_ug_vms.texi: Regenerate.
20894 * gnat_ug_unx.texi: Regenerate.
20896 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
20898 * trans.c: Remove uses of "register" specifier in
20899 declarations of local variables.
20901 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
20903 * stamp-xgnatug: New stamp file.
20904 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
20905 (ada/doctools/xgnatug): Add $(build_exeext).
20906 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
20907 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
20909 2003-12-17 Ed Falis <falis@gnat.com>
20911 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
20914 * a-exextr.adb: Add context clause for
20915 Ada.Exceptions.Last_Chance_Handler.
20917 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
20919 * cstand.adb (Create_Standard): Change the way how the declaration of
20920 the Duration type is created (making it the same way as it is for all
20921 the other standard types).
20923 2003-12-17 Robert Dewar <dewar@gnat.com>
20925 * s-crtl.ads: Fix header format
20926 Change Pure to Preelaborate
20928 2003-12-17 Ed Schonberg <schonberg@gnat.com>
20930 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
20931 the expression type only if it is declared in the current unit.
20933 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
20934 are universal and already analyzed, as can occur in constrained
20935 subcomponents that depend on discriminants, when one constraint is a
20938 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
20939 type Any_Fixed is legal as the argument of a conversion, if only one
20940 fixed-point type is in context.
20942 2003-12-17 GNAT Script <nobody@gnat.com>
20944 * Make-lang.in: Makefile automatically updated
20946 2003-12-15 Robert Dewar <dewar@gnat.com>
20948 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
20951 2003-12-15 Vincent Celier <celier@gnat.com>
20953 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
20954 (Gnatchop): Do not set failure status when reporting the number of
20957 2003-12-15 Doug Rupp <rupp@gnat.com>
20959 * s-ctrl.ads: New file.
20961 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
20963 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
20964 (GNATBIND_OBJS): Add ada/s-crtl.o.
20966 * Makefile.in [VMS]: Clean up ifeq rules.
20968 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
20969 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
20970 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
20971 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
20972 s-tasdeb.adb: Update copyright.
20973 Import System.CRTL.
20974 Make minor modifications to use System.CRTL declared functions instead
20975 of importing locally.
20977 2003-12-15 GNAT Script <nobody@gnat.com>
20979 * Make-lang.in: Makefile automatically updated
20981 2003-12-11 Ed Falis <falis@gnat.com>
20983 * 5zinit.adb: Clean up.
20985 * 5zintman.adb (Notify_Exception): replaced case statement with a call
20986 to __gnat_map_signal, imported from init.c to support
20987 signal -> exception mappings that depend on the vxWorks version.
20990 Created and exported __gnat_map_signal to support signal -> exception
20991 mapping that is dependent on the VxWorks version.
20992 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
20994 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
20996 * 5wosinte.ads: Link with -mthreads switch.
20998 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
21000 * init.c (__gnat_install_handler [NetBSD]): Set
21001 __gnat_handler_installed, as done on all other platforms.
21002 Remove duplicated code.
21004 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
21006 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
21008 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
21010 * sinfo.ads: Fix inconsistent example code in comment.
21012 2003-12-11 Robert Dewar <dewar@gnat.com>
21014 * a-tiinau.adb: Add a couple of comments
21016 * sem_ch3.adb: Minor reformatting
21019 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
21020 Minor reformatting throughout
21022 2003-12-11 Ed Schonberg <schonberg@gnat.com>
21024 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
21025 bounds of a loop, create a separate block in order to generate proper
21026 cleanup actions to prevent memory leaks.
21028 * sem_res.adb (Resolve_Call): After a call to
21029 Establish_Transient_Scope, the call may be rewritten and relocated, in
21030 which case no further processing is needed.
21032 * sem_util.adb: (Wrong_Type): Refine previous fix.
21033 Fixes ACATS regressions.
21037 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
21040 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
21042 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
21043 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
21046 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
21049 2003-12-08 Robert Dewar <dewar@gnat.com>
21051 * 7sintman.adb: Minor reformatting
21053 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
21054 standard linker options to get standard libraries linked. We now plan
21055 to provide dummy versions of these libraries to match the appropriate
21056 configurable run-time (e.g. if a library is not needed at all, provide
21057 a dummy empty library).
21059 * targparm.ads: Configurable_Run_Time mode no longer affects linker
21060 options (-L parameters and standard libraries). What we plan to do is
21061 to provide dummy libraries where the libraries are not required.
21063 * gnatbind.adb: Minor comment improvement
21065 2003-12-08 Javier Miranda <miranda@gnat.com>
21067 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
21068 aggregate in the parent. Otherwise constants with limited aggregates
21069 are not supported. Add new formal to pass the component type (Ctype).
21070 It is required to call the corresponding IP subprogram in case of
21071 default initialized components.
21072 (Gen_Assign): In case of default-initialized component, generate a
21073 call to the IP subprogram associated with the component.
21074 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
21075 of aggregate with default initialized components.
21076 (Has_Default_Init_Comps): Improve implementation to recursively check
21077 all the present expressions.
21079 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
21080 to indicate that the initialization call corresponds to a
21081 default-initialized component of an aggregate.
21082 In case of default initialized aggregate with tasks this parameter is
21083 used to generate a null string (this is just a workaround that must be
21084 improved later). In case of discriminants, this parameter is used to
21085 generate a selected component node that gives access to the discriminant
21088 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
21089 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
21090 allocated aggregates with default-initialized components.
21092 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
21093 the box notation is used in positional aggregates.
21095 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
21097 * lib.ads: Fix typo in comment
21099 2003-12-08 Vincent Celier <celier@gnat.com>
21101 * prj.adb (Project_Empty): New component Unkept_Comments
21102 (Scan): Remove procedure; moved to Prj.Err.
21104 * prj.ads (Project_Data): New Boolean component Unkept_Comments
21105 (Scan): Remove procedure; moved to Prj.Err.
21107 * prj-dect.adb: Manage comments for the different declarations.
21109 * prj-part.adb (With_Record): New component Node
21110 (Parse): New Boolean parameter Store_Comments, defaulted to False.
21111 Set the scanner to return ends of line and comments as tokens, if
21112 Store_Comments is True.
21113 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
21114 comments are associated with these nodes. Store the node IDs in the
21116 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
21118 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
21119 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
21120 current project. Call Tree.Restore afterwards. Set the various nodes
21121 for comment storage (Next_End, End_Of_Line, Previous_Line,
21124 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
21125 defaulted to False.
21127 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
21128 to False. When Truncated is True, truncate the string, never go to the
21130 (Write_End_Of_Line_Comment): New procedure
21131 (Print): Process comments for nodes N_With_Clause,
21132 N_Package_Declaration, N_String_Type_Declaration,
21133 N_Attribute_Declaration, N_Typed_Variable_Declaration,
21134 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
21135 Process nodes N_Comment.
21137 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
21138 without comments and there are some comments, set the flag
21139 Unkept_Comments to True.
21140 (Scan): If there are comments, set the flag Unkept_Comments to True and
21141 clear the comments.
21142 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
21143 (Next_End_Nodes: New table
21144 (Comment_Zones_Of): New function
21145 (Scan): New procedure; moved from Prj. Accumulate comments in the
21146 Comments table and set end of line comments, comments after, after end
21148 (Add_Comments): New procedure
21149 (Save, Restore, Seset_State): New procedures
21150 (There_Are_Unkept_Comments): New function
21151 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
21152 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
21154 (First_Comment_After, First_Comment_After_End): New functions
21155 (First_Comment_Before, First_Comment_Before_End): New functions
21156 (Next_Comment): New function
21157 (End_Of_Line_Comment, Follows_Empty_Line,
21158 Is_Followed_By_Empty_Line): New functions
21159 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
21160 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
21161 (Set_Next_Comment): New procedure
21162 (Default_Project_Node): Associate comment before if the node can store
21165 * scans.ads (Token_Type): New enumeration value Tok_Comment
21166 (Comment_Id): New global variable
21168 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
21169 defaulted to False.
21170 (Scan): Store position of start of comment. If comments are tokens, set
21171 Comment_Id and set Token to Tok_Comment when scanning a comment.
21172 (Set_Comment_As_Token): New procedure
21174 * sinput-p.adb: Update Copyright notice
21175 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
21176 that no longer exists.
21178 2003-12-08 Javier Miranda <miranda@gnat.com>
21180 * sem_aggr.adb: Add dependence on Exp_Tss package
21181 Correct typo in comment
21182 (Resolve_Aggregate): In case of array aggregates set the estimated
21183 type of the aggregate before calling resolve. This is needed to know
21184 the name of the corresponding IP in case of limited array aggregates.
21185 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
21186 in case of default initialized array components.
21188 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
21189 types. Required to give support to limited aggregates in generic
21192 2003-12-08 Ed Schonberg <schonberg@gnat.com>
21194 * sem_ch3.adb (Check_Initialization): For legality purposes, an
21195 inlined body functions like an instantiation.
21196 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
21197 until bounds are analyzed, to diagnose premature use of type.
21199 * sem_util.adb (Wrong_Type): Improve error message when the type of
21200 the expression is used prematurely.
21202 2003-12-08 GNAT Script <nobody@gnat.com>
21204 * Make-lang.in: Makefile automatically updated
21206 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
21208 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
21209 they are automatically generated by Make-lang.in and cause nothing but
21210 maintenance troubles.
21212 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
21214 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
21215 version of this unit).
21217 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
21219 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
21220 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
21221 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
21222 the body of System.Interrupt_Management common to several targets.
21223 Update copyright notice when appropriate.
21225 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
21228 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
21229 to ensure that the kernel fills in the interrupted context structure
21230 before calling a signal handler, which is necessary to be able to
21231 unwind past it. Update the copyright notice.
21233 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
21235 * a-elchha.ads: New file.
21237 * a-elchha.adb: New default last chance handler. Contents taken from
21238 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
21240 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
21241 is moved to a-elchha.adb to provide a target-independent default last
21244 * Makefile.rtl: Add a-elchha.o
21246 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
21248 2003-12-05 Ed Schonberg <schonberg@gnat.com>
21250 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
21251 declared in an instance, do not inline the call if the instance is not
21252 frozen yet, to prevent order of elaboration problems.
21254 * sem_prag.adb: Add comments for previous fix.
21256 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
21258 * g-table.adb: Use the right variable in Set_Item.
21259 Update copyright notice.
21261 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
21263 * Makefile.in: Remove unused rules.
21265 2003-12-05 Vincent Celier <celier@gnat.com>
21267 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
21268 -nostdlib. Not needed here after all.
21270 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
21274 * adaint.h, adaint.c, g-os_lib.ads:
21275 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
21276 on some platforms (including FreeBSD), it is a 64 bit value.
21277 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
21279 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
21281 * gnatvsn.ads (Library_Version): Now contain only the relevant
21283 (Verbose_Library_Version): New constant.
21285 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
21286 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
21287 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
21289 * gnatlbr.adb: Clean up: replace Library_Version by
21290 Verbose_Library_Version.
21292 * make.adb, lib-writ.adb, exp_attr.adb:
21293 Clean up: replace Library_Version by Verbose_Library_Version.
21295 * 5lintman.adb: Removed.
21298 Update and simplify computation of LIBRARY_VERSION.
21299 Fix computation of GSMATCH_VERSION.
21300 5lintman.adb is no longer used: replaced by 7sintman.adb.
21302 2003-12-03 Robert Dewar <dewar@gnat.com>
21305 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
21306 name. Modified to consider small non-bit-packed arrays as troublesome
21307 and in need of component-by-component assigment expansion.
21309 2003-12-03 Vincent Celier <celier@gnat.com>
21311 * lang-specs.h: Process nostdlib as nostdinc
21313 * back_end.adb: Update Copyright notice
21314 (Scan_Compiler_Arguments): Process -nostdlib directly.
21316 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
21319 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
21320 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
21321 included in HIE_NONE_TARGET_PAIRS.
21323 2003-12-03 Ed Schonberg <schonberg@gnat.com>
21326 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
21327 is legal in an instance, because legality is cheched in the template.
21330 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
21331 appplied to an unchecked conversion of a formal parameter.
21334 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
21337 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
21339 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
21340 routines. The second one is new functionality to deal with backtracing
21341 through signal handlers.
21342 (unwind): Split into the two separate subroutines above.
21343 Update the documentation, and deal properly with sizeof (REG) different
21344 from sizeof (void*).
21346 2003-12-01 Nicolas Setton <setton@act-europe.fr>
21348 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
21349 so that the debugger can reliably access the value of the parameter,
21350 and therefore is able to display the exception name when an exception
21351 breakpoint is reached.
21353 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
21355 * fmap.adb: Fix typo in warning message.
21357 * g-socket.ads, g-socket.adb: Make Free a visible instance of
21358 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
21360 2003-12-01 Vincent Celier <celier@gnat.com>
21362 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
21364 (Build_Library): Get the switches only if Default_Switches is declared
21367 2003-12-01 Ed Schonberg <schonberg@gnat.com>
21369 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
21370 actuals that are indexed components, reanalyze actual to ensure that
21371 packed array references are properly expanded.
21373 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
21374 attempted assignment to a discriminant.
21376 2003-12-01 Robert Dewar <dewar@gnat.com>
21378 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
21381 * switch-c.adb: Minor reformatting of comments
21383 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
21385 * Makefile.in: Clean ups.
21387 2003-12-01 GNAT Script <nobody@gnat.com>
21389 * Make-lang.in: Makefile automatically updated
21391 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
21393 * 5wsystem.ads: Disable zero cost exception, not ready yet.
21395 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
21397 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
21398 to force serialization.
21400 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
21402 * g-socket.ads, g-socket.adb:
21403 Clarify documentation of function Stream. Introduce a Free procedure
21404 to release the returned Stream once it becomes unused.
21406 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
21408 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
21410 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
21411 since NT 4 cannot handle timeout values that are too large,
21412 e.g. DWORD'Last - 1.
21414 2003-11-26 Ed Schonberg <schonberg@gnat.com>
21417 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
21418 in procedure calls and whose expansion must be deferred.
21420 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
21424 (Build_Derived_Array_Type): Create operator for unconstrained type
21425 if ancestor is unconstrained.
21427 2003-11-26 Vincent Celier <celier@gnat.com>
21429 * make.adb (Project_Object_Directory): New global variable
21430 (Change_To_Object_Directory): New procedure
21431 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
21432 of Change_Dir directly. Do not change working directory to object
21433 directory of main project after each compilation.
21434 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
21436 Change to object directory of main project before binding step.
21437 (Initialize): Initialize Project_Object_Directory to No_Project
21440 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
21441 binding a Stand-Alone Library.
21443 * output.adb: Update Copyright notice
21444 (Write_Char): Output buffer when full
21446 2003-11-26 Robert Dewar <dewar@gnat.com>
21448 * sem_ch13.adb: (Check_Size): Reset size if size is too small
21451 (Check_Size): Fix documentation to include bit-packed array case
21453 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
21455 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
21457 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
21459 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
21462 * utils.c (init_gigi_decls): Change name of built-in setjmp to
21463 __builtin_setjmp, since this is apparently needed by recent
21466 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
21468 * adadecode.c: Only include ctype.h if not IN_GCC.
21469 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
21471 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
21474 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
21475 signals and interrupts.
21477 * 5zintman.ads: New File.
21479 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
21480 add exception signals to the set of unmasked signals.
21483 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
21484 between signals and interrupts.
21485 Add to Unblocked_Signal_Mask the set of signals that are in
21489 Adding a check to see whether the Interrupt_ID we want to unmask is in
21490 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
21491 reason is that the index type of the Keep_Unmasked array is not always
21492 Interrupt_ID; it may be a subtype of Interrupt_ID.
21494 2003-11-24 Gary Dismukes <dismukes@gnat.com>
21497 (Remove_Side_Effects): Condition constantness of object created for a
21498 an unchecked type conversion on the constantness of the expression
21499 to ensure the correct value for 'Constrained when passing components
21500 of view-converted class-wide objects.
21502 2003-11-24 Robert Dewar <dewar@gnat.com>
21504 * par-load.adb (Load): Improve handling of misspelled and missing units
21505 Removes several cases of compilation abandoned messages
21507 * lib.adb: (Remove_Unit): New procedure
21509 * lib.ads: (Remove_Unit): New procedure
21511 * lib-load.adb: Minor reformatting
21513 2003-11-24 Vincent Celier <celier@gnat.com>
21516 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
21517 (Marking_Label): Label to mark processed source files. Incremented for
21519 (Gnatmake): Increase Marking_Labet for each executable
21520 (Is_Marked): Compare against marking label
21521 (Mark): Mark with marking label
21523 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
21526 Move the declaration of the TSD for System.Threads to System.Soft_Links.
21529 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
21530 (rts-cert): build a single relocatable object for the run-time lib.
21533 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
21536 Use gnatls rather than gcc to obtain the location of GNAT RTL for
21539 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
21541 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
21542 can not use it as before (that is, as a variable) when dumping it into
21543 the tree file. Add a local variable to store the result of this
21544 function and to be used as the string to be written into the tree.
21546 * scn.adb (Initialize_Scanner): Add comments explaining the recent
21549 * sinput.adb (Source_First, Source_Last): In case of
21550 Internal_Source_File, replace returning attributes of
21551 Internal_Source_Ptr (which is wrong) with returning attributes of
21554 2003-11-24 Ed Schonberg <schonberg@gnat.com>
21557 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
21558 used for implicit concatenation operators.
21562 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
21563 task bodies that are in the scope of a Suppress pragma.
21564 (Check_A Call): Use the flag to prevent spurious elaboration checks.
21566 * sinfo.ads, sinfo.adb:
21567 New flag No_Elaboration_Check on function/procedure calls, to properly
21568 suppress checks on calls in task bodies that are within a local suppress
21572 (Expand_Concatenate_Other): Use the proper integer type for the
21573 expression for the upper bound, to avoid universal_integer computations
21576 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
21578 * .cvsignore: Delete.
21580 2003-11-21 Andreas Schwab <schwab@suse.de>
21582 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
21584 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
21586 * 5wsystem.ads: Enable zero cost exception.
21588 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
21590 * 5ztiitho.adb: Remove an unreferenced variable.
21592 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
21594 * adaint.c: For FreeBSD, use mkstemp.
21596 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
21598 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
21600 2003-11-21 Robert Dewar <dewar@gnat.com>
21602 * bld.adb: Remove useless USE of gnatvsn
21604 * gnatchop.adb: Minor reformatting
21605 Clean up version handling to be more consistent
21607 * gnatxref.adb: Minor reformatting
21609 * gprcmd.adb: Minor reformatting
21610 Fix output of copyright to be more consistent with other tools
21612 2003-11-21 Vincent Celier <celier@gnat.com>
21614 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
21616 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
21618 * atree.adb (Initialize): Add initializations for global variables
21619 used in New_Copy_Tree.
21621 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
21622 Internal_Source_File as the actual).
21623 Put the set of statements creating Any_Character before the set of
21624 statements creating Any_Array to have Any_Character fully initialized
21625 when it is used in creating Any_Array.
21627 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
21628 not call Scan in case if the actual is Internal_Source_File
21629 Add 2003 to copyright note.
21631 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
21632 processing Internal_Source_File.
21634 * types.ads: Add the constant Internal_Source_File representing the
21635 source buffer for artificial source-code-like strings created within
21636 the compiler (the definition of Source_File_Index is changed).
21638 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
21640 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
21641 56system.ads: New file, FreeBSD version.
21643 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
21645 * Make-lang.in (ada.extraclean): Delete.
21647 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
21649 * gnatmem.adb: Clean up verbose output.
21651 * gprcmd.adb: Change copyright to FSF.
21653 2003-11-19 Vincent Celier <celier@gnat.com>
21655 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
21656 and Version (ignored).
21658 * symbols.ads: (Policy): New type
21659 (Initialize): New parameter Reference, Symbol_Policy and
21661 Remove parameter Force.
21662 Minor reformatting.
21664 * snames.ads, snames.adbadb: New standard names
21665 Library_Reference_Symbol_File and Library_Symbol_Policy
21668 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
21672 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
21674 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
21676 * prj.adb: (Project_Empty): New component Symbol_Data
21678 * prj.ads: (Policy, Symbol_Record): New types
21679 (Project_Data): New component Symbol_Data
21682 New attributes Library_Symbol_File, Library_Symbol_Policy and
21683 Library_Reference_Symbol_File.
21686 (Ada_Check): When project is a Stand-Alone library project, process
21687 attribute Library_Symbol_File, Library_Symbol_Policy and
21688 Library_Reference_Symbol_File.
21690 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
21691 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
21692 5sml-tgt.adb (Build_Dynamic_Library): New parameter
21693 Symbol_Data (ignored).
21695 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
21696 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
21697 functions Option_File_Name and Version_String. Set new options of
21698 gnatsym related to symbol file, symbol policy and reference symbol
21702 Extensive modifications to take into account the reference symbol file,
21703 the symbol policy, the library version and to put in the symbol file the
21704 minor and major IDs.
21706 * bld.adb (Process_Declarative_Items): Put second argument of
21707 gprcmd to_absolute between single quotes, to avoid problems with
21710 * bld-io.adb: Update Copyright notice.
21711 (Flush): Remove last character of a line, if it is a back slash, to
21712 avoid make problems.
21715 Implement new scheme with reference symbol file and symbol policy.
21717 * g-os_lib.ads: (Is_Directory): Clarify comment
21719 2003-11-19 Robert Dewar <dewar@gnat.com>
21721 * atree.adb: Move New_Copy_Tree global variables to head of package
21723 * errout.adb: Minor reformatting
21725 2003-11-19 Javier Miranda <miranda@gnat.com>
21727 * sem_ch4.adb: (Diagnose_Call): Improve error message.
21728 Add reference to Ada0Y (AI-50217)
21730 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
21731 sem_util.adb: Add reference to AI-50217
21733 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
21735 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
21737 * sem_aggr.adb: Complete documentation of AI-287 changes
21739 * par-ch4.adb: Document previous changes.
21741 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
21742 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
21745 * exp_aggr.adb: Add references to AI-287 in previous changes
21747 2003-11-19 Ed Schonberg <schonberg@gnat.com>
21750 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
21751 in the rewriting is the result of an inlined call.
21753 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
21754 parameter is a type conversion, use original node to construct the
21755 post-call assignment, because expression may have been rewritten, e.g.
21756 if it is a packed array.
21759 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
21760 body, just as it is in an instance.
21761 Categorization routines
21763 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
21764 Instantiate_Object): Set proper sloc reference for message on missing
21767 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
21769 * Makefile.in: Add FreeBSD libgnat pairs.
21771 * usage.adb: Fix typo in usage message.
21773 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
21775 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
21776 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
21777 pragma Thread_Body.
21778 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
21780 * s-thread.adb: This file is now a dummy implementation of
21783 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
21785 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
21787 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
21789 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
21790 instanciation references in the parent type description.
21792 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21794 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
21796 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
21797 TYPE_PRECISION directly from esize.
21799 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
21802 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
21804 * init.c: Initialization routines for FreeBSD
21806 * link.c: Link info for FreeBSD
21808 * sysdep.c: Add the case of FreeBSD
21810 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
21812 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
21813 already called in System.Threads.
21815 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
21816 environment task, as it has been moved to System.Threads.Initialization.
21818 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
21820 * adaint.c (__gnatlib_install_locks): Only reference
21821 __gnat_install_locks on VMS, since other platforms can avoid using
21822 --enable-threads=gnat
21824 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21826 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
21828 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
21829 TYPE_PACKED_ARRAY_TYPE_P.
21830 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
21832 Part of PR ada/12806
21833 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
21834 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
21836 2003-11-17 Vincent Celier <celier@gnat.com>
21838 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
21840 Do not set exit status to Failure when Warning is True.
21841 (Gnatchop): Make errors "no compilation units found" and
21842 "no source files written" warnings only.
21844 * make.adb (Gnatmake): When using a project file, set
21845 Look_In_Primary_Dir to False.
21846 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
21847 and Local_Configuration_Pragmas in the project where they are declared
21848 not an extending project which might have inherited them.
21850 * osint.adb (Locate_File): If Name is already an absolute path, do not
21851 look for a directory.
21853 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
21854 -gnats (Check_Syntax) is used, issue only a warning, not an error.
21856 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
21857 in objects of type Variable_Value.
21859 * prj.ads: (Variable_Value): New component Project
21861 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
21862 is in a project extended by Project.
21864 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
21865 Project of Variable_Values to this new parameter value.
21866 (Expression): Set component Project of Variable_Values.
21867 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
21868 Set the component Project in array elements.
21870 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
21872 * errout.adb: (Initialize): Add initialization for error nodes.
21874 * sem_ch12.adb (Initialize): Add missing initializations for
21875 Exchanged_Views and Hidden_Entities.
21877 2003-11-17 Ed Schonberg <schonberg@gnat.com>
21879 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
21880 already instantiated tree for use in subsequent inlining.
21881 (Analyze_Associations, Instantiate_Formal_Subprogram,
21882 Instantiate_Object): improve error message for mismatch in
21885 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
21886 instantiations of subprograms declared in instances.
21888 2003-11-17 Javier Miranda <miranda@gnat.com>
21890 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
21891 executed only under the Extensions_Allowed flag.
21893 2003-11-17 Robert Dewar <dewar@gnat.com>
21895 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
21897 (Address_Image): Fix bug of returning 0x instead of 0x0
21898 Minor reformatting (function specs).
21900 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
21901 (missed case of 33-63)
21903 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
21905 * s-thread.adb: Add comments for pragma Restriction
21907 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
21908 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
21910 2003-11-17 Ed Falis <falis@gnat.com>
21912 * s-thread.adb: Added No_Tasking restriction for this implementation.
21914 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
21916 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
21917 instanciation references in the parent type description.
21919 2003-11-17 GNAT Script <nobody@gnat.com>
21921 * Make-lang.in: Makefile automatically updated
21923 2003-11-16 Jason Merrill <jason@redhat.com>
21925 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
21926 and TAGS files that include them for each front end.
21928 2003-11-14 Andreas Jaeger <aj@suse.de>
21930 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
21931 is the canonical version.
21932 * misc.c (gnat_handle_option): Likewise.
21934 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
21936 * 5nsystem.ads: New file for x86_64-linux-gnu.
21938 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
21940 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
21942 * comperr.adb: Fix logic in previous change.
21944 2003-11-13 Vincent Celier <celier@gnat.com>
21946 * 5bml-tgt.adb (Build_Dynamic_Library): Use
21947 Osint.Include_Dir_Default_Prefix instead of
21948 Sdefault.Include_Dir_Default_Name.
21950 * gnatlbr.adb: Update Copyright notice
21951 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
21952 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
21953 instead of Sdefault.Object_Dir_Default_Name
21956 (Process_Binder_File): Never suppress the option following -Xlinker
21959 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
21960 Sdefault.Object_Dir_Default_Name.
21962 * osint.ads, osint.adb:
21963 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
21964 Minor reformatting.
21966 * vms_conv.ads: Minor reformating
21967 Remove GNAT STANDARD and GNAT PSTA
21970 Allow GNAT MAKE to have several files on the command line.
21971 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
21972 Sdefault.Object_Dir_Default_Name.
21974 Remove data for GNAT STANDARD
21977 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
21978 Remove data for GNAT STANDARD
21979 Remove options and documentation for -gnatwb/-gnatwB: these warning
21980 options no longer exist.
21982 2003-11-13 Ed Falis <falis@gnat.com>
21984 * 5zthrini.adb: (Init_RTS): Made visible
21987 (Register): Removed unnecessary call to taskVarGet that checked whether
21988 an ATSD was already set as a task var for the argument thread.
21991 Updated comment to reflect that this is a VxWorks version
21992 Added context clause for System.Threads.Initialization
21993 Added call to System.Threads.Initialization.Init_RTS
21995 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
21998 (Init_RTS): New procedure, for the initialization of the run-time lib.
22001 Remove dependancy on System.Init, so that this file can be used in the
22002 AE653 sequential run-time lib.
22004 2003-11-13 Robert Dewar <dewar@gnat.com>
22006 * bindgen.adb: Minor reformatting
22008 2003-11-13 Ed Schonberg <schonberg@gnat.com>
22011 (Apply_Discriminant_Check): Do no apply check if target type is derived
22012 from source type with no applicable constraint.
22015 (Ensure_System_Dependency): Do not apply the style checks that may have
22016 been specified for the main unit.
22019 (Find_Selected_Component): Further improvement in error message, with
22023 (Resolve): Handle properly the case of an illegal overloaded protected
22026 2003-11-13 Javier Miranda <miranda@gnat.com>
22029 (Has_Default_Init_Comps): New function to check the presence of
22030 default initialization in an aggregate.
22031 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
22032 extension aggregate of a limited record. In addition, a new formal
22033 was added to do not initialize the record controller (if any) during
22034 this recursive expansion of ancestors.
22035 (Init_Controller): Add support for limited record components.
22036 (Expand_Record_Aggregate): In case of default initialized components
22037 convert the aggregate into a set of assignments.
22039 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
22040 describing the new syntax.
22041 Nothing else needed to be done because this subprogram delegates part of
22042 its work to P_Precord_Or_Array_Component_Association.
22043 (P_Record_Or_Array_Component_Association): Give support to the new
22044 syntax for default initialization of components.
22047 (Resolve_Aggregate): Relax the strictness of the frontend in case of
22048 limited aggregates.
22049 (Resolve_Record_Aggregate): Give support to default initialized
22051 (Get_Value): In case of default initialized components, duplicate
22052 the corresponding default expression (from the record type
22053 declaration). In case of default initialization in the *others*
22054 choice, do not check that all components have the same type.
22055 (Resolve_Extension_Aggregate): Give support to limited extension
22059 (Check_Initialization): Relax the strictness of the front-end in case
22060 of aggregate and extension aggregates. This test is now done in
22061 Get_Value in a per-component manner.
22063 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
22064 expression corresponds to a limited aggregate. This test is now done
22067 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
22070 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
22071 present in an N_Component_Association node
22073 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
22075 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
22076 type-conformant entry only if they are homographs.
22078 2003-11-13 GNAT Script <nobody@gnat.com>
22080 * Make-lang.in: Makefile automatically updated
22082 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22084 * adadecode.c: Use <> form of include for ctype.h.
22085 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
22087 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22089 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
22090 Works around PR middle-end/6552.
22092 2003-11-10 Ed Falis <falis@gnat.com>
22094 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
22096 * 5zinit.adb: (Install_Handler): Moved back to spec
22097 (Install_Signal_Handlers): Deleted
22099 * 5zthrini.adb: Added context clause for System.Storage_Elements
22100 (Register): Only handles creation of taskVar; initialization moved to
22102 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
22103 Added declaration of environment task secondary stack and
22106 * s-thread.adb: Implement bodies for thread body processing
22109 Added comment identifying supported targets for pragma Thread_Body.
22111 2003-11-10 Pascal Obry <obry@gnat.com>
22113 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
22117 (Open): Properly check for string length before copying into the buffer.
22118 Raises Name_Error if buffer is too small. Note that this was a potential
22121 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
22123 * bindgen.adb, comperr.adb: Code clean ups.
22124 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
22126 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
22128 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
22130 2003-11-10 Vincent Celier <celier@gnat.com>
22133 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
22136 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
22138 * prj.adb: (Project_Empty): Add new boolean component Virtual
22140 * prj.ads: (Virtual_Prefix): New constant string
22141 (Project_Data): New boolean component Virtual
22143 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
22144 a library project is extended by a virtual extending project.
22147 Modifications throughout to implement extending-all project, including:
22148 (Virtual_Hash, Processed_Hash): New hash tables
22149 (Create_Virtual_Extending_Project): New procedure
22150 (Look_For_Virtual_Projects_For): New procedure
22153 (Process): After checking the projects, if main project is an
22154 extending-all project, set the object directory of all virtual extending
22155 project to the object directory of the main project.
22156 Adjust error message when a virtual extending project has the same
22157 object directory as an project being extended.
22158 (Recursive_Process): If name starts with the virtual prefix, set Virtual
22159 to True in the project data.
22162 (Default_Project_Node): Add new boolean component Extending_All
22163 (Is_Extending_All): New function
22164 (Set_Is_Extending_All): New procedure
22166 * prj-tree.ads: (Is_Extending_All): New function
22167 (Set_Is_Extending_All): New procedure
22168 (Project_Node_Record): New boolean component Extending_All
22170 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
22173 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
22175 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
22176 "gprcmd prefix" to define it.
22178 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
22180 * einfo.ads: Fix a typo and remove an extraneous word in comments.
22183 (Create_Dummy_Package_Unit): Set the scope of the entity for the
22184 created dummy package to Standard_Standard, not to itself, to
22185 defend other parts of the front-end against encoutering a cycle in
22189 (Analyze_With_Clause): When setting the entities for the successive
22190 N_Expanded_Names that constitute the name of a child unit, do not
22191 attempt to go further than Standard_Standard in the chain of scopes.
22192 This case arises from the placeholder units created by
22193 Create_Dummy_Package_Unit in the case of a with_clause for a
22194 nonexistent child unit.
22196 2003-11-10 Ed Schonberg <schonberg@gnat.com>
22199 (Expand_Thread_Body): Place subprogram on scope stack, so that new
22200 declarations are given the proper scope.
22203 (Check_Expr_Constants): Reject an expression that contains a constant
22204 created during expansion, and that appears after the object to which
22205 the address clause applies.
22207 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
22208 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
22209 that uses 'Range of a function call with controlled components, so
22210 that the function result can be finalized before starting the loop.
22213 (Find_Selected_Component): Improve error message when prefix is
22214 an implicit dereference of an incomplete type.
22216 2003-11-10 Robert Dewar <dewar@gnat.com>
22218 * opt.ads: New Print_Standard flag for -gnatS switch
22220 * sem_ch13.adb: Remove some additional checks for unaligned arrays
22222 * cstand.adb (Create_Standard): Print out package standard if -gnatS
22225 * debug.adb: Update doc for -gnatds to discuss relationship with new
22228 * sinfo.adb: Add new field Entity_Or_Associated_Node
22230 * sinfo.ads: Add new field Entity_Or_Associated_Node
22231 Update documentation for Associated_Node and Entity fields to clarify
22232 relationship and usage.
22235 (Write_Id): Properly process Associated_Node field in generic template
22238 Recognize new -gnatS switch for printing package Standard
22239 This replaces gnatpsta
22242 Add line for new -gnatS switch for printing package Standard
22243 This replaces gnatpsta
22245 2003-11-10 Andreas Jaeger <aj@suse.de>
22247 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
22250 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
22252 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
22255 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
22257 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
22260 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
22262 * sysdep.c: Add handling of cygwin.
22264 2003-11-10 GNAT Script <nobody@gnat.com>
22266 * Make-lang.in: Makefile automatically updated
22268 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
22271 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
22272 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
22273 Replace GNAT_ROOT by GCC_ROOT.
22275 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
22277 2003-11-06 Zack Weinberg <zack@codesourcery.com>
22279 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
22280 and update for changed meaning of GET_MODE_BITSIZE.
22282 2003-11-04 Doug Rupp <rupp@gnat.com>
22284 * sysdep.c: Problem discovered during IA64 VMS port.
22285 [VMS] #include <unixio.h> to get proper prototypes.
22288 Issues discovered/problems fixed during IA64 VMS port.
22289 [VMS] #define _POSIX_EXIT for proper semantics.
22290 [VMS] #include <unixio.h> for proper prototypes.
22291 [VMS] (fork): #define IA64 version.
22292 (__gnat_os_exit): Remove unnecessary VMS specific code.
22294 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22296 Part of PR ada/12806
22298 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
22302 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
22305 * targtyps.c, decl.c, misc.c,
22306 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
22307 routines to work around change in FP sizing semantics in GCC.
22310 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
22312 * gigi.h: (enumerate_modes): New function.
22314 * Make-lang.in: (ada/misc.o): Add real.h.
22316 * misc.c: (enumerate_modes): New function.
22318 2003-11-04 Robert Dewar <dewar@gnat.com>
22320 * 3vtrasym.adb: Minor reformatting
22321 Use terminology encoded/decoded name, rather than C++ specific notion
22322 of mangling (this is the terminology used throughout GNAT).
22324 * einfo.h: Regenerated
22326 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
22329 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
22331 * par-prag.adb: Add dummy entry for Thread_Body pragma
22334 Add entries for System.Threads entities for thread body processing
22337 (Analyze_Pragma, Access attributes): Check these are not applied to a
22338 thread body, since this is not permitted
22340 * sem_prag.adb: Add processing for Thread_Body pragma.
22344 (Resolve_Call): Check for incorrect attempt to call a thread body
22345 procedure with a direct call.
22347 * snames.ads, snames.adb: Add entry for Thread_Body pragma
22348 Add names associated with thread body expansion
22350 * snames.h: Add entry for Thread_Body pragma
22352 * s-thread.adb: Add entries for thread body processing
22353 These are dummy bodies so far
22355 * s-thread.ads: Add documentation on thread body handling.
22356 Add entries for thread body processing.
22358 2003-11-04 Javier Miranda <miranda@gnat.com>
22361 (Build_Limited_Views): Return after posting an error in case of limited
22362 with_clause on subprograms, generics, instances or generic renamings
22363 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
22364 on subprograms, generics, instances or generic renamings
22366 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
22368 * raise.c (setup_to_install): Correct mistake in last revision; two
22369 arguments out of order.
22371 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
22372 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
22373 notice, missed in previous change.
22374 Remove trailing blanks and other style errors introduced in previous
22377 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
22379 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
22380 rid of the wrapper for a LJM type, ensuring we don't do that if the
22381 field is addressable. This avoids potential low level type view
22382 mismatches later on, for instance in a by-reference argument passing
22385 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22387 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
22388 aligned at byte boundary.
22390 2003-11-04 Joel Brobecker <brobecker@gnat.com>
22392 * decl.c (components_to_record): Do not delete the empty variants from
22393 the end of the union type.
22395 2003-11-04 Ed Schonberg <schonberg@gnat.com>
22397 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
22398 operation for a derived type, an explicit declaration may use a local
22399 subtype of Boolean.
22401 2003-11-04 Vincent Celier <celier@gnat.com>
22403 * make.adb (Gnatmake): Allow main sources on the command line with a
22404 library project when it is only for compilation (no binding or
22407 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22409 * Makefile.in: Remove many duplicate variables.
22411 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
22413 * Make-lang.in (dvi): Move targets to $(docobjdir).
22414 (gnat_ug_vms.dvi): Simplify rule and adjust target.
22415 (gnat_ug_wnt.dvi): Likewise.
22416 (gnat_ug_unx.dvi): Likewise.
22417 (gnat_ug_vxw.dvi): Likewise.
22418 (gnat_rm.dvi): Likewise.
22419 (gnat-style.dvi): Likewise.
22421 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
22423 * gigi.h: Missed commit from update for C90.
22425 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
22427 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
22429 2003-10-31 Andreas Schwab <schwab@suse.de>
22431 * raise.c (get_action_description_for): Fix typo in last change.
22433 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
22436 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
22437 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
22439 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
22441 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
22442 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
22443 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
22444 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
22445 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
22447 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
22450 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
22451 numbers when symbol name is too long.
22453 2003-10-30 Ed Falis <falis@gnat.com>
22455 * g-signal.ads, g-signal.adb: New files
22457 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
22459 * Makefile.rtl: Introduce GNAT.Signals
22461 2003-10-30 Robert Dewar <dewar@gnat.com>
22463 * freeze.adb: Minor reformatting
22465 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
22467 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
22468 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
22469 New handling of Id_Check parameter to improve recognition of keywords
22470 used as identifiers.
22471 Update copyright notice to include 2003
22473 2003-10-29 Robert Dewar <dewar@gnat.com>
22475 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
22476 sem_ch10.adb: Minor reformatting
22478 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
22479 (Expand_Assign_Record): Test right hand side for bit unaligned as well
22481 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
22483 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
22484 Support for TBK$SYMBOLIZE-based symbolic traceback.
22486 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
22489 Revert previous change, that did not work well when pragma No_Run_Time
22490 was used in conjunction with a run-time other than ZFP.
22492 2003-10-29 Vincent Celier <celier@gnat.com>
22495 (Gnatmake): When there are no Ada mains in attribute Main, disable the
22496 bind and link steps only is switch -z is not used.
22498 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
22500 * Makefile.generic: Remove duplicated setting of CC.
22502 * Makefile.prolog: Set CC to gcc by default, to override make's
22505 * einfo.h: Regenerated.
22507 2003-10-29 Ed Schonberg <schonberg@gnat.com>
22509 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
22510 current body, after compiling subunit.
22512 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
22513 when in deleted code, because gigi needs properly ordered freeze
22514 actions to annotate types.
22516 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
22517 prevent the premature freezing of record type that contains
22518 subcomponents with a private type that does not yet have a completion.
22520 2003-10-29 Javier Miranda <miranda@gnat.com>
22523 (Analyze_Package_Instantiation): Check that instances can not be used in
22524 limited with_clauses.
22527 (Analyze_Package_Renaming): Check that limited withed packages cannot
22528 be renamed. Improve text on error messages related to limited
22531 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
22533 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
22534 Update copyright notice.
22536 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
22537 (Install_Limited_Context_Clauses): New subprogram that isolates all the
22538 checks required for limited context_clauses and installs the limited
22540 (Install_Limited_Withed_Unit): Complete its documentation.
22541 (Analyze_Context): Check that limited with_clauses are only allowed in
22543 (Install_Context): Call Install_Limited_Context_Clauses after the
22544 parents have been installed.
22545 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
22546 package as 'From_With_Type'; this mark indicates that the limited view
22547 is installed. Used to check bad usages of limited with_clauses.
22548 (Build_Limited_Views): Do not add shadow entities to the scope's list
22549 of entities. Do not add real entities to the Non_Limited_Views chain.
22550 Improve error notification.
22551 (Remove_Context_Clauses): Remove context clauses in two phases:
22552 limited views first and regular views later (to maintain the
22554 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
22555 its visible entities.
22557 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
22559 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
22560 with any type that Is_Fixed_Point_Type.
22562 * sinfo.ads: Fix documentation for Associated_Node attribute.
22564 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
22566 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
22567 both '-gnatc' and '-gnatt' are specified.
22569 * atree.adb (Initialize): Add initialization for Node_Count (set to
22572 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22574 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
22575 do not consider as Pure.
22577 Part of implementation of function-at-a-time:
22579 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
22580 (tree_transform): Add new argument to build_component_ref.
22581 (tree_transform, case N_Assignment_Statement): Make and return an
22583 (tree_transform): If result IS_STMT, set flags and return it.
22584 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
22586 * utils2.c (build_simple_component_ref, build_component_ref): Add new
22588 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
22589 (build_allocator): Likewise.
22591 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
22592 Add new arg to build_component_ref.
22593 (maybe_unconstrained_array, unchecked_convert): Likewise.
22595 * ada-tree.def (EXPR_STMT): New code.
22597 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
22599 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
22600 build_component_ref calls.
22602 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
22604 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
22605 (build_component_ref): Add new argument, NO_FOLD_P.
22607 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
22609 * Makefile.generic: Add missing substitution on object_deps handling.
22612 * Make-lang.in (check-ada): Enable ACATS test suite.
22614 2003-10-27 Robert Dewar <dewar@gnat.com>
22617 (Freeze_Array_Type): We do not need an initialization routine for types
22618 derived from String or Wide_String. They should be treated the same
22619 as String and Wide_String themselves. This caused problems with the
22620 use of Initialize_Scalars.
22623 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
22624 composites. This allows use of component clauses that are not byte
22628 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
22629 is an attempt to pack an array of atomic objects.
22631 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
22633 2003-10-27 Pascal Obry <obry@gnat.com>
22636 (Basename): Check for drive letters in a pathname only on DOS based OS.
22638 2003-10-27 Vincent Celier <celier@gnat.com>
22641 (Gnatmake): When unable to change dir to the object dir, display the
22642 content of the parent dir of the obj dir, to try to understand why this
22645 2003-10-27 GNAT Script <nobody@gnat.com>
22647 * Make-lang.in: Makefile automatically updated
22649 2003-10-27 Ed Schonberg <schonberg@gnat.com>
22652 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
22653 should not be done in Save/Restore_Scope_Stack, because it is performed
22657 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
22658 whether use clauses should be removed/restored.
22661 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
22662 whether use clauses should be removed/restored.
22664 2003-10-26 Andreas Jaeger <aj@suse.de>
22666 * Makefile.in: Remove duplicated lines.
22668 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
22670 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
22671 minimize the differences with ACT tree.
22673 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
22674 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
22675 Gnatvsn.Gnat_Static_Version_String to reduce differences between
22678 2003-10-24 Pascal Obry <obry@gnat.com>
22680 * adadecode.c (ostrcpy): New function.
22681 (__gnat_decode): Use ostrcpy of strcpy.
22682 (has_prefix): Set first parameter a const.
22683 (has_suffix): Set first parameter a const.
22684 Update copyright notice. Fix source name in header.
22685 Removes a trailing space.
22688 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
22691 Remove the test against being in No_Run_Time_Mode before generating a
22692 call to Register_Tag. It is redundant with the test against the
22693 availability of the function Register_Tag.
22695 2003-10-24 Vincent Celier <celier@gnat.com>
22697 * g-catiio.adb: (Month_Name): Correct spelling of February
22699 * make.adb: (Mains): New package
22700 (Initialize): Call Mains.Delete
22701 (Gnatmake): Check that each main on the command line is a source of a
22702 project file and, if there are several mains, each of them is a source
22703 of the same project file.
22704 (Gnatmake): When a foreign language is specified in attribute Languages,
22705 no main is specified on the command line and attribute Mains is not
22706 empty, only build the Ada main. If there is no Ada main, just compile
22707 the Ada sources and their closure.
22708 (Gnatmake): If a main is specified on the command line with directory
22709 information, check that the source exists and, if it does, that the path
22710 is the actual path of a source of a project.
22713 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
22714 Full_Path is True, return the full path instead of the simple file name.
22715 (Project_Of): New function
22718 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
22719 defaulted to False.
22720 (Project_Of): New function
22722 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
22724 * Makefile.generic:
22725 Ensure objects of main project are always checked and rebuilt if needed.
22726 Set CC to gcc by default.
22727 Prepare new handling of link by creating a global archive (not activated
22730 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
22731 stringt.h: Update copyright notice. Remove trailing blanks.
22732 Fix source name in header.
22734 2003-10-24 Robert Dewar <dewar@gnat.com>
22736 * sem_ch12.adb: Minor reformatting
22739 Minor reformatting (including new function return style throughout)
22742 Minor reformatting (including new function return style throughout)
22744 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
22746 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
22747 stringt.h: Update copyright notice. Remove trailing blanks.
22748 Fix source name in header.
22750 2003-10-24 GNAT Script <nobody@gnat.com>
22752 * Make-lang.in: Makefile automatically updated
22754 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
22756 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
22757 stringt.h: Convert to ISO C90 declarations and definitions.
22759 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
22762 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
22763 External_Tag attribute definition clauses.
22765 2003-10-23 Ed Schonberg <schonberg@gnat.com>
22768 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
22769 child unit, generate a fully qualified name to avoid spurious errors
22770 when the context contains renamings of different child units with
22771 the same simple name.
22773 * exp_dbug.ads: Add documentation on name qualification for renamings
22776 2003-10-23 Robert Dewar <dewar@gnat.com>
22778 * g-regpat.ads, g-regpat.adb: Minor reformatting
22780 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
22782 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
22784 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
22786 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
22789 * urealp.h: (Machine): Update to proper definition.
22791 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
22793 * init.c, adaint.c: Minor reformatting.
22795 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
22797 * adaint.c (w32_epoch_offset): Define static const at file level.
22798 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
22799 rather than t_create, t_access in call to GetFileTime. Use union
22800 to convert between FILETIME and unsigned long long.
22801 (__gnat_file_time_name): Test for invalid file handle.
22802 (__gnat_set_filetime_name): Support win32 targets using
22803 w32api SetFileTime.
22805 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
22807 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
22809 * ctrl_c.c (__gnat_int_handler): Remove declaration.
22811 * decl.c (creat_concat_name): Const-ify prefix.
22813 * adaint.c: Include ctype.h if __MINGW32__.
22814 (__gnat_readlink): Mark arguments as possibly unused.
22815 (__gnat_symlink): Likewise.
22816 (__gnat_is_symbolic_link): Likewise.
22817 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
22819 (__gnat_file_time_name): Don't declare struct stat statbuf when
22821 (__gnat_is_absolute_path): Add parenthesis around condition of
22822 'if' statement to avoid warning.
22823 (__gnat_plist_init): Specify void as parameter.
22824 (plist_enter): Likewise.
22825 (plist_leave): Likewise.
22826 (remove_handle): Make static. Initialize prev.
22828 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
22830 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
22831 * cstreams.c (__gnat_full_name): Minor improvements and clean up
22832 of previous change.
22834 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
22836 * tracebak.c (MAX): Avoid redefinition warning.
22838 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
22839 Change msg to const char *.
22840 (__gnat_install_handler): Remove ss, unused.
22841 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
22843 * cstreams.c (__gnat_full_name): Declare p only when used.
22844 (__gnat_full_name) [sgi] Return buffer.
22846 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
22848 * mingw32.h: New file.
22849 * gnat_wrapper.adb: New file.
22851 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
22853 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
22854 string match a pre compiled regular expression (the corresponding
22855 version of the function working on a raw regular expression)
22856 Fix typos in various comments
22857 Update copyright notice in spec
22859 2003-10-21 Gary Dismukes <dismukes@gnat.com>
22862 (Component_Needs_Simple_Initialization): Return False when the type is a
22863 packed bit array. Revise spec comments to document this case.
22866 (Expand_Pragma_Import): Set any expression on the imported object to
22867 empty to avoid initializing imported objects (in particular this
22868 covers the case of zero-initialization of bit arrays).
22869 Update copyright notice.
22871 2003-10-21 Ed Schonberg <schonberg@gnat.com>
22874 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
22875 a subunit is missing.
22876 (Instantiate_Subprogram_Body): If body of function is missing, set type
22877 of return expression explicitly in dummy body, to prevent cascaded
22878 errors when a subunit is missing.
22882 (Access_Subprogram_Declaration): Verify that return type is valid.
22886 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
22891 (Corresponding_Discriminant): If the scope of the discriminant is a
22892 private type without discriminant, use its full view.
22895 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
22897 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
22898 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
22899 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
22900 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
22901 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
22902 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
22903 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
22904 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
22905 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
22906 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
22907 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
22908 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
22909 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
22910 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
22911 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
22912 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
22913 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
22914 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
22915 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
22916 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
22917 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
22918 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
22919 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
22920 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
22921 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
22922 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
22923 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
22924 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
22925 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
22926 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
22927 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
22928 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
22929 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
22930 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
22931 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
22932 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
22933 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
22934 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
22935 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
22936 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
22937 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
22938 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
22939 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
22940 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
22941 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
22942 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
22943 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
22944 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
22945 vms_conv.ads, vms_conv.adb, vms_data.ads,
22946 vxaddr2line.adb: Files added. Merge with ACT tree.
22948 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
22949 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
22950 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
22951 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
22952 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
22953 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
22954 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
22955 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
22956 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
22957 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
22959 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
22960 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
22961 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
22962 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
22963 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
22964 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
22965 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
22966 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
22967 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
22968 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
22969 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
22970 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
22971 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
22972 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
22973 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
22974 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
22975 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
22976 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
22977 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
22978 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
22979 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
22980 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
22981 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
22982 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
22983 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
22984 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
22985 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
22986 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
22987 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
22988 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
22989 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
22990 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
22991 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
22992 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
22993 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
22994 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
22995 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
22996 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
22997 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
22998 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
22999 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
23000 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
23001 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
23002 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
23003 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
23004 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
23005 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
23006 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
23007 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
23008 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
23009 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
23010 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
23011 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
23012 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
23013 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
23014 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
23015 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
23016 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
23017 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
23018 checks.adb, checks.ads, cio.c, comperr.adb,
23019 comperr.ads, csets.adb, cstand.adb, cstreams.c,
23020 debug_a.adb, debug_a.ads, debug.adb, decl.c,
23021 einfo.adb, einfo.ads, errout.adb, errout.ads,
23022 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
23023 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
23024 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
23025 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
23026 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
23027 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
23028 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
23029 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
23030 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
23031 fe.h, fmap.adb, fmap.ads, fname.adb,
23032 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
23033 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
23034 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
23035 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
23036 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
23037 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
23038 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
23039 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
23040 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
23041 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
23042 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
23043 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
23044 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
23045 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
23046 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
23047 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
23048 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
23049 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
23050 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
23051 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
23052 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
23053 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
23054 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
23055 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
23056 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
23057 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
23058 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
23059 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
23060 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
23061 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
23062 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
23063 layout.adb, lib.adb, lib.ads, lib-list.adb,
23064 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
23065 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
23066 link.c, live.adb, make.adb, make.ads,
23067 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
23068 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
23069 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
23070 misc.c, mkdir.c, mlib.adb, mlib.ads,
23071 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
23072 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
23073 namet.adb, namet.ads, namet.h, nlists.ads,
23074 nlists.h, nmake.adt, opt.adb, opt.ads,
23075 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
23076 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
23077 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
23078 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
23079 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
23080 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
23081 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
23082 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
23083 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
23084 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
23085 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
23086 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
23087 prj-util.adb, prj-util.ads, raise.c, raise.h,
23088 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
23089 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
23090 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
23091 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
23092 scans.ads, scn.adb, scn.ads, s-crc32.adb,
23093 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
23094 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
23095 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
23096 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
23097 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
23098 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
23099 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
23100 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
23101 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
23102 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
23103 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
23104 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
23105 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
23106 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
23107 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
23108 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
23109 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
23110 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
23111 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
23112 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
23113 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
23114 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
23115 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
23116 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
23117 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
23118 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
23119 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
23120 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
23121 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
23122 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
23123 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
23124 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
23125 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
23126 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
23127 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
23128 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
23129 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
23130 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
23131 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
23132 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
23133 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
23134 stringt.adb, stringt.ads, stringt.h, style.ads,
23135 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
23136 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
23137 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
23138 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
23139 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
23140 table.adb, table.ads, targparm.adb, targparm.ads,
23141 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
23142 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
23143 ttypes.ads, types.ads, types.h, uintp.adb,
23144 uintp.ads, uintp.h, uname.adb, urealp.adb,
23145 urealp.ads, urealp.h, usage.adb, utils2.c,
23146 utils.c, validsw.adb, validsw.ads, widechar.adb,
23147 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
23148 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
23149 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
23150 gnatvsn.ads: Merge with ACT tree.
23152 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
23154 2003-10-20 Mark Mitchell <mark@codesourcery.com>
23156 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
23157 (gnat_ug_vmx.info): Likewise.
23158 (gnat_ug_vxw.info): Likewise.
23159 (gnat_ug_wnt.info): Likewise.
23160 (gnat_rm.info): Likewise.
23161 (gnat-style.info): Likewise.
23163 * Make-lang.in (ada.install-info): Remove target.
23164 (info): New target.
23165 (install-info): Likewise.
23166 (gnat_ug_unx.info): Simplify rule.
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 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
23175 * Make-lang.in: Replace uses of $(target_alias) with
23176 $(target_noncanonical).
23177 * ada/Makefile.in: Remove unused mention of $(target_alias).
23179 2003-10-06 Mark Mitchell <mark@codesourcery.com>
23181 * Make-lang.in (ada.info): Replace with ...
23183 (ada.dvi): Replace with ...
23186 2003-09-29 Zack Weinberg <zack@codesourcery.com>
23188 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
23189 initialize dconstp5 and dconstmp5.
23191 2003-09-28 Richard Henderson <rth@redhat.com>
23193 * trans.c (tree_transform): Update call to expand_asm_operands.
23195 2003-09-21 Richard Henderson <rth@redhat.com>
23197 * trans.c, utils.c: Revert.
23199 2003-09-21 Richard Henderson <rth@redhat.com>
23201 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
23204 2003-09-04 Michael Matz <matz@suse.de>
23206 * misc.c: Include "target.h".
23207 * Make-lang.in (misc.o): Add dependency on target.h.
23209 2003-09-03 DJ Delorie <dj@redhat.com>
23211 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
23214 2003-08-30 Zack Weinberg <zack@codesourcery.com>
23216 * Makefile.in: Update substitutions to match changes to
23217 configure. Use include directives instead of @-insertions
23218 to read in host and target fragments. Add a rule to
23219 regenerate ada/Makefile.
23221 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
23223 * lang-options.h: Remove.
23224 * lang.opt: Add help text.
23226 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
23228 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
23231 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
23233 * misc.c (gnat_handle_option): Don't handle filenames.
23235 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
23237 * Make-lang.in: Replace PWD with PWD_COMMAND.
23238 * Makefile.adalib: Likewise.
23239 * Makefile.in: Likewise.
23241 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
23243 * misc.c (gnat_argv): Revert last change.
23244 (gnat_handle_option, gnat_init_options): Copy arguments.
23246 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
23248 * misc.c (gnat_argv): Make const.
23250 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
23252 * misc.c (save_argc, save_argv): Keep non-static!
23254 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
23256 * misc.c (save_argc, save_argv): Make static.
23257 (gnat_init_options): New prototype.
23258 (gnat_init_options): Update.
23260 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
23262 * gnat_ug.texi: Remove unlikely characters from @vars.
23263 * gnat_ug_vms.texi: Regenerate.
23265 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
23267 * misc.c (record_code_position): Adjust emit_note call.
23269 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
23271 * misc.c (gnat_handle_option): Don't check for missing arguments.
23273 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
23275 * utils.c (end_subprog_body): Adjust expand_function_end call.
23277 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
23279 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
23282 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
23284 * lang.opt: Declare Ada.
23285 * misc.c (gnat_init_options): Update.
23287 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
23289 * utils.c (begin_subprog_body): Adjust init_function_start call.
23291 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
23293 * Make-lang.in: Update to use options.c and options.h.
23294 * misc.c: Include options.h not aoptions.h.
23295 (gnat_handle_option): Abort on unrecognized switch.
23296 (gnat_init_options): Request Ada switches.
23298 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
23300 * lang.opt: Add -Wall.
23301 * misc.c (gnat_handle_option): Handle it.
23303 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
23305 * misc.c (gnat_handle_option): Fix warnings.
23307 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
23309 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
23311 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
23313 * Make-lang.in: Update to handle command-line options.
23314 * lang.opt: New file.
23315 * misc.c: Include aoptions.h.
23316 (cl_options_count, cl_options): Remove.
23317 (gnat_handle_option): New.
23318 (gnat_decode_option): Remove.
23319 (LANG_HOOKS_DECODE_OPTION): Remove.
23320 (LANG_HOOKS_HANDLE_OPTION): Override.
23322 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
23324 * init.c, misc.c, trans.c, utils.c: Remove dead code.
23326 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
23328 * Makefile.in: Replace "host_canonical" with "host" for autoconf
23331 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
23333 * Make-lang.in: Update.
23334 * misc.c: Include opts.h. Define cl_options_count and cl_options.
23336 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
23338 * misc.c (gnat_init_options): Update.
23340 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
23342 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
23343 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
23344 __attribute__ ((__unused__)).
23346 2003-06-05 Jan Hubicka <jh@suse.cz>
23348 * Make-lang.in: Add support for stageprofile and stagefeedback
23350 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
23352 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
23353 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
23355 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
23357 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
23358 Remove non-VMS directive.
23359 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
23361 (Examples of gnatls Usage): Remove VMS alternative.
23363 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
23366 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
23367 and turn ZCX_By_Default back to False since the underlying support
23368 is not quite there yet.
23370 2003-06-01 Andreas Jaeger <aj@suse.de>
23372 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
23373 and ROUND_TYPE_SIZE_UNIT.
23375 2003-05-22 Geert Bosch <bosch@gnat.com>
23377 * gnat_rm.texi : Remove reference to Ada Core Technologies.
23379 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
23381 * trans.c (tree_transform): Use location_t and input_location
23383 (build_unit_elab): Likewise.
23384 * utils.c (create_label_decl): Likewise.
23386 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
23388 * trans.c (tree_transform, build_unit_elab,
23389 set_lineno): Rename lineno to input_line.
23390 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
23391 end_subprog_body): Likewise.
23392 * utils2.c (build_call_raise): Likewise.
23394 2003-05-01 Laurent Guerby <guerby@acm.org>
23397 * 5iosinte.ads: Increase pthread_cond_t size to match recent
23398 LinuxThread and NPTL version, merge from ACT.
23400 2003-04-28 Zack Weinberg <zack@codesourcery.com>
23402 * utils.c (convert): No need to clear TREE_CST_RTL.
23404 2003-04-23 Geert Bosch <bosch@gnat.com>
23406 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
23407 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
23408 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
23409 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
23410 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
23411 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
23412 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
23413 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
23414 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
23415 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
23416 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
23417 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
23418 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
23419 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
23420 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
23421 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
23422 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
23423 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
23424 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
23425 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
23426 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
23427 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
23428 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
23429 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
23430 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
23431 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
23432 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
23433 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
23434 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
23435 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
23436 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
23437 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
23438 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
23439 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
23440 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
23441 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
23442 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
23443 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
23444 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
23445 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
23446 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
23447 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
23448 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
23449 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
23450 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
23451 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
23452 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
23453 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
23454 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
23455 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
23456 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23457 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
23458 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
23459 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
23460 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
23461 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
23462 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
23463 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
23464 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
23465 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
23466 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
23467 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
23468 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
23469 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
23470 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
23471 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
23472 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
23473 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
23474 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
23475 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
23476 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
23477 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
23478 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
23479 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
23480 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
23481 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
23482 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
23483 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
23484 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
23485 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
23486 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
23487 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
23488 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
23489 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
23490 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
23491 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
23492 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
23493 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
23494 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
23495 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
23496 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
23497 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
23498 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
23499 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
23500 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
23501 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
23502 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
23503 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
23504 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
23505 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
23506 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
23507 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
23508 ali.adb, ali.ads, alloc.ads, argv.c,
23509 atree.adb, atree.ads, atree.h, aux-io.c,
23510 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
23511 binde.adb, binde.ads, binderr.adb, binderr.ads,
23512 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
23513 butil.adb, butil.ads, cal.c, calendar.ads,
23514 casing.adb, casing.ads, ceinfo.adb, checks.adb,
23515 checks.ads, cio.c, comperr.adb, comperr.ads,
23516 config-lang.in, csets.adb, csets.ads, csinfo.adb,
23517 cstand.adb, cstand.ads, cuintp.c, debug.adb,
23518 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
23519 dec-io.ads, dec.ads, deftarg.c, directio.ads,
23520 einfo.adb, einfo.ads, elists.adb, elists.ads,
23521 elists.h, errno.c, errout.adb, errout.ads,
23522 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
23523 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
23524 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
23525 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
23526 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
23527 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
23528 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
23529 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
23530 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
23531 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
23532 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
23533 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
23534 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
23535 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
23536 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
23537 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
23538 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
23539 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
23540 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
23541 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
23542 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
23543 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
23544 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
23545 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
23546 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
23547 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
23548 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
23549 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
23550 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
23551 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
23552 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
23553 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
23554 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
23555 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
23556 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
23557 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
23558 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
23559 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
23560 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
23561 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
23562 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
23563 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
23564 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
23565 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
23566 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
23567 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
23568 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
23569 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
23570 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
23571 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
23572 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
23573 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
23574 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
23575 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
23576 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
23577 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
23578 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
23579 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
23580 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
23581 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
23582 lib.adb, lib.ads, live.adb, live.ads,
23583 machcode.ads, make.adb, make.ads, makeusg.adb,
23584 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
23585 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
23586 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
23587 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
23588 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
23589 mlib.ads, namet.adb, namet.ads, nlists.adb,
23590 nlists.ads, opt.adb, opt.ads, osint-b.adb,
23591 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
23592 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
23593 osint.ads, output.adb, output.ads, par-ch10.adb,
23594 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
23595 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
23596 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
23597 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
23598 par-tchk.adb, par-util.adb, par.adb, par.ads,
23599 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
23600 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
23601 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
23602 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
23603 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
23604 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
23605 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
23606 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
23607 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
23608 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
23609 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
23610 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
23611 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
23612 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
23613 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
23614 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
23615 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
23616 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
23617 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
23618 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
23619 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
23620 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
23621 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
23622 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
23623 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
23624 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
23625 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
23626 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
23627 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
23628 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
23629 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
23630 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
23631 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
23632 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
23633 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
23634 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
23635 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
23636 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
23637 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
23638 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
23639 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
23640 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
23641 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
23642 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
23643 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
23644 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
23645 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
23646 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
23647 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
23648 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
23649 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
23650 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
23651 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
23652 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
23653 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
23654 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
23655 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
23656 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
23657 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
23658 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
23659 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
23660 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
23661 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
23662 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
23663 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
23664 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
23665 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
23666 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
23667 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
23668 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
23669 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
23670 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
23671 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
23672 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
23673 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
23674 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
23675 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
23676 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
23677 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
23678 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
23679 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
23680 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
23681 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
23682 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
23683 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
23684 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
23685 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
23686 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
23687 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
23688 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
23689 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
23690 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
23691 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
23692 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
23693 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
23694 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
23695 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
23696 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
23697 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
23698 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
23699 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
23700 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
23701 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
23702 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
23703 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
23704 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
23705 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
23706 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
23707 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
23708 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
23709 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
23710 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
23711 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
23712 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
23713 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
23714 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
23715 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
23716 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
23717 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
23718 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
23719 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
23720 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
23721 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
23722 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
23723 snames.ads, sprint.adb, sprint.ads, stand.adb,
23724 stand.ads, stringt.adb, stringt.ads, style.adb,
23725 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
23726 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
23727 switch-m.ads, switch.adb, switch.ads, system.ads,
23728 table.adb, table.ads, targparm.adb, targparm.ads,
23729 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
23730 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
23731 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
23732 ttypef.ads, ttypes.ads, types.adb, types.ads,
23733 uintp.adb, uintp.ads, uname.adb, uname.ads,
23734 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
23735 usage.adb, usage.ads, validsw.adb, validsw.ads,
23736 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
23737 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
23738 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
23739 formatting and other trivial changes from ACT.
23741 2003-04-12 Zack Weinberg <zack@codesourcery.com>
23743 * gigi.h, utils2.c (build_constructor):
23744 Rename gnat_build_constructor. Use build_constructor.
23745 * decl.c (gnat_to_gnu_entity)
23746 * trans.c (tree_transform, pos_to_constructor, extract_values)
23747 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
23748 (unchecked_convert)
23749 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
23750 (fill_vms_descriptor):
23753 2003-04-06 Zack Weinberg <zack@codesourcery.com>
23755 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
23756 * misc.c (gnat_tree_size): New function.
23757 (LANG_HOOKS_TREE_SIZE): Override.
23759 2003-04-03 Jason Merrill <jason@redhat.com>
23761 * misc.c (gnat_adjust_rli): #if 0.
23763 2003-03-31 Geert Bosch <bosch@gnat.com>
23766 * link.c : Fix misspelled "const" keyword
23768 2003-03-23 Mark Mitchell <mark@codesourcery.com>
23771 * utils2.c: Adjust calls to put_var_into_stack.
23773 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
23775 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
23777 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
23779 * misc.c (gnat_init): Update for new prototype.
23781 2003-03-05 Olivier Hainque <hainque@gnat.com>
23784 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
23785 warning, and fix return type for the IN_RTS && !SJLJ case.
23787 2003-03-04 Tom Tromey <tromey@redhat.com>
23789 * Make-lang.in (ada.tags): New target.
23791 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
23794 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
23795 wrapper, which name remains constant whatever underlying GCC
23798 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
23799 the stable interface needed for a-except.
23801 2003-03-02 Andreas Jaeger <aj@suse.de>
23803 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23804 gnat_ug_wnt.texi: Regenerate.
23806 2003-03-02 Laurent Guerby <guerby@acm.org>
23808 * Makefile.in (install-gnatlib): Match previous change there
23811 2003-02-28 Andreas Schwab <schwab@suse.de>
23813 * Make-lang.in (install-gnatlib): Change to ada directory before
23814 running make instead of using ada/Makefile directly.
23816 2003-02-18 Ben Elliston <bje@redhat.com>
23818 Part of fix for PR ada/9406
23819 * gnat_ug.texi (Binder output file): Grammar fix.
23821 2003-02-18 Ben Elliston <bje@redhat.com>
23824 * 5qtaprop.adb (Sleep): Fix typo in comment.
23826 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
23828 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
23829 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23830 gnat_ug_wnt.texi: Regenerate.
23832 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
23834 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
23835 be created if necessary.
23836 (ada.install-common): Let $(DESTDIR)$(bindir) be created
23837 if necessary. Remove erroneous and redundant gnatchop
23838 installation commands. Test for gnatdll before attempting
23840 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
23841 and gnatdll from all plausible locations.
23843 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
23845 * utils2.c (build_unary_op): Don't check flag_volatile.
23846 * gnat_ug.texi: Remove -fvolatile from example.
23847 * gnat_ug_vxw.texi: Likewise.
23849 2003-01-29 Laurent Guerby <guerby@acm.org>
23852 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
23853 * Makefile.in: match previous change.
23854 * Make-lang.in: match previous change.
23856 2003-01-29 Joel Sherrill <joel@OARcorp.com>
23858 * 5rosinte.ads: Add SIGXCPU.
23859 * 5rtpopsp.adb: New file.
23860 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
23861 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
23862 specific file 5rtpopsp.adb.
23863 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
23864 is likely needed for all newlib targets.
23865 * init.c: Add RTEMS specific version of __gnat_initialize().
23867 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23869 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
23871 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
23873 * init.c (__gnat_error_handler): Make msg const.
23875 * gmem.c (convert_addresses): Move declaration ...
23876 * adaint.h: ... here.
23877 * adaint.c (convert_addresses): Adapt addrs type to match
23880 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
23882 2003-01-24 Andreas Schwab <schwab@suse.de>
23884 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
23885 size_t to avoid warning.
23887 2003-01-21 Zack Weinberg <zack@codesourcery.com>
23889 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
23891 2003-01-09 Geoffrey Keating <geoffk@apple.com>
23893 * gnat_rm.texi: Remove RCS version number.
23895 * ada-tree.h (union lang_tree_node): Add chain_next option.
23897 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
23899 * Make-lang.in (ada.install-info, ada.install-common,
23900 ada.uninstall): Prepend $(DESTDIR) to the destination
23901 directory in all (un)installation commands.
23902 * Makefile.in (install-gnatlib, install-rts): Ditto.
23904 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
23906 * gnat_rm.texi, gnat_ug.texi: Use @copying.
23907 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
23908 gnat_ug_wnt.texi: Regenerate.
23910 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
23912 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
23914 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
23915 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
23916 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
23917 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
23918 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
23919 $(srcdir)/doc/include/gcc-common.texi.
23921 2002-12-15 Geert Bosch <bosch@gnat.com>
23923 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
23925 2002-12-14 Geert Bosch <bosch@gnat.com>
23927 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
23928 case of a body created for a Renaming_As_Body, on which
23929 conformance checks are not performed. Fixes PR ada/5690.
23931 2002-11-30 Zack Weinberg <zack@codesourcery.com>
23933 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
23934 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
23935 not already included.
23936 * Make-lang.in: Update dependencies.
23938 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
23939 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
23940 solution to buffer overflow bug on GNU/Linux.
23942 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
23943 Closes PR ada/5856 and PR ada/6919 !
23944 * bindgen.adb: Remove all references to Public_Version.
23945 * comperr.adb: Remove all references to Public_Version and
23946 GNATPRO_Version; correct bug reporting instructions.
23947 * comperr.ads: Change to match bug box.
23948 * gnatvsn.ads: Remove all references to Public version and
23951 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
23953 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
23957 * config-lang.in: Remove diff_excludes.
23959 2002-11-05 Graham Stott <graham.stott@btinternet.com>
23961 * trans.c (gnu_pending_elaboration_lists): New GC root.
23962 (build_unit_elab): Use..
23964 2002-10-30 Geert Bosch <bosch@gnat.com>
23966 * misc.c : Include optabs.h
23968 * Make-lang.in (misc.o): Add dependency on optabs.h
23970 2002-10-29 Geert Bosch <bosch@gnat.com>
23972 * Make-lang.in (gnatbind): Depend on CONFIG_H
23974 2002-10-29 Geert bosch <bosch@gnat.com>
23976 * misc.c: Unrevert misc.c (1.13)
23978 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
23980 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
23981 maintainership comments.
23983 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
23985 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
23986 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
23987 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
23988 7staprop.adb: Correct statements in comments about
23989 maintainership of GNAT.
23992 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
23993 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
23994 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
23995 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
23996 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
23997 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
23998 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
23999 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
24000 comments about maintainership of GNAT.
24002 PR ada/6919 (forward port of patch for PR ada/5904)
24003 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
24004 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
24005 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
24006 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
24007 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
24008 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
24009 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
24010 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
24011 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
24012 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
24013 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
24014 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
24015 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
24016 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
24017 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
24018 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
24019 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
24020 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
24021 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
24022 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
24023 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
24024 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
24025 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
24026 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
24027 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
24028 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
24029 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
24030 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
24031 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
24032 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
24033 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
24034 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
24035 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
24036 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
24037 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
24038 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
24039 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
24040 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
24041 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
24042 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
24043 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
24044 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
24045 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
24046 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
24047 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
24048 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
24049 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
24050 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
24051 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
24052 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
24053 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
24054 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
24055 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
24056 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
24057 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
24058 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
24059 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
24060 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
24061 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
24062 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
24063 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
24064 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
24065 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
24066 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
24067 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
24068 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
24069 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
24070 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
24071 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
24072 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
24073 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
24074 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
24075 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
24076 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
24077 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
24078 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
24079 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
24080 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
24081 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
24082 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
24083 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
24084 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
24085 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
24086 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
24087 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
24088 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
24089 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
24090 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
24091 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
24092 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
24093 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
24094 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
24095 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
24096 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
24097 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
24098 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
24099 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
24100 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
24101 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
24102 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
24103 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
24104 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
24105 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
24106 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
24107 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
24108 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
24109 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
24110 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
24111 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
24112 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
24113 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
24114 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
24115 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
24116 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
24117 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
24118 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
24119 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
24120 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
24121 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
24122 par-endh.adb par-labl.adb par-load.adb par-prag.adb
24123 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
24124 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
24125 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
24126 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
24127 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
24128 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
24129 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
24130 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
24131 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
24132 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
24133 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
24134 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
24135 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
24136 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
24137 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
24138 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
24139 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
24140 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
24141 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
24142 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
24143 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
24144 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
24145 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
24146 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
24147 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
24148 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
24149 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
24150 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
24151 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
24152 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
24153 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
24154 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
24155 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
24156 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
24157 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
24158 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
24159 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
24160 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
24161 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
24162 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
24163 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
24164 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
24165 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
24166 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
24167 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
24168 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
24169 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
24170 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
24171 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
24172 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
24173 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
24174 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
24175 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
24176 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
24177 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
24178 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
24179 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
24180 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
24181 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
24182 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
24183 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
24184 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
24185 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
24186 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
24187 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
24188 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
24189 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
24190 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
24191 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
24192 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
24193 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
24194 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
24195 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
24196 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
24197 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
24198 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
24199 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
24200 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
24201 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
24202 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
24203 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
24204 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
24205 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
24206 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
24207 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
24208 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
24209 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
24210 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
24211 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
24212 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
24213 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
24214 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
24215 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
24216 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
24217 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
24218 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
24219 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
24220 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
24221 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
24222 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
24223 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
24224 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
24225 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
24226 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
24227 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
24228 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
24229 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
24230 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
24231 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
24232 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
24233 stringt.ads stringt.h style.adb style.ads stylesw.adb
24234 stylesw.ads switch.adb switch.ads sysdep.c system.ads
24235 table.adb table.ads targparm.adb targparm.ads targtyps.c
24236 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
24237 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
24238 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
24239 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
24240 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
24241 usage.ads utils.c utils2.c validsw.adb validsw.ads
24242 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
24243 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
24244 xtreeprs.adb: Correct statements in comments about maintainership
24247 2002-09-23 Zack Weinberg <zack@codesourcery.com>
24249 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
24250 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
24251 * gnatvsn.ads: Gnat_Version_String is now a function.
24252 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
24253 copy the C version_string into a String and return it.
24254 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
24255 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
24256 Remove pragma Ident (Gnat_Version_String). If this was the
24257 sole use of package Gnatvsn, remove the with statement too.
24258 * gnat1drv.adb: Tweak -gnatv output.
24260 2002-09-17 Richard Henderson <rth@redhat.com>
24262 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
24263 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
24264 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
24265 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
24266 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
24267 and real_2expN instead of a loop.
24268 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
24269 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
24271 2002-08-25 Andre Leis <a.leis@gmx.net>
24272 David Billinghurst (David.Billinghurst@riotinto.com>
24274 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
24276 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24278 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
24279 Remove $(CONFIG_H) dependency.
24281 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
24283 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
24285 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24287 * adadecode.c (ada_demangle): Use xstrdup in lieu of
24289 * misc.c (gnat_decode_option): Likewise.
24291 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
24293 * make.adb (Add_Switch): Make Generic_Position a procedure. The
24294 function approach did not work well because of a side effect (the
24295 function call could reallocate the table which was being indexed
24296 using its result). Fixes ada/4851. [RESURRECTED]
24298 2002-07-01 Roger Sayle <roger@eyesopen.com>
24300 * ada/utils.c (builtin_function): Accept an additional parameter.
24302 2002-06-28 Andreas Jaeger <aj@suse.de>
24305 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
24308 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24310 * Makefile.in (SHELL): Set to @SHELL@.
24312 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24314 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
24315 array size calculation.
24317 2002-06-04 Andreas Jaeger <aj@suse.de>
24319 * Make-lang.in (gnatbind): Readd rule that has been lost in last
24322 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
24324 Merge from pch-branch:
24326 * config-lang.in (gtfiles): Add ada-tree.h.
24327 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
24328 (SET_TYPE_MODULUS): New.
24329 (SET_TYPE_INDEX): New.
24330 (SET_TYPE_DIGITS_VALUE): New.
24331 (SET_TYPE_RM_SIZE): New.
24332 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
24333 (SET_TYPE_ADA_SIZE): New.
24334 (SET_TYPE_ACTUAL_BOUNDS): New.
24335 (SET_DECL_CONST_CORRESPONDING_VAR): New.
24336 (SET_DECL_ORIGINAL_FIELD): New.
24337 (TREE_LOOP_ID): Correct typo.
24338 * decl.c: Use new macros.
24339 * utils.c: Include debug.h, use new macros.
24340 * utils2.c: Use new macros.
24342 * ada-tree.h: Update all macros for new tree description.
24343 (struct tree_loop_id): New.
24344 (union lang_tree_node): New.
24345 (struct lang_decl): New.
24346 (struct lang_type): New.
24347 * misc.c (gnat_mark_tree): Delete.
24348 (LANG_HOOKS_MARK_TREE): Delete.
24349 * trans.c (tree_transform): No longer any need to cast
24352 * utils.c (struct language_function): New dummy structure.
24354 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
24355 (misc.o): Likewise.
24356 (utils.o): Likewise; also gtype-ada.h.
24357 * Make-lang.in (gnat1): Add dependency on s-gtype.
24358 (gnatbind): Add dependency on $(CONFIG_H).
24359 * utils.c: Correct last #include.
24360 (stuct e_stack): Remove unnecessary 'static'.
24361 (mark_e_stack): Remove unused prototype.
24363 * scn-nlit.adb: Remove whitespace after version number to
24364 keep lines under 80 chars.
24365 * snames.adb: Likewise.
24366 * treepr.ads: Likewise.
24368 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
24369 (misc.o): Likewise.
24370 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
24371 * config-lang.in (gtfiles): New.
24372 * decl.c: Use gengtype for roots.
24373 * gigi.h: Use gengtype for roots.
24374 * trans.c: Use gengtype for roots.
24375 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
24377 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
24379 * misc.c (gnat_init): Adjust setting of internal_error_function.
24381 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
24383 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
24384 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
24385 gnat_ug_wnt.texi: Regenerate.
24387 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
24389 * 5ntaprop.adb (with System.OS_Primitives): Remove.
24391 * cstreams.c (max_path_len): Move from here ...
24392 * adaint.c (__gnat_max_path_len): ... to here.
24393 * adaint.c (__gnat_max_path_len): Declare.
24394 * g-dirope.adb (Max_Path): Adjust.
24395 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
24396 * i-cstrea.ads (max_path_len): Adjust.
24397 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
24398 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
24400 * Makefile.in, Make-lang.in: Documentation is now built in
24401 Make-lang.in. Store Info and generated Texinfo files in the
24403 * gnat_ug.texi: Remove CVS keywords, correct version number.
24404 Set file name correctly.
24406 * gnat_ug_*.texi: Add.
24407 * .cvsignore: Ignore generated Texinfo files.
24409 2002-05-30 Zack Weinberg <zack@codesourcery.com>
24411 * ada.h: Add MI guard macro.
24412 (SUBTYPE): Define constants with an anonymous enum, not static
24414 (IN): Cast constants to appropriate type before use.
24416 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
24418 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
24421 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24423 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
24424 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
24425 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
24426 (ALL_ADA_CFLAGS): Likewise.
24427 (ADA_INCLUDES): Likewise.
24428 Adapt for new working dir.
24429 (GNATBIND): Use Makefile.in version.
24430 (.SUFFIXES): Copy from Makefile.in.
24431 (ada-warn): Define.
24432 (.adb.o, .ads.o): Copy from Makefile.in.
24433 Added $(OUTPUT_OPTION).
24434 (GNAT1_C_OBJS): Moved from Makefile.in.
24435 Prefix with ada subdir.
24436 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
24437 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
24438 Adapt for new working dir.
24439 (EXTRA_GNATBIND_OBJS): Likewise.
24440 (ADA_BACKEND): Moved from Makefile.in.
24441 Renamed to avoid conflict with global BACKEND.
24443 (TARGET_ADA_SRCS): Moved from Makefile.in.
24444 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
24446 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
24447 (ada_extra_files): Moved from Makefile.in.
24448 Prefix with ada subdir.
24449 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
24450 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
24451 (ada/nmake.ads): Likewise.
24452 (update-sources): Moved from Makefile.in.
24453 Prefix with ada subdir.
24454 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
24455 (ADA_TREE_H): Likewise.
24456 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
24457 (ada/memtrack.o): Likewise.
24458 (ada/adadecode.o): Likewise.
24459 Update dependencies.
24460 (ada/adaint.o): New.
24461 (ada/argv.o): Moved from Makefile.in.
24462 Prefix with ada subdir.
24463 Update dependencies.
24464 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
24465 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
24466 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
24467 Prefix with ada subdir.
24468 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
24469 (GNAT DEPENDENCIES): Regenerate.
24470 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
24471 toplevel Makefile.in.
24472 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
24473 (TARGET_ADA_SRCS): Removed.
24474 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
24475 (GNATBIND_OBJS): Likewise.
24476 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
24477 (BACKEND): Removed.
24478 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
24479 (TREE_H): Likewise.
24480 (ada_extra_files): Likewise.
24481 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
24482 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
24483 (update-sources): Likewise.
24484 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
24485 (ADA_TREE_H): Likewise.
24486 (adadecoce.o): Likewise.
24487 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
24488 (GNAT DEPENDENCIES): Likewise.
24490 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24492 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
24493 * Makefile.in: Likewise.
24495 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24497 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
24498 Restore $(CONFIG_H) and prefix.o dependencies.
24499 (ada.stage[1-4]): Depend on stage?-start.
24501 * Makefile.in (b_gnatb.c): Depend on interfac.o.
24503 2002-05-02 Jim Wilson <wilson@redhat.com>
24505 * utils.c (finish_record_type): Change record_size to record_type.
24507 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
24509 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
24510 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
24511 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
24513 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
24515 * misc.c (gnat_parse_file): Update.
24517 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
24519 * misc.c (gnat_init): Don't set lang_attribute_common.
24521 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
24523 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
24525 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
24527 * gnat_ug.texi: New file.
24529 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
24530 instead of gfdl.texi
24532 * xgnatug.adb, ug_words: New files.
24534 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
24535 gnat_rm and gnat-style manuals.
24537 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
24539 * gigi.h (incomplete_type_error): Remove.
24540 * utils.c (incomplete_type_error): Remove.
24542 2002-04-16 Mark Mitchell <mark@codesourcery.com>
24544 * trans.c (tree_transform): Add has_scope argument to
24545 expand_start_stmt_expr.
24547 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
24549 * gigi.h (truthvalue_conversion): Rename.
24550 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
24551 * trans.c (tree_transform): Update.
24552 * utils2.c (truthvalue_conversion): Rename, update.
24553 (build_binary_op, build_unary_op): Update.
24555 2002-04-04 Laurent Guerby <guerby@acm.org>
24557 * make.adb: Implement -margs, remove restriction about file name placement.
24558 * makeusg.adb: Documentation update.
24559 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
24560 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
24562 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
24564 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
24565 (builtin_function): Similarly.
24567 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
24569 * decl.c (gnat_to_gnu_entity): Update.
24570 * gigi.h (mark_addressable): Rename.
24571 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
24572 * trans.c (tree_transform): Update.
24573 * utils.c (create_var_decl): Update.
24574 * util2.c (build_binary_op, build_unary_op,
24575 fill_vms_descriptor): Update.
24576 (mark_addressable): Rename, update.
24578 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
24580 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
24582 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
24583 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
24584 * trans.c (tree_transform, convert_with_check): Update.
24585 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
24588 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
24590 * gigi.h (finish_incomplete_decl): Rename.
24591 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
24592 * utils.c (gnat_init_decl_processing): Don't set hook.
24593 (finish_incomplete_decl): Rename.
24595 2002-03-29 Andreas Schwab <schwab@suse.de>
24597 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
24600 2001-03-28 Robert Dewar <dewar@gnat.com>
24603 (Remove_Checks): New procedure
24606 (Remove_Checks): New procedure
24609 Use new Duplicate_Subexpr functions
24610 (Duplicate_Subexpr_No_Checks): New procedure
24611 (Duplicate_Subexpr_No_Checks_Orig): New procedure
24612 (Duplicate_Subexpr): Restore original form (checks duplicated)
24613 (Duplicate_Subexpr): Call Remove_Checks
24616 (Duplicate_Subexpr_No_Checks): New procedure
24617 (Duplicate_Subexpr_No_Checks_Orig): New procedure
24618 Add 2002 to copyright notice
24620 * sem_util.adb: Use new Duplicate_Subexpr functions
24623 (Eval_Indexed_Component): This is the place to call
24624 Constant_Array_Ref and to replace the value. We simply merge
24625 the code of this function in here, since it is now no longer
24626 used elsewhere. This fixes the problem of the back end not
24627 realizing we were clever enough to see that this was
24629 (Expr_Val): Remove call to Constant_Array_Ref
24630 (Expr_Rep_Val): Remove call to Constant_Array_Ref
24632 (Constant_Array_Ref): Deal with string literals (patch
24633 suggested by Zack Weinberg on the gcc list)
24635 2001-03-28 Ed Schonberg <schonber@gnat.com>
24637 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
24638 Duplicate_Subexpr_Move_Checks.
24640 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
24641 Duplicate_Subexpr_Move_Checks.
24643 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
24644 value of array exists before retrieving it (it may a private
24645 protected component in a function).
24647 2002-03-28 Geert Bosch <bosch@gnat.com>
24649 * prj-pp.adb : New file.
24651 * prj-pp.ads : New file.
24653 2002-03-28 Andreas Jaeger <aj@suse.de>
24655 * Makefile.in (stamp-sdefault): Fix path for Makefile.
24657 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
24659 * misc.c (gnat_expand_expr): Move prototype.
24661 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
24663 * misc.c (insert_default_attributes): Remove.
24665 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
24667 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
24668 (gnat_init): Don't set hook.
24669 (gnat_expand_expr): Fix prototype.
24671 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
24673 * misc.c (ggc_p): Remove.
24675 2002-03-27 Geert Bosch <bosch@gnat.com>
24677 * prj-makr.ads, prj-makr.adb : New files.
24679 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
24681 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
24682 (lang_mark_tree): Make static, rename.
24684 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
24686 * misc.c (maybe_build_cleanup): Remove.
24688 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
24690 * gigi.h (yyparse): Remove.
24692 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
24694 * gnat_rm.texi: Sync with ACT version.
24695 (From Ben Brosgol <brosgol@gnat.com>)
24697 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
24699 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
24700 (gnat_init): Remove old hook.
24702 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
24704 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
24705 (yyparse): Rename gnat_parse_file.
24707 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
24709 Delete all lines containing "$Revision:".
24710 * xeinfo.adb: Don't look for revision numbers.
24711 * xnmake.adb: Likewise.
24712 * xsinfo.adb: Likewise.
24713 * xsnames.adb: Likewise.
24714 * xtreeprs.adb: Likewise.
24716 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24718 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
24719 gnat_tree_code_name): Delete.
24720 (tree_code_type, tree_code_length, tree_code_name): Define.
24721 (gnat_init): Don't try to copy into the various tree_code
24724 2002-03-11 Richard Henderson <rth@redhat.com>
24726 * Makefile.in (.NOTPARALLEL): Add fake tag.
24728 2002-03-07 Geert Bosch <bosch@gnat.com>
24730 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
24731 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
24732 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
24733 switch-m.adb, switch-m.ads : New files.
24735 2002-03-07 Geert Bosch <bosch@gnat.com>
24737 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
24738 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
24739 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
24740 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
24741 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
24742 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
24743 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
24744 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
24745 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
24746 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
24747 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
24748 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
24749 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
24750 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
24751 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
24752 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
24753 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
24754 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
24755 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
24756 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
24757 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
24758 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
24759 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
24760 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
24761 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
24762 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
24763 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
24764 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
24765 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
24766 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
24767 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
24768 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
24769 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
24770 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
24771 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
24772 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
24773 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
24774 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
24775 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
24776 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
24777 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
24778 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
24779 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
24780 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
24781 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
24782 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
24783 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
24784 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
24785 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
24786 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
24787 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
24788 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
24789 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
24790 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
24791 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
24792 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
24793 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
24794 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
24795 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
24796 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
24797 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
24798 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
24799 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
24800 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
24801 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
24802 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
24803 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
24804 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
24805 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
24806 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
24807 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
24808 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
24809 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
24810 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
24811 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
24812 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
24813 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
24814 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
24815 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
24816 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
24817 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
24818 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
24819 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
24820 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
24821 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
24822 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
24823 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
24824 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
24825 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
24826 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
24827 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
24828 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
24829 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
24830 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
24831 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
24832 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
24833 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
24835 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
24836 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
24837 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
24838 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
24840 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
24841 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
24843 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
24844 to mdll-fil.ad[bs] and mdll-util.ad[bs]
24846 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
24847 from mdllfile.ad[bs] and mdlltool.ad[bs]
24849 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
24851 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
24852 lieu of explicit sizeof/sizeof.
24854 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
24856 * misc.c (copy_lang_decl): Remove.
24858 2002-02-27 Zack Weinberg <zack@codesourcery.com>
24860 * misc.c: Delete traditional-mode-related code copied from the
24861 C front end but not used, or used only to permit the compiler
24864 2002-02-07 Richard Henderson <rth@redhat.com>
24866 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
24867 * adaint.h (__gnat_to_gm_time): Update prototype.
24869 2002-01-30 Richard Henderson <rth@redhat.com>
24871 * trans.c (tree_transform) [N_Loop_Statement]: Use
24872 expand_exit_loop_top_cond.
24874 2001-12-23 Richard Henderson <rth@redhat.com>
24876 * utils.c (end_subprog_body): Push GC context around
24877 rest_of_compilation for nested functions.
24879 2001-12-23 Richard Henderson <rth@redhat.com>
24881 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
24883 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
24885 * gnat-style.texi (Declarations and Types): Remove ancient style
24886 rule which was mandated by code generation issues.
24888 * gnat-style.texi (header): Add @dircategory, @direntry.
24889 (title page): Remove date.
24890 (general) Add @./@: where approriate, and two spaces after the
24891 full stop at the end of a sentence. Use @samp markup when
24892 referring concrete lexical entities (keywords, attribute names
24893 etc.), and @syntax for ARM grammar elements. Use @r for English
24894 text in comments. Use @emph for emphasis. Change "if-statements"
24895 etc. to "if statements" (without @samp). Break long lines. Make
24896 casing of section names consistent.
24897 (Identifiers): Use @samp markup for variable names.
24898 (Comments): Use @samp markup for comment characters. Line-end
24899 comments may follow any Ada code, not just statements. Fix
24900 misspelling of "Integer" as "integer".
24901 (Loop statements): Do not use variable name "I", use "J".
24902 (Subprogram Declarations): Document alignment.
24903 (Subprogram Bodies, Block statements): Document empty line before
24906 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
24908 * make.adb (Add_Switch): Make Generic_Position a procedure. The
24909 function approach did not work well because of a side effect (the
24910 function call could reallocate the table which was being indexed
24911 using its result). Fixes ada/4851.
24913 2001-12-19 Robert Dewar <dewar@gnat.com>
24915 * bindgen.adb: Minor reformatting
24917 * cstand.adb: Minor reformatting
24919 * fmap.adb: Minor reformatting
24920 Change name from Add for Add_To_File_Map (Add is much too generic)
24921 Change Path_Name_Of to Mapped_Path_Name
24922 Change File_Name_Of to Mapped_File_Name
24923 Fix copyright dates in header
24926 Change name from Add for Add_To_File_Map (Add is much too generic)
24927 Change Path_Name_Of to Mapped_Path_Name
24928 Change File_Name_Of to Mapped_File_Name
24929 Fix copyright dates in header
24931 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
24932 Add use clause for Fmap.
24934 * make.adb: Minor reformatting
24936 * osint.adb: Minor reformatting. Change of names in Fmap.
24937 Add use clause for Fmap.
24939 * prj-env.adb: Minor reformatting
24941 * prj-env.ads: Minor reformatting
24943 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
24944 error found (there were odd exceptions to this general rule in
24945 -gnatec/-gnatem processing)
24947 2001-12-19 Olivier Hainque <hainque@gnat.com>
24949 * raise.c (__gnat_eh_personality): Exception handling personality
24950 routine for Ada. Still in rough state, inspired from the C++ version
24951 and still containing a bunch of debugging artifacts.
24952 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
24953 inspired from the C++ library.
24955 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
24956 exception handling integration.
24958 2001-12-19 Arnaud Charlet <charlet@gnat.com>
24960 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
24961 (HIE_SOURCES): Add s-secsta.ad{s,b}.
24962 (HIE_OBJS): Add s-fat*.o
24963 (RAVEN_SOURCES): Remove files that are no longer required. Add
24964 interrupt handling files.
24965 (RAVEN_MOD): Removed, no longer needed.
24967 2001-12-19 Robert Dewar <dewar@gnat.com>
24969 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
24970 Add 2001 to copyright date
24972 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
24973 need to force universal inlining for these cases.
24975 2001-12-19 Arnaud Charlet <charlet@gnat.com>
24977 * s-taprob.adb: Minor clean ups so that this unit can be used in
24980 * exp_ch7.adb: Allow use of secondary stack in HI mode.
24981 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
24983 2001-12-19 Vincent Celier <celier@gnat.com>
24985 * prj-tree.ads (Project_Node_Record): Add comments for components
24986 Pkg_Id and Case_Insensitive.
24988 2001-12-19 Pascal Obry <obry@gnat.com>
24990 * g-socket.adb: Minor reformatting. Found while reading code.
24992 2001-12-19 Robert Dewar <dewar@gnat.com>
24994 * prj-tree.ads: Minor reformatting
24996 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
24998 * config-lang.in (diff_excludes): Remove.
25000 2001-12-17 Ed Schonberg <schonber@gnat.com>
25002 * sem_res.adb (Resolve_Selected_Component): do not generate a
25003 discriminant check if the selected component is a component of
25004 the argument of an initialization procedure.
25006 * trans.c (tree_transform, case of arithmetic operators): If result
25007 type is private, the gnu_type is the base type of the full view,
25008 given that the full view itself may be a subtype.
25010 2001-12-17 Robert Dewar <dewar@gnat.com>
25012 * sem_res.adb: Minor reformatting
25014 * trans.c (tree_transform, case N_Real_Literal): Add missing third
25015 parameter in call to Machine (unknown horrible effects from this
25018 * urealp.h: Add definition of Round_Even for call to Machine
25019 Add third parameter for Machine
25021 2001-12-17 Ed Schonberg <schonber@gnat.com>
25023 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
25024 predefined units in No_Run_Time mode.
25026 2001-12-17 Richard Kenner <kenner@gnat.com>
25028 * misc.c (insn-codes.h): Now include.
25030 2001-12-17 Olivier Hainque <hainque@gnat.com>
25032 * a-except.adb: Preparation work for future integration of the GCC 3
25033 exception handling mechanism
25034 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
25035 to factorize previous code sequences and make them externally callable,
25036 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
25037 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
25038 Use the new notification routines.
25040 2001-12-17 Emmanuel Briot <briot@gnat.com>
25042 * prj-tree.ads (First_Choice_Of): Document the when others case
25044 2001-12-17 Arnaud Charlet <charlet@gnat.com>
25046 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
25047 HI-E mode, in order to support Ravenscar profile properly.
25049 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
25050 mode on 32 bits targets.
25052 2001-12-17 Vincent Celier <celier@gnat.com>
25054 * fmap.adb: Initial version.
25056 * fmap.ads: Initial version.
25058 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
25059 If search is successfully done, add to mapping.
25061 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
25064 (Gnatmake): Add new local variable Mapping_File_Name.
25065 Create mapping file when using project file(s).
25066 Delete mapping file before exiting.
25068 * opt.ads (Mapping_File_Name): New variable
25070 * osint.adb (Find_File): Use path name found in mapping, if any.
25072 * prj-env.adb (Create_Mapping_File): New procedure
25074 * prj-env.ads (Create_Mapping_File): New procedure.
25076 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
25079 * usage.adb: Add entry for new switch -gnatem.
25081 * Makefile.in: Add dependencies for fmap.o.
25083 2001-12-17 Ed Schonberg <schonber@gnat.com>
25085 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
25086 is a package instantiation rewritten as a package body.
25087 (Install_Withed_Unit): Undo previous change, now redundant.
25089 2001-12-17 Gary Dismukes <dismukes@gnat.com>
25092 (Compute_Length): Move conversion to Unsigned to callers.
25093 (Get_Max_Size): Convert Len expression to Unsigned after calls to
25094 Compute_Length and Determine_Range.
25095 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
25096 Compute_Length and Determine_Range.
25097 Above changes fix problem with length computation for supernull arrays
25098 where Max (Len, 0) wasn't getting applied due to the Unsigned
25099 conversion used by Compute_Length.
25101 2001-12-17 Arnaud Charlet <charlet@gnat.com>
25104 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
25105 System.Secondary_Stack.
25106 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
25108 Remove unused entity RE_Exception_Data.
25110 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
25112 * rident.ads (No_Secondary_Stack): New restriction.
25114 2001-12-17 Joel Brobecker <brobecke@gnat.com>
25116 * gnat_rm.texi: Fix minor typos. Found while reading the section
25117 regarding "Bit_Order Clauses" that was sent to a customer.
25118 Very interesting documentation!
25120 2001-12-17 Robert Dewar <dewar@gnat.com>
25122 * sem_case.adb (Choice_Image): Avoid creating improper character
25123 literal names by using the routine Set_Character_Literal_Name. This
25124 fixes bombs in certain error message cases.
25126 2001-12-17 Arnaud Charlet <charlet@gnat.com>
25128 * a-reatim.adb: Minor reformatting.
25130 2001-12-17 Ed Schonberg <schonber@gnat.com>
25132 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
25133 case where the formal is an extension of another formal in the current
25134 unit or in a parent generic unit.
25136 2001-12-17 Arnaud Charlet <charlet@gnat.com>
25138 * s-tposen.adb: Update comments. Minor reformatting.
25139 Minor code clean up.
25141 * s-tarest.adb: Update comments. Minor code reorganization.
25143 2001-12-17 Gary Dismukes <dismukes@gnat.com>
25145 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
25148 2001-12-17 Robert Dewar <dewar@gnat.com>
25150 * exp_attr.adb: Minor reformatting
25152 2001-12-17 Ed Schonberg <schonber@gnat.com>
25154 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
25155 derivations nested within a child unit: verify that the parent
25156 type is declared in an outer scope.
25158 2001-12-17 Robert Dewar <dewar@gnat.com>
25160 * sem_ch12.adb: Minor reformatting
25162 2001-12-17 Ed Schonberg <schonber@gnat.com>
25164 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
25165 warning if current unit is a predefined one, from which bodies may
25168 2001-12-17 Robert Dewar <dewar@gnat.com>
25170 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
25171 Fix header format. Add 2001 to copyright date.
25173 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
25174 which caused CE during compilation if checks were enabled.
25176 2001-12-17 Vincent Celier <celier@gnat.com>
25179 (Switches_Of): New function
25180 (Test_If_Relative_Path): New procedure
25181 (Add_Switches): Use new function Switches_Of
25182 (Collect_Arguments_And_Compile): Use new function Switches_Of.
25183 When using a project file, test if there are any relative
25184 search path. Fail if there are any.
25185 (Gnatmake): Only add switches for the primary directory when not using
25186 a project file. When using a project file, change directory to the
25187 object directory of the main project file. When using a project file,
25188 test if there are any relative search path. Fail if there are any.
25189 When using a project file, fail if specified executable is relative
25190 path with directory information, and prepend executable, if not
25191 specified as an absolute path, with the exec directory. Make sure
25192 that only one -o switch is transmitted to the linker.
25194 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
25197 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
25198 when using a non standard naming scheme.
25199 (Check_Ada_Naming_Scheme): Make sure that error messages
25200 do not raise exceptions.
25201 (Is_Illegal_Append): Return True if there is no dot in the suffix.
25202 (Language_Independent_Check): Check the exec directory.
25204 * prj.adb (Project_Empty): Add new component Exec_Directory
25207 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
25208 (Project_Data): Add component Exec_Directory
25210 * snames.adb: Updated to match snames.ads revision 1.215
25212 * snames.ads: Added Exec_Dir
25214 2001-12-17 Robert Dewar <dewar@gnat.com>
25216 * make.adb: Minor reformatting
25218 * prj-nmsc.adb: Minor reformatting
25220 * snames.adb: Updated to match snames.ads
25222 * snames.ads: Alphebetize entries for project file
25224 2001-12-17 Ed Schonberg <schonber@gnat.com>
25226 * trans.c (process_freeze_entity): Do nothing if the entity is a
25227 subprogram that was already elaborated.
25229 2001-12-17 Richard Kenner <kenner@gnat.com>
25231 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
25232 and Esize if object is referenced via pointer.
25234 2001-12-17 Ed Schonberg <schonber@gnat.com>
25236 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
25237 is discrete before analyzing choices.
25239 2001-12-17 Joel Brobecker <brobecke@gnat.com>
25241 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
25242 containing the name of the Ada Main Program. This string is mainly
25243 intended for the debugger.
25244 (Gen_Output_File_C): Do the equivalent change when generating a C file.
25246 2001-12-17 Robert Dewar <dewar@gnat.com>
25248 * ali.adb: Set new Dummy_Entry field in dependency entry
25250 * ali.ads: Add Dummy_Entry field to source dependency table
25252 * bcheck.adb (Check_Consistency): Ignore dummy D lines
25254 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
25256 * lib-writ.ads: Document dummy D lines for missing files.
25258 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
25260 2001-12-17 Robert Dewar <dewar@gnat.com>
25262 * ali.adb: Type reference does not reset current file.
25264 * ali.adb: Recognize and scan renaming reference
25266 * ali.ads: Add spec for storing renaming references.
25268 * lib-xref.ads: Add documentation for handling of renaming references
25270 * lib-xref.adb: Implement output of renaming reference.
25273 (Determine_Range): Document local variables
25274 (Determine_Range): Make sure Hbound is initialized. It looks as though
25275 there could be a real problem here with an uninitialized reference
25276 to Hbound, but no actual example of failure has been found.
25278 2001-12-17 Laurent Pautet <pautet@gnat.com>
25281 Fix comment of Shutdown_Socket and Close_Socket. These functions
25282 should not fail silently because if they are called twice, this
25283 probably means that there is a race condition in the user program.
25284 Anyway, this behaviour is consistent with the rest of this unit.
25285 When an error occurs, an exception is raised with the error message
25286 as exception message.
25288 2001-12-17 Robert Dewar <dewar@gnat.com>
25290 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
25291 that it happens before modification of Sloc values for -gnatD.
25293 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
25294 so that it happens before modification of Sloc values for -gnatD.
25296 * switch.adb: Minor reformatting
25298 2001-12-15 Richard Henderson <rth@redhat.com>
25300 * sem_ch7.adb: Wrap comment.
25302 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
25304 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
25305 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
25306 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
25307 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
25308 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
25309 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
25310 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
25311 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
25312 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
25313 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
25314 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
25315 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
25316 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
25317 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
25318 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
25319 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
25320 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
25321 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
25322 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
25323 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
25324 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
25325 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
25326 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
25327 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
25330 2001-12-14 Vincent Celier <celier@gnat.com>
25332 * osint.adb(Create_Debug_File): When an object file is specified,
25333 put the .dg file in the same directory as the object file.
25335 2001-12-14 Robert Dewar <dewar@gnat.com>
25337 * osint.adb: Minor reformatting
25339 * lib-xref.adb (Output_Instantiation): New procedure to generate
25340 instantiation references.
25342 * lib-xref.ads: Add documentation of handling of generic references.
25344 * ali.adb (Read_Instantiation_Ref): New procedure to read
25345 instantiation references
25347 * ali.ads: Add spec for storing instantiation references
25349 * bindusg.adb: Minor reformatting
25351 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25353 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25355 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25357 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
25361 Add 2001 to copyright date
25362 Add entry for Latin-5 (Cyrillic ISO-8859-5)
25364 2001-12-14 Matt Gingell <gingell@gnat.com>
25366 * adaint.c: mktemp is a macro on Lynx and can not be used as an
25369 2001-12-14 Richard Kenner <kenner@gnat.com>
25371 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
25372 if operand is CONSTRUCTOR.
25374 2001-12-14 Ed Schonberg <schonber@gnat.com>
25376 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
25377 before emiting check on right-hand side, so that exception information
25380 2001-12-14 Richard Kenner <kenner@gnat.com>
25382 * utils.c (create_var_decl): Throw away initializing expression
25383 if just annotating types and non-constant.
25385 2001-12-14 Vincent Celier <celier@gnat.com>
25387 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
25390 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
25392 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
25394 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
25396 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
25398 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
25400 * ChangeLog: Remove piece of diff output.
25402 2001-12-14 Geert Bosch <bosch@gnat.com>
25404 * config-lang.in: Update copyright notice
25406 * layout.adb: Remove commented out code.
25408 * mdllfile.ads: Update copyright notice. Fix header format.
25410 * sem_case.ads: Likewise.
25412 * sem_ch3.adb: Minor reformatting.
25414 2001-12-12 Geert Bosch <bosch@gnat.com>
25416 * freeze.ads: Update copyright date.
25418 * g-comlin.ads: Minor reformatting.
25420 * gnat-style.texi: Fix typo.
25422 2001-12-12 Geert Bosch <bosch@gnat.com>
25424 * einfo.h: Regenerate.
25426 2001-12-12 Ed Schonberg <schonber@gnat.com>
25428 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
25429 on known node types, rather than untyped fields. Further cleanups.
25431 2001-12-12 Robert Dewar <dewar@gnat.com>
25434 (Save_Entity_Descendant): Minor comment update.
25435 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
25436 of an N_Attribute_Reference node. As per note below, this does not
25437 eliminate need for Associated_Node in attribute ref nodes.
25438 (Associated_Node): Documentation explicitly mentions attribute
25439 reference nodes, since this field is used in such nodes.
25441 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
25443 2001-12-12 Robert Dewar <dewar@gnat.com>
25445 * s-stalib.adb: Add more comments on with statements being needed
25447 * par-ch12.adb: Minor reformatting
25449 * prj-dect.ads: Fix copyright header
25451 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
25452 inputs fit in 32 bits, but the result still overflows.
25454 * s-fatgen.ads: Minor comment improvement
25456 2001-12-12 Ed Schonberg <schonber@gnat.com>
25458 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
25459 formal derived type, look for an inherited component from the full
25460 view of the parent, if any.
25462 2001-12-12 Robert Dewar <dewar@gnat.com>
25464 * checks.ads (Apply_Alignment_Check): New procedure.
25466 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
25467 ensure that the alignment of objects with address clauses is
25468 appropriate, and raise PE if not.
25470 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
25471 Exp_Pakd.Known_Aligned_Enough
25473 * mdllfile.ads: Minor reformatting
25475 * mlib-fil.ads: Minor reformatting
25477 2001-12-12 Ed Schonberg <schonber@gnat.com>
25479 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
25480 fix to any component reference if enclosing record has non-standard
25483 2001-12-12 Vincent Celier <celier@gnat.com>
25485 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
25488 2001-12-12 Ed Schonberg <schonber@gnat.com>
25490 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
25493 2001-12-12 Robert Dewar <dewar@gnat.com>
25495 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
25497 2001-12-12 Emmanuel Briot <briot@gnat.com>
25499 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
25500 and it adds dependencies to system.io.
25502 2001-12-12 Pascal Obry <obry@gnat.com>
25504 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
25507 2001-12-11 Ed Schonberg <schonber@gnat.com>
25509 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
25510 that is the parent of other generics, the instance body replaces the
25511 instance node. Retrieve the instance of the spec, which is the one
25512 that is visible in clients and within the body.
25514 2001-12-11 Vincent Celier <celier@gnat.com>
25516 * gnatmain.adb: Initial version.
25518 * gnatmain.ads: Initial version.
25520 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
25522 * snames.adb: Updated to match snames.ads.
25524 * snames.ads: Added Gnatstub.
25526 2001-12-11 Vincent Celier <celier@gnat.com>
25528 * prj-attr.adb (Initialization_Data): Change name from
25529 Initialisation_Data.
25531 2001-12-11 Emmanuel Briot <briot@gnat.com>
25533 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
25534 + and * applied to backslashed expressions like \r.
25536 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
25538 * g-os_lib.ads: String_List type added, Argument_List type is now
25539 subtype of String_List.
25541 2001-12-11 Robert Dewar <dewar@gnat.com>
25543 * g-os_lib.ads: Change copyright to FSF
25544 Add comments for String_List type
25546 2001-12-11 Vincent Celier <celier@gnat.com>
25548 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
25549 string to the buffer).
25551 2001-12-11 Ed Schonberg <schonber@gnat.com>
25553 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
25556 * sem_attr.adb: Simplify previous fix for Address.
25557 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
25558 to avoid anomalies where the bound of the type appears to raise
25561 2001-12-11 Robert Dewar <dewar@gnat.com>
25563 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
25566 2001-12-11 Ed Schonberg <schonber@gnat.com>
25568 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
25569 renamed unit before checking for recursive instantiations.
25571 2001-12-11 Emmanuel Briot <briot@gnat.com>
25573 * prj.ads: Add comments for some of the fields.
25575 2001-12-11 Robert Dewar <dewar@gnat.com>
25577 * lib-xref.adb (Output_Refs): Don't output type references outside
25578 the main unit if they are not otherwise referenced.
25580 2001-12-11 Ed Schonberg <schonber@gnat.com>
25582 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
25583 code and diagnose additional illegal uses
25585 * sem_util.adb (Is_Object_Reference): An indexed component is an
25586 object only if the prefix is.
25588 2001-12-11 Vincent Celier <celier@gnat.com>
25590 * g-diopit.adb: Initial version.
25592 * g-diopit.ads: Initial version.
25595 (Expand_Path): Avoid use of Unbounded_String
25596 (Find, Wildcard_Iterator): Moved to child package Iteration
25598 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
25600 2001-12-11 Robert Dewar <dewar@gnat.com>
25602 * sem_attr.adb: Minor reformatting
25604 2001-12-11 Ed Schonberg <schonber@gnat.com>
25606 * sem_ch3.adb: Clarify some ???.
25608 2001-12-11 Robert Dewar <dewar@gnat.com>
25610 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
25611 Exp_Pakd.Known_Aligned_Enough
25613 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
25614 version is moved to Exp_Ch13.
25616 2001-12-11 Robert Dewar <dewar@gnat.com>
25618 * einfo.ads: Minor reformatting
25620 * exp_ch5.adb: Add comment for previous.change
25622 * ali.adb: New interface for extended typeref stuff.
25624 * ali.ads: New interface for typeref stuff.
25626 * checks.adb (Apply_Alignment_Check): New procedure.
25628 * debug.adb: Add -gnatdM for modified ALI output
25630 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
25632 * lib-xref.adb: Extend generation of <..> notation to cover
25633 subtype/object types. Note that this is a complete rewrite,
25634 getting rid of the very nasty quadratic algorithm previously
25635 used for derived type output.
25637 * lib-xref.ads: Extend description of <..> notation to cover
25638 subtype/object types. Uses {..} for these other cases.
25639 Also use (..) for pointer types.
25641 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
25643 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
25644 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
25646 2001-12-11 Vincent Celier <celier@gnat.com>
25649 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
25650 Changed /BIND_ONLY to /ACTIONS=BIND
25651 Changed /LINK_ONLY to /ACTIONS=LINK
25653 2001-12-11 Ed Schonberg <schonber@gnat.com>
25655 * sem_ch8.adb (Find_Selected_Component): improved search for a
25656 candidate package in case of error.
25658 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
25659 chain back on scope stack before reinstalling use clauses.
25661 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
25662 is enabled, do not kill the code for the condition, to preserve
25665 2001-12-11 Robert Dewar <dewar@gnat.com>
25667 * checks.adb (Insert_Valid_Check): Apply validity check to expression
25668 of conversion, not to result of conversion.
25670 2001-12-11 Ed Schonberg <schonber@gnat.com>
25672 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
25673 before freezing parent. If the declarations are mutually recursive,
25674 an access to the current record type may be frozen before the
25675 derivation is complete.
25677 2001-12-05 Vincent Celier <celier@gnat.com>
25679 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
25680 -c /COMPILE_ONLY, -l /LINK_ONLY
25683 (Bind_Only): New Flag
25684 (Link_Only): New flag
25686 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
25689 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
25692 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
25693 (Gnatmake): Set the step flags. Only perform a step if the
25694 corresponding step flag is True.
25695 (Scan_Make_Arg): Reset the bind and link step flags when -u
25696 or -gnatc has been specified.
25698 2001-12-05 Ed Schonberg <schonber@gnat.com>
25700 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
25701 get bounds from right operand.
25703 * sem_eval.adb: Minor reformatting
25705 * exp_util.adb (Make_Literal_Range): use bound of literal rather
25706 than Index'First, its lower bound may be different from 1.
25708 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
25711 2001-12-05 Vincent Celier <celier@gnat.com>
25713 * prj-nmsc.adb Minor reformatting
25715 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
25716 set and libraries are not supported.
25718 2001-12-05 Ed Schonberg <schonber@gnat.com>
25720 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
25721 private view explicitly, so the back-end can treat as a global
25724 2001-12-05 Ed Schonberg <schonber@gnat.com>
25726 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
25727 unit, always replace instance node with new body, for ASIS use.
25729 2001-12-05 Vincent Celier <celier@gnat.com>
25731 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
25732 libraries are not supported and both attributes Library_Name and
25733 Library_Dir are specified.
25735 * prj-proc.adb (Expression): Set location of Result to location of
25738 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
25739 (prj-nmsc is now importing MLib.Tgt)
25741 * prj-proc.adb: Put the change indicated above that was forgotten.
25743 2001-12-05 Robert Dewar <dewar@gnat.com>
25745 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
25747 2001-12-05 Ed Schonberg <schonber@gnat.com>
25749 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
25750 constraint, introduce explicit subtype declaration and derive from it.
25752 * sem_ch3.adb: Minor reformatting
25754 2001-12-05 Robert Dewar <dewar@gnat.com>
25756 * checks.adb (Determine_Range): Increase cache size for checks.
25759 * exp_ch6.adb: Minor reformatting
25760 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
25761 a parameter whose root type is System.Address, since treating such
25762 subprograms as pure in the code generator is almost surely a mistake
25763 that will lead to unexpected results.
25765 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
25766 change handling of conversions.
25768 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
25770 2001-12-05 Ed Schonberg <schonber@gnat.com>
25772 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
25773 aggregate with static wrong size, attach generated Raise node to
25776 2001-12-05 Robert Dewar <dewar@gnat.com>
25778 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
25779 Fixes compilation abandoned bomb in B24009B.
25781 2001-12-05 Ed Schonberg <schonber@gnat.com>
25784 Document use of Associated_Node on Selected_Components.
25785 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
25786 to clarify use of untyped descendant fields.
25788 2001-12-05 Robert Dewar <dewar@gnat.com>
25790 * prj-dect.ads: Add ??? comment
25791 Add 2001 to copyright notice (was not done in after all)
25793 * prj-part.adb: Minor reformatting. Reword one awkward error message.
25795 * prj.ads: Minor reformatting throughout, and add some ??? comments
25797 * snames.ads: Minor reformatting
25799 2001-12-05 Geert Bosch <bosch@gnat.com>
25801 * snames.adb: Autoupdate
25803 2001-12-05 Vincent Celier <celier@gnat.com>
25805 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
25807 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
25809 * prj-env.adb: Minor comment changes (modifying -> extends).
25811 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
25813 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
25816 * prj.adb (Initialize): Change Modifying to Extends.
25818 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
25820 * prj.ads: Minor comment change (Modifying -> extending).
25822 * snames.ads: Change modifying to extends.
25824 2001-12-05 Robert Dewar <dewar@gnat.com>
25826 * sem_warn.adb: Remove stuff for conditionals, we are not going to
25829 * sem_warn.ads: Remove stuff for conditionals, we are not going to
25830 do this after all. Add 2001 to copyright notice
25832 2001-12-04 Geert Bosch <bosch@gnat.com>
25834 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
25836 2001-12-04 Robert Dewar <dewar@gnat.com>
25838 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
25839 location if we already have errors. Stops some cases of cascaded
25842 * errout.adb: Improve comment.
25844 2001-12-04 Robert Dewar <dewar@gnat.com>
25847 (Analyze_Formal_Type_Definition): Defend against Error.
25848 (Analyze_Formal_Subprogram): Defend against Error.
25850 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
25851 remove following semicolon if present. Removes cascaded error.
25853 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
25856 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
25857 exceptions equals 0.
25858 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
25859 Fixes PIWG E tests (which have to be run with -gnatL).
25861 2001-12-04 Robert Dewar <dewar@gnat.com>
25863 * einfo.ads: Minor reformatting
25865 2001-12-04 Ed Schonberg <schonber@gnat.com>
25867 * einfo.ads: Block_Node points to the identifier of the block, not to
25868 the block node itself, to preserve the link when the block is
25869 rewritten, e.g. within an if-statement with a static condition.
25871 * inline.adb (Cleanup_Scopes): recover block statement from block
25872 entity using new meaning of Block_Node.
25874 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
25875 identifier of block node, rather than to node itself.
25877 2001-12-04 Gary Dismukes <dismukes@gnat.com>
25880 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
25881 (Discrimify): Go back to setting the Etypes of the selected component
25882 because the Vname component does not exist at this point and will
25883 fail name resolution. Also set Analyzed.
25884 Remove with and use of Sem_Res.
25886 2001-12-04 Arnaud Charlet <charlet@gnat.com>
25888 * Makefile.in: (HIE_SOURCES): add s-fat*.
25890 2001-12-04 Robert Dewar <dewar@gnat.com>
25893 (Compile_Time_Known_Attribute): New procedure.
25894 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
25895 proper range check.
25897 2001-12-04 Ed Schonberg <schonber@gnat.com>
25899 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
25900 processing discriminants to diagnose illegal default values.
25902 2001-12-04 Ed Schonberg <schonber@gnat.com>
25904 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
25905 access discriminant within a type extension that constrains its
25906 parent discriminants.
25908 2001-12-04 Ed Schonberg <schonber@gnat.com>
25910 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
25911 is malformed, use instance of Any_Id to allow analysis to proceed.
25913 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
25914 type definition is illegal.
25915 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
25918 2001-12-04 Ed Schonberg <schonber@gnat.com>
25920 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
25923 2001-12-04 Robert Dewar <dewar@gnat.com>
25925 * errout.adb: Minor reformatting
25927 2001-12-04 Robert Dewar <dewar@gnat.com>
25929 * exp_util.adb: Minor reformatting from last change
25931 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
25932 which is a rewriting of an expression, traverse the original
25933 expression to remove warnings that may have been posted on it.
25935 2001-12-04 Ed Schonberg <schonber@gnat.com>
25937 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
25938 record that has other packed components.
25940 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
25942 * adaint.c: Minor cleanups.
25944 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
25946 * adaint.c: Do not use utime.h on vxworks.
25948 2001-12-04 Arnaud Charlet <charlet@gnat.com>
25950 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
25951 more confusion than it solves.
25953 2001-12-04 Geert bosch <bosch@gnat.com>
25955 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
25957 2001-12-04 Geert Bosch <bosch@gnat.com>
25959 * Makefile.in (update-sources): New target.
25960 For use by gcc_release script.
25962 2001-12-04 Ed Schonberg <schonber@gnat.com>
25964 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
25965 a configuration pragma, it is now legal wherever a pragma can appear.
25967 2001-12-04 Zack Weinberg <zack@codesourcery.com>
25969 * Makefile.in: Don't set ALL. Delete @cross_defines@,
25970 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
25971 is now @CROSS@ -DIN_GCC; update comment.
25973 2001-12-04 Robert Dewar <dewar@gnat.com>
25975 * einfo.adb (Has_Pragma_Pure_Function): New flag.
25976 Fix problem that stopped ceinfo from working
25978 * einfo.ads (Has_Pragma_Pure_Function): New flag.
25980 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
25982 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
25985 (File_Time_Stamp): New procedure.
25986 (Preserve_Mode): New boolean.
25987 (Write_Unit): Pass time stamp.
25988 Implement -p switch (preserve time stamps).
25990 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
25992 * gnatchop.adb: Do usage info for -p switch
25994 * adaint.h (__gnat_set_file_time_name): New function
25996 * adaint.c (__gnat_set_file_time_name): Implement
25998 * adaint.h: Fix typo
26000 2001-12-03 Robert Dewar <dewar@gnat.com>
26002 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
26003 have Associated_Node.
26005 2001-12-03 Robert Dewar <dewar@gnat.com>
26007 * prj-proc.adb: Minor reformatting
26009 * make.adb: Minor reformatting
26011 2001-12-03 Geert Bosch <bosch@gnat.com>
26013 * make.adb: Minor reformatting.
26015 2001-12-03 Robert Dewar <dewar@gnat.com>
26017 * sem_ch12.adb: Minor reformatting
26019 2001-12-03 Ed Schonberg <schonber@gnat.com>
26021 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
26022 push Standard on the stack before analyzing the instance body,
26023 in order to have a clean visibility environment.
26025 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
26027 2001-12-03 Ed Schonberg <schonber@gnat.com>
26029 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
26030 instantiation of a body that contains an inlined body.
26032 2001-12-03 Ed Schonberg <schonber@gnat.com>
26035 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
26036 to prevent freezing within formal packages.
26037 (Freeze_Subprogram_Body): If body comes from another instance that
26038 appeared before its own body, place freeze node at end of current
26039 declarative part, to prevent a back-end crash.
26040 (Inline_Instance_Body): Handle properly a package instance within
26041 a subprogram instance that is a child unit.
26043 2001-12-01 Graham Stott <grahams@redhat.com>
26045 * Makefile.in (misc.o): Add missing $(srcdir) prefix
26046 and add optabs.h dependency.
26048 * misc.c: Include optabs.h
26049 (gnat_tree_code_type): Make static and const.
26050 (gnat_tree_code_length): Likewise.
26051 (gnat_tree_code_name): Likewise.
26052 (update_setjmp_buf): Obtain operands mode from insn_data.
26054 2001-11-29 Richard Henderson <rth@redhat.com>
26056 * init.c: Remove obsolete dwarf2 frame.h section.
26058 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
26060 * Make-lang.in (ada.generated-manpages): New dummy target.
26062 2001-11-29 Ed Schonberg <schonber@gnat.com>
26064 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
26065 into Command, an array conversion is illegal here. Uncovered by
26068 2001-11-28 Geert Bosch <bosch@gnat.com>
26070 * init.c: Minor whitespace changes.
26072 2001-11-28 Doug Rupp <rupp@gnat.com>
26074 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
26077 2001-11-28 Zack Weinberg <zack@codesourcery.com>
26079 * misc.c (gnat_expand_constant): Move declaration above
26080 definition of lang_hooks.
26081 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
26082 (gnat_init): lang_expand_constant no longer exists.
26084 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
26085 always have vprintf.
26086 (gnat_init): Always call set_internal_error_function.
26088 2001-11-27 Andreas Jaeger <aj@suse.de>
26090 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
26092 2001-11-27 Laurent Guerby <guerby@acm.org>
26094 * Makefile.in: Regenerate Ada dependencies.
26096 2001-11-26 Richard Henderson <rth@redhat.com>
26098 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
26099 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
26100 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
26102 2001-11-25 Laurent Guerby <guerby@acm.org>
26104 * sysdep.c (rts_get_*): Fix style.
26106 2001-11-19 Laurent Guerby <guerby@acm.org>
26108 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
26109 since it is of no apparent use and cause warnings.
26111 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
26113 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
26115 (gnat_init): Don't return NULL.
26116 (finish_parse): Remove.
26118 2001-11-17 Laurent Guerby <guerby@acm.org>
26120 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
26121 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
26122 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
26123 * lang-spec.h: Add missing struct field to silence warnings.
26124 * sysdep.c (rts_get_*): Provide K&R prototype.
26125 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
26126 * traceback.c (Unlock_Task, Lock_Task): Likewise.
26127 * tracebak.c (__gnat_backtrace): Remove unused variable.
26128 * utils.c (end_subprog_body): Move to K&R style.
26130 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26132 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
26134 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
26136 * misc.c (gnat_init): Change prototype. Include the
26137 functionality of the old init_parse and init_decl_processing.
26138 (gnat_init_decl_processing): New prototype.
26139 (init_parse): Remove.
26140 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
26142 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
26144 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
26145 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
26146 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
26147 set_yydebug): Remove.
26149 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
26151 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
26152 (struct lang_hooks): Constify.
26153 (language_string, lang_identify): Remove.
26154 * utils.c (init_decl_processing): Update.
26156 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
26158 * misc.c: Include langhooks-def.h.
26159 * Makefile.in: Update.
26161 2001-10-30 Robert Dewar <dewar@gnat.com>
26164 (Check_Identifier): Rewrite circuit to be compatible with use of letters
26165 in the upper half of ASCII.
26166 (Check_Identifier): Minor reformatting
26168 2001-10-30 Geert Bosch <bosch@gnat.com>
26170 * (Associated_Node, Set_Associated_Node): Do not check for
26173 2001-10-30 Robert Dewar <dewar@gnat.com>
26175 * a-reatim.ads: Minor reformatting
26177 2001-10-30 Robert Dewar <dewar@gnat.com>
26179 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
26180 undocumented declarations.
26182 2001-10-30 Pascal Obry <obry@gnat.com>
26184 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
26185 to the binder and linker.
26188 * mdll.ads: Fix layout. Update copyright notice.
26190 * mdll.adb: Fix layout. Update copyright notice.
26192 2001-10-30 Robert Dewar <dewar@gnat.com>
26194 * usage.adb: Minor fix to output for -gnaty.
26196 2001-10-30 Ed Schonberg <schonber@gnat.com>
26198 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
26199 to accommodate all its possible values.
26201 * a-reatim.adb (Split): Special-case handling of Time_Span_First
26202 and of small absolute values of T.
26204 2001-10-30 Richard Kenner <kenner@gnat.com>
26206 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
26207 set_mem_attributes since not needed and wrong if RESULT if a REG;
26208 fixes ACATS failures.
26210 2001-10-30 Geert Bosch <bosch@gnat.com>
26212 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
26213 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
26215 2001-10-30 Robert Dewar <dewar@gnat.com>
26217 * bindusg.adb: Undocument -f switch.
26219 * gnatcmd.adb: Remove /FULL_ELABORATION.
26221 * opt.ads (Force_RM_Elaboration_Order): Document that this is
26224 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
26226 * gnatbind.adb: Minor update of warning msg.
26228 2001-10-30 Vincent Celier <celier@gnat.com>
26230 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
26231 for project file switches (-P (/PROJECT_FILE=),
26232 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
26235 2001-10-30 Geert Bosch <bosch@gnat.com>
26237 * decl.c: Minor whitespace fixes.
26239 2001-10-30 Richard Kenner <kenner@gnat.com>
26241 * utils2.c (build_allocator): Test for SIZE overflow in array case too
26243 2001-10-30 Geert Bosch <bosch@gnat.com>
26245 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
26246 Found due to GCC 3.0 warning of using uninitialized value.
26249 (Get_Max_Size): Use variant record for tracking value/expression.
26250 Makes logic clearer and prevents warnings for uninitialized variables.
26251 (Layout_Array_Type): Use variant record for tracking value/expression.
26252 Makes logic clearer and prevents warnings for uninitialized variables.
26254 2001-10-30 Robert Dewar <dewar@gnat.com>
26256 * lib.adb: Minor reformatting
26258 * s-taprop.ads: Minor reformatting
26260 2001-10-29 Laurent Guerby <guerby@acm.org>
26263 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
26265 (_gnat_error_handler): Make MSG const.
26267 2001-10-29 Richard Kenner <kenner@gnat.com>
26269 * sysdep.c: Fix localtime_r problem on LynxOS.
26270 Also remove #elif to avoid warnings.
26272 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
26275 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
26277 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
26279 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
26280 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
26281 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
26282 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
26283 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
26284 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
26285 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
26286 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
26287 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
26288 types.ads, urealp.adb: Fix spelling errors.
26290 2001-10-27 Laurent Guerby <guerby@acm.org>
26292 * trans.c (gigi): Fix non determinism leading to bootstrap
26293 comparison failures for debugging information.
26295 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
26297 * gnat_rm.texi: Use @./@: where appropriate.
26299 2001-10-26 Robert Dewar <dewar@gnat.com>
26301 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
26303 2001-10-26 Richard Kenner <kenner@gnat.com>
26305 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
26307 2001-10-26 Richard Kenner <kenner@gnat.com>
26309 * decl.c (validate_size): Modify message for bad size to avoid
26310 implication that compiler is modifying the size.
26312 2001-10-26 Robert Dewar <dewar@gnat.com>
26314 * prj-util.adb: Minor reformatting. Fix bad header format.
26316 2001-10-26 Robert Dewar <dewar@gnat.com>
26318 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
26320 * sinfo.ads: Clarify use of Associated_Node (documentation only).
26322 * sem_ch12.adb: Change Node4 to Associated_Node. Change
26323 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
26324 much more narrowly in places where needed. These are cleanups.
26326 2001-10-26 Joel Brobecker <brobecke@gnat.com>
26328 * 5zosinte.ads (null_pthread): new constant.
26331 (Initialize_TCB): Initialize thread ID to null, to be able to verify
26332 later that this field has been set.
26333 (Finalize_TCB): ditto.
26334 (Suspend_Task): Verify that the thread ID is not null before using it.
26335 (Resume_Task): ditto.
26338 (Resume_All_Tasks): Lock the tasks list before using it.
26339 (Suspend_All_Tasks): ditto.
26341 2001-10-26 Richard Kenner <kenner@gnat.com>
26343 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
26344 Make constant variant of designated type for Is_Access_Constant.
26345 Call update_pointer_to with main variant.
26347 * trans.c (process_freeze_entity, process_type):
26348 Call update_pointer_to on main variant.
26350 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
26351 If main variant, update all other variants.
26353 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
26356 2001-10-26 Robert Dewar <dewar@gnat.com>
26358 * prj-util.adb: Minor reformatting
26360 2001-10-26 Robert Dewar <dewar@gnat.com>
26362 * prj-util.adb: Minor reformatting
26364 2001-10-26 Robert Dewar <dewar@gnat.com>
26366 * prj-attr.adb: Minor reformatting throughout
26368 2001-10-26 Robert Dewar <dewar@gnat.com>
26370 * prj-attr.ads: Minor reformatting
26371 Add ??? comment (this whole spec has almost no comments)
26373 2001-10-26 Vincent Celier <celier@gnat.com>
26375 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
26376 ("//") that precede the drive letter on Interix.
26378 2001-10-26 Geert Bosch <bosch@gnat.com>
26380 * gnat_rm.texi: Add GNAT Reference Manual.
26382 2001-10-25 Robert Dewar <dewar@gnat.com>
26384 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
26385 is Error. Similar change for other renaming cases.
26387 2001-10-25 Robert Dewar <dewar@gnat.com>
26389 * s-atacco.ads: Add pragma Inline_Always for functions.
26390 Fix header format. Add copyright 2001
26392 2001-10-25 Ed Schonberg <schonber@gnat.com>
26394 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
26395 return Error rather than Empty so that analysis can proceed.
26397 2001-10-25 Ed Schonberg <schonber@gnat.com>
26399 * sem_util.adb (Enter_Name): better handling of cascaded error
26400 messages when a unit appears in its own context.
26402 2001-10-25 Ed Schonberg <schonber@gnat.com>
26404 * sem_util.adb (Defining_Entity): in case of error, attach created
26405 entity to specification, so that semantic analysis can proceed.
26407 2001-10-25 Robert Dewar <dewar@gnat.com>
26410 (Defining_Entity): Deal with Error.
26411 (Process_End_Label): Deal with bad end label for.
26413 2001-10-25 Ed Schonberg <schonber@gnat.com>
26415 * sem_elab.adb (Check_A_Call): refine message when call is in an
26416 instance but callee is not declared in the generic unit.
26418 2001-10-25 Ed Schonberg <schonber@gnat.com>
26420 * sem_elab.adb (Check_A_Call): check for renaming before finding the
26421 enclosing unit, which may already be different from the calling unit.
26423 2001-10-25 Geert Bosch <bosch@gnat.com>
26425 * 4gintnam.ads: fix header format.
26427 2001-10-25 Ed Schonberg <schonber@gnat.com>
26429 * sem_res.adb (Resolve_Call): if the call is actually an indexing
26430 operation on the result of a parameterless call, perform elaboration
26431 check after the node has been properly rewritten.
26433 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
26434 inlined within the generic tree, the defining identifier is not a
26437 2001-10-25 Ed Schonberg <schonber@gnat.com>
26439 * sem_res.adb (Resolve): special-case resolution of Null in an
26440 instance or an inlined body to avoid view conflicts.
26442 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
26443 compatibility by retrieving the access type of the generic copy.
26445 2001-10-25 Robert Dewar <dewar@gnat.com>
26448 (Analyze_Number_Declaration): Handle error expression.
26449 (Signed_Integer_Type_Declaration): Handle error bound.
26450 (Analyze_Subtype_Indication): Handle error range.
26452 * sem_util.adb (Get_Index_Bounds): Check for Error.
26454 2001-10-25 Robert Dewar <dewar@gnat.com>
26456 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
26457 in no run time mode.
26459 2001-10-25 Pascal Obry <obry@gnat.com>
26461 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
26462 mode case for ALLOC case.
26464 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
26465 all platforms. Improvement of last change.
26467 2001-10-25 Robert Dewar <dewar@gnat.com>
26469 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
26471 2001-10-25 Geert Bosch <bosch@gnat.com>
26473 * osint.adb (Is_Relative): Remove duplicate.
26475 2001-10-25 Pascal Obry <obry@gnat.com>
26477 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
26478 pathnames in UNIX and DOS style with drive letter.
26479 (Is_Relative): new routine.
26481 * osint.adb: Minor reformatting
26483 * osint.adb (Is_Relative): implementation using
26484 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
26486 2001-10-25 Pascal Obry <obry@gnat.com>
26488 * g-dirope.adb (Basename): correctly compute offset between the
26489 original Path and the translated one.
26491 * g-dirope.adb: (Base_Name): add some comments.
26493 2001-10-25 Robert Dewar <dewar@gnat.com>
26495 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
26496 in HIE mode, avoids compilation abandoned message
26498 * exp_imgv.adb: Correct typo in previous change
26500 * exp_imgv.adb: Correct typo in previous change (not my day!)
26502 2001-10-25 Robert Dewar <dewar@gnat.com>
26504 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
26506 2001-10-25 Pascal Obry <obry@gnat.com>
26508 * g-awk.ads: Move all pragma inlines next to the routine
26509 declarations. This is more uniform with other GNAT spec.
26511 2001-10-22 Geert Bosch <bosch@gnat.com>
26513 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
26515 2001-10-19 Geert Bosch <bosch@gnat.com>
26517 * Makefile.in (tools, gnattools): Remove gnatmem.
26519 2001-10-17 Richard Henderson <rth@redhat.com>
26521 * Makefile.in (misc.o): Depend on langhooks.h.
26522 * misc.c: Include it.
26523 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
26524 (LANG_HOOKS_DECODE_OPTION): New.
26525 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
26527 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
26529 * trans.c (tree_transform): Adjust to recent change in
26530 expand_asm_operands to implement named asm operands.
26532 2001-10-11 Ed Schonberg <schonber@gnat.com>
26534 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
26535 renaming of discriminant for mutable record type.
26537 2001-10-11 Robert Dewar <dewar@gnat.com>
26539 * validsw.adb: Properly save -gnatVn status.
26541 2001-10-11 Robert Dewar <dewar@gnat.com>
26543 * usage.adb: Add lines for V switch.
26545 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
26546 (/VALIDITY_CHECKING).
26548 2001-10-11 Ed Schonberg <schonber@gnat.com>
26550 * sem_type.adb (Add_One_Interp): an operator for a type declared in
26551 an extension of System is known to be visible.
26553 2001-10-11 Ed Schonberg <schonber@gnat.com>
26555 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
26556 properly. Fixes regression on ACATS C34005G.
26558 2001-10-11 Robert Dewar <dewar@gnat.com>
26560 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
26561 loop in generic instance, since this is likely not very useful.
26563 2001-10-11 Robert Dewar <dewar@gnat.com>
26565 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
26566 the error message for high integrity mode.
26568 * rtsfind.adb (RTE): Give message if we try to find an entity that
26569 is not available in high integrity mode.
26572 (OK_To_Use_In_HIE_Mode): New array.
26573 (RTE): May return Empty in high integrity mode.
26575 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
26576 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
26578 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
26579 unit if not inlined always and in no runtime mode. Fixes problem
26580 caused by new Rtsfind changes.
26582 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
26585 * rtsfind.adb (RTE): Make sure we do not try to load unit after
26586 giving message for entity not available in high integrity mode.
26588 2001-10-11 Pascal Obry <obry@gnat.com>
26590 * impunit.adb: Add GNAT.CRC32.
26592 2001-10-11 Ed Schonberg <schonber@gnat.com>
26594 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
26595 properly the case where one universal operand in a non-static
26596 exponentiation of a real literal.
26598 2001-10-11 Ed Schonberg <schonber@gnat.com>
26600 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
26601 clause, return the gobal finalization list, for lack of anthing else.
26603 2001-10-11 Ed Schonberg <schonber@gnat.com>
26605 * exp_ch7.adb (Make_Transient_Block): if statement is within
26606 exception handler, always use new transient scope to place Clean
26609 2001-10-11 Pascal Obry <obry@gnat.com>
26612 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
26613 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
26614 (GNATLS_RTL_OBJS): add g-crc32.o
26615 (GNATMAKE_RTL_OBJS): add g-crc32.o
26618 (CRC_Match): new function.
26619 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
26620 instead of the previous simple checksum algorithm.
26621 (Time_Stamp_Mismatch): use CRC_Match for comparison.
26622 (Set_Source_Table): idem.
26625 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
26626 instead of simple checksum.
26627 (CRC_Match): new function.
26628 (CRC_Error): new constant.
26630 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
26631 a CRC now and not a simple checksum. A CRC uses lower-case hex
26632 letters, fixes ambiguity in parsing.
26634 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
26635 is what this variable will store.
26637 * bcheck.adb: Change reference to chechsum in comments by CRC.
26638 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
26639 rename All_Checksum_Match to All_CRC_Match. Change due to API
26640 renaming since now GNAT does not use a simple checksum but a
26641 CRC using GNAT.CRC32.
26643 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
26644 now and not anymore a simple checksum.
26646 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
26649 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
26652 (Restore_Scan_State): rename Checksum to CRC.
26653 (Save_Scan_State): idem.
26657 (Checksum): rename to CRC.
26658 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
26660 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
26661 GNAT.CRC32). Update copyright notice.
26663 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
26664 GNAT.CRC32). Update copyright notice.
26667 (Accumulate_Checksum): removed.
26668 (Update): new procedure. Add a wide-character into the CRC.
26671 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
26672 (Load_File): fix initialization of S (change Source_Checksum to
26675 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
26676 Source_CRC in S initialization.
26678 * sinput.adb (Source_Checksum): renamed to Source_CRC.
26680 * sinput.ads (Source_Checksum): renamed to Source_CRC.
26681 Update comments for the CRC.
26683 * types.adb (Hex): Use lowercase for the letter part.
26685 * types.ads (Get_Hex_String): Returns the hexadecimal representation
26686 for a word. This is currently used only for CRC. In previous version,
26687 the checksum was using a representation with all letter being
26688 upper-case. With the new implementation (using CRC) we do not remove
26689 the 32th bit of the CRC, so we can have an upper-case starting letter
26690 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
26691 It is ambigous since the CRC was optional and could be followed by
26692 options like EB, EE. So now this routines uses lower-case letter for
26693 the hexadecimal representation. Strange enough only lower case letters
26694 where checked in Scan_ALI (even if this was not a possible case).
26696 * gnatvsn.ads (Library_Version): changed to 3.15a.
26698 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
26701 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
26704 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
26705 Add 2001 to copyright notice
26706 (Accumulate_Checksum): Modify to use System.CRC32.
26708 * ali-util.ads: Redo changes of previous revision to continue to use
26709 the word Checksum. Add 2001 to copyright notice.
26711 * ali.adb: Undo some of previous changes, not needed.
26712 Keep the change for lower case letters in the checksum.
26714 * ali.ads: Undo previous change not needed.
26716 * bcheck.adb: Undo most of previous change, not needed.
26717 But do use Checksums_Match for checksum comparison.
26719 * gnatls.adb: Undo most of previous change, not needed.
26720 But do use Checksums_Match for comparing checksums.
26722 * lib-load.adb: Undo previous change, not needed.
26724 * lib-writ.adb: Undo previous change, not needed.
26726 * lib-writ.ads: Document that checksums use lower case,
26727 not upper case letters.
26729 * scans.adb: Undo previous change, not needed
26731 * scans.ads: Undo previous change, not needed.
26733 * scn-nlit.adb: Undo previous changes, not needed.
26735 * scn-slit.adb: Undo previous change, not needed. Fix header format.
26738 (Accumulate_Checksum): Use System.CRC32.
26739 (Initialize_Checksum): New procedure.
26740 Remove other changes of previous revision.
26742 * sinput-p.adb: Undo previous change, not needed.
26744 * sinput.adb: Undo previous change, not needed.
26746 * sinput-l.adb: Undo previous change, not needed.
26748 * sinput.ads: Undo previous change, not needed. Keep only comment
26749 on new checksum algorithm
26751 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
26752 Also remove a-tags and a-stream from GNAT sources.
26754 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
26756 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
26758 2001-10-11 Geert Bosch <bosch@gnat.com>
26760 * einfo.h: Regenerate.
26762 * nmake.ads: Regenerate.
26764 * nmake.adb: Regenerate.
26766 * sinfo.h: Regenerate.
26768 * treeprs.adb: Regenerate.
26770 2001-10-10 Geert Bosch <bosch@gnat.com>
26772 * gnat-style.texi: New file describing coding guidelines for Ada.
26774 2001-10-10 Ed Schonberg <schonber@gnat.com>
26776 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
26779 2001-10-10 Geert Bosch <bosch@gnat.com>
26781 * snames.ads: Add new names for project facility.
26783 * snames.adb: Update to reflect snames.ads changes.
26785 * snames.h: Update to reflect snames.ads changes.
26787 2001-10-10 Vincent Celier <celier@gnat.com>
26790 (Add_Switches): reflect the changes for the switches attributes
26791 Default_Switches indexed by the programming language,
26792 Switches indexed by the file name.
26793 (Collect_Arguments_And_Compile): Idem.
26794 Reflect the attribute name changes.
26797 (Initialisation_Data): Change the names of some packages and
26799 (Initialize): process case insensitive associative arrays.
26802 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
26805 (Parse_Attribute_Declaration): For case insensitive associative
26806 arrays, set the index string to lower case.
26809 Reflect the changes of the project attributes.
26812 Replace Check_Naming_Scheme by Ada_Check and
26813 Language_Independent_Check.
26816 Replaced Check_Naming_Scheme by 2 procedures:
26817 Ada_Check and Language_Independent_Check.
26820 (Process_Declarative_Items): For case-insensitive associative
26821 arrays, set the index string to lower case.
26822 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
26823 Prj.Nmsc.Check_Naming_Scheme.
26826 (Case_Insensitive): New function
26827 (Set_Case_Insensitive): New procedure
26830 (Case_Insensitive): New function
26831 (Set_Case_Insensitive): New procedure
26832 (Project_Node_Record): New flag Case_Insensitive.
26835 (Value_Of): new function to get the string value of a single
26836 string variable or attribute.
26839 (Value_Of): new function to get the string value of a single
26840 string variable or attribute.
26843 (Ada_Default_Spec_Suffix): New function
26844 (Ada_Default_Impl_Suffix): New function
26845 Change definitions of several constants to reflect
26846 new components of record types.
26849 (Naming_Data): Change several components to reflect new
26850 elements of naming schemes.
26851 (Project_Data): New flags Sources_Present and
26852 Language_Independent_Checked.
26853 (Ada_Default_Spec_Suffix): New function.
26854 (Ada_Default_Impl_Suffix): New function.
26857 Modification of predefined names for project manager: added
26858 Implementation, Specification_Exceptions, Implementation_Exceptions,
26859 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
26860 Default_Switches, _Languages, Builder, Cross_Reference,
26861 Finder. Removed Body_Part, Specification_Append, Body_Append,
26862 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
26865 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
26868 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
26869 not that it is Nil_Variable_Value.
26871 * prj.ads: Add ??? for uncommented declarations
26873 2001-10-10 Ed Schonberg <schonber@gnat.com>
26875 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
26876 constant, do not indicate possible modification, so that gigi can
26877 treat it as a bona fide constant.
26879 2001-10-10 Robert Dewar <dewar@gnat.com>
26881 * sem_prag.adb: Add processing for pragma External.
26883 * snames.ads: Add entry for pragma External.
26885 * par-prag.adb: Add pragma External.
26887 * snames.adb: Updated to match snames.ads.
26889 2001-10-10 Ed Schonberg <schonber@gnat.com>
26891 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
26892 a dynamic task if the allocator appears in an indexed assignment
26893 or selected component assignment.
26895 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
26896 For a dynamic task in an assignment statement, use target of
26897 assignment to generate meaningful name.
26899 2001-10-10 Ed Schonberg <schonber@gnat.com>
26901 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
26904 * einfo.ads: Body_Entity is also defined for generic package.
26905 Documentation change only
26907 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
26908 others_choice for a discriminated component initialization,
26909 convert discriminant references into the corresponding discriminals.
26911 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
26912 only if original type is private and expression has to be wrapped
26916 (Apply_Constraint_Check): Do not perform length check
26917 if expression is an aggregate with only an others_choice.
26918 (Length_N_Cond): two references to the same in_parameter
26919 (typically the discriminal in an init_proc) denote the same value.
26920 Two useful optimization uncovered by bugfixes above.
26922 2001-10-10 Robert Dewar <dewar@gnat.com>
26924 * xeinfo.adb: Change int to char in translation of enumeration types.
26925 This fixes a problem in the C representation of component alignment.
26926 Add 2001 to copyright notice
26928 2001-10-10 Richard Kenner <kenner@gnat.com>
26930 * decl.c: (validate_size): Do check size of object of integral type
26931 if it is a packed array type.
26933 2001-10-10 Richard Kenner <kenner@gnat.com>
26935 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
26936 VAR_DECL for constant if not Is_Public but -O0.
26938 2001-10-10 Richard Kenner <kenner@gnat.com>
26940 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
26942 2001-10-10 Geert Bosch <bosch@gnat.com>
26944 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
26945 use '/' as switch character, allowing for absolute file names.
26947 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
26949 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
26952 2001-10-08 Geert Bosch <bosch@gnat.com>
26954 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
26955 Automatically build utilities when files need to be regenerated.
26957 2001-10-08 Geert Bosch <bosch@gnat.com>
26959 * xsnames.adb: New utility for updating snames.ads and snames.adb
26961 2001-10-08 Zack Weinberg <zack@codesourcery.com>
26963 * Make-lang.in (ADAFLAGS): Add -W -Wall.
26964 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
26965 (gnat1): Also depend on attribs.o.
26966 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
26967 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
26968 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
26969 (ADAFLAGS): Add -W -Wall.
26970 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
26973 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
26974 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
26975 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
26976 Use $(ADAC), not $(CC), as compilation command.
26978 (gnattools): Depend directly on tools to build, don't use
26980 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
26982 * einfo.h, sinfo.h: New files (autogenerated).
26984 2001-10-08 Richard Henderson <rth@redhat.com>
26986 * comperr.adb (Abort_In_Progress): New.
26987 (Compiler_Abort): Use it to prevent recursion.
26989 2001-10-08 Robert Dewar <dewar@gnat.com>
26991 * atree.adb: Set Error_Posted in Error node, helps error recovery.
26993 * par-endh.adb (Output_End_Expected): We should also not test
26994 Error_Posted on the Error node, since now it is always set.
26996 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
26997 to help error recovery. Part of general work on 9407-004.
26999 * par.adb: Add ??? for misuse of error
27002 (Resolve): Defend against Error, fixes 9407-003.
27003 (Resolve_Discrete_Subtype_Indication): Defend against Error.
27005 * sinfo.ads (N_Error): Now has Etype field (which will be set
27006 to Any_Type to help error recovery).
27008 2001-10-08 Richard Kenner (kenner@gnat.com)
27010 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
27011 Consistently set MEM attributes from expression; fixes
27012 bootstrap failure on x86.
27014 2001-10-08 Geert Bosch (bosch@gnat.com)
27016 * 5oosinte.adb: Add 2001 to copyright notice.
27018 2001-10-08 Geert Bosch (bosch@gnat.com)
27020 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
27022 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
27024 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
27026 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
27028 2001-10-05 Geert Bosch (bosch@gnat.com)
27030 * adaint.h: Small formatting fix.
27032 2001-10-04 Geert Bosch <bosch@gnat.com>
27034 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
27035 Arg is int, not FILE *, in dummy version of functions.
27037 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
27038 Arg is int, not FILE *.
27040 2001-10-04 Geert Bosch <bosch@gnat.com>
27042 * 3lsoccon.ads: Added file, missed with initial check ins.
27044 * 4lintnam.ads: Fix header format.
27045 Change Linux to GNU/Linux.
27047 * 5iosinte.adb: Change Linux to GNU/Linux.
27049 * 5iosinte.ads: Change Linux to GNU/Linux.
27051 * 5itaprop.adb: Change Linux to GNU/Linux.
27053 * 5itaspri.ads: Change Linux to GNU/Linux.
27054 Update copyright notice.
27056 * 5lintman.adb: Change Linux to GNU/Linux.
27058 * 5lml-tgt.adb: Change Linux to GNU/Linux.
27060 * 5losinte.ads: Change Linux to GNU/Linux.
27062 * 5lsystem.ads: Change Linux to GNU/Linux.
27064 * 5qosinte.adb: Change Linux to GNU/Linux.
27066 * 5qosinte.ads: Change Linux to GNU/Linux.
27068 * 5qparame.ads: Change Linux to GNU/Linux.
27070 * 5qtaprop.adb: Change Linux to GNU/Linux.
27072 * 5qtaspri.ads: Change Linux to GNU/Linux.
27073 Add 2001 to copyright notice.
27075 * 5vintman.ads: Change Linux to GNU/Linux.
27076 Fix header format. Add 2001 to copyright notice.
27078 * g-soccon.ads: Change Linux to GNU/Linux.
27080 * g-trasym.ads: Change Linux to GNU/Linux.
27081 Add 2001 to copyright notice.
27083 * memtrack.adb: Change Linux to GNU/Linux.
27085 * s-intman.ads: Change Linux to GNU/Linux.
27086 Add 2001 to copyright notice. Fix header format.
27088 * s-stache.adb: Change Linux to GNU/Linux.
27090 * adaint.c: Change Linux to GNU/Linux.
27092 * cio.c: Change Linux to GNU/Linux.
27094 * cstreams.c: Change Linux to GNU/Linux.
27096 * init.c: Change Linux to GNU/Linux.
27098 * gmem.c: Change Linux to GNU/Linux.
27100 * tracebak.c: Change Linux to GNU/Linux.
27103 2001-10-02 Geert Bosch <bosch@gnat.com>
27105 * misc.c (insert_default_attributes): Add dummy version.