1 2005-11-03 James E Wilson <wilson@specifix.com>
4 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
7 2005-09-21 Olivier Hainque <hainque@adacore.com>
10 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
11 as we create them to store a size in bits.
13 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
21 * utils2.c (build_return_expr): New helper function.
22 * gigi.h (build_return_expr): Declare it.
23 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
24 of manually building the RETURN_EXPR tree.
25 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
26 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
27 build_binary_op for the "target pointer" case. Use build_return_expr
28 instead of manually building the RETURN_EXPR tree.
30 2005-09-16 Laurent GUERBY <laurent@guerby.net>
33 * s-tpinop.ads: Make this unit Preelaborate.
35 2005-09-16 Andreas Jaeger <aj@suse.de>
37 * socket.c: Add string.h for memcpy.
39 2005-09-05 Arnaud Charlet <charlet@adacore.com>
41 * dec-io.ads, dec-io.adb: Removed, no longer used.
43 2005-09-01 Arnaud Charlet <charlet@adacore.com>
45 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
47 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
48 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
49 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
50 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
51 dependent units are Preelaborate.
52 (Initialize): Call Interrupt_Managemeent.Initialize and
53 OS_Primitives.Initialize to ensure proper initialization of this unit.
54 Remove use of System.Soft_Links
55 Make this unit Preelaborate.
57 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
58 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
59 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
60 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
61 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
62 s-tratas.ads, s-tasinf.ads: Minor reformatting.
63 Add pragma Preelaborate, since these packages are suitable for this
67 * s-traent-vms.ads, s-intman-dummy.adb,
68 s-taprop-dummy.adb: Make this unit Preelaborate.
70 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
71 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
72 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
73 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
74 s-intman-solaris.adb, s-intman-irix-athread.adb,
75 s-intman-irix.adb: Mark this unit Preelaborate.
76 (Initialize): New procedure.
79 * s-taspri-linux.ads: Removed.
81 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
82 as done by other implementations (e.g. posix).
84 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
85 responsible for deferring abort.
86 Mark this unit Preelaborate.
88 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
89 proper initialization of the tasking run-time.
91 * s-tasdeb.ads: Mark this unit Preelaborate.
92 (Known_Tasks): Add explicit default value to avoid elaboration code.
94 * s-inmaop-vms.adb (Elaboration code): Add call to
95 Interrupt_Management.Initialize since the elaboration code depends on
96 proper initialization of this package.
98 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
99 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
100 s-osprim-posix.adb: Make this unit Preelaborate.
102 * a-calend.adb: Add call to OS_Primitives.Initialize
104 * a-elchha.adb: Update use of Except.Id.Full_Name.
106 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
108 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
109 Move with clauses outside Warnings Off now that dependent units are
111 Use raise xxx with "..."; Ada 2005 form.
113 * a-taside.ads, a-taside.adb:
114 Remove some dependencies, to make it easier to make this unit truly
116 Rewrite some code to be conformant with Preelaborate rules.
118 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
119 marked Preelaborate in the future.
121 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
122 these units Preelaborate.
124 * s-exctab.adb: Update use of Except.Id.Full_Name.
126 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
127 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
128 Set_Exc_Stack_Addr): Removed, no longer used.
129 Remove reference to *Machine_State_Addr*, no longer needed.
131 * s-stalib.ads: Mark this unit as Preelaborate[_05].
132 (Exception_Data): Full_Name is now a System.Address so that this unit
133 can be made Preelaborate.
134 Clean up/simplify code thanks to Full_Name being a System.Address.
135 Remove obsolete pragma Suppress (All_Checks), no longer needed.
137 * s-taskin.ads, s-taskin.adb:
138 Move with clauses outside Warnings Off now that dependent units are
140 Make this unit Preelaborate.
141 (Initialize): New proceduure, replace elaboration code and makes the
142 set up of the tasking run-time cleaner.
143 (Detect_Blocking): Now a function instead of a deferred boolean, to
144 obey Preelaborate rules.
146 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
147 soft links, no longer used.
149 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
150 packages are suitable for this categorization.
152 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
153 since we compile run-time sources in Ada 2005 mode.
154 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
155 avoid having s-taprop*.adb depend on s-soflin and to avoid code
157 Remove reference to *Machine_State_Addr*, no longer needed.
159 2005-09-01 Arnaud Charlet <charlet@adacore.com>
161 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
162 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
163 Remove reference to System.Exceptions.
165 * s-mastop-x86.adb: Removed, no longer used.
167 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
169 * a-excach.adb: Minor reformatting.
171 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
172 instead fix new warnings that were hidden by this change.
173 (AAA, ZZZ): Removed, replaced by...
174 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
175 are used instead of constants, to help make Ada.Exception truly
177 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
178 Raise_Storage_Error): File is now a System.Address, to simplify code.
179 (Elab code): Removed, no longer used.
180 (Null_Occurrence): Remove Warnings Off and make this construct
182 Remove code related to front-end zero cost exception handling, since
183 it is no longer used.
184 Remove -gnatL/-gnatZ switches.
186 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
187 Update use of Except.Msg.
189 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
190 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
191 to front-end zero cost exception handling, since it is no longer used.
192 Remove -gnatL/-gnatZ switches.
194 * lib-writ.ads: Minor reformatting
197 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
199 * Make-lang.in: Remove references to s-except.ads
201 * s-except.ads: Removed, no longer used.
203 * s-mastop.ads, s-mastop.adb:
204 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
205 Remove reference to System.Exceptions.
207 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
208 switch-b.adb: Remove code related to front-end zero cost exception
209 handling, since it is no longer used.
210 Remove -gnatL/-gnatZ switches.
212 2005-09-01 Robert Dewar <dewar@adacore.com>
213 Gary Dismukes <dismukes@adacore.com>
214 Javier Miranda <miranda@adacore.com>
216 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
217 type by valid test and generate warning.
218 (Tagged_Membership): Generate call to the run-time
219 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
220 Change formal name Subtype_Mark to Result_Definition in several calls to
221 Make_Function_Specification.
222 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
223 check for proper accessibility of the operand of a class-wide allocator.
224 The check can be left out if checks are suppressed or if the expression
225 has a specific tagged type whose level is known to be safe.
227 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
228 generates the run-time check associated with null-excluding entities.
229 (Expand_N_Return_Statement): Add tests to determine if the accessibility
230 check on the level of the return expression of a class-wide function
231 can be elided. The check usually isn't needed if the expression has a
232 specific type (unless it's a conversion or a formal parameter). Also
233 add a test for whether accessibility checks are suppressed. Augment
234 the comments to describe the conditions for performing the check.
236 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
237 Javier Miranda <miranda@adacore.com>
238 Gary Dismukes <dismukes@adacore.com>
239 Ed Schonberg <schonberg@adacore.com>
241 * a-tags.adb (IW_Membership): Give support to
242 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
243 subprogram has been extended to look for the tag in the ancestors tag
245 Update the structure of the GNAT Dispatch Table to reflect the
246 additional two tables used in dispatching selects.
247 Introduce appropriate array types and record components in
248 Type_Specific_Data to reflect the two tables.
249 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
250 the TSD of a tag, indexed by position.
251 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
252 operation kind in the TSD of a tag, indexed by position.
254 * a-tags.ads: Introduce an enumeration type to capture different
255 primitive operation kinds. Define a constant reflecting the number of
256 predefined primitive operations.
257 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
259 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
260 callable entity of a primitive operation.
262 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
263 primitive operations used in dispatching selects for limited
264 interfaces, limited tagged, task and protected types what implement a
266 (Freeze_Type): Generate the bodies of the primitive operations used in
267 dispatching selects for limited tagged, task and protected types that
268 implement a limited interface. Generate statements to populate the two
269 auxiliary tables used for dispatching in select statements.
270 (Freeze_Record_Type): Add call to initialize the dispatch table entries
271 associated with predefined interface primitive operations.
272 (Build_Dcheck_Function): Change Set_Subtype_Mark to
273 Set_Result_Definition.
274 (Build_Variant_Record_Equality): Change Subtype_Mark to
276 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
277 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
278 (Build_Assignment): Simplify the code that adds the run-time-check.
279 (Expand_N_Object_Declaration): Code cleanup.
281 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
282 entries when there is a protected type that implements a limited
285 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
286 common routines used in expansion of dispatching selects.
287 (Add_Private_Declarations): Select the appropriate protection type when
288 there is a protected type that implements a limited interface.
289 (Build_Parameter_Block): Generate a wrapped parameter block.
290 (Build_Protected_Subprogram_Body): Select the appropriate type for
291 locking entries when there is a protected type that implements a
293 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
294 classified as entry wrappers.
295 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
296 asynchronous selects.
297 (Expand_N_Conditional_Entry_Call): Add support for expansion of
298 dispatching conditional selects.
299 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
300 protection when there is a protected type that implements limited
302 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
304 (Extract_Dispatching_Call): Extract the entity of the name of a
305 dispatching call, the object parameter, actual parameters and
306 corresponding formals.
307 (Make_Initialize_Protection): Correct logic of protection initialization
308 when there is a protected type that implements a limited interface.
309 (Parameter_Block_Pack): Populate a wrapped parameter block with the
310 values of actual parameters.
311 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
312 block and assign them to the original actual parameters.
314 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
315 (Build_Protected_Sub_Specification): Change the type and name of the
316 last formal to account for the increased variety of protection modes.
318 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
319 entities. Used to save the value of the Is_Hidden attribute when the
320 limited-view is installed.
321 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
322 the attribute of procedures classified as entry wrappers.
323 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
324 entity of a primitive wrapper.
325 (Write_Entity_Flags): Output the name and value of the
326 Is_Primitive_Wrapper attribute.
327 (Write_Field27_Name): Output the name and entity of the field Wrapped_
329 (Underlying_Type): If we have an incomplete entity that comes from
330 the limited view then we return the Underlying_Type of its non-limited
331 view if it is already available.
332 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
334 (Write_Field26_Name): Add entry for Overridden_Operation
335 (Overridden_Operation): New attribute of functions and procedures.
337 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
338 predefined position in the dispatch table for the primitive operations
339 used in dispatching selects.
340 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
341 predefined primitive operations and replace it with
342 Default_Prim_Op_Count.
343 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
344 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
345 the names of the generated primitive operations used in dispatching
347 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
348 case of abstract interface types. They will be inherit by the objects
349 implementing the interface.
350 (Make_DT): There is no need to inherit the dispatch table of the
351 ancestor interface for the elaboration of abstract interface types.
352 The dispatch table will be inherited by the object implementing the
354 (Copy_Secondary_DTs): Add documentation.
355 (Validate_Position): Improve this static check in case of
356 aliased subprograms because aliased subprograms must have
358 (Init_Predefined_Interface_Primitives): New subprogram that initializes
359 the entries associated with predefined primitives of all the secondary
361 (Build_Anonymous_Access_Type): Removed.
362 (Expand_Interface_Actuals): With the previous cleanup there is no need
363 to build an anonymous access type. This allows further cleanup in the
364 code generated by the expander.
365 (Expand_Interface_Conversion): If the actual is an access type then
366 build an internal function to handle the displacement. If the actual
367 is null this function returns null because no displacement is
368 required; otherwise performs a type conversion that will be
369 expanded in the code that returns the value of the displaced actual.
370 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
371 conversions that have no effect in the generated code because no
372 displacement is required. Code cleanup; use local variables to
373 avoid repeated calls to the subprogram directly_designated_type().
375 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
376 Classify the primitive operations used in dispatching selects as
378 (Implements_Limited_Interface): Determine whether some type either
379 directly implements a limited interface or extends a type that
380 implements a limited interface.
381 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
382 (Expand_Subtype_From_Expr): Do not build actual subtype if the
383 expression is limited.
384 (Find_Interface_Tag): Add code to handle class-wide types and
385 entities from the limited-view.
387 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
388 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
389 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
390 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
393 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
394 of procedure name or prefix that appears as a trigger in a triggering
397 * uintp.ads: Introduce constants Uint_11 and Uint_13.
399 2005-09-01 Arnaud Charlet <charlet@adacore.com>
401 * s-tataat.adb, a-tasatt.adb:
402 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
404 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
405 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
406 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
409 2005-09-01 Arnaud Charlet <charlet@adacore.com>
410 Jose Ruiz <ruiz@adacore.com>
412 * s-taprop-vxworks.adb:
413 Move with clauses outside Warnings Off now that dependent units are
415 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
416 initialization of this unit.
417 (Specific): Add new procedures Initialize and Delete so that this
418 package can be used for VxWorks 5.x and 6.x
419 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
420 differences between VxWorks 5.x and 6.x
422 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
424 Use only Preelaborate-compatible constructs.
426 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
427 Primitives.Operations.
428 (Delete, Initialize): New procedures.
430 * s-osinte-vxworks.adb: Body used to handle differences between
432 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
434 * s-osinte-vxworks.ads: Minor reformatting.
435 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
436 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
438 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
439 between Vxworks 5 and 6.
440 (taskLock, taskUnlock): Removeed, no longer used.
442 * adaint.c: The wait.h header is not located in the sys directory on
443 VxWorks when using RTPs.
444 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
446 (__gnat_dup): dup is available on Vxworks when using RTPs.
447 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
449 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
451 * expect.c: The wait.h header is not located in the sys directory on
452 VxWorks when using RTPs.
454 2005-09-01 Thomas Quinot <quinot@adacore.com>
456 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
458 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
460 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
461 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
462 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
463 g-soccon-freebsd.ads: Add new constants:
465 SO_RCVTIMEO/SO_SNDTIMEO
469 Move all target-specific file inclusions and macro definitions to
470 gsocket.h, in order to ensure that any C code in socket.c will see a
471 set of constants that is consistent with the contents of g-soccon.ads.
473 * gsocket.h: Code imported from gen-soccon.c:
474 Move all target-specific file inclusions and macro definitions to
475 gsocket.h, in order to ensure that any C code in socket.c will see a set
476 of constants that is consistent with the contents of g-soccon.ads.
477 This change also makes gen-soccon self-contained (removing dependencies
478 upon GCC internal headers).
480 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
482 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
484 * socket.c: Minor reformatting.
486 2005-09-01 Ed Schonberg <schonberg@adacore.com>
487 Thomas Quinot <quinot@adacore.com>
489 * fname-sf.adb, mlib-tgt.ads,
490 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
491 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
492 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
493 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
494 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
495 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
496 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
497 makegpr.adb: Remove redundant use_clauses.
499 2005-09-01 Arnaud Charlet <charlet@adacore.com>
501 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
502 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
503 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
504 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
505 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
506 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
507 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
508 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
509 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
510 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
511 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
512 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
513 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
514 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
515 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
516 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
517 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
518 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
519 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
520 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
521 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
522 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
523 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
524 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
525 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
526 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
527 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
528 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
529 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
530 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
531 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
532 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
533 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
534 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
535 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
536 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
537 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
538 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
539 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
540 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
541 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
542 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
543 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
544 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
545 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
546 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
547 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
548 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
549 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
550 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
551 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
552 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
553 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
554 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
555 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
556 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
557 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
558 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
559 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
560 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
561 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
562 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
563 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
564 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
565 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
566 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
567 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
568 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
569 and always use the no parameter form for consistency.
571 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
573 2005-09-01 Robert Dewar <dewar@adacore.com>
575 * binde.adb: Minor reformatting
576 (Find_Elab_Order): Output warning if -p used with static elab order
578 2005-09-01 Robert Dewar <dewar@adacore.com>
580 * checks.adb (Check_Needed): New procedure, deals with removing checks
581 based on analysis of short-circuited forms. Also generates warnings for
582 improper use of non-short-circuited forms.
585 2005-09-01 Robert Dewar <dewar@adacore.com>
587 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
590 2005-09-01 Robert Dewar <dewar@adacore.com>
592 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
594 Implement new insertion char < (conditional warning)
595 * errutil.adb, erroutc.adb: Implement new insertion char <
596 (conditional warning).
597 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
598 (Error_Msg_Warn): New variable for < insertion char.
599 * prj-nmsc.adb: Implement new errout insertion char < (conditional
601 (Check_For_Source): Change value of Source_Id only after the current
602 source has been dealt with.
604 2005-09-01 Robert Dewar <dewar@adacore.com>
605 Doug Rupp <rupp@adacore.com>
607 * exp_attr.adb: Handle vax fpt for 'Valid attribute
608 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
609 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
610 (Valid_D, Valid_F, Valid_G): New functions
612 2005-09-01 Ed Schonberg <schonberg@adacore.com>
613 Hristian Kirtchev <kirtchev@adacore.com>
614 Javier Miranda <miranda@adacore.com>
616 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
617 from object notation, the original node is unanalyzed and carries no
618 semantic information, so that accessiblity checks must be performed on
619 the type of the actual itself.
620 (Expand_N_Subprogram_Declaration): Change last actual parameter for
621 compatibility with Build_Protected_Sub_Specification.
622 (Check_Overriding_Inherited_Interfaces): Add suport to handle
623 overloaded primitives.
624 (Register_Interface_DT_Entry): Use the new name of the formal
625 the the calls to Expand_Interface_Thunk
627 * exp_dbug.ads: Augment comments on encoding of protected types to
628 include the generation of dispatching subprograms when the type
629 implements at least one interface.
631 * lib.ads: Extend information in Load_Stack to include whether a given
632 load comes from a Limited_With_Clause.
634 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
635 whether a potential circularity is harmless, because it includes units
636 loaded through a limited_with clause. Extends previous treatment which
637 did not handle properly arbitrary combinations of limited and
640 2005-09-01 Nicolas Setton <setton@adacore.com>
642 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
643 to be encoded as typ___XBLU_lowerbound__upperbound instead of
644 typ___XB_lowerbound__upperbound.
646 2005-09-01 Thomas Quinot <quinot@adacore.com>
648 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
649 dummy access formal for RACW/RAS TypeCode TSS.
650 (Build_TypeCode_Call): Do not generate dummy null access actual for
651 calls to the TypeCode TSS.
653 2005-09-01 Ed Schonberg <schonberg@adacore.com>
655 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
656 fully qualified name, to distinguish instances with the same local name.
658 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
661 2005-09-01 Robert Dewar <dewar@adacore.com>
663 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
666 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
668 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
669 (Free): New deallocation procedure for filter elements
670 (Close): Deallocate any existing filter for the concerned connection
672 2005-09-01 Laurent Pautet <pautet@adacore.com>
674 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
675 position set is provided, we compute one in order to reduce the maximum
676 length of the keys. This computation first selects a character
677 position between 1 and the minimum length of the keys in order to
678 avoid reducing one of the keys to an empty string.
679 (Initialize, Compute): When the ratio V to K is too low, the algorithm
680 does not converge. The initialization procedure now comes with a
681 maximum number of iterations such that when exceeded, an exception is
682 raised in Compute. The user can initialize this ratio to another value
684 Reformating and updated headers.
686 2005-09-01 Javier Miranda <miranda@adacore.com>
688 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
689 that given an entity T creates and returns an Itype that duplicates the
690 contents of T. The returned Itype has the null-exclusion
691 attribute set to True, and its Etype attribute references T
692 to keep the association between the two entities.
693 Update copyright notice
695 * sem_aggr.adb (Check_Can_Never_Be_Null,
696 Aggregate_Constraint_Checks, Resolve_Aggregate,
697 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
699 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
701 2005-09-01 Gary Dismukes <dismukes@adacore.com>
702 Robert Dewar <dewar@adacore.com>
703 Hristian Kirtchev <kirtchev@adacore.com>
705 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
708 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
710 Call Set_Result_Definition instead of Set_Subtype_Mark.
711 (P_Subprogram_Specification): Add parsing of anonymous access result
712 plus null exclusions. Call Set_Result_Definition instead of
715 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
716 (P_Access_Type_Definition): Add parsing for an anonymous access result
717 subtype, plus parsing for null exclusions. Call Set_Result_Definition
718 instead of Set_Subtype_Mark.
720 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
721 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
722 (Result_Definition): New function for N_Function_Specifications.
723 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
724 N_Function_Specification.
725 (Set_Null_Exclusion_Present): Allow this flag for
726 N_Function_Specification.
727 (Set_Result_Definition): New procedure for N_Function_Specifications.
728 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
729 and N_Function_Specification.
731 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
732 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
733 Add support for LIMITED NEW for Ada 2005 AI-419
734 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
735 syntax for anonymous access results.
736 Replace Subtype_Mark field by Result_Definition in
737 N_Function_Specification and N_Access_Definition specs.
738 Add Null_Exclusion_Present to spec of N_Function_Specification.
739 (Result_Definition): New function for N_Function_Specification and
740 N_Access_Function_Definition.
741 (Set_Result_Definition): New procedure for N_Function_Specification and
742 N_Access_Function_Definition.
744 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
745 Result_Definition for cases of N_Access_Function_Definition and
746 N_Function_Specification.
747 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
749 2005-09-01 Vincent Celier <celier@adacore.com>
751 * lib-writ.adb: Update Copyright notice
752 (Write_With_Lines): On platforms where file names are case-insensitive,
753 record the file names in lower case.
754 (Write_ALI): For D lines, on platforms where file names are
755 case-insensitive, record the file names in lower case.
757 2005-09-01 Ed Schonberg <schonberg@adacore.com>
758 Emmanuel Briot <briot@adacore.com>
760 * lib-xref.adb (Output_Overridden_Op): Display information on
761 overridden operation.
763 * lib-xref.ads: Add documentation on overridden operations.
765 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
768 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
769 overriding entity information.
771 2005-09-01 Vincent Celier <celier@adacore.com>
773 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
774 including those that are inherited.
776 2005-09-01 Robert Dewar <dewar@adacore.com>
778 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
780 * par-prag.adb: Implement new pragma Debug_Policy
782 * sem_prag.adb Implement new pragma Debug_Policy
783 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
784 Component_Size attribute specification. Give warning for ignored pragma
787 * snames.h, snames.ads, snames.adb: Introduce entries in
788 Preset_Names for Name_Disp_Asynchronous_Select,
789 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
790 Name_Disp_Timed_Select.
791 New pragma Debug_Policy
793 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
795 Switch -gnata also sets Debug_Pragmas_Enabled
797 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
798 handle an explicit -gnata when compiling predefined files.
800 2005-09-01 Vincent Celier <celier@adacore.com>
802 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
803 directories of projects that have no Ada sources.
805 2005-09-01 Robert Dewar <dewar@adacore.com>
807 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
808 (makes a difference for wide characters)
810 * widechar.adb, widechar.ads:
811 Add Wide_Char_Byte_Count feature to count chars vs bytes
813 2005-09-01 Thomas Quinot <quinot@adacore.com>
814 Ed Schonberg <schonberg@adacore.com>
815 Robert Dewar <dewar@adacore.com>
817 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
818 'Address attribute reference with an overloaded prefix, use the
819 location of the prefix (not the location of the attribute reference) as
821 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
822 a function renaming thereof, is a valid prefix for 'Size (where it is
823 intepreted as a function call).
824 (Statically_Denotes_Entity): New predicate to determine whether the
825 prefix of an array attribute can be considered static.
828 (Eval_Attr): Fix failure to evaluate Component_Size for
829 unconstrained arrays (resulted in wrong value in packed case, since
830 back end cannot handle this case)
832 2005-09-01 Robert Dewar <dewar@adacore.com>
834 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
835 error msgs for most common cases.
836 Use new errout insertion char < (conditional warning)
838 2005-09-01 Javier Miranda <miranda@adacore.com>
839 Ed Schonberg <schonberg@adacore.com>
841 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
842 become local to the whole package.
843 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
844 the package was already analyzed the new algorithm "replaces" the
845 real entities by the shadow ones. This is required to ensure that
846 the order of these entities in the homonym chains does not change;
847 otherwise we can have undefined references at linking time because
848 in case of conflicts the external name of the entities will have
849 a suffix that depends on the order of the entities in the chain.
850 (Remove_Limited_With_Clause): Complementary code that completes the
851 new algorithm and replaces the shadow entities by the real ones.
852 (Install_Limited_Withed_Unit): When unchaining entities before the
853 installation of the shadow entities, only regular entities of the
854 public part must be taken into account. This is required to
855 keep this routine in synch with the work done by Remove_Limited_
857 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
858 even if unit is analyzed, because the analysis of the unit is
859 idempotent in any case, and the limited view of the unit may have to
860 be installed for proper visibility.
861 (Expand_Limited_With_Clause): Even if the unit in the implicit
862 with_clause has been analyzed already, a limited view of the package
863 must be built for the current context, if it does not exist yet.
865 2005-09-01 Ed Schonberg <schonberg@adacore.com>
866 Javier Miranda <miranda@adacore.com>
867 Gary Dismukes <dismukes@adacore.com>
869 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
870 defining entity for the instance body, make a new defining identifier
871 rather than copying the entity of the spec, to prevent accidental
872 sharing of the entity list.
873 (Check_Private_View): When exchanging views of private types, build the
874 list of exchanged views as a stack, to ensure that on exit the exchanges
875 are undone in the proper order.
876 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
877 Restore the compilation environment in case of instantiation_error.
878 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
879 for an anonymous access result.
880 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
881 (Formal_Entity): Handle properly the case of a formal package that
882 denotes a generic package renaming.
884 2005-09-01 Thomas Quinot <quinot@adacore.com>
886 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
887 clause if the array aggregate is surrounded by parentheses.
889 2005-09-01 Cyrille Comar <comar@adacore.com>
890 Gary Dismukes <dismukes@adacore.com>
891 Ed Schonberg <schonberg@adacore.com>
892 Javier Miranda <miranda@adacore.com>
894 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
896 to check if a type is Constrained in cases related to code generation
897 (rather than semantic checking) since otherwise we do not generate
898 similar code for mutable private types depending if their
899 discriminants are visible or not.
900 (Check_Abstract_Overriding): Do not complain about failure to override
901 the primitive operations used in dispatching selects since they will
902 always be overriden at the freeze point of the type.
903 (Access_Definition): Separate out handling for resetting the scope
904 of an anonymous access function result type. Retrieve the scope
905 of the associated function rather than using Current_Scope, which
906 does not have a consistent value (depends on whether we're in the
907 middle of analyzing formal parameters). Add ??? comment about
908 finding a cleaner way to handle the special cases of scope setting.
909 (Process_Incomplete_Dependents): A protected operation is never a
910 dispatching operation (only its wrapper may be).
911 (Build_Derived_Record_Type): In case of tagged private types that
912 implement interfaces add derivation of predefined primitive
914 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
915 by two parameters that are used in case of derivation from abstract
916 interface types: No_Predefined_Prims is used to avoid the derivation
917 of predefined primitives from the interface, and Predefined
918 Prims_Only is used to complete the derivation predefined primitives
919 in case of private tagged types implementing interfaces.
921 (Find_Interface_In_Descendant): Protect the frontend against
922 wrong code with large circularity chains.
923 (Is_Private_Overriding): Add support for entities overriding interface
924 subprograms. The test failed because Entities associated with overriden
925 interface subprograms are always marked as hidden (and used to build
926 the secondary dispatch table); in this case the overriden entity is
927 available through the field abstract_interface_alias (cf. override_
928 dispatching_operation)
929 (Access_Definition): Set the scope of the type to Current_Scope for the
930 case of a function with an anonymous access result type.
931 (Access_Subprogram_Declaration): Handle creation of the type entity for
932 an access-to-function type with an anonymous access result.
933 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
934 in handling for N_Access_Function_Definition.
935 (Analyze_Subtype_Declaration): Modify the text of error message.
936 (Derived_Type_Declaration): Modify the text of error message.
937 (Process_Subtype): Modify the text of error message plus cleanup
938 of one redundant error message.
939 (Analyze_Component_Declaration): Code cleanup.
940 (Analyze_Object_Declaration): Code cleanup.
941 (Analyze_Subtype_Declaration): Propagate the null-exclusion
942 attribute in case of access types. Code cleanup.
943 (Array_Type_Declaration): Code cleanup.
944 (Process_Discriminants): Create the new null-excluding itype
945 if required. Code cleanup.
946 (Process_Subtype): Create the new null-excluding itype if
947 required. Code cleanup.
948 (Build_Derived_Record_Type): Code cleanup to avoid calling
949 twice the subprogram derive_subprograms in case of private
950 types that implement interfaces. In this particular case the
951 subprogram Complete_Subprograms_Derivation already does the
952 job associated with the second call.
954 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
955 conversion to the full view when generating an operation for a
956 discriminant whose type may currently be private.
958 2005-09-01 Ed Schonberg <schonberg@adacore.com>
959 Javier Miranda <miranda@adacore.com>
961 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
962 V (Obj.F), the rewriting does not involve the indexed component, but
963 only the selected component itself.
964 Do not apply the transformation if the analyzed node is an actual of a
965 call to another subprogram.
966 (Complete_Object_Operation): Retain the entity of the
967 dispatching operation in the selector of the rewritten node. The
968 entity will be used in the expansion of dispatching selects.
969 (Analyze_One_Call): Improve location of the error message associated
971 (Analyze_Selected_Component): No need to resolve prefix when it is a
972 function call, resolution is done when parent node is resolved, as
974 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
975 when attempting to resolve a call transformed from its object notation.
976 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
977 of the argument list for each interpretation of the operation.
978 (Try_Object_Operation): The designated type of an access parameter may
979 be an incomplete type obtained through a limited_with clause, in which
980 case the primitive operations of the type are retrieved from its full
982 (Analyze_Call): If this is an indirect call, and the return type of the
983 access_to_subprogram is incomplete, use its full view if available.
985 2005-09-01 Javier Miranda <miranda@adacore.com>
986 Gary Dismukes <dismukes@adacore.com>
988 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
989 access types the null-exclusion and access-to-constant attributes must
991 (Analyze_Return_Statement): When the result type is an anonymous access
992 type, apply a conversion of the return expression to the access type
993 to ensure that appropriate accessibility checks are performed.
994 (Analyze_Return_Type): For the case of an anonymous access result type,
995 generate the Itype and set Is_Local_Anonymous_Access on the type.
996 Add ??? placeholder for check to disallow returning a limited object
997 in Ada 2005 unless it's an aggregate or a result of a function call.
998 Change calls from Subtype_Mark to Result_Definition.
999 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
1000 Result_Definition in call to Make_Function_Specification.
1001 (Build_Body_To_Inline): Change Set_Subtype_Mark to
1002 Set_Result_Definition.
1003 (Make_Inequality_Operator): Change formal Subtype_Mark to
1004 Result_Definition in call to Make_Function_Specification.
1005 (Process_Formals): Create the new null-excluding itype if required.
1006 (New_Overloaded_Entity): For an entity overriding an interface primitive
1007 check if the entity also covers other abstract subprograms in the same
1008 scope. This is required to handle the general case, that is, overriding
1009 other interface primitives and overriding abstract subprograms inherited
1010 from some abstract ancestor type.
1011 (New_Overloaded_Entity): For an overriding entity that comes from
1012 source, note the operation that it overrides.
1013 (Check_Conformance, Type_Conformant): Addition of one new formal
1014 to skip controlling formals in the analysis. This is used to
1015 handle overloading of abstract interfaces.
1016 (Base_Types_Match): Add missing case for types imported from
1017 limited-with clauses
1018 (New_Overloaded_Entity): Add barrier to protect the use of
1019 the "alias" attribute.
1021 2005-09-01 Ed Schonberg <schonberg@adacore.com>
1023 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
1024 verify that the procedure and the entry are mode conformant.
1025 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
1026 as a different operator, which is often a cut-and-paste error.
1028 2005-09-01 Javier Miranda <miranda@adacore.com>
1029 Ed Schonberg <schonberg@adacore.com>
1031 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
1032 used in controlling parameters exclude null because it is necessary to
1033 read the tag to dispatch, and null has no tag.
1034 (Override_Dispatching_Operation): If the previous operation is inherited
1035 from an interface, it becomes hidden and does not participate in later
1038 2005-09-01 Javier Miranda <miranda@adacore.com>
1039 Ed Schonberg <schonberg@adacore.com>
1040 Gary Dismukes <dismukes@adacore.com>
1042 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
1043 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
1044 the expander will generate the corresponding run-time check to evaluate
1046 (Resolve_Call): Check for legal type of procedure name or prefix that
1047 appears as a trigger in a triggering alternative.
1048 (Valid_Conversion): If expression is ambiguous and the context involves
1049 an extension of System, remove System.Address interpretations.
1050 (Resolve_Qualified_Expression): Reject the case of a specific-type
1051 qualification applied to a class-wide argument. Enhance comment
1052 to explain checking of Original_Node.
1053 (Resolve_Type_Conversion): The location of the error message was not
1054 general enough to handle the general case and hence it has been removed.
1055 In addition, this patch improves the text of the message.
1056 (Resolve_Type_Conversion): Add missing support for access to interface
1058 (Resolve_Type_Conversion): If the target is a class-wide interface type,
1059 do not expand if the expression is the actual in a call, because proper
1060 expansion will take place when the call itself is expanded.
1061 (Resolve_Allocator): If the context is an unchecked conversion, the
1062 allocator inherits its storage pool, if any, from the target type of
1065 2005-09-01 Ed Schonberg <schonberg@adacore.com>
1066 Javier Miranda <miranda@adacore.com>
1068 * sem_type.adb (Add_One_Interp): If a candidate operation is an
1069 inherited interface operation that has an implementation, use the
1070 implementation to avoid spurious ambiguities.
1071 (Interface_Present_In_Ancestor): In case of concurrent types we can't
1072 use the Corresponding_Record_Typ attribute to look for the interface
1073 because it is set by the expander (and hence it is not always
1074 available). For this reason we traverse the list of interfaces
1075 (available in the parent of the concurrent type).
1076 (Interface_Present_In_Ancestor): Handle entities from the limited view
1078 2005-09-01 Ed Schonberg <schonberg@adacore.com>
1080 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
1081 from the list of required components.
1082 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
1083 primitive procedure of a limited interface with a controlling first
1085 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
1087 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
1088 capture if it is generated in the second operand of a short-circuit
1090 Do not capture values for variables with address clauses.
1091 (Is_Object_Reference): Treat a function call as an object reference only
1092 if its type is not Standard_Void_Type.
1094 2005-09-01 Ed Schonberg <schonberg@adacore.com>
1096 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
1097 to a variable that is statically known to be constant.
1099 2005-09-01 Geert Bosch <bosch@adacore.com>
1100 Robert Dewar <dewar@adacore.com>
1102 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
1103 (VAXGF_Safe_First): Idem.
1105 2005-09-01 Robert Dewar <dewar@adacore.com>
1106 Arnaud Charlet <charlet@adacore.com>
1108 * g-dirope.ads: Minor reformatting
1109 Document that bounds of result of Base_Name match the input index
1111 Add documentation on environment variable syntax for Expand_Path
1113 * gnat_ugn.texi: Update documentation to include mention of -m switches
1114 Document new treatment of wide characters in max line length
1116 Remove -gnatL/-gnatZ switches, no longer used.
1117 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
1120 * gnat_rm.texi: Add doc for two argument form of pragma
1121 Float_Representation.
1122 Add documentation for pragma No_Strict_Aliasing
1123 Add note that explicit component clause overrides pragma Pack.
1124 Add documentation of pragma Debug_Policy
1126 2005-09-01 Matthew Heaney <heaney@adacore.com>
1128 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
1129 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
1130 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
1131 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
1132 draft (Draft 13, August 2005) of Ada Amendment 1.
1134 2005-09-01 Arnaud Charlet <charlet@adacore.com>
1136 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
1137 Note that the platform-specific version of g-soccon.ads for VMS is now
1138 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
1139 really is a package spec).
1140 Replace s-taspri-linux.ads by s-taspri-posix.ads
1141 Remove references to s-mastop-x86.adb
1143 * system-vxworks-xscale.ads: Removed, no longer used.
1144 * s-vxwork-xscale.ads: Removed, no longer used.
1146 2005-09-01 Robert Dewar <dewar@adacore.com>
1148 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
1149 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
1150 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
1151 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
1152 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
1153 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
1154 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
1155 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
1156 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
1157 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
1158 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
1159 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
1160 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
1161 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
1162 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
1163 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
1164 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
1165 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
1166 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
1167 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
1168 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
1170 2005-08-29 Arnaud Charlet <charlet@adacore.com>
1174 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
1176 2005-08-29 Arnaud Charlet <charlet@adacore.com>
1177 Doug Rupp <rupp@adacore.com>
1179 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
1181 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
1182 this code in the GNAT run-time.
1184 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
1187 * init.c (__gnat_error_handler [many]): Mark "msg" as const
1188 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
1190 (__gnat_inside_elab_final_code): Moved here from
1191 Standard_Library and only defined for the compiler.
1192 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
1193 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
1194 using RTPs because directly vectored Interrupt routines are not
1195 supported on this configuration.
1196 (getpid): Do not redefine this function on VxWorks when using RTPs
1197 because this primitive is well supported by the RTP libraries.
1198 (copy_msg): Correct the code that checks for buffer overflow.
1199 Discovered during code reading.
1201 2005-08-29 Olivier Hainque <hainque@adacore.com>
1203 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
1204 a library level mutable variable with an initializer, tell
1205 build_allocator to ignore the initializer's size. It may not be large
1206 enough for all the values that might be assigned to the variable later
1209 2005-08-29 Arnaud Charlet <charlet@adacore.com>
1210 Eric Botcazou <ebotcazou@adacore.com>
1212 * trans.c: Protect < in error msg with quote
1213 Replace GCC_ZCX by Back_End_Exceptions.
1214 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
1215 has been sufficiently aligned in the record.
1217 2005-08-15 James E. Wilson <wilson@specifix.com>
1219 * system-linux-alpha.ads: Change ia64 to alpha.
1221 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
1223 * decl.c, utils.c: Fix comment typos.
1225 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
1227 * decl.c, init.c, initialize.c: Fix comment typos.
1229 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
1231 Make CONSTRUCTOR use VEC to store initializers.
1232 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
1234 * trans.c (extract_values): Likewise.
1235 * utils.c (convert, remove_conversions): Likewise.
1236 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
1237 gnat_build_constructor): Likewise.
1239 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
1241 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
1243 (compare_field_bitpos): Likewise.
1245 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
1247 * utils.c (create_var_decl): Only set DECL_COMMON on
1248 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
1249 VAR_OR_FUNCTION_DECL_P.
1251 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
1253 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
1256 2005-07-07 Pascal Obry <obry@adacore.com>
1258 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
1259 returned type on Windows.
1261 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
1264 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
1265 exception in this case.
1266 Simplify the code as "Image (Image'Range)" = "Image".
1268 2005-07-07 Vincent Celier <celier@adacore.com>
1270 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
1271 the destructor/constructor attributes for <lib>final/<lib>init.
1273 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
1275 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
1277 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
1278 type if the parameter is not passed by copy but reference by default.
1280 2005-07-07 Javier Miranda <miranda@adacore.com>
1282 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
1283 Reimplementation of the support for abstract interface types in order
1284 to leave the code more clear and easy to maintain.
1286 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
1287 abstract interface types in order to leave the code clearer and easier
1290 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
1291 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
1292 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
1293 appropriate entry of the secondary dispatch table.
1294 (Make_DT): Add code to inherit the secondary dispatch tables of
1297 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
1298 implementing both functionalities by means of a common routine, each
1299 routine has its own code.
1301 2005-07-07 Javier Miranda <miranda@adacore.com>
1303 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
1305 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
1308 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
1311 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
1312 use of tag incomplete types.
1314 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
1315 give support to tagged incomplete types.
1317 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
1318 expression is a discriminant reference and its type is private, as can
1319 happen within a stream operation for a mutable record, use the full
1320 view of the type to resolve the case alternatives.
1321 (Analyze_Assignment): Check wrong dereference of incomplete types.
1323 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
1326 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
1329 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
1330 N_Incomplete_Type_Declaration nodes.
1332 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
1333 Tag_Present to give support to tagged incomplete types:
1335 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
1338 2005-07-07 Olivier Hainque <hainque@adacore.com>
1342 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
1343 definitions for the Unwind wrappers in the compiler case.
1345 2005-07-07 Ed Schonberg <schonberg@adacore.com>
1346 Javier Miranda <miranda@adacore.com>
1348 * par-load.adb (Load): If a child unit is loaded through a limited_with
1349 clause, each parent must be loaded as a limited unit as well.
1351 * sem_ch10.adb (Previous_Withed_Unit): Better name for
1352 Check_Withed_Unit. Return true if there is a previous with_clause for
1353 this unit, whether limited or not.
1354 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
1356 (Is_Visible_Through_Renamings): New local subprogram of install_limited
1357 _withed_unit that checks if some package installed through normal with
1358 clauses has a renaming declaration of package whose limited-view is
1359 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
1360 of the current Draft document for Ada 2005.
1361 (Analyze_Context): Complete the list of compilation units that
1362 are allowed to contain limited-with clauses. It also contains
1363 checks that were previously done by Install_Limited_Context_Clauses.
1364 This makes the code more clear and easy to maintain.
1365 (Expand_Limited_With_Clause) It is now a local subprogram of
1366 Install_Limited_Context_Clauses, and contains the code that adds
1367 the implicit limited-with clauses for parents of child units.
1368 This functionality was prevously done by Analyze_Context.
1370 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
1373 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
1374 been erroneously named in a limited-with clause of its own context.
1375 In this case the error has been previously notified by Analyze_Context.
1377 2005-07-07 Ed Schonberg <schonberg@adacore.com>
1379 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
1380 generic package that contains local declarations with the same name.
1381 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
1383 2005-07-07 Bernard Banner <banner@adacore.com>
1385 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
1386 ia64 platform only on platforms that you the GCC unwind library
1387 rather than the system unwind library.
1389 2005-07-07 Thomas Quinot <quinot@adacore.com>
1391 * expect.c: Minor reformatting
1393 2005-07-07 Sergey Rybin <rybin@adacore.com>
1395 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
1398 * gnat_ugn.texi: Add description for new gnatpp option
1401 2005-07-04 Thomas Quinot <quinot@adacore.com>
1403 * g-expect-vms.adb, g-expect.ads, g-expect.adb
1404 (Get_Command_Output): New subprogram to launch a process and get its
1405 standard output as a string.
1407 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
1408 Olivier Hainque <hainque@adacore.com>
1410 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
1411 fetch a code-range descriptor associated with the machine state. On
1412 failure set the machine state's PC to 0; on success, pass the
1413 descriptor to exc_virtual_unwind.
1415 * init.c (Tru64 section): New function __gnat_set_code_loc.
1417 2005-07-04 Vincent Celier <celier@adacore.com>
1419 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1420 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1421 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
1422 Remove all auto-initialization code, as this is now done through the
1423 constructor mechanism.
1425 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
1426 __gnat_sals_init_using_constructors): New functions.
1428 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
1429 Linker_Constructor and Linker_Destructor when switch -a is used.
1431 * bindusg.adb: Add line for new switch -a
1433 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
1434 (Gnatbind): When switch -a is used, check if it is allowed
1436 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
1438 2005-07-04 Joel Brobecker <brobecker@adacore.com>
1440 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
1441 This prevents us from hitting a limitation during the debug info
1442 generation when using stabs.
1443 (Prims_Ptr): Likewise.
1445 2005-07-04 Gary Dismukes <dismukes@adacore.com>
1446 Ed Schonberg <schonberg@adacore.com>
1447 Javier Miranda <miranda@adacore.com>
1449 * checks.adb (Null_Exclusion_Static_Checks): In the case of
1450 N_Object_Declaration, only perform the checks if the Object_Definition
1451 is not an Access_Definition.
1453 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
1454 where the parent of an the access definition is an N_Object_Declaration
1455 when determining the Associated_Node_For_Itype and scope of an
1456 anonymous access-to-subprogram type.
1458 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
1459 Corresponding_Spec on the body created for a null procedure. Add ???
1460 comment. Remove New_Copy_Tree call on body argument to
1463 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
1464 discriminants, use the type of the actual as well, because the
1465 discriminants may be read by the called subprogram.
1467 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
1468 access type we do not need to handle non-limited views.
1469 (Build_Derived_Record_Type): Additional check to check that in case of
1470 private types, interfaces are only allowed in private extensions.
1472 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
1474 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
1475 <Pragma_Linker_Destructor>: Likewise.
1477 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
1478 Pragma_Linker_Destructor.
1480 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
1481 ATTR_LINK_DESTRUCTOR.
1482 (static_ctors, static_dtors): New variables.
1484 * misc.c (gnat_expand_body): Output current function as constructor
1485 and destructor if requested.
1487 * par-prag.adb: Add processing for pragma Linker_Constructor and
1490 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
1491 extracted from Check_Interrupt_Or_Attach_Handler.
1492 (Check_Interrupt_Or_Attach_Handler): Invoke it.
1493 Implement pragma Linker_Constructor and Linker_Destructor with the
1494 help of Find_Unique_Parameterless_Procedure.
1495 Replace Name_Alias with Name_Target for pragma Linker_Alias.
1497 * snames.h, snames.ads, snames.adb:
1498 Add Name_Linker_Constructor and Name_Linker_Destructor.
1499 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
1500 * snames.adb: Remove Name_Alias.
1502 * trans.c: Include cgraph.h.
1503 (build_global_cdtor): New function.
1504 (Compilation_Unit_to_gnu): Build global constructor and destructor if
1506 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
1508 (addressable_p) <COMPONENT_REF>: Unconditionally test
1509 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
1511 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
1512 variable if it is external.
1514 (static_ctors, static_dtors): New global variables.
1515 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
1516 <ATTR_LINK_DESTRUCTOR>: Likewise.
1517 (end_subprog_body): Chain function as constructor and destructor
1520 * exp_util.adb (Force_Evaluation): Unconditionally invoke
1521 Remove_Side_Effects with Variable_Ref set to true.
1522 (Remove_Side_Effects): Handle scalar types first. Use a renaming
1523 for non-scalar types even if Variable_Ref is true and for class-wide
1526 2005-07-04 Ed Schonberg <schonberg@adacore.com>
1528 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
1529 to prevent spurious warnings.
1531 2005-07-04 Thomas Quinot <quinot@adacore.com>
1533 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
1534 Itypes. Itypes are really unexpected there.
1535 (Build_TypeCode_Function): Generalise special processing for Itypes to
1536 handle the case of numeric implicit base types as well as enumerated
1539 2005-07-04 Ed Schonberg <schonberg@adacore.com>
1541 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
1542 controlled, indicate the expected type of the dereference that is
1543 created for the call to Deep_Finalize, to prevent spurious errors when
1544 the designated type is private and completed with a derivation from
1545 another private type.
1547 2005-07-04 Vincent Celier <celier@adacore.com>
1549 * make.adb (Change_To_Object_Directory): When unable to change the
1550 current dir to the object directory, output the full path of the
1553 2005-07-04 Matthew Gingell <gingell@adacore.com>
1555 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
1557 * indepsw-linux.adb: Replace by...
1559 * indepsw-gnu.adb: ...this new file
1561 2005-07-04 Vincent Celier <celier@adacore.com>
1563 * mlib-prj.adb (Auto_Initialize): New constant String
1564 (SALs_Use_Constructors): New Boolean function
1565 (Build_Library): Call gnatbind with Auto_Initialize switch when
1566 SALs_Use_Constructors returns True.
1568 * mlib-tgt.ads: Minor reformatting
1570 * mlib-utl.ads: Minor reformatting
1572 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
1574 2005-07-04 Ed Schonberg <schonberg@adacore.com>
1576 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
1577 single protected declarations can have an interface list.
1578 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
1579 with seriously malformed entry declarations, and lead to compilation
1582 2005-07-04 Javier Miranda <miranda@adacore.com>
1584 * par-load.adb: Load the context items in two rounds.
1586 2005-07-04 Robert Dewar <dewar@adacore.com>
1588 * scng.adb: Do not consider Mod used as an attribute to be a keyword
1590 2005-07-04 Ed Schonberg <schonberg@adacore.com>
1591 Javier Miranda <miranda@adacore.com>
1593 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
1594 type extension needs a limited view.
1595 Remove previous restriction on private types available through the
1596 limited-view (only tagged private types were previously allowed).
1597 (Install_Withed_Unit): In the code that implements the
1598 legality rule given in AI-377, exclude a child unit with the name
1599 Standard, because it is a homonym of the Standard environment package.
1601 2005-07-04 Thomas Quinot <quinot@adacore.com>
1603 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
1604 overloaded function call, carry interpretations from the original tree
1607 2005-07-04 Ed Schonberg <schonberg@adacore.com>
1609 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
1610 types check whether some designated type is a limited view, and use
1611 the non-limited view if available.
1613 2005-07-04 Gary Dismukes <dismukes@adacore.com>
1615 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
1616 constraint of full view of a private view T1 if present, when T2 is a
1617 discriminated full view.
1619 2005-07-04 Thomas Quinot <quinot@adacore.com>
1621 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
1622 actual that is a view conversion of a bit packed array reference.
1624 2005-07-04 Ed Schonberg <schonberg@adacore.com>
1626 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
1627 present before checking whether an interface type covers a synchronized
1630 2005-07-04 Ed Schonberg <schonberg@adacore.com>
1632 * sem_util.adb (Is_Object_Reference): An indexed or selected component
1633 whose prefix is an implicit dereference is an object reference. Removes
1634 spurious errors when compiling with -gnatc.
1636 2005-07-04 Robert Dewar <dewar@adacore.com>
1640 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
1642 2005-07-04 Matthew Gingell <gingell@adacore.com>
1644 * tracebak.c: Enable tracebacks on ia64 platforms
1646 2005-07-04 Vincent Celier <celier@adacore.com>
1648 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
1649 the GNAT BIND command, as gnatbind accepts multiples ALI files with
1650 the -L or -n switches.
1652 2005-07-04 Vincent Celier <celier@adacore.com>
1654 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
1655 correctly computed and the main project data is not modified while
1657 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
1658 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
1659 c++linker as this does not work on some platforms.
1661 2005-07-04 Matthew Heaney <heaney@adacore.com>
1663 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
1665 * a-coinve.adb: Perform constraint checks explicitly.
1667 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1668 Thomas Quinot <quinot@adacore.com>
1670 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
1671 new target gen-soccon.
1673 2005-07-04 Robert Dewar <dewar@adacore.com>
1675 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
1677 2005-07-04 Thomas Quinot <quinot@adacore.com>
1679 * g-socket.ads (Check_Selector): Minor rewording of comment.
1681 2005-07-04 Vincent Celier <celier@adacore.com>
1683 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
1685 2005-07-04 Thomas Quinot <quinot@adacore.com>
1687 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
1689 2005-07-04 Sergey Rybin <rybin@adacore.com>
1691 * gnat_ugn.texi: Add description of --eol gnatpp option
1693 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
1694 Thomas Quinot <quinot@adacore.com>
1696 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
1697 if the user wants all calls of a subprogram to be flagged,
1698 independently of whether they are made from within the same unit or
1700 Mention restriction for pragma Linker_Alias on some platforms.
1701 Document pragma Linker_Constructor and Linker_Destructor.
1702 Rewrite documentation of Weak_External, Linker_Section and
1703 Linker_Alias pragmas.
1705 2005-07-04 Arnaud Charlet <charlet@adacore.com>
1707 * s-stausa.ads, s-stausa.adb: New files.
1709 2005-06-30 Kelley Cook
1711 * all files: Update FSF address in copyright headers.
1712 * gen-soccon.co (main): Output new FSF address in generated files.
1714 2005-06-28 Paul Brook <paul@codesourcery.com>
1716 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
1718 2005-06-14 Olivier Hainque <hainque@adacore.com>
1719 Eric Botcazou <ebotcazou@adacore.com>
1721 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
1722 exc_unwind, now that we are generating proper .debug_frame output for
1725 * tracebak.c: Remove the mips-irix section, as we are now using the
1726 s-mastop based unwinder again.
1727 Under SPARC/Solaris, take into account the stack bias to compute the
1728 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
1731 2005-06-14 Doug Rupp <rupp@adacore.com>
1733 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
1735 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
1737 2005-06-14 Pascal Obry <obry@adacore.com>
1739 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
1740 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
1741 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
1744 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
1745 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
1746 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
1747 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
1748 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
1749 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
1750 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
1751 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
1752 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
1753 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
1754 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
1755 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
1756 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
1757 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
1758 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
1759 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
1760 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
1761 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
1762 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
1763 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
1764 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
1765 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
1766 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
1767 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
1768 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
1769 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
1770 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
1771 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
1772 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
1773 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
1774 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
1775 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
1776 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
1777 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
1778 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
1779 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
1780 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
1781 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
1782 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
1783 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
1784 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
1785 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
1786 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
1787 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
1788 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
1789 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
1790 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
1791 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
1792 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
1793 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
1794 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
1795 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
1796 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
1797 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
1798 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
1799 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
1800 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
1801 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
1802 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
1803 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
1804 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
1805 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
1806 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
1807 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
1808 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
1809 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
1810 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
1811 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
1812 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
1813 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
1814 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
1815 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
1816 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
1817 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
1818 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
1819 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
1820 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
1821 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
1822 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
1823 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
1824 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
1825 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
1826 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
1827 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
1828 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
1829 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
1830 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
1831 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
1832 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
1833 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
1834 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
1835 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
1836 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
1837 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
1838 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
1839 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
1840 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
1841 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
1842 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
1843 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
1844 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
1845 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
1846 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
1847 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
1848 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
1849 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
1850 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
1851 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
1852 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
1853 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
1854 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
1855 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
1856 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
1857 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
1858 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
1859 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
1860 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
1861 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
1862 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
1863 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
1864 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
1865 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
1866 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
1867 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
1868 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
1869 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
1870 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
1871 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
1872 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
1873 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
1874 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
1875 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
1876 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
1878 2005-06-14 Jose Ruiz <ruiz@adacore.com>
1879 Arnaud Charlet <charlet@adacore.com>
1881 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
1882 longer protected objects. They have been replaced by lower-level
1883 suspension objects made up by a mutex and a condition variable (or
1884 their equivalent given a particular OS) plus some internal data to
1885 reflect the state of the suspension object.
1886 (Initialize, Finalize): Add this initialization procedure for
1887 Suspension_Object, which is a controlled type.
1888 (Finalize): Add the finalization procedure for Suspension_Object,
1889 which is a controlled type.
1891 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
1892 Ada.Synchronous_Task_Control because there is no longer a need for a
1893 VxWorks specific version of this package. Target dependencies
1894 has been moved to System.Task_Primitives.Operations.
1896 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
1898 (InitializeCriticalSection, EnterCriticalSection,
1899 LeaveCriticalSection, DeleteCriticalSection): Replace the type
1900 pCriticalSection by an anonymous access type so that we avoid problems
1901 of accessibility to local objects.
1903 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
1904 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
1905 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
1906 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
1907 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
1908 set the environment task mask here.
1909 (Current_State): Add this function that returns the state of the
1911 (Set_False): Add this procedure that sets the state of the suspension
1913 (Set_True): Add this procedure that sets the state of the suspension
1914 object to True, releasing the task that was suspended, if any.
1915 (Suspend_Until_True): Add this procedure that blocks the calling task
1916 until the state of the object is True. Program_Error is raised if
1917 another task is already waiting on that suspension object.
1918 (Initialize): Add this procedure for initializing the suspension
1919 object. It initializes the mutex and the condition variable which are
1920 used for synchronization and queuing, and it sets the internal state
1922 (Finalize): Add this procedure for finalizing the suspension object,
1923 destroying the mutex and the condition variable.
1925 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
1926 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
1927 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
1928 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
1929 which provides a low-level abstraction (using operating system
1930 primitives) for Ada.Synchronous_Task_Control.
1931 This object is made up by a mutex (for ensuring mutual exclusion), a
1932 condition variable (for queuing threads until the condition is
1933 signaled), a Boolean (State) indicating whether the object is open,
1934 and a Boolean (Waiting) reflecting whether there is a task already
1935 suspended on this object.
1937 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
1938 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
1939 s-intman-vms.ads, s-intman-mingw.adb,
1940 (Initialize_Interrupts): Removed, no longer used.
1942 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
1943 (Setup_Interrupt_Mask): New procedure.
1945 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
1947 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
1949 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
1950 this is no longer done in the body of s-taprop
1951 (Server_Task): Explicitely test for Pending_Action in case
1952 System.Parameters.No_Abort is True.
1954 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
1955 is no longer done in the body of s-taprop
1957 2005-06-14 Robert Dewar <dewar@adacore.com>
1959 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
1960 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
1961 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
1962 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
1963 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
1964 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
1965 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
1966 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
1967 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
1968 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
1969 system-linux-hppa.ads, system-vms_64.ads,
1970 system-vxworks-alpha.ads: Minor comment update for
1971 AI-362 (unit is Pure).
1973 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
1974 Add pragma Pure_05 for AI-362
1975 Make remaining conversion functions obsolescent in Ada 95
1977 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
1978 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
1979 Add entries for a-wichun and a-zchuni
1980 Add a-widcha a-zchara for AI-395
1981 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
1983 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
1984 Add entries for a-wichun.o and a-zchuni.o
1985 Entries for a-widcha.o and a-zchara.o
1986 Add entry for a-chacon.o
1988 * a-ztenau.adb: Add with of Ada.Characters.Conversions
1990 * a-chacon.ads, a-chacon.adb: New files.
1992 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
1993 categorization violations.
1995 * a-strmap.ads: Add pragma Pure_05 for AI-362
1996 * a-strmap.ads: Add note on implicit categorization for AI-362
1998 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
2000 * par-prag.adb: Dummy entry for pragma Persistent_BSS
2001 Set Ada_Version_Explicit, for implementation of AI-362
2002 Add processing for pragma Pure_05 and Preelaborate_05
2003 Add entry for Assertion_Policy pragma
2005 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
2006 when needed for proper processing of categorization stuff
2009 For several cases, make errors in preealborate units warnings,
2010 instead of errors, if GNAT_Mode is set. For AI-362.
2012 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
2013 preelaborate unit is now warning if in GNAT mode
2015 * s-stoele.ads: Document AI-362 for pragma preelaborate
2017 2005-06-14 Doug Rupp <rupp@adacore.com>
2019 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
2020 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
2021 Default_Exception_Msg_Max_Length: new parameter.
2023 * a-except.ads: (Exception_Msg_Max_Length): Set to
2024 System.Parameters.Default_Exception_Msg_Max_Length
2025 Add pragma Preelaborate_05 for AI-362
2026 Add warnings off to allow categorization violations for AI-362
2028 2005-06-14 Vincent Celier <celier@adacore.com>
2030 * gnatsym.adb: Adapt to modification of package Symbols: procedure
2031 Process is now in package Processing.
2033 * symbols.ads, symbols.adb:
2034 (Processing): New package, containing procedure Process
2036 * symbols-vms-alpha.adb:
2037 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
2039 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
2040 symbols-processing-vms-ia64.adb: New files.
2042 2005-06-14 Pascal Obry <obry@adacore.com>
2044 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
2045 implementation. This new version generates the proper DllMain routine
2046 to initialize the SAL. The DllMain is generated in Ada and compiled
2047 before being added as option to the library build command.
2049 2005-06-14 Doug Rupp <rupp@adacore.com>
2050 Pascal Obry <obry@adacore.com>
2052 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
2053 call to decc$translate_vms.
2054 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
2055 need to remove those quotes before catenating the filename.
2056 (__gnat_locate_exec_on_path): improvements to the Win32 section:
2057 * avoid allocating the memory twice for better efficiency;
2058 * allocate 32K buffer for environment expansion as suggested by MSDN;
2059 * prepend ".;" to the path so that current directory is searched too.
2061 2005-06-14 Robert Dewar <dewar@adacore.com>
2063 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
2064 instead of raising CE (AI-241)
2065 Add warnings off to allow categorization violations for AI-362
2067 2005-06-14 Robert Dewar <dewar@adacore.com>
2069 * ali-util.adb, gnatbind.adb: Remove references to
2070 Force_RM_Elaboration_Order.
2072 * switch-b.adb: Remove recognition of -f switch
2074 2005-06-14 Pascal Obry <obry@adacore.com>
2076 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
2077 implementation which is slightly more efficient.
2079 2005-06-14 Gary Dismukes <dismukes@adacore.com>
2080 Javier Miranda <miranda@adacore.com>
2081 Ed Schonberg <schonberg@adacore.com>
2082 Hristian Kirtchev <kirtchev@adacore.com>
2084 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
2085 allocator's designated type is a class-wide type, and compiling for
2086 Ada 2005, emit a run-time check that the accessibility level of the
2087 type given in the allocator's expression is not deeper than the level
2088 of the allocator's access type.
2090 (Tagged_Membership): Modified to gives support to abstract interface
2093 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
2095 (Descendant_Tag): New predefined function
2096 (Is_Descendant_At_Same_Level): New predefined function
2097 (Get_Access_Level): New private function
2098 (Set_Access_Level): New private procedure
2099 (IW_Membership): New function. Given the tag of an object and the tag
2100 associated with an interface, evaluate if the object implements the
2102 (Register_Interface_Tag): New procedure used to initialize the table of
2103 interfaces used by the IW_Membership function.
2104 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
2105 of the dispatch table.
2106 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
2107 table of interfaces of the parent.
2108 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
2109 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
2110 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
2111 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
2112 Ada 2005 semantics for the new predefined function.
2114 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
2115 call to Descendant_Tag rather than Internal_Tag.
2116 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
2117 the accessibility level of the attribute's Item parameter is not deeper
2118 than the level of the attribute's prefix type. Tag_Error is raised if
2119 the check fails. The check is only emitted for Ada_05.
2120 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
2121 requested stream attribute, use it.
2122 (Expand_N_Attribute_Reference): If the designated type is an interface
2123 then rewrite the referenced object as a conversion to force the
2124 displacement of the pointer to the secondary dispatch table.
2125 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
2126 is a dereference of an object with a constrained partial view.
2128 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
2129 type is a class-wide type, emit a run-time check that the accessibility
2130 level of the returned object is not deeper than the level of the
2131 function's master (only when compiling for Ada 2005).
2133 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
2134 Action_Nb_Arg): Add entries for new Get_Access_Level and
2135 Set_Access_Level routines in these tables.
2136 (Make_DT): Generate a call to set the accessibility level of the
2137 tagged type in its TSD.
2138 (Make_DT): Code cleanup. The functionality of generating all the
2139 secondary dispatch tables has been moved to freeze_record_type.
2140 (Make_Abstract_Interface_DT): Minor code cleanup.
2141 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
2142 this subprogram implements a new algorithm that provides the
2143 same functionality and it is more clear in case of primitives
2144 associated with abstract interfaces.
2145 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
2146 clean up, the functionality of this subprogram is now provided
2147 by Set_All_DT_Position.
2148 (Write_DT): New subprogram: a debugging procedure designed to be called
2149 within gdb to display the dispatch tables associated with a tagged
2151 (Collect_All_Interfaces): New subprogram that collects the whole list
2152 of interfaces that are directly or indirectly implemented by a tagged
2154 (Default_Prim_Op_Position): New subprogram that returns the fixed
2155 position in the dispatch table of the default primitive operations.
2156 (Expand_Interface_Actuals): New subprogram to generate code that
2157 displaces all the actuals corresponding to class-wide interfaces to
2158 reference the interface tag of the actual object.
2159 (Expand_Interface_Conversion): New subprogram. Reference the base of
2160 the object to give access to the interface tag associated with the
2161 secondary dispatch table.
2162 (Expand_Interface_Thunk): New subprogram that generates the code of the
2163 thunk. This is required for compatibility with the C+ ABI.
2164 (Make_Abstract_Interface_DT): New subprogram that generate the
2165 declarations for the secondary dispatch tables associated with an
2167 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
2168 attribute for each primitive operation covering interface subprograms
2169 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
2170 These subprograms were upgraded to give support to abstract interfaces
2172 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
2173 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
2174 RE_Set_Access_Level.
2175 (RE_Unit_Table): Add entries for new Ada.Tags operations.
2176 Add support to call the followig new run-time subprograms:
2177 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
2179 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
2180 match its full declaration when both have an access definition with
2181 statically matching designated subtypes.
2182 (Analyze_Component_Declaration): Delete commented out code that was
2183 incorrectly setting the scope of an anonymous access component's type.
2184 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
2185 an access discriminant when the containing type is nonlimited.
2186 (Make_Incomplete_Type_Declaration): Create an incomplete type
2187 declaration for a record type that includes self-referential access
2189 (Check_Anonymous_Access_Types): Before full analysis of a record type
2190 declaration, create anonymous access types for each self-referential
2192 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
2193 an access component in this context is a Local_Anonymous_Access, for
2194 proper accessibility checks.
2195 (Access_Definition): Set properly the scope of the anonymous access type
2196 created for a stand-alone access object.
2197 (Find_Type_Of_Object): An object declaration may be given with an access
2199 (Complete_Subprograms_Derivation): New subprogram used to complete
2200 type derivation of private tagged types implementing interfaces.
2201 In this case some interface primitives may have been overriden
2202 with the partial-view and, instead of re-calculating them, they
2203 are included in the list of primitive operations of the full-view.
2204 (Build_Derived_Record_Type): Modified to give support to private
2205 types implemening interfaces.
2206 (Access_Definition): Reject ALL on anonymous access types.
2207 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
2208 type derivation to occur at a deeper accessibility level than the
2210 For the case of derivation within a generic body however, disallow the
2211 derivation if the derived type has an ancestor that is a formal type
2212 declared in the formal part of an enclosing generic.
2213 (Analyze_Object_Declaration): For protected objects, remove the check
2214 that they cannot contain interrupt handlers if not declared at library
2216 (Add_Interface_Tag_Components): New subprogram to add the tag components
2217 corresponding to all the abstract interface types implemented by a
2218 record type or a derived record type.
2219 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
2220 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
2221 Process_Full_View, Record_Type_Declaration): Modified to give
2222 support to abstract interface types
2223 (Collect_Interfaces): New subprogram that collects the list of
2224 interfaces that are not already implemented by the ancestors
2225 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
2226 when partial view has no discriminants and full view has defaults.
2227 (Constrain_Access): Reject a constraint on a general access type
2228 if the discriminants of the designated type have defaults.
2229 (Access_Subprogram_Declaration): Associate the Itype node with the inner
2230 full-type declaration or subprogram spec. This is required to handle
2231 nested anonymous declarations.
2232 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
2233 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
2234 Process_Full_View, Record_Type_Declaration): Modified to give
2235 support to abstract interface types
2236 (Derive_Subprograms): Addition of a new formal to indicate if
2237 we are in the case of an abstact-interface derivation
2238 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
2239 to the specification because it is requied to analyze all the
2240 identifiers found in a list of interfaces
2242 * debug.adb: Complete documentation of flag "-gnatdZ"
2244 * exp_ch3.adb: Implement config version of persistent_bss pragma
2245 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
2246 testing for TSS presence to properly enforce visibility rules.
2247 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
2248 Make_Abstract_Interfaces_DT to generate the secondary tables
2249 associated with abstract interfaces.
2250 (Build_Init_Procedure): Modified to initialize all the tags
2252 (Component_Needs_Simple_Initialization): Similar to other tags,
2253 interface tags do not need initialization.
2254 (Freeze_Record_Type): Modified to give support to abstract interface
2256 (Expand_N_Object_Declaration): Do not generate an initialization for
2257 a scalar temporary marked as internal.
2259 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
2260 in-out parameter that is a component in an initialization procedure,
2261 whose constraint might depend on discriminants, and that may be
2262 misaligned because of packing or representation clauses.
2263 (Is_Legal_Copy): New predicate to determine whether a possibly
2264 misaligned in-out actual can actually be passed by copy/return. This
2265 is an error in case the type is by_reference, and a warning if this is
2266 the consequence of a DEC import pragma on the subprogram.
2267 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
2269 (Expand_Inlined_Call): Mark temporary generated for the return value as
2270 internal, so that no useless scalar normalization is generated for it.
2271 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
2272 null procedure can always be inlined.
2273 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
2274 procedure, generate an explicit empty body for it.
2276 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
2277 Given a type implementing an interface, returns the corresponding
2278 access_disp_table value.
2279 (Find_Interface_Tag): New subprogram. Given a type implementing an
2280 interface, returns the record component containing the tag of the
2282 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
2283 previous ones that return the corresponding tag and access_disp_table
2285 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
2286 is a predefined primitive operation.
2287 (Expand_Subtype_From_Expr): If the expression is a selected component
2288 within an initialization procedure, compute its actual subtype, because
2289 the component may depend on the discriminants of the enclosing record.
2291 * i-cpp.ads, i-cpp.adb:
2292 This package has been left available for compatibility with previous
2293 versions of the frontend. As part of the new layout this is now a
2294 dummy package that uses declarations available at a-tags.ads
2296 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
2297 "constant access" and "aliased [constant] access" when not compiling
2299 Suppress Ada 2005 keyword warning if -gnatwY used
2300 (P_Identifier_Declarations): Add support for object declarations with
2302 (Private_Extension_Declaration): Complete the documentation
2303 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
2304 attribute in case of private extension declaration
2305 (P_Type_Declaration): Mark as "abstract" the type declarations
2306 corresponding with protected, synchronized and task interfaces
2307 (P_Declarative_Items): "not" and "overriding" are overriding indicators
2308 for a subprogram or instance declaration.
2310 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
2311 instantiation that is a dispatching operation has controlling access
2312 parameters that are null excluding.
2313 Save and restore Ada_Version_Explicit, for implementation of AI-362
2314 (Validate_Derived_Type_Instance): Add check for abstract interface
2316 (Analyze_Formal_Package): Establish Instantiation source for the copy of
2317 the generic that is created to represent the formal package.
2318 (Analyze_Package_Instantiation): Instantiate body immediately if the
2319 package is a predefined unit that contains inlined subprograms, and
2320 we are compiling for a Configurable_Run_Time.
2321 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
2322 If the program has a null default, generate an empty body for it.
2324 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
2325 error message condition, null procedures are correctly detected now.
2326 (New_Overloaded_Entity): Bypass trivial overriding indicator check
2327 for subprograms in the context of protected types. Instead, the
2328 indicator is examined in Sem_Ch9 while analysing the subprogram
2330 (Check_Overriding_Indicator): Check consistency of overriding indicator
2331 on subprogram stubs as well.
2332 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
2334 (Analize_Subprogram_Specification): When analyzing a subprogram in which
2335 the type of the first formal is a concurrent type, replace this type
2336 by the corresponding record type.
2337 (Analyze_Subprogram_Body): Undo the previous work.
2338 (Analyze_Procedure_Call): If the call has the form Object.Op, the
2339 analysis of the prefix ends up analyzing the call itself, after which
2341 (Has_Interface_Formals): New subprogram subsidiary to analyze
2342 subprogram_specification that returns true if some non
2343 class-wide interface subprogram is found
2344 (New_Overloaded_Entity): Modified to give support to abstract
2346 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
2347 access to subprograms must be recursive.
2348 (Is_Unchecked_Conversion): Improve the test that recognizes
2349 instantiations of Unchecked_Conversion, and allows them in bodies that
2350 are to be inlined by the front-end. When the body comes from an
2351 instantiation, a reference to Unchecked_Conversion will be an
2352 Expanded_Name, even though the body has not been analyzed yet.
2353 Replace Is_Overriding and Not_Overriding in subprogram_indication with
2354 Must_Override and Must_Not_Override, to better express intent of AI.
2355 (Analyze_Subprogram_Body): If an overriding indicator is given, check
2356 that it is consistent with the overrinding status of the subprogram
2358 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
2360 If the subprogram is a null procedure, indicate that it does not need
2363 * sem_disp.adb (Check_Controlling_Type): Give support to entities
2364 available through limited-with clauses.
2365 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
2366 allowed as the last primitive of a tagged type if it has no previous
2368 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
2369 to give support to abstract interface types
2371 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
2372 in the case where the target type is an anonymous access type of an
2373 object or component (that is, when Is_Local_Anonymous_Access is true).
2374 Prevent the special checks for conversions of access discriminants in
2375 the case where the discriminant belongs to a nonlimited type, since
2376 such discriminants have their accessibility level defined in the same
2377 way as a normal component of an anonymous access type.
2378 (Resolve_Allocator): When an allocator's designated type is a class-wide
2379 type, check that the accessibility level of type given in the
2380 allocator's expression or subtype indication is not statically deeper
2381 than the level of the allocator's access type.
2382 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
2383 name in a discriminant constraint of a record component.
2384 (Resolve_Explicit_Dereference): Do not check whether the type is
2385 incomplete when the dereference is a use of an access discriminant in
2386 an initialization procedure.
2387 (Resolve_Type_Conversion): Handle conversions to abstract interface
2389 (Valid_Tagged_Conversion): The conversion of a tagged type to an
2390 abstract interface type is always valid.
2391 (Valid_Conversion): Modified to give support to abstract interface types
2392 (Resolve_Actuals): Enable full error reporting on view conversions
2393 between unrelated by_reference array types.
2394 The rule for view conversions of arrays with aliased components is
2395 weakened in Ada 2005.
2396 Call to obsolescent subprogram is now considered to be a violation of
2397 pragma Restrictions (No_Obsolescent_Features).
2398 (Check_Direct_Boolean_Operator): If the boolean operation has been
2399 constant-folded, there is nothing to check.
2400 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
2401 check on possible violation of restriction No_Direct_Boolean_Operators
2402 until after expansion of operands, to prevent spurious errors when
2403 operation is constant-folded.
2405 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
2406 Has_Compatible_Type): Modified to give support to abstract interface
2408 (Interface_Present_In_Ancestor): New function to theck if some ancestor
2409 of a given type implements a given interface
2411 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
2412 prefix is a parameterless function that returns an access_to_procedure.
2413 (Transform_Object_Operation): Handle properly function calls of the
2414 form Obj.Op (X), which prior to analysis appear as indexed components.
2415 (Analyze_One_Call): Complete the error notification to help new Ada
2417 (Analyze_Allocator): For an allocator without an initial value, where
2418 the designated type has a constrained partial view, a discriminant
2419 constraint is illegal.
2421 2005-06-14 Robert Dewar <dewar@adacore.com>
2423 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
2424 do with treatment of Set_Col when positioned at end of line character.
2426 2005-06-14 Robert Dewar <dewar@adacore.com>
2428 * atree.adb: (Elist*): Protect against uninitialized field
2430 2005-06-14 Ed Schonberg <schonberg@adacore.com>
2432 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
2433 for an attribute reference that returns an access type.
2434 (Apply_Discriminant_Check): No need for check if (designated) type has
2435 constrained partial view.
2437 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
2438 both bound checks, rather than a conjunction.
2439 (Insert_Valid_Check): If the expression is an actual that is an indexed
2440 component of a bit-packed array, force expansion of the packed element
2441 reference, because it is specifically inhibited elsewhere.
2443 2005-06-14 Vincent Celier <celier@adacore.com>
2445 * clean.adb (Clean_Project): Correctly delete executable specified as
2446 absolute path names.
2448 * make.adb (Gnatmake): Allow relative executable path names with
2449 directory information even when project files are used.
2450 (Change_To_Object_Directory): Fail gracefully when unable to change
2451 current working directory to object directory of a project.
2452 (Gnatmake): Remove exception handler that could no longer be exercized
2453 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
2454 may be deallocated by Normalize_Arguments.
2455 (Collect_Arguments): Eliminate empty arguments
2457 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
2458 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
2459 (Check_Project): Return False when Project is No_Project. Return True
2460 when All_Projects is True.
2461 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
2462 All_Projects to True.
2465 2005-06-14 Ed Schonberg <schonberg@adacore.com>
2466 Javier Miranda <miranda@adacore.com>
2467 Thomas Quinot <quinot@adacore.com>
2468 Robert Dewar <dewar@adacore.com>
2469 Hristian Kirtchev <kirtchev@adacore.com>
2470 Gary Dismukes <dismukes@adacore.com>
2472 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
2473 anonymous access types, to indicate that the accessibility level of
2474 the type is determined by that of the enclosing declaration.
2475 (Has_Persistent_BSS): New flag
2476 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
2477 of this attribute with functions.
2478 (Is_Primitive_Wrapper): Remove the barrier.
2479 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
2480 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
2482 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
2483 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
2485 (Is_Pure_Unit_Access_Type): New flag
2486 (Abstract_Interfaces): Complete the assertion to cover all usages.
2487 (Set_Is_Interface): Complete the assertion to cover all usages.
2488 (Is_Primitive_Wrapper): New attribute.
2489 (Is_Obsolescent): Now applies to all entities (though it is only set
2490 for subprograms currently)
2491 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
2492 which solves various problems concerning access subtypes.
2493 (Has_Persistent_BSS): New flag
2494 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
2495 Remove these subprograms because this attribute is currently
2498 Has_Specified_Stream_Input (Flag190)
2499 Has_Specified_Stream_Output (Flag191)
2500 Has_Specified_Stream_Read (Flag192)
2501 Has_Specified_Stream_Write (Flag193)
2502 Present in all type and subtype entities. Set for a given view if the
2503 corresponding stream-oriented attribute has been defined by an
2504 attribute definition clause. When such a clause occurs, a TSS is set
2505 on the underlying full view; the flags are used to track visibility of
2506 the attribute definition clause for partial or incomplete views.
2507 (Is_Pure_Unit_Access_Type): New flag
2508 Clarify use of Is_Internal.
2509 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
2510 internally generated to wrap the invocation of tasks and protected
2511 types that implement interfaces.
2512 (Implementation_Base_Type): Documentation correction
2513 (Is_Obsolescent): Now applies to all entities (though it is only set
2514 for subprograms currently)
2515 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
2516 which solves various problems concerning access subtypes.
2518 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
2519 for examined parameters. Identify unequal parameter list lengths as
2520 non-conformant parameters.
2521 (Overriding_Possible): Do not check for "All" qualifier in declaration
2522 of controlling access parameter, following prescription of AI-404.
2523 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
2524 that build the procedure body that wraps an entry invocation
2525 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
2526 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
2527 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
2528 give support to abstract interface types
2530 * freeze.adb (Freeze_Entity): Issue error message if
2531 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
2532 type has no storage pool (Ada 2005) AI-366.
2533 Also modified to give support to abstract interface types
2534 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
2535 Inline_Always pragma.
2537 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
2538 now begin an entry declaration.
2539 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
2540 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
2541 a subprogram declaration preceded by an overriding indicator.
2542 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
2543 declarations or subprogram declarations preceded by reserved words
2544 "not" or "overriding".
2545 (P_Entry_Declaration): Update comment. Parse and check overriding
2546 indicator, set semantic flags of entry declarations.
2547 (P_Task): New error message in case of private applied
2548 to a task type declaration.
2549 (P_Protected): New error message in case of private applied
2550 to a task type declaration.
2552 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
2553 in which the full view of a type implementing an interface is a
2555 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
2556 Declare_Inherited_Private_Subprograms): If an explicit operation
2557 overrides an operation that is inherited in the private part, mark the
2558 explicit one as overriding, to enable overriding indicator checks.
2559 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
2560 full view to partial view, to simplify handling in back-end.
2562 * sprint.adb: Print interface lists where needed: derived types,
2563 protected types, task types.
2564 output "is null" for null procedures. Part of implementation of
2566 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
2567 relaxation of rules for access types in pure, shared passive partitions.
2569 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
2570 first read discriminants into temporary objects, performing checks on
2571 the read values, then possibly performing discriminant checks on the
2572 actual (if it is constrained), and only finally reading the components
2573 into a constrained temporary object.
2574 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
2575 case of reading discriminants of a mutable record type to recognize
2576 the new form of the code generated by
2577 Build_Mutable_Record_Read_Procedure.
2579 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
2580 of a simple call to Make_TSS_Name.
2581 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
2582 buffer, in order for Is_TSS to work correctly on local TSS names.
2584 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
2585 Is_Local_Anonymous_Access to check legaliy of attributes in the
2586 context of access components and stand-alone access objects.
2587 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
2588 treated as available for a limited private type if there is an
2589 attribute_definition_clause that applies to its full view, but not in
2590 other cases where the attribute is available for the full view
2591 (specifically, the sole fact that the full view is non-limited does not
2592 make the attribute available for the partial view).
2593 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
2594 non-overloaded intrinsic subprogram.
2595 (Check_Stream_Attribute): Reject an attribute reference for an
2596 unavailable stream attribute even if the prefix is not a limited type
2597 (case of a 'Input attribute reference for an abstract, non-classwide
2599 (Stream_Attribute_Available): New function to determine whether a stream
2600 attribute is available at a place.
2601 (Check_Attribute): Use Stream_Attribute_Available instead of just
2602 testing for TSS presence on the implementation base type.
2603 (Analyze_Attribute): Modified to give support to task interfaces.
2604 (Analyze_Access_Attribute): Add error check for use of an Access (or
2605 Unrestricted_Access) attribute with a subprogram marked as
2607 (Analyze_Attribute, case Attribute_Address): Add error check for use of
2608 an Address attribute with a subprogram marked as Inline_Always.
2609 Update Eval_Attribute to handle new value of Width from AI-395
2611 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
2612 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
2613 Factor common code across the stream-oriented attribute circcuits into
2614 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
2615 processing is functionally identical to the previous duplicated one,
2616 except that an expression that denotes an abstract subprogram will now
2617 be rejected, as mandated by AI-195 item 5.
2619 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
2620 Is_Local_Anonymous_Access to apply accessibility checks to access
2621 components and stand-alone access objects.
2622 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
2624 (Is_Potentially_Persistent_Type): New function
2625 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
2626 a heap-object whose type has a constrained partial view, the object is
2627 unconstrained and the component may depend on a discriminant, making its
2630 * sinfo.ads, sinfo.adb
2631 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
2632 (Must_Override): Flag applicable to N_Entry_Declaration.
2633 Indicate that interface_list can appear in single task and single
2634 protected declarations.
2635 Replace Is_Overriding and Not_Overriding with Must_Override and
2636 Must_Not_Override, to better express intent of AI.
2637 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
2638 of an overriding indicator in a subprogram or instance.
2639 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
2640 Add the overriding indicator [[not] overriding] construct to the
2641 following grammar productions:
2643 GENERIC_INSTANTIATION
2644 SUBPROGRAM_SPECIFICATION
2646 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
2647 can start with an overriding indicator.
2649 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
2650 flags accordingly on subrogram specifications or instances.
2653 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
2654 overriding_indicator, if present, is consistent with status of spec.
2655 Improve error message for null-excluding checks on controlling access
2657 (Check_In_Previous_With_Clause): Protect the frontend against
2658 previously reported critical errors in the context clauses.
2659 Save and restore Ada_Version_Explicit, for implementation of AI-362
2660 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
2661 operation verify that controlling formals of the renamed entity that
2662 are access parameters are explicitly non-null.
2663 (Find_Expanded_Name): Improve error message when prefix is an illegal
2664 reference to a private child unit.
2666 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
2667 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
2668 Rewrite to correspond to new wide character names in AI-395
2670 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
2673 2005-06-14 Ed Schonberg <schonberg@adacore.com>
2674 Robert Dewar <dewar@adacore.com>
2676 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
2677 code, not on the bodies of predefined operations, to cut down on
2680 2005-06-14 Ed Schonberg <schonberg@adacore.com>
2682 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
2683 be expanded in place. The size computation does not require a
2684 subtraction, which would raise an exception on a compiler built with
2685 assertions when the upper bound is Integer'first.
2686 (Flatten): For an array of composite components, take into account the
2687 size of the components to determine whether it is safe to expand the
2688 array into a purely positional representation.
2690 2005-06-14 Thomas Quinot <quinot@adacore.com>
2692 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
2693 denoting a formal parameter into account.
2695 2005-06-14 Ed Schonberg <schonberg@adacore.com>
2697 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
2698 the entry_call alternative of a conditional entry call, wrap the
2699 conditional entry call itself.
2701 2005-06-14 Nicolas Setton <setton@adacore.com>
2702 Ed Schonberg <schonberg@adacore.com>
2704 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
2705 the "simple_choice" member in a variant record, in accordance with the
2706 description in the package spec: the information output for a constant
2707 should be "S number", not "SS number".
2708 (Get_Encoded_Name): Return at once if not generating code. Avoids name
2709 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
2711 2005-06-14 Thomas Quinot <quinot@adacore.com>
2713 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
2714 RACW without any primitives, do not generate the if statement for
2715 dispatching by name in the PolyORB/DSA case, as it would be malformed
2716 (it would have an Elsif_Parts list that is not No_List, but with a
2719 2005-06-14 Robert Dewar <dewar@adacore.com>
2721 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
2723 2005-06-14 Jose Ruiz <ruiz@adacore.com>
2725 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
2726 can determine whether pragma Suppress_Exception_Locations is in effect.
2728 * utils2.c (build_call_raise): Do not pass the file name to the
2729 exception handler if pragma Suppress_Exception_Locations is in effect.
2730 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
2732 2005-06-14 Emmanuel Briot <briot@adacore.com>
2734 * g-debpoo.adb (Deallocate, Dereference): Improve output.
2736 2005-06-14 Nicolas Roche <roche@adacore.com>
2738 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
2740 (Next_Level): Fix minor bug in handling of ../dir case
2741 (Read): Add dir separator to Directory name so that "" is understood as
2744 2005-06-14 Pascal Obry <obry@adacore.com>
2746 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
2747 releasing the items.
2749 2005-06-14 Vincent Celier <celier@adacore.com>
2750 Cyrille Comar <comar@adacore.com>
2752 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
2753 with output file descriptor and with output file name.
2754 (Dup, Dup2): Now global procedures as they are used by two subprograms
2755 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
2757 2005-06-14 Thomas Quinot <quinot@adacore.com>
2761 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
2763 (Create_Selector): Bind listening socket used to create the signalling
2764 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
2765 Set listen backlog to 1 to ensure that we detect socket theft by a
2766 failure of our own connect(2) call.
2767 (Check_Selector): Improve documentation of the selector mechanism.
2768 (Broadcast_Inet_Addr): New constant.
2770 2005-06-14 Gary Dismukes <dismukes@adacore.com>
2772 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
2773 type which turns out to be an incomplete and incorrect fix.
2774 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
2775 of the type is declared in a record (for determination of insertion
2777 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
2778 a private type and ensure that the primary entity is used for the type
2779 of the newly created function's V formal by taking the Etype of the
2782 2005-06-14 Javier Miranda <miranda@adacore.com>
2783 Jose Ruiz <ruiz@adacore.com>
2784 Robert Dewar <dewar@adacore.com>
2785 Ed Schonberg <schonberg@adacore.com>
2787 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
2788 that indicates if we are parsing a compilation unit found in a
2789 limited-with clause.
2790 It is use to avoid the circularity check.
2792 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
2793 we are parsing a compilation unit found in a limited-with clause. This
2794 is use to avoid the circularity check.
2796 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
2797 unit as a consequence of parsing a limited-with clause. This is used
2798 to avoid the circularity check.
2800 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
2801 (Analyze_Context): Limited-with clauses are now allowed
2802 in more compilation units.
2803 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
2804 againts previously reported critical errors in context clauses
2805 (Install_Limited_Withed_Unit): Code cleanup plus static detection
2806 of two further errors: renamed subprograms and renamed packages
2807 are not allowed in limited with clauses.
2808 (Install_Siblings): Do not install private_with_clauses on the package
2809 declaration for a non-private child unit.
2810 (Re_Install_Parents): When a parent of the subunit is reinstalled,
2811 reset visibility of child units properly.
2812 (Install_Withed_Unit): When a child unit appears in a with_clause of its
2813 parent, it is immediately visible.
2815 2005-06-14 Ed Schonberg <schonberg@adacore.com>
2816 Emmanuel Briot <briot@adacore.com>
2818 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
2819 declared within an inlined body as referenced, to prevent spurious
2821 (Output_One_Ref): If an entity renames an array component, indicate in
2822 the ALI file that this aliases (renames) the array. Capture as well
2823 function renamings that rename predefined operations.
2824 Add information about generic parent for package and subprogram
2826 (Get_Type_Reference): For a subtype that is the renaming of an actual in
2827 an instantiation, use the first_subtype to ensure that we don't generate
2828 cross-reference information for internal types.
2829 For objects and parameters of a generic private type, retain the '*'
2830 indicator to distinguish such an entity from its type.
2832 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
2833 to store information about instantiated entities.
2835 * ali.adb (Scan_ALI): Add support for parsing the reference to the
2838 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
2839 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
2842 2005-06-10 Doug Rupp <rupp@adacore.com>
2843 Arnaud Charlet <charlet@adacore.com>
2844 Olivier Hainque <hainque@adacore.com>
2845 Jose Ruiz <ruiz@adacore.com>
2847 * Make-lang.in: Add initialize.o when needed.
2848 Remove obsolete references to RT_FLAGS.
2849 Add missing dependencies for sdefault.o
2851 * initialize.c: New file.
2853 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
2854 [VMS] cond_signal_table: Fix problem in declaration.
2855 [VMS] __gnat_error_handler: rewrite.
2856 Move all __gnat_initialize() routines to initialize.c
2857 Specialize the former "hpux" section to "hppa hpux", as this is what the
2858 section really is here for and we now have other hpux ports that need
2860 (__gnat_adjust_context_for_raise) i386-linux: First version of this
2861 function for this target. Adjust PC by one in the machine context. This
2862 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
2863 it is more reliable to do that in the signal handler itself.
2864 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
2865 flags, so that the handler is passed the context structure to adjust
2867 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
2868 SA_SIGINFO sigaction should look like. Call
2869 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
2870 Machine_State_Operations stuff.
2871 Add conditional code so that the x86_64 is also supported.
2873 2005-06-14 Pascal Obry <obry@adacore.com>
2875 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
2878 2005-06-14 Robert Dewar <dewar@adacore.com>
2880 * opt.ads, opt.adb: New flags for persistent_bss mode
2881 Add Ada_Version_Explicit, for implementation of AI-362
2882 Add Assertions_Enabled_Config and associated handling
2883 Needed since setting can be changed with Assertion_Policy pragma
2884 Add new flag Warn_On_Ada_2005_Compatibility
2886 * switch-c.adb: Recognize -gnatwy/Y
2887 Set Ada_Version_Explicit, for implementation of AI-362
2888 The -gnatg switch now includes -gnatyu
2890 * usage.adb: Add -gnatwy/Y
2891 Remove wrong asterisk on -gnatwX line
2892 Add line for -gnatyu switch
2894 2005-06-14 Vincent Celier <celier@adacore.com>
2896 * osint.adb (Add_Default_Search_Dirs): Put source and object
2897 directories of project files before directories coming from
2898 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
2900 2005-06-14 Robert Dewar <dewar@adacore.com>
2904 * par-ch2.adb (Scan_Pragma_Argument): New procedure
2905 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
2907 2005-06-14 Vincent Celier <celier@adacore.com>
2909 * prep.adb (Preprocess): Ignore error when scanning the first token of
2912 2005-06-14 Vincent Celier <celier@adacore.com>
2914 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
2915 (Check_Stand_Alone_Library): If the specified reference symbol file does
2916 not exist, only issue a warning when the symbol policy is not
2917 Controlled. And, when symbol policy is Compliant, set the symbol
2918 policy to Autonomous.
2920 2005-06-14 Vincent Celier <celier@adacore.com>
2922 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
2923 when the project file in a with clause is not the last one, that is the
2924 project file name is followed by a comma.
2925 * prj-pp.adb: (First_With_In_List): New Boolean global variable
2926 (Print): Issue list of project files separated by commas in with clauses
2927 according to the values returned by Is_Not_Last_In_List.
2928 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
2929 (Set_Is_Not_Last_In_List): New procedure
2931 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
2933 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
2935 2005-06-14 Robert Dewar <dewar@adacore.com>
2937 * scng.adb: Add call to new Check_EOF routine
2938 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
2939 Add some comments regarding wide character handling
2941 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
2943 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
2945 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
2946 characters are now considered graphic characters and hence yield false
2949 * nmake.adt: Modify header so that xnmake does not generate output
2950 files with multiple blank lines.
2952 * treeprs.adt: Remove a blank line so that output from xtreeprs does
2953 not have an extra blank line
2955 2005-06-14 Gary Dismukes <dismukes@adacore.com>
2957 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
2958 expression when the component type is an anonymous access type to
2959 ensure that appropriate accessibility checks are done.
2961 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
2962 expression of an assignment when the target object is of an anonymous
2963 access type. This ensures that required accessibility checks are done.
2964 (One_Bound): Move the check for type Universal_Integer to
2966 (Process_Bounds): Check whether the type of the preanalyzed range is
2967 Universal_Integer, and in that case set Typ to Integer_Type prior
2968 to setting the type of the original range and the calls to One_Bound.
2970 2005-06-14 Ed Schonberg <schonberg@adacore.com>
2972 * sem_case.adb (Expand_Others_Choice): Improve warning.
2974 2005-06-14 Ed Schonberg <schonberg@adacore.com>
2976 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
2977 constraint of full view if present, when other type is discriminated.
2978 (Eval_Relational_Op): Recognize tests of pointer values against Null,
2979 when the pointer is known to be non-null, and emit appropriate warning.
2981 2005-06-14 Robert Dewar <dewar@adacore.com>
2982 Ed Schonberg <schonberg@adacore.com>
2986 * sem_prag.adb: Implement pragma Persistent_BSS
2987 Remove obsolete pragma Persistent_Data, Persistent_Object
2988 Set Ada_Version_Explicit, for implementation of AI-362
2989 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
2990 Add processing for pragma Pure_05 and Preelaborate_05
2991 Add processing for Assertion_Policy pragma
2992 Add pragma identifiers for Assert
2993 (Analyze_Pragma, case Assert): Check number of arguments
2994 (Process_Inline): Additional guard against an illegal program, where the
2995 argument of the pragma is undefined, and warnings on redundant
2996 constructs are enabled.
2997 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
2998 Ada_05 to this pragma, specifying that the pragma is only active in
3000 (Check_Arg_Order): New procedure
3001 Add appropriate calls to this procedure throughout
3002 Also throughout, check entity name before doing any other checks
3004 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
3005 Remove obsolete pragma Persistent_Data, Persistent_Object
3006 Add entries for pragma Pure_05 and Preelaborate_05
3007 Add entries for Assertion_Policy pragma and associated names
3008 Add some names for pragma argument processing
3010 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
3012 2005-06-14 Ed Schonberg <schonberg@adacore.com>
3014 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
3015 appears within a negation (either from source or as a rewriting of
3016 inequality) adjust text of warning accordingly.
3018 2005-06-14 Thomas Quinot <quinot@adacore.com>
3020 * s-strxdr.adb: Follow AI95-00132
3022 2005-06-14 Arnaud Charlet <charlet@adacore.com>
3024 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
3026 2005-06-14 Arnaud Charlet <charlet@adacore.com>
3027 Jose Ruiz <ruiz@adacore.com>
3029 * s-tposen.adb, s-tpobop.adb
3030 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
3032 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
3033 there is no violation of the Max_Entry_Queue_Length restriction (if it
3034 has been set); Program_Error is raised otherwise.
3035 (Requeue_Call): Before requeuing the task on the target entry queue we
3036 check that there is no violation of the Max_Entry_Queue_Length
3037 restriction (if it has been set); Program_Error is raised otherwise.
3039 2005-06-14 Robert Dewar <dewar@adacore.com>
3041 * styleg.adb: Fix several remaining problems in -gnatyu switch
3042 Blank line count not reset at start
3043 Scanning outside source buffer in some cases
3044 Confusing message for blanks at end of file
3045 Non-empty blank lines not recognized
3047 * nmake.adt: Modify header so that xnmake does not generate output
3048 files with multiple blank lines.
3050 * treeprs.adt: Remove a blank line so that output from xtreeprs does
3051 not have an extra blank line
3053 2005-06-14 Sergey Rybin <rybin@adacore.com>
3055 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
3057 2005-06-14 Doug Rupp <rupp@adacore.com>
3058 Vincent Celier <celier@adacore.com>
3060 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
3063 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
3064 Remove "Library" command.
3065 Change keyword for style check -gnatyd from NOCRLF to
3067 Remove useless second style check keyword NONE
3068 Remove help documentation for inexistent style check keyword
3070 Add help documentation for style check keywords DOS_LINE_ENDINGS,
3071 UNNECESSARY_BLANK_LINES and XTRA_PARENS
3072 Add UNNECESSARY_BLANK_LINES for -gnatyu
3073 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
3075 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
3077 2005-06-14 Vincent Celier <celier@adacore.com>
3079 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
3080 gprmake was invoked with -d.
3081 (Compile_Sources): If -d was used, output the "completed ..." message
3082 for each compilation.
3083 (Scan_Arg): Recognize new switch -d
3084 When -c and at least one main is specified, set
3085 Unique_Compile to True to guarantee that no other sources will be
3088 2005-06-14 Matthew Heaney <heaney@adacore.com>
3090 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
3091 * a-swuwha.ads, a-swuwha.adb: New files
3093 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
3094 * a-szuzha.ads, a-szuzha.adb: New files.
3096 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
3097 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
3098 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
3099 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
3100 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
3101 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
3102 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
3103 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
3104 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
3105 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
3108 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
3109 Olivier Hainque <hainque@adacore.com>
3110 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3111 Pascal Obry <obry@adacore.com>
3113 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
3115 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
3116 making a temporary around a procedure call because of non-addressable
3118 (process_freeze_entity): If entity is a private type, capture size
3119 information that may have been computed for the full view.
3120 (tree_transform, case N_Allocator): If have initializing expression,
3121 check type for Has_Constrained_Partial_View and pass that to
3123 (tree_transform, case N_Return_Statement): Pass extra arg to
3126 * decl.c (annotate_value): Remove early return if -gnatR is not
3128 (gnat_to_gnu_field): Don't make a packable type for a component clause
3129 if the position is byte aligned, the field is aliased, and the clause
3130 size isn't a multiple of the packable alignment. It serves no useful
3131 purpose packing-wise and would be rejected later on.
3132 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
3135 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
3136 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
3138 (create_concat_name): Idem.
3140 2005-06-10 Robert Dewar <dewar@adacore.com>
3141 Eric Botcazou <ebotcazou@adacore.com>
3142 Ben Brosgol <brosgol@adacore.com>
3143 Cyrille Comar <comar@adacore.com>
3144 Sergey Rybin <rybin@adacore.com>
3145 Pascal Obry <obry@adacore.com>
3147 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
3148 Document second argument (Ada_05) of pragma Obsolescent
3149 Add note that call to subprogram marked with pragma Obsolescent
3150 is now considered to be a violation of program Restrictions
3151 (No_Obsolescent_Features).
3152 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
3153 that only machine-dependent attributes are supported.
3156 Commented out menu lines and empty section for gnatclean examples
3158 Fix some over long lines
3159 Clarify and enhance documentation of ADA_PROJECT_PATH.
3160 Rework section 2.11.2(3) about linking with a non-GNU compiler.
3161 Mention new switch -fcallgraph-info.
3162 Mention new switch -fstack-usage.
3163 For gnatpp, replace '-notab' with '-N' and add this option to Index
3164 Corrected VMS example.
3165 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
3167 Add documentation for -gnatyu switch (unnecessary blank lines)
3168 Document new switch -U for GNAT PRETTY and GNAT METRIC
3169 Add note about Stdcall being handled as C convention on non Windows OS.
3170 Remove some junk typo in description of gnatbind -S switch
3171 Remove reference to Extensions_Allowed pragma
3172 Document the new order of the directories to be searched (source and
3173 object directories of project files before directories in ADA_*_PATH
3174 environment variables.
3176 * g-trasym.ads: Document that IRIX is supported
3178 2005-06-10 Arnaud Charlet <charlet@adacore.com>
3180 * Makefile.in: Add initialize.o when needed.
3181 Adapt to new VMS package body Symbols and subunits
3182 No specialized version of a-sytaco is needed for VxWorks.
3184 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
3185 * a-zchara.ads, a-widcha.ads: New files.
3187 * system-hpux-ia64.ads: New file.
3189 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
3190 is imported from the VxWorks kernel.
3192 2005-06-14 Robert Dewar <dewar@adacore.com>
3194 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
3195 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
3196 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
3197 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
3198 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
3199 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
3200 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
3201 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
3202 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
3203 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
3204 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
3205 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
3207 2005-06-14 Thomas Quinot <quinot@adacore.com>
3209 * xeinfo.adb: Fix typo in comment
3211 2005-06-14 Javier Miranda <miranda@adacore.com>
3213 * repinfo.ads: Fix typo in comment
3215 2005-06-14 Gary Dismukes <dismukes@adacore.com>
3217 * s-finimp.adb (Parent_Tag): Delete this imported function (function
3218 Parent_Tag is now in the visible part of Ada.Tags).
3219 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
3220 using imported function.
3222 2005-06-14 Bernard Banner <banner@adacore.com>
3224 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
3225 also apply for handling support for VxSim 653.
3227 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
3229 * xsnames.adb: Add automatic generation of snames.h.
3231 2005-06-14 Thomas Quinot <quinot@adacore.com>
3233 * gen-soccon.c: Add IP_MULTICAST_IF constant
3234 Minor reformatting and adjustments to prevent warnings.
3236 2005-06-14 Pascal Obry <obry@adacore.com>
3238 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
3240 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
3242 * trans.c (gnat_gimplify_expr): Call
3243 recompute_tree_invarant_for_addr_expr when we change
3244 the operand of the ADDR_EXPR.
3246 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3248 * misc.c: Don't include errors.h.
3250 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3252 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
3254 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
3256 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
3258 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
3260 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
3263 * Makefile.in: Make TGT_LIB behave correctly.
3265 2005-04-23 DJ Delorie <dj@redhat.com>
3267 * misc.c: Adjust warning() callers.
3269 2005-04-16 Laurent GUERBY <laurent@guerby.net>
3272 * a-nudira.adb (Value): Check for valid string.
3273 * a-nuflra.adb (Value): Likewise.
3275 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
3277 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
3279 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
3281 * adaint.c, init.c, tracebak.c: Fix comment typos.
3282 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
3284 2005-04-07 Laurent GUERBY <laurent@guerby.net>
3285 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3287 * Makefile.in: Add make ifeq define for hppa linux tasking support.
3288 * system-hpux.ads: Define Signed_Zeros to be True.
3289 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
3291 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
3293 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
3294 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
3297 2005-03-30 Tom Tromey <tromey@redhat.com>
3299 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
3301 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3303 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
3305 2005-03-29 Robert Dewar <dewar@adacore.com>
3307 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
3308 fixed-point expression has value that is not a multiple of the Small
3311 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
3313 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
3316 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
3318 2005-03-29 Vincent Celier <celier@adacore.com>
3320 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
3321 (Build_Dynamic_Library.Version_String): Return the empty string when
3322 Lib_Version is empty or when the symbol policy is not Autonomous.
3324 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
3325 a symbol is not in the reference symbol file, increase the Major ID
3326 and set the Minor ID to 0.
3327 Use gsmatch=lequal instead of gsmatch=equal
3329 2005-03-29 Doug Rupp <rupp@adacore.com>
3331 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
3334 2005-03-29 Javier Miranda <miranda@adacore.com>
3336 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
3337 (Inherit_DT): The first formal has been redefined as a Tag.
3338 This allows us the removal of the subprogram Get_TSD.
3339 (TSD): Replace the call to Get_TSD by the actual code.
3341 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
3342 (Make_DT): Upgrade the call to Inherit_TSD according to the
3343 new interface: the first formal is now a Tag.
3345 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
3347 This change allows us to remove the subprogram Get_TSD.
3348 (CPP_Get_TSD): Subprogram removed.
3349 (TSD): Replace the call to CPP_Get_TSD by the actual code.
3351 * rtsfind.ads: Remove support to call the run-time
3354 2005-03-29 Robert Dewar <dewar@adacore.com>
3356 * errutil.adb, errout.adb:
3357 Minor comment updates on Line_Terminator references
3359 * par-ch10.adb: Add ??? comment about line terminator
3361 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
3362 (check dos line terminator).
3363 (Check_Line_Max_Length): New procedure, split off from the existing
3364 Check_Line_Terminator routine. Separating this out allows -gnatyf to
3365 be properly recognized.
3367 * styleg.adb: Add ??? comment for line terminator reference
3369 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
3370 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
3372 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
3373 (check dos line terminator).
3374 (Check_Line_Max_Length): New procedure, split off from the existing
3375 Check_Line_Terminator routine. Separating this out allows -gnatyf to
3376 be properly recognized.
3378 * stylesw.ads, stylesw.adb:
3379 Add handling for new -gnatyd switch (check dos line terminator)
3381 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
3382 Recognize -gnatwb/-gnatwB switches
3383 Include Warn_On_Bad_Fixed_Value for -gnatg
3386 Add line for new -gnatyd switch (check dos line terminator)
3388 * usage.adb: Add lines for -gnatwb/-gnatwB
3390 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
3392 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
3394 * gnat_ugn.texi: Fix overlong lines
3395 Document new -gnatyd switch
3396 Document new -gnatwb/-gnatwB switches
3398 2005-03-29 Ed Schonberg <schonberg@adacore.com>
3400 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
3401 order to retrieve the component list of the type, before examining
3402 individual components.
3404 * sem_type.adb (Covers): Types are compatible if one is the base type
3405 of the other, even though their base types might differ when private
3408 2005-03-29 Thomas Quinot <quinot@adacore.com>
3410 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
3411 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
3412 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
3413 analyzed if expansion is disabled (which could otherwise cause spurious
3414 error messages if expansion has been disabled due to previous
3415 (unrelated) errors).
3417 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
3418 is disabled, the entity denoted by the argument is the access type
3419 itself, not an underlying record type, so there is no need to go back
3420 to the Corresponding_Remote_Type.
3422 2005-03-29 Gary Dismukes <dismukes@adacore.com>
3423 Robert Dewar <dewar@adacore.com>
3425 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
3426 expand a call to an instance of
3427 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
3428 Constructor actual of the instance. A class-wide membership
3429 check is also generated, to ensure that the tag passed to the instance
3430 denotes a type in the class.
3431 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
3432 of Name_Generic_Dispatching_Constructor.
3434 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
3435 05 unit for AI-260-02).
3437 * a-tgdico.ads: New file.
3439 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
3440 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
3442 * snames.ads, snames.adb (Preset_Names): Add entry for
3443 Generic_Dispatching_Constructor.
3447 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
3448 character type cases.
3449 (Analyze_Subprogram_Renaming): Add special handling for
3450 the case of renaming of stream attributes when the renaming denotes a
3451 generic formal subprogram association for an abstract formal subprogram.
3452 Check that the attribute is a primitive stream attribute (and not
3453 a class-wide stream attribute) and then rewrite the attribute name
3454 as the name of the appropriate compiler-generated stream primitive.
3456 2005-03-29 Robert Dewar <dewar@adacore.com>
3458 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
3460 (Is_Possibly_Unaligned_Object): Correct typo that
3461 resulted in inaccurate result for unaligned scalars within records.
3463 2005-03-29 Ed Schonberg <schonberg@adacore.com>
3465 * freeze.adb (Freeze_Record_Type): If the type of the component is an
3466 itype whose parent is controlled and not yet frozen, do not create a
3467 freeze node for the itype if expansion is disabled.
3469 2005-03-29 Vincent Celier <celier@adacore.com>
3471 * make.adb (Gnatmake): Don't fail if the main project file is declared
3472 as having no Ada sources. Do not display message "no sources to
3473 compile" in quiet output.
3475 2005-03-29 Doug Rupp <rupp@adacore.com>
3477 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
3480 2005-03-29 Robert Dewar <dewar@adacore.com>
3482 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
3485 2005-03-29 Robert Dewar <dewar@adacore.com>
3487 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
3488 missing TYPE Improve the error message generated when compiling a
3489 limited interface in Ada83 or Ada95 mode.
3491 2005-03-29 Robert Dewar <dewar@adacore.com>
3493 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
3494 rather than proceed ahead using a junk attribute name.
3496 2005-03-29 Vincent Celier <celier@adacore.com>
3498 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
3500 * prj-part.adb (Parse_Single_Project): Set the location of a project
3501 on its defining identifier, rather than on the reserved word "project".
3503 * prj-proc.adb (Expression): Adapt to the fact that default of external
3504 references may be string expressions, not always literal strings.
3505 (Recursive_Process): Set Display_Name equal to Name
3506 when Location is No_Location, that is when there is no actual file.
3507 Get the Display_Name of the project from the source, when it is not a
3509 (Process): Use the Display_Name in error messages
3511 * prj-strt.adb (External_Reference): Allow default to be string
3512 expressions, not only literal strings.
3514 2005-03-29 Vincent Celier <celier@adacore.com>
3516 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
3517 file and the reference symbol file to be the same file.
3519 2005-03-29 Thomas Quinot <quinot@adacore.com>
3521 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
3522 forbid conversion of a local access-to-subprogram type to a remote one.
3524 * sem_util.adb (Wrong_Type): For a record type that is the expanded
3525 equivalent type for a remote access-to-subprogram type, go back to the
3526 original RAS entity when displaying an error message, so the casing is
3527 the original source casing.
3529 2005-03-29 Robert Dewar <dewar@adacore.com>
3531 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
3534 2005-03-29 Ed Schonberg <schonberg@adacore.com>
3536 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
3537 subtype if code is being pre-analyzed, to prevent un-expanded
3538 references to protected formals, among others.
3539 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
3540 interpretation that can be a call, include the result of the call as a
3541 possible interpretation of the dereference.
3543 * sem_ch5.adb (Process_Bounds): Determine type of range by
3544 pre-analyzing a copy of the original range, and then analyze the range
3545 with the expected type.
3547 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
3548 with an overloaded prefix where not all interpretations yield an
3549 access to subprogram, do not rewrite node as a call.
3550 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
3551 the node as a call once the context identifies the interpretation of
3552 the prefix whose call yields the context type.
3553 (Valid_Conversion): For the case of a conversion between
3554 local access-to-subprogram types, check subtype conformance using
3555 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
3556 detailed error message.
3558 2005-03-29 Ed Schonberg <schonberg@adacore.com>
3560 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
3561 indicator, indicate that the formal can never be null.
3562 (Process_Formals): If a formal has a non_null indicator, insert the
3563 resulting subtype immediately before the enclosing subprogram decl,
3564 and not at the beginning of the corresponding declarative part, to
3565 prevent access before elaboration (Ada2005).
3567 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3570 * utils.c (finish_record_type): Use variable_size when setting sizes.
3572 2005-03-29 Robert Dewar <dewar@adacore.com>
3574 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
3575 guarantee Unix style line terminators for the output files, even when
3578 2005-03-29 Robert Dewar <dewar@adacore.com>
3580 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
3581 buffer if an exception is raised.
3583 2005-03-29 Ed Falis <falis@adacore.com>
3585 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
3588 2005-03-29 Robert Dewar <dewar@adacore.com>
3590 * sem_util.ads: Minor reformatting
3591 * gnat_rm.texi: Minor editing.
3593 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
3595 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
3596 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
3598 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3600 * adaint.c (__gnat_portable_spawn): Adjust cast.
3602 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
3604 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
3606 2005-03-17 Pascal Obry <obry@adacore.com>
3608 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
3611 * expect.c (__gnat_waitpid): Moved here from adaint.c.
3612 Reimplement under Win32 using Win32 API.
3614 (__gnat_kill) [Win32]: Properly close the process handle before leaving
3617 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
3619 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
3620 (DECL_RENAMED_OBJECT): New accessor macro.
3621 (SET_DECL_RENAMED_OBJECT): New setter macro.
3623 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
3624 object in all cases. Attach the renamed object to the VAR_DECL.
3625 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
3626 field is not prescribed.
3628 * misc.c (gnat_handle_option): Handle -gnatO separately.
3629 (gnat_print_decl) <VAR_DECL>: New case.
3630 Print the DECL_RENAMED_OBJECT node.
3632 * lang.opt: Declare separate -gnatO option.
3634 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
3635 pointer, replace it with the renamed object.
3636 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
3637 pointer type if the source is not a fat pointer type whose underlying
3638 array has the same non-zero alias set as that of the destination array.
3640 2005-03-17 Javier Miranda <miranda@adacore.com>
3642 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
3643 (Get_Inheritance_Depth): Removed.
3644 (Set_Inheritance_Depth): Removed.
3646 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
3647 subprogram Get_Expanded_Name because it is not referenced by the
3650 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
3651 (CPP_Get_Inheritance_Depth): Removed.
3652 (CPP_Set_Inheritance_Depth): Removed.
3654 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
3656 2005-03-17 Robert Dewar <dewar@adacore.com>
3658 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
3659 3, since we now expect GCC 3 to do all the work.
3661 2005-03-17 Javier Miranda <miranda@adacore.com>
3663 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
3664 of one barrier to avoid wrong usage of this attribute.
3666 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
3667 First_Private_Entity.
3669 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
3670 the subprogram against wrong usage.
3671 Adapt the code to traverse the entities in the
3672 scope of a record_type because in addition to its usage regarding
3673 packages, this subprogram is also called by Expand_N_Freeze_Entity
3674 to install the visible declarations of the enclosing scope of a
3675 record_type_with_private to establish the proper visibility before
3676 freezing the entity and related subprograms.
3678 2005-03-17 Ed Schonberg <schonberg@adacore.com>
3680 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
3683 2005-03-17 Thomas Quinot <quinot@adacore.com>
3685 * exp_ch3.adb (Check_Attr): New subprogram.
3686 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
3687 into a new Check_Attr subprogram, in order to provide a more
3688 explanatory error message (including the name of the missing attribute).
3689 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
3690 subprogram determines whether a default implementation exists for a
3691 given stream attribute.
3692 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
3693 Determine whether to generate a default implementation for each stream
3694 attribute separately, as this depends on the specific attribute.
3696 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
3697 limited extension where a stream attribute is missing for a limited
3698 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
3699 generate a bogus reference to the missing attribute to prevent
3700 cascaded errors. Instead, generate a null statement.
3702 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
3703 available for a limited type if it has been specified for an ancestor
3706 2005-03-17 Ed Schonberg <schonberg@adacore.com>
3708 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
3709 entity is an operator.
3711 2005-03-17 Thomas Quinot <quinot@adacore.com>
3713 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
3714 spec, to make this predicate available to other units.
3716 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
3719 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
3720 when no distribution runtime library is available.
3722 * sem_res.adb, sem_dist.adb: Disable expansion of remote
3723 access-to-subprogram types when no distribution runtime library is
3725 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
3726 predicate available to other units.
3728 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
3729 spec, to make this predicate available to other units.
3731 2005-03-17 Vincent Celier <celier@adacore.com>
3733 * make.adb (Insert_Project_Sources): Make sure the Q is always
3736 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
3737 the default for the tree, not the global default naming.
3739 * prj-proc.adb (Recursive_Process): No need to put the default naming
3740 in the project data, it's already there.
3742 2005-03-17 Doug Rupp <rupp@adacore.com>
3744 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
3746 * 5xcrtl.ads: Renamed to...
3747 * s-crtl-vms64.ads: ...this new file
3749 2005-03-17 Robert Dewar <dewar@adacore.com>
3753 * namet.adb (Copy_One_Character): Set proper wide character encoding
3754 for upper half character if we have upper half encoding.
3756 2005-03-17 Robert Dewar <dewar@adacore.com>
3758 * par.adb (Par): Improved msg for attempt to recompile predefined unit
3760 2005-03-17 Thomas Quinot <quinot@adacore.com>
3762 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
3763 tagged limited type, the TSS is a newly built renaming declaration:
3764 insert it using Set_TSS, not Copy_TSS.
3766 2005-03-17 Javier Miranda <miranda@adacore.com>
3768 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
3769 Try_Object_Operation): Analyze the object that is accessible
3770 through the prefix of the subprogram call before we apply
3771 the transformation of the object-operation notation.
3773 2005-03-17 Jose Ruiz <ruiz@adacore.com>
3775 * s-taprob.adb (Initialize_Protection): Initialize the protected
3776 object's owner to Null_Task.
3777 (Lock): If pragma Detect_Blocking is in effect and the caller of this
3778 procedure is already the protected object's owner then Program_Error
3779 is raised. In addition the protected object's owner is updated.
3780 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
3781 of this procedure is already the protected object's owner then
3782 Program_Error is raised.
3783 In addition the protected object's owner is updated.
3784 (Unlock): Remove the ownership of the protected object.
3786 * s-taprob.ads (Protection): Add the field Owner, used to store the
3787 protected object's owner.
3788 This component is needed for detecting one type of potentially blocking
3789 operations (external calls on a protected subprogram with the same
3790 target object as that of the protected action). Document the rest of
3793 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
3794 Initialize the protected object's owner to Null_Task.
3795 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
3796 caller of this procedure is already the protected object's owner then
3797 Program_Error is raised.
3798 Do not raise Program_Error when this procedure is called from a
3800 (Unlock_Entries): Remove the ownership of the protected object.
3801 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
3802 of this procedure is already the protected object's owner then
3803 Program_Error is raised.
3804 Do not raise Program_Error when this procedure is called from
3807 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
3808 used to store the protected object's owner.
3810 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
3811 effect and this procedure (a potentially blocking operation) is called
3812 from whithin a protected action, Program_Error is raised.
3813 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
3814 and this procedure (a potentially blocking operation) is called from
3815 whithin a protected action, Program_Error is raised.
3817 2005-03-17 Vincent Celier <celier@adacore.com>
3818 Nicolas Setton <setton@adacore.com>
3820 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
3821 switch, not supported by the linker on Darwin. Add '_' before
3822 <library>init, as this character is added unconditionally by the
3824 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
3825 correct one ".dylib". This fixes detection of the archive files when
3826 building library projects.
3828 2005-03-17 Vincent Celier <celier@adacore.com>
3830 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
3831 -gnat83, -gnat95 and -gnat05.
3833 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
3835 * gnat_ugn.texi: Document gnatmem restriction
3837 2005-03-17 Thomas Quinot <quinot@adacore.com>
3839 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
3842 2005-03-17 Robert Dewar <dewar@adacore.com>
3844 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
3845 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
3846 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
3848 * casing.adb: Comment improvements
3850 2005-03-17 Pascal Obry <obry@adacore.com>
3852 * g-expect.adb: Minor reformatting.
3854 2005-03-15 Zack Weinberg <zack@codesourcery.com>
3856 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
3857 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
3860 2005-03-15 Vincent Celier <celier@adacore.com>
3862 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
3863 Add new parameter In_Tree to specify the project tree: needed
3864 by the project manager. Adapt to changes in project manager
3865 using new parameter In_Tree.
3867 2005-03-15 Jakub Jelinek <jakub@redhat.com>
3869 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
3870 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
3871 ada/bldtools to avoid make -jN failures.
3873 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
3875 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
3876 to NULL_TREE on entry.
3878 2005-03-15 Robert Dewar <dewar@adacore.com>
3880 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
3881 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
3882 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
3883 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
3884 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
3885 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
3886 system-interix.ads, system-solaris-sparc.ads,
3887 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
3888 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
3889 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
3890 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
3891 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
3892 Compiler_System_Version to be False.
3894 * opt.ads: Add new flag Opt.Address_Is_Private
3896 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
3897 Add new parameter Compiler_System_Version to avoid checking for
3898 completeness of parameters when compiler is compiling itself.
3899 Allows old versions of GNAT to be compiled with new compiler.
3901 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
3903 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
3904 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
3906 (Stack_Base_Available): New flag.
3907 (Get_Page_Size): New overloaded functions imported from C.
3908 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
3909 PROT_ON, PROT_OFF): New constants.
3910 (mprotect): New function imported from C.
3911 (pthread_teb_t): New record type.
3913 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
3914 (Create_Task): Account for the Yellow Zone and the guard page.
3916 2005-03-15 Vincent Celier <celier@adacore.com>
3918 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3919 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3920 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
3921 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
3922 Library_File_Name_For): Add new parameter In_Tree
3923 to specify the project tree: needed by the project manager.
3924 Adapt to changes in project manager using new parameter In_Tree.
3925 Remove local imports, use functions in System.CRTL.
3927 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
3928 to use the project manager.
3930 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
3931 In_Tree to designate the project tree. Adapt to changes in the project
3932 manager, using In_Tree.
3934 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
3935 Copy_Interface_Sources): Add new parameter In_Tree to specify the
3936 project tree: needed by the project manager.
3937 (Build_Library): Check that Arg'Length >= 6 before checking if it
3938 contains "--RTS=...".
3940 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
3941 Library_File_Name_For): Add new parameter In_Tree to specify the
3942 project tree: needed by the project manager.
3944 * prj.ads, prj.adb: Major modifications to allow several project trees
3945 in memory at the same time.
3946 Change tables to dynamic tables and hash tables to dynamic hash
3947 tables. Move tables and hash tables from Prj.Com (in the visible part)
3948 and Prj.Env (in the private part). Move some constants from the visible
3949 part to the private part. Make other constants deferred.
3950 (Project_Empty): Make it a variable, not a function
3951 (Empty_Project): Add parameter Tree. Returns the data with the default
3952 naming data of the project tree Tree.
3953 (Initialize): After updating Std_Naming_Data, copy its value to the
3954 component Naming of Project Empty.
3955 (Register_Default_Naming_Scheme): Use and update the default naming
3956 component of the project tree, instead of the global variable
3958 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
3959 Tree is not defaulted, return the default naming data of the Tree.
3960 (Initial_Buffer_Size): Constant moved from private part
3961 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
3962 variables initialized in procedure Initialize.
3963 (Add_To_Buffer): Add two in out parameters to replace global variables
3964 Buffer and Buffer_Last.
3965 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
3967 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
3969 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
3970 for the project tree.
3971 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
3972 constant at the beginning of the package spec, so that they cane be used
3973 in subprograms before their full declarations.
3974 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
3975 (Empty_Project): Add parameter of type Project_Node_Ref
3976 (Private_Project_Tree_Data): Add component Default_Naming of type
3978 (Buffer, Buffer_Last): remove global variables
3979 (Add_To_Buffer): Add two in out parameters to replace global variables
3980 Buffer and Buffer_Last.
3981 (Current_Packages_To_Check): Remove global variable
3982 (Empty_Name): Move to private part
3983 (No-Symbols): Make it a constant
3984 (Private_Project_Tree_Data): New type for the private part of the
3986 (Project_Tree_Data): New type for the data of a project tree
3987 (Project_Tree_Ref): New type to designate a project tree
3988 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
3989 for the project tree.
3991 * prj-attr.ads: Add with Table; needed, as package Prj no longer
3992 imports package Table.
3994 * prj-com.adb: Remove empty, no longer needed body
3996 * prj-com.ads: Move most of the content of this package to package Prj.
3998 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
3999 designate the project node tree and Packages_To_Check to replace
4000 global variable Current_Packages_To_Check.
4001 Add new parameters In_Tree and Packages_To_Check to local subprograms,
4002 when needed. Adapt to changes in project manager with project node tree
4005 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
4006 project tree to most subprograms. Move tables and hash tables to
4007 private part of package Prj.
4008 Adapt to changes in project manager using project tree In_Tree.
4010 * prj-makr.adb (Tree): New constant to designate the project node tree
4011 Adapt to change in project manager using project node tree Tree
4013 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
4014 display the Library_Src_Dir and the Library_Dir.
4015 Add new parameter In_Tree to designate the project node tree to most
4016 subprograms. Adapt to changes in the project manager, using project tree
4018 (Check_Naming_Scheme): Do not alter the casing on platforms where
4019 the casing of file names is not significant.
4020 (Check): Add new parameter In_Tree to designate the
4022 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
4023 designate the project tree.
4024 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
4026 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
4027 to replace those that were in the private part of package Prj.
4028 Add new parameter In__Tree to designate the project node tree to most
4029 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
4030 (Post_Parse_Context_Clause): When specifying the project node of a with
4031 clause, indicate that it is a limited with only if there is "limited"
4032 in the with clause, not necessarily when In_Limited is True.
4033 (Parse): Add new parameter In_Tree to designate the project node tree
4035 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
4036 designate the project node tree. Adapt to change in Prj.Tree with
4037 project node tree In_Tree.
4039 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
4040 tree In_Tree in the call to function Empty_Process to give its initial
4041 value to the project data Processed_Data.
4042 Add new parameters In_Tree to designate the project tree and
4043 From_Project_Node_Tree to designate the project node tree to several
4044 subprograms. Adapt to change in project manager with project tree
4045 In_Tree and project node tree From_Project_Node_Tree.
4047 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
4048 to replace those that were in the private part of package Prj.
4049 Add new parameter In_Tree to designate the project node tree to most
4050 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
4052 * prj-tree.ads, prj-tree.adb: Add new parameter of type
4053 Project_Node_Tree_Ref to most subprograms.
4054 Use this new parameter to store project nodes in the designated project
4056 (Project_Node_Tree_Ref): New type to designate a project node tree
4057 (Tree_Private_Part): Change table to dynamic table and hash tables to
4058 dynamic hash tables.
4060 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
4061 the project tree to most subprograms. Adapt to changes in project
4062 manager using project tree In_Tree.
4064 * makegpr.adb (Project_Tree): New constant needed to use project
4067 2005-03-15 Olivier Hainque <hainque@adacore.com>
4069 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
4070 for sigactions with SA_SIGINFO set. Call
4071 __gnat_adjust_context_for_raise before raising, to perform the
4072 potentially required adjustments to the machine context for the GCC
4075 * raise.h (__gnat_adjust_context_for_raise): New prototype.
4077 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
4078 Adjust PC by one in the provided machine context.
4079 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
4080 so that the handler is passed the context structure to adjust prior to
4082 (__gnat_error_handler) HPUX: Adjust the signature to match what an
4083 SA_SIGINFO sigaction should look like. Call
4084 __gnat_adjust_context_for_raise before actually raising.
4085 (__gnat_adjust_context_for_raise): Default noop to help PC
4086 adjustments before raise from signal handlers.
4087 (__gnat_error_handler): Indirectly call a predicate function to
4088 determine if a condition should be resignaled or not.
4089 (__gnat_set_resignal_predicate): User interface to modify the predicate.
4090 (__gnat_default_resignal_p): Default GNAT predicate.
4092 2005-03-15 Doug Rupp <rupp@adacore.com>
4094 * adaint.c: Prefix #include of VMS system header files with vms/
4095 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
4096 Do not define a dummy function "convert_addresses" under Darwin,
4099 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
4102 2005-03-15 Nicolas Setton <setton@adacore.com>
4104 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
4107 2005-03-15 Robert Dewar <dewar@adacore.com>
4109 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
4112 * a-retide.ads: Minor comment changes
4114 2005-03-15 Robert Dewar <dewar@adacore.com>
4116 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
4117 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
4118 Realloc_For_Chunk to private part of package.
4119 New subprograms for AI-301
4121 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
4123 Avoid unnecessary use of Get/Set_Wide_String
4125 2005-03-15 Robert Dewar <dewar@adacore.com>
4129 * a-stunau.ads, a-stunau.adb:
4130 Change interface to allow efficient (and correct) implementation
4131 The previous changes to allow extra space in unbounded strings had
4132 left this interface a bit broken.
4134 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
4136 * g-spipat.ads, g-spipat.adb: New interface for Get_String
4137 Minor reformatting (function specs)
4139 * g-spitbo.adb: New interface for Get_String
4141 * g-spitbo.ads: Minor reformatting
4143 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
4145 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
4147 2005-03-15 Javier Miranda <miranda@adacore.com>
4148 Robert Dewar <dewar@adacore.com>
4149 Thomas Quinot <quinot@adacore.com>
4150 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4152 * atree.ads, atree.adb: Add support for Elist24 field
4154 * atree.h: Fix wrong definition of Field27
4155 Add support for Elist16 field
4156 Add support for Elist24 field
4158 * einfo.ads, einfo.adb (Abstract_Interfaces,
4159 Set_Abstract_Interfaces): New subprograms.
4160 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
4162 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
4163 entities rather than a single node.
4164 (Is_Interface, Set_Is_Interface): New subprogram
4165 (First_Tag_Component): New syntesized attribute
4166 (Next_Tag_Component): New synthesized attribute
4167 (Write_Entity_Flags): Upgraded to write Is_Interface
4168 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
4169 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
4170 (Task_Body_Procedure): New subprogram to read this attribute.
4171 (Set_Task_Body_Procedure): New subprogram to set this attribute.
4172 (Has_Controlled_Component): Now applies to all entities.
4173 This is only a documentation change, since it always worked to apply
4174 this to other than composite types (yielding false), but now this is
4176 Update documentation on Must_Be_Byte_Aligned for new spec
4178 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
4179 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
4180 uses of the Access_Disp_Table attribute to reference the first dispatch
4181 table associated with a tagged type. As
4182 part of the implementation of abstract interface types,
4183 Access_Disp_Table has been redefined to contain a list of dispatch
4184 tables (rather than a single dispatch table).
4185 Similarly, upgrade all the references to Tag_Component by the
4186 new attribute First_Tag_Component.
4187 (Find_Inherited_TSS): Moved to exp_tss.
4188 Clean up test in Expand_N_Object_Declaration for cases
4189 where we need to do a separate assignment of the initial value.
4190 (Expand_N_Object_Declaration): If the expression in the
4191 declaration of a tagged type is an aggregate, no need to generate an
4192 additional tag assignment.
4193 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
4195 Bit packed array ops are only called if operands are known to be
4197 (Component_Equality): When returning an N_Raise_Program_Error statement,
4198 ensure that its Etype is set to Empty to avoid confusing GIGI (which
4199 expects that only expressions have a bona fide type).
4200 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
4201 determine the amount of data to be copied.
4203 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
4204 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
4205 INTERFACE_TYPE_DEFINITION ::=
4206 [limited | task | protected | synchronized] interface
4207 [AND interface_list]
4209 * par-ch3.adb (P_Type_Declaration): Modified to give support to
4211 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
4213 (P_Interface_Type_Definition): New subprogram that parses the new
4214 syntax rule of Ada 2005 interfaces
4215 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
4216 messages by the correct RENAMES (quotes removed).
4218 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
4219 attribute First_Tag_Component.
4221 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
4222 (Interface_List, Set_Interface_List): New subprograms.
4223 (Interface_Present, Set_Interface_Present): New subprograms.
4224 (Limited_Present, Set_Limited_Present): Available also in derived
4225 type definition nodes.
4226 (Protected_Present, Set_Protected_Present): Available also in
4227 record type definition and
4228 derived type definition nodes.
4229 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
4230 (Task_Present, Set_Task_Present): New subprogram.
4231 (Task_Body_Procedure): Removed.
4232 (Set_Task_Body_Procedure): Removed.
4233 These subprogram have been removed because the attribute
4234 Task_Body_Procedure has been moved to the corresponding task type
4235 or task subtype entity to leave a field free to store the list
4236 of interfaces implemented by a task (for AI-345)
4237 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
4238 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
4239 expression flag Do_Range_Check
4240 (Exception_Junk): Change to Flag7 to accomodate above change
4241 (Box_Present, Default_Name, Specification, Set_Box_Present,
4242 Set_Default_Name, Set_Specification): Expand the expression
4243 "X in N_Formal_Subprogram_Declaration" into the corresponding
4244 two comparisons. Required to use the csinfo tool.
4246 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
4247 "with string" given.
4249 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
4252 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
4255 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
4256 attribute Task_Body_Procedure rather than the old semantic field that
4257 was available in the task_type_declaration node.
4259 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
4260 interface type definitions.
4261 (P_Formal_Derived_Type_Definition): Modified to handle the list of
4264 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
4265 task type declaration.
4266 (P_Protected): Modified to handle the list of interfaces in a
4267 protected type declaration.
4269 2005-03-15 Doug Rupp <rupp@adacore.com>
4270 Vincent Celier <celier@adacore.com>
4272 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
4273 (Gen_Output_File_C): Likewise.
4274 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
4276 2005-03-15 Thomas Quinot <quinot@adacore.com>
4278 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
4279 is an N_Raise_Constraint_Error node, create a new copy of it without
4280 going through a call to Duplicate_Subexpr.
4282 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
4283 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4284 Nicolas Setton <setton@adacore.com>
4285 Ed Schonberg <schonberg@adacore.com>
4292 * decl.c (gnat_to_gnu_field): Reject aliased components with a
4293 representation clause that prescribes a size not equal to the rounded
4294 size of their types.
4295 (gnat_to_gnu_entity, case E_Component): Always look at
4296 Original_Record_Component if Present and not the entity.
4297 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
4298 of tagged extension types by not making field for components that are
4300 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
4301 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
4302 expression to the type of the object when the object is constant.
4303 Reverse defer_debug_incomplete_list before traversing it, so that trees
4304 are processed in the order at which they were added to the list. This
4305 order is important when using the stabs debug format.
4306 If we are deferring the output of debug information, also defer this
4307 output for a function return type.
4308 When adding fields to a record, prevent emitting debug information
4309 for incomplete records, emit the information only when the record is
4311 (components_to_record): New parameter defer_debug.
4312 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
4313 (gnat_to_gnu_field_decl): New function.
4314 (substitution_list, annotate_rep): Call it.
4315 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
4316 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
4317 No longer update discriminants to not be a COMPONENT_REF.
4318 (copy_alias_set): Strip padding from input type; also handle
4319 unconstrained arrays properly.
4321 * gigi.h (write_record_type_debug_info): New function.
4322 Convert to use ANSI-style prototypes. Remove unused
4323 declarations for emit_stack_check, elab_all_gnat and
4324 set_second_error_entity.
4325 (gnat_to_gnu_field_decl): New decl.
4327 * utils.c (write_record_type_debug_info): New function.
4328 (finish_record_type): Delegate generation of debug information to
4329 write_record_type_debug_info.
4330 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
4331 (update_pointer_to): Fix pasto.
4332 (convert) <UNION_TYPE>: Accept slight type variations when
4333 converting to an unchecked union type.
4335 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
4336 replace the N_Freeze_Entity with a null statement.
4338 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
4339 within a constrained subcomponent of an enclosing record, place the
4340 freeze nodes in the scope stack entry for the enclosing record.
4341 (Undelay_Type): New Subprogram.
4342 (Set_Small_Size): Pass T, the type to modify; all callers changed.
4343 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
4344 within records; allow them to have freeze nodes if their base types
4347 * exp_util.adb (Remove_Side_Effects): Properly test for
4348 Expansion_Delayed and handle case when it's inside an
4349 N_Qualified_Expression.
4351 * sem_ch3.adb (Derived_Type_Declaration): New predicate
4352 Comes_From_Generic, to recognize accurately that the parent type in a
4353 derived type declaration can be traced back to a formal type, because
4354 it is one or is derived from one, or because its completion is derived
4356 (Constrain_Component_Type): If component comes from source and has no
4357 explicit constraint, no need to constrain in in a subtype of the
4359 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
4360 Minor change to propagate Is_Ada_2005 flag
4362 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
4363 Expansion_Delayed is False.
4364 (assoc_to_constructor): Ignore fields that have a
4365 Corresponding_Discriminant.
4366 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
4367 function returns "by target", dereference the target pointer using the
4368 type of the actual return value.
4369 <all>: Be prepared for a null gnu_result.
4370 (processed_inline_subprograms): Check flag_really_no_inline
4371 instead of flag_no_inline.
4372 (set_second_error_entity): Remove unused function.
4373 (gnat_to_gnu, case N_Selected_Component): Call
4374 gnat_to_gnu_field_decl.
4375 (assoc_to_constructor): Likewise.
4377 2005-03-15 Robert Dewar <dewar@adacore.com>
4378 Ed Schonberg <schonberg@adacore.com>
4379 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4381 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
4382 Must_Be_Byte_Aligned for cases where we do not need to use a
4383 System.Pack_nn unit.
4385 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
4387 Needed now that we do some processing for IN parameters as well. This
4388 may well fix some unrelated errors.
4389 (Expand_Call): Handle case of unaligned objects (in particular those
4390 that come from packed arrays).
4391 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
4392 renamed entity is an inherited operation, re-expand the call using the
4393 original operation, which is the one to call.
4394 Detect attempt to inline parameterless recursive subprogram.
4395 (Represented_As_Scalar): Fix to work properly with private types
4396 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
4397 accurate estimate. Yields True in far fewer cases than before,
4398 improving the quality of code that depends on this test.
4400 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
4401 over both visible and private declarations to remove them from tree,
4402 and mark subprograms declared in package as eliminated, to prevent
4403 spurious use in subsequent compilation of generic units in the context.
4405 * exp_util.ads: Minor cleanup in variable names
4407 * sem_eval.ads, sem_eval.adb: Minor reformatting
4408 (Compile_Time_Known_Bounds): New function
4410 2005-03-15 Ed Schonberg <schonberg@adacore.com>
4412 * exp_ch7.adb (Convert_View): Use base types of underlying types when
4413 determining whether an unchecked conversion is needed for the argument
4414 of an initialization call.
4416 2005-03-15 Ed Schonberg <schonberg@adacore.com>
4418 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
4419 that appears in the instantiation rather than the internal subtype
4420 generated in the wrapper package, to avoid anomalies in gigi when the
4421 target is derived from a private type whose full view is an access type.
4423 2005-03-15 Robert Dewar <dewar@adacore.com>
4425 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
4427 Add documentation to replace the use of this flag
4428 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
4431 2005-03-15 Thomas Quinot <quinot@adacore.com>
4433 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
4434 here from exp_attr so it can be shared between exp_attr and exp_dist.
4435 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
4436 all TSS names, not a subset thereof, and the previous name introduced
4437 an unnecessarily confusion that a distinction might exist between
4438 "OK" TSS names and some "not OK" TSS names.
4440 2005-03-15 Doug Rupp <rupp@adacore.com>
4442 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
4445 2005-03-15 Pascal Obry <obry@adacore.com>
4446 Eric Botcazou <ebotcazou@adacore.com>
4451 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
4452 when IN_RTS. This is to work around a bootstrap path problem.
4454 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
4455 table and pass it to __gnat_install_SEH_handler().
4456 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
4458 * lang.opt: Fix specification of -fRTS=.
4460 2005-03-15 Doug Rupp <rupp@adacore.com>
4461 Bernard Banner <banner@adacore.com>
4462 Vincent Celier <celier@adacore.com>
4463 Arnaud Charlet <charlet@adacore.com>
4466 This change works fine when gnatlib is built from the gcc directory,
4467 but does not work when using the libada Makefile, since GCC_FOR_TARGET
4468 is not passed to ada/Makefile.in, so more work is needed by a
4469 Makefile/configure expert.
4471 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
4472 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
4473 Setup gnatlink switch -M for x86_64 linux, as it is already setup
4475 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
4476 Run ranlib on libgccprefix.a
4477 Define PREFIX_OBJS for Darwin, to build libgccprefix.
4478 (ADA_INCLUDE_SRCS): Split Ada packages.
4480 2005-03-15 Robert Dewar <dewar@adacore.com>
4482 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
4484 * impunit.adb: Add GNAT.UTF_32
4486 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
4488 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
4489 now uses GNAT.UTF_32).
4491 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
4492 capabilities for categorizing characters using Unicode categories
4494 2005-03-15 Ed Schonberg <schonberg@adacore.com>
4496 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
4497 instantiation that has been rewritten as a package body, retrieve spec
4498 to generate proper name for implicit_with_clause.
4499 (Install_Parents): Recognize a parent that is an instantiation but has
4500 been rewritten as a package declaration during analysis.
4502 2005-03-15 Javier Miranda <miranda@adacore.com>
4503 Ed Schonberg <schonberg@adacore.com>
4505 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
4506 parameter reported some error we immediately return. This improves the
4507 behaviour of the frontend in case of errors.
4508 (Install_Parent, Remove_Parent): Introduce new flag
4509 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
4510 ancestor of a generic child unit, when the child is being instantiated.
4511 (Inline_Instance_Body): If we are compiling the private
4512 part or the body of a child unit, restore the proper visibility of the
4513 parents after compiling the instance body.
4515 2005-03-15 Ed Schonberg <schonberg@adacore.com>
4516 Javier Miranda <miranda@adacore.com>
4519 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
4520 of a private type, in which case it is underlying_type that denotes
4521 the proper task. Also modified to use the new entity attribute
4522 that is directly available in the task type and task subtype entities
4523 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
4524 arrays when other dimensions than the first are constrained by
4525 discriminants of an enclosing record.
4526 (Insert_Explicit_Dereference): If the prefix is an indexed component or
4527 a combination of indexed and selected components, find ultimate entity
4528 and generate the appropriate reference for it, to suppress spurious
4530 (Note_Possible_Modification): If an entity name has no entity, return.
4531 (Is_Variable): A function call never denotes a variable.
4532 (Requires_Transient_Scope): For record types, recurse only on
4533 components, not on internal subtypes that may have been generated for
4534 constrained components.
4536 2005-03-15 Ed Schonberg <schonberg@adacore.com>
4538 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
4539 Eliminated as candidates for resolution. Both efficient, and avoids
4540 anomalies with operators declared in deleted code.
4541 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
4542 expansion is disabled (as when compiling a generic) to prevent spurious
4543 warnings on prefixes of selected components.
4545 2005-03-15 Ed Schonberg <schonberg@adacore.com>
4547 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
4548 attached to a list before checking whether it appears in the private
4549 declarations of the current package.
4550 (Make_Inequality_Operator): Insert declaration in proper declarative
4551 list rather than just setting the Parent field, so that
4552 Is_Private_Declaration can handle it properly.
4554 2005-03-15 Ed Schonberg <schonberg@adacore.com>
4556 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
4557 a renaming a body, check that the renamed subprogram in not intrinsic.
4558 (Find_Direct_Name): If several use_visible entities hide
4559 each other, and the context is a predefined file compiled through
4560 rtsfind, keep only the entity that comes from a predefined file.
4562 2005-03-15 Geert Bosch <bosch@adacore.com>
4564 * s-fatgen.adb (Valid): Extend special exceptions to account for long
4565 long float padding to also cover AMD64 and IA64.
4567 2005-03-15 Gary Dismukes <dismukes@adacore.com>
4569 * s-imgwch.adb: Add with and use of Interfaces.
4570 (Img_Wide_Character): Change type of Val to Unsigned_16.
4571 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
4573 2005-03-15 Matthew Gingell <gingell@adacore.com>
4575 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
4577 2005-03-15 Robert Dewar <dewar@adacore.com>
4579 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
4581 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
4583 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
4585 2005-03-15 Robert Dewar <dewar@adacore.com>
4587 * s-bitops.adb, s-bitops.ads,
4588 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
4589 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
4590 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
4591 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
4592 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
4593 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
4594 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
4595 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
4598 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
4600 * utils2.c (build_binary_op): Fix typo.
4602 2005-03-15 Doug Rupp <rupp@adacore.com>
4604 * s-crtl.ads (popen,pclose): New imports.
4606 2005-03-15 Cyrille Comar <comar@adacore.com>
4608 * comperr.adb (Compiler_Abort): remove references to obsolete
4609 procedures in the bug boxes for various GNAT builds.
4611 2005-03-15 Vincent Celier <celier@adacore.com>
4613 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
4615 2005-03-15 Geert Bosch <bosch@adacore.com>
4616 Arnaud Charlet <charlet@adacore.com>
4617 Robert Dewar <dewar@adacore.com>
4618 Cyrille Comar <comar@adacore.com>
4619 Sergey Rybin <rybin@adacore.com>
4621 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
4622 too specific and long-winded to be appropriate for the GNAT User's
4624 Warn about use of GCC switches not documented in the GNAT User's Guide,
4625 as these may cause generated code to not conform to Ada semantics.
4626 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
4627 Add documentation for -gnat95 and -gnat05 switches
4628 Remove paragraph documenting obsolete way to refer to third party
4630 Add a few references to Ada_05 that were missing.
4631 Update documentation on -gnatZ/-gnatL.
4632 Document limitation when using -m64 under Solaris.
4633 Change the "Name Casing" subsection of the pretty-printer section
4634 according to the changes in the dictionary processing.
4636 * gnat_rm.texi: Document the Ada_05 pragma.
4637 Section on record representation clauses describes the new more
4638 relaxed rules about placement of large packed bit array components.
4639 Add documentation of GNAT.UTF_32
4641 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
4643 * misc.c (gnat_post_options): Turn off structural
4646 2005-03-08 Laurent Guerby <laurent@guerby.net>
4648 * system-linux-sparc.ads: Fix typo in previous commit.
4650 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
4651 Laurent Guerby <laurent@guerby.net>
4654 * system-linux-sparc.ads: New.
4655 * Makefile.in: Add sparc linux entry.
4657 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
4659 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
4660 parameters as unused.
4662 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
4663 Partial merge from libada-gnattools-branch:
4665 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
4666 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
4667 into code in gnattools/Makefile.in. Remove direct dependencies on
4668 stamp-tools by tools clauses.
4669 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
4670 * config-lang.in: Add gnattools to $lang_dirs.
4672 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
4675 * utils.c (gnat_type_for_mode): Return null instead of ICE because
4676 we asked for an unknown mode.
4678 2005-02-12 Richard Henderson <rth@redhat.com>
4680 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
4681 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
4683 2005-02-10 Andreas Jaeger <aj@suse.de>
4685 * init.c (__gnat_initialize): Mark parameter as unused.
4687 2005-02-09 Doug Rupp <rupp@adacore.com>
4689 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
4690 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
4692 2005-02-09 Doug Rupp <rupp@adacore.com>
4694 * gnatchop.adb (dup, dup2),
4695 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
4697 * gnatlbr.adb (mkdir),
4698 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
4700 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
4702 2005-02-09 Doug Rupp <rupp@adacore.com>
4704 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
4706 2005-02-09 Robert Dewar <dewar@adacore.com>
4707 Thomas Quinot <quinot@adacore.com>
4708 Javier Miranda <miranda@adacore.com>
4709 Pascal Obry <obry@adacore.com>
4710 Ed Schonberg <schonberg@adacore.com>
4711 Doug Rupp <rupp@adacore.com>
4712 Gary Dismukes <dismukes@adacore.com>
4713 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4715 * g-zstspl.ads: New file.
4717 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
4719 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
4721 Add definition of Wide_Wide_Space for AI-285
4723 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
4724 interface (to support Ada 95 and Ada 2005 units).
4725 Add Unbounded_IO files
4726 Add entries for Wide_Wide packages for AI-285
4727 Add list of containers packages to Ada 2005 unit list
4729 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
4730 support new Unbounded_IO package cleanly.
4732 * g-utf_32.ads, g-utf_32.adb: New files.
4734 * Makefile.rtl: Add entry for g-utf_32
4735 Add new files for Unbounded_IO
4736 Adjust make file for new AI-285 wide wide packages
4737 Add AI-302 containers to the run time.
4739 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
4740 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
4741 subprograms for AI-301.
4743 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
4745 * a-stunau.ads: Minor comment correction
4747 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
4749 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
4750 (Check_RPC): Update to match changes in expanded code.
4751 Clean up unused entity.
4753 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
4754 was not taken into account.
4755 This includes proper initialization with Normalize_Scalars.
4756 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
4757 normalize scalars cases (particularly the latter) to do a better job
4758 of finding invalid representations.
4760 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
4762 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
4765 * exp_dist.adb: Add support for wide wide character type
4766 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
4767 private part, generate stub bodies at the end of the private part,
4768 not the visible part.
4769 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
4771 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
4772 generic wrapper to execute final processing after completing the
4773 expansion of the RPC receiver for an RACW.
4775 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
4776 packages and attributes.
4777 (Preset_Names): Addition of the new reserved words of Ada 2005,
4778 that is interface, overriding and synchronized.
4779 (Get_Pragma_Id): Give support to the use of the new reserved word
4780 "interface" as a pragma name.
4781 (Is_Pragma_Name): Give support to the use of the new reserved word
4782 "interface" as a pragma name.
4783 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
4784 attribute implementation.
4786 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
4787 checks to entities that are output parameters of Asm operations.
4788 Handle the Stream_Size attribute.
4789 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
4791 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
4793 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
4794 for second parameter being 0.0.
4795 Add support for wide wide character type.
4796 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
4798 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
4799 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
4800 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
4801 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
4802 for wide wide character cases.
4804 * cstand.adb: Create entities for Wide_Wide_Character and
4807 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
4808 accordance with AI-258.
4809 Add new declarations for 16/32 bit C character types (Part of AI285)
4811 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
4812 (Obsolescent_Warning): New field
4813 (Rep_Clause): New local subprogram used to share code. Returns the rep
4814 clause for which the name is given in parameter.
4815 (Has_Stream_Size_Clause): New routine.
4816 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
4817 (Address_Clause): Implementation is now using Rep_Clause.
4818 (Alignment_Clause): Idem.
4819 (Size_Clause): Idem.
4821 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
4822 entity in non-Ada 2005 mode and generate warning.
4824 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
4825 (Prag): Code cleanup. Remove old gnat pragma "overriding"
4827 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
4828 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
4829 on the named unit if the pragma is not in the current compilation unit,
4830 so that elaboration calls in the current unit can set up an elaboration
4831 dependency on the named unit, as needed.
4832 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
4833 subprogram as well as for subprograms declared within a package.
4834 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
4837 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
4838 to z) to avoid some instances of duplication for Wide_Wide packages.
4840 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
4843 * scn.adb: Char_Literal_Value field is now a Uint
4845 * scng.adb: Significant rewrite to handle new Ada 2005 features
4846 allowing wide and wide wide characters in program text, e.g. for
4847 identifiers, as described in AI-285.
4848 (Set_Reserved): New procedure, makes setting up keywords cleaner.
4849 (Initialize_Scanner): Register the new reserved words of Ada 2005.
4850 (Scan): Give support to the new reserved words.
4852 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
4853 warning notifying that interface, overriding, and synchronized are
4855 (P_Pragma): Allow the use of the new reserved word "interface" as
4858 * gnatls.adb, gnatbind.adb,
4859 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
4860 identifiers named "interface" to "SAL_Interface".
4862 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
4863 (Structured Exception handling).
4867 (Gen_Main_Ada): Set the default exit code if specified.
4868 (Gen_Main_C): Likewise.
4870 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
4871 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
4873 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
4876 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
4877 has a collision with the new Ada 2005 "interface" reserved word.
4879 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
4880 generate a warning notifying that interface, overriding, and
4881 synchronized are new reserved words.
4883 * scans.ads (Token_Type): Addition of the tokens corresponding to the
4884 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
4885 and Tok_Synchronized.
4887 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
4888 "dispatching" rather than "primitive" operations, since dispatching
4889 calls are now allowed to abstract formal subprograms (which are not
4891 Char_Literal_Value field is now a Uint
4892 (Resolve_Slice): If the prefix is an access to an unconstrained array,
4893 compute the actual subtype of the designated object to impose the proper
4895 (Resolve_Selected_Component): Do not insert an access check if the
4896 prefix is an access type: such a node is expanded into an explicit
4897 dereference, on which the access check is performed anyway. Removes
4898 expensive duplicate checks.
4899 (Resolve_Call): Use new flag Is_Obsolescent and field
4900 Obsolescent_Warning so that pragma Obsolescent works on library
4902 Add support for wide wide character type
4903 (Resolve_Allocator): Replace the error message on wrong null-exclusion
4904 value by a warning message.
4905 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
4906 as fixed-point, and one of the operands is non-static and universal, it
4907 can only be an illegal exponentiation operation, in which case there is
4908 no real value to retrieve.
4910 * exp_strm.adb: Add support for wide wide character type
4911 (Build_Elementary_Input_Call): Compute the size of the stream element by
4912 querying the rep chain to find the Stream_Attribute attribute value.
4913 (Build_Elementary_Write_Call): Ditto.
4915 * sem_aggr.adb: Char_Literal_Value field is now a Uint
4916 Add support for wide wide character type
4917 Replace the error messages on wrong null-exclusion value by warnings
4918 as described in Ada 2005.
4919 (Resolve_Extension_Aggregate): Document the fact that the error
4920 message on class-wide expressions in extensions aggregates.
4922 * sem_case.adb: Add support for wide wide character type
4924 * sem_ch13.adb: Add support for wide wide character type
4925 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
4927 * sem_ch3.adb: Add support for wide wide character type
4928 (Process_Subtype): If constraint is illegal for the type, set Ekind of
4929 now-useless Itype, to prevent cascaded errors on a compiler built
4932 * sem_ch8.adb: Add with and use of Sem_Disp.
4933 (Analyze_Subprogram_Renaming): Replace unclean uses of
4934 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
4935 of Corresponding_Spec to Empty).
4936 (Attribute_Renaming): Replace use of Corresponding_Spec with
4937 Corresponding_ Formal_Spec and simplify condition.
4938 (Use_One_Package): Check that scope of homonym of identifier is defined,
4939 before checking whether it is a wrapper package.
4940 Add support for wide wide character type
4942 * sem_eval.adb: Add support for wide wide character type.
4943 (Eval_Arithmetic_Op): Check for compile time known signed integer
4944 overflow in the non-static case.
4945 (Subtypes_Statically_Match): A formal scalar type and its base type do
4946 not statically match.
4948 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
4949 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
4951 (Unit_Declaration_Node): Ditto.
4952 (Is_Variable_Prefix): For the case of an indexed component whose prefix
4953 has a packed array type, the prefix has been rewritten into a type
4954 conversion. Determine variable-ness from the converted expression.
4955 Handle wide wide character cases.
4957 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
4959 * stringt.ads, stringt.adb: Handle full UTF-32 range.
4960 Remove ["0A"] from comment, since it can look like a line terminator.
4961 Currently we don't permit this, but this is under discussion by the
4962 ARG, and it is easy enough to use a different example.
4964 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
4965 handling UTF-32 encoding for wide wide character.
4966 Implement new brackets coding ["hhhhhhhh"]
4967 Add UTF-8 encodings for full UTF-32 range
4969 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
4971 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
4972 bit range Add full UTF-32 support.
4973 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
4974 notify that constraint error will be raised at run-time
4975 because a null value is assigned to a null-excluding object.
4976 Remove some obsolete declarations and make Char_Code
4979 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
4980 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
4983 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
4984 wrong null-exclusion value by a warning message.
4985 (Enable_Range_Check): Do range check if the prefix is an
4986 explicit dereference whose designated object is an unconstrained array.
4987 Current algorithm for removing duplicate checks is over-eager in this
4990 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
4991 null-exclusion value by a warning message
4993 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
4994 completely. Add support for Uint2 field
4996 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
4997 exp_prag.adb: Char_Literal_Value field is now a Uint.
4999 * exp_util.adb (Insert_Actions): Replace
5000 N_Formal_Subprogram_Declaration by
5001 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
5002 Char_Literal_Value field is now a Uint.
5004 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
5005 defined for subprogram renaming declarations. When set, the field
5006 indicates the defining entity of a corresponding formal subprogram
5007 when the renaming corresponds to a formal subprogram association in an
5009 (Set_Corresponding_Formal_Spec): New procedure to return
5010 Corresponding_Formal_Spec field.
5011 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
5012 (which is now a subtype).
5013 Char_Literal_Value field is now a Uint
5015 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
5016 pointer to the base of the dispatch table.
5017 Minor changes to comments.
5018 (Controlling_Type): New function for determining the tagged type
5019 associated with a tagged primitive subprogram.
5020 (Expand_Dispatching_Call): Add support for a controlling actual that is
5021 directly a value of type Ada.Tag rather than a tagged object.
5023 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
5024 describing the new layout.
5025 (Dispatch_Table): The expander computes the actual array size, allocates
5026 the Dispatch_Table record accordingly, and generates code that displaces
5027 the base of the record after the Typeinfo_Ptr component. The access to
5028 these components is done by means of local functions.
5029 (Offset_To_Top): New function.
5030 (Typeinfo_Ptr): New function.
5031 (Get_TSD): Modified to access the new position of the TSD.
5032 (Set_TSD): Modified to save the TSD in its new position.
5034 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
5035 case of formal abstract subprograms. Add check and message for -gnat05.
5038 * sem_ch12.adb: Add with and use for Sem_Disp.
5039 (Analyze_Associations): Minor change from "=" to "in" for use of
5040 N_Formal_Subtype_Declaration (which is now a subtype).
5041 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
5042 N_Formal_Subtype_Declaration (which is now a subtype).
5043 (Analyze_Formal_Subprogram): Add handling for
5044 N_Formal_Abstract_Subprogram, marking the formal as abstract and
5045 dispatching, setting the controlling status of the formal parameters
5046 and result, and issuing an error if there is no controlling type for
5047 the formal subprogram.
5048 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
5049 which is an unclean use of that field, we set the new field
5050 Corresponding_Formal_Spec to make the formal subprogram available to
5051 processing in Analyze_Subprogram_Declaration.
5052 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
5053 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
5054 Constrained, so that it is is does not statically match its anonymous
5057 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
5058 abstract formal subprograms in error check for functions returning
5059 abstract types. Set scope of new designator for
5060 a parameterless subprogram, so that it is available when checking the
5061 body for nested subprograms, before full analysis of said body.
5062 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
5063 subprogram only if inner one comes from source.
5064 (Analyze_Function_Call): If the call is given in object notation, the
5065 analysis of the name rewrites the node and analyzes it with the proper
5066 argument list. After analyzing the name, if the call has been rewritten
5067 and the result type is set, no further analysis is needed.
5068 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
5069 mark in function specification, in a context where the formals are
5070 visible and hide outer homographs.
5072 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
5073 as the tagged type for the cases of abstract formal subprograms and
5074 renamings of those. Clean up spec comments.
5075 (Check_Dispatching_Context): Add error message to indicate "abstract
5076 procedure", covering the case of a call to a formal abstract procedure
5077 that has statically tagged operands.
5078 (Check_Dispatching_Call): Check for the case of an actual given by
5079 a tag-indeterminate function call whose type is an ancestor of the
5080 containing call's associated tagged type. This situation can occur
5081 for inherited primitives with function defaults. In this case we
5082 use the tagged type's tag directly as the controlling argument for
5084 (Expand_Call): Name change on call to Expand_Dispatch_Call.
5086 * sprint.adb (Sprint_Node_Actual): Split
5087 N_Formal_Subprogram_Declaration into two alternatives for the new
5088 cases N_Formal_Abstract_Subprogram_Declaration and
5089 N_Formal_Concrete_Subprogram_Declaration.
5090 Char_Literal_Value field is now a Uint.
5092 * trans.c: Get rid of junk Uint2 reference.
5093 Char_Literal_Value field is now a Uint.
5094 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
5095 (gigi): Correct third arg to gimplify_body.
5097 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
5098 (TYPE_LANG_FLAG_0): Check for record or union.
5100 * treepr.adb: Char_Literal_Value field is now a Uint
5102 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
5105 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
5106 Add full UTF-32 support
5107 Char_Code is now 32 bits
5109 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
5110 wide character UTF_32 line terminators.
5111 Initialize Main_Source_File to avoid error when no main
5114 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
5115 (Main_Source_File) when no main source has been loaded, to avoid
5118 2005-02-09 Robert Dewar <dewar@adacore.com>
5120 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
5121 Fix name of Set routine
5123 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
5126 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
5127 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
5130 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
5131 forms of Get_Line subprograms for AI-301.
5133 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
5134 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
5135 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
5136 a-stwima.ads: Minor reformatting.
5138 2005-02-09 Doug Rupp <rupp@adacore.com>
5139 Thomas Quinot <quinot@adacore.com>
5141 * adaint.c, adaint.h
5142 [VMS] (to_ptr32): New function.
5143 (MAYBE_TO_PTR32): New macro.
5144 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
5146 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
5147 [VMS] (#define fork()): Remove since unneccessary.
5148 (__gnat_set_close_on_exec): New routine to support
5149 GNAT.OS_Lib.Set_Close_On_Exec.
5151 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
5152 the parent side as close-on-exec so that they are not inherited by the
5155 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
5156 set or clear the FD_CLOEXEC flag on a file descriptor.
5158 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
5159 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5161 Fix for c330001 - PR ada/19386
5164 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
5165 on the field if Pragma Component_Alignment (Storage_Unit).
5166 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
5167 side-effects as if it were a constant; also make SAVE_EXPR to protect
5169 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
5171 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
5172 (components_to_record): Test it.
5173 Fix improper usage of REFERENCE_CLASS_P.
5175 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
5178 * utils2.c: Minor reformatting.
5180 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
5181 handle other cases like RECORD_TYPE.
5183 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
5185 2005-02-09 Ed Schonberg <schonberg@adacore.com>
5187 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
5188 component of an array of arrays in an assignment context, and the
5189 aggregate has component associations that require sliding on
5190 assignment, force reanalysis of the aggregate to generate a temporary
5191 before the assignment.
5192 (Must_Slide): Make global to the package, for use in Gen_Assign.
5194 2005-02-09 Ed Schonberg <schonberg@adacore.com>
5196 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
5197 unchecked union with no inferable discriminants, return a
5198 Raise_Program_Error node, rather than inserting it at the point the
5200 (Expand_Record_Equality, Component_Equality): Handle properly the case
5201 where some subcomponent is an unchecked union whose generated equality
5202 code raises program error.
5204 2005-02-09 Doug Rupp <rupp@adacore.com>
5206 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
5207 [VMS] (#define exit hack): Remove.
5209 2005-02-09 Pascal Obry <obry@adacore.com>
5210 Arnaud Charlet <charlet@adacore.com>
5212 * init.c (__gnat_initialize): Add a new parameter eh which contains the
5213 address of the exception registration. The Win32 version of this
5214 routine calls __gnat_install_SEH_handler() to initialize the SEH
5215 (Structured Exception Handling) handler.
5216 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
5217 SEH (Structured Exception Handling) now.
5218 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
5219 (__gnat_initialize for ppc-vxworks): Adjust comments and the
5220 preprocessor condition protecting the call to the extra eh setup
5221 subprogram, which is only available for the ppc target.
5222 (__gnat_clear_exception_count): replaced reference to
5223 variable taskIdCurrent by call to taskIdSelf(), cleaner.
5225 * seh_init.c: New file.
5227 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
5228 (GNATBIND_OBJS): Idem.
5230 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
5231 routine takes a new parameter (a pointer to the exception registration
5232 for the SEH (Structured Exception Handling) support.
5234 * raise.h: (__gnat_install_SEH_handler): New prototype.
5235 Update copyright notice.
5237 * s-tassta.adb (Task_Wrapper): Declare the exception registration
5238 record and initialize it by calling __gnat_install_SEH_handler.
5240 2005-02-09 Vincent Celier <celier@adacore.com>
5242 * make.adb (Gnatmake): Do not fail when the main project has no object
5245 2005-02-09 Doug Rupp <rupp@adacore.com>
5247 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
5248 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
5249 [VMS]: Add translations for g-enblsp.adb.
5251 * s-asthan-vms.adb: Removed.
5252 * s-asthan-vms-alpha.adb: Added.
5254 2005-02-09 Pascal Obry <obry@adacore.com>
5256 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
5257 (LIBGNAT_OBJS): Add seh_init.o.
5259 2005-02-09 Arnaud Charlet <charlet@adacore.com>
5263 * Makefile.in: Link all gnat tools with -static-libgcc, since
5264 -shared-libgcc is now used by default on some systems (e.g. linux with
5266 Remove references to Makefile.prolog/generic, no longer used.
5268 2005-02-09 Vincent Celier <celier@adacore.com>
5270 * prj-makr.adb (Process_Directory): Put file name in canonical case
5271 before matching against the patterns.
5272 If gnatname has been invoked as <prefix>-gnatname
5273 then invoke the compiler as <prefix>-gcc, not just "gcc".
5275 2005-02-09 Ed Schonberg <schonberg@adacore.com>
5277 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
5278 with expansion disabled. The actual subtype is needed among other
5279 places when the selected component appears in the context of a loop
5280 bound, and denotes a packed array.
5281 (Operator_Check): Always use the first subtype in the
5282 error message, to avoid the appearance of internal base types.
5283 (Transform_Object_Operation): Copy each actual in full
5284 to the parameter associations of the constructed call, rather than
5285 using the shallow copy mechanism of New_Copy_List. This ensures that
5286 the chaining of named associations is done properly.
5287 (Complete_Object_Operation): Rewrite node, rather than
5288 replacing it, so that we can trace back to the original selected
5291 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
5292 and calls that use object notation, if the called function is not
5293 declared in a withed unit, place the elaboration constraint on the
5294 unit in the context that makes the function accessible.
5295 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
5296 imposes an elaboration constraint between two packages.
5298 2005-02-09 Ed Schonberg <schonberg@adacore.com>
5300 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
5301 views of a private type after handling its private dependents, to
5302 maintain proper stack discipline between entry and exit from the
5305 2005-02-09 Cyrille Comar <comar@adacore.com>
5307 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
5310 2005-02-09 Arnaud Charlet <charlet@adacore.com>
5312 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
5313 fields for foreign threads.
5315 2005-02-09 Doug Rupp <rupp@adacore.com>
5317 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
5318 recursion warnings when compiled with -gnatdm.
5320 2005-02-09 Robert Dewar <dewar@adacore.com>
5322 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
5323 Slight fix to documentation of -gnaty with no parameters
5325 * xr_tabls.ads: Add ??? comment for missing overall comment
5327 * xsinfo.adb: Make default file name be sinfo.h, since this is what
5328 we now use by default.
5330 * xsnames.adb: Adjust end of file test to look for five space followed
5331 by '#' instead of six spaces. The format of xsnames.adb was modified
5334 * a-numeri.ads: Add reference to AI-388 for greek letter pi
5337 * clean.adb: Minor reformatting.
5339 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
5340 gnatname.adb: Minor reformatting
5341 Add 2005 to copyright output when utility is run
5343 * csets.adb: Eliminate obsolete comment
5345 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
5348 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
5350 2005-02-09 Sergey Rybin <rybin@adacore.com>
5352 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
5353 the difference between compact and incompact layout and add the record
5354 representation clause to the example illustrating different layouts.
5355 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
5356 component clauses").
5358 2005-02-09 Florian Villoing <villoing@adacore.com>
5360 * gnat_ugn.texi: Fix typos.
5361 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
5363 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
5364 in the generated documentation.
5366 2005-02-09 Arnaud Charlet <charlet@adacore.com>
5368 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
5370 Update linker wrapper when linking with non GNU C++.
5372 2005-02-09 Pascal Obry <obry@adacore.com>
5375 Document the procedure to debug the DllMain routine on Windows.
5376 Add note about -funwind-tables and mixed Ada and C/C++ programming in
5378 Document new BIND qualifer /RETURN_CODES=VMS.
5380 2005-02-09 Ben Brosgol <brosgol@adacore.com>
5382 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
5383 Edited gnatmetric chapter
5385 2005-02-09 Robert Dewar <dewar@adacore.com>
5388 Changes to document new wide wide character support
5390 Update documentation on Normalize_Scalars and Initialize_Scalars
5392 2005-02-09 Pascal Obry <obry@adacore.com>
5394 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
5396 2005-02-09 Jose Ruiz <ruiz@adacore.com>
5398 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
5399 from the VxWorks kernel) that is needed for getting the active
5400 priority of the different tasks.
5402 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
5403 Use a pragma Elaborate_Body in the spec file instead.
5404 Noticed by code reading.
5406 2005-02-09 Thomas Quinot <quinot@adacore.com>
5408 * exp_util.ads: Minor correction in comment.
5410 2005-02-09 Arnaud Charlet <charlet@adacore.com>
5412 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
5413 since this procedure is now too complex to be worth inlining.
5415 2005-02-09 Richard Henderson <rth@redhat.com>
5417 * utils.c (gnat_define_builtin): Remove.
5418 (gnat_install_builtins): Use build_common_builtin_nodes.
5420 2005-02-09 Arnaud Charlet <charlet@adacore.com>
5422 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
5423 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
5424 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
5425 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
5426 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
5427 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
5428 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
5429 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
5430 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
5431 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
5432 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
5433 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
5434 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
5435 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
5436 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
5437 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
5438 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
5439 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
5440 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
5441 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
5442 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
5443 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
5444 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
5445 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
5446 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
5447 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
5448 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
5449 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
5450 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
5451 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
5452 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
5453 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
5454 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
5455 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
5458 2005-01-27 Laurent GUERBY <laurent@guerby.net>
5460 * Makefile.in: Fix a-intnam.ads from previous commit,
5461 add 2005 to copyright.
5462 * a-intman-rtems.ads: Renamed to...
5463 * a-intnam-rtems.ads:
5465 2005-01-27 Laurent GUERBY <laurent@guerby.net>
5467 * Makefile.in: Rename GNAT RTEMS specific files.
5468 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
5469 5rosinte.ads, 5rparame.adb: Replaced by files below.
5470 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
5471 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
5473 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
5474 Laurent GUERBY <laurent@guerby.net>
5477 * 5rosinte.ads: Add No_Key constant.
5478 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
5479 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
5481 2005-01-26 Laurent GUERBY <laurent@guerby.net>
5484 * i-cobol.adb (Valid_Numeric): Handle zero length case.
5486 2005-01-20 Richard Henderson <rth@redhat.com>
5488 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
5489 a-intnam-linux.ads and system-linux-alpha.ads.
5490 * a-intnam-linux-alpha.ads: Remove file.
5491 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
5492 * system-linux-alpha.ads: New file.
5494 2005-01-18 Jakub Jelinek <jakub@redhat.com>
5497 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
5498 set to the new string.
5500 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
5502 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
5505 2005-01-18 Richard Henderson <rth@redhat.com>
5507 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
5508 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
5510 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
5512 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
5514 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
5515 (GCC_ZCX_Support): Likewise.
5517 2005-01-11 Bastian Blank <waldi@debian.org>
5519 * system-linux-s390.ads: Define Preallocated_Stacks.
5520 * system-linux-s390x.ads: Likewise.
5522 2005-01-04 Arnaud Charlet <charlet@adacore.com>
5524 * gnat_ugn.texi: Fix texi errors with null variables.
5526 2005-01-03 Thomas Quinot <quinot@adacore.com>
5528 * gen-soccon.c: New utility program to generate g-soccon.ads
5531 * socket.c, gsocket.h: Split inclusion of system header files into a
5532 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
5534 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
5535 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
5536 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
5537 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
5538 should not be edited by hand anymore, but should be regenerated using
5541 2005-01-03 Robert Dewar <dewar@adacore.com>
5542 Ed Schonberg <schonberg@adacore.com>
5543 Vincent Celier <celier@adacore.com>
5545 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
5546 on/off, since this is an obsolescent feature, for which we now generate
5549 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
5550 warning mode is set and obsolescent usage of this attribute occurs.
5551 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
5552 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
5553 predates, and partly motivates, the adoption of the AI.
5554 Implement new Ada 2005 attribute Mod
5556 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
5559 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
5561 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
5562 pragma restrictions.
5563 New entry for Ada 2005 attribute Mod.
5566 Add recognition of new pragma Restrictions No_Dependence
5567 Recognize restriction No_Obsolescent_Features at parse time
5569 * bcheck.adb: Add circuitry for checking for consistency of
5570 No_Dependence restrictions.
5572 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
5575 * restrict.ads, restrict.adb: Add subprograms to deal with
5576 No_Dependence restrictions.
5578 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
5581 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
5582 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
5584 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
5585 dummy parameter to scng instantiation.
5586 Needed for new restriction No_Obsolescent_Features
5588 * scn.adb: (Obsolescent_Check): New procedure
5589 Needed for new restriction No_Obsolescent_Features
5591 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
5592 specified by AI-285, needed for implementation of AI-388 (adding greek
5593 pi to Ada.Numerics).
5594 Add new generic formal to scng, needed for new restriction
5595 No_Obsolescent_Features.
5597 * s-rident.ads: Add new restriction No_Obsolescent_Features.
5599 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
5601 (Scan_ALI): When finding an unexpected character on an R line, raise
5602 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
5603 Ignore_Errors is True, default restrictions are set and scanning of the
5604 ALI file continues with the next line. Also, when Bad_R_Line is raised
5605 and Ignore_Errors is True, skip to the end of le line.
5607 * sem_ch10.adb: Check that explicit with's do not violate
5608 No_Dependence restrictions.
5609 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
5610 illegal context clauses containing child units of instance.
5612 * sem_prag.adb: Processing and checking for new No_Dependence
5614 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
5615 analyze and check the External argument.
5617 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
5619 2005-01-03 Robert Dewar <dewar@adacore.com>
5621 * atree.adb: Add a fifth component to entities
5622 This allows us to add 32 flags and four new fields
5624 * atree.ads: Add a fifth component to entities
5625 This allows us to add 32 flags and four new fields
5627 * einfo.ads, einfo.adb: Document new fields and new flags now available
5628 Add routines for printing new fields
5630 * treepr.adb: Call routines to print out additional fields if present
5632 2005-01-03 Arnaud Charlet <charlet@adacore.com>
5634 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
5635 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
5637 * Makefile.in: Add support to build shared Ada libraries on solaris x86
5638 Remove gpr2make, replaced by gprmake.
5639 Remove references to gnatmem and libaddr2line.
5640 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
5641 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
5642 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
5643 a-numaux-darwin.ads and a-numaux-darwin.adb
5644 Enable mlib-tgt-lynxos.adb on lynxos.
5646 * Make-lang.in: Remove rules for gpr2make.
5647 When generating sdefault.adb, do not call Relocate_Path
5648 on S3 for function Target_Name, as it is not a path.
5649 Remove references to gnatmem and libaddr2line.
5651 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
5654 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
5656 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
5657 address is incompatible with its base type alignment constraints when
5658 this can be decided statically.
5660 2005-01-03 Olivier Hainque <hainque@adacore.com>
5662 * decl.c (compatible_signatures_p): New function. The intended purpose
5663 is to check if two function signatures for a call-site and a callee are
5664 compatible enough for the call to be valid. The underlying purpose is
5665 to check if a call to a mapped builtin is using the right interface.
5666 The current code actually does not check antyhing - this a placeholder
5667 for future refinements.
5668 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
5669 builtin calls for convention Intrinsic.
5671 * gigi.h (builtin_decl_for): Declare (new function).
5673 * utils.c (gnat_install_builtins): Install the target specific builtins.
5674 (builtin_decl_for): New function, provide a dummy body for now.
5676 2005-01-03 Geert Bosch <bosch@adacore.com>
5678 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
5679 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
5680 (Pred): Implement in terms of Succ.
5682 * trans.c (convert_with_check): Reimplement conversion of float to
5685 2005-01-03 Ed Schonberg <schonberg@adacore.com>
5686 Vincent Celier <celier@adacore.com>
5688 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
5689 bounds can be negative, and must be declared Int, not Nat.
5691 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
5692 array is checked after using the index in the array.
5694 * makegpr.adb (Add_Switches): Check if there is a package for the
5695 processor. If there is no package, do not look for switches.
5697 2005-01-03 Ed Schonberg <schonberg@adacore.com>
5699 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
5700 generation of predefined stream operations (specs and bodies) should
5701 proceed. Under various restrictions these subprograms must not be
5704 2005-01-03 Thomas Quinot <quinot@adacore.com>
5707 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
5708 amount of PCS-specific code in RACW stubs generation.
5709 (Copy_Specification): Set Etype on copied formal parameter entities, as
5710 this information is needed for PolyORB stubs generation.
5711 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
5712 variable Dynamic_Async.
5713 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
5714 (Build_RPC_Receiver_Specification): Make generic again, as recent
5715 changes have allowed RPC receivers to have the same profile for both
5716 variants of the PCS.
5717 Reorganise RPC receiver generation to reduce differences between the
5718 structure of GARLIC and PolyORB RPC receivers.
5719 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
5721 Simplify elaboration code for RCI packages.
5723 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
5724 generation to reduce differences between the structure of GARLIC and
5725 PolyORB RPC receivers.
5727 * s-stratt.adb: Fix typo in comment.
5729 2005-01-03 Thomas Quinot <quinot@adacore.com>
5731 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
5732 copied from Make_Init_Call).
5734 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
5735 reads and assignments on a temporary variable declared with appropriate
5738 2005-01-03 Robert Dewar <dewar@adacore.com>
5740 * i-c.adb (To_C): Raise CE if string is null and Append_Null
5742 2005-01-03 Robert Dewar <dewar@adacore.com>
5744 * i-cstrin.adb (Update): Do not append a null in form called with a
5745 String. This avoids unintended behavior.
5747 2005-01-03 Arnaud Charlet <charlet@adacore.com>
5750 * init.c: Fix warnings on Free BSD section.
5752 2005-01-03 Arnaud Charlet <charlet@adacore.com>
5755 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
5758 2005-01-03 Vincent Celier <celier@adacore.com>
5760 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
5761 libraries when Unique_Compile is True (-u switch).
5764 2005-01-03 Robert Dewar <dewar@adacore.com>
5766 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
5767 upper case letter or underscore after W, as allowed by spec.
5769 2005-01-03 Arnaud Charlet <charlet@adacore.com>
5771 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
5772 darwin port by using proper type definitions from header files.
5773 Use SIGTERM instead of SIGABRT for SIGADAABORT.
5775 2005-01-03 Robert Dewar <dewar@adacore.com>
5777 * par.adb: Enhance error message handling for configuration file
5780 2005-01-03 Robert Dewar <dewar@adacore.com>
5782 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
5783 removed during the previous update (test properly for case of dividing
5784 largest negative number by -1, which generates overflow).
5786 2005-01-03 Ed Schonberg <schonberg@adacore.com>
5787 Sergey Rybin <rybin@adacore.com>
5789 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
5790 to use as the defining identifier for a formal package.
5791 (Remove_Parent): If the instance takes place within (an instance of)
5792 a sibling, preserve private declarations of common parent.
5794 2005-01-03 Ed Schonberg <schonberg@adacore.com>
5796 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
5797 to determine whether one of the operands is a fixed-point type for
5798 which a user-defined multiplication or division operation might be
5801 * sem_res.adb (Valid_Conversion): The legality rules for conversions
5802 of access types are symmetric in Ada 2005: either designated type can
5805 2005-01-03 Vincent Celier <celier@adacore.com>
5807 * s-fileio.adb (Temp_File_Record): Change length of string component
5808 Name from L_tmpnam + 1 to max_path_len + 1.
5810 2005-01-03 Arnaud Charlet <charlet@adacore.com>
5812 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
5813 Self_Id.Deferral_Level = 0.
5814 (Do_Pending_Action): Move this function to the spec.
5816 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
5817 Do_Pending_Action explicitely when needed, in case we're using
5818 No_Abort restrictions.
5820 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
5821 deferral level since it will not get changed by the generated code.
5822 Keeping a default value of 1 would prevent some operations (e.g.
5823 select or delay) to proceed successfully.
5825 2005-01-03 Ben Brosgol <brosgol@adacore.com>
5826 Robert Dewar <dewar@adacore.com>
5827 Cyrille Comar <comar@adacore.com>
5829 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
5830 porting guide chapter (vms version).
5831 Revised doc title (removed "for native platforms") and subtitle.
5832 Add discussion on warning flag for obsolescent features. First we
5833 note that it applies to obsolete GNAT features, which was previously
5834 omitted. Second we contrast the behavior with that of the new
5835 Ada 2005 AI-368 restriction No_Obsolescent_Features.
5836 Preliminary rewriting of GNAT & libraries chapter in order to take
5837 into account default project locations & new project manager
5840 2005-01-03 Robert Dewar <dewar@adacore.com>
5842 * cstand.adb (Create_Operators): Clean up format and documentation of
5843 unary and binary operator result tables. No change in code, just
5844 reformatting and addition of comments.
5846 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
5847 sem_ch2.adb: Minor reformatting
5849 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
5850 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
5851 comments for Tree_Read and Tree_Write.
5853 2005-01-03 Pascal Obry <obry@adacore.com>
5855 * exp_attr.ads: Minor reformatting.
5857 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
5859 * comperr.adb (Compiler_Abort): Add specialized message for GAP
5862 2005-01-03 Ed Schonberg <schonberg@adacore.com>
5864 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
5865 whether the ancestor type is private, as may be the case with nested
5868 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
5871 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
5873 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
5875 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
5876 * utils2.c (build_unary_op): Likewise.
5878 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5880 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
5882 2004-12-19 Richard Henderson <rth@redhat.com>
5884 * trans.c (gigi): Update gimplify_body call.
5886 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
5888 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
5890 2004-12-07 Ed Falis <falis@adacore.com>
5892 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
5893 current task being suspended.
5895 * init.c (__gnat_clear_exception): added to reset VxWorks exception
5897 (__gnat_map_signal): removed test for current task being suspended.
5899 2004-12-07 Gary Dismukes <dismukes@adacore.com>
5901 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
5902 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
5903 targets (such as AAMP).
5905 2004-12-07 Ed Schonberg <schonberg@adacore.com>
5907 * atree.adb (Visit_Itype): Create a new name for the generated itype,
5908 because the back-end may otherwise treat it as a redefinition of the
5911 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
5913 * back_end.adb (Scan_Back_End_Switches): Accept --param.
5915 * lang-specs.h: Accept --param.
5917 2004-12-07 Vincent Celier <celier@adacore.com>
5919 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
5920 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
5921 Current_Body_Suffix => Ada_Body_Suffix).
5922 Take into account Externally_Built attribute.
5924 * clean.adb (In_Extension_Chain): Always return False when one of the
5925 parameter is No_Project.
5926 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
5927 Ada_Language_Index).
5928 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
5929 Process_Languages for procedure Parse).
5931 * gnatcmd.adb (Carg_Switches): New table.
5932 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
5933 Adapt to name changes in package Prj (Current_Spec_Suffix =>
5934 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
5936 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
5937 Header_Num and function Hash are now declared in package Prj,
5940 * prj.adb (Suffix_Of): New function.
5941 (Set (Suffix)): New procedure.
5942 (Hash): One function moved from Prj.Com
5943 (Is_Present, Language_Processing_Data_Of): New functions
5944 (Set): Two new procedures
5945 (Add_Language_Name, Display_Language_Name): New procedures
5947 * prj.ads: (Suffix_Of): New function
5948 (Set (Suffix)): New procedure
5949 Add several types and tables for multi-language support.
5950 (Header_Num): Type moved from Prj.Com
5951 (Hash): Two functions moved from Prj.Com
5952 (Is_Present, Language_Processing_Data_Of): New functions
5953 (Set): Two new procedures
5954 (Add_Language_Name, Display_Language_Name): New procedures
5955 (Naming): Component name changes:
5956 Current_Spec_Suffix => Ada_Spec_Suffix,
5957 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
5958 Impl_Suffixes, Supp_Suffixes.
5959 (Project_Data): New components: Externally_Built, Supp_Languages,
5960 First_Language_Processing, Supp_Language_Processing, Default_Linker,
5961 Default_Linker_Path.
5963 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
5964 new package Language_Processing with its attributes (Compiler_Driver,
5965 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
5966 Binder_Driver, Default_Linker).
5968 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
5969 (Header_Num): Type moved to package Prj
5971 * prj-env.adb: Adapt to name changes in package Prj
5972 (Current_Spec_Suffix => Ada_Spec_Suffix,
5973 Current_Body_Suffix => Ada_Body_Suffix).
5975 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
5976 default to the project path, except the "-" is one of the directories
5977 in env var ADA_PROJECT_PATH.
5978 (Current_Project_Path): Global variable, replacing Project_Path
5979 that was in the body of Prj.Part.
5980 (Project_Path): New function
5981 (Set_Project_Path): New procedure
5982 Initialize Current_Project_Path during elaboration of the package
5983 Remove dependency on Prj.Com, no longer needed
5985 * prj-ext.ads (Project_Path): New function
5986 (Set_Project_Path): New procedure
5988 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
5989 suffix is defined for language <lang>.
5990 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
5991 accessing directly the components of Naming.
5992 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
5993 Reorganise of this package.
5994 Break procedure Check in several procedures.
5996 * prj-nmsc.ads: Replace all procedures (Ada_Check,
5997 Other_Languages_Check and Language_Independent_Check) with a single
6000 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
6001 Process_Languages, no longer needed.
6003 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
6004 Current_Project_Path.
6005 Remove elaboration code, moved to the body of Prj.Ext
6006 Use new function Prj.Ext.Project_Path instead of old variable
6008 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
6009 When comparing with project paths on the stack, first put the resolved
6010 path in canonical case.
6011 (Parse_Single_Project): Set the path name of the project file in the
6012 tree to the normalized path.
6014 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
6015 parameter Process_Languages, no longer needed.
6016 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
6017 Other_Languages_Check.
6019 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
6020 to store the resolved canonical path of the project file.
6021 Remove dependency to Prj.Com, no longer needed
6023 * prj-util.adb: Adapt to name changes in package Prj
6024 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
6027 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
6028 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
6029 Externally_Built, Include_Option, Language_Processing.
6031 * makegpr.adb: Numerous changes due to changes in packages
6034 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
6035 default to the project path, except whe "-" is one of the directories
6036 in env var ADA_PROJECT_PATH.
6037 (Gnatls): In verbose mode, add the new section "Project Search Path:"
6039 2004-12-07 Robert Dewar <dewar@adacore.com>
6041 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
6043 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
6046 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
6047 flag. No longer needed now that we handle this in gnat1drv.adb.
6049 * repinfo.ads: Minor reformatting
6051 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6052 Olivier Hainque <hainque@adacore.com>
6053 Eric Botcazou <ebotcazou@adacore.com>
6055 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
6056 TYPE_SIZE_UNIT of result type if SIZE is not specified.
6057 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
6058 of a bitfield, which we know is useless and causes trouble because of
6059 alignment implications.
6061 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
6063 (process_attributes): Clear DECL_COMMON again when a section attribute
6065 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
6066 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
6067 (create_field_decl): Special case ADDRESSABLE negative to mean
6068 "no bitfield creation", to be used by make_aligning_type. Don't
6069 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
6070 fields claimed addressable still have to be bitfields. Use
6071 value_factor_p instead of a raw binop construction to check for the
6072 position's alignment.
6074 2004-12-07 Geert Bosch <bosch@adacore.com>
6076 * eval_fat.adb: Revert previous change.
6078 2004-12-07 Thomas Quinot <quinot@adacore.com>
6079 Ed Schonberg <schonberg@adacore.com>
6081 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
6082 with an implicit dereference as its prefix, use
6083 Insert_Explicit_Dereference instead of merely rewriting the prefix into
6084 an explicit dereference. This ensures that a reference to the original
6085 prefix is generated, if appropriate.
6087 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
6088 dereference is rewritten to an explicit one, generate a reference to
6089 the entity denoted by its prefix using the original prefix node, so
6090 the dereference can be properly recorded as a read of the denoted
6091 access value, if appropriate.
6093 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
6094 emitting 'assigned but never read' warning on a variable on the basis
6095 that it has an access type.
6096 (Check_References): Emit unreferenced warning when the scope is a
6099 2004-12-07 Robert Dewar <dewar@adacore.com>
6100 Ed Schonberg <schonberg@adacore.com>
6102 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
6105 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
6106 leaving call unchanged.
6107 This deals with the case where the pragma Import specified
6108 an external name, to be handled by the back end.
6110 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
6111 subprogram which is Imported with convention Intrinsic if an
6112 External_Name argument is specified.
6113 (Process_Import_Or_Interface): Properly diagnose link name argument.
6114 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
6115 with Sem_Ch6.Cannot_Inline.
6116 (Process_Inline): Provide separate warning for inapplicable inline
6118 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
6119 treatment is uniform on different targets.
6121 2004-12-07 Ed Schonberg <schonberg@adacore.com>
6123 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
6124 construct is rewritten, preserve end label to permit source navigation.
6126 2004-12-07 Thomas Quinot <quinot@adacore.com>
6128 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
6129 Specific_Build_Stub_Target): New subprograms.
6130 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
6131 the PCS implementation used, using the above PCS-customized subprograms.
6133 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
6134 for generation of DSA code targeted to the PolyORB PCS.
6135 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
6136 implementation of the partition communication subsystem in ancillary
6138 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
6139 PolyORB_Support.Build_Stub_Type): New subrograms containing the
6140 PCS-specific part of Add_Stub_Type.
6141 (Insert_Partition_Check): Use runtime library function to perform
6144 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
6145 (RE_Same_Partition): New entity, from s-parint.
6147 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
6149 2004-12-07 Gary Dismukes <dismukes@adacore.com>
6151 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
6152 Output the copyright message on a separate line from the version
6155 2004-12-07 Joel Brobecker <brobecker@adacore.com>
6157 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
6158 compile-time warning.
6160 2004-12-07 Robert Dewar <dewar@adacore.com>
6162 * g-regpat.adb: (Match): Change a misuse of or to or else
6164 2004-12-07 Ed Schonberg <schonberg@adacore.com>
6167 (Generate_Reference): Handle properly a reference to an entry formal,
6168 when an accept statement has a pragma Unreferenced for it.
6170 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
6171 and the Has_Pragma_Unreferenced flag for each formal before analyzing
6172 the body, to ensure that warnings are properly emitted for each accept
6173 statement of a given task entry.
6175 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
6177 * Makefile.in: Add support for foreign threads on VMS.
6179 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6181 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
6183 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
6185 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
6187 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
6189 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
6191 2004-12-07 Robert Dewar <dewar@adacore.com>
6193 * nlists.adb (Prepend_Debug): Remove parameters and nest within
6195 (Remove_Next_Debug): Same fix
6197 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
6198 maintain back pointers now, though we did not used to, and comments
6200 (Prepend): Remove pragma Inline.
6201 (Remove_Next): Same cleanup
6203 2004-12-07 Thomas Quinot <quinot@adacore.com>
6205 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
6206 used to record an implicit dereference as a read operation on its
6207 prefix when operating under -gnatc. Necessary to avoid spurious
6208 'variable assigned but never read' warnings in that mode.
6209 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
6210 is a non-overloaded implicit dereference, call the above subprogram to
6211 ensure proper recording of references.
6213 2004-12-07 Gary Dismukes <dismukes@adacore.com>
6215 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
6216 to be resolved later as part of Analyze_Iteration_Scheme's call to
6219 2004-12-07 Ed Schonberg <schonberg@adacore.com>
6221 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
6222 prefix is not a scalar type, place error message on prefix, not on
6225 2004-12-07 Bernard Banner <banner@adacore.com>
6227 * vxaddr2line.adb: Add support for x86 vxworks
6229 2004-12-07 Thomas Quinot <quinot@adacore.com>
6231 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
6232 documentation of the behaviour of these functions when passed an IP
6233 address that has no record in the system hosts database and no reverse
6236 * cstand.adb, a-tags.ads: Fix typos in comment.
6238 2004-12-07 Robert Dewar <dewar@adacore.com>
6240 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
6241 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
6242 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
6243 s-poosiz.ads: Minor reformatting
6245 * make.adb: Minor reformatting
6246 Add some ??? comments asking for more comments
6248 * s-poosiz.adb: Minor reformatting
6249 Add comments on alignment requirement
6251 * sinfo.ads: Remove obsolete comment and fix typo.
6253 2004-12-07 Vincent Celier <celier@adacore.com>
6254 Sergey Rybin <rybin@adacore.com>
6256 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
6257 Files" with the new tool and package names.
6258 Reformatting to suppress most of the warnings for line too long
6259 Document the new section "Project Search Path:" in the output of
6261 Add gnatmetric section
6263 2004-12-07 Vincent Celier <celier@adacore.com>
6265 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
6266 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
6267 and -eit to -ept. Added qualifier
6268 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
6270 2004-11-27 Andreas Schwab <schwab@suse.de>
6272 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
6274 2004-11-25 Arnaud Charlet <charlet@adacore.com>
6276 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
6277 internal implementation unit GNAT.Sockets.Thin,
6278 as their usage for sockets is non-portable (using the read and write
6279 functions from the system runtime library is fine on UNIX but won't
6280 work under Windows).
6282 * mingw32.h: Update copyright notice.
6284 2004-11-25 Arnaud Charlet <charlet@adacore.com>
6286 * ada-tree.h: Minor reformatting of previous change to avoid lines
6287 longer than 79 characters.
6289 2004-11-25 Olivier Hainque <hainque@adacore.com>
6291 * tb-gcc.c: GCC infrastructure based implementation of
6294 2004-11-24 Steven Bosscher <stevenb@suse.de>
6296 * misc.c (gnat_post_options): Don't clear
6297 flag_inline_functions.
6299 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
6302 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
6305 2004-11-21 Andreas Jaeger <aj@suse.de>
6307 * stylesw.adb: Change Style_Check_Subprogram_Order to
6308 Style_Check_Order_Subprograms.
6310 2004-11-18 Arnaud Charlet <charlet@adacore.com>
6312 * adaint.h, adaint.c
6313 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
6315 Add also a cast to kill another warning.
6316 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
6317 parameter with the priority class of the parent process instead of
6318 always using the NORMAL_PRIORITY_CLASS.
6319 (__gnat_dup): New function.
6320 (__gnat_dup2): New function.
6321 (__gnat_is_symbolic_link): Enable the effective body of this
6322 function when __APPLE__ is defined.
6324 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
6327 2004-11-18 Olivier Hainque <hainque@adacore.com>
6329 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
6330 address of which may be used to represent "others" and "all others"
6331 choices in exception tables, instead of the current harcoded
6332 (void *)0 and (void *)1.
6333 (Setup_Exception): Do nothing in the GNAT SJLJ case.
6335 * gigi.h (others_decl, all_others_decl): New decls representing the
6336 new Others_Value and All_Others_Value objects.
6337 (struct attrib): Rename "arg" component as "args", since GCC expects a
6338 list of arguments in there.
6340 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
6341 corresponding objects exported by a-exexpr, instead of hardcoded dummy
6344 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
6345 others_decl and all_others_decl instead of hardcoded dummy addresses
6346 to represent "others" and "all others" choices, which is cleaner and
6347 more flexible with respect to the possible eh pointer encoding policies.
6349 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
6350 (process_attributes): Account for the naming change of the "args"
6351 attribute list entry component.
6353 * decl.c (build_attr_list): Rename into prepend_attributes to allow
6354 cumulating attributes for different entities into a single list.
6355 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
6356 attributes for the current entity and propagate first subtype
6357 attributes to other subtypes.
6358 <E_Procedure>: Attribute arguments are attr->args and not
6360 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
6361 argument provided, as this is what GCC expects. Use NULL_TREE instead
6364 2004-11-18 Robert Dewar <dewar@adacore.com>
6366 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
6367 Minor reformatting througout (including new function specs)
6368 Add ??? comments asking for clarification.
6370 2004-11-18 Thomas Quinot <quinot@adacore.com>
6372 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
6373 incomplete duplicate implementation of this subprogram from butil.
6375 2004-11-18 Thomas Quinot <quinot@adacore.com>
6377 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
6378 procedures factors the common processing for building an RPC receiver
6379 for an RCI package or an RACW type.
6380 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
6381 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
6382 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
6384 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
6386 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
6388 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
6389 distribution subprogram identifiers that are either subprogram numbers
6391 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
6392 string distribution identifiers assigned to a given subprogram.
6393 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
6394 (Add_RAS_Dereference_TSS): Add comments.
6395 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
6396 is not referenced yet because it will be used by the PolyORB DSA
6398 (Insert_Partition_Check): Remove fossile code.
6399 (First_RCI_Subprogram_Id): Document this constant.
6400 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
6402 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
6403 replaced with calls to Get_Library_Unit_Name_String. Previously there
6404 were several instances of the same code in different locations in the
6405 compiler; this checkin completes the replacement of all of these
6406 instances with calls to a common subprogram.
6409 * sem_dist.adb: Remove comment noting that RPC receiver generation
6410 should be disabled for RACWs that implement RASs.
6411 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
6413 * sem_util.ads, sem_util.adb (Has_Stream): New function
6414 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
6415 qualified name of a library unit into the name buffer.
6416 (Note_Possible_Modification): Generate a reference only
6417 if the context comes from source.
6419 * snames.ads (PCS_Names): New subtype corresponding to names of
6420 supported implementations of the Partition Communication Subsystem
6421 (PCS) (i.e. the runtime library support modules for the distributed
6424 2004-11-18 Robert Dewar <dewar@adacore.com>
6425 Ed Schonberg <schonberg@adacore.com>
6427 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
6428 (Has_Rep_Pragma): New function
6429 (Has_Attribute_Definition_Clause): New function
6430 (Record_Rep_Pragma): Moved here from sem_ch13.adb
6431 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
6433 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
6435 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
6436 (Expand_Pragma_Psect_Object): New procedure
6437 These procedures contain the revised and cleaned up processing for
6438 these two pragmas. This processing was formerly in Sem_Prag, but
6439 is more appropriately moved here. The cleanup involves making sure
6440 that the pragmas are properly attached to the tree, and that no
6441 nodes are improperly shared.
6443 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
6444 pragmas to Exp_Prag, which is more appropriate.
6445 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
6446 check for duplicates Remove use of Is_Psected flag, no longer needed.
6447 Use new Make_String_Literal function with string.
6449 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
6450 that are functions return universal values, that have to be converted
6451 to the context type.
6452 Use new Make_String_Literal function with string.
6453 (Get_Stream_Convert_Pragma): New function, replaces the use of
6454 Get_Rep_Pragma, which had to be kludged to work in this case.
6456 * freeze.adb: Use new Has_Rep_Pragma function
6458 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
6459 function with string.
6460 Use new Has_Rep_Pragma function.
6462 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
6465 2004-11-18 Robert Dewar <dewar@adacore.com>
6467 * errout.ads, errout.adb: (First_Sloc): New function
6469 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
6470 check (-gnatyx) instead of being included as a redundant construct
6473 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
6474 Style_Check_Order_Subprograms.
6476 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
6477 stylesw.adb: Add Style_Check_Xtra_Parens
6479 * usage.adb: Add line for -gnatyx (check extra parens)
6481 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
6483 2004-11-18 Ed Schonberg <schonberg@adacore.com>
6484 Robert Dewar <dewar@adacore.com>
6486 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
6487 discriminant of a constrained subtype, analyze the copy of the
6488 corresponding constraint, because in some cases it may be only
6490 Removes long-lived ??? comments.
6492 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
6493 handled controlled or secondary-stack expressions within the
6494 iteration_scheme of a loop.
6496 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
6497 bounds that may contain functions calls, to prevent memory leaks when
6498 the bound contains a call to a function that uses the secondary stack.
6499 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
6500 generate temporaries for loop bounds that might contain function calls
6501 that require secondary stack and/or finalization actions.
6503 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
6504 selected component and the selector is overloadable (not just a
6505 function) treat as function call, Analyze_Call will disambiguate if
6507 (Analyze_Selected_Component): Do not generate an actual subtype for the
6508 selected component if expansion is disabled. The actual subtype is only
6509 needed for constraint checks.
6510 (Analyze_Allocator): If restriction No_Streams is set, then do
6511 not permit objects to be declared of a stream type, or of a
6512 composite type containing a stream.
6514 * restrict.ads: Remove the a-stream entry from Unit_Array, since
6515 No_Streams no longer prohibits with'ing this package.
6517 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
6518 discriminants, but the parent base has unknown discriminants, there is
6519 no discriminant constraint to inherit. Such a discrepancy can arise
6520 when the actual for a formal type with unknown discriminants is a
6521 similar private type whose full view has discriminants.
6522 (Analyze_Object_Declaration): If restriction No_Streams is set, then
6523 do not permit objects to be declared of a stream type, or of a
6524 composite type containing a stream.
6526 2004-11-18 Ed Schonberg <schonberg@adacore.com>
6528 * exp_dbug.ads: Update documentation to reflect simpler encoding for
6529 protected operations.
6531 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
6532 generated name, it complicates decoding in gdb and hinders debugging
6533 of protected operations.
6534 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
6535 flag for the protected entry barrier function.
6536 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
6537 flag for the protected entry function.
6539 2004-11-18 Nicolas Setton <setton@adacore.com>
6541 * expect.c: Define __unix__ when __APPLE__ is defined.
6543 * Makefile.in: Inform the value of the variable GMEM_LIB in the
6544 Darwin-specific section.
6546 * lang-specs.h: Change the placement of the %1 marker.
6547 Works around the fact that gcc adds -fPIC by default under Darwin.
6549 2004-11-18 Ed Schonberg <schonberg@adacore.com>
6551 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
6552 type of the object with the packed array type, set the Analyzed flag
6553 on the object if it is an entity or simple indexed component, to avoid
6554 spurious type errors.
6556 2004-11-18 Gary Dismukes <dismukes@adacore.com>
6558 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
6559 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
6560 separate line from the version message.
6562 2004-11-18 Ed Falis <falis@adacore.com>
6564 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
6566 (init_float): Eliminate initialization of floating point status for
6567 AE653. The instructions have no effect for vThreads.
6569 2004-11-18 Vincent Celier <celier@adacore.com>
6571 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
6572 gnatbind is invoked with -shared.
6574 2004-11-18 Jose Ruiz <ruiz@adacore.com>
6576 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
6577 for Detect_Blocking which is redundant with the check done within the
6578 procedure Protected_Single_Entry_Call.
6579 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
6580 Detect_Blocking which is redundant with the check done within the
6581 procedure Protected_Single_Entry_Call.
6583 2004-11-18 Vincent Celier <celier@adacore.com>
6585 * makegpr.adb (Compile): Put the compiling switches (in package
6586 Compiler and on the command line) immediately after "-c", instead of
6587 at the end of the command line invocation of the compiler, when
6588 compiling a non-Ada file.
6589 (Build_Global_Archive): When there is no need to rebuild the archive,
6590 set Global_Archive_Exists, so that the archive is passed to the linker
6593 2004-11-18 Robert Dewar <dewar@adacore.com>
6594 Sergey Rybin <rybin@adacore.com>
6597 Remove extra paren check from list of checks for redundant constructs
6598 Add documentation of new -gnatyx style check (check extra parens)
6599 Remove paragraph about gnatelim debug options.
6601 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
6602 objects rather than forbidding dependencies on the package Ada.Streams.
6604 * sinfo.ads: Add ??? note that we should document pragmas passed to
6607 * g-expect.ads: Fix a few typos in the comments.
6609 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
6611 * misc.c (gnat_handle_option): Use %< and %> for quoting in
6614 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6616 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
6618 2004-11-07 Andreas Schwab <schwab@suse.de>
6620 * Makefile.in (install-gnatlib): Remove spurious hyphen.
6622 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
6625 * Makefile.in (darwin): Set soext to .dylib.
6627 2004-10-26 Vincent Celier <celier@gnat.com>
6628 Thomas Quinot <quinot@act-europe.fr>
6630 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
6631 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
6632 there is no use of GNAT.Sockets.Constants.
6633 Remove remaining pragma Import for C_Write
6634 Remove C_Read and C_Write from internal implementation unit
6635 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
6636 the read and write functions from the system runtime library is fine
6637 on UNIX but won't work under Windows).
6639 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
6640 (Check_Selector): Use C_Recv instead of C_Read.
6641 Selectors are the GNAT.Sockets abstraction to perform a select()
6642 call on a set of descriptors. To allow abortion of an ongoing
6643 select operation, some data is written to a dedicated socket that
6644 is always monitored.
6645 Under Windows, the write and read library functions cannot operate
6646 on sockets, so we need to use send and recv instead, which is portable
6647 across all supported platforms.
6649 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
6650 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
6651 (using the read and write functions from the system runtime library is
6652 fine on UNIX but won't work under Windows).
6654 2004-10-26 Nicolas Setton <setton@act-europe.fr>
6656 * mlib-tgt-darwin.adb: New file.
6658 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
6659 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
6660 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
6661 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
6664 * Makefile.in: Add support for building shared libraries under Darwin.
6665 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
6666 the low level EH init subprogram to be called from __gnat_initialize.
6668 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
6669 indicates which options to pass to the archive indexer.
6671 * mlib-utl.adb: Add support for calling ranlib with additional
6672 options. This is needed for instance under Mac OS X.
6673 (Ranlib_Options): New global variable, used to store the potential
6674 options to pass to ranlib.
6675 (Ar): Use Ranlib_Options when spawning ranlib.
6676 (Initialize): Set the value of ranlib option.
6678 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
6680 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
6681 instead of 8K, to reflect the real potential needs for stack-checking
6684 2004-10-26 Pascal Obry <obry@gnat.com>
6686 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
6688 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
6689 Windows only the initial thread stack size can be set so it is good to
6690 start we a low stack size.
6691 The OS will adjust the size as needed.
6693 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
6694 Nicolas Setton <setton@act-europe.fr>
6696 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
6697 "__unix__" instead of "unix".
6698 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
6699 sections were just mistakenly ignored. The former is
6700 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
6701 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
6702 of hpux. This prevents an unwanted definition of the symbol
6703 convert_addresses in adaint.o.
6705 2004-10-26 Gary Dismukes <dismukes@gnat.com>
6707 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
6708 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
6710 2004-10-26 Cyrille Comar <comar@act-europe.fr>
6712 * a-filico.ads, a-filico.adb: fix incorrect header.
6714 2004-10-26 Javier Miranda <miranda@gnat.com>
6716 * a-ststio.ads: Fix typo in identifier
6718 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
6720 * sem_ch4.adb: Minor reformatting.
6722 2004-10-26 Ed Schonberg <schonberg@gnat.com>
6724 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
6725 enabled, check the result of unary and binary operations when the
6726 expression is the right-hand side of an assignment.
6728 2004-10-26 Vincent Celier <celier@gnat.com>
6730 * clean.adb (Delete): Do not output warnings when in quiet output and
6731 not in verbose mode.
6732 (Force_Deletions): New Boolean flag, defaulted to False
6733 (Delete): Only delete a file if it is writable, and when
6734 Force_Deletions is True.
6735 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
6736 (Usage): Line for new switch -f
6737 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
6740 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
6742 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
6743 JM type only if its size matches that of the wrapper. When a size is
6744 prescribed and the field is not aliased, remove the wrapper of a JM
6745 type only if the size is not greater than that of the packed array.
6746 (gnat_to_gnu_entity): Change the extension of packed array wrappers
6749 2004-10-26 Geert Bosch <bosch@gnat.com>
6751 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
6752 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
6753 (Pred): Implement in terms of Succ.
6755 2004-10-26 Ed Schonberg <schonberg@gnat.com>
6757 * exp_aggr.adb (Safe_Component): An aggregate component that is an
6758 unchecked conversion is safe for in-place use if the expression of the
6760 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
6761 be expandable in place even if the aggregate does not come from source.
6762 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
6763 designated object of an allocator in place, rather than building it
6764 first on the stack. The previous scheme forces a full copy of the array,
6765 and may be altogether unsusable if the size of the array is too large
6766 for stack allocation.
6768 2004-10-26 Robert Dewar <dewar@gnat.com>
6770 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
6771 compares if the component is atomic.
6773 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
6774 array assignment if the component type is atomic.
6776 2004-10-26 Ed Schonberg <schonberg@gnat.com>
6777 Eric Botcazou <ebotcazou@act-europe.fr>
6779 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
6780 is aliased and is a by_reference type, do not pass by copy.
6781 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
6782 detect whether the call is in the right side of an assignment or
6783 the expression of an object declaration. Recurse on component
6784 association within aggregates.
6785 Call it in the condition that determines whether the temporary is
6786 necessary for correct stack-checking.
6788 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
6790 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
6791 RACW_Type, used in the PolyORB version.
6792 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
6793 version and the GARLIC version.
6795 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
6796 Rename RCI_Info to RCI_Locator for better consistency between the
6797 GARLIC and PolyORB versions of the distributed systems annex.
6798 (DSA_Implementation_Name): This enumeration lists the possible
6799 implementations of the Partition Communication Subsystem for the
6800 Distributed Systems Annex (DSA). The three available implementations
6801 are the dummy stub implementation (No_DSA), and two versions based on
6802 two different distribution runtime libraries: GARLIC and PolyORB. Both
6803 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
6805 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
6808 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
6809 between the GARLIC and PolyORB versions of the distributed systems
6811 Remove RE_Unbounded_Reclaim_Pool since it is unused.
6813 2004-10-26 Gary Dismukes <dismukes@gnat.com>
6815 * gnat1drv.adb: Suppress calling the back end when
6816 Frontend_Layout_On_Target is true.
6818 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
6820 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
6821 Set_Read_Only): New subprograms.
6822 These new routines allow the user to set or unset the Owner execute
6823 and Owner write permission flags on a file.
6825 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
6826 GNAT.OS_Lib.Set_Executable instead of rolling our own.
6828 2004-10-26 Matthew Gingell <gingell@gnat.com>
6830 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
6832 2004-10-26 Pascal Obry <obry@gnat.com>
6834 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
6835 memory before the faulting page we properly test the process read
6836 access for this address using appropriate Win32 routine.
6837 (HPUX sections): guard with "__hpux__" instead of "hpux".
6839 2004-10-26 Robert Dewar <dewar@gnat.com>
6841 * lib-xref.adb (Generate_Reference): Don't complain about reference to
6842 entry parameter if pragma Unreferenced set, since we do not properly
6843 handle the case of multiple parameters.
6845 2004-10-26 Vincent Celier <celier@gnat.com>
6847 * prj-env.adb: (Contains_ALI_Files): New Boolean function
6848 (Ada_Objects_Path.Add): For a library project, add to the object path
6849 the library directory only if there is no object directory or if the
6850 library directory contains ALI files.
6851 (Set_Ada_Paths.Add.Recursive_Add): Ditto
6853 2004-10-26 Vincent Celier <celier@gnat.com>
6855 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
6856 extension of library projects.
6858 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
6859 path defaults to ".:<prefix>/lib/gnat".
6860 (Parse): For an extending all project, allow direct import of a project
6861 that is virtually extended.
6863 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
6864 the specified name is directly imported, return its ID. Otherwise, if
6865 an extension of this project is imported, return the ID of the
6868 2004-10-26 Robert Dewar <dewar@gnat.com>
6870 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
6871 (Sub3): New procedure, used by Scaled_Divide
6872 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
6873 correct more than one instance of failure to propagate carries
6875 (Double_Divide): Handle overflow case of largest negative number
6876 divided by minus one.
6878 * s-arit64.ads (Double_Divide): Document that overflow can occur in
6879 the case of a quotient value out of range.
6882 2004-10-26 Robert Dewar <dewar@gnat.com>
6884 * s-bitops.adb (Bit_Eq): Remove redundant check.
6886 * s-bitops.ads: Minor comment updates
6887 Change some occurrences of Address to System.Address
6889 * s-carsi8.ads: Fix minor cut-and-paste error in comments
6891 2004-10-26 Ed Schonberg <schonberg@gnat.com>
6893 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
6894 accessibility check to prefix that is a protected operation.
6896 2004-10-26 Ed Schonberg <schonberg@gnat.com>
6898 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
6899 empty, post message on stub.
6901 2004-10-26 Ed Schonberg <schonberg@gnat.com>
6902 Javier Miranda <miranda@gnat.com>
6904 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
6905 current instance appears within a unit that is directly in the context
6907 Used to determine whether the body of the instance should be analyzed
6908 immediately after its spec, to make its subprogram bodies available
6909 for front-end inlining.
6910 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
6911 constraint is not allowed on the component type (AARM 12.5.3(3))
6913 2004-10-26 Cyrille Comar <comar@act-europe.fr>
6915 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
6916 'Storage_Pool): enhance, document & limit detection of non-sharable
6919 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
6921 * s-pooglo.ads: Add more documentation now that this pool is properly
6924 2004-10-26 Ed Schonberg <schonberg@gnat.com>
6926 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
6927 or protected type with discriminants, do not constrain the
6928 corresponding record type if the subtype declaration has no
6929 discriminant constraints. This can be the case in source code, or in
6930 the subtype declaration created to rename an actual type within an
6933 2004-10-26 Ed Schonberg <schonberg@gnat.com>
6935 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
6936 different kind of stub (possibly wrong name for file), do not check
6938 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
6939 includes call to some function that returns an unconstrained type, do
6942 2004-10-26 Ed Schonberg <schonberg@gnat.com>
6944 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
6945 appear in the code for the main unit. Dependencies among units in the
6946 context of the main unit are established when those other units are
6947 compiled. Otherwise spurious elaboration constraints can generate
6948 incorrect elaboration circularities.
6950 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
6951 Ed Schonberg <schonberg@gnat.com>
6953 * sem_util.adb (Is_Aliased_View): Defend against the case where this
6954 subprogram is called with a parameter that is not an object name. This
6955 situation arises for some cases of illegal code, which is diagnosed
6956 later, and in this case it is wrong to call Is_Aliased, as that might
6957 cause a compiler crash.
6958 (Explain_Limited_Type): Refine previous fix to include
6959 inherited components of derived types, to provide complete information.
6961 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
6962 is the prival for a protected object.
6963 It is necessary to mark this entity as a variable, in addition to
6964 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
6965 modified to avoid checking the Aliased flag on entities that are not
6966 objects. (Checking that flag for non-objects is erroneous and could
6967 lead to a compiler crash).
6969 2004-10-26 Robert Dewar <dewar@gnat.com>
6971 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
6972 X_Frac = 0.5, then we know that the number X must be positive.
6973 (Succ): Remove the same redundant test, and also fix the primary test
6974 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
6976 (Decompose): Add fuller comments to spec
6978 2004-10-26 Pascal Obry <obry@gnat.com>
6980 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
6981 validity (process must have read access). Set to 0 in all other cases.
6982 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
6984 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
6985 segmentation violation.
6987 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
6989 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
6990 whose type is a constructed subtype of an aliased object with an
6991 unconstrained nominal subtype, convert the actual to the constructed
6992 subtype before taking its address.
6994 2004-10-26 Vincent Celier <celier@gnat.com>
6996 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
6997 (Is_Path_Name_Case_Sensitive): New function
6999 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
7000 (Base_Name, Simple_Name, Current_Directory, Compose,
7001 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
7004 2004-10-26 Cyrille Comar <comar@act-europe.fr>
7005 Vasiliy Fofanov <fofanov@act-europe.fr>
7006 Vincent Celier <celier@gnat.com>
7008 * gnat_ugn.texi: Generalize "finding memory problems" section into a
7009 "memory management issues" section and document some of the useful
7010 memory pools provided as part of the GNAT library.
7011 Remove "virtual" from declaration of A::method2 in
7012 the simple example of Ada/C++ mixed system.
7013 Library Projects may be virtually extended: their virtual extensions
7014 are not Library Projects.
7015 Added section on extending project hierarchies.
7017 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
7019 * adaint.c (__gnat_get_libraries_from_registry): Cast value
7021 (__gnat_portable_spawn): Remove const.
7023 * mingw32.h (MAXPATHLEN): Check for previous definition.
7025 2004-10-17 Matthias Klose <doko@debian.org>
7027 * gnatvsn.ads: Set gnat library version to 4.0.
7029 2004-10-05 Vincent Celier <celier@gnat.com>
7031 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
7033 2004-10-04 Laurent GUERBY <laurent@guerby.net>
7036 * Makefile.in: Define and use RANLIB_FLAGS.
7038 2004-10-04 Pascal Obry <obry@gnat.com>
7040 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
7041 other x86 platforms).
7043 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
7045 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
7046 in general and triggers stack alignment adjustment for thread entry
7047 points on targets where this is necessary.
7049 2004-10-04 Bernard Banner <banner@gnat.com>
7053 * Makefile.in: Add section for powerpc linux
7054 Add variant i-vxwork-x86.ads
7056 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
7058 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
7060 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
7061 table registration calls when need be. Ensures no reference to the crt
7062 ctors symbol are issued in the SJLJ case, which avoids possible
7063 undefined symbol errors in the case of modules to be statically linked
7066 2004-10-04 Javier Miranda <miranda@gnat.com>
7068 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
7069 in-line the code corresponding to subprogram Analyze_Actuals. In
7070 addition, analyze the actuals only in case of subprogram call.
7072 2004-10-04 Ed Falis <falis@gnat.com>
7074 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
7076 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
7078 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
7079 in the documentation.
7081 2004-10-04 Robert Dewar <dewar@gnat.com>
7083 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
7085 (Analyze_Block_Statement): Add circuitry to detect following dead code
7086 (Check_Unreachable_Code): Handle case of block exit
7088 2004-10-04 Robert Dewar <dewar@gnat.com>
7090 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
7091 (XMatchD): Avoid warning for Logic_Error call
7093 2004-10-04 Robert Dewar <dewar@gnat.com>
7095 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
7096 consider expressions buried within a procedure actual to be an actual.
7097 This caused some blowups with uses of packed slices within a procedure
7100 2004-10-04 Robert Dewar <dewar@gnat.com>
7102 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
7103 longer need to be initialized to zero.
7104 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
7105 initialized to zero.
7107 * checks.adb (Expr_Known_Valid): Packed arrays are now always
7108 considered valid, even if the representation is modular. That's correct
7109 now that we no longer initialize packed modular arrays to zero.
7111 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
7112 suffixes. These are now documented as the only cases in which the
7113 debugger ignores outer records.
7114 Previously, the spec allowed arbitrary suffixes for this purpose.
7115 Change name of LJM to JM for packed array pad records
7116 Create separate section on packed array handling, and add a whole new
7117 set of comments to this section describing the situation with packed
7118 modular types and justification requirements depending on endianness.
7120 2004-10-04 Robert Dewar <dewar@gnat.com>
7122 * a-except.adb: Add a comment for last change
7124 * einfo.ads: Minor spelling correction in comment
7126 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
7128 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
7131 * sem_util.ads: Minor comment update
7133 2004-10-04 Ed Schonberg <schonberg@gnat.com>
7135 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
7136 Inline_Always when in Configurable_Run_Time mode.
7138 * sem_prag.adb (Process_Convention): If entity is an inherited
7139 subprogram, apply convention to parent subprogram if in same scope.
7140 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
7141 when in Configurable_Run_Time mode.
7143 2004-10-04 Ed Schonberg <schonberg@gnat.com>
7145 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
7146 class_wide type after component list has been inherited.
7148 2004-10-04 Ed Schonberg <schonberg@gnat.com>
7150 * sem_ch12.adb (Check_Generic_Actuals): New predicate
7151 Denotes_Previous_Actual, to handle properly the case of a private
7152 actual that is also the component type of a subsequent array actual.
7153 The visibility status of the first actual is not affected when the
7154 second is installed.
7155 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
7156 make fully recursive the treatment of formals of packages declared
7158 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
7159 the above on exit from an instantiation.
7160 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
7161 current instantiation which is now complete.
7162 (Analyze_Package_Instantiation): No instantiated body is needed if the
7163 main unit is generic. Efficient, and avoid anomalies when a instance
7164 appears in a package accessed through rtsfind.
7166 2004-10-04 Ed Schonberg <schonberg@gnat.com>
7168 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
7169 do not generate a declaration for a temporary if the call is part of a
7170 library-level instantiation.
7172 2004-10-04 Ed Schonberg <schonberg@gnat.com>
7174 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
7175 searching for a limited component to flag.
7177 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
7178 expansion of Input, to account for the fact that the implicit call
7179 generated by the attribute reference must freeze the user-defined
7180 stream subprogram. This is only relevant to 'Input, because it can
7181 appear in an object declaration, prior to the body of the subprogram.
7183 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
7184 expansion can proceed and further errors uncovered.
7185 (Minor clean up): Fix cases of using | instead of \ for continuation
7188 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7190 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
7192 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
7193 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
7194 Use gcc_assert and gcc_unreachable.
7196 * decl.c (gnat_to_gnu_entity, case object): Check and process a
7197 specified alignment before validating size.
7198 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
7199 stripped-down declaration for the type of the inner field when making
7202 * utils.c (finish_record_type): Do not compute the size in units
7203 incrementally. Instead compute it once for the rep clause case.
7204 Use gcc_assert and gcc_unreachable.
7206 2004-10-04 Vincent Celier <celier@gnat.com>
7208 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
7210 (Is_Valid_Path_Name): Take '/' as a directory separator.
7212 2004-10-04 Vincent Celier <celier@gnat.com>
7214 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
7215 (Extended_Project) only if Extended_Project is defined, to avoid
7217 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
7219 (Parse_Single_Project): Ditto.
7221 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
7222 Add_To_Project_Path for virtual projects.
7224 2004-10-04 Vincent Celier <celier@gnat.com>
7226 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
7227 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
7228 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
7229 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
7230 parameter Options_2.
7232 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
7233 Build_Dynamic_Library with an empty Options_2.
7235 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
7238 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
7239 directory separator, if any.
7240 (Gprmake): Do not allow mains on the command line for library projects.
7241 Do not attempt to link when the project is a library project.
7242 (Library_Opts): New table to store Library_Options.
7243 (Build_Library): If Library_Options is specified, pass these options
7244 when building a shared library.
7246 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
7248 * s-tposen.adb (Service_Entry): The object must be always unlocked at
7249 the end of this procedure now that the unlock operation was inserted
7252 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
7254 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
7255 corresponding to the Preallocated_Stacks flags in System.
7256 (Get_Target_Parameters): Including the processing for
7257 Preallocated_Stacks.
7259 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
7260 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
7261 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
7262 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
7263 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
7264 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
7265 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
7266 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
7267 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7268 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7269 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
7270 used to signal whether the compiler creates the required stacks and
7271 descriptors for the different tasks (when True) or it is done by the
7272 underlying operating system at run time (when False).
7273 It is initially set to False in all targets.
7275 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
7276 if it is supported by the target.
7277 (Make_Task_Create_Call): Pass the stack address if it has been
7278 previously created. Otherwise pass a Null_Address.
7280 * snames.adb: Add _stack.
7282 * snames.ads: Add Name_uStack. Required to allow the expander to
7283 statically allocated task stacks.
7285 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
7286 Stack_Address argument.
7287 Check that its value is equal to Null_Address because this target does
7288 not support the static stack allocation.
7290 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
7292 * usage.adb: Change "pragma inline" to "pragma Inline" in information
7295 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
7297 * exp_dist.adb: Split declaration of asynchronous flag out of
7298 Add_RACW_Read_Attribute.
7299 Minor reformatting for better alignment with PolyORB version.
7300 Store the entity for the asynchronous flag of an RACW, rather than the
7301 expression, in the asynchronous flags table. This will allow this flag
7302 to be used in other subprograms beside Add_RACW_Read_Attribute.
7304 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
7306 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
7307 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
7308 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
7309 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
7310 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
7311 sockets constant MSG_NOSIGNAL (Linux-specific).
7312 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
7313 all Send operations.
7314 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
7315 from trigerring SIGPIPE.
7316 Rename components to avoid clash with Ada 2005 possible reserved
7318 (Check_Selector): When the select system call returns with an error
7319 condition, propagate Socket_Error to the caller.
7321 2004-10-01 Jan Hubicka <jh@suse.cz>
7323 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
7325 2004-09-23 Robert Dewar <dewar@gnat.com>
7329 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
7330 instead do this at freeze time (we won't do it if there is an address
7332 Change "pragma inline" to "pragma Inline" in information and error
7336 * freeze.adb (Check_Address_Clause): Remove previous change, not the
7337 right way of doing things after all.
7338 (Freeze_Entity): For object, set Is_Public for imported entities
7339 unless there is an address clause present.
7341 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
7343 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
7344 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
7345 ensures proper handling of types with rep clauses, which might have
7346 their TYPE_SIZE set already.
7348 2004-09-21 Robert Dewar <dewar@gnat.com>
7350 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
7351 packed array types in both little- and big-endian cases. This change
7352 ensures that we no longer count on the unused bits being initialized
7353 for such types (and in particular ensures that equality testing will
7354 only read the relevant bits).
7355 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
7356 These changes mean that we no longer need to initialize small packed
7358 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
7359 optimization to an LJM field as to its parent field.
7361 * ada-tree.h, trans.c, utils.c, utils2.c:
7362 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
7364 2004-09-20 Jan Hubicka <jh@suse.cz>
7366 * utils.c (gnat_finalize): Remove.
7367 (end_subprog_body): Directly call cgraph_finalize_function;
7368 do not lower the nested functions.
7370 2004-09-20 Robert Dewar <dewar@gnat.com>
7374 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
7375 if an address clause is present, since that means that the Import
7378 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
7380 * 5tsystem.ads: Removed, no longer used.
7382 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
7383 Zack Weinberg <zack@codesourcery.com>
7385 * ada-tree.def: Use tree_code_class enumeration constants
7386 instead of code letters.
7387 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
7388 Update for new tree-class enumeration constants.
7390 2004-09-17 Vincent Celier <celier@gnat.com>
7392 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
7393 capabilities of the general project manager.
7395 2004-09-09 Vincent Celier <celier@gnat.com>
7397 * a-direct.ads: Add pragma Ada_05
7398 (Directory_Entry_Type): Give default value to component Kind to avoid
7399 not initialized warnings.
7401 * a-direct.adb (Current_Directory): Remove directory separator at the
7403 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
7404 an existing directory.
7405 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
7406 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
7407 Convert the result to File_Size.
7409 * prj.ads: (Project_Error): New exception
7411 * prj-attr.adb: Except in procedure Initialize, Fail comes from
7412 Prj.Com, not from Osint.
7413 (Attrs, Package_Attributes): Tables moved to private part of spec
7414 (Add_Attribute, Add_Unknown_Package): Moved to new child package
7416 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
7417 Prj.Project_Error after call to Fail.
7418 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
7419 Fail. Check that package name is not already in use.
7421 * prj-attr.ads: Comment updates to indicate that all subprograms may be
7422 used by tools, not only by the project manager, and to indicate that
7423 exception Prj.Prj_Error may be raised in case of problem.
7424 (Add_Unknown_Package, Add_Attribute): Moved to new child package
7426 (Attrs, Package_Attributes): Table instantiations moved from the body to
7427 the private part to be accessible from Prj.Attr.PM body.
7429 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
7430 from new package Prj.Attr.PM.
7431 (Parse_Attribute_Declaration): Call Add_Attribute from new package
7434 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
7436 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
7437 instead of Elaboration_Checks).
7439 * a-calend.adb: Minor reformatting
7441 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7443 * gigi.h (maybe_pad_type): New declaration.
7444 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
7446 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
7448 * cuintp.c: Convert to use buildN.
7450 * decl.c (maybe_pad_type): No longer static.
7451 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
7453 Convert to use buildN.
7455 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
7456 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
7457 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
7459 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
7460 (gnat_gimplify_expr, case ADDR_EXPR): New case.
7461 Convert to use buildN.
7463 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
7464 TREE_READONLY for const.
7465 Convert to use buildN.
7467 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
7468 (create_var_decl): Refine when TREE_STATIC is set.
7469 Convert to use buildN.
7471 2004-09-09 Gary Dismukes <dismukes@gnat.com>
7473 * gnat_ugn.texi: Delete text relating to checking of ali and object
7476 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
7479 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
7481 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
7482 pragmas recognized by GNAT.
7484 * gnat_rm.texi: Document pragma Detect_Blocking.
7486 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
7487 raise Program_Error if called from a protected operation.
7489 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
7490 the protected action nesting level.
7491 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
7492 protected action nesting level.
7493 (Unlock): When pragma Detect_Blocking is active decrease the protected
7494 action nesting level.
7496 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
7497 Protected_Action_Nesting.
7499 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
7500 Common_ATCB record. It contains the dynamic level of protected action
7501 nesting for each task. It is needed for checking whether potentially
7502 blocking operations are called from protected operations.
7503 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
7504 Detect_Blocking is active or not in the partition.
7506 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
7507 raise Program_Error if called from a protected operation.
7508 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
7509 Program_Error if called from a protected operation.
7510 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
7511 Program_Error if called from a protected operation.
7513 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
7514 raise Program_Error if called from a protected operation.
7516 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
7517 raise Program_Error if called from a protected operation, and increase
7518 the protected action nesting level.
7519 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
7520 Program_Error if called from a protected operation, and increase the
7521 protected action nesting level.
7522 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
7523 protected action nesting level.
7525 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
7526 raise Program_Error if called from a protected operation, and increase
7527 the protected action nesting level.
7528 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
7529 Program_Error if called from a protected operation, and increase the
7530 protected action nesting level.
7531 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
7532 raise Program_Error if called from a protected operation.
7533 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
7534 active, raise Program_Error if called from a protected operation.
7535 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
7536 protected action nesting level.
7538 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
7539 insertion of the statement raising Program_Error. The run time
7540 contains the required machinery for handling that.
7542 * sem_util.ads: Change comment associated to procedure
7543 Check_Potentially_Blocking_Operation.
7544 This procedure does not insert a call for raising the exception because
7545 that is currently done by the run time.
7547 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
7549 * init.c: Add the global variable __gl_detect_blocking that indicates
7550 whether pragma Detect_Blocking is active (1) or not (0). Needed for
7551 making the pragma available at run time.
7552 (__gnat_set_globals): Pass and update the detect_blocking parameter.
7554 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
7555 pragma Detect_Blocking is active.
7557 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
7559 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
7560 DB is found in the ali file. Any unit compiled with pragma
7561 Detect_Blocking active forces its effect in the whole partition.
7563 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
7564 Detect_Blocking is active and delay is called from a protected
7567 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
7568 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
7569 Detect_Blocking is active (0 otherwise).
7570 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
7571 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
7574 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
7576 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
7577 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
7580 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
7581 (Register_Receiving_Stub): Add Subp_Info formal parameter.
7582 Update API in placeholder implemetation of s-parint to reflect changes
7583 in distribution runtime library.
7585 * sem_ch3.adb (Expand_Derived_Record): Rename to
7586 Expand_Record_Extension.
7588 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
7589 primitive operations of potentially distributed object types that have
7590 non-controlling anonymous access formals.
7592 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
7594 New implementation of expansion for remote access-to-subprogram types,
7595 based on the RACW infrastructure.
7596 This version of sem_dist is compatible with PolyORB/DSA as well as
7599 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
7600 Asynchrronous that applies to a remote access-to-subprogram type, mark
7601 the underlying RACW type as asynchronous.
7603 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
7604 __gnat_using_gnu_linker to 1.
7606 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
7607 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
7608 GNAT.Perfect_Hash_Generators, and remove the empty
7609 GNAT.Perfect_Hash package.
7611 * atree.adb: Minor reformatting
7613 * exp_ch3.adb (Expand_Derived_Record): Rename to
7614 Expand_Record_Extension.
7615 (Build_Record_Init_Proc.Build_Assignment): The default expression in
7616 a component declaration must remain attached at that point in the
7617 tree so New_Copy_Tree copies it if the enclosing record type is derived.
7618 It is therefore necessary to take a copy of the expression when building
7619 the corresponding assignment statement in the init proc.
7620 As a side effect, in the case of a derived record type, we now see the
7621 original expression, without any rewriting that could have occurred
7622 during expansion of the ancestor type's init proc, and we do not need
7623 to go back to Original_Node.
7625 * exp_ch3.ads (Expand_Derived_Record): Rename to
7626 Expand_Record_Extension.
7628 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
7629 Returns the RACW type used to implement a remote access-to-subprogram
7631 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
7632 New subprograms. Used to create a proxy tagged object for a remote
7633 subprogram. The proxy object is used as the designated object
7634 for RAS values on the same partition (unless All_Calls_Remote applies).
7635 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
7636 System.Partition_Interface.Get_Unique_Remote_Pointer.
7637 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
7638 Renamed from Add_RAS_*_Attribute.
7639 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
7641 New implementation of expansion for remote access-to-subprogram types,
7642 based on the RACW infrastructure.
7644 * exp_dist.ads (Copy_Specification): Update comment to note that this
7645 function can copy the specification from either a subprogram
7646 specification or an access-to-subprogram type definition.
7648 2004-09-09 Ed Schonberg <schonberg@gnat.com>
7650 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
7651 in an instance, between an explicit subprogram an one inherited from a
7652 type derived from an actual.
7654 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
7655 add a polling call if the subprogram is to be inlined by the back-end,
7656 to avoid repeated calls with multiple inlinings.
7658 * checks.adb (Apply_Alignment_Check): If the expression in the address
7659 clause is a call whose name is not a static entity (e.g. a dispatching
7660 call), treat as dynamic.
7662 2004-09-09 Robert Dewar <dewar@gnat.com>
7664 * g-trasym.ads: Minor reformatting
7666 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
7667 packed arrays, since unused bits are expected to be zero for a
7670 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
7672 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
7675 2004-09-09 Pascal Obry <obry@gnat.com>
7677 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
7678 enable map file generation. Add the right option to generate the map
7679 file if Map_File is set to True.
7681 * gnatdll.adb (Gen_Map_File): New variable.
7682 (Syntax): Add info about new -m (Map_File) option.
7683 (Parse_Command_Line): Add support for -m option.
7684 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
7687 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
7689 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
7690 new gnatdist implementation.
7691 Define a subpackage isolating the output routines specific to this
7694 2004-09-09 Joel Brobecker <brobecker@gnat.com>
7696 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
7698 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
7700 2004-09-09 Cyrille Comar <comar@act-europe.fr>
7702 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
7705 * opt.ads: Add Ada_Version_Runtime constant used to decide which
7706 version of the language is used to compile the run time.
7708 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
7710 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
7711 of variable length temporaries for function return now that the
7712 back-end and gigi support it.
7714 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7716 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
7718 * trans.c (struct stmt_group): Delete field GLOBAL.
7719 (gnat_init_stmt_group): Do not initialize it.
7720 (call_to_gnu): Use save_expr, not protect_multiple_eval.
7721 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
7722 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
7723 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
7724 (start_stmt_group): Likewise.
7725 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
7727 * utils2.c (ggc.h): Include.
7728 (build_call_raise): Call build_int_cst, not build_int_2.
7730 * utils.c (gnat_init_decl_processing): Fix arg to
7731 build_common_tree_nodes.
7732 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
7733 (gnat_define_builtin): Set built_in_decls.
7734 (init_gigi_decls): Call build_int_cst, not build_int_2.
7736 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
7737 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
7738 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
7739 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
7740 SET_TYPE_MODULE): Use them.
7741 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
7742 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
7743 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
7744 SET_TYPE_ADA_SIZE): Likewise.
7745 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
7746 (DECL_CONST_CORRESPONDING_VAR,
7747 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
7748 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
7749 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
7750 (TYPE_RM_SIZE_NUM): New macro.
7751 (TYPE_RM_SIZE): Modified to use above.
7753 * cuintp.c: (build_cst_from_int): New function.
7754 (UI_To_gnu): Use it.
7756 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
7757 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
7758 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
7759 MIN_EXPR for the size, copy it into new.
7761 2004-09-01 Robert Dewar <dewar@gnat.com>
7763 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
7764 packed indexed component where array is an IN OUT formal. This
7765 generated garbage code previously.
7767 * gnat_ugn.texi: Document -fverbose-asm
7769 * gnat-style.texi: Minor updates (note that boolean constants and
7770 variables are joined with AND/OR rather than short circuit forms).
7772 2004-09-01 Ed Schonberg <schonberg@gnat.com>
7774 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
7775 it is an upward conversion of an untagged type with no representation
7778 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
7780 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
7781 System.Partition_Interface.
7783 * checks.adb (Apply_Access_Checks): Do not generate checks when
7784 expander is not active (but check for unset reference to prefix of
7787 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
7788 pragma Debug as an if statement with a constant condition, for
7789 consistent treatment of entity references contained within the
7790 enclosed procedure call.
7792 2004-09-01 Vincent Celier <celier@gnat.com>
7794 * bindgen.adb: (Set_EA_Last): New procedure
7795 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
7797 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
7798 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
7799 linked without errors.
7800 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
7802 (Gen_Exception_Table_C): Correct same bugs
7804 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
7806 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
7807 on Windows, make sure that the drive letter is in upper case.
7809 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
7810 Windows, when the drive letter is added and Case_Sensitive is True, the
7811 drive letter is forced to upper case.
7813 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
7814 to Options_2 for the call to MLib.Utl.Gcc.
7816 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
7817 directory separator when defining BASE_DIR.
7819 2004-09-01 Pascal Obry <obry@gnat.com>
7821 * gprcmd.adb (Extend): Do not output trailing directory separator. This
7822 is not needed and it confuses Windows GNU/make which does not report
7823 directory terminated by a slash as a directory.
7824 (gprcmd): Idem for "pwd" internal command.
7826 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
7827 target names rewrite to fix regressions with recent version of
7828 GNU/make. Starting with GNU/make 3.80 the pipe character was not
7829 handled properly anymore.
7831 2004-09-01 Andreas Schwab <schwab@suse.de>
7833 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
7834 * raise.c [!IN_RTS]: Undef abort.
7836 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
7838 * utils2.c (build_allocator): Use ssize_int.
7840 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
7842 2004-08-27 Andreas Schwab <schwab@suse.de>
7844 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
7846 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
7847 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7849 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
7851 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
7853 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
7854 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
7855 * utils.c (init_gigi_decls): Likewise.
7856 * utils2.c (build_call_raise, build_allocator): Likewise.
7858 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
7860 * utils.c (gnat_init_decl_processing): Adjust
7861 build_common_tree_nodes call.
7863 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
7865 * utils2.c (build_allocator): Use build_int_cst for negative
7868 2004-08-18 Richard Henderson <rth@redhat.com>
7870 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
7872 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
7874 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
7876 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
7877 (gnat_to_gnu): Likewise.
7879 2004-08-16 Pascal Obry <obry@gnat.com>
7881 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
7882 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
7883 option and not mdll anymore. Update comment.
7885 2004-08-16 Pascal Obry <obry@gnat.com>
7887 * bld.adb (Put_Include_Project): Properly handle directory separators
7890 2004-08-16 Ed Schonberg <schonberg@gnat.com>
7892 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
7893 decreasing the number of allocated junk nodes while searching for the
7894 appropriate subprogram.
7896 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
7898 * cuintp.c (UI_To_gnu): Use build_int_cst..
7899 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
7900 * utils.c (init_gigi_decls): Likewise.
7901 * utils2.c (build_call_raise): Likewise.
7903 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
7905 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
7906 for a global aliased object with a variable size and an unconstrained
7907 nominal subtype, pretend there is no initializer if the one we have is
7908 incomplete, and avoid referencing an inexistant component in there. The
7909 part we have will be rebuilt anyway and the reference may confuse
7912 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
7914 * einfo.ads: Minor reformatting
7916 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
7917 restrictions in the ALI if we only want to warn about violations.
7919 2004-08-13 Vincent Celier <celier@gnat.com>
7921 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
7922 when creating a new Unit_Record in table Units.
7924 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
7925 that are violated, if any.
7927 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
7928 add directory separator if path already ends with a directory separator.
7930 2004-08-13 Ed Schonberg <schonberg@gnat.com>
7932 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
7933 unit, this is an attempt to inline a construct that is not available in
7934 the current restricted mode, so abort rather than trying to continue.
7936 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
7937 discriminants that rename those of the parent, recover names of
7938 original discriminants for the constraint on the full view of the
7940 (Complete_Private_Subtype): Do not create a subtype declaration if the
7941 subtype is an itype.
7943 * gnat_rm.texi: Added section on implementation of discriminated
7944 records with default values for discriminants.
7946 2004-08-13 Ed Schonberg <schonberg@gnat.com>
7949 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
7950 the second operand is overloaded.
7952 2004-08-10 Richard Henderson <rth@redhat.com>
7954 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
7955 add __builtin_alloca.
7957 2004-08-10 Richard Henderson <rth@redhat.com>
7959 * config-lang.in (boot_language): Yes.
7961 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
7963 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
7964 from complaining on potential uninitialized reference.
7965 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
7966 new specification and test explicitly for non-zero return value.
7968 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
7969 returning C.int, to avoid using a derived boolean type.
7971 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
7972 Duplicate_Subexpr_No_Checks in preference to direct use of
7973 Remove_Side_Effects and New_Copy_Tree.
7974 Clear Comes_From_Source on prefix of 'Size attribute reference.
7976 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
7977 g-socthi-vxworks.adb: Change calls to
7978 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
7979 and test explicitly for non-zero return value.
7981 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
7982 (Is_Socket_In_Set): Declare imported function as returning C.int, to
7983 avoid using a derived boolean type.
7985 2004-08-09 Albert Lee <lee@gnat.com>
7987 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
7989 2004-08-09 Pascal Obry <obry@gnat.com>
7991 * gnat_ugn.texi: Document new way to build DLLs on Windows using
7992 GCC's -shared option.
7994 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
7995 Options_2 parameter (options put after object files).
7997 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
7999 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
8000 ignore overflows on low and high bounds of an index to also account for
8001 differences in signedness between sizetype and gnu_index_subtype.
8002 These are as legitimate as the ones caused by a lower TYPE_PRECISION
8005 2004-08-09 Robert Dewar <dewar@gnat.com>
8007 * s-solita.ads, s-solita.adb: Minor reformatting
8009 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
8010 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
8012 Add note that No_Implicit_Conditionals does not suppress
8013 run time constraint checks.
8015 * vms_conv.ads: Minor reformatting
8017 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
8018 and necessary for following change).
8019 (Mark): Return new format Mark_Id containing sec stack address
8020 (Release): Use sec stack address from Mark_Id avoiding Self call
8022 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
8023 pointer (cleanup and necessary for following change).
8024 Define Mark_Id as record containing address of secondary stack, that way
8025 Release does not need to find the stack again, decreasing the number of
8026 calls to Self and improving efficiency.
8028 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
8030 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
8031 case variable into the individual case branches when possible.
8033 * sem_ch11.adb: Minor reformatting
8035 * prj.ads: Correct spelling of suffixs
8037 * prj-nmsc.adb: Minor reformatting
8038 Correct spelling suffixs throughout (also in identifiers)
8040 * freeze.adb: Minor spelling correction
8042 * exp_ch2.adb: Cleanups to handling of Current_Value
8043 (no functional effect).
8045 * bld.adb: Correct spelling of suffixs
8047 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
8049 2004-08-09 Ed Schonberg <schonberg@gnat.com>
8053 * sem_ch7.adb (Install_Private_Declarations): In the body of the
8054 package or of a child, private entities are both immediately_visible
8057 2004-08-09 Ed Schonberg <schonberg@gnat.com>
8059 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
8060 there are no range checks on the value of the literal.
8062 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
8063 wrapped is the triggering alternative of an asynchronous select, action
8064 statements mustbe inserted before the select itself.
8066 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
8067 case where the prefix is a protected function call.
8068 (Resolve_Attribute, case 'Access): The attribute reference on a
8069 subprogram is legal in a generic body if the subprogram is declared
8072 2004-08-09 Vincent Celier <celier@gnat.com>
8074 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
8075 languages, otherwise building the library may fail with unresolved
8077 (Compile_Sources): Do not build libraries if -c switch is used
8079 * gnatlink.adb (Process_Args): New switches -M and -Mmap
8080 (Write_Usage): If map file creation is supported, output new switches
8082 (Gnatlink): When -M is specified, add the necessary switch(es) to the
8083 gcc call, when supported.
8085 * Makefile.in: Added indepsw.o to the object list for gnatlink
8086 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
8088 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
8089 indepsw.adb, indepsw.ads: New files.
8091 2004-08-09 Bernard Banner <banner@gnat.com>
8093 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
8095 * Makefile.in: add section for vxworks x86
8097 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
8099 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
8100 per-object constrained components where the discriminant is of an
8102 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
8103 the parent initialization procedure for derived Unchecked_Unions.
8104 Instead, derived Unchecked_Unions build their own initialization
8106 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
8107 Check the body of the subprogram for details.
8108 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
8109 functions for derived Unchecked_Union types by introducing a condition.
8110 Allow the creation of TSS equality functions for Unchecked_Unions.
8111 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
8112 Add formal parameter Discr to function signature. Discr is used to
8113 control the generated case statement for Unchecked_Union types.
8114 (Make_Eq_If): Rename formal parameter Node to E in function signature.
8116 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
8118 Check the body of the subprogram for details.
8119 (Expand_Composite_Equality): Augment composite type equality to include
8120 correct handling of Unchecked_Union components.
8121 (Expand_N_In): Add condition to detect illegal membership tests when the
8122 subtype mark is a constrained Unchecked_Union and the expression lacks
8123 inferable discriminants, and build a Raise_Program_Error node.
8124 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
8125 to detect types that contain components of unconstrained Unchecked_Union
8126 subtype. Add condition to detect equality between types that have an
8127 unconstrained Unchecked_Union component, and build a Raise_Program_Error
8128 node. Add condition to detect equality between Unchecked_Union types
8129 that lack inferable discriminants, and build a Raise_Program_Error node.
8130 Otherwise build a TSS equality function call.
8131 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
8132 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
8133 with the operand lacking inferable discriminants, and build a Raise_
8135 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
8137 (Has_Inferable_Discriminants): Implement new predicate for objects and
8138 expressions of Unchecked_Union type. Check the body of subprogram for
8140 (Has_Unconstrained_UU_Components): Add function
8141 Component_Is_Unconstrained_UU. It is used to detect whether a single
8142 component is of an unconstrained Unchecked_Union subtype. Add function
8143 Variant_Is_Unconstrained_UU. It is used to detect whether a single
8144 component inside a variant is of an unconstrained Unchecked_Union type.
8146 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
8147 inferred discriminant values. Add condition to generate a case
8148 statement with an inferred discriminant as the switch.
8149 (Make_Component_List_Assign): Introduce a Boolean flag that determines
8150 the behaviour of the subprogram in the presence of an Unchecked_Union.
8151 Add condition to trigger the usage of the inferred discriminant value
8152 as the generated case statement switch.
8153 (Make_Field_Assign): Introduce a Boolean flag that determines the
8154 behaviour of the subprogram in the presence of an Unchecked_Union. Add
8155 condition to trigger the usage of the inferred discriminant value as
8156 the right-hand side of the generated assignment.
8158 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
8159 parameter generation when dealing with Unchecked_Unions.
8161 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
8162 checks for Unchecked_Unions.
8164 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
8166 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
8167 Raise_Program_Error nodes for the execution of Read and Write
8168 attributes of Unchecked_Union types and the execution of Input and
8169 Output attributes of Unchecked_Union types that lack default
8170 discriminant values.
8172 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
8173 Unchecked_Union. Add procedure Check_Component. It is used to inspect
8174 per-object constrained components of Unchecked_Unions for being
8175 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
8176 check individual components withing a variant.
8178 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
8179 comparison of Unchecked_Unions.
8180 (Resolve_Equality_OP): Remove guard that prevents equality between
8183 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
8184 of component subtypes for Unchecked_Union components.
8185 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
8186 since it is the actual subtype.
8188 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
8189 pass of Unchecked_Union subtypes as generic actuals to formal types
8190 that lack known_discriminant_parts or that are derived Unchecked_Union
8191 types, and do nothing. In any other case, produce an error message.
8193 * sem_ch3.adb (Analyze_Component_Declaration): Add function
8194 Contains_POC. It determines whether a constraint uses the discriminant
8195 of an enclosing record type.
8196 Add condition to detect per-object constrained component and set the
8198 (Derived_Type_Declaration): Remove guard that prevents derivation from
8199 Unchecked_Union types.
8200 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
8203 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
8204 references to Unchecked_Union discriminants.
8206 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
8207 formal generation when dealing with Unchecked_Unions.
8208 (Set_Actual_Subtypes): Add condition to prevent generation of actual
8209 subtypes for Unchecked_Unions.
8211 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
8212 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
8213 completions of discriminated partial views by Unchecked_Unions and
8214 produce an error message.
8216 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8218 * trans.c (struct stmt_group): New field, GLOBAL.
8219 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
8220 (struct elab_info): New struct.
8221 (elab_info_list, gnu_elab_proc_stack): New variables.
8222 (Compilation_Unit_to_gnu): New procedure.
8223 (gigi): Call it and also handle elaboration procs we've saved.
8224 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
8225 global field from parent.
8226 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
8227 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
8228 (start_stmt_group): Initialize global field from parent.
8229 (add_decl_expr): Set to global for current statement group.
8230 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
8233 * utils.c (global_bindings_p): True when no current_function_decl; no
8234 longer check current_binding_level.
8236 2004-08-09 Ben Brosgol <brosgol@gnat.com>
8238 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
8241 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
8243 2004-08-06 Andreas Schwab <schwab@suse.de>
8245 * utils.c (gnat_define_builtin): Remove second parameter of
8247 (begin_subprog_body): Likewise.
8249 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
8251 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
8252 optimization, not supported by the tree-ssa back-end.
8254 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
8256 * s-mastop-irix.adb: Update comments.
8258 * a-except.adb (Exception_Information): Raise Constraint_Error if
8259 exception Id is Null_Id.
8260 This is required behavior, which is more reliably and clearly checked
8261 at the top level interface level.
8263 2004-07-26 Javier Miranda <miranda@gnat.com>
8265 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
8266 call if a component has no default_expression and the box is used.
8268 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
8269 default_expression and you use box, it behaves as if you had declared a
8271 (Resolve_Record_Aggregate): If a component has no default_expression and
8272 you use box, it behaves as if you had declared a stand-alone object.
8274 * sem_ch10.adb (Install_Siblings): Do not make visible the private
8275 entities of private-with siblings.
8277 2004-07-26 Ed Schonberg <schonberg@gnat.com>
8279 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
8280 for a component of an itype, set the parent pointer for analysis,
8281 there is no list in which to insert it.
8283 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
8284 bona-fide renamings, not for inherited operations.
8286 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
8287 actual for a formal that is an access parameter, create local
8288 finalization list even if the expression is not an aggregate.
8290 2004-07-26 Ed Schonberg <schonberg@gnat.com>
8293 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
8294 Diagnose properly illegal subprogram renamings that are library units.
8296 2004-07-26 Ed Schonberg <schonberg@gnat.com>
8299 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
8300 conversion rewritten as an unchecked conversion, check that original
8301 expression is a variable.
8303 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
8304 unchecked_conversion, create new node rather than rewriting in place,
8305 to preserve original construct.
8307 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8309 * gigi.h (gnat_expand_body): Deleted.
8311 * Make-lang.in: (trans.o): Depends on function.h.
8313 * misc.c: (gnat_expand_body): Moved to here.
8315 * trans.c (gnat_expand_body_1): Deleted.
8316 (gnat_expand_body): Moved from here.
8317 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
8318 (add_stmt): Check for marked visited with global_bindings_p.
8319 (gnat_gimplify_expr, case COMPONENT_REF): New case.
8320 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
8322 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
8323 VIEW_CONVERT_EXPR if not operation type.
8325 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
8328 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
8329 changes: reformatting of negation operators, removing unneeded
8330 inequality comparison with zero, converting equality comparisons with
8331 zero to negations, changing int/0/1 to bool/false/true, replace calls
8332 to gigi_abort with abort, and various other similar changes.
8334 2004-07-26 Vincent Celier <celier@gnat.com>
8336 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
8339 * make.adb (Gnatmake): Fail when a library is not present and there is
8340 no object directory.
8342 * mlib-prj.adb (Check_Library): No need to check if the library needs
8343 to be rebuilt if there is no object directory, hence no object files
8344 to build the library.
8346 * opt.ads (Setup_Projects): New Boolean flag.
8348 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
8350 Create directory when Kind /= "" and in "gnat setup". Report error if
8351 directory cannot be created.
8352 (Ada_Check): Create library interface copy dir if it does not exist
8353 and we are in "gnat setup".
8354 (Find_Sources): No error if in "gnat setup" and no Ada sources were
8356 (Language_Independent_Check): Create object directory, exec directory
8357 and/or library directory if they do not exist and we are in
8360 * vms_conv.ads: (Command_Type): New command Setup.
8362 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
8364 * vms_data.ads: Add qualifiers/switches for new built-in command
8367 2004-07-25 Richard Henderson <rth@redhat.com>
8369 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
8370 DECL_IGNORED_P on RESULT_DECL.
8372 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
8374 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
8375 allocation and potentially overflowing update with
8376 Tailored_Exception_Information. Use the sec-stack free procedural
8377 interface to output Exception_Information instead.
8379 * a-except.adb (To_Stderr): New subprogram for character, and string
8380 version moved from a-exextr to be visible from other separate units.
8381 (Tailored_Exception_Information): Remove the procedural version,
8382 previously used by the default Last_Chance_Handler and not any more.
8383 Adjust various comments.
8385 * a-exexda.adb: Generalize the exception information procedural
8386 interface, to minimize the use of secondary stack and the need for
8387 local buffers when the info is to be output to stderr:
8388 (Address_Image): Removed.
8389 (Append_Info_Character): New subprogram, checking for overflows and
8390 outputing to stderr if buffer to fill is of length 0.
8391 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
8392 (Append_Info_Address, Append_Info_Exception_Name,
8393 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
8394 Append_Info_Basic_Exception_Traceback,
8395 Append_Info_Exception_Information): New subprograms.
8396 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
8397 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
8398 Exception_Info_Maxlength, Exception_Name_Length,
8399 Exception_Message_Length): New subprograms.
8400 (Exception_Information): Use Append_Info_Exception_Information.
8401 (Tailored_Exception_Information): Use
8402 Append_Info_Basic_Exception_Information.
8403 Export services for the default Last_Chance_Handler.
8405 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
8406 other separate units.
8408 2004-07-20 Vincent Celier <celier@gnat.com>
8410 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
8412 2004-07-20 Ed Schonberg <schonberg@gnat.com>
8414 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
8415 emit itype references for the designated types of component types that
8416 are declared outside of the full record declaration, and that may
8417 denote a partial view of that record type.
8419 2004-07-20 Ed Schonberg <schonberg@gnat.com>
8422 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
8423 which is the designated type in an access component declaration, to the
8424 list of incomplete dependents of the parent type, to avoid elaboration
8425 issues with out-of-scope subtypes.
8426 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
8427 full view of the parent.
8429 2004-07-20 Ed Schonberg <schonberg@gnat.com>
8432 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
8433 entities that are hidden, such as references to generic actuals
8434 outside an instance.
8436 2004-07-20 Javier Miranda <miranda@gnat.com>
8438 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
8439 support to the new notation.
8440 (Analyze_Selected_Component): Add call to Try_Object_Operation.
8442 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
8444 * s-taprob.adb: Adding the elaboration code required for initializing
8445 the tasking soft links that are common to the full and the restricted
8448 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
8449 restricted run time has been moved to the package
8450 System.Soft_Links.Tasking.
8452 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
8453 restricted run time has been moved to the package
8454 System.Soft_Links.Tasking.
8456 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
8458 * s-solita.ads, s-solita.adb: New files.
8460 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8462 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
8463 Case_Statement_to_gnu): Split off from gnat_to_gnu.
8464 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
8465 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
8466 Exception_Handler_to_gnu_zcx): Likewise.
8468 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
8470 * gigi.h (builtin_function): Declare.
8472 2004-07-15 Robert Dewar <dewar@gnat.com>
8474 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
8477 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
8478 access values as an example of a warning.
8480 * gnat_rm.texi: Document new attribute Has_Access_Values
8482 * gnat-style.texi: Document that box comments belong on nested
8485 * sem_util.ads (Has_Access_Values): Improved documentation
8487 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
8489 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
8490 (Process_Interface_Name): Call to this new procedure
8491 (Set_Extended_Import_Export_External_Name): Call to this new procedure
8493 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
8495 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
8497 * einfo.ads: Minor comment typo fixed
8499 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
8501 * snames.adb: Add _atcb.
8503 * snames.ads: Add Name_uATCB.
8505 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
8506 (in the expanded code) when using the restricted run time.
8508 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
8509 a in parameter in order to allow ATCBs to be preallocated (in the
8512 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
8513 order to allow ATCBs to be preallocated. In case of error, the ATCB is
8514 deallocated in System.Tasking.Stages.
8516 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
8517 order to allow ATCBs to be preallocated.
8519 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
8520 here. It was previously done in Initialize_ATCB.
8522 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
8524 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
8525 Restricted run time.
8527 * exp_ch3.adb: When using the Restricted run time, pass the
8528 preallocated Ada_Task_Control_Block when creating a task.
8530 2004-07-15 Ed Schonberg <schonberg@gnat.com>
8532 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
8533 function call that is itself an actual in an enclosing call, diagnose
8534 problem here rather than assuming that resolution will catch it.
8536 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
8537 the local copy of a generic unit for a formal package, and the generic
8538 is a child unit, install private part of ancestors before compiling
8539 private part of spec.
8541 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
8542 use scope entities rather than tree structures, to handle properly
8543 parent units that are instances rewritten as bodies for inlining
8546 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
8547 Remove_Parents): Handle properly a parent unit that is an
8548 instantiation, when the unit has been rewritten as a body for inlining
8551 * par.adb (Goto_List): Global variable to collect goto statements in a
8552 given unit, for use in detecting natural loops.
8554 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
8555 use in detecting natural loops.
8557 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
8558 backwards goto's, and rewrite as a infinite loop, to improve locality
8561 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
8562 subcomponent that includes an indexed reference, to prevent the
8563 generation of copies that would miscompile the desired assignment
8565 (Build_Task_Image_Decls): Add a numeric suffix to
8566 generated name for string variable, to avoid spurious conflicts with
8567 the name of the type of a single protected object.
8569 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
8570 loop with an explicit exit statement, to avoid generating an
8571 out-of-range value with 'Succ leading to spurious constraint_errors
8572 when compiling with -gnatVo.
8574 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
8576 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
8577 might not be analyzed yet, even if its Etype is already set (case of an
8578 unchecked conversion built using Unchecked_Convert_To, for example).
8579 If the prefix has already been analyzed, this will be a nop anyway.
8581 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
8582 controller type, or an assignment of a record type with controlled
8583 components, copy only user data, and leave the finalization chain
8586 2004-07-15 Vincent Celier <celier@gnat.com>
8588 * make.adb (Collect_Arguments): Improve error message when attempting
8589 to compile a source not part of any project, when -x is not used.
8591 * prj.ads: (Defined_Variable_Kind): New subtype
8593 * prj-attr.adb (Register_New_Package): Two new procedures to register
8594 a package with or without its attributes.
8595 (Register_New_Attribute): Mew procedure to register a new attribute in a
8597 New attribute oriented subprograms: Attribute_Node_Id_Of,
8598 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
8599 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
8601 New package oriented subprograms: Package_Node_Id_Of,
8602 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
8604 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
8606 (Package_Node_Id): Now a private, self initialized type
8607 (Register_New_Package): New procedure to register a package with its
8609 New attribute oriented subprograms: Attribute_Node_Id_Of,
8610 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
8611 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
8613 New package oriented subprograms: Package_Node_Id_Of,
8614 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
8616 * prj-dect.adb (Parse_Attribute_Declaration,
8617 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
8619 * prj-makr.adb (Make): Parse existing project file before creating
8620 other files. Fail if there was an error during parsing.
8622 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
8623 new spec of Prj.Attr.
8625 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
8626 to new spec of Prj.Attr.
8628 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8630 * utils2.c: Fix typo in comment.
8632 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8634 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
8635 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
8637 2004-07-14 Andreas Schwab <schwab@suse.de>
8639 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
8641 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8643 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
8645 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
8648 * misc.c (gnat_types_compatible_p): New function.
8649 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
8650 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
8652 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
8653 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
8654 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
8655 (mark_visited): Don't mark dummy type.
8656 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
8657 parameter, we must remove any LJM building from GNU_NAME.
8658 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
8659 (pos_to_constructor): Use int_const_binop.
8660 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
8663 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
8664 (gnat_pushlevel): Set TREE_USE on BLOCK node.
8665 (gnat_install_builtins): Add __builtin_memset.
8667 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
8669 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
8670 for a renaming, stabilize the initialization expression if we are at a
8671 local level. At the local level, uses of the renaming may be performed
8672 by a direct dereference of the initializing expression, and we don't
8673 want possible variables there to be evaluated for every use.
8675 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
8676 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
8677 them on the way. Account for the fact that we may introduce side
8678 effects in the process.
8680 2004-07-13 Richard Henderson <rth@redhat.com>
8682 * misc.c (default_pass_by_ref): Use pass_by_reference.
8684 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
8686 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
8687 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
8689 2004-07-08 Richard Henderson <rth@redhat.com>
8691 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
8694 2004-07-06 Vincent Celier <celier@gnat.com>
8696 * vms_conv.ads: Minor reformatting.
8697 Alphabetical order for enumerated values of type Command_Type, to have
8698 the command in alphabetical order for the usage.
8700 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
8701 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
8703 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
8705 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
8706 (Add_Archive_Path): Only add the global archive if there is one.
8707 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
8708 or not any object file to put in the global archive, and don't build
8709 a global archive if there is none.
8710 (X_Switches): New table
8711 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
8712 in the X_Switches table, if any.
8713 (Initialize): Make sure the X_Switches table is empty
8714 (Scan_Arg): Record -X switches in table X_Switches
8716 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
8718 * make.adb: Minor comment fix
8720 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
8721 invoked with directory information, add the directory in front of the
8724 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
8725 invoked with directory information, add the directory in front of the
8728 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
8729 when Keep_Temporary_Files is False.
8730 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
8731 directory information, add the directory in front of the path.
8732 When not on VMS, handle new switch -dn before the command to set
8733 Keep_Temporary_Files to True.
8734 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
8737 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
8738 invoked with directory information, add the directory in front of the
8741 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
8743 * snames.ads, snames.adb (Name_Stub): New name for the distributed
8746 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
8747 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
8749 * g-socket.adb (To_Timeval): Fix incorrect conversion of
8750 Selector_Duration to Timeval for the case of 0.0.
8752 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
8753 documentation from Evolve_And_Then.
8755 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
8757 * s-taprop-tru64.adb, s-taprop-os2.adb,
8758 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
8760 2004-07-06 Robert Dewar <dewar@gnat.com>
8762 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
8763 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
8764 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
8765 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
8766 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
8767 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
8768 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
8769 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
8770 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
8771 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
8772 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
8773 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
8774 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
8775 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
8776 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
8777 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
8778 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
8779 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
8780 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
8781 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
8782 vms_data.ads: Minor reformatting,
8783 Fix bad box comment format.
8785 * gnat_rm.texi: Fix minor grammatical error
8787 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
8789 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
8790 more cases of discriminated records to be recognized as not needing a
8792 (Has_Access_Values): New function.
8794 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
8796 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
8797 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
8798 with LRM terminology).
8799 Change terminology in comments primitive type => elementary type.
8801 2004-07-06 Ed Schonberg <schonberg@gnat.com>
8804 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
8805 parameters do not impose any requirements on the presence of a body.
8807 2004-07-06 Ed Schonberg <schonberg@gnat.com>
8810 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
8811 compilation unit and is in an open scope at the point of instantiation,
8812 assume that a body may be present later.
8814 2004-07-06 Ed Schonberg <schonberg@gnat.com>
8816 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
8817 Improve error message when specified size is not supported.
8819 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
8820 is never a primitive operation.
8822 2004-07-05 Andreas Schwab <schwab@suse.de>
8824 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
8825 RECORD_OR_UNION_CHECK.
8826 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
8828 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
8830 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
8831 dependency on xgnatugn, instead build it via a submake.
8832 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
8834 2004-07-04 Richard Henderson <rth@redhat.com>
8836 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
8838 2004-07-01 Richard Henderson <rth@redhat.com>
8840 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
8841 * utils.c (max_size): Likewise.
8843 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8845 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
8846 and rest_of_type_compilation; add arg to create_*_decl.
8847 (annotate_decl_with_node): Deleted.
8848 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
8849 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
8850 (get_current_block_context, gnat_pushdecl): New declarations.
8851 (gnat_init_stmt_group): Likewise.
8852 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
8853 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
8854 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
8855 (gnat_init): Call gnat_init_stmt_group.
8856 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
8857 (gnu_pending_elaboration_list): Deleted.
8858 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
8859 (gigi): Rearrange initialization calls and move some to last above.
8860 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
8861 Delete calls to add_decl_expr; add arg to create_*_decl.
8862 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
8863 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
8864 begin_subprog_body and call it.
8865 Don't push and pop ggc context.
8866 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
8867 (add_stmt): Remove handling of DECL_EXPR from here.
8868 If not in function, mark visited.
8869 (add_decl_expr): Put global at top level.
8870 Check for cases of DECL_INITIAL we have to handle here.
8871 (process_type): Add extra arg to create_type_decl.
8872 (build_unit_elab): Rework to just gimplify.
8873 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
8874 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
8875 (get_pending_elaborations, pending_elaborations_p): Likewise.
8876 (push_pending_elaborations, pop_pending_elaborations): Likewise.
8877 (get_elaboration_location, insert_elaboration_list): Likewise.
8878 (gnat_binding_level): Renamed from ada_binding_level.
8879 (init_gnat_to_gnu): Don't clear pending_elaborations.
8880 (global_bindings_p): Treat as global if no current_binding_level.
8881 (set_current_block_context): New function.
8882 (gnat_pushdecl): Renamed from pushdecl; major rework.
8883 All callers changed.
8884 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
8885 (finish_record_type): Call call pushdecl for stub decl.
8886 (function_nesting_depth): Deleted.
8887 (begin_subprog_body): Delete obsolete code.
8888 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
8890 2004-06-28 Robert Dewar <dewar@gnat.com>
8892 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
8893 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
8894 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
8895 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8896 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
8898 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
8899 deal with problem of inefficient slices on machines with strict
8900 alignment, when the slice is a component of a composite.
8902 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
8903 machines, we need the check there as well.
8905 2004-06-28 Ed Schonberg <schonberg@gnat.com>
8907 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
8908 determine safe copying direction for overlapping slice assignments
8909 when component is controlled.
8911 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
8912 formal derived type in the actual for a formal package are visible in
8913 the enclosing instance.
8915 2004-06-28 Ed Schonberg <schonberg@gnat.com>
8918 * sem_util.adb (Trace_Components): Diagnose properly an illegal
8919 circularity involving a private type whose completion includes a
8920 self-referential component.
8921 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
8922 renaming or an instantiation from an implicit derived operation.
8924 2004-06-28 Pascal Obry <obry@gnat.com>
8926 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
8928 (Library_File_Name_For): Idem.
8930 2004-06-28 Matthew Gingell <gingell@gnat.com>
8932 * g-traceb.ads: Add explanatory note on the format of addresses
8933 expected by addr2line.
8935 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
8937 * Makefile.in: Force debugging information on s-tasdeb.adb,
8938 a-except.adb and s-assert.adb needed by the debugger.
8940 2004-06-28 Vincent Celier <celier@gnat.com>
8942 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
8946 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
8948 * prj.adb: Minor reformatting
8949 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
8951 * prj.ads: Comment updates
8953 (Project_Data): Change Flag1 to Need_To_Build_Lib.
8954 Remove Flag2: not used.
8956 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
8959 * gnat_ugn.texi: Put a "null;" declaration in one project file example
8961 * gnat_rm.texi: Document Empty declarations "null;".
8963 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
8964 front of the linker options.
8965 (Link_Foreign): Put the global archives and the libraries in front of
8968 2004-06-28 Javier Miranda <miranda@gnat.com>
8970 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
8971 (RTU_Loaded): Code cleanup
8972 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
8973 withed predefined units.
8975 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
8976 explicitly withed predefined units.
8979 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
8980 explicitly withed predefined units.
8982 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8984 * ada-tree.def (DECL_STMT): Deleted.
8985 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
8986 (DECL_STMT_VAR): Deleted.
8987 * decl.c: add_decl_stmt now add_decl_expr.
8989 * trans.c: Likewise.
8990 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
8991 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
8992 (add_stmt): Only handle padded type here.
8993 (add_stmt_with_node): Allow gnat_node to not be present.
8994 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
8995 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
8996 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
8997 make a SAVE_EXPR for the entire fat pointer.
8998 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
8999 (create_index_type): Make a DECL_EXPR.
9000 (end_subprog_body): Don't call allocate_struct_function here but
9003 2004-06-25 Pascal Obry <obry@gnat.com>
9005 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
9006 Relocatable from Build_Dynamic_Library call.
9008 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
9009 Relocatable are now synonym.
9011 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
9013 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
9014 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
9017 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
9018 Lib_Address and Relocatable.
9019 (Default_DLL_Address): Removed.
9021 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
9022 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
9023 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
9024 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
9025 (Default_DLL_Address): Removed.
9027 * mlib-tgt-mingw.adb: Ditto.
9028 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
9030 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
9031 the initial thread stack size.
9033 * a-strmap.ads: Move package L to private part as it is not used in
9034 the spec. Found while reading code.
9036 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
9038 * tracebak.c: Introduce support for a GCC infrastructure based
9039 implementation of __gnat_backtrace.
9041 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
9042 any more. Use accessors instead. This eases maintenance and relaxes
9043 some alignment constraints.
9044 (_GNAT_Exception structure): Remove the Ada specific fields
9045 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
9047 (is_handled_by, __gnat_eh_personality): Replace component references to
9048 exception structure by use of the new accessors.
9050 * init.c (__gnat_initialize): Adjust comments to match the just
9051 reverted meaning of the -static link-time option.
9053 * adaint.c (convert_addresses): Arrange not to define a stub for
9054 mips-irix any more, as we now want to rely on a real version from a
9055 recent libaddr2line.
9057 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
9058 the personality routine can use them and not have to rely on a C
9059 counterpart of the record anymore. This simplifies maintenance and
9060 relaxes the constraint of having Standard'Maximum_Alignment match
9062 Update comments, and add a section on the common header alignment issue.
9064 2004-06-25 Geert Bosch <bosch@gnat.com>
9066 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
9067 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
9069 2004-06-25 Robert Dewar <dewar@gnat.com>
9071 * gnat_rm.texi: Fix section on component clauses to indicate that the
9072 restriction on byte boundary placement still applies for bit packed
9074 Add comment on stack usage from Initialize_Scalars
9076 * gnat_ugn.texi: Add documentation for -gnatyLnnn
9078 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
9079 limiting nesting level.
9081 * usage.adb: Add line for -gnatyLnnn switch
9083 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
9084 sem_ch13.adb, exp_aggr.adb: Minor reformatting
9086 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
9087 type as well as on the subtype. This corrects a problem in freeze in
9088 setting alignments of atomic types.
9090 * sem_eval.ads: Minor comment typo fixed
9092 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
9093 level. Minor reformatting.
9095 * fname.adb (Is_Predefined_File_Name): Require a letter after the
9096 minus sign. This means that file names like a--b.adb will not be
9097 considered predefined.
9099 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
9100 record Test new flag and give diagnostic for bad component clause.
9101 (Freeze_Entity): Set alignment of array from component alignment in
9102 cases where this is safe to do.
9104 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
9107 * cstand.adb: (Create_Standard): Set alignment of String to 1
9109 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
9111 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
9112 code in the common constrained array cases.
9114 * a-storio.adb: Change implementation to avoid possible alignment
9115 problems on machines requiring strict alignment (data should be moved
9116 as type Buffer, not type Elmt).
9118 * checks.adb (Apply_Array_Size_Check): Improve these checks by
9119 killing the overflow checks which we really do not need (64-bits is
9122 2004-06-25 Vincent Celier <celier@gnat.com>
9124 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
9125 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
9126 inconditionally for the main project.
9127 (Recursive_Add_Archives.Add_Archive_Path): New procedure
9128 (Link_Executables.Check_Time_Stamps): New procedure
9129 (Link_Executables.Link_Foreign): New procedure
9130 Changes made to reduce nesting level of this package
9131 (Check): New procedure
9132 (Add_Switches): When not in quiet output, check that a switch is not
9133 the concatenation of several valid switches. If it is, issue a warning.
9134 (Build_Global_Archive): If the global archive is rebuilt, linking need
9136 (Compile_Sources): Rebuilding a library archive does not imply
9137 rebuilding the global archive.
9138 (Build_Global_Archive): New procedure
9139 (Build_Library): New name for Build_Archive, now only for library
9141 (Check_Archive_Builder): New procedure
9142 (Create_Global_Archive_Dependency_File): New procedure
9143 (Gprmake): Call Build_Global_Archive before linking
9144 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
9146 (Scan_Arg): Display the Copyright notice when -v is used
9148 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
9151 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
9153 Add new GNAT LIST qualifier /FILES=
9154 Added qualifier /DIRECTORY= to GNAT METRIC
9155 Added qualifier /FILES= to GNAT METRIC
9156 Added qualifier /FILES to GNAT PRETTY
9158 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
9159 to take into account both versions of the switch.
9161 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
9162 always be the last switch to the gcc driver. Disable switch storing so
9163 that switches automatically added by the gcc driver are not put in the
9166 * prj.adb (Project_Empty): Take into account changes in components of
9169 * prj.ads (Languages_Processed): New enumaration value All_Languages.
9171 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
9172 used. Split Boolean component Ada_Sources_Present in two Boolean
9173 components Ada_Sources_Present and Other_Sources_Present.
9176 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
9177 instead of Sources_Present.
9178 (Set_Ada_Paths.Add.Recursive_Add): Ditto
9180 * prj-nmsc.adb: Minor reformatting
9181 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
9182 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
9183 Check_Ada_Naming_Scheme.
9184 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
9187 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
9189 Make sure that all cycles where there is at least one "limited with"
9191 (Parse_Single_Project): New Boolean parameter In_Limited
9193 * prj-proc.adb (Recursive_Check): When Process_Languages is
9194 All_Languages, call first Prj.Nmsc.Ada_Check, then
9195 Prj.Nmsc.Other_Languages_Check.
9197 * prj-proc.adb (Process): Use Ada_Sources_Present or
9198 Other_Sources_Present (instead of Sources_Present) depending on
9201 * lang-specs.h: Keep -g and -m switches in the same order, and as the
9204 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
9205 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
9207 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
9210 * lib.ads (Disable_Switch_Storing): New procedure.
9212 * make.adb: Modifications to reduce nesting level of this package.
9213 (Check_Standard_Library): New procedure
9214 (Gnatmake.Check_Mains): New procedure
9215 (Gnatmake.Create_Binder_Mapping_File): New procedure
9216 (Compile_Sources.Compile): Add switch -gnatez as the last option
9217 (Display): Never display -gnatez
9220 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
9222 * gnatcmd.adb (Check_Project): New function
9223 (Process_Link): New procedure to reduce nesting depth
9224 (Check_Files): New procedure to reduce the nesting depth.
9225 For GNAT METRIC, include the inherited sources in extending projects.
9226 (GNATCmd): When GNAT LS is invoked with a project file and no files,
9227 add the list of files from the sources of the project file. If this list
9228 is too long, put it in a temp text files and use switch -files=
9229 (Delete_Temp_Config_Files): Delete the temp text file that contains
9230 a list of source for gnatpp or gnatmetric, if one has been created.
9231 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
9232 in the project file is too large, create a temporary text file that
9233 list them and pass it to the tool with "-files=<temp text file>".
9234 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
9236 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
9237 generated file is in not in Ada.
9239 * gnatls.adb: Remove all parameters And_Save that are no longer used.
9240 (Scan_Ls_Arg): Add processing for -files=
9241 (Usage): Add line for -files=
9243 * g-os_lib.adb (On_Windows): New global constant Boolean flag
9244 (Normalize_Pathname): When on Windows and the path starts with a
9245 directory separator, make sure that the resulting path will start with
9248 * clean.adb (Clean_Archive): New procedure
9249 (Clean_Project): When there is non-Ada code, delete the global archive,
9250 the archive dependency files, the object files and their dependency
9251 files, if they exist.
9252 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
9254 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
9256 * sinfo.ads: Fix typo in comment.
9258 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
9259 the TSS for remote access-to-subprogram types, since these TSS are
9260 always present once the type has been analyzed.
9261 (RAS_E_Dereference): Same.
9263 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
9264 reference raises Bad_Attribute, mark the reference as analyzed so the
9265 node (and any children resulting from rewrites that could have occurred
9266 during the analysis that ultimately failed) is not analyzed again.
9268 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
9270 * exp_dist.adb: Minor comment fix.
9272 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
9273 type is an anonymous access type, no unchecked deallocation of the
9274 allocated object can occur. If the object is controlled, attach it with
9275 a count of 1. This allows attachment to the Global_Final_List, if
9276 no other relevant list is available.
9277 (Get_Allocator_Final_List): For an anonymous access type that is
9278 the type of a discriminant or record component, the corresponding
9279 finalisation list is the one of the scope of the type.
9281 2004-06-25 Ed Schonberg <schonberg@gnat.com>
9283 * sem_ch3.adb (Replace_Type): When computing the signature of an
9284 inherited subprogram, use the first subtype if the derived type
9285 declaration has no constraint.
9287 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
9288 before applying previous optimization. Minor code cleanup.
9290 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
9291 placed at the beginning of an unpacked record without explicit
9292 alignment, a slice of it will be aligned and does not need a copy when
9295 2004-06-25 Ed Schonberg <schonberg@gnat.com>
9299 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
9300 reference is written with expressions mimicking parameters.
9302 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
9305 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
9306 STEP 2a. The constraints of a full type declaration of a derived record
9307 type are checked for conformance with those declared in the
9308 corresponding private extension declaration. The message
9309 "not conformant with previous declaration" is emitted if an error is
9312 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
9314 * g-traceb.ads: Document the need for -E binder switch in the spec.
9316 * g-trasym.ads: Document the need for -E binder switch in the spec.
9318 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
9320 * sem_prag.adb: Add handling of pragma Detect_Blocking.
9322 * snames.h, snames.ads, snames.adb: Add entry for pragma
9325 * s-rident.ads: Change reference to pragma Detect_Blocking.
9327 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
9330 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
9331 to indicate whether pragma Detect_Blocking is active.
9333 * par-prag.adb: Add entry for pragma Detect_Blocking.
9335 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
9336 of not handling WITH.
9337 Note that this replaces the previous update which was incorrect.
9339 2004-06-25 Javier Miranda <miranda@gnat.com>
9341 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
9342 use-clauses to have a clean environment.
9344 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
9345 the installation of the use-clauses to stablish a clean environment in
9346 case of compilation of a separate unit; otherwise the call to
9347 use_one_package is protected by the barrier Applicable_Use.
9349 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
9350 the installation of the use-clauses to stablish a clean environment in
9351 case of compilation of a separate unit.
9352 (End_Use_Clauses): Minor comment cleanup.
9354 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
9356 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
9358 2004-06-23 Richard Henderson <rth@redhat.com>
9360 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
9362 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9364 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
9365 now bool instead of int.
9366 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
9367 * trans.c (gnu_switch_label_stack): New function.
9368 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
9369 elaboration of renamed entity returns.
9370 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
9371 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
9372 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
9373 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
9374 DECL_SIZE_UNIT and simplify variable-sized case.
9375 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
9376 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
9377 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
9378 (build_unit_elab): Disable for now.
9379 * utils.c (mark_visited): New function.
9380 (pushdecl): Walk tree to call it for global decl.
9381 (update_pointer_to): Update all variants of pointer and ref types.
9382 Add arg to COMPONENT_REF.
9383 (convert): Likewise.
9384 Move check for converting between variants lower down.
9385 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
9386 (build_allocator): Don't force type of MODIFY_EXPR.
9387 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
9390 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9392 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
9393 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
9394 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
9396 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
9397 all callers changed.
9398 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
9399 the way that EXIT_STMT finds the loop label.
9400 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
9401 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
9402 (add_stmt): Use annotate_with_locus insted of setting directly.
9403 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
9404 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
9405 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
9406 (build_vms_descriptor): Add extra args to ARRAY_REF.
9407 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
9408 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
9410 (build_binary_op): Don't make explicit CONVERT_EXPR.
9411 Add extra rgs to ARRAY_REF.
9413 2004-06-14 Pascal Obry <obry@gnat.com>
9415 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
9416 Windows. Fix minor typo.
9418 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
9419 which is now supported on Windows. With this implementation using the
9420 Library Project feature is no different on Windows than on UNIX.
9422 2004-06-14 Vincent Celier <celier@gnat.com>
9424 * makegpr.adb (Compile_Sources): Nothing to do when there are no
9427 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
9429 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
9430 found, show the project name and the path of the previously parsed
9433 2004-06-14 Ed Schonberg <schonberg@gnat.com>
9435 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
9436 array, avoid copying the actual before the call.
9438 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
9440 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
9441 Instead, allocate memory on worst-case alignment assumptions, and then
9442 return an aligned address within the allocated zone.
9444 2004-06-14 Robert Dewar <dewar@gnat.com>
9446 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
9447 elab entities in predefined units in No_Run_Time_Mode.
9448 (Gen_Adainit_C): Same fix
9449 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
9450 units in No_Run_Time_Mode
9451 (Gen_Elab_Calls_C): Same fix
9453 * symbols-vms-alpha.adb: Minor reformatting
9455 * g-debpoo.ads: Minor reformatting
9457 * lib.adb (In_Same_Extended_Unit): Version working on node id's
9459 * lib.ads (In_Same_Extended_Unit): Version working on node id's
9461 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
9464 * make.adb: Minor reformatting
9466 * par-ch12.adb: Minor reformatting
9468 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
9470 * prj-strt.adb: Minor reformatting
9472 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
9475 * sem_attr.adb: Minor reformatting
9477 * sem_ch7.adb: Minor reformatting
9479 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
9480 for type in the same unit as the object declaration.
9482 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
9483 static string expressions and not just string literals.
9485 (Set_Warning): Reset restriction warning flag for restriction pragma
9486 Implement pragma Profile_Warnings
9487 Implement pragma Profile (Restricted)
9488 Give obolescent messages for old restrictions and pragmas
9490 * snames.h, snames.ads, snames.adb: Add new entry for pragma
9493 * s-rident.ads: Add declarations for restrictions required by profile
9494 Restricted and profile Ravenscar.
9496 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
9498 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
9499 configuration pragmas.
9501 2004-06-11 Vincent Celier <celier@gnat.com>
9503 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
9504 gnatsym, when symbol policy is Restricted.
9506 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
9507 gnatsym, when symbol policy is Restricted.
9509 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
9510 read the symbol file.
9511 (Finalize): Fail in symbol policy Restricted if a symbol in the original
9512 symbol file is not in the object files. Do not create a new symbol file
9513 when symbol policy is Restricted.
9515 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
9518 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
9520 (Usage): Line for new switch -R
9522 * make.adb (Initialize): When the platform is not VMS, add the
9523 directory where gnatmake is invoked in the front of the path, if
9524 gnatmake is invoked with directory information. Change the Scan_Args
9525 while loop to a for loop.
9526 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
9527 if Depth is equal or greater than the proposed depth, there is nothing
9529 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
9532 * prj.ads: Add new symbol policy Restricted.
9534 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
9535 with the new parameters Check_All_Labels and Case_Location.
9537 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
9538 (Library_Symbol_File needs to be defined).
9540 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
9541 and Case_Location If Check_All_Labels is True, check that all values of
9542 the string type are used, and output warning(s) if they are not.
9544 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
9547 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
9549 * gnat_ugn.texi: Update documentation about the library directory in
9552 * makegpr.adb (Display_Command): In verbose mode, also display the
9553 value of the CPATH env var, when the compiler is gcc.
9554 (Initialize): Change the Scan_Args while loop to a for loop
9555 (Compile_Individual_Sources): Change directory to object directory
9556 before compilations.
9558 * symbols.ads: New symbol policy Restricted.
9560 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
9562 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
9563 is now taken care of internally in the Exception_Propagation package
9564 and does not require clients assistance any more.
9566 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
9567 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
9568 functions. Helpers to maintain a predicate required in the handling of
9569 occurrence transfer between tasks.
9570 This is now handled internally and does not require clients assistance
9571 for the setup/propagate separation anymore.
9572 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
9573 allocation strategy, handle the Setup_And_Not_Propagated predicate and
9576 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
9577 raise_after_setup, now that everything is handled internally within the
9578 setup/propagation engine.
9580 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
9582 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
9583 Add additional conditions for the case of an actual being a simple
9584 name or literal. Improve inlining by preventing the generation
9585 of temporaries with a short lifetime (one use).
9587 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
9591 * einfo.ads: Minor comment updates for Has_Completion and
9592 E_Constant list of flags.
9594 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
9595 and constant redeclarations now set the Has_Completion flag of their
9596 defining identifiers.
9598 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
9599 Inspect_Deferred_Constant_Completion.
9600 Used to detect private deferred constants that have not been completed
9601 either by a constant redeclaration or pragma Import. Emits error message
9602 "constant declaration requires initialization expression".
9604 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
9605 completes a deferred constant.
9607 2004-06-11 Geert Bosch <bosch@gnat.com>
9609 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
9611 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
9612 calculating exponent for scaling denormal numbers.
9613 (Leading_Part): Properly raise Constraint_Error for zero or negative
9615 (Remainder): Properly raise Constraint_Error for zero divisor.
9617 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
9619 * sem_util.adb: Minor reformatting.
9621 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
9622 dereference when accessing the entry parameter record.
9623 (Check_Array_Type): Always check for possible implicit dereference.
9624 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
9625 Abort if a pointer is still present (denoting that an implicit
9626 dereference was left in the tree by the front-end).
9628 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
9629 dereference when accessing the entry parameter record.
9630 (Check_Array_Type): Always check for possible implicit dereference.
9631 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
9632 Abort if a pointer is still present (denoting that an implicit
9633 dereference was left in the tree by the front-end).
9635 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
9637 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
9638 message, like the compiler itself does. Easier to parse the output.
9640 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
9642 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
9643 be base names, and not includes directories.
9645 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
9647 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
9648 so that dependencies are properly taken into account by make.
9650 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
9653 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
9654 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
9656 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
9658 * Makefile.in (install-gnatlib): install target-specific run-time files.
9660 * Make-lang.in: Remove obsolete targets.
9662 2004-06-11 Ed Schonberg <schonberg@gnat.com>
9664 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
9665 specification, to catch misuses of program unit names.
9667 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
9668 superfluous conversions in an instance.
9670 2004-06-11 Ed Schonberg <schonberg@gnat.com>
9674 * sem_ch12.adb (Save_References): If operator node has been folded to
9675 enumeration literal, associated_node must be discarded.
9677 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
9679 * s-stchop-vxworks.adb: Add required pragma Convention to
9680 Task_Descriptor because it is updated by a C function.
9682 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
9686 * Makefile.in: Remove target specific SO_OPT on IRIX
9688 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9690 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
9691 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
9692 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
9693 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
9694 (STMT_STMT, USE_STMT): New statement codes.
9695 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
9696 * ada-tree.h: Reflect above changes.
9697 (struct tree_loop_id): Deleted.
9698 (union lang_tree_node, struct lang_decl, struct lang_type):
9699 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
9700 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
9701 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
9702 (IS_ADA_STMT): New macro.
9703 * decl.c (annotate_decl_with_node): New function.
9704 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
9705 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
9706 Call add_stmt_with_node to do needed assignments.
9707 Add call to update setjmp buffer directly, not via EXPR_STMT.
9708 (maybe_variable): Argment GNAT_NODE deleted.
9709 * gigi.h (maybe_variable): Likewise.
9710 (make_transform, add_stmt_with_node, set_block_for_group): New.
9711 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
9712 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
9713 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
9714 (set_lineno, set_lineno_from_sloc): Likewise.
9715 (record_code_position, insert_code_for): Likewise.
9716 (gnat_poplevel): Now returns void.
9717 (end_subprog_body): Now takes argument.
9718 * misc.c (cgraph.h, tree-inline.h): New includes.
9719 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
9720 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
9721 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
9722 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
9723 (gnat_parse_file): Don't set immediate_size_expand.
9724 Call cgraph functions.
9725 (gnat_expand_expr): Remove most cases.
9726 (record_code_position, insert_code_for): Remove from here.
9727 * trans.c (toplev.h, tree-gimple.h): Now included.
9728 (discard_file_names): Deleted.
9729 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
9730 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
9731 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
9732 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
9733 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
9734 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
9735 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
9736 (set_block_for_group, add_stmt_list): Likewise.
9737 (start_stmt_group): Renamed from start_block_stmt.
9738 (end_stmt_group): Likewise, from end_block_stmt.
9739 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
9740 (gigi): Don't set discard_file_names or call set_lineno.
9741 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
9742 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
9743 Numerous changes throughout to reflect new names and complete
9744 function-at-a-time implementation.
9745 (gnat_expand_stmt): Delete or comment out all cases.
9746 (process_inlined_subprograms): Use add_stmt.
9747 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
9748 call set_lineno; also remove unneeded block handling.
9749 (process_type): Remove unneeded block handling.
9750 (build_unit_elab): Remove calls to deleted functions.
9751 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
9752 (tree-dump.h): Likewise.
9753 (struct ada_binding_level): Add field jmpbuf_decl.
9754 (gnat_define_builtin, gnat_install_builtins): New.
9755 (gnat_gimplify_function, gnat_finalize): Likewise.
9756 (gnat_poplevel): No longer return BLOCK, set it instead.
9757 Remove code dealing with nested functions.
9758 (gnat_init_decl_processing): Also set size_type_node.
9759 Call gnat_install_builtins.
9760 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
9761 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
9762 Remove special-case for "main".
9763 (end_subprog_body): Add arg and rework for tree-ssa.
9764 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
9765 Add case for BOOLEAN_TYPE.
9766 * utils2.c (rtl.h): Now include.
9767 (build_call_raise): Test Debug_Flag_NN directly.
9768 (build_call_alloc_dealloc): Don't use local stack allocation for now.
9769 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
9770 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
9772 2004-06-07 Robert Dewar <dewar@gnat.com>
9774 * a-direct.ads, einfo.ads: Minor comment updates
9776 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9777 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
9778 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
9779 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
9780 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
9782 * s-interr-sigaction.adb: Remove unreferenced variable
9783 (Attached_Interrupts). Minor reformatting.
9784 Avoid use of variable I (replace by J).
9786 * par-ch10.adb: Fix text of one error message
9788 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
9789 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
9790 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
9791 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
9792 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
9793 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
9794 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
9795 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
9796 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
9797 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
9798 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
9801 2004-06-07 Doug Rupp <rupp@gnat.com>
9803 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
9805 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
9807 * mlib-tgt-vms-ia64.adb: New file.
9809 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
9810 Add mlib-tgt-vms-ia64.adb
9811 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
9812 Move to alpha specific ifeq section.
9813 Add VMS specific versions of symbols.adb
9814 Renaming of 5q vms files.
9816 * 5qsystem.ads renamed to system-vms_64.ads.
9818 2004-06-07 Vincent Celier <celier@gnat.com>
9820 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
9821 explain that when a time of day corresponding to the non existing hour
9822 on the day switching to DST is specified, Split may return a different
9825 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
9828 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
9829 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
9831 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
9833 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
9834 the linking options.
9835 (Build_Library.Check_Libs): On VMS, if there is a dependency on
9836 g-trasym.ads, set Gtrasymobj_Needed to True.
9838 * prj-attr.adb: Add new package Metrics for gnatmetric
9840 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
9841 canonical case to take into account files with upper case characters on
9843 (Ada_Check): Load the reference symbol file name in the name buffer to
9844 check it, not the symbol file name.
9846 * snames.ads, snames.adb: Add standard name Metrics (name of project
9847 file package for gnatmetric).
9849 * vms_conv.ads: Add Metric to Comment_Type
9851 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
9853 * vms_data.ads: Add qualifiers for GNAT METRIC
9855 * makegpr.adb (Link_Executables): Take into account the switches
9856 specified in package Linker of the main project.
9858 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
9860 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
9861 the index of the last element is Units.Last, not Units.Table'Last
9862 (which is usually not a valid index within the actually allocated
9863 storage for the table).
9865 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
9866 determines whether to generate a call to a checked storage pool
9868 Generate such a call only for a dereference that either comes from
9869 source, or is the result of rewriting a dereference that comes from
9872 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
9874 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
9876 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
9878 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
9879 file level, elaborate the stride for inner dimensions in alignment
9882 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
9885 2004-06-07 Javier Miranda <miranda@gnat.com>
9887 * exp_ch6.adb: Correct wrong modification in previous patch
9889 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
9891 * g-trasym.ads: Corrected comment to properly reflect level of support
9894 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
9896 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
9897 includes case of a variable referenced on the left hand side of an
9898 assignment, therefore remove redundant code. Variables and prefixes of
9899 indexed or selected components are now marked as referenced on left
9900 hand side. Warnings are now properly emitted when variables or prefixes
9901 are assigned but not read.
9903 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
9904 left hand side referenced variables. Private access types do not
9905 produce the warning "variable ... is assigned but never read".
9906 Add also additional checks to left hand side referenced variables.
9907 Aliased, renamed objects and access types do not produce the warning
9908 "variable ... is assigned but never read" since other entities may read
9909 the memory location.
9911 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
9913 * Makefile.in: In the powerpc/vxworks-specific section, restore
9914 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
9917 2004-06-07 Ed Schonberg <schonberg@gnat.com>
9919 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
9920 predefined operators.
9921 Removes spurious type errors from g-trasym-vms.adb.
9923 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
9924 distinct from the operator appearing in the source, call appropriate
9925 routine to insert conversions when needed, and complete resolution of
9927 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
9928 interpretations for rewritten right operand.
9929 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
9930 the other operand is overloaded and the context is a type conversion.
9932 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9934 * ada-tree.def (BLOCK_STMT): Now has two operands.
9937 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
9939 * gigi.h: (gnat_poplevel): Now returns a tree.
9941 * trans.c (end_block_stmt): Add arg; all callers changed.
9942 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
9943 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
9944 (add_stmt): Set TREE_TYPE.
9945 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
9946 (gnat_expand_stmt, case BREAK_STMT): New case.
9948 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
9950 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
9952 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
9953 procedure Set_Stack_Size that is not needed.
9955 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
9957 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
9958 used for gnatpp input file and for the files upon which it depends
9960 2004-06-07 Ben Brosgol <brosgol@gnat.com>
9962 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
9964 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
9966 * gnatvsn.ads: Bump version numbers appropriately.
9969 2004-06-07 Pascal Obry <obry@gnat.com>
9971 * gnat_ugn.texi: Improve comments about imported names and link names
9972 on Windows. Add a note about the requirement to use -k gnatdll's option
9973 when working with a DLL which has stripped stdcall symbols (no @nn
9976 2004-05-27 Vincent Celier <celier@gnat.com>
9978 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
9979 COMMENTS_LAYOUT=UNTOUCHED
9981 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
9982 symbols-vms-alpha.adb
9984 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
9986 * sem.ads: Clarify documentation on checks suppression.
9988 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
9990 2004-05-27 Ed Schonberg <schonberg@gnat.com>
9992 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
9993 the case of multiple derivations.
9994 (Is_Object_Reference): For a selected component, verify that the prefix
9995 is itself an object and not a value.
9997 * sem_ch12.adb (Same_Instantiated_Constant): New name for
9998 Same_Instantiated_Entity.
9999 (Same_Instantiated_Variable): Subsidiary to
10000 Check_Formal_Package_Instance, to recognize actuals for in-out generic
10001 formals that are obtained from a previous formal package.
10002 (Instantiate_Subprogram_Body): Emit proper error when
10003 generating code and the proper body of a stub is missing.
10005 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
10006 has a universal interpretation, do the disambiguation here.
10008 * exp_ch4.adb (Expand_N_Type_Conversion,
10009 Expand_N_Unchecked_Type_Conversion): Special handling when target type
10010 is Address, to avoid typing anomalies when Address is a visible integer
10013 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
10014 to determine whether a subprogram should not be marked Pure, even when
10015 declared in a pure package.
10017 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
10019 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
10021 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
10022 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
10023 Update the documentation about the Ravenscar profile, following the
10024 definition found in AI-249.
10026 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
10027 setting the Profile (Ravenscar). This must be done in addition to
10028 setting the required restrictions.
10030 * rtsfind.ads: Add the set of operations defined in package
10033 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
10036 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
10038 lang-specs.h: Always require -c or -S and always redirect to /dev/null
10039 if -gnatc or -gnats is passed.
10041 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
10043 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
10044 a significant reference. Warnings are now properly emitted when a
10045 discriminated type is not referenced.
10047 * lib-xref.adb (Generate_Reference): A deferred constant completion,
10048 record representation clause or record type discriminant does not
10049 produce a reference to its corresponding entity. Warnings are now
10050 properly emitted when deferred constants and record types are not
10053 2004-05-27 Geert Bosch <bosch@gnat.com>
10055 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
10056 Fixes ACATS Annex G tests.
10058 2004-05-27 Robert Dewar <dewar@gnat.com>
10060 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
10063 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
10065 * s-interr.adb (Server_Task): Take into account case of early return
10066 from sigwait under e.g. linux.
10068 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
10070 * gnat_ugn.texi: Add description for the new gnatpp options:
10071 -rnb - replace the original source without creating its backup copy
10072 -c0 - do not format comments
10074 2004-05-24 Geert Bosch <bosch@gnat.com>
10076 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
10077 with 192 bits of precision, sufficient to reduce a double-extended
10078 arguments X with a maximum relative error of T'Machine_Epsilon, for X
10079 in -2.0**32 .. 2.0**32.
10080 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
10081 reduction by the processor, which only uses a 68-bit approximation of
10083 (Tan): Always reduce arguments and compute function either using
10084 the processor's fptan instruction, or by dividing sin and cos as needed.
10086 2004-05-24 Doug Rupp <rupp@gnat.com>
10088 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
10089 gcc error on 32/64 bit VMS.
10091 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
10093 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
10094 since this is what we get for stack overflows although not documented
10096 Document the issues which may require adjustments to our signal
10099 2004-05-24 Ed Schonberg <schonberg@gnat.com>
10101 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
10102 enclosing dynamic scope if the instantiation is within a generic unit.
10104 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
10106 * exp_dbug.ads: Fix typo.
10108 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
10109 Rename it to its proper name: system-linux-ia64.ads
10110 (stamp-gnatlib1): Remove extra target specific run time files when
10111 setting up the rts directory.
10113 2004-05-24 Javier Miranda <miranda@gnat.com>
10115 * einfo.ads, einfo.adb (Limited_Views): Removed.
10116 (Limited_View): New attribute that replaces the previous one. It is
10117 now a bona fide package with the limited-view list through the
10118 first_entity and first_private attributes.
10120 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
10121 limited-private-with clause.
10122 (Install_Limited_Withed_Unit): Install the private declarations of a
10123 limited-private-withed package. Update the installation of the shadow
10124 entities according to the new structure (see Build_Limited_Views)
10125 (Build_Limited_Views): Replace the previous implementation of the
10126 limited view by a package entity that references the first shadow
10127 entity plus the first shadow private entity (required for limited-
10128 private-with clause)
10129 (New_Internal_Shadow_Entity): Code cleanup.
10130 (Remove_Limited_With_Clause): Update the implementation to undo the
10131 new work carried out by Build_Limited_Views.
10132 (Build_Chain): Complete documentation.
10133 Replace Ada0Y by Ada 0Y in comments
10136 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
10137 types the level of accessibility depends on the enclosing type
10140 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
10141 entities. Complete documentation of previous change.
10143 2004-05-24 Robert Dewar <dewar@gnat.com>
10145 * namet.adb: Minor reformatting
10146 Avoid use of name I (replace by J)
10147 Minor code restructuring
10149 * sem_ch6.adb: Minor reformatting
10151 * lib-writ.adb: Do not set restriction as active if this is a
10152 Restriction_Warning case.
10154 * sem_prag.adb: Reset restriction warning flag if real pragma
10155 restriction encountered.
10157 * s-htable.adb: Minor reformatting
10158 Change rotate count to 3 in Hash (improves hash for small strings)
10160 * 5qsystem.ads: Add comments for type Address (no literals allowed).
10162 * gnat_ugn.texi: Add new section of documentation "Code Generation
10163 Control", which describes the use of -m switches.
10165 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
10167 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
10168 through the DECL_INITIAL for renamed variables.
10170 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
10172 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
10174 2004-05-19 Joel Brobecker <brobecker@gnat.com>
10176 * exp_dbug.ads: Correct comments concerning handling of overloading,
10177 since we no longer use $ anymore.
10179 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
10181 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
10182 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
10183 with illegal subunits.
10185 2004-05-19 Ed Schonberg <schonberg@gnat.com>
10187 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
10188 body with front-end inlining enabled, check whether an inline pragma
10189 appears immediately after the body and applies to it.
10191 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
10192 enabled and the pragma appears after the body of the subprogram.
10194 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10196 Part of function-at-a-time conversion
10198 * misc.c (adjust_decl_rtl): Deleted.
10199 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
10202 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
10203 (add_decl_stmt, add_stmt, block_has_vars): New functions.
10204 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
10206 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
10207 when making a decl.
10208 (gnat_to_gnu_entity): Likewise.
10209 Use add_stmt to update setjmp buffer.
10210 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
10212 No longer call adjust_decl_rtl.
10213 (DECL_INIT_BY_ASSIGN_P): New macro.
10214 (DECL_STMT_VAR): Likewise.
10216 * trans.c (gigi): Call start_block_stmt to make the outermost
10218 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
10219 Call start_block_stmt and end_block_stmt temporarily.
10220 Use gnat_expand_stmt instead of expand_expr_stmt.
10221 (add_decl_stmt): New function.
10222 (tree_transform): Call it.
10223 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
10224 (end_block_stmt): Set type and NULL_STMT.
10225 (gnat_expand_stmt): Make recursize call instead of calling
10227 (gnat_expand_stmt, case DECL_STMT): New case.
10228 (set_lineno_from_sloc): Do nothing if global.
10229 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
10230 (start_block_stmt, add_stmt, end_block_stmt): New functions.
10231 (build_block_stmt): Call them.
10232 (gnat_to_code): Don't expand NULL_STMT.
10233 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
10235 (tree_transform): Likewise.
10236 (tree_transform, case N_Null_Statement): Return NULL_STMT.
10237 (gnat_expand_stmt, case NULL_STMT): New case.
10238 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
10241 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
10244 * utils.c (create_var_decl): Do not call expand_decl or
10246 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
10247 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
10249 (struct e_stack): Add chain_next to GTY.
10250 (struct binding_level): Deleted.
10251 (struct ada_binding_level): New struct.
10252 (free_block_chain): New.
10253 (global_binding_level, clear_binding_level): Deleted.
10254 (global_bindings_p): Rework to see if no chain.
10255 (kept_level_p, set_block): Deleted.
10256 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
10257 new data structure and work directly on BLOCK node.
10258 (gnat_poplevel): Similarly.
10259 (get_decls): Look at BLOCK_VARS.
10260 (insert_block): Work directly on BLOCK node.
10261 (block_has_var): New function.
10262 (pushdecl): Rework for new binding structures.
10263 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
10265 (build_subprog_body): Likewise.
10266 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
10268 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
10270 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
10271 (DECL_STMT_VAR): Likewise.
10273 2004-05-17 Robert Dewar <dewar@gnat.com>
10275 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
10278 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
10279 of restriction synonyums by using
10280 Restrict.Process_Restriction_Synonyms.
10282 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
10284 * s-restri.ads (Tasking_Allowed): Correct missing comment
10286 * s-rident.ads: Add entries for restriction synonyms
10288 * ali.adb: Fix some problems with badly formatted ALI files that can
10289 result in infinite loops.
10291 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
10292 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
10293 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
10294 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
10295 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
10296 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
10297 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
10298 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
10299 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
10300 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
10301 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
10302 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
10303 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
10304 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
10305 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
10306 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
10307 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
10308 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
10309 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
10310 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
10311 to Task_Id (minor cleanup).
10313 2004-05-17 Vincent Celier <celier@gnat.com>
10315 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
10316 directory separator.
10318 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
10319 project being extended, if Languages is not declared in extending
10322 2004-05-17 Javier Miranda <miranda@gnat.com>
10324 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
10325 limited view of a visible sibling.
10327 2004-05-14 Robert Dewar <dewar@gnat.com>
10329 * gnat_ugn.texi: Minor change to -gnatS documentation
10331 * sprint.adb: Remove some instances of Assert (False) and for this
10332 purpose replace them by output of a ??? string.
10334 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
10337 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
10338 flag processing. This was suppressing required dependencies in
10339 No_Run_Time mode and is not needed since the binder does not generate
10340 references for things in libgnat anyway.
10342 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
10345 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
10347 * gnat_ugn.texi: Document AIX-specific issue with initialization of
10350 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
10351 action for the case of an actual parameter in an init proc call.
10353 2004-05-14 Ed Schonberg <schonberg@gnat.com>
10355 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
10356 subtype, check visible entities in base type.
10358 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
10359 actions if the object is a renaming.
10361 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
10362 Check_Formal_Package_Instance, to determine more precisely when the
10363 formal and the actual denote the same entity.
10365 2004-05-14 Javier Miranda <miranda@gnat.com>
10367 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
10369 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
10370 corresponding to a private_with must be removed from visibility; it
10371 will be made visible later, just before we analyze the private part of
10373 (Check_Private_Child_Unit): Allow private_with clauses in public
10375 (Install_Siblings): Make visible the private entities of private-withed
10377 (Install_Withed_Unit): Do not install the private withed unit if we
10378 are compiling a package declaration and the Private_With_OK flag was
10379 not set by the caller. These declarations will be installed later,
10380 just before we analyze the private part of the package.
10382 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
10383 during the evaluation of the expression that initializes the object,
10384 decorate it with the expected type to avoid cascade errors.
10387 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
10388 subprogram we have to install the private_with clauses after its
10389 specification has been analyzed (as documented in AI-262.TXT).
10391 * sem_ch8.adb (Has_Private_With): New function. Determines if the
10392 current compilation unit has a private with on a given entity.
10393 (Find_Direct_Name): Detect the Beaujolais problem described in
10396 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
10397 provides the functionality of the function Is_Ancestor that was
10398 previously available in sem_ch10. It has been renamed to avoid
10401 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
10403 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10405 * utils.c (build_vms_descriptor): Use SImode pointers.
10407 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
10409 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
10411 2004-05-14 GNAT Script <nobody@gnat.com>
10413 * Make-lang.in: Makefile automatically updated
10415 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
10417 Renaming of target specific files for clarity
10419 * Makefile.in: Rename GNAT target specific files.
10421 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
10422 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
10423 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
10424 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
10425 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
10426 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
10427 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
10428 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
10429 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
10430 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
10431 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
10432 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
10433 51osinte.adb, 51osinte.ads, 51system.ads,
10434 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
10435 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
10436 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
10437 56tpopsp.adb, 57system.ads, 58system.ads,
10438 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
10439 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
10440 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
10441 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
10442 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
10443 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
10444 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
10445 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
10446 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
10447 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
10448 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
10449 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
10450 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
10451 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
10452 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
10453 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
10454 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
10455 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
10456 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
10457 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
10458 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
10459 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
10460 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
10461 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
10462 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
10463 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
10464 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
10465 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
10466 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
10467 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
10468 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
10469 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
10470 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
10471 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
10472 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
10473 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
10474 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
10475 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
10476 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
10477 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
10479 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
10480 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
10481 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
10482 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
10483 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
10484 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
10485 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
10486 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
10487 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
10488 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
10489 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
10490 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
10491 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
10492 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
10493 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
10494 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
10495 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
10496 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
10497 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
10498 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
10499 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
10500 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
10501 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
10502 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
10503 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
10504 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
10505 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
10506 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
10507 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
10508 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
10509 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
10510 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
10511 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
10512 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
10513 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
10514 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
10515 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
10516 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
10517 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
10518 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
10519 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
10520 s-osinte-vms.ads, s-osinte-vxworks.adb,
10521 s-osinte-vxworks.ads, s-osprim-mingw.adb,
10522 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
10523 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
10524 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
10525 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
10526 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
10527 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
10528 s-stchop-vxworks.adb, s-taprop-dummy.adb,
10529 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
10530 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
10531 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
10532 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
10533 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
10534 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
10535 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
10536 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
10537 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
10538 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
10539 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
10540 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
10541 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
10542 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
10543 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
10544 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
10545 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
10546 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
10547 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
10548 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
10549 system-irix-o32.ads, system-linux-x86_64.ads,
10550 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
10551 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
10552 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
10553 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
10554 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
10555 system-vxworks-mips.ads, system-vxworks-ppc.ads,
10556 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
10559 2004-05-13 Zack Weinberg <zack@codesourcery.com>
10561 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
10563 2004-05-13 Diego Novillo <dnovillo@redhat.com>
10565 Merge from tree-ssa-20020619-branch.
10567 * config-lang.in (boot_language, build_by_default): Set
10569 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
10570 (max_size): Add static chain op for call_expr.
10572 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
10575 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
10577 2004-05-11 Roger Sayle <roger@eyesopen.com>
10579 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
10582 2004-05-10 Doug Rupp <rupp@gnat.com>
10584 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
10587 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
10589 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
10591 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
10592 Fixes undefined symbols in IA64 gnatlib.
10594 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
10596 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
10597 Short_Address). This will be moved to system.auxdec.
10599 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
10601 * sem_util.adb: Replace test for presence of a node that is always
10602 present with a call to Discard_Node.
10604 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
10605 Analyze on the library unit node after generation of distribution stub
10606 constructs. The call was a no-op because Unit_Node has already been
10607 Analyzed, and the tree fragments for the distribution stubs are
10608 analyzed as they are inserted in Exp_Dist.
10609 Update comment regarding to distribution stubs to reflect that we
10610 do not generate stub in separate files anymore.
10612 * einfo.ads: Clarify the fact that a tagged private type has the
10613 E_Record_Type_With_Private Ekind.
10615 * erroutc.adb: Minor reformatting
10617 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
10618 values if line length is increased using -gnatyM (noticed during code
10621 * eval_fat.adb: Minor reformatting
10622 Put spaces around exponentiation operator
10624 2004-05-10 Ed Schonberg <schonberg@gnat.com>
10627 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
10628 has been rewritten as an explicit dereference, retrieve type of
10629 original node to check for possibly unconstrained record type.
10631 2004-05-10 Ed Schonberg <schonberg@gnat.com>
10633 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
10634 overriding, use the operation of the parent unconditionally.
10636 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
10637 operation when either operand is a literal, to avoid further
10640 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
10641 overridden by a previous explicit declaration, mark the previous entity
10644 * sem_disp.adb (Check_Dispatching_Operation): New predicate
10645 Is_Visibly_Controlled, to determine whether a declaration of a
10646 primitive control operation for a derived type overrides an inherited
10647 one. Add warning if the explicit declaration does not override.
10649 2004-05-10 Vincent Celier <celier@gnat.com>
10651 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
10652 some cases when the sources are no longer present.
10654 * make.adb (Collect_Arguments): Fail if an external source, not part
10655 of any project need to be compiled, when switch -x has not been
10658 * makeusg.adb: Document new switch -x
10660 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
10661 defaulted to False.
10663 * switch-m.adb (Scan_Make_Switches): New switch -x
10665 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
10666 gnatmake switch -x.
10668 * gnat_ugn.texi: Document new gnatmake switch -x
10670 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
10672 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
10674 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
10675 (process_attributes): Likewise.
10677 2004-05-10 Joel Brobecker <brobecker@gnat.com>
10679 * s-inmaop.ads: Fix spelling mistake in one of the comments.
10681 2004-05-10 Robert Dewar <dewar@gnat.com>
10683 * gnat_ugn.texi: Document that for config pragma files, the maximum
10684 line length is always 32767.
10686 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
10687 literals is now allowed.
10689 * gnat-style.texi: Remove statement about splitting long lines before
10690 an operator rather than after, since we do not follow this rule at all.
10691 Clarify rule (really lack of rule) for spaces around exponentiation
10693 * sem_elim.adb: Allow concatenation of string literals as well as a
10694 single string literal for pragma arguments.
10696 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
10698 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
10699 written for append case.
10701 * frontend.adb: Changes to avoid checking max line length in config
10704 * g-os_lib.ads: Minor reformatting
10706 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
10707 wrong in any case. Instead use standard value. Noticed during code
10710 * opt.ads (Max_Line_Length): New field, used to implement removal of
10711 limitation on length of lines when scanning config pragma files.
10713 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
10714 makeutl.ads, makeutl.adb: Minor reformatting
10716 * scn.adb: Do not check line length while scanning config pragma files
10717 Do not check line length while scanning out license information
10719 * scng.adb: Changes to avoid line length checks while parsing config
10722 2004-05-10 GNAT Script <nobody@gnat.com>
10724 * Make-lang.in: Makefile automatically updated
10726 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
10728 * osint.adb (Find_Program_Name): Fix handling of VMS version
10731 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
10733 * g-os_lib.ads (Invalid_Time): New constant
10735 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
10736 return OS_Time instead of time_t to match what is imported by Ada.
10737 Now return -1 if the file doesn't exist, instead of a random value
10739 2004-05-05 Robert Dewar <dewar@gnat.com>
10741 * usage.adb: Add line for -gnatR?s switch
10743 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
10745 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
10746 and for Match (Data_First, Data_last)
10748 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
10749 written when we are dealing with multi-unit files.
10751 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
10753 * Makefile.in: Remove unused targets and variables.
10755 2004-05-05 Vincent Celier <celier@gnat.com>
10757 * switch-m.adb: New gnatmake switch -eI
10759 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
10760 of new gnatmake switch -eInnn.
10762 * makegpr.adb: Take into account new parameters Index and Src_Index in
10765 * clean.adb: Implement support for multi-unit sources, including new
10768 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
10771 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
10772 (Extract_From_Q): New out parameter Index
10773 (Mark, Is_Marked): Subprograms moved to Makeutl
10774 (Switches_Of): New parameter Source_Index
10775 (Add_Switch): New parameter Index
10776 (Check): New parameter Source_Index
10777 (Collect_Arguments): New parameter Source_Index
10778 (Collect_Arguments_And_Compile): New parameter Source_Index
10779 (Compile): New parameter Source_Index
10780 Put subprograms in alphabetical order
10781 Add support for multi-source sources, including in project files.
10783 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
10784 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
10787 * makeusg.adb: New gnatmake switch -eInnn
10789 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
10792 * opt.ads (Main_Index): New variable, defaulted to 0.
10794 * osint.ads, osinte.adb (Add_File): New parameter Index
10795 (Current_Source_Index): New function
10797 * prj.adb: Take into account new components Index and Src_Index
10799 * prj.ads (String_Element): New component Index
10800 (Variable_Value): New component Index
10801 (Array_Element): New component Src_Index
10803 * prj-attr.adb: Indicate that optional index may be specified for
10804 attributes Main, Executable, Spec, Body and some of Switches.
10806 * prj-attr.ads (Attribute_Kind): New values for optional indexes
10807 (Attribute_Record): New component Optional_Index
10809 * prj-com.ads (File_Name_Data): New component Index
10811 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
10813 * prj-env.adb (Put): Output optional index
10815 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
10816 attributes Spec and Body.
10818 * prj-nmsc.adb: Process optional indexes
10820 * prj-pp.adb: Ouput "at" for optional indexes
10822 * prj-proc.adb: Take into account optional indexes
10824 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
10825 Optional_Index. For string literal,
10826 process optional index when Optional_Index is True.
10827 (Parse_Expresion): New Boolean parameter Optional_Index
10829 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
10830 (Set_Source_Index_Of): New procedure
10832 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
10835 * prj-util.ads (Executable_Of): New parameter Index
10836 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
10837 New parameter Src_Index, defaulted to 0.
10839 2004-05-05 Ed Schonberg <schonberg@gnat.com>
10842 * sem_ch3.adb (Access_Definition): If this is an access parameter
10843 whose designated type is imported through a limited_with clause, do
10844 not add the enclosing subprogram to the list of private dependents of
10847 2004-05-05 Ed Schonberg <schonberg@gnat.com>
10850 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
10851 a limited_with clause, and the other is its non-limited view.
10853 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
10855 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
10857 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
10858 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
10859 Stand.Boolean_Literals to produce references to entities
10860 Standard_False and Standard_True from compile-time computed boolean
10863 * stand.ads (Boolean_Literals): New variable, provides the entity
10864 values for False and True, for use by the expander.
10866 2004-05-05 Doug Rupp <rupp@gnat.com>
10868 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
10869 5vinmaop.adb: Unchecked convert Short_Address vice Address
10871 * adaint.c, raise.c: Caste CRTL function return value
10872 to avoid gcc error on 32/64 bit IVMS.
10874 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
10877 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
10879 * 5qsystem.ads (Address): Declare as Long_Integer
10880 (Short_Address): Declare as 32 bit subtype of Address
10881 Declare abstract address operations to avoid gratuitous ambiguities.
10883 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
10885 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
10886 instead of the old Boolean_Entry_Barriers.
10887 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
10889 2004-05-05 GNAT Script <nobody@gnat.com>
10891 * Make-lang.in: Makefile automatically updated
10893 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
10895 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
10897 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
10901 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
10902 alone. Replacing object references by literals is inappropriate in a
10903 so low level context.
10905 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
10907 * a-exexpr.adb: Add comments
10909 2004-05-03 Joel Brobecker <brobecker@gnat.com>
10911 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
10912 declare the Ancestor_Tags array in Type_Specific_Data with a small size
10913 without risking a bounds check error when accessing one of its
10915 (Type_Specific_Data): Define Ancestor_Tags as a small array.
10916 This prevents us from hitting a limitation during the debug info
10917 generation when using stabs.
10919 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
10921 This prevents us from hitting a limitation during the debug info
10922 generation when using stabs.
10924 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
10926 lang-specs.h: Remove -gnatz* from specs.
10928 2004-05-03 Vincent Celier <celier@gnat.com>
10930 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
10932 * Make-lang.in, Makefile.in: Add gprmake
10934 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
10936 * sem_aggr.adb: Fix typo in comment.
10938 2004-05-03 Robert Dewar <dewar@gnat.com>
10940 * make.adb: Minor reformatting
10942 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
10944 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
10945 so that it works when address is not a private type.
10947 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
10948 properly with rewritten unchecked conversions. This prevents
10949 order-of-elaboration issues that can otherwise arise.
10950 (Minimum_Size): Don't check size of access types under VMS
10952 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
10953 interpretations of integer literals as type System.Address.
10955 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
10956 (Is_Descendent_Of): New function
10958 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
10960 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
10961 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
10962 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
10964 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
10965 of the old Max_Entry_Queue_Depth.
10967 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
10968 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
10969 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
10971 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
10972 New entry for proper handling of Max_Entry_Queue_Depth.
10973 New entry for proper handling of No_Dynamic_Interrupts.
10975 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
10976 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
10977 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
10978 the GNAT specific restriction Max_Entry_Queue_Depth.
10979 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
10980 the GNAT specific restriction No_Dynamic_Interrupts.
10982 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
10983 instead of the old Boolean_Entry_Barriers.
10984 Use the new restriction No_Dynamic_Attachment instead of the old
10985 No_Dynamic_Interrupts.
10987 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
10988 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
10990 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
10991 of the old Max_Entry_Queue_Depth.
10993 2004-05-03 GNAT Script <nobody@gnat.com>
10995 * Make-lang.in: Makefile automatically updated
10997 2004-04-29 Ed Schonberg <schonberg@gnat.com>
10999 * checks.adb (Enable_Range_Check): If the prefix of an index component
11000 is an access to an unconstrained array, perform check unconditionally.
11002 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11004 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
11007 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
11009 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
11010 alternate stack setting. There was no support for the tasking cases
11011 and the changes eventually caused a number of side-effect failures in
11012 the non-tasking case too.
11014 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
11016 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
11019 2004-04-29 Vincent Celier <celier@gnat.com>
11021 * make.adb (Gnatmake): Increase max size of argument array for
11022 gnatbind for the potential addition of -F.
11023 If there are Stand-Alone Library projects, invoke gnatbind with -F to
11024 be sure that elaboration flags will be checked.
11026 * switch-c.adb: Correct call to Scan_Pos for -gnateI
11028 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
11030 * sem_warn.adb (Check_References): Move '<access-variable> may be
11031 null' warning out of under Warn_On_No_Value_Assigned.
11033 2004-04-29 Ed Falis <falis@gnat.com>
11035 * gnat_ugn.texi: Fixed texi error
11037 2004-04-29 Robert Dewar <dewar@gnat.com>
11039 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
11040 abstract operations if they come from predefined files.
11042 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
11045 * s-addope.adb: Correct obvious error in mod function
11047 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
11049 * Makefile.in: Add target pairs for powerpc darwin*
11052 * a-intnam-darwin.ads, s-osinte-darwin.adb,
11053 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
11055 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
11057 * Makefile.in: Add target macro definitions for s390*-linux*.
11058 * system-linux-s390.ads: New file.
11059 * system-linux-s390x.ads: New file.
11061 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
11063 * gnat_ugn.texi: Correct argument to @setfilename.
11065 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
11067 * a-exexpr.adb (Unwind_Word): New data type.
11068 (Unwind_Exception): Use it as type of Private1 and Private2.
11070 * raise.c (db_action_for): Fix debug printf.
11072 2004-04-27 Ed Schonberg <schonberg@gnat.com>
11074 * a-wtmoio.ads: Formal type must be a modular type, not a signed
11077 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11079 * decl.c (gnat_to_gnu_entity, case object): Call
11080 __builtin_update_setjmp_buf.
11082 * gigi.h (update_setjmp_buf): Deleted.
11083 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
11085 * misc.c: (update_setjmp_buf): Deleted.
11087 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
11088 around block of RTL.
11090 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
11092 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
11094 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
11095 subprogram for which no pragma All_Calls_Remote applies, store the
11096 address of the real subprogram in the underlying record type, so local
11097 dereferences do not go through the PCS.
11099 2004-04-26 Robert Dewar <dewar@gnat.com>
11101 * i-c.ads: Add some type qualifications to avoid ambiguities when
11102 compiling with s-auxdec.ads and a non-private address type.
11104 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
11106 * Makefile.rtl: Fix error in previous check-in:
11107 Add s-addope.o to non tasking object list (rather than tasking object
11110 2004-04-26 Javier Miranda <miranda@gnat.com>
11112 * sem_aggr.adb: Fix typo in comments
11113 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
11114 Required to check the null-exclusion attribute.
11116 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
11117 case of anonymous access types in record and array components. For a
11118 component definition the level is the same of the enclosing composite
11121 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
11122 that are anonymous access types the level of accessibility depends on
11123 the enclosing type declaration. In order to have this information, set
11124 the scope of the anonymous access type to the enclosing record type
11126 (Array_Type_Declaration): In case of components that are anonymous
11127 access types the level of accessibility depends on the enclosing type
11128 declaration. In order to have this information, set the scope of the
11129 anonymous access type to the enclosing array type declaration.
11131 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
11134 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
11135 renaming of anonymous access-to-constant types allowed if and only if
11136 the renamed object is access-to-constant.
11138 * sem_util.adb (Type_Access_Level): In case of anonymous access types
11139 that are component_definition or discriminants of a nonlimited type,
11140 the level is the same as that of the enclosing component type.
11142 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
11144 * sem_elim.adb: Some minor code reorganization from code reading. Fix
11145 misprint in the function name (File_Name_Match).
11147 2004-04-23 Laurent GUERBY <laurent@guerby.net>
11149 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
11152 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11154 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
11156 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
11158 * adaint.c (__gnat_try_lock): No longer requires that the parent
11159 directory be writable, the directory itself is enough.
11160 (gnat_is_absolute_path): Change profile, so that the call from
11161 GNAT.OS_Lib can be made more efficient.
11163 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
11164 from GNAT.OS_Lib can be made more efficient.
11166 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
11167 one copy of the file name. Found by code reading.
11169 2004-04-23 Vincent Celier <celier@gnat.com>
11171 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
11172 Correct documentation on gnatmake switches transmitted to the compiler
11174 * ali.ads: Minor comment fix
11176 2004-04-23 Javier Miranda <miranda@gnat.com>
11178 * sem_ch6.adb: (Confirming Types): Code cleanup
11180 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
11181 subprogram types: E_Anonymous_Access_Subprogram_Type and
11182 E_Anonymous_Access_Protected_Subprogram_Type.
11184 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
11186 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
11187 whether a pragma All_Calls_Remote applies to the subprogram on which
11189 No functional change is introduced by this revision; the new parameter
11190 will be used to allow calls to local RCI subprograms to be optimized
11191 to not use the PCS in the case where no pragma All_Calls_Remote applies,
11192 as is already done in the PolyORB implementation of the DSA.
11194 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
11195 whether a pragma All_Calls_Remote applies to the subprogram on which
11197 No functional change is introduced by this revision; the new parameter
11198 will be used to allow calls to local RCI subprograms to be optimized
11199 to not use the PCS in the case where no pragma All_Calls_Remote applies,
11200 as is already done in the PolyORB implementation of the DSA.
11202 2004-04-23 Robert Dewar <dewar@gnat.com>
11204 * Makefile.rtl: Add entry for s-addope.o in run time library list
11205 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
11206 * s-addope.ads, s-addope.adb: New files.
11208 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
11209 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
11210 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
11211 System.Address to be non-private and signed.
11213 * sem_elim.adb: Minor reformatting (fairly extensive)
11214 Some minor code reorganization from code reading
11215 Add a couple of ??? comments
11217 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11219 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
11220 (tree_transform, case N_If_Statement): Remove non-determinism.
11222 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
11224 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
11226 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
11227 Eliminate' section.
11229 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
11230 no longer used as a parameter name for Eliminate pragma).
11232 2004-04-22 Laurent GUERBY <laurent@guerby.net>
11234 PR optimization/14984
11235 PR optimization/14985
11236 * trans.c (gigi): Fix non determinism leading to bootstrap
11237 comparison failures.
11239 2004-04-21 Pascal Obry <obry@gnat.com>
11241 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
11242 passed to spawnvp() to properly handle program pathname with spaces on
11245 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
11247 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
11248 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
11249 unlocked in case of exceptions.
11251 2004-04-21 Joel Brobecker <brobecker@gnat.com>
11253 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
11254 This function does not exist anymore.
11256 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
11258 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
11260 * link.c: Move variables to the __gnat name space.
11262 * Makefile.in: list link.o explicitly when needed.
11264 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
11266 2004-04-21 Javier Miranda <miranda@gnat.com>
11268 * einfo.adb (Original_Access_Type): New subprogram
11269 (Set_Original_Access_Type): New subprogram
11270 (Write_Field21_Name): Write the name of the new field
11272 * einfo.ads (Original_Access_Type): New field present in access to
11274 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
11275 E_Anonymous_Access_Protected_Subprogram_Type.
11277 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
11280 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
11281 to anonymous access to subprogram types.
11283 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
11284 to subprogram types.
11286 * sem_ch3.adb (Access_Definition): Complete decoration of entities
11287 corresponding to anonymous access to subprogram types.
11288 (Analyze_Component_Declaration): Add new actual to the call to
11289 subprogram replace_anonymous_access_to_protected_subprogram.
11290 (Array_Type_Declaration): Add new actual to the call to subprogram
11291 replace_anonymous_access_to_protected_subprogram.
11292 (Process_Discriminants): Add new actual to the call to subprogram
11293 replace_anonymous_access_to_protected_subprogram.
11294 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
11296 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
11299 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
11300 access to subprogram types.
11302 * sem_util.adb (Has_Declarations): Addition of package_specification
11305 2004-04-21 Ed Schonberg <schonberg@gnat.com>
11307 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
11308 inlined flags to renamed entity only if in current unit.
11310 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
11312 * s-parint.ads: Add DSA implementation marker.
11314 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
11315 value of System.Partition_Interface.DSA_Implementation to determine
11316 what version of the distributed systems annex is available (no
11317 implementation, GLADE, or PolyORB).
11319 2004-04-21 Joel Brobecker <brobecker@gnat.com>
11321 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
11323 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11325 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
11326 with new type if alias sets differ.
11327 Fixes ACATS c41103b.
11329 2004-04-21 Vincent Celier <celier@gnat.com>
11331 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
11332 Add array Lang_Args for the language specific compiling argument
11335 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
11337 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
11339 * gnat_rm.texi: Update the descripton of the Eliminate pragma
11340 according to the recent changes in the format of the parameters of the
11341 pragma (replacing Homonym_Number with Source_Location).
11343 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
11345 * 5isystem.ads: Removed, unused.
11347 * gnat_rm.texi: Redo 1.13 change.
11349 2004-04-19 Robert Dewar <dewar@gnat.com>
11351 * s-stoele.ads: Clean up definition of Storage_Offset (the new
11352 definition is cleaner, avoids the kludge of explicit Standard operator
11353 references, and also is consistent with a visible System.Address with
11354 no visible operations.
11356 * s-geveop.adb: Add declarations to avoid assumption of visible
11357 operations on type System.Address (since these might not be available
11358 if Address is a non-private type for which the operations
11359 are made abstract).
11361 * sem_eval.adb: Minor reformatting
11363 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
11364 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
11365 reformatting (new function spec format).
11367 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
11368 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
11369 s-caun64.adb: Add declarations to avoid assumption of visible
11370 operations on type System.Address (since these might not be available
11371 if Address is a non-private type for which the operations are made
11374 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
11376 * exp_intr.adb: Minor comment update
11378 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
11380 * 5omastop.adb: Add declarations to avoid assumption of visible
11381 operations on type System.Address (since these might not be available
11382 if Address is a non-private type for which the operations
11383 are made abstract).
11385 2004-04-19 Vincent Celier <celier@gnat.com>
11387 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
11389 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
11392 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
11394 Call Check with Process_Languages.
11395 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
11396 with Process_Languages.
11397 (Recursive_Check): New Boolean parameter Process_Languages. Call
11398 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
11401 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
11403 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
11404 parameter Ada_Main, defaulted to True.
11405 Check for Ada specific characteristics only when Ada_Main is True.
11407 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
11409 * prj.adb: (Project_Empty): Add new Project_Data components.
11411 * prj.ads: New types and tables for non Ada languages.
11412 (Project_Data): New components Languages, Impl_Suffixes,
11413 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
11414 Include_Path, Include_Data_Set.
11416 * prj-env.ads, prj-env.adb: Minor reformatting
11418 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
11419 Put subprograms in alphabetical order
11421 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
11422 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
11425 * mlib-prj.adb: Back out modification in last version, as they are
11427 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
11429 * make.adb: (Mains): Moved to package Makeutl
11430 (Linker_Opts): Moved to package Makeutl
11431 (Is_External_Assignment): Moved to package Makeutl
11432 (Test_If_Relative_Path): Moved to package Makeutl
11433 (Gnatmake): Move sorting of linker options to function
11434 Makeutl.Linker_Options_Switches.
11436 * makeutl.ads, makeutl.adb: New files.
11438 * Makefile.in: Add makeutl.o to the object files for gnatmake
11440 * makeusg.adb: Add line for new switch -eL.
11442 * gnatls.adb (Image): New function.
11443 (Output_Unit): If in verbose mode, output the list of restrictions
11444 specified by pragmas Restrictions.
11446 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
11449 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
11450 needed, to put it in the range 1970 (included) - 2026 (excluded).
11451 (Time_Of): Do not shift Unix_Min_Year (1970).
11452 Shift the date by multiple of 56 years, if needed, to put it in the
11453 range 1970 (included) - 2026 (excluded).
11455 * adaint.h, adaint.c (__gnat_set_executable): New function.
11457 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11459 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
11460 and pop GC context.
11461 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
11462 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
11463 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
11464 (tree_transform, case N_Code_Statement): Likewise.
11465 (gnat_expand_stmt, case LABEL_STMT): Don't look at
11466 LABEL_STMT_FIRST_IN_EH.
11467 (gnat_expand_stmt, case ASM_STMT): New case.
11469 * utils2.c (build_unary_op): Properly set TREE_READONLY of
11470 UNCONSTRAINED_ARRAY_REF.
11472 * utils.c (poplevel): Temporarily push/pop GC context around inline
11473 function expansion.
11475 * decl.c (maybe_variable): Properly set TREE_READONLY of
11476 UNCONSTRAINED_ARRAY_REF.
11477 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
11479 * ada-tree.def: (ASM_STMT): New.
11481 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
11482 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
11483 ASM_STMT_INPUT): New.
11484 (ASM_STMT_CLOBBER): Likewise.
11486 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
11488 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
11489 general rcheck mechanism to raise Program_Error for E.4(18), instead
11490 of a custom raiser in System.Partition_Interface.
11491 Part of general cleanup work before PolyORB integration.
11493 * snames.ads, snames.adb: Add new runtime library entities and names
11496 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
11498 (Build_Subprogram_Id): New subprogram provided by exp_dist
11499 Code reorganisation in preparation for PolyORB integration.
11501 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
11503 (Build_Subprogram_Id): New subprogram provided by exp_dist
11505 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
11506 actual parameter types for call to dereference of an
11507 access-to-subprogram type.
11509 * rtsfind.ads: Add new runtime library entities and names for PolyORB
11512 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
11513 instead, which has the same behaviour here since we never pass it a
11516 * link.c (run_path_option, Solaris case): Use -Wl, as for other
11519 * Makefile.in: adjust object file lists for gnatlink and gnatmake
11520 to account for new dependency upon Interfaces.C.Strings + link.o
11521 For x86 FreeBSD, use 86numaux.
11523 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
11524 from Mlib.Tgt to Mlib.
11526 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
11527 target-independent.
11529 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
11530 target-specific versions of this subprogram, now implemented as a
11531 target-independent function in Mlib.
11533 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
11534 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
11535 (Linker_Library_Path_Option): Remove target-specific versions of this
11536 subprogram, now implemented as a target-independent function in Mlib.
11538 * atree.adb: (Allocate_Initialize_Node): New subprogram.
11539 Factors out node table slots allocation.
11540 (Fix_Parents): New subprogram.
11541 Encapsulate the pattern of fixing up parent pointers for syntactic
11542 children of a rewritten node.
11543 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
11544 (Rewrite): Use New_Copy when creating saved copy of original node.
11545 (Replace): Use Copy_Node to copy nodes.
11547 2004-04-19 Javier Miranda <miranda@gnat.com>
11549 * sprint.adb (Sprint_Node_Actual): Give support to the new
11550 Access_To_Subprogram node available in Access_Definition nodes. In
11551 addition, give support to the AI-231 node fields: null-exclusion,
11552 all-present, constant-present.
11554 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
11556 * sinfo.ads, sinfo.adb:
11557 New field Access_To_Subprogram_Definition in Access_Definition nodes
11559 * sem_ch6.adb (Process_Formals): Move here the code that creates and
11560 decorates internal subtype declaration corresponding to the
11561 null-excluding formal. This code was previously in Set_Actual_Subtypes.
11562 In addition, carry out some code cleanup on this code. In case of
11563 access to protected subprogram call
11564 Replace_Anonymous_Access_To_Protected_Subprogram.
11565 (Set_Actual_Subtypes): Code cleanup.
11567 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
11568 Find_Type in case of anonymous access renamings. Add warning in case of
11569 null-excluding attribute used in anonymous access renaming.
11571 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
11574 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
11576 (Access_Definition): In case of anonymous access to subprograms call
11577 the corresponding semantic routine to decorate the node.
11578 (Access_Subprogram_Declaration): Addition of some comments indicating
11579 some code that probably should be added here. Detected by comparison
11580 with the access_definition subprogram.
11581 (Analyze_Component_Declaration): In case of access to protected
11582 subprogram call Replace_Anonymous_Access_To_Protected.
11583 (Array_Type_Declaration): In case of access to protected subprogram call
11584 Replace_Anonymous_Access_To_Protected_Subprogram.
11585 (Process_Discriminants): In case of access to protected subprogram call
11586 Replace_Anonymous_Access_To_Protected_Subprogram.
11588 * par.adb (P_Access_Definition): New formal that indicates if the
11589 null-exclusion part was present.
11590 (P_Access_Type_Definition): New formal that indicates if the caller has
11591 already parsed the null-excluding part.
11593 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
11594 (P_Identifier_Declarations): Code cleanup and give support to renamings
11595 of anonymous access to subprogram types.
11596 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
11597 (P_Array_Type_Definition): Give support to AI-254.
11598 (P_Component_Items): Give support to AI-254.
11599 (P_Access_Definition): New formal that indicates if the header was
11600 already parsed by the caller.
11601 (P_Access_Type_Definition): New formal that indicates if the caller has
11602 already parsed the null-excluding part.
11604 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
11605 call to P_Access_Definition.
11607 2004-04-19 Geert Bosch <bosch@gnat.com>
11609 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
11610 the delicate semantics of floating-point to integer conversion.
11611 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
11613 * eval_fat.adb (Machine_Mantissa): Moved to spec.
11614 (Machine_Radix): New function.
11616 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
11618 (Machine_Radix): New function also for use in conversion checks.
11620 2004-04-19 Ed Schonberg <schonberg@gnat.com>
11622 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
11624 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
11625 to decorate the access-to-protected subprogram and the equivalent type.
11627 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
11628 to anonymous access to subprogram types.
11630 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
11631 constant-folding, for legality checks in contexts that require an RM
11634 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
11635 temporary but stack checking is not enabled, increment serial number
11636 to so that symbol generation is consistent with and without stack
11639 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
11640 independent on whether stack checking is enabled, caller must check
11641 the corresponding flag.
11643 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
11645 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
11646 parent if it has discriminants.
11647 (Build_Derived_Private_Type): Constructed full view does
11648 not come from source.
11649 (Process_Discriminants): Default discriminants on a tagged type are
11650 legal if this is the internal completion of a private untagged
11653 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
11654 no constraint checks, because it corresponds to an existing object.
11656 * sem_prag.adb (Process_Convention): Pragma applies
11657 only to subprograms in the same declarative part, i.e. the same unit,
11658 not the same scope.
11660 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
11661 ignore type mismatch on a numeric conversion if expression comes from
11664 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
11666 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
11667 Homonym_Number parameter, add processing for Source_Location parameter
11669 (Check_Eliminated): Remove the check for homonym numbers, add the check
11670 for source location traces.
11672 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
11673 with Arg_Source_Location corresponding to the changes in the format of
11676 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
11677 Eliminate pragma corresponding to the changes in the format of the
11678 pragma: Homonym_Number is replaced with Source_Location, two ways of
11679 distinguishing homonyms are mutially-exclusive.
11681 2004-04-19 Joel Brobecker <brobecker@gnat.com>
11683 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
11685 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
11686 No_Dollar_In_Label, no longer necessary, as it is always True.
11687 (Strip_Suffixes): Likewise.
11689 2004-04-19 Gary Dismukes <dismukes@gnat.com>
11691 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
11692 modulus for compatibility with size clause on targets with 16-bit
11695 * layout.adb (Discrimify): In the case of private types, set Vtyp to
11696 full type to fix type mismatches on calls to size functions for
11697 discriminant-dependent array components.
11699 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
11701 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
11704 2004-04-19 Pascal Obry <obry@gnat.com>
11706 * mdll-utl.adb (Locate): New version is idempotent.
11708 2004-04-17 Laurent Guerby <laurent@guerby.net>
11710 PR ada/14988 (partial)
11711 * impunit.adb: Fix typo.
11713 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
11715 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
11716 and install-rts-cert targets. Remove all gnatlib and gnattools
11717 targets and all other rts-* targets (moved to libada). Remove (now)
11718 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
11719 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
11721 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11723 * trans.c (tree_transform): Shortcut returning error_mark_node for
11724 statements in annotate_only_mode.
11725 (tree_transform, case N_Label, case N_Return_Statement,
11726 N_Goto_Statement): Make statement tree instead of generating code.
11727 (tree_transform, case N_Assignment_Statement): No longer check
11728 type_annotate_only.
11729 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
11731 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
11733 (gnat_to_gnu): Collect any RTL generated and deal with it.
11734 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
11735 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
11736 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
11738 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
11740 * ada-tree.def (EXPR_STMT): Fix typo in name.
11741 (BLOCK_STMT, IF_STMT): New nodes.
11743 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
11744 LABEL_STMT_FIRST_IN_EH): New macros.
11745 (RETURN_STMT_EXPR): Likewise.
11747 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
11748 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
11750 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
11752 * atree.ads: Correct documentation on extended nodes.
11754 * link.c: Set run_path_option for FreeBSD.
11756 2004-04-08 Vincent Celier <celier@gnat.com>
11758 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
11759 one of the ALI file, do not link with DEC lib.
11761 * par.adb Remove the last two characters ("%s" or "%b") when checking
11762 if a language defined unit may be recompiled.
11764 2004-04-08 Ed Schonberg <schonberg@gnat.com>
11766 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
11767 removal of abstract operation leaves no possible interpretation for
11770 * sem_eval.adb (Eval_Qualified_Expression): Use
11771 Set_Raises_Constraint_Error on node when needed, so that it does not
11772 get optimized away by subsequent optimizations.
11774 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
11775 operands even when they are not wrapped in a type conversion.
11777 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
11779 * sem_prag.adb (Set_Exported): Warn about making static as result of
11780 export only when the export is coming from source. This may be not
11781 be true e.g. on VMS where we expand export pragmas for exception codes
11782 together with imported or exported exceptions, and we don't want the
11783 user to be warned about something he didn't write.
11785 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
11787 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
11788 duplication between normal entities and those declared as renamings.
11789 No functional change.
11791 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
11792 inline functions returning an unconstrained result.
11794 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
11796 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
11797 conform to what other front-ends do.
11799 2004-04-08 Doug Rupp <rupp@gnat.com>
11801 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
11804 2004-04-06 Pascal Obry <obry@gnat.com>
11806 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
11808 * osint.adb (Program_Name): Do not look past a directory separator.
11810 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
11812 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
11814 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
11815 requirement for preserving a copy of the original assignment node.
11817 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
11819 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
11821 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
11824 2004-04-06 Ed Schonberg <schonberg@gnat.com>
11826 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
11827 operator calls in functional notation, and apply
11828 Universal_Interpretation to operands, not to their type.
11830 2004-04-06 Robert Dewar <dewar@gnat.com>
11832 * 5wdirval.adb: Minor reformatting
11834 2004-04-06 Ed Falis <falis@gnat.com>
11836 * gnat_rm.texi: Improve a reference to the GCC manual
11838 2004-04-05 Vincent Celier <celier@gnat.com>
11840 * adaint.h, adaint.c: Add function __gnat_named_file_length
11842 * impunit.adb: Add Ada.Directories to the list
11844 * Makefile.in: Add VMS and Windows versions of
11845 Ada.Directories.Validity package body.
11847 * Makefile.rtl: Add a-direct and a-dirval
11849 * mlib-tgt.ads: Minor comment update.
11851 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
11852 a-direct.ads, a-direct.adb: New files.
11854 2004-04-05 Vincent Celier <celier@gnat.com>
11857 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
11858 just to the compiler.
11860 2004-04-05 Robert Dewar <dewar@gnat.com>
11862 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
11863 returned string is 1.
11865 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
11867 * eval_fat.ads: Minor reformatting
11869 * g-curexc.ads: Document that lower bound of returned string values
11872 * gnatlink.adb: Add ??? comment for previous change
11873 (need to document why this is VMS specific)
11875 * s-stoele.ads: Minor reformatting
11877 * tbuild.ads: Minor reformatting throughout (new function specs)
11879 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
11882 * scng.adb: Minor reformatting
11884 2004-04-05 Geert Bosch <bosch@gnat.com>
11886 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
11887 (Leading_Part): Still perform truncation to machine number if the
11888 specified radix_digits is greater or equal to machine_mantissa.
11890 2004-04-05 Javier Miranda <miranda@gnat.com>
11892 * par-ch3.adb: Complete documentation of previous change
11893 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
11894 (aliased must appear before constant).
11896 * par-ch4.adb: Complete documentation of previous change.
11898 * par-ch6.adb: Complete documentation of previous change.
11900 * sinfo.ads: Fix typo in commment.
11902 2004-04-05 Ed Schonberg <schonberg@gnat.com>
11904 * sem_ch3.adb (Inherit_Components): If derived type is private and has
11905 stored discriminants, use its discriminants to constrain parent type,
11906 as is done for non-private derived record types.
11908 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
11909 Ada 2005 AI-310: an abstract non-dispatching operation is not a
11910 candidate interpretation in an overloaded call.
11912 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
11913 expression is Null and target type is not an access type (e.g. a
11914 non-private address type).
11916 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
11918 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
11919 statement whose right-hand side is an inlined call, save a copy of the
11920 original assignment subtree to preserve enough consistency for
11921 Analyze_Assignment to proceed.
11923 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
11924 complete assignment subtree which is now unnecessary, as the expansion
11925 of inlined call has been improved to preserve a consistent assignment
11926 tree. Note_Possible_Modification must be called only
11927 after checks have been applied, or else unnecessary checks will
11930 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
11931 of explicit dereferences that do not Come_From_Source:
11932 - be selective on cases where we must go back to the dereferenced
11933 pointer (an assignment to an implicit dereference must not be
11934 recorded as modifying the pointer);
11935 - do not rely on Original_Node being present (Analyze_Assignment
11936 calls Note_Possible_Modification on a copied tree).
11938 * sem_warn.adb (Check_References): When an unset reference to a pointer
11939 that is never assigned is encountered, prefer '<pointer> may be null'
11940 warning over '<pointer> is never assigned a value'.
11942 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
11944 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
11947 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
11949 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
11950 libexc. We currently don't reference anything in this library and
11951 linking it in triggers linker warnings we don't want to see.
11953 * init.c: Update comments.
11955 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11957 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
11958 * utils.c (create_field_decl): Likewise.
11959 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
11961 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
11963 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
11964 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
11965 Add info directory entry and category.
11967 2004-04-02 Jan Hubicka <jh@suse.cz>
11969 * utils.c: Include function.h
11970 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
11972 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
11975 * Make-lang.in: Clean up generation of documentation
11977 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
11979 * xgnatug.adb: Removed, replaced by xgnatugn.adb
11981 * xgnatugn.adb: Replaces xgnatug.adb
11983 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
11985 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
11987 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11988 gnat_ug_wnt.texi: Removed.
11990 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
11992 * utils2.c: Update copyright notice.
11994 2004-04-01 Robert Dewar <dewar@gnat.com>
11996 * checks.adb: Minor reformatting throughout
11997 Note that prev checkin added RM reference to alignment warning
11999 2004-04-01 Ed Schonberg <schonberg@gnat.com>
12001 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
12002 non-static when building aggregate for bit-packed array.
12004 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
12005 function call that is itself the actual in a procedure call, build
12008 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
12009 a string literal, create a temporary for it, constant folding only
12010 handles scalars here.
12012 2004-04-01 Vincent Celier <celier@gnat.com>
12014 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
12015 Error_Msg_SP): New empty procedures to instantiate the Scanner.
12016 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
12018 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
12019 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
12020 and get the checksum.
12022 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
12024 Increase the Marking_Label at the end of the Multiple_Main_Loop,
12025 instead of at the beginning.
12027 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
12029 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
12032 * osint.ads (Multi_Unit_Index_Character): New Character global variable
12034 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
12037 * par.adb: Remove test on file name to detect language defined units.
12038 Add test on unit name, after parsing, to detect language defined units
12039 that are not compiled with -gnatg (except System.RPC and its children)
12041 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
12042 following units without style checking.
12044 * switch-c.adb: Change -gnatC to -gnateI
12046 * usage.adb: Document new switch -gnateInnn
12048 * scng.adb (Accumulate_Token_Checksum): New procedure
12049 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
12050 word or literal number.
12051 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
12054 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
12057 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
12058 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
12059 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
12060 5vtpopde.adb: Add missing 'constant' keywords.
12062 2004-04-01 Javier Miranda <miranda@gnat.com>
12064 * par-ch4.adb: (P_Allocator): Code cleanup
12066 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
12069 * sinfo.ads: Complete documentation of previous change
12071 2004-04-01 Pascal Obry <obry@gnat.com>
12073 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
12074 only on VMS. This special handling was done because an old GNU/ld bug
12075 on Windows which has been fixed.
12077 2004-04-01 GNAT Script <nobody@gnat.com>
12079 * Make-lang.in: Makefile automatically updated
12081 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12083 * decl.c (gnat_to_gnu_entity, make_type_from_size):
12084 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
12085 * trans.c (tree_transform, convert_with_check): Likewise.
12086 * utils.c (gnat_signed_or_unsigned_type): Likewise.
12087 (build_vms_descriptor, unchecked_convert): Likewise.
12088 * utils2.c (nonbinary_modular_operation): Likewise.
12090 2004-03-29 Javier Miranda <miranda@gnat.com>
12092 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
12093 (Install_Null_Excluding_Check): Local subprogram that determines whether
12094 an access node requires a runtime access check and if so inserts the
12095 appropriate run-time check.
12096 (Apply_Access_Check): Call Install_Null_Excluding check if required
12097 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
12099 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
12101 * einfo.ads: Fix typo in comment
12103 * exp_ch3.adb (Build_Assignment): Generate conversion to the
12104 null-excluding type to force the corresponding run-time check.
12105 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
12106 type to force the corresponding run-time check.
12108 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
12109 the null-excluding type to force the corresponding run-time check.
12111 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
12112 case of access types unless they have the null-excluding attribute.
12114 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
12117 * exp_util.ads: Fix typo in comment
12119 * par.adb (P_Null_Exclusion): New subprogram
12120 (P_Subtype_Indication): New formal that indicates if the null-excluding
12121 part has been scanned-out and it was present
12123 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
12125 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
12126 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
12127 type to force the corresponding run-time check
12128 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
12130 (Resolve_Array_Aggregate): Carry out some static checks
12131 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
12133 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
12134 attribute must be set only if specified by means of the null-excluding
12135 part. In addition, we must also propagate the access-constant attribute
12137 (Access_Subprogram_Declaration, Access_Type_Declaration,
12138 Analyze_Component_Declaration, Analyze_Object_Declaration,
12139 Array_Type_Declaration, Process_Discriminants,
12140 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
12141 and carry out some static checks.
12142 (Build_Derived_Access_Type): Set the null-excluding attribute
12143 (Derived_Type_Declaration, Process_Subtype): Carry out some static
12146 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
12148 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
12150 * sem_ch6.adb (Process_Formals): Carry out some static checks.
12151 (Set_Actual_Subtypes): Generate null-excluding subtype if the
12152 null-excluding part was present; it is not required to be done here in
12153 case of anonymous access types.
12154 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
12157 * sem_res.adb (Resolve_Actuals): Carry out some static check
12158 (Resolve_Null): Allow null in anonymous access
12160 * sinfo.adb: New subprogram Null_Exclusion_Present
12161 All_Present and Constant_Present available on access_definition nodes
12163 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
12164 object_declaration, derived_type_definition, component_definition,
12165 discriminant_specification, access_to_object_definition,
12166 access_function_definition, allocator, access_procedure_definition,
12167 access_definition, parameter_specification, All_Present and
12168 Constant_Present flags available on access_definition nodes.
12170 2004-03-29 Robert Dewar <dewar@gnat.com>
12172 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12173 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
12174 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
12175 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
12176 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
12177 sem_prag.adb: Updates to handle multiple units/file
12179 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
12181 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
12182 sem_util.adb: Minor reformatting
12184 * sem_ch12.adb: Add comment for previous change
12186 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
12188 * osint.adb (Executable_Prefix): Set Exec_Name to the current
12189 executable name when not initialized. Otherwise, use its current value.
12191 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
12192 initialize it to another executable name than the current one. This
12193 allows to configure paths for an executable name (gnatmake) different
12194 from the current one (gnatdist).
12196 2004-03-29 Ed Schonberg <schonberg@gnat.com>
12198 * exp_ch6.adb (Expand_Call): A call to a function declared in the
12199 current unit cannot be inlined if it appears in the body of a withed
12200 unit, to avoid order of elaboration problems in gigi.
12202 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
12203 information for protected (wrapper) operation as well, to simplify gdb
12206 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
12207 protected body, indicate that the entity for the generated spec comes
12208 from source, to ensure that references are properly generated for it.
12209 (Build_Body_To_Inline): Do not inline a function that returns a
12212 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
12213 apply convention to homonyms that are declared explicitly.
12215 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
12216 that renames an equality operator and the operands are overloaded,
12217 resolve them with the declared formal types, before rewriting as an
12220 2004-03-29 GNAT Script <nobody@gnat.com>
12222 * Make-lang.in: Makefile automatically updated
12224 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
12226 * memtrack.adb: Log realloc calls, which are treated as free followed
12229 2004-03-25 Vincent Celier <celier@gnat.com>
12231 * prj-makr.adb (Process_Directories): Detect when a file contains
12232 several units. Do not include such files in the config pragmas or
12233 in the naming scheme.
12235 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
12236 Resolve links only when not in Trusted_Mode.
12237 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
12238 Do not resolve links for the display names.
12240 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
12241 resolve links when computing the display names.
12243 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
12245 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
12246 attribute reference does not denote a subtype, it can be any
12247 expression that has a classwide type, potentially after an implicit
12248 dereference. In particular, the prefix can be a view conversion for
12249 a classwide type (for which Is_Object_Reference holds), but it can
12250 also be a value conversion for an access-to-classwide type. In the
12251 latter case, there is an implicit dereference, and the original node
12252 for the prefix does not verify Is_Object_Reference.
12254 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
12255 conversion of a discriminant-dependent component of a mutable object
12258 2004-03-25 Ed Schonberg <schonberg@gnat.com>
12260 * freeze.adb (Freeze_Entity): When an inherited subprogram is
12261 inherited, has convention C, and has unconstrained array parameters,
12262 place the corresponding warning on the derived type declaration rather
12263 than the original subprogram.
12265 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
12266 indication on renaming declaration, if formal has a box and actual
12269 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
12270 determine whether to generate an implicit or explicit reference to
12271 the renamed entity.
12273 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
12274 subprogram renaming comes from a defaulted formal subprogram in an
12277 2004-03-25 Gary Dismukes <dismukes@gnat.com>
12279 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
12280 value expressions to ensure that calls within a component definition
12281 will be checked (since those are evaluated during the record type's
12284 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
12286 * s-tpobop.adb: Code clean up:
12287 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
12289 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
12291 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
12293 * Makefile.in: Clean up in the ravenscar run time.
12295 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12297 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
12298 of No_Strict_Aliasing to build_pointer_type_for_mode.
12299 * utils.c (update_pointer_to): Walk pointer and ref chains.
12301 2004-03-22 Cyrille Comar <comar@act-europe.fr>
12303 * ali.ads: Fix Comment about Dynamic_Elab.
12305 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
12306 Has_RACW, Is_Generic, etc.)
12307 (Output_Object, Gnatls): Take into account ALI files not attached to
12310 2004-03-22 Vincent Celier <celier@gnat.com>
12312 * gprep.adb: Change all String_Access to Name_Id
12313 (Is_ASCII_Letter): new function
12314 (Double_File_Name_Buffer): New procedure
12315 (Preprocess_Infile_Name): New procedure
12316 (Process_Files): New procedure
12317 (Gnatprep): Check if output and input are existing directories.
12318 Call Process_Files to do the real job.
12320 2004-03-22 Robert Dewar <dewar@gnat.com>
12322 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
12323 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
12325 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
12327 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
12328 case when the source contains only comments.
12330 2004-03-22 Ed Schonberg <schonberg@gnat.com>
12332 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
12333 declaration for a child subprogram body that acts as a spec, indicate
12334 that the entity in the declaration needs debugging information.
12336 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
12337 full view if the subtype is created for a constrained record component;
12338 gigi has enough information to construct the record, and there is no
12339 place in the tree for the declaration.
12341 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
12342 serial number for the dummy body that is built for analysis, to avoid
12343 inconsistencies in the generation of internal names when compiling
12346 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
12348 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
12351 2004-03-22 GNAT Script <nobody@gnat.com>
12353 * Make-lang.in: Makefile automatically updated
12355 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12357 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
12358 * trans.c (tree_transform, emit_index_check): Likewise.
12359 * utils.c (build_template): Likewise.
12360 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
12361 (maybe_unconstrained_array, unchecked_convert): Likewise.
12362 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
12363 (build_unary_op): Likewise.
12364 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
12365 (fill_vms_descriptor): Likewise.
12366 (build_call_alloc_dealloc): Likewise.
12368 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
12370 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
12373 * gnat_ug.texi: Add info directory category and entry.
12374 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
12375 gnat_ug_wnt.texi: Regenerate.
12377 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
12379 * ada-tree.h: Update copyright notice.
12380 Minor reformatting.
12382 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
12384 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
12385 as regular exception objects and not as mere integers representing the
12386 condition code. The latter approach required some dynamics to mask off
12387 severity bits, which did not fit well into the GCC table based model.
12388 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
12389 exception data objects. We don't it and it would conflict with the other
12390 external symbol we have to generate for such exceptions.
12392 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
12393 the special code for VMS exceptions, since these are now represented
12394 as regular exceptions objects.
12396 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12398 * decl.c (debug_no_type_hash): Remove.
12399 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
12400 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
12402 2004-03-19 Laurent Guerby <laurent@guerby.net>
12404 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
12405 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
12407 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12409 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
12410 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
12411 (TYPE_RM_SIZE_INT): Directly use type.values.
12412 (TREE_LOOP_ID): Clean up check.
12413 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
12414 TYPE_VALUES, not TYPE_FIELDS.
12415 * trans.c (convert_with_check): Delay access of bounds of basetype
12416 until sure is numeric.
12418 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
12420 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
12423 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
12424 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
12425 Specific.Set instead of direct call to e.g pthread_setspecific.
12427 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
12429 * adaint.c: Update comments.
12431 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
12432 GNATLIB_SHARED for FreeBSD.
12434 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
12436 * init.c [VxWorks]: Do not fix the stack size for the environment task.
12437 When needed (stack checking) the stack size is retrieved
12438 from the VxWorks kernel.
12440 * Makefile.in: Flag -nostdinc is required when building the run time
12441 for avoiding looking for files in the base compiler.
12442 Add the VxWorks specific version of the package body for
12443 System.Stack_checking.Operations (5zstchop.adb).
12445 * Make-lang.in: Add the object file for
12446 System.Stack_Checking.Operations.
12448 * Makefile.rtl: Add object file for the package
12449 System.Stack_Checking.Operations.
12451 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
12453 * s-stache.ads, s-stache.adb: Move the operations related to stack
12454 checking from this package to package System.Stack_Checking.Operations.
12455 This way, stack checking operations are only linked in the final
12456 executable when using the -fstack-check flag.
12458 2004-03-18 Doug Rupp <rupp@gnat.com>
12460 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
12463 * 5qsystem.ads, 5xcrtl.ads: New files.
12465 2004-03-18 Vincent Celier <celier@gnat.com>
12467 * prj.adb (Reset): Reset hash table Files_Htable
12469 * prj-env.adb (Source_Paths, Object_Paths): New tables.
12470 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
12471 the procedures Add_To_Path_File.
12472 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
12473 making sure that each directory is present only once and, for object
12474 dirs, when a directory already present is added, the duplicate is
12475 removed and the directory is always put as the last in the table.
12476 Write the path files at the end of these accumulations.
12478 * prj-nmsc.adb (Record_Source): Add source file name in hash table
12479 Files_Htable for all sources.
12481 * prj-proc.adb (Process): Remove restrictions between not directly
12482 related extending projects.
12484 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
12486 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
12487 (Find_Sources): Minor speed optimization.
12489 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
12490 parameter Trusted_Mode.
12492 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
12494 * scn.adb (Determine_License): Take into account a degenerated case
12495 when the source contains only comments.
12497 2004-03-18 Ed Schonberg <schonberg@gnat.com>
12499 * sem_warn.adb (Check_References): For a warning on a selected
12500 component that does not come from source, locate an uninitialized
12501 component of the record type to produce a more precise error message.
12503 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
12505 * 3zsoccon.ads: Fix multicast options.
12507 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
12510 2004-03-15 Robert Dewar <dewar@gnat.com>
12512 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
12513 pragma used for a private type.
12515 * lib-xref.adb (Generate_Reference): Do not generate warning if
12516 reference is in a different unit from the pragma Unreferenced.
12518 * 5vtpopde.adb: Minor reformatting
12519 Fix casing of To_Task_ID
12521 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
12522 flag if we have an unchecked conversion to an access type in the same
12525 2004-03-15 Geert Bosch <bosch@gnat.com>
12527 * a-ngcoty.adb (Modulus): In alternate formula for large real or
12528 imaginary parts, use Double precision throughout.
12530 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
12531 we want to be able to compile run-time with -gnata for testing, but
12532 this may also be instantiated in user code that is compiled with -gnata.
12534 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
12536 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
12537 codes. Having a separate type for this is useful to enforce consistency
12538 throughout the various run-time units.
12539 (Exception_Data): Use Exception_Code for Import_Code.
12541 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
12542 Natural and Integer in various places.
12543 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
12544 with the severity bits masked off.
12545 (Register_VMS_Exception): Handle the additional exception data pointer
12548 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
12549 component, now reflected by an exported accessor.
12550 (is_handled_by): New routine to compute whether the propagated
12551 occurrence matches some handler choice specification. Extracted out of
12552 get_action_description_for, and expanded to take care of the VMS
12554 (get_action_description_for): Use is_handled_by instead of an explicit
12555 complex condition to decide if the current choice at hand catches the
12556 propagated occurrence.
12558 * raise.h (Exception_Code): New type for C.
12560 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
12561 System.Standard_Library.Exception_Code, to allow references from the
12562 pragma import/export expander.
12564 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
12565 New accessors to allow easy access to GNAT exception data
12567 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
12568 redundant Handled_By_Others component, helper for the personality
12569 routine which will now be able to call the appropriate exception data
12572 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
12573 component of Standard_Exception_Type to be the closest possible to
12574 Exception_Code in System.Standard_Library, that we cannot get at this
12575 point. Expand a ??? comment to notify that this type node should
12576 probably be rewritten later on.
12578 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
12579 registration call to include a pointer to the exception object in the
12582 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
12583 instead of int and explicit bitmasks.
12585 2004-03-15 Vincent Celier <celier@gnat.com>
12587 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
12588 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
12590 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
12591 longer needed now that it is in the spec of
12592 System.Tasking.Task_Attributes.
12594 * adaint.h, adaint.c: (__gnat_create_output_file): New function
12596 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
12598 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
12600 * make.adb (Gnatmake): Do not check the executable suffix; it is being
12601 taken care of in Scan_Make_Arg.
12602 (Scan_Make_Arg): Add the executable suffix only if the argument
12603 following -o, in canonical case, does not end with the executable
12604 suffix. When in verbose mode and executable file name does not end
12605 with executable suffix, output the executable name, in canonical case.
12607 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
12608 to avoid warnings when instantiating Ada.Task_Attributes.
12611 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
12612 in the correct order.
12614 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
12615 redirect standard output and error to a file for the invocation of the
12616 compiler, then read the file.
12618 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
12619 directory, instead of the Value.
12620 (Find_Source_Dirs): Remove useless code & comments.
12622 2004-03-15 Ed Schonberg <schonberg@gnat.com>
12624 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
12625 tagged type is inherited, and the parent operation is not frozen yet,
12626 force generation of a freeze node for the inherited operation, so the
12627 corresponding dispatch entry is properly initialized.
12628 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
12629 when looking for user-defined equality operation.
12631 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
12632 boolean when locating primitive equality of tagged component.
12634 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
12635 bit-aligned field and the right-hand side a string literal, introduce
12636 a temporary before expanding assignment into a loop.
12638 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
12639 priority in full, to ensure that any expanded subepxressions of it are
12640 elaborated in the scope of the init_proc.
12642 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
12643 after object declaration, skipping over code that may have been
12644 generated for validity checks.
12646 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
12647 discriminants, ignore the known discriminants of its full view, if
12648 any, to check legality.
12650 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
12651 component if type has unknown discriminants.
12652 (Analyze_Private_Extension_Declaration): Discriminant constraint is
12653 null if type has unknown discriminants.
12655 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
12656 for end label when present.
12658 * s-fileio.adb (Open): When called with a C_Stream, use given name for
12659 temporary file, rather than an empty string.
12661 2004-03-15 Ed Falis <falis@gnat.com>
12663 * s-thread.adb: Removed, no longer used.
12665 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12667 * decl.c (target.h): Now include.
12668 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
12669 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
12670 (validate_size): For POINTER_TYPE, get smallest size permitted on
12673 * fe.h: Sort Einfo decls and add Set_Mechanism.
12675 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
12676 (ada/decl.o): Depends on target.h.
12678 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
12679 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
12681 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
12683 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
12685 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
12686 Insert_Dereference_Action when rewriting an implicit dereference into
12687 an explicit one, this will be taken care of during expansion of the
12688 explicit dereference.
12689 (Expand_N_Slice): Same. Always do the rewriting, even for the case
12690 of non-packed slices, since the dereference action generated by
12691 expansion of the explicit dereference is needed in any case.
12692 (Expand_N_Selected_Component): When rewriting an implicit dereference,
12693 analyze and resolve the rewritten explicit dereference so it is seen
12695 (Insert_Dereference_Action): This procedure is now called only for the
12696 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
12697 dereferences that do not come from source (including explicit
12698 dereferences resulting from rewriting implicit ones), but do not
12699 recursively insert a check for the dereference nodes contained within
12701 (Insert_Dereference_Action): Clarify and correct comment.
12703 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
12706 Move language detection to the top level.
12707 * config-lang.in: Build by default.
12709 2004-03-05 Robert Dewar <dewar@gnat.com>
12711 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
12713 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
12714 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
12715 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
12716 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
12717 unchecked conversion to spec to avoid warnings.
12719 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
12722 * 7stpopsp.adb: Correct casing in To_Task_ID call
12724 * a-strsea.ads, a-strsea.adb: Minor reformatting
12726 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
12728 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
12729 Adjust Max_Msg_Length to be clearly large enough.
12731 * fe.h: Define In_Same_Source_Unit
12733 * osint.adb: Add pragma Warnings Off to suppress warnings
12734 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
12737 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
12739 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
12741 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
12743 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
12745 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
12747 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
12748 node. We now do generate them for gcc back end.
12750 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
12753 * sinput-c.adb: Fix bad name in header.
12754 Add pragma Warnings Off to suppress aliasing warning.
12756 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
12758 * snames.h, snames.ads, snames.adb: Add entry for pragma
12759 No_Strict_Aliasing.
12761 2004-03-05 Vincent Celier <celier@gnat.com>
12763 * prj-com.ads: Add hash table Files_Htable to check when a file name
12764 is already a source of another project.
12766 * prj-nmsc.adb (Record_Source): Before recording a new source, check
12767 if its file name is not already a source of another project. Report an
12770 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
12771 source file name, call gnatpp with all the sources of the main project.
12773 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
12776 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
12777 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
12778 /RUNTIME_SYSTEM=, converted to --RTS=
12779 /NOTABS, converted to -notabs
12781 2004-03-05 Pascal Obry <obry@gnat.com>
12783 * make.adb: Minor reformatting.
12785 2004-03-05 Ed Schonberg <schonberg@gnat.com>
12787 Part of implemention of AI-262.
12788 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
12790 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
12793 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
12794 when component type is a partially constrained class-wide subtype.
12795 (Constrain_Discriminated_Type): If parent type has unknown
12796 discriminants, a constraint is illegal, even if full view has
12798 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
12799 with unknown discriminants whose full view is a discriminated record.
12801 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
12802 flag, to handle properly derivations of tagged types with unknown
12804 (Analyze_Package_Spec, Analyze_Package_Body): Install
12805 Private_With_Clauses before analyzing private part or body.
12807 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
12808 Has_Discriminants can be true for a given type (documentation).
12810 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
12812 * s-restri.ads: Fix license (GPL->GMGPL).
12814 * s-tassta.adb: Minor reformatting.
12816 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
12817 by calls to Exit_One_ATC_Level, since additional clean up is performed
12820 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
12821 by calls to Exit_One_ATC_Level, since additional clean up is performed
12824 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12826 * trans.c: Reflect GCC changes to fix bootstrap problem.
12827 Add warning for suspicious aliasing unchecked conversion.
12829 2004-03-05 GNAT Script <nobody@gnat.com>
12831 * Make-lang.in: Makefile automatically updated
12833 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
12835 * ali.adb (Read_Instantiation_Instance): Do not modify the
12836 current_file_num when reading information about instantiations, since
12837 this corrupts files in later references.
12839 2004-03-02 Vincent Celier <celier@gnat.com>
12841 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
12842 before checking if it is read-only.
12844 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
12845 of SRC_DIRS and eliminate duplicates.
12847 * gprcmd.adb: Replace command "path" with command "path_sep" to return
12848 the path separator.
12849 (Usage): Document path_sep
12851 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
12852 C++ compiler. No need for a script.
12853 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
12854 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
12857 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
12858 where there are Ada sources.
12859 (Set_Ada_Paths): Only add to the include path the source dirs of project
12861 (Add_To_Path): Add the Display_Values of the directories, not their
12864 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
12867 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
12869 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
12870 Value is canonicalized.
12871 (Language_Independent_Check): Do not copy Value to Display_Value when
12872 canonicalizing Value.
12874 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
12875 path to find limited with cycles.
12876 (Parse_Single_Project): Use canonical cased path to find the end of a
12879 2004-03-02 Ed Schonberg <schonberg@gnat.com>
12881 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
12882 and not a child unit.
12884 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
12885 appear in a with_clause.
12887 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
12888 only happen in type_annotate mode, do not try to elaborate it.
12890 * exp_util.adb (Force_Evaluation): If expression is a selected
12891 component on the left of an assignment, use a renaming rather than a
12892 temporary to remove side effects.
12894 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
12895 inlined instance body, which is analyzed before the end of the
12898 2004-03-02 Robert Dewar <dewar@gnat.com>
12900 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
12901 sem_ch4.adb: Use new feature for substitution of keywords in VMS
12903 * errout.ads, errout.adb: Implement new circuit for substitution of
12906 * sem_case.adb (Analyze_Choices): Place message properly when case is
12907 a subtype reference rather than an explicit range.
12909 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
12911 2004-03-02 Doug Rupp <rupp@gnat.com>
12913 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
12915 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
12917 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
12919 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12921 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
12924 2004-02-25 Robert Dewar <dewar@gnat.com>
12926 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
12927 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
12928 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
12929 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
12930 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
12931 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
12932 the defining instance of the type to avoid aliasing problems.
12933 Fix copyright header. Fix bad comments in package header.
12935 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
12937 2004-02-25 Ed Schonberg <schonberg@gnat.com>
12939 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
12940 rewritten as references when aliased through an address clause.
12942 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
12943 whether call can be interpreted as an indirect call to the result of a
12944 parameterless function call returning an access subprogram.
12946 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
12949 * exp_ch7.adb (Make_Clean): Remove generation of calls to
12950 Unlock[_Entries], since this is now done by Service_Entries directly.
12952 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
12954 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
12955 Requeue_Call for better code readability. Change spec and update calls:
12956 PO_Service_Entries now unlock the PO on exit.
12957 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
12958 PO_Service_Entries.
12960 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
12962 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
12964 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
12966 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
12967 protected subprogram call and analyzing the result of such expanding
12968 in case when the called protected subprogram is eliminated.
12970 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
12973 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
12975 * Makefile.in: Clean ups.
12977 2004-02-23 Ed Schonberg <schonberg@gnat.com>
12979 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
12980 protected operations if original subprogram is flagged as eliminated.
12981 (Expand_N_Subprogram_Body): For a protected operation, create
12982 discriminals for next operation before checking whether the operation
12985 * exp_ch9.adb (Expand_N_Protected_Body,
12986 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
12987 for internal protected operations if the original subprogram is
12990 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
12991 declared in a single protected object.
12993 2004-02-23 Vincent Celier <celier@gnat.com>
12995 * prj-attr.adb: Make attribute Builder'Executable an associative array,
12996 case insensitive if file names are case insensitive, instead of a
12997 standard associative array.
12999 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
13000 them as case insensitive on platforms where the file names are case
13003 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
13004 project file has already been parsed that canonical path are compared.
13006 2004-02-23 Robert Dewar <dewar@gnat.com>
13008 * sinput-c.ads: Correct bad unit title in header
13010 * freeze.adb: Minor reformatting
13012 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13014 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
13015 nonaddressable COMPONENT_REF that is removing padding that we are
13016 taking the address of, take the address of the padded record instead
13017 if item is variable size.
13019 2004-02-20 Robert Dewar <dewar@gnat.com>
13021 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
13023 2004-02-20 Ed Schonberg <schonberg@gnat.com>
13025 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
13026 itype references for the constrained designated type of a component
13027 whose base type is already frozen.
13029 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
13031 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
13032 avoid GCC warnings.
13034 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
13036 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
13037 identifier for a phantom package that rewrites the formal package
13038 declaration with a box. The Add semantic decorations for the defining
13039 identifier from the original node (that represents the formal package).
13041 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
13043 * Make-lang.in (ada/stamp-sdefault): Use the top level
13046 2004-02-19 Richard Henderson <rth@redhat.com>
13048 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
13050 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
13052 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
13053 Scan_ALI can be used for multiple ALI files without reinitializing
13056 2004-02-18 Robert Dewar <dewar@gnat.com>
13058 * debug.adb: Minor reformatting.
13060 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13062 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
13063 to zero if there is an address clause.
13065 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
13067 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
13069 2004-02-18 Gary Dismukes <dismukes@gnat.com>
13071 * layout.adb (Layout_Component_List): Revise generation of call to
13072 discriminant-checking function to pass selections of all of the type's
13073 discriminants rather than just the variant-controlling discriminant.
13075 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
13077 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
13078 fail in the current setup and triggers spurious system error messages.
13079 Pretend it occurred and failed instead.
13081 2004-02-18 Vincent Celier <celier@gnat.com>
13083 * bld.adb: Mark FLDFLAGS as saved
13084 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
13085 it is not the root project. Put each directory to be
13086 extended between double quotes to prevent it to be expanded on Windows.
13087 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
13088 the project file. Set them back to their initial values if they have not
13089 been set in the project file.
13091 * gprcmd.adb: (Gprdebug, Debug): New global variables
13092 (Display_Command): New procedure
13093 (Usage): Document new command "linkopts"
13094 Call Display_Command when env var GPRDEBUG has the value "TRUE"
13095 Implement new command "linkopts"
13096 Remove quotes that may be around arguments for "extend"
13097 Always call Normalize_Pathname with arguments formatted for the platform
13099 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
13100 Change @echo to @$(display) in target clean to be able to clean silently
13102 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
13104 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
13107 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
13108 = Extending_All when current project is an extending all project.
13110 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
13111 set to True only for LINK command, after Unix switch -o.
13112 (Process_Arguments): Set Output_File_Expected to True for LINK command
13113 after Unix switch -o. When Output_File_Expected is True, never add an
13114 extension to a file name.
13116 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
13117 option file name, only to the --for-linker= switch.
13118 (Option_File_Name): If option file name do not end with ".opt", append
13121 2004-02-18 GNAT Script <nobody@gnat.com>
13123 * Make-lang.in: Makefile automatically updated
13125 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
13127 * Make-lang.in (stamp-sdefault): Do not depend on
13130 2004-02-12 Zack Weinberg <zack@codesourcery.com>
13132 * config-lang.in: Disable Ada by default until probe logic for
13133 a bootstrap Ada compiler can be moved to the top level configure
13136 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
13138 * decl.c (components_to_record): Don't claim that the internal fields
13139 we make to hold the variant parts are semantically addressable, because
13142 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
13143 adjust the comment describing the modular type form when we can use it.
13144 (Install_PAT): Account for the Esiz renaming.
13146 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
13147 sc_onstack context indication before raising the exception to which
13148 the signal is mapped. Allows better handling of later signals possibly
13149 triggered by the resumed user code if the exception is handled.
13151 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
13153 * 5zinit.adb: Removed, no longer used.
13155 2004-02-12 Robert Dewar <dewar@gnat.com>
13157 * ali.adb: Remove separating space between parameters on R line. Makes
13158 format consistent with format used by the binder for Set_Globals call.
13160 * atree.ads, atree.adb: Minor reformatting (new function header format)
13162 * bindgen.adb: Add Run-Time Globals documentation section containing
13163 detailed documentation of the globals passed from the binder file to
13166 * gnatls.adb: Minor reformatting
13168 * init.c (__gnat_set_globals): Add note pointing to documentation in
13171 * lib-writ.ads, lib-writ.adb: Remove separating space between
13172 parameters on R line.
13173 Makes format consistent with format used by the binder for Set_Globals
13176 * osint.ads: Add 2004 to copyright notice
13179 * snames.ads: Correct capitalization of FIFO_Within_Priorities
13180 Noticed during code reading, documentation issue only
13182 * usage.adb: Remove junk line for obsolete C switch
13183 Noticed during code reading
13185 2004-02-12 Vincent Celier <celier@gnat.com>
13187 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
13188 extend for each directory, so that multiple /** directories are
13189 extended individually.
13190 (Recursive_Process): Set the default for LANGUAGES to ada
13192 * gprcmd.adb: Define new command "ignore", to do nothing.
13193 Implement new comment "path".
13195 * Makefile.generic: Suppress output when SILENT is set
13196 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
13197 used, so that the correct compiler is invoked.
13198 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
13199 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
13201 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
13203 * Makefile.in: Clean ups and remove obsolete targets.
13205 2004-02-12 Ed Schonberg <schonberg@gnat.com>
13207 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
13208 predicate declared in exp_util.
13210 * exp_util.adb: Add comments.
13212 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
13213 visibility before compiling context of the subunit.
13215 * sem_res.adb (Check_Parameterless_Call): If the context expects a
13216 value but the name is a procedure, do not attempt to analyze as a call,
13217 in order to obtain more telling diagnostics.
13219 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
13220 'Access on parameterless function calls.
13221 (Normalize_Actuals): For a parameterless function call with missing
13222 actuals, defer diagnostic until resolution of enclosing call.
13224 * sem_util.adb (Wrong_Type): If the context type is an access to
13225 subprogram and the expression is a procedure name, suggest a missing
13228 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
13229 Nathanael Nerode <neroden@gcc.gnu.org>
13231 PR ada/6637, PR ada/5911
13232 Merge with libada-branch:
13233 * config-lang.in: Build libada only when ada is built.
13235 2004-02-09 Ed Schonberg <schonberg@gnat.com>
13237 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
13238 for a tagged type, verify that both formals have the same type.
13240 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
13241 temporary when the formal is an in-parameter and the actual a possibly
13244 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
13245 when expansion is disabled, to ensure proper name capture with
13246 overloaded literals. Condition can be of any boolean type, resolve
13249 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
13250 renaming is for a formal subprogram with a default operator name, and
13251 there is a usable operator that is visible at the point of
13254 2004-02-09 Robert Dewar <dewar@gnat.com>
13256 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
13257 rewrite to ignore errors in ali files, intended to allow tools downward
13258 compatibility with new versions of ali files.
13260 * ali.ads: Add new parameter Ignore_Errors
13262 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
13263 duplicating the error message giving the file with restrictions.
13265 * debug.adb: Add debug flag I for gnatbind
13267 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
13268 operators for the case where the operator is a defining operator.
13270 * exp_ch3.adb: Minor reformatting (new function spec format).
13272 * exp_ch4.adb: Add comment for previous change, and make minor
13273 adjustment to loop to always check for improper loop termination.
13274 Minor reformatting throughout (new function spec format).
13276 * gnatbind.adb: Implement -di debug flag for gnatbind
13278 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
13280 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
13282 * lib-load.adb: Fix bad assertion.
13283 Found by testing and code reading.
13284 Minor reformatting.
13286 * lib-load.ads: Minor reformatting.
13288 * lib-writ.adb: There is only one R line now.
13290 * lib-writ.ads: Add documentation on making downward compatible changes
13291 to ali files so old tools work with new ali files.
13292 There is only one R line now.
13293 Add documentation on format incompatibilities (with special GPS note)
13295 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
13297 * par-load.adb: Minor reformatting
13299 * sem_ch8.adb: Fix to error message from last update
13300 Minor reformatting and restructuring of code from last update
13302 * par-prag.adb, snames.adb, snames.ads, snames.h,
13303 sem_prag.adb: Implement pragma Profile.
13305 * stylesw.adb: Implement -gnatyN switch to turn off all style check
13308 * usage.adb: Add line for -gnatyN switch
13310 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
13312 2004-02-09 Albert Lee <lee@gnat.com>
13314 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
13316 2004-02-09 Ed Schonberg <schonberg@gnat.com>
13318 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
13321 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
13322 is nested in an instance that is not frozen yet, to avoid
13323 order-of-elaboration problems in gigi.
13325 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
13326 body the attribute is legal.
13328 2004-02-09 Robert Dewar <dewar@gnat.com>
13330 * s-rident.ads: Minor comment correction
13332 * targparm.adb: Remove dependence on uintp completely. There was
13333 always a bug in Make in that it called Targparm before initializing
13334 the Uint package. The old code appeared to get away with this, but
13335 the new code did not! This caused an assertion error in gnatmake.
13337 * targparm.ads: Fix bad comment, restriction pragmas with parameters
13338 are indeed fully supported.
13340 2004-02-06 Alan Modra <amodra@bigpond.net.au>
13342 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
13344 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
13346 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
13347 with targetm.calls.promote_prototypes.
13349 2004-02-04 Robert Dewar <dewar@gnat.com>
13351 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
13352 ali.ads, gprcmd.adb: Minor reformatting
13354 * bindgen.adb: Output restrictions string for new style restrictions
13357 * impunit.adb: Add s-rident.ads (System.Rident) and
13358 s-restri (System.Restrictions)
13360 * lib-writ.adb: Fix bug in writing restrictions string (last few
13363 * s-restri.ads, s-restri.adb: Change name Restrictions to
13364 Run_Time_Restrictions to avoid conflict with package name.
13365 Add circuit to read and acquire run time restrictions.
13367 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
13369 * restrict.ads, restrict.adb: Use the new restriction
13370 No_Task_Attributes_Package instead of the old No_Task_Attributes.
13372 * sem_prag.adb: No_Task_Attributes is a synonym of
13373 No_Task_Attributes_Package.
13375 * snames.ads, snames.adb: New entry for proper handling of
13376 No_Task_Attributes.
13378 * s-rident.ads: Adding restriction No_Task_Attributes_Package
13379 (AI-00249) that supersedes the GNAT specific restriction
13380 No_Task_Attributes.
13382 2004-02-04 Ed Schonberg <schonberg@gnat.com>
13385 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
13386 body, an identifier may be wrapped in an unchecked conversion.
13388 2004-02-04 Vincent Celier <celier@gnat.com>
13390 * lib-writ.ads: Comment update for the W lines
13392 * bld.adb: (Expression): An empty string list is static
13394 * fname-uf.adb: Minor comment update
13396 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
13398 * gnatbind.adb: Initialize Cumulative_Restrictions with the
13399 restrictions on the target.
13401 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
13403 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
13406 2004-02-02 Arnaud Charlet <charlet@gnat.com>
13408 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
13410 2004-02-02 Vincent Celier <celier@gnat.com>
13412 * gprcmd.adb (Check_Args): If condition is false, print the invoked
13413 comment before the usage.
13414 Gprcmd: Fail when command is not recognized.
13415 (Usage): Document command "prefix"
13417 * g-md5.adb (Digest): Process last block.
13418 (Update): Do not process last block. Store remaining characters and
13421 * g-md5.ads (Update): Document that several call to update are
13422 equivalent to one call with the concatenated string.
13423 (Context): Add fields to allow new Update behaviour.
13425 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
13426 defaulted to False.
13427 When May_Fail is True and no existing file can be found, return No_File.
13429 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
13432 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
13433 spec file name instead on the W line.
13435 2004-02-02 Robert Dewar <dewar@gnat.com>
13437 * ali.adb: Read and acquire info from new format restrictions lines
13439 * bcheck.adb: Add circuits for checking restrictions with parameters
13441 * bindgen.adb: Output dummy restrictions data
13442 To be changed later
13444 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
13445 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
13446 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
13447 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
13448 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
13450 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
13451 the warning message on access to possibly uninitialized variable S)
13452 Minor changes for new restrictions handling.
13454 * gnatbind.adb: Minor reformatting
13455 Minor changes for new restrictions handling
13456 Move circuit for -r processing here from bcheck (cleaner)
13458 * gnatcmd.adb, gnatlink.adb: Minor reformatting
13460 * lib-writ.adb: Output new format restrictions lines
13462 * lib-writ.ads: Document new R format lines for new restrictions
13465 * s-restri.ads/adb: New files
13467 * Makefile.rtl: Add entry for s-restri.ads/adb
13469 * par-ch3.adb: Fix bad error messages starting with upper case letter
13472 * restrict.adb: Major rewrite throughout for new restrictions handling
13473 Major point is to handle restrictions with parameters
13475 * restrict.ads: Major changes in interface to handle restrictions with
13476 parameters. Also generally simplifies setting of restrictions.
13478 * snames.ads/adb: New entry for proper handling of No_Requeue
13480 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
13481 restriction counting.
13482 Other minor changes for new restrictions handling
13484 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
13485 Restriction_Warnings now allows full parameter notation
13486 Major rewrite of Restrictions for new restrictions handling
13488 2004-02-02 Javier Miranda <miranda@gnat.com>
13490 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
13491 syntax rule for object renaming declarations.
13492 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
13493 component definitions.
13495 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
13497 (Array_Type_Declaration): Give support to access components. In addition
13498 it was also modified to reflect the name of the object in anonymous
13499 array types. The old code did not take into account that it is possible
13500 to have an unconstrained anonymous array with an initial value.
13501 (Check_Or_Process_Discriminants): Allow access discriminant in
13503 (Process_Discriminants): Allow access discriminant in non-limited types
13504 Initialize the new Access_Definition field in N_Object_Renaming_Decl
13505 node. Change Ada0Y to Ada 0Y in comments
13507 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
13508 equality operators.
13509 Change Ada0Y to Ada 0Y in comments
13511 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
13512 renamings Change Ada0Y to Ada 0Y in comments
13514 * sem_type.adb (Find_Unique_Type): Give support to the equality
13515 operators for universal access types
13516 Change Ada0Y to Ada 0Y in comments
13518 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
13520 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
13522 (N_Object_Renaming_Declaration): Addition of Access_Definition field
13523 Change Ada0Y to Ada 0Y in comments
13525 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
13526 component definition and object renaming nodes
13527 Change Ada0Y to Ada 0Y in comments
13529 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
13531 * restrict.adb: Use the new restriction identifier
13532 No_Requeue_Statements instead of the old No_Requeue for defining the
13533 restricted profile.
13535 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
13536 No_Requeue_Statements.
13538 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
13539 that supersedes the GNAT specific restriction No_Requeue. The later is
13540 kept for backward compatibility.
13542 2004-02-02 Ed Schonberg <schonberg@gnat.com>
13544 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
13545 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
13546 pragma and fix incorrect ones.
13548 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
13549 warning if the pragma is redundant.
13551 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
13553 * 5staprop.adb: Add missing 'constant' keywords.
13555 * Makefile.in: use consistent value for SYMLIB on
13556 platforms where libaddr2line is supported.
13558 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13560 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
13563 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
13565 * init.c (__gnat_install_handler): Setup an alternate stack for signal
13566 handlers in the environment thread. This allows proper propagation of
13567 an exception on stack overflows in this thread even when the builtin
13568 ABI stack-checking scheme is used without support for a stack reserve
13571 * utils.c (create_field_decl): Augment the head comment about bitfield
13572 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
13573 here, because the former is not accurate enough at this point.
13574 Let finish_record_type decide instead.
13575 Don't make a bitfield if the field is to be addressable.
13576 Always set a size for the field if the record is packed, to ensure the
13577 checks for bitfield creation are triggered.
13578 (finish_record_type): During last pass over the fields, clear
13579 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
13580 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
13581 from DECL_BIT_FIELD.
13583 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
13585 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
13586 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
13587 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
13589 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13591 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
13593 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
13594 (ZCX_By_Default): Likewise.
13595 (Front_End_ZCX_Support): Likewise.
13597 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
13598 (Initialize_Lock): Mark Level unreferenced.
13599 (Sleep): Mark Reason unreferenced.
13600 (Timed_Sleep): Likewise.
13601 (Wakeup): Likewise.
13602 (Exit_Task): Use Result.
13603 (Check_No_Locks): Mark Self_ID unreferenced.
13605 * 5gtasinf.adb (New_Sproc): Make Attr constant.
13606 (Bound_Thread_Attributes): Make Sproc constant.
13607 (New_Bound_Thread_Attributes): Likewise.
13609 2004-01-26 Ed Schonberg <schonberg@gnat.com>
13611 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
13612 one-dimensional array an slice assignments, when component type is
13615 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
13616 component type is controlled, and control_actions are in effect, use
13617 TSS procedure rather than generating inline code.
13619 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
13620 arrays with controlled components.
13622 2004-01-26 Vincent Celier <celier@gnat.com>
13624 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
13625 command line for the non VMS case.
13627 * gnatlink.adb (Process_Binder_File): When building object file, if
13628 GNU linker is used, put all object paths between quotes, to prevent ld
13629 error when there are unusual characters (such as '!') in the paths.
13631 * Makefile.generic: When there are sources in Ada and the main is in
13632 C/C++, invoke gnatmake with -B, instead of -z.
13634 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
13635 from VMS_Conversion.
13636 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
13637 specification of argument file on the command line.
13639 2004-01-26 Bernard Banner <banner@gnat.com>
13641 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
13643 2004-01-26 Ed Schonberg <schonberg@gnat.com>
13645 * snames.adb: Update copyright notice.
13646 Add info on slice assignment for controlled arrays.
13648 2004-01-23 Robert Dewar <dewar@gnat.com>
13650 * exp_aggr.adb: Minor reformatting
13652 * exp_ch9.adb: Minor code clean up
13654 Fix bad character in comment
13657 * targparm.adb (Get_Target_Parameters): Give clean abort error on
13658 unexpected end of file, along with more detailed message.
13660 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13662 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
13665 * decl.c (copy_alias_set): New function.
13666 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
13668 2004-01-23 Doug Rupp <rupp@gnat.com>
13670 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
13671 lib$${file} in case subsequent character is not a separator.
13673 2004-01-23 Vincent Celier <celier@gnat.com>
13675 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
13676 when the GCC version is at least 3.
13678 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
13679 Remove all "Opt.", to prepare for opt split
13681 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
13682 Extends_All. Set to True when the project parsed is an extending all
13683 project. Fails for importing an extending all project only when the
13684 imported project is an extending all project.
13685 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
13686 depending on the value of Extends_All returned.
13688 * prj-proc.adb (Process): Check that no project shares its object
13689 directory with a project that extends it, directly or indirectly,
13690 including a virtual project.
13691 Check that no project extended by another project shares its object
13692 directory with another also extended project.
13694 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
13695 Kind = N_With_Clause
13697 * prj-tree.ads: Minor reformatting
13698 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
13700 2004-01-23 Ed Schonberg <schonberg@gnat.com>
13702 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
13703 applies to a type with an incomplete view, use full view in Name of
13704 clause, for consistency with uses of Get_Attribute_Definition_Clause.
13706 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
13708 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
13709 SCHED_RR, since other values are not supported by this policy.
13710 (Initialize): Move initialization of mutex attribute to package
13711 elaboration, to prevent early access to this variable.
13713 * Makefile.in: Remove mention of Makefile.adalib, unused.
13715 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
13716 1ssecsta.ads: Removed, unused.
13718 2004-01-21 Javier Miranda <miranda@gnat.com>
13720 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
13721 entity if already built in the current scope.
13723 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
13724 reminder in internal scopes. Required for nested limited aggregates.
13726 2004-01-21 Doug Rupp <rupp@gnat.com>
13728 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
13729 VMS. Replace all occurences of libgnat- and libgnarl- with
13730 libgnat$(hyphen) and libgnarl$(hyphen).
13731 Fixed shared library build problem on VMS.
13733 2004-01-21 Robert Dewar <dewar@gnat.com>
13735 * mlib-prj.adb: Minor reformatting
13737 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
13739 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
13740 'constant' keywords for declaration of pointers that are not modified.
13742 * exp_pakd.adb: Fix English in comment.
13744 2004-01-21 Ed Schonberg <schonberg@gnat.com>
13747 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
13748 copy all attributes of the parent, including the foreign language
13751 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
13754 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
13755 for 'delay until' statement.
13757 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
13759 * Make-lang.in: Replace $(docdir) with doc.
13760 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
13761 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
13762 to use consistent MAKEINFO rule.
13763 (ada.man, ada.srcman): Dummy entry.
13764 (ADA_INFOFILES): Define.
13765 (ada.info, ada.srcinfo): New rules.
13767 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
13769 * utils.c: Update copyright notice, missed in previous change.
13771 2004-01-19 Vincent Celier <celier@gnat.com>
13773 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
13774 args if Bind is True. Set First_ALI, if not already done.
13775 (Build_Library): For Stand Alone Libraries, extract from one ALI file
13776 an eventual --RTS switch, for gnatbind, and all backend switches +
13777 --RTS, for linking.
13779 2004-01-19 Robert Dewar <dewar@gnat.com>
13781 * sem_attr.adb, memtrack.adb: Minor reformatting
13783 2004-01-19 Ed Schonberg <schonberg@gnat.com>
13785 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
13786 that rename enumeration literals. This is properly done in sem_eval.
13788 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
13789 to functions that rename enumeration literals.
13791 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
13792 functions that rename enumeration literals.
13794 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
13796 * Make-lang.in (utils.o): Depend on target.h.
13797 * utils.c: Include target.h.
13798 (process_attributes): Use targetm.have_named_sections instead
13799 of ASM_OUTPUT_SECTION_NAME.
13801 2004-01-16 Andreas Jaeger <aj@suse.de>
13803 * Makefile.in: Add $(DESTDIR).
13805 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
13807 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
13808 also when not defining if a Size clause applies. That information is
13811 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
13813 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
13814 symbolic links for the shared gnat run time when needed.
13816 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
13818 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
13819 for writing, and terminate with an error message if not.
13821 2004-01-15 Ed Schonberg <schonberg@gnat.com>
13823 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
13824 warning on an access to subprogram in an instance, when the target
13825 type is declared in the same generic unit.
13826 (Eval_Attribute): If 'access is known to fail accessibility check,
13827 rewrite as a raise statement.
13829 2004-01-15 GNAT Script <nobody@gnat.com>
13831 * Make-lang.in: Makefile automatically updated
13833 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
13835 * Make-lang.in (ada.srcextra): Dummy entry.
13837 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
13839 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
13841 2004-01-13 Ed Schonberg <schonberg@gnat.com>
13843 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
13844 components that are initialized with aggregates.
13846 2004-01-13 Vincent Celier <celier@gnat.com>
13848 * gnatlink.adb (Process_Binder_File): To find directory of shared
13849 libgcc, if "gcc-lib" is not a subdirectory, look for the last
13850 subdirectory "lib" in the path of the shared libgnat or libgnarl.
13852 * make.adb (Gnatmake): If GCC version is at least 3, link with
13853 -shared-libgcc, when there is at least one shared library project.
13855 * opt.ads (GCC_Version): New integer constant.
13857 * adaint.c (get_gcc_version): New function.
13859 2004-01-13 Robert Dewar <dewar@gnat.com>
13861 * sem_dist.adb, sem_res.adb, sem_util.adb,
13862 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
13863 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
13865 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
13867 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
13868 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
13871 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
13873 * misc.c: Remove trailing spaces.
13874 Update copyright notice missed in previous change.
13877 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
13880 * Makefile.generic: Update copyright.
13881 Add license notice.
13883 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
13884 of prefix/share/make.
13886 * Makefile.prolog: Update copyright.
13887 Add license notice.
13889 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
13891 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
13892 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
13893 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
13896 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
13899 2004-01-12 Javier Miranda <miranda@gnat.com>
13901 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
13902 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
13903 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
13904 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
13905 Component_Definition node.
13907 2004-01-12 Ed Falis <falis@gnat.com>
13909 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
13911 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
13913 * link.c: Change default libgnat kind to STATIC for FreeBSD.
13915 2004-01-12 Bernard Banner <banner@gnat.com>
13917 * Makefile.in: map 86numaux to a-numaux for x86_64
13919 2004-01-12 Ed Schonberg <schonberg@gnat.com>
13921 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
13922 generated to rename a generic actual, go to the actual itself, the
13923 subtype is not a user-visible entity.
13925 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
13926 part is a private subtype, reset the visibility of its full view, if
13927 any, to be consistent.
13930 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
13931 to use a generic package G as a formal package for another generic
13934 2004-01-12 Robert Dewar <dewar@gnat.com>
13936 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
13938 * usage.adb: Remove mention of obsolete -gnatwb switch
13939 Noticed during code reading
13941 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
13943 * 1ssecsta.adb: Minor changes for -gnatwa warnings
13945 2004-01-12 GNAT Script <nobody@gnat.com>
13947 * Make-lang.in: Makefile automatically updated
13949 2004-01-09 Mark Mitchell <mark@codesourcery.com>
13951 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
13953 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13955 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
13957 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
13959 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
13960 Update comment and copyright date.
13961 * stamp-xgnatug: Delete.
13963 2004-01-05 Robert Dewar <dewar@gnat.com>
13965 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
13966 be modified by the binder generated main program if the -D switch is
13969 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
13970 imported functions (since now we expect this to be done for imported
13973 * 5vtaprop.adb: Add several ??? for sections requiring more comments
13974 Minor reformatting throughout
13976 * 5zinit.adb: Minor reformatting
13977 Add 2004 to copyright date
13978 Minor changes to avoid -gnatwa warnings
13979 Correct some instances of using OR instead of OR ELSE (noted while
13980 doing reformatting)
13982 * sprint.adb: Minor updates to avoid -gnatwa warnings
13984 * s-secsta.ads, s-secsta.adb:
13985 (SS_Get_Max): New function to obtain high water mark for ss stack
13986 Default_Secondary_Stack is not a constant since it may be modified by
13987 the binder generated main program if the -D switch is used.
13989 * switch-b.adb: New -Dnnn switch for binder
13992 Make -gnatg imply all warnings currently in -gnatwa
13994 * vms_conv.adb: Minor reformatting
13995 Add 2004 to copyright notice
13996 Add 2004 to printed copyright notice
13998 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
13999 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
14000 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
14001 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
14002 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
14003 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
14004 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
14005 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
14006 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
14007 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
14008 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
14009 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
14010 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
14011 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
14012 checks.adb, clean.adb, cstand.adb, einfo.ads,
14013 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
14014 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
14015 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
14016 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
14017 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
14018 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
14019 Minor reformatting and code clean ups.
14020 Minor changes to prevent -gnatwa warnings
14022 * ali.adb: Minor reformatting and cleanup of code
14023 Acquire new SS indication of secondary stack use from ali files
14025 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
14026 (since now we expect this to be done for imported functions)
14028 * bindgen.adb: Generate call to modify default secondary stack size if
14031 * bindusg.adb: Add line for new -D switch
14033 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
14034 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
14035 Add circuitry for both records and arrays to avoid gigi
14036 processing if the type involved has non-bit-aligned components
14038 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
14039 N_String_Literal node always references an E_String_Literal_Subtype
14040 entity. This may not be true in the future.
14041 (Possible_Bit_Aligned_Component): Move processing of
14042 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
14044 * exp_ch6.adb (Expand_Thread_Body): Pick up
14045 Default_Secondary_Stack_Size as variable so that we get value modified
14046 by possible -Dnnn binder parameter.
14048 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
14049 (Type_May_Have_Bit_Aligned_Components): New function.
14051 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
14052 (Type_May_Have_Bit_Aligned_Components): New function.
14054 * fe.h: (Set_Identifier_Casing): Fix prototype.
14055 Add declaration for Sem_Elim.Eliminate_Error_Msg.
14056 Minor reformatting.
14058 * freeze.adb (Freeze_Entity): Add RM reference to error message about
14059 importing constant atomic/volatile objects.
14060 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
14061 unless explicit Pure_Function pragma given, to avoid insidious bug of
14062 call to non-pure imported function getting eliminated.
14064 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
14065 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
14066 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
14067 Add 2004 to printed copyright notice
14069 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
14072 * Makefile.rtl: Add entry for g-sestin.o
14073 g-sestin.ads: New file.
14075 * mdll.adb: Minor changes to avoid -gnatwa warnings
14077 * mlib-tgt.adb: Minor reformatting
14079 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
14080 New switch Sec_Stack_Used (GNAT, GNATBIND)
14081 Make Default_Secondary_Stack_Size a variable instead of a constant,
14082 so that it can be modified by the new -Dnnn bind switch.
14084 * rtsfind.adb (Load_Fail): Give full error message in configurable
14085 run-time mode if all_errors mode is set. This was not done in the case
14086 of a file not found, which was an oversight.
14087 Note if secondary stack unit is used by compiler.
14089 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
14090 ineffective elaborate all pragmas on non-visible packages (this
14091 happened when a renamed subprogram was called). Now the elaborate all
14092 always goes on the package containing the renaming rather than the one
14093 containing the renamed subprogram.
14095 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
14096 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
14098 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
14099 has an Etype that references an E_String_Literal.
14100 (Eval_String_Literal): Avoid assumption that N_String_Literal node
14101 always references an E_String_Literal_Subtype entity. This may not
14102 be true in the future.
14104 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
14107 * sem_res.adb (Resolve): Specialize msg for function name used in proc
14110 2004-01-05 Ed Falis <falis@gnat.com>
14112 * g-debuti.adb: Replaced direct boolean operator with short-circuit
14115 2004-01-05 Vincent Celier <celier@gnat.com>
14117 * bld.adb: Minor comment updates
14118 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
14121 * make.adb (Gnatmake): Special process for files to compile/check when
14122 -B is specified. Fail when there are only foreign mains in attribute
14123 Main of the project file and -B is not specified. Do not skip bind/link
14124 steps when -B is specified.
14126 * makeusg.adb: Document new switch -B
14128 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
14130 * switch-m.adb: (Scan_Make_Switches): Process -B switch
14132 * vms_data.ads: Add new GNAT PRETTY qualifier
14133 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
14135 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14137 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
14140 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
14141 Set_Identifier_Casing.
14143 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
14144 has size that overflows.
14146 2004-01-05 Gary Dismukes <dismukes@gnat.com>
14148 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
14149 -gnatwa warning on static condition.
14151 2004-01-05 Doug Rupp <rupp@gnat.com>
14153 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
14155 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
14157 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
14158 all attributes, including read-only attribute.
14160 2004-01-05 Pascal Obry <obry@gnat.com>
14162 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
14163 library naming scheme.
14165 * mlib-prj.adb (Build_Library): Generate different names for the static
14166 or dynamic version of the GNAT runtime. This is needed to support the
14167 new shared library naming scheme.
14168 (Process_Binder_File): Add detection of shared library in binder file
14169 based on the new naming scheme.
14171 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
14172 scheme for the shared runtime libraries.
14175 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
14177 (install-gnatlib): Do not create symlinks for shared libraries.
14178 (gnatlib-shared-default): Idem.
14179 (gnatlib-shared-dual-win32): New target. Not used for now as the
14180 auto-import feature does not support arrays/records.
14181 (gnatlib-shared-win32): Do not create copy for the shared libraries.
14182 (gnatlib-shared-vms): Fix shared runtime libraries names.
14184 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
14185 dependent runtime shared library name.
14187 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
14189 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
14192 2004-01-05 Ed Schonberg <schonberg@gnat.com>
14194 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
14195 protected objects when allocator has a subtype indication, not a
14196 qualified expression. Note that qualified expressions may have to be
14197 checked when limited aggregates are implemented.
14199 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
14200 pure, emit warning.
14201 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
14202 subprogram is imported, remove warning.
14204 2004-01-05 Geert Bosch <bosch@gnat.com>
14206 * s-poosiz.adb: Update copyright notice.
14207 (Allocate): Use Task_Lock to protect against concurrent access.
14208 (Deallocate): Likewise.
14210 2004-01-05 Joel Brobecker <brobecker@gnat.com>
14212 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
14215 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
14217 * gnat_ug.texi: Force a CVS commit by updating copyright.
14218 * gnat_ug_vxw.texi: Regenerate.
14219 * gnat_ug_wnt.texi: Regenerate.
14220 * gnat_ug_vms.texi: Regenerate.
14221 * gnat_ug_unx.texi: Regenerate.
14223 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
14225 * trans.c: Remove uses of "register" specifier in
14226 declarations of local variables.
14228 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
14230 * stamp-xgnatug: New stamp file.
14231 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
14232 (ada/doctools/xgnatug): Add $(build_exeext).
14233 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
14234 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
14236 2003-12-17 Ed Falis <falis@gnat.com>
14238 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
14241 * a-exextr.adb: Add context clause for
14242 Ada.Exceptions.Last_Chance_Handler.
14244 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
14246 * cstand.adb (Create_Standard): Change the way how the declaration of
14247 the Duration type is created (making it the same way as it is for all
14248 the other standard types).
14250 2003-12-17 Robert Dewar <dewar@gnat.com>
14252 * s-crtl.ads: Fix header format
14253 Change Pure to Preelaborate
14255 2003-12-17 Ed Schonberg <schonberg@gnat.com>
14257 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
14258 the expression type only if it is declared in the current unit.
14260 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
14261 are universal and already analyzed, as can occur in constrained
14262 subcomponents that depend on discriminants, when one constraint is a
14265 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
14266 type Any_Fixed is legal as the argument of a conversion, if only one
14267 fixed-point type is in context.
14269 2003-12-17 GNAT Script <nobody@gnat.com>
14271 * Make-lang.in: Makefile automatically updated
14273 2003-12-15 Robert Dewar <dewar@gnat.com>
14275 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
14278 2003-12-15 Vincent Celier <celier@gnat.com>
14280 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
14281 (Gnatchop): Do not set failure status when reporting the number of
14284 2003-12-15 Doug Rupp <rupp@gnat.com>
14286 * s-ctrl.ads: New file.
14288 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
14290 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
14291 (GNATBIND_OBJS): Add ada/s-crtl.o.
14293 * Makefile.in [VMS]: Clean up ifeq rules.
14295 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
14296 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
14297 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
14298 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
14299 s-tasdeb.adb: Update copyright.
14300 Import System.CRTL.
14301 Make minor modifications to use System.CRTL declared functions instead
14302 of importing locally.
14304 2003-12-15 GNAT Script <nobody@gnat.com>
14306 * Make-lang.in: Makefile automatically updated
14308 2003-12-11 Ed Falis <falis@gnat.com>
14310 * 5zinit.adb: Clean up.
14312 * 5zintman.adb (Notify_Exception): replaced case statement with a call
14313 to __gnat_map_signal, imported from init.c to support
14314 signal -> exception mappings that depend on the vxWorks version.
14317 Created and exported __gnat_map_signal to support signal -> exception
14318 mapping that is dependent on the VxWorks version.
14319 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
14321 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
14323 * 5wosinte.ads: Link with -mthreads switch.
14325 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
14327 * init.c (__gnat_install_handler [NetBSD]): Set
14328 __gnat_handler_installed, as done on all other platforms.
14329 Remove duplicated code.
14331 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
14333 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
14335 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
14337 * sinfo.ads: Fix inconsistent example code in comment.
14339 2003-12-11 Robert Dewar <dewar@gnat.com>
14341 * a-tiinau.adb: Add a couple of comments
14343 * sem_ch3.adb: Minor reformatting
14346 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
14347 Minor reformatting throughout
14349 2003-12-11 Ed Schonberg <schonberg@gnat.com>
14351 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
14352 bounds of a loop, create a separate block in order to generate proper
14353 cleanup actions to prevent memory leaks.
14355 * sem_res.adb (Resolve_Call): After a call to
14356 Establish_Transient_Scope, the call may be rewritten and relocated, in
14357 which case no further processing is needed.
14359 * sem_util.adb: (Wrong_Type): Refine previous fix.
14360 Fixes ACATS regressions.
14364 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
14367 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
14369 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
14370 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
14373 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
14376 2003-12-08 Robert Dewar <dewar@gnat.com>
14378 * 7sintman.adb: Minor reformatting
14380 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
14381 standard linker options to get standard libraries linked. We now plan
14382 to provide dummy versions of these libraries to match the appropriate
14383 configurable run-time (e.g. if a library is not needed at all, provide
14384 a dummy empty library).
14386 * targparm.ads: Configurable_Run_Time mode no longer affects linker
14387 options (-L parameters and standard libraries). What we plan to do is
14388 to provide dummy libraries where the libraries are not required.
14390 * gnatbind.adb: Minor comment improvement
14392 2003-12-08 Javier Miranda <miranda@gnat.com>
14394 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
14395 aggregate in the parent. Otherwise constants with limited aggregates
14396 are not supported. Add new formal to pass the component type (Ctype).
14397 It is required to call the corresponding IP subprogram in case of
14398 default initialized components.
14399 (Gen_Assign): In case of default-initialized component, generate a
14400 call to the IP subprogram associated with the component.
14401 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
14402 of aggregate with default initialized components.
14403 (Has_Default_Init_Comps): Improve implementation to recursively check
14404 all the present expressions.
14406 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
14407 to indicate that the initialization call corresponds to a
14408 default-initialized component of an aggregate.
14409 In case of default initialized aggregate with tasks this parameter is
14410 used to generate a null string (this is just a workaround that must be
14411 improved later). In case of discriminants, this parameter is used to
14412 generate a selected component node that gives access to the discriminant
14415 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
14416 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
14417 allocated aggregates with default-initialized components.
14419 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
14420 the box notation is used in positional aggregates.
14422 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
14424 * lib.ads: Fix typo in comment
14426 2003-12-08 Vincent Celier <celier@gnat.com>
14428 * prj.adb (Project_Empty): New component Unkept_Comments
14429 (Scan): Remove procedure; moved to Prj.Err.
14431 * prj.ads (Project_Data): New Boolean component Unkept_Comments
14432 (Scan): Remove procedure; moved to Prj.Err.
14434 * prj-dect.adb: Manage comments for the different declarations.
14436 * prj-part.adb (With_Record): New component Node
14437 (Parse): New Boolean parameter Store_Comments, defaulted to False.
14438 Set the scanner to return ends of line and comments as tokens, if
14439 Store_Comments is True.
14440 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
14441 comments are associated with these nodes. Store the node IDs in the
14443 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
14445 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
14446 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
14447 current project. Call Tree.Restore afterwards. Set the various nodes
14448 for comment storage (Next_End, End_Of_Line, Previous_Line,
14451 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
14452 defaulted to False.
14454 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
14455 to False. When Truncated is True, truncate the string, never go to the
14457 (Write_End_Of_Line_Comment): New procedure
14458 (Print): Process comments for nodes N_With_Clause,
14459 N_Package_Declaration, N_String_Type_Declaration,
14460 N_Attribute_Declaration, N_Typed_Variable_Declaration,
14461 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
14462 Process nodes N_Comment.
14464 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
14465 without comments and there are some comments, set the flag
14466 Unkept_Comments to True.
14467 (Scan): If there are comments, set the flag Unkept_Comments to True and
14468 clear the comments.
14469 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
14470 (Next_End_Nodes: New table
14471 (Comment_Zones_Of): New function
14472 (Scan): New procedure; moved from Prj. Accumulate comments in the
14473 Comments table and set end of line comments, comments after, after end
14475 (Add_Comments): New procedure
14476 (Save, Restore, Seset_State): New procedures
14477 (There_Are_Unkept_Comments): New function
14478 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
14479 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
14481 (First_Comment_After, First_Comment_After_End): New functions
14482 (First_Comment_Before, First_Comment_Before_End): New functions
14483 (Next_Comment): New function
14484 (End_Of_Line_Comment, Follows_Empty_Line,
14485 Is_Followed_By_Empty_Line): New functions
14486 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
14487 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
14488 (Set_Next_Comment): New procedure
14489 (Default_Project_Node): Associate comment before if the node can store
14492 * scans.ads (Token_Type): New enumeration value Tok_Comment
14493 (Comment_Id): New global variable
14495 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
14496 defaulted to False.
14497 (Scan): Store position of start of comment. If comments are tokens, set
14498 Comment_Id and set Token to Tok_Comment when scanning a comment.
14499 (Set_Comment_As_Token): New procedure
14501 * sinput-p.adb: Update Copyright notice
14502 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
14503 that no longer exists.
14505 2003-12-08 Javier Miranda <miranda@gnat.com>
14507 * sem_aggr.adb: Add dependence on Exp_Tss package
14508 Correct typo in comment
14509 (Resolve_Aggregate): In case of array aggregates set the estimated
14510 type of the aggregate before calling resolve. This is needed to know
14511 the name of the corresponding IP in case of limited array aggregates.
14512 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
14513 in case of default initialized array components.
14515 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
14516 types. Required to give support to limited aggregates in generic
14519 2003-12-08 Ed Schonberg <schonberg@gnat.com>
14521 * sem_ch3.adb (Check_Initialization): For legality purposes, an
14522 inlined body functions like an instantiation.
14523 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
14524 until bounds are analyzed, to diagnose premature use of type.
14526 * sem_util.adb (Wrong_Type): Improve error message when the type of
14527 the expression is used prematurely.
14529 2003-12-08 GNAT Script <nobody@gnat.com>
14531 * Make-lang.in: Makefile automatically updated
14533 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
14535 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
14536 they are automatically generated by Make-lang.in and cause nothing but
14537 maintenance troubles.
14539 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
14541 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
14542 version of this unit).
14544 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
14546 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
14547 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
14548 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
14549 the body of System.Interrupt_Management common to several targets.
14550 Update copyright notice when appropriate.
14552 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
14555 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
14556 to ensure that the kernel fills in the interrupted context structure
14557 before calling a signal handler, which is necessary to be able to
14558 unwind past it. Update the copyright notice.
14560 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
14562 * a-elchha.ads: New file.
14564 * a-elchha.adb: New default last chance handler. Contents taken from
14565 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
14567 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
14568 is moved to a-elchha.adb to provide a target-independent default last
14571 * Makefile.rtl: Add a-elchha.o
14573 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
14575 2003-12-05 Ed Schonberg <schonberg@gnat.com>
14577 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
14578 declared in an instance, do not inline the call if the instance is not
14579 frozen yet, to prevent order of elaboration problems.
14581 * sem_prag.adb: Add comments for previous fix.
14583 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
14585 * g-table.adb: Use the right variable in Set_Item.
14586 Update copyright notice.
14588 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
14590 * Makefile.in: Remove unused rules.
14592 2003-12-05 Vincent Celier <celier@gnat.com>
14594 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
14595 -nostdlib. Not needed here after all.
14597 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
14601 * adaint.h, adaint.c, g-os_lib.ads:
14602 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
14603 on some platforms (including FreeBSD), it is a 64 bit value.
14604 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
14606 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
14608 * gnatvsn.ads (Library_Version): Now contain only the relevant
14610 (Verbose_Library_Version): New constant.
14612 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
14613 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
14614 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
14616 * gnatlbr.adb: Clean up: replace Library_Version by
14617 Verbose_Library_Version.
14619 * make.adb, lib-writ.adb, exp_attr.adb:
14620 Clean up: replace Library_Version by Verbose_Library_Version.
14622 * 5lintman.adb: Removed.
14625 Update and simplify computation of LIBRARY_VERSION.
14626 Fix computation of GSMATCH_VERSION.
14627 5lintman.adb is no longer used: replaced by 7sintman.adb.
14629 2003-12-03 Robert Dewar <dewar@gnat.com>
14632 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
14633 name. Modified to consider small non-bit-packed arrays as troublesome
14634 and in need of component-by-component assigment expansion.
14636 2003-12-03 Vincent Celier <celier@gnat.com>
14638 * lang-specs.h: Process nostdlib as nostdinc
14640 * back_end.adb: Update Copyright notice
14641 (Scan_Compiler_Arguments): Process -nostdlib directly.
14643 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
14646 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
14647 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
14648 included in HIE_NONE_TARGET_PAIRS.
14650 2003-12-03 Ed Schonberg <schonberg@gnat.com>
14653 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
14654 is legal in an instance, because legality is cheched in the template.
14657 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
14658 appplied to an unchecked conversion of a formal parameter.
14661 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
14664 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
14666 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
14667 routines. The second one is new functionality to deal with backtracing
14668 through signal handlers.
14669 (unwind): Split into the two separate subroutines above.
14670 Update the documentation, and deal properly with sizeof (REG) different
14671 from sizeof (void*).
14673 2003-12-01 Nicolas Setton <setton@act-europe.fr>
14675 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
14676 so that the debugger can reliably access the value of the parameter,
14677 and therefore is able to display the exception name when an exception
14678 breakpoint is reached.
14680 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
14682 * fmap.adb: Fix typo in warning message.
14684 * g-socket.ads, g-socket.adb: Make Free a visible instance of
14685 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
14687 2003-12-01 Vincent Celier <celier@gnat.com>
14689 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
14691 (Build_Library): Get the switches only if Default_Switches is declared
14694 2003-12-01 Ed Schonberg <schonberg@gnat.com>
14696 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
14697 actuals that are indexed components, reanalyze actual to ensure that
14698 packed array references are properly expanded.
14700 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
14701 attempted assignment to a discriminant.
14703 2003-12-01 Robert Dewar <dewar@gnat.com>
14705 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
14708 * switch-c.adb: Minor reformatting of comments
14710 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
14712 * Makefile.in: Clean ups.
14714 2003-12-01 GNAT Script <nobody@gnat.com>
14716 * Make-lang.in: Makefile automatically updated
14718 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
14720 * 5wsystem.ads: Disable zero cost exception, not ready yet.
14722 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
14724 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
14725 to force serialization.
14727 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
14729 * g-socket.ads, g-socket.adb:
14730 Clarify documentation of function Stream. Introduce a Free procedure
14731 to release the returned Stream once it becomes unused.
14733 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
14735 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
14737 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
14738 since NT 4 cannot handle timeout values that are too large,
14739 e.g. DWORD'Last - 1.
14741 2003-11-26 Ed Schonberg <schonberg@gnat.com>
14744 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
14745 in procedure calls and whose expansion must be deferred.
14747 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
14751 (Build_Derived_Array_Type): Create operator for unconstrained type
14752 if ancestor is unconstrained.
14754 2003-11-26 Vincent Celier <celier@gnat.com>
14756 * make.adb (Project_Object_Directory): New global variable
14757 (Change_To_Object_Directory): New procedure
14758 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
14759 of Change_Dir directly. Do not change working directory to object
14760 directory of main project after each compilation.
14761 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
14763 Change to object directory of main project before binding step.
14764 (Initialize): Initialize Project_Object_Directory to No_Project
14767 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
14768 binding a Stand-Alone Library.
14770 * output.adb: Update Copyright notice
14771 (Write_Char): Output buffer when full
14773 2003-11-26 Robert Dewar <dewar@gnat.com>
14775 * sem_ch13.adb: (Check_Size): Reset size if size is too small
14778 (Check_Size): Fix documentation to include bit-packed array case
14780 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
14782 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
14784 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
14786 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
14789 * utils.c (init_gigi_decls): Change name of built-in setjmp to
14790 __builtin_setjmp, since this is apparently needed by recent
14793 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14795 * adadecode.c: Only include ctype.h if not IN_GCC.
14796 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
14798 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
14801 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
14802 signals and interrupts.
14804 * 5zintman.ads: New File.
14806 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
14807 add exception signals to the set of unmasked signals.
14810 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
14811 between signals and interrupts.
14812 Add to Unblocked_Signal_Mask the set of signals that are in
14816 Adding a check to see whether the Interrupt_ID we want to unmask is in
14817 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
14818 reason is that the index type of the Keep_Unmasked array is not always
14819 Interrupt_ID; it may be a subtype of Interrupt_ID.
14821 2003-11-24 Gary Dismukes <dismukes@gnat.com>
14824 (Remove_Side_Effects): Condition constantness of object created for a
14825 an unchecked type conversion on the constantness of the expression
14826 to ensure the correct value for 'Constrained when passing components
14827 of view-converted class-wide objects.
14829 2003-11-24 Robert Dewar <dewar@gnat.com>
14831 * par-load.adb (Load): Improve handling of misspelled and missing units
14832 Removes several cases of compilation abandoned messages
14834 * lib.adb: (Remove_Unit): New procedure
14836 * lib.ads: (Remove_Unit): New procedure
14838 * lib-load.adb: Minor reformatting
14840 2003-11-24 Vincent Celier <celier@gnat.com>
14843 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
14844 (Marking_Label): Label to mark processed source files. Incremented for
14846 (Gnatmake): Increase Marking_Labet for each executable
14847 (Is_Marked): Compare against marking label
14848 (Mark): Mark with marking label
14850 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
14853 Move the declaration of the TSD for System.Threads to System.Soft_Links.
14856 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
14857 (rts-cert): build a single relocatable object for the run-time lib.
14860 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
14863 Use gnatls rather than gcc to obtain the location of GNAT RTL for
14866 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
14868 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
14869 can not use it as before (that is, as a variable) when dumping it into
14870 the tree file. Add a local variable to store the result of this
14871 function and to be used as the string to be written into the tree.
14873 * scn.adb (Initialize_Scanner): Add comments explaining the recent
14876 * sinput.adb (Source_First, Source_Last): In case of
14877 Internal_Source_File, replace returning attributes of
14878 Internal_Source_Ptr (which is wrong) with returning attributes of
14881 2003-11-24 Ed Schonberg <schonberg@gnat.com>
14884 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
14885 used for implicit concatenation operators.
14889 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
14890 task bodies that are in the scope of a Suppress pragma.
14891 (Check_A Call): Use the flag to prevent spurious elaboration checks.
14893 * sinfo.ads, sinfo.adb:
14894 New flag No_Elaboration_Check on function/procedure calls, to properly
14895 suppress checks on calls in task bodies that are within a local suppress
14899 (Expand_Concatenate_Other): Use the proper integer type for the
14900 expression for the upper bound, to avoid universal_integer computations
14903 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
14905 * .cvsignore: Delete.
14907 2003-11-21 Andreas Schwab <schwab@suse.de>
14909 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
14911 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
14913 * 5wsystem.ads: Enable zero cost exception.
14915 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
14917 * 5ztiitho.adb: Remove an unreferenced variable.
14919 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
14921 * adaint.c: For FreeBSD, use mkstemp.
14923 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
14925 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
14927 2003-11-21 Robert Dewar <dewar@gnat.com>
14929 * bld.adb: Remove useless USE of gnatvsn
14931 * gnatchop.adb: Minor reformatting
14932 Clean up version handling to be more consistent
14934 * gnatxref.adb: Minor reformatting
14936 * gprcmd.adb: Minor reformatting
14937 Fix output of copyright to be more consistent with other tools
14939 2003-11-21 Vincent Celier <celier@gnat.com>
14941 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
14943 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
14945 * atree.adb (Initialize): Add initializations for global variables
14946 used in New_Copy_Tree.
14948 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
14949 Internal_Source_File as the actual).
14950 Put the set of statements creating Any_Character before the set of
14951 statements creating Any_Array to have Any_Character fully initialized
14952 when it is used in creating Any_Array.
14954 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
14955 not call Scan in case if the actual is Internal_Source_File
14956 Add 2003 to copyright note.
14958 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
14959 processing Internal_Source_File.
14961 * types.ads: Add the constant Internal_Source_File representing the
14962 source buffer for artificial source-code-like strings created within
14963 the compiler (the definition of Source_File_Index is changed).
14965 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
14967 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
14968 56system.ads: New file, FreeBSD version.
14970 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
14972 * Make-lang.in (ada.extraclean): Delete.
14974 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
14976 * gnatmem.adb: Clean up verbose output.
14978 * gprcmd.adb: Change copyright to FSF.
14980 2003-11-19 Vincent Celier <celier@gnat.com>
14982 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
14983 and Version (ignored).
14985 * symbols.ads: (Policy): New type
14986 (Initialize): New parameter Reference, Symbol_Policy and
14988 Remove parameter Force.
14989 Minor reformatting.
14991 * snames.ads, snames.adbadb: New standard names
14992 Library_Reference_Symbol_File and Library_Symbol_Policy
14995 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
14999 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
15001 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
15003 * prj.adb: (Project_Empty): New component Symbol_Data
15005 * prj.ads: (Policy, Symbol_Record): New types
15006 (Project_Data): New component Symbol_Data
15009 New attributes Library_Symbol_File, Library_Symbol_Policy and
15010 Library_Reference_Symbol_File.
15013 (Ada_Check): When project is a Stand-Alone library project, process
15014 attribute Library_Symbol_File, Library_Symbol_Policy and
15015 Library_Reference_Symbol_File.
15017 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
15018 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
15019 5sml-tgt.adb (Build_Dynamic_Library): New parameter
15020 Symbol_Data (ignored).
15022 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
15023 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
15024 functions Option_File_Name and Version_String. Set new options of
15025 gnatsym related to symbol file, symbol policy and reference symbol
15029 Extensive modifications to take into account the reference symbol file,
15030 the symbol policy, the library version and to put in the symbol file the
15031 minor and major IDs.
15033 * bld.adb (Process_Declarative_Items): Put second argument of
15034 gprcmd to_absolute between single quotes, to avoid problems with
15037 * bld-io.adb: Update Copyright notice.
15038 (Flush): Remove last character of a line, if it is a back slash, to
15039 avoid make problems.
15042 Implement new scheme with reference symbol file and symbol policy.
15044 * g-os_lib.ads: (Is_Directory): Clarify comment
15046 2003-11-19 Robert Dewar <dewar@gnat.com>
15048 * atree.adb: Move New_Copy_Tree global variables to head of package
15050 * errout.adb: Minor reformatting
15052 2003-11-19 Javier Miranda <miranda@gnat.com>
15054 * sem_ch4.adb: (Diagnose_Call): Improve error message.
15055 Add reference to Ada0Y (AI-50217)
15057 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
15058 sem_util.adb: Add reference to AI-50217
15060 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
15062 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
15064 * sem_aggr.adb: Complete documentation of AI-287 changes
15066 * par-ch4.adb: Document previous changes.
15068 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
15069 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
15072 * exp_aggr.adb: Add references to AI-287 in previous changes
15074 2003-11-19 Ed Schonberg <schonberg@gnat.com>
15077 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
15078 in the rewriting is the result of an inlined call.
15080 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
15081 parameter is a type conversion, use original node to construct the
15082 post-call assignment, because expression may have been rewritten, e.g.
15083 if it is a packed array.
15086 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
15087 body, just as it is in an instance.
15088 Categorization routines
15090 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
15091 Instantiate_Object): Set proper sloc reference for message on missing
15094 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
15096 * Makefile.in: Add FreeBSD libgnat pairs.
15098 * usage.adb: Fix typo in usage message.
15100 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
15102 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
15103 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
15104 pragma Thread_Body.
15105 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
15107 * s-thread.adb: This file is now a dummy implementation of
15110 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
15112 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
15114 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
15116 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
15117 instanciation references in the parent type description.
15119 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15121 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
15123 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
15124 TYPE_PRECISION directly from esize.
15126 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
15129 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
15131 * init.c: Initialization routines for FreeBSD
15133 * link.c: Link info for FreeBSD
15135 * sysdep.c: Add the case of FreeBSD
15137 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
15139 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
15140 already called in System.Threads.
15142 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
15143 environment task, as it has been moved to System.Threads.Initialization.
15145 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
15147 * adaint.c (__gnatlib_install_locks): Only reference
15148 __gnat_install_locks on VMS, since other platforms can avoid using
15149 --enable-threads=gnat
15151 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15153 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
15155 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
15156 TYPE_PACKED_ARRAY_TYPE_P.
15157 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
15159 Part of PR ada/12806
15160 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
15161 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
15163 2003-11-17 Vincent Celier <celier@gnat.com>
15165 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
15167 Do not set exit status to Failure when Warning is True.
15168 (Gnatchop): Make errors "no compilation units found" and
15169 "no source files written" warnings only.
15171 * make.adb (Gnatmake): When using a project file, set
15172 Look_In_Primary_Dir to False.
15173 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
15174 and Local_Configuration_Pragmas in the project where they are declared
15175 not an extending project which might have inherited them.
15177 * osint.adb (Locate_File): If Name is already an absolute path, do not
15178 look for a directory.
15180 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
15181 -gnats (Check_Syntax) is used, issue only a warning, not an error.
15183 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
15184 in objects of type Variable_Value.
15186 * prj.ads: (Variable_Value): New component Project
15188 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
15189 is in a project extended by Project.
15191 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
15192 Project of Variable_Values to this new parameter value.
15193 (Expression): Set component Project of Variable_Values.
15194 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
15195 Set the component Project in array elements.
15197 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
15199 * errout.adb: (Initialize): Add initialization for error nodes.
15201 * sem_ch12.adb (Initialize): Add missing initializations for
15202 Exchanged_Views and Hidden_Entities.
15204 2003-11-17 Ed Schonberg <schonberg@gnat.com>
15206 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
15207 already instantiated tree for use in subsequent inlining.
15208 (Analyze_Associations, Instantiate_Formal_Subprogram,
15209 Instantiate_Object): improve error message for mismatch in
15212 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
15213 instantiations of subprograms declared in instances.
15215 2003-11-17 Javier Miranda <miranda@gnat.com>
15217 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
15218 executed only under the Extensions_Allowed flag.
15220 2003-11-17 Robert Dewar <dewar@gnat.com>
15222 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
15224 (Address_Image): Fix bug of returning 0x instead of 0x0
15225 Minor reformatting (function specs).
15227 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
15228 (missed case of 33-63)
15230 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
15232 * s-thread.adb: Add comments for pragma Restriction
15234 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
15235 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
15237 2003-11-17 Ed Falis <falis@gnat.com>
15239 * s-thread.adb: Added No_Tasking restriction for this implementation.
15241 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
15243 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
15244 instanciation references in the parent type description.
15246 2003-11-17 GNAT Script <nobody@gnat.com>
15248 * Make-lang.in: Makefile automatically updated
15250 2003-11-16 Jason Merrill <jason@redhat.com>
15252 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
15253 and TAGS files that include them for each front end.
15255 2003-11-14 Andreas Jaeger <aj@suse.de>
15257 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
15258 is the canonical version.
15259 * misc.c (gnat_handle_option): Likewise.
15261 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
15263 * 5nsystem.ads: New file for x86_64-linux-gnu.
15265 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
15267 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
15269 * comperr.adb: Fix logic in previous change.
15271 2003-11-13 Vincent Celier <celier@gnat.com>
15273 * 5bml-tgt.adb (Build_Dynamic_Library): Use
15274 Osint.Include_Dir_Default_Prefix instead of
15275 Sdefault.Include_Dir_Default_Name.
15277 * gnatlbr.adb: Update Copyright notice
15278 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
15279 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
15280 instead of Sdefault.Object_Dir_Default_Name
15283 (Process_Binder_File): Never suppress the option following -Xlinker
15286 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
15287 Sdefault.Object_Dir_Default_Name.
15289 * osint.ads, osint.adb:
15290 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
15291 Minor reformatting.
15293 * vms_conv.ads: Minor reformating
15294 Remove GNAT STANDARD and GNAT PSTA
15297 Allow GNAT MAKE to have several files on the command line.
15298 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
15299 Sdefault.Object_Dir_Default_Name.
15301 Remove data for GNAT STANDARD
15304 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
15305 Remove data for GNAT STANDARD
15306 Remove options and documentation for -gnatwb/-gnatwB: these warning
15307 options no longer exist.
15309 2003-11-13 Ed Falis <falis@gnat.com>
15311 * 5zthrini.adb: (Init_RTS): Made visible
15314 (Register): Removed unnecessary call to taskVarGet that checked whether
15315 an ATSD was already set as a task var for the argument thread.
15318 Updated comment to reflect that this is a VxWorks version
15319 Added context clause for System.Threads.Initialization
15320 Added call to System.Threads.Initialization.Init_RTS
15322 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
15325 (Init_RTS): New procedure, for the initialization of the run-time lib.
15328 Remove dependancy on System.Init, so that this file can be used in the
15329 AE653 sequential run-time lib.
15331 2003-11-13 Robert Dewar <dewar@gnat.com>
15333 * bindgen.adb: Minor reformatting
15335 2003-11-13 Ed Schonberg <schonberg@gnat.com>
15338 (Apply_Discriminant_Check): Do no apply check if target type is derived
15339 from source type with no applicable constraint.
15342 (Ensure_System_Dependency): Do not apply the style checks that may have
15343 been specified for the main unit.
15346 (Find_Selected_Component): Further improvement in error message, with
15350 (Resolve): Handle properly the case of an illegal overloaded protected
15353 2003-11-13 Javier Miranda <miranda@gnat.com>
15356 (Has_Default_Init_Comps): New function to check the presence of
15357 default initialization in an aggregate.
15358 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
15359 extension aggregate of a limited record. In addition, a new formal
15360 was added to do not initialize the record controller (if any) during
15361 this recursive expansion of ancestors.
15362 (Init_Controller): Add support for limited record components.
15363 (Expand_Record_Aggregate): In case of default initialized components
15364 convert the aggregate into a set of assignments.
15366 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
15367 describing the new syntax.
15368 Nothing else needed to be done because this subprogram delegates part of
15369 its work to P_Precord_Or_Array_Component_Association.
15370 (P_Record_Or_Array_Component_Association): Give support to the new
15371 syntax for default initialization of components.
15374 (Resolve_Aggregate): Relax the strictness of the frontend in case of
15375 limited aggregates.
15376 (Resolve_Record_Aggregate): Give support to default initialized
15378 (Get_Value): In case of default initialized components, duplicate
15379 the corresponding default expression (from the record type
15380 declaration). In case of default initialization in the *others*
15381 choice, do not check that all components have the same type.
15382 (Resolve_Extension_Aggregate): Give support to limited extension
15386 (Check_Initialization): Relax the strictness of the front-end in case
15387 of aggregate and extension aggregates. This test is now done in
15388 Get_Value in a per-component manner.
15390 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
15391 expression corresponds to a limited aggregate. This test is now done
15394 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
15397 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
15398 present in an N_Component_Association node
15400 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
15402 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
15403 type-conformant entry only if they are homographs.
15405 2003-11-13 GNAT Script <nobody@gnat.com>
15407 * Make-lang.in: Makefile automatically updated
15409 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15411 * adadecode.c: Use <> form of include for ctype.h.
15412 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
15414 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15416 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
15417 Works around PR middle-end/6552.
15419 2003-11-10 Ed Falis <falis@gnat.com>
15421 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
15423 * 5zinit.adb: (Install_Handler): Moved back to spec
15424 (Install_Signal_Handlers): Deleted
15426 * 5zthrini.adb: Added context clause for System.Storage_Elements
15427 (Register): Only handles creation of taskVar; initialization moved to
15429 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
15430 Added declaration of environment task secondary stack and
15433 * s-thread.adb: Implement bodies for thread body processing
15436 Added comment identifying supported targets for pragma Thread_Body.
15438 2003-11-10 Pascal Obry <obry@gnat.com>
15440 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
15444 (Open): Properly check for string length before copying into the buffer.
15445 Raises Name_Error if buffer is too small. Note that this was a potential
15448 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
15450 * bindgen.adb, comperr.adb: Code clean ups.
15451 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
15453 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
15455 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
15457 2003-11-10 Vincent Celier <celier@gnat.com>
15460 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
15463 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
15465 * prj.adb: (Project_Empty): Add new boolean component Virtual
15467 * prj.ads: (Virtual_Prefix): New constant string
15468 (Project_Data): New boolean component Virtual
15470 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
15471 a library project is extended by a virtual extending project.
15474 Modifications throughout to implement extending-all project, including:
15475 (Virtual_Hash, Processed_Hash): New hash tables
15476 (Create_Virtual_Extending_Project): New procedure
15477 (Look_For_Virtual_Projects_For): New procedure
15480 (Process): After checking the projects, if main project is an
15481 extending-all project, set the object directory of all virtual extending
15482 project to the object directory of the main project.
15483 Adjust error message when a virtual extending project has the same
15484 object directory as an project being extended.
15485 (Recursive_Process): If name starts with the virtual prefix, set Virtual
15486 to True in the project data.
15489 (Default_Project_Node): Add new boolean component Extending_All
15490 (Is_Extending_All): New function
15491 (Set_Is_Extending_All): New procedure
15493 * prj-tree.ads: (Is_Extending_All): New function
15494 (Set_Is_Extending_All): New procedure
15495 (Project_Node_Record): New boolean component Extending_All
15497 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
15500 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
15502 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
15503 "gprcmd prefix" to define it.
15505 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
15507 * einfo.ads: Fix a typo and remove an extraneous word in comments.
15510 (Create_Dummy_Package_Unit): Set the scope of the entity for the
15511 created dummy package to Standard_Standard, not to itself, to
15512 defend other parts of the front-end against encoutering a cycle in
15516 (Analyze_With_Clause): When setting the entities for the successive
15517 N_Expanded_Names that constitute the name of a child unit, do not
15518 attempt to go further than Standard_Standard in the chain of scopes.
15519 This case arises from the placeholder units created by
15520 Create_Dummy_Package_Unit in the case of a with_clause for a
15521 nonexistent child unit.
15523 2003-11-10 Ed Schonberg <schonberg@gnat.com>
15526 (Expand_Thread_Body): Place subprogram on scope stack, so that new
15527 declarations are given the proper scope.
15530 (Check_Expr_Constants): Reject an expression that contains a constant
15531 created during expansion, and that appears after the object to which
15532 the address clause applies.
15534 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
15535 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
15536 that uses 'Range of a function call with controlled components, so
15537 that the function result can be finalized before starting the loop.
15540 (Find_Selected_Component): Improve error message when prefix is
15541 an implicit dereference of an incomplete type.
15543 2003-11-10 Robert Dewar <dewar@gnat.com>
15545 * opt.ads: New Print_Standard flag for -gnatS switch
15547 * sem_ch13.adb: Remove some additional checks for unaligned arrays
15549 * cstand.adb (Create_Standard): Print out package standard if -gnatS
15552 * debug.adb: Update doc for -gnatds to discuss relationship with new
15555 * sinfo.adb: Add new field Entity_Or_Associated_Node
15557 * sinfo.ads: Add new field Entity_Or_Associated_Node
15558 Update documentation for Associated_Node and Entity fields to clarify
15559 relationship and usage.
15562 (Write_Id): Properly process Associated_Node field in generic template
15565 Recognize new -gnatS switch for printing package Standard
15566 This replaces gnatpsta
15569 Add line for new -gnatS switch for printing package Standard
15570 This replaces gnatpsta
15572 2003-11-10 Andreas Jaeger <aj@suse.de>
15574 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
15577 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
15579 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
15582 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
15584 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
15587 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
15589 * sysdep.c: Add handling of cygwin.
15591 2003-11-10 GNAT Script <nobody@gnat.com>
15593 * Make-lang.in: Makefile automatically updated
15595 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
15598 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
15599 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
15600 Replace GNAT_ROOT by GCC_ROOT.
15602 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
15604 2003-11-06 Zack Weinberg <zack@codesourcery.com>
15606 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
15607 and update for changed meaning of GET_MODE_BITSIZE.
15609 2003-11-04 Doug Rupp <rupp@gnat.com>
15611 * sysdep.c: Problem discovered during IA64 VMS port.
15612 [VMS] #include <unixio.h> to get proper prototypes.
15615 Issues discovered/problems fixed during IA64 VMS port.
15616 [VMS] #define _POSIX_EXIT for proper semantics.
15617 [VMS] #include <unixio.h> for proper prototypes.
15618 [VMS] (fork): #define IA64 version.
15619 (__gnat_os_exit): Remove unnecessary VMS specific code.
15621 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15623 Part of PR ada/12806
15625 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
15629 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
15632 * targtyps.c, decl.c, misc.c,
15633 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
15634 routines to work around change in FP sizing semantics in GCC.
15637 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
15639 * gigi.h: (enumerate_modes): New function.
15641 * Make-lang.in: (ada/misc.o): Add real.h.
15643 * misc.c: (enumerate_modes): New function.
15645 2003-11-04 Robert Dewar <dewar@gnat.com>
15647 * 3vtrasym.adb: Minor reformatting
15648 Use terminology encoded/decoded name, rather than C++ specific notion
15649 of mangling (this is the terminology used throughout GNAT).
15651 * einfo.h: Regenerated
15653 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
15656 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
15658 * par-prag.adb: Add dummy entry for Thread_Body pragma
15661 Add entries for System.Threads entities for thread body processing
15664 (Analyze_Pragma, Access attributes): Check these are not applied to a
15665 thread body, since this is not permitted
15667 * sem_prag.adb: Add processing for Thread_Body pragma.
15671 (Resolve_Call): Check for incorrect attempt to call a thread body
15672 procedure with a direct call.
15674 * snames.ads, snames.adb: Add entry for Thread_Body pragma
15675 Add names associated with thread body expansion
15677 * snames.h: Add entry for Thread_Body pragma
15679 * s-thread.adb: Add entries for thread body processing
15680 These are dummy bodies so far
15682 * s-thread.ads: Add documentation on thread body handling.
15683 Add entries for thread body processing.
15685 2003-11-04 Javier Miranda <miranda@gnat.com>
15688 (Build_Limited_Views): Return after posting an error in case of limited
15689 with_clause on subprograms, generics, instances or generic renamings
15690 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
15691 on subprograms, generics, instances or generic renamings
15693 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
15695 * raise.c (setup_to_install): Correct mistake in last revision; two
15696 arguments out of order.
15698 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
15699 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
15700 notice, missed in previous change.
15701 Remove trailing blanks and other style errors introduced in previous
15704 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
15706 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
15707 rid of the wrapper for a LJM type, ensuring we don't do that if the
15708 field is addressable. This avoids potential low level type view
15709 mismatches later on, for instance in a by-reference argument passing
15712 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15714 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
15715 aligned at byte boundary.
15717 2003-11-04 Joel Brobecker <brobecker@gnat.com>
15719 * decl.c (components_to_record): Do not delete the empty variants from
15720 the end of the union type.
15722 2003-11-04 Ed Schonberg <schonberg@gnat.com>
15724 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
15725 operation for a derived type, an explicit declaration may use a local
15726 subtype of Boolean.
15728 2003-11-04 Vincent Celier <celier@gnat.com>
15730 * make.adb (Gnatmake): Allow main sources on the command line with a
15731 library project when it is only for compilation (no binding or
15734 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15736 * Makefile.in: Remove many duplicate variables.
15738 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
15740 * Make-lang.in (dvi): Move targets to $(docobjdir).
15741 (gnat_ug_vms.dvi): Simplify rule and adjust target.
15742 (gnat_ug_wnt.dvi): Likewise.
15743 (gnat_ug_unx.dvi): Likewise.
15744 (gnat_ug_vxw.dvi): Likewise.
15745 (gnat_rm.dvi): Likewise.
15746 (gnat-style.dvi): Likewise.
15748 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
15750 * gigi.h: Missed commit from update for C90.
15752 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
15754 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
15756 2003-10-31 Andreas Schwab <schwab@suse.de>
15758 * raise.c (get_action_description_for): Fix typo in last change.
15760 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
15763 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
15764 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
15766 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
15768 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
15769 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
15770 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
15771 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
15772 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
15774 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
15777 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
15778 numbers when symbol name is too long.
15780 2003-10-30 Ed Falis <falis@gnat.com>
15782 * g-signal.ads, g-signal.adb: New files
15784 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
15786 * Makefile.rtl: Introduce GNAT.Signals
15788 2003-10-30 Robert Dewar <dewar@gnat.com>
15790 * freeze.adb: Minor reformatting
15792 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
15794 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
15795 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
15796 New handling of Id_Check parameter to improve recognition of keywords
15797 used as identifiers.
15798 Update copyright notice to include 2003
15800 2003-10-29 Robert Dewar <dewar@gnat.com>
15802 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
15803 sem_ch10.adb: Minor reformatting
15805 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
15806 (Expand_Assign_Record): Test right hand side for bit unaligned as well
15808 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
15810 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
15811 Support for TBK$SYMBOLIZE-based symbolic traceback.
15813 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
15816 Revert previous change, that did not work well when pragma No_Run_Time
15817 was used in conjunction with a run-time other than ZFP.
15819 2003-10-29 Vincent Celier <celier@gnat.com>
15822 (Gnatmake): When there are no Ada mains in attribute Main, disable the
15823 bind and link steps only is switch -z is not used.
15825 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
15827 * Makefile.generic: Remove duplicated setting of CC.
15829 * Makefile.prolog: Set CC to gcc by default, to override make's
15832 * einfo.h: Regenerated.
15834 2003-10-29 Ed Schonberg <schonberg@gnat.com>
15836 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
15837 current body, after compiling subunit.
15839 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
15840 when in deleted code, because gigi needs properly ordered freeze
15841 actions to annotate types.
15843 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
15844 prevent the premature freezing of record type that contains
15845 subcomponents with a private type that does not yet have a completion.
15847 2003-10-29 Javier Miranda <miranda@gnat.com>
15850 (Analyze_Package_Instantiation): Check that instances can not be used in
15851 limited with_clauses.
15854 (Analyze_Package_Renaming): Check that limited withed packages cannot
15855 be renamed. Improve text on error messages related to limited
15858 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
15860 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
15861 Update copyright notice.
15863 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
15864 (Install_Limited_Context_Clauses): New subprogram that isolates all the
15865 checks required for limited context_clauses and installs the limited
15867 (Install_Limited_Withed_Unit): Complete its documentation.
15868 (Analyze_Context): Check that limited with_clauses are only allowed in
15870 (Install_Context): Call Install_Limited_Context_Clauses after the
15871 parents have been installed.
15872 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
15873 package as 'From_With_Type'; this mark indicates that the limited view
15874 is installed. Used to check bad usages of limited with_clauses.
15875 (Build_Limited_Views): Do not add shadow entities to the scope's list
15876 of entities. Do not add real entities to the Non_Limited_Views chain.
15877 Improve error notification.
15878 (Remove_Context_Clauses): Remove context clauses in two phases:
15879 limited views first and regular views later (to maintain the
15881 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
15882 its visible entities.
15884 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
15886 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
15887 with any type that Is_Fixed_Point_Type.
15889 * sinfo.ads: Fix documentation for Associated_Node attribute.
15891 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
15893 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
15894 both '-gnatc' and '-gnatt' are specified.
15896 * atree.adb (Initialize): Add initialization for Node_Count (set to
15899 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15901 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
15902 do not consider as Pure.
15904 Part of implementation of function-at-a-time:
15906 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
15907 (tree_transform): Add new argument to build_component_ref.
15908 (tree_transform, case N_Assignment_Statement): Make and return an
15910 (tree_transform): If result IS_STMT, set flags and return it.
15911 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
15913 * utils2.c (build_simple_component_ref, build_component_ref): Add new
15915 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
15916 (build_allocator): Likewise.
15918 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
15919 Add new arg to build_component_ref.
15920 (maybe_unconstrained_array, unchecked_convert): Likewise.
15922 * ada-tree.def (EXPR_STMT): New code.
15924 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
15926 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
15927 build_component_ref calls.
15929 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
15931 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
15932 (build_component_ref): Add new argument, NO_FOLD_P.
15934 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
15936 * Makefile.generic: Add missing substitution on object_deps handling.
15939 * Make-lang.in (check-ada): Enable ACATS test suite.
15941 2003-10-27 Robert Dewar <dewar@gnat.com>
15944 (Freeze_Array_Type): We do not need an initialization routine for types
15945 derived from String or Wide_String. They should be treated the same
15946 as String and Wide_String themselves. This caused problems with the
15947 use of Initialize_Scalars.
15950 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
15951 composites. This allows use of component clauses that are not byte
15955 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
15956 is an attempt to pack an array of atomic objects.
15958 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
15960 2003-10-27 Pascal Obry <obry@gnat.com>
15963 (Basename): Check for drive letters in a pathname only on DOS based OS.
15965 2003-10-27 Vincent Celier <celier@gnat.com>
15968 (Gnatmake): When unable to change dir to the object dir, display the
15969 content of the parent dir of the obj dir, to try to understand why this
15972 2003-10-27 GNAT Script <nobody@gnat.com>
15974 * Make-lang.in: Makefile automatically updated
15976 2003-10-27 Ed Schonberg <schonberg@gnat.com>
15979 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
15980 should not be done in Save/Restore_Scope_Stack, because it is performed
15984 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
15985 whether use clauses should be removed/restored.
15988 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
15989 whether use clauses should be removed/restored.
15991 2003-10-26 Andreas Jaeger <aj@suse.de>
15993 * Makefile.in: Remove duplicated lines.
15995 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
15997 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
15998 minimize the differences with ACT tree.
16000 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
16001 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
16002 Gnatvsn.Gnat_Static_Version_String to reduce differences between
16005 2003-10-24 Pascal Obry <obry@gnat.com>
16007 * adadecode.c (ostrcpy): New function.
16008 (__gnat_decode): Use ostrcpy of strcpy.
16009 (has_prefix): Set first parameter a const.
16010 (has_suffix): Set first parameter a const.
16011 Update copyright notice. Fix source name in header.
16012 Removes a trailing space.
16015 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
16018 Remove the test against being in No_Run_Time_Mode before generating a
16019 call to Register_Tag. It is redundant with the test against the
16020 availability of the function Register_Tag.
16022 2003-10-24 Vincent Celier <celier@gnat.com>
16024 * g-catiio.adb: (Month_Name): Correct spelling of February
16026 * make.adb: (Mains): New package
16027 (Initialize): Call Mains.Delete
16028 (Gnatmake): Check that each main on the command line is a source of a
16029 project file and, if there are several mains, each of them is a source
16030 of the same project file.
16031 (Gnatmake): When a foreign language is specified in attribute Languages,
16032 no main is specified on the command line and attribute Mains is not
16033 empty, only build the Ada main. If there is no Ada main, just compile
16034 the Ada sources and their closure.
16035 (Gnatmake): If a main is specified on the command line with directory
16036 information, check that the source exists and, if it does, that the path
16037 is the actual path of a source of a project.
16040 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
16041 Full_Path is True, return the full path instead of the simple file name.
16042 (Project_Of): New function
16045 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
16046 defaulted to False.
16047 (Project_Of): New function
16049 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
16051 * Makefile.generic:
16052 Ensure objects of main project are always checked and rebuilt if needed.
16053 Set CC to gcc by default.
16054 Prepare new handling of link by creating a global archive (not activated
16057 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
16058 stringt.h: Update copyright notice. Remove trailing blanks.
16059 Fix source name in header.
16061 2003-10-24 Robert Dewar <dewar@gnat.com>
16063 * sem_ch12.adb: Minor reformatting
16066 Minor reformatting (including new function return style throughout)
16069 Minor reformatting (including new function return style throughout)
16071 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
16073 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
16074 stringt.h: Update copyright notice. Remove trailing blanks.
16075 Fix source name in header.
16077 2003-10-24 GNAT Script <nobody@gnat.com>
16079 * Make-lang.in: Makefile automatically updated
16081 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
16083 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
16084 stringt.h: Convert to ISO C90 declarations and definitions.
16086 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
16089 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
16090 External_Tag attribute definition clauses.
16092 2003-10-23 Ed Schonberg <schonberg@gnat.com>
16095 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
16096 child unit, generate a fully qualified name to avoid spurious errors
16097 when the context contains renamings of different child units with
16098 the same simple name.
16100 * exp_dbug.ads: Add documentation on name qualification for renamings
16103 2003-10-23 Robert Dewar <dewar@gnat.com>
16105 * g-regpat.ads, g-regpat.adb: Minor reformatting
16107 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
16109 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
16111 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16113 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
16116 * urealp.h: (Machine): Update to proper definition.
16118 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
16120 * init.c, adaint.c: Minor reformatting.
16122 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
16124 * adaint.c (w32_epoch_offset): Define static const at file level.
16125 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
16126 rather than t_create, t_access in call to GetFileTime. Use union
16127 to convert between FILETIME and unsigned long long.
16128 (__gnat_file_time_name): Test for invalid file handle.
16129 (__gnat_set_filetime_name): Support win32 targets using
16130 w32api SetFileTime.
16132 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
16134 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
16136 * ctrl_c.c (__gnat_int_handler): Remove declaration.
16138 * decl.c (creat_concat_name): Const-ify prefix.
16140 * adaint.c: Include ctype.h if __MINGW32__.
16141 (__gnat_readlink): Mark arguments as possibly unused.
16142 (__gnat_symlink): Likewise.
16143 (__gnat_is_symbolic_link): Likewise.
16144 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
16146 (__gnat_file_time_name): Don't declare struct stat statbuf when
16148 (__gnat_is_absolute_path): Add parenthesis around condition of
16149 'if' statement to avoid warning.
16150 (__gnat_plist_init): Specify void as parameter.
16151 (plist_enter): Likewise.
16152 (plist_leave): Likewise.
16153 (remove_handle): Make static. Initialize prev.
16155 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
16157 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
16158 * cstreams.c (__gnat_full_name): Minor improvements and clean up
16159 of previous change.
16161 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16163 * tracebak.c (MAX): Avoid redefinition warning.
16165 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
16166 Change msg to const char *.
16167 (__gnat_install_handler): Remove ss, unused.
16168 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
16170 * cstreams.c (__gnat_full_name): Declare p only when used.
16171 (__gnat_full_name) [sgi] Return buffer.
16173 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
16175 * mingw32.h: New file.
16176 * gnat_wrapper.adb: New file.
16178 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
16180 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
16181 string match a pre compiled regular expression (the corresponding
16182 version of the function working on a raw regular expression)
16183 Fix typos in various comments
16184 Update copyright notice in spec
16186 2003-10-21 Gary Dismukes <dismukes@gnat.com>
16189 (Component_Needs_Simple_Initialization): Return False when the type is a
16190 packed bit array. Revise spec comments to document this case.
16193 (Expand_Pragma_Import): Set any expression on the imported object to
16194 empty to avoid initializing imported objects (in particular this
16195 covers the case of zero-initialization of bit arrays).
16196 Update copyright notice.
16198 2003-10-21 Ed Schonberg <schonberg@gnat.com>
16201 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
16202 a subunit is missing.
16203 (Instantiate_Subprogram_Body): If body of function is missing, set type
16204 of return expression explicitly in dummy body, to prevent cascaded
16205 errors when a subunit is missing.
16209 (Access_Subprogram_Declaration): Verify that return type is valid.
16213 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
16218 (Corresponding_Discriminant): If the scope of the discriminant is a
16219 private type without discriminant, use its full view.
16222 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
16224 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
16225 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
16226 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
16227 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
16228 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
16229 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
16230 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
16231 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
16232 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
16233 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
16234 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
16235 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
16236 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
16237 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
16238 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
16239 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
16240 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
16241 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
16242 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
16243 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
16244 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
16245 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
16246 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
16247 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
16248 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
16249 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
16250 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
16251 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
16252 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
16253 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
16254 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
16255 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
16256 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
16257 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
16258 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
16259 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
16260 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
16261 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
16262 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
16263 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
16264 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
16265 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
16266 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
16267 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
16268 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
16269 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
16270 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
16271 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
16272 vms_conv.ads, vms_conv.adb, vms_data.ads,
16273 vxaddr2line.adb: Files added. Merge with ACT tree.
16275 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
16276 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
16277 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
16278 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
16279 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
16280 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
16281 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
16282 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
16283 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
16284 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
16286 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
16287 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
16288 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
16289 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
16290 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
16291 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
16292 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
16293 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
16294 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
16295 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
16296 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
16297 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
16298 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
16299 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
16300 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
16301 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
16302 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
16303 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
16304 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
16305 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
16306 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
16307 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
16308 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
16309 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
16310 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
16311 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
16312 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
16313 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
16314 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
16315 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
16316 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
16317 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
16318 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
16319 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
16320 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
16321 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
16322 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
16323 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
16324 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
16325 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
16326 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
16327 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
16328 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
16329 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
16330 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
16331 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
16332 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
16333 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
16334 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
16335 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
16336 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
16337 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
16338 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
16339 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
16340 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
16341 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
16342 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
16343 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
16344 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
16345 checks.adb, checks.ads, cio.c, comperr.adb,
16346 comperr.ads, csets.adb, cstand.adb, cstreams.c,
16347 debug_a.adb, debug_a.ads, debug.adb, decl.c,
16348 einfo.adb, einfo.ads, errout.adb, errout.ads,
16349 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
16350 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
16351 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
16352 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
16353 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
16354 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
16355 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
16356 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
16357 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
16358 fe.h, fmap.adb, fmap.ads, fname.adb,
16359 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
16360 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
16361 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
16362 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
16363 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
16364 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
16365 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
16366 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
16367 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
16368 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
16369 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
16370 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
16371 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
16372 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
16373 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
16374 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
16375 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
16376 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
16377 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
16378 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
16379 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
16380 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
16381 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
16382 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
16383 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
16384 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
16385 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
16386 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
16387 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
16388 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
16389 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
16390 layout.adb, lib.adb, lib.ads, lib-list.adb,
16391 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
16392 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
16393 link.c, live.adb, make.adb, make.ads,
16394 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
16395 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
16396 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
16397 misc.c, mkdir.c, mlib.adb, mlib.ads,
16398 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
16399 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
16400 namet.adb, namet.ads, namet.h, nlists.ads,
16401 nlists.h, nmake.adt, opt.adb, opt.ads,
16402 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
16403 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
16404 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
16405 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
16406 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
16407 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
16408 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
16409 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
16410 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
16411 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
16412 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
16413 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
16414 prj-util.adb, prj-util.ads, raise.c, raise.h,
16415 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
16416 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
16417 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
16418 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
16419 scans.ads, scn.adb, scn.ads, s-crc32.adb,
16420 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
16421 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
16422 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
16423 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
16424 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
16425 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
16426 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
16427 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
16428 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
16429 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
16430 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
16431 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
16432 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
16433 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
16434 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
16435 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
16436 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
16437 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
16438 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
16439 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
16440 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
16441 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
16442 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
16443 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
16444 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
16445 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
16446 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
16447 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
16448 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
16449 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
16450 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
16451 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
16452 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
16453 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
16454 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
16455 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
16456 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
16457 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
16458 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
16459 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
16460 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
16461 stringt.adb, stringt.ads, stringt.h, style.ads,
16462 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
16463 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
16464 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
16465 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
16466 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
16467 table.adb, table.ads, targparm.adb, targparm.ads,
16468 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
16469 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
16470 ttypes.ads, types.ads, types.h, uintp.adb,
16471 uintp.ads, uintp.h, uname.adb, urealp.adb,
16472 urealp.ads, urealp.h, usage.adb, utils2.c,
16473 utils.c, validsw.adb, validsw.ads, widechar.adb,
16474 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
16475 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
16476 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
16477 gnatvsn.ads: Merge with ACT tree.
16479 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
16481 2003-10-20 Mark Mitchell <mark@codesourcery.com>
16483 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
16484 (gnat_ug_vmx.info): Likewise.
16485 (gnat_ug_vxw.info): Likewise.
16486 (gnat_ug_wnt.info): Likewise.
16487 (gnat_rm.info): Likewise.
16488 (gnat-style.info): Likewise.
16490 * Make-lang.in (ada.install-info): Remove target.
16491 (info): New target.
16492 (install-info): Likewise.
16493 (gnat_ug_unx.info): Simplify rule.
16494 (gnat_ug_vmx.info): Likewise.
16495 (gnat_ug_vxw.info): Likewise.
16496 (gnat_ug_wnt.info): Likewise.
16497 (gnat_rm.info): Likewise.
16498 (gnat-style.info): Likewise.
16500 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
16502 * Make-lang.in: Replace uses of $(target_alias) with
16503 $(target_noncanonical).
16504 * ada/Makefile.in: Remove unused mention of $(target_alias).
16506 2003-10-06 Mark Mitchell <mark@codesourcery.com>
16508 * Make-lang.in (ada.info): Replace with ...
16510 (ada.dvi): Replace with ...
16513 2003-09-29 Zack Weinberg <zack@codesourcery.com>
16515 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
16516 initialize dconstp5 and dconstmp5.
16518 2003-09-28 Richard Henderson <rth@redhat.com>
16520 * trans.c (tree_transform): Update call to expand_asm_operands.
16522 2003-09-21 Richard Henderson <rth@redhat.com>
16524 * trans.c, utils.c: Revert.
16526 2003-09-21 Richard Henderson <rth@redhat.com>
16528 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
16531 2003-09-04 Michael Matz <matz@suse.de>
16533 * misc.c: Include "target.h".
16534 * Make-lang.in (misc.o): Add dependency on target.h.
16536 2003-09-03 DJ Delorie <dj@redhat.com>
16538 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
16541 2003-08-30 Zack Weinberg <zack@codesourcery.com>
16543 * Makefile.in: Update substitutions to match changes to
16544 configure. Use include directives instead of @-insertions
16545 to read in host and target fragments. Add a rule to
16546 regenerate ada/Makefile.
16548 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
16550 * lang-options.h: Remove.
16551 * lang.opt: Add help text.
16553 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
16555 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
16558 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
16560 * misc.c (gnat_handle_option): Don't handle filenames.
16562 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
16564 * Make-lang.in: Replace PWD with PWD_COMMAND.
16565 * Makefile.adalib: Likewise.
16566 * Makefile.in: Likewise.
16568 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
16570 * misc.c (gnat_argv): Revert last change.
16571 (gnat_handle_option, gnat_init_options): Copy arguments.
16573 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
16575 * misc.c (gnat_argv): Make const.
16577 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
16579 * misc.c (save_argc, save_argv): Keep non-static!
16581 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
16583 * misc.c (save_argc, save_argv): Make static.
16584 (gnat_init_options): New prototype.
16585 (gnat_init_options): Update.
16587 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
16589 * gnat_ug.texi: Remove unlikely characters from @vars.
16590 * gnat_ug_vms.texi: Regenerate.
16592 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
16594 * misc.c (record_code_position): Adjust emit_note call.
16596 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
16598 * misc.c (gnat_handle_option): Don't check for missing arguments.
16600 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
16602 * utils.c (end_subprog_body): Adjust expand_function_end call.
16604 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
16606 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
16609 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
16611 * lang.opt: Declare Ada.
16612 * misc.c (gnat_init_options): Update.
16614 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
16616 * utils.c (begin_subprog_body): Adjust init_function_start call.
16618 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
16620 * Make-lang.in: Update to use options.c and options.h.
16621 * misc.c: Include options.h not aoptions.h.
16622 (gnat_handle_option): Abort on unrecognized switch.
16623 (gnat_init_options): Request Ada switches.
16625 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
16627 * lang.opt: Add -Wall.
16628 * misc.c (gnat_handle_option): Handle it.
16630 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
16632 * misc.c (gnat_handle_option): Fix warnings.
16634 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
16636 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
16638 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
16640 * Make-lang.in: Update to handle command-line options.
16641 * lang.opt: New file.
16642 * misc.c: Include aoptions.h.
16643 (cl_options_count, cl_options): Remove.
16644 (gnat_handle_option): New.
16645 (gnat_decode_option): Remove.
16646 (LANG_HOOKS_DECODE_OPTION): Remove.
16647 (LANG_HOOKS_HANDLE_OPTION): Override.
16649 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
16651 * init.c, misc.c, trans.c, utils.c: Remove dead code.
16653 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
16655 * Makefile.in: Replace "host_canonical" with "host" for autoconf
16658 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
16660 * Make-lang.in: Update.
16661 * misc.c: Include opts.h. Define cl_options_count and cl_options.
16663 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
16665 * misc.c (gnat_init_options): Update.
16667 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
16669 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
16670 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
16671 __attribute__ ((__unused__)).
16673 2003-06-05 Jan Hubicka <jh@suse.cz>
16675 * Make-lang.in: Add support for stageprofile and stagefeedback
16677 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
16679 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
16680 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
16682 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
16684 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
16685 Remove non-VMS directive.
16686 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
16688 (Examples of gnatls Usage): Remove VMS alternative.
16690 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
16693 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
16694 and turn ZCX_By_Default back to False since the underlying support
16695 is not quite there yet.
16697 2003-06-01 Andreas Jaeger <aj@suse.de>
16699 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
16700 and ROUND_TYPE_SIZE_UNIT.
16702 2003-05-22 Geert Bosch <bosch@gnat.com>
16704 * gnat_rm.texi : Remove reference to Ada Core Technologies.
16706 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
16708 * trans.c (tree_transform): Use location_t and input_location
16710 (build_unit_elab): Likewise.
16711 * utils.c (create_label_decl): Likewise.
16713 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
16715 * trans.c (tree_transform, build_unit_elab,
16716 set_lineno): Rename lineno to input_line.
16717 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
16718 end_subprog_body): Likewise.
16719 * utils2.c (build_call_raise): Likewise.
16721 2003-05-01 Laurent Guerby <guerby@acm.org>
16724 * 5iosinte.ads: Increase pthread_cond_t size to match recent
16725 LinuxThread and NPTL version, merge from ACT.
16727 2003-04-28 Zack Weinberg <zack@codesourcery.com>
16729 * utils.c (convert): No need to clear TREE_CST_RTL.
16731 2003-04-23 Geert Bosch <bosch@gnat.com>
16733 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
16734 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
16735 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
16736 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
16737 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
16738 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
16739 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
16740 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
16741 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
16742 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
16743 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
16744 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
16745 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
16746 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
16747 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
16748 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
16749 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
16750 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
16751 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
16752 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
16753 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
16754 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
16755 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
16756 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
16757 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
16758 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
16759 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
16760 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
16761 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
16762 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
16763 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
16764 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
16765 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
16766 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
16767 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
16768 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
16769 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
16770 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
16771 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
16772 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
16773 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
16774 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
16775 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
16776 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
16777 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
16778 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
16779 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
16780 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
16781 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
16782 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
16783 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
16784 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
16785 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
16786 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
16787 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
16788 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
16789 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
16790 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
16791 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
16792 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
16793 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
16794 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
16795 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
16796 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
16797 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
16798 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
16799 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
16800 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
16801 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
16802 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
16803 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
16804 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
16805 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
16806 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
16807 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
16808 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
16809 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
16810 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
16811 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
16812 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
16813 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
16814 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
16815 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
16816 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
16817 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
16818 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
16819 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
16820 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
16821 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
16822 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
16823 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
16824 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
16825 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
16826 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
16827 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
16828 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
16829 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
16830 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
16831 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
16832 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
16833 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
16834 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
16835 ali.adb, ali.ads, alloc.ads, argv.c,
16836 atree.adb, atree.ads, atree.h, aux-io.c,
16837 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
16838 binde.adb, binde.ads, binderr.adb, binderr.ads,
16839 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
16840 butil.adb, butil.ads, cal.c, calendar.ads,
16841 casing.adb, casing.ads, ceinfo.adb, checks.adb,
16842 checks.ads, cio.c, comperr.adb, comperr.ads,
16843 config-lang.in, csets.adb, csets.ads, csinfo.adb,
16844 cstand.adb, cstand.ads, cuintp.c, debug.adb,
16845 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
16846 dec-io.ads, dec.ads, deftarg.c, directio.ads,
16847 einfo.adb, einfo.ads, elists.adb, elists.ads,
16848 elists.h, errno.c, errout.adb, errout.ads,
16849 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
16850 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
16851 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
16852 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
16853 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
16854 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
16855 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
16856 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
16857 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
16858 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
16859 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
16860 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
16861 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
16862 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
16863 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
16864 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
16865 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
16866 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
16867 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
16868 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
16869 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
16870 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
16871 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
16872 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
16873 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
16874 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
16875 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
16876 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
16877 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
16878 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
16879 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
16880 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
16881 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
16882 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
16883 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
16884 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
16885 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
16886 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
16887 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
16888 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
16889 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
16890 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
16891 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
16892 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
16893 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
16894 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
16895 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
16896 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
16897 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
16898 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
16899 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
16900 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
16901 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
16902 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
16903 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
16904 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
16905 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
16906 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
16907 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
16908 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
16909 lib.adb, lib.ads, live.adb, live.ads,
16910 machcode.ads, make.adb, make.ads, makeusg.adb,
16911 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
16912 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
16913 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
16914 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
16915 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
16916 mlib.ads, namet.adb, namet.ads, nlists.adb,
16917 nlists.ads, opt.adb, opt.ads, osint-b.adb,
16918 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
16919 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
16920 osint.ads, output.adb, output.ads, par-ch10.adb,
16921 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
16922 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
16923 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
16924 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
16925 par-tchk.adb, par-util.adb, par.adb, par.ads,
16926 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
16927 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
16928 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
16929 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
16930 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
16931 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
16932 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
16933 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
16934 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
16935 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
16936 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
16937 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
16938 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
16939 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
16940 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
16941 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
16942 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
16943 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
16944 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
16945 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
16946 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
16947 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
16948 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
16949 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
16950 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
16951 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
16952 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
16953 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
16954 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
16955 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
16956 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
16957 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
16958 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
16959 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
16960 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
16961 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
16962 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
16963 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
16964 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
16965 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
16966 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
16967 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
16968 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
16969 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
16970 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
16971 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
16972 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
16973 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
16974 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
16975 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
16976 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
16977 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
16978 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
16979 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
16980 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
16981 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
16982 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
16983 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
16984 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
16985 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
16986 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
16987 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
16988 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
16989 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
16990 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
16991 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
16992 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
16993 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
16994 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
16995 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
16996 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
16997 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
16998 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
16999 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
17000 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
17001 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
17002 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
17003 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
17004 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
17005 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
17006 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
17007 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
17008 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
17009 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
17010 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
17011 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
17012 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
17013 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
17014 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
17015 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
17016 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
17017 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
17018 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
17019 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
17020 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
17021 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
17022 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
17023 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
17024 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
17025 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
17026 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
17027 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
17028 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
17029 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
17030 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
17031 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
17032 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
17033 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
17034 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
17035 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
17036 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
17037 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
17038 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
17039 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
17040 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
17041 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
17042 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
17043 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
17044 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
17045 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
17046 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
17047 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
17048 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
17049 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
17050 snames.ads, sprint.adb, sprint.ads, stand.adb,
17051 stand.ads, stringt.adb, stringt.ads, style.adb,
17052 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
17053 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
17054 switch-m.ads, switch.adb, switch.ads, system.ads,
17055 table.adb, table.ads, targparm.adb, targparm.ads,
17056 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
17057 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
17058 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
17059 ttypef.ads, ttypes.ads, types.adb, types.ads,
17060 uintp.adb, uintp.ads, uname.adb, uname.ads,
17061 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
17062 usage.adb, usage.ads, validsw.adb, validsw.ads,
17063 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
17064 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
17065 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
17066 formatting and other trivial changes from ACT.
17068 2003-04-12 Zack Weinberg <zack@codesourcery.com>
17070 * gigi.h, utils2.c (build_constructor):
17071 Rename gnat_build_constructor. Use build_constructor.
17072 * decl.c (gnat_to_gnu_entity)
17073 * trans.c (tree_transform, pos_to_constructor, extract_values)
17074 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
17075 (unchecked_convert)
17076 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
17077 (fill_vms_descriptor):
17080 2003-04-06 Zack Weinberg <zack@codesourcery.com>
17082 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
17083 * misc.c (gnat_tree_size): New function.
17084 (LANG_HOOKS_TREE_SIZE): Override.
17086 2003-04-03 Jason Merrill <jason@redhat.com>
17088 * misc.c (gnat_adjust_rli): #if 0.
17090 2003-03-31 Geert Bosch <bosch@gnat.com>
17093 * link.c : Fix misspelled "const" keyword
17095 2003-03-23 Mark Mitchell <mark@codesourcery.com>
17098 * utils2.c: Adjust calls to put_var_into_stack.
17100 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
17102 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
17104 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
17106 * misc.c (gnat_init): Update for new prototype.
17108 2003-03-05 Olivier Hainque <hainque@gnat.com>
17111 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
17112 warning, and fix return type for the IN_RTS && !SJLJ case.
17114 2003-03-04 Tom Tromey <tromey@redhat.com>
17116 * Make-lang.in (ada.tags): New target.
17118 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
17121 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
17122 wrapper, which name remains constant whatever underlying GCC
17125 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
17126 the stable interface needed for a-except.
17128 2003-03-02 Andreas Jaeger <aj@suse.de>
17130 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
17131 gnat_ug_wnt.texi: Regenerate.
17133 2003-03-02 Laurent Guerby <guerby@acm.org>
17135 * Makefile.in (install-gnatlib): Match previous change there
17138 2003-02-28 Andreas Schwab <schwab@suse.de>
17140 * Make-lang.in (install-gnatlib): Change to ada directory before
17141 running make instead of using ada/Makefile directly.
17143 2003-02-18 Ben Elliston <bje@redhat.com>
17145 Part of fix for PR ada/9406
17146 * gnat_ug.texi (Binder output file): Grammar fix.
17148 2003-02-18 Ben Elliston <bje@redhat.com>
17151 * 5qtaprop.adb (Sleep): Fix typo in comment.
17153 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
17155 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
17156 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
17157 gnat_ug_wnt.texi: Regenerate.
17159 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
17161 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
17162 be created if necessary.
17163 (ada.install-common): Let $(DESTDIR)$(bindir) be created
17164 if necessary. Remove erroneous and redundant gnatchop
17165 installation commands. Test for gnatdll before attempting
17167 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
17168 and gnatdll from all plausible locations.
17170 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
17172 * utils2.c (build_unary_op): Don't check flag_volatile.
17173 * gnat_ug.texi: Remove -fvolatile from example.
17174 * gnat_ug_vxw.texi: Likewise.
17176 2003-01-29 Laurent Guerby <guerby@acm.org>
17179 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
17180 * Makefile.in: match previous change.
17181 * Make-lang.in: match previous change.
17183 2003-01-29 Joel Sherrill <joel@OARcorp.com>
17185 * 5rosinte.ads: Add SIGXCPU.
17186 * 5rtpopsp.adb: New file.
17187 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
17188 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
17189 specific file 5rtpopsp.adb.
17190 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
17191 is likely needed for all newlib targets.
17192 * init.c: Add RTEMS specific version of __gnat_initialize().
17194 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17196 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
17198 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17200 * init.c (__gnat_error_handler): Make msg const.
17202 * gmem.c (convert_addresses): Move declaration ...
17203 * adaint.h: ... here.
17204 * adaint.c (convert_addresses): Adapt addrs type to match
17207 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
17209 2003-01-24 Andreas Schwab <schwab@suse.de>
17211 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
17212 size_t to avoid warning.
17214 2003-01-21 Zack Weinberg <zack@codesourcery.com>
17216 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
17218 2003-01-09 Geoffrey Keating <geoffk@apple.com>
17220 * gnat_rm.texi: Remove RCS version number.
17222 * ada-tree.h (union lang_tree_node): Add chain_next option.
17224 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
17226 * Make-lang.in (ada.install-info, ada.install-common,
17227 ada.uninstall): Prepend $(DESTDIR) to the destination
17228 directory in all (un)installation commands.
17229 * Makefile.in (install-gnatlib, install-rts): Ditto.
17231 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
17233 * gnat_rm.texi, gnat_ug.texi: Use @copying.
17234 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
17235 gnat_ug_wnt.texi: Regenerate.
17237 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
17239 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
17241 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
17242 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
17243 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
17244 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
17245 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
17246 $(srcdir)/doc/include/gcc-common.texi.
17248 2002-12-15 Geert Bosch <bosch@gnat.com>
17250 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
17252 2002-12-14 Geert Bosch <bosch@gnat.com>
17254 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
17255 case of a body created for a Renaming_As_Body, on which
17256 conformance checks are not performed. Fixes PR ada/5690.
17258 2002-11-30 Zack Weinberg <zack@codesourcery.com>
17260 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
17261 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
17262 not already included.
17263 * Make-lang.in: Update dependencies.
17265 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
17266 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
17267 solution to buffer overflow bug on GNU/Linux.
17269 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
17270 Closes PR ada/5856 and PR ada/6919 !
17271 * bindgen.adb: Remove all references to Public_Version.
17272 * comperr.adb: Remove all references to Public_Version and
17273 GNATPRO_Version; correct bug reporting instructions.
17274 * comperr.ads: Change to match bug box.
17275 * gnatvsn.ads: Remove all references to Public version and
17278 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
17280 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
17284 * config-lang.in: Remove diff_excludes.
17286 2002-11-05 Graham Stott <graham.stott@btinternet.com>
17288 * trans.c (gnu_pending_elaboration_lists): New GC root.
17289 (build_unit_elab): Use..
17291 2002-10-30 Geert Bosch <bosch@gnat.com>
17293 * misc.c : Include optabs.h
17295 * Make-lang.in (misc.o): Add dependency on optabs.h
17297 2002-10-29 Geert Bosch <bosch@gnat.com>
17299 * Make-lang.in (gnatbind): Depend on CONFIG_H
17301 2002-10-29 Geert bosch <bosch@gnat.com>
17303 * misc.c: Unrevert misc.c (1.13)
17305 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
17307 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
17308 maintainership comments.
17310 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
17312 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
17313 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
17314 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
17315 7staprop.adb: Correct statements in comments about
17316 maintainership of GNAT.
17319 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
17320 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
17321 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
17322 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
17323 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
17324 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
17325 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
17326 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
17327 comments about maintainership of GNAT.
17329 PR ada/6919 (forward port of patch for PR ada/5904)
17330 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
17331 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
17332 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
17333 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
17334 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
17335 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
17336 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
17337 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
17338 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
17339 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
17340 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
17341 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
17342 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
17343 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
17344 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
17345 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
17346 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
17347 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
17348 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
17349 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
17350 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
17351 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
17352 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
17353 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
17354 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
17355 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
17356 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
17357 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
17358 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
17359 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
17360 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
17361 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
17362 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
17363 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
17364 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
17365 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
17366 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
17367 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
17368 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
17369 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
17370 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
17371 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
17372 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
17373 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
17374 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
17375 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
17376 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
17377 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
17378 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
17379 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
17380 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
17381 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
17382 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
17383 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
17384 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
17385 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
17386 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
17387 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
17388 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
17389 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
17390 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
17391 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
17392 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
17393 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
17394 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
17395 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
17396 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
17397 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
17398 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
17399 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
17400 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
17401 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
17402 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
17403 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
17404 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
17405 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
17406 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
17407 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
17408 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
17409 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
17410 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
17411 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
17412 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
17413 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
17414 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
17415 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
17416 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
17417 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
17418 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
17419 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
17420 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
17421 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
17422 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
17423 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
17424 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
17425 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
17426 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
17427 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
17428 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
17429 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
17430 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
17431 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
17432 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
17433 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
17434 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
17435 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
17436 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
17437 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
17438 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
17439 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
17440 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
17441 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
17442 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
17443 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
17444 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
17445 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
17446 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
17447 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
17448 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
17449 par-endh.adb par-labl.adb par-load.adb par-prag.adb
17450 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
17451 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
17452 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
17453 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
17454 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
17455 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
17456 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
17457 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
17458 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
17459 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
17460 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
17461 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
17462 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
17463 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
17464 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
17465 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
17466 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
17467 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
17468 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
17469 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
17470 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
17471 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
17472 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
17473 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
17474 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
17475 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
17476 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
17477 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
17478 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
17479 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
17480 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
17481 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
17482 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
17483 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
17484 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
17485 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
17486 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
17487 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
17488 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
17489 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
17490 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
17491 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
17492 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
17493 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
17494 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
17495 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
17496 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
17497 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
17498 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
17499 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
17500 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
17501 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
17502 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
17503 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
17504 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
17505 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
17506 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
17507 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
17508 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
17509 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
17510 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
17511 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
17512 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
17513 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
17514 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
17515 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
17516 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
17517 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
17518 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
17519 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
17520 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
17521 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
17522 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
17523 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
17524 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
17525 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
17526 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
17527 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
17528 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
17529 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
17530 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
17531 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
17532 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
17533 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
17534 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
17535 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
17536 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
17537 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
17538 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
17539 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
17540 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
17541 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
17542 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
17543 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
17544 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
17545 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
17546 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
17547 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
17548 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
17549 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
17550 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
17551 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
17552 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
17553 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
17554 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
17555 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
17556 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
17557 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
17558 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
17559 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
17560 stringt.ads stringt.h style.adb style.ads stylesw.adb
17561 stylesw.ads switch.adb switch.ads sysdep.c system.ads
17562 table.adb table.ads targparm.adb targparm.ads targtyps.c
17563 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
17564 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
17565 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
17566 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
17567 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
17568 usage.ads utils.c utils2.c validsw.adb validsw.ads
17569 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
17570 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
17571 xtreeprs.adb: Correct statements in comments about maintainership
17574 2002-09-23 Zack Weinberg <zack@codesourcery.com>
17576 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
17577 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
17578 * gnatvsn.ads: Gnat_Version_String is now a function.
17579 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
17580 copy the C version_string into a String and return it.
17581 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
17582 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
17583 Remove pragma Ident (Gnat_Version_String). If this was the
17584 sole use of package Gnatvsn, remove the with statement too.
17585 * gnat1drv.adb: Tweak -gnatv output.
17587 2002-09-17 Richard Henderson <rth@redhat.com>
17589 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
17590 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
17591 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
17592 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
17593 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
17594 and real_2expN instead of a loop.
17595 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
17596 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
17598 2002-08-25 Andre Leis <a.leis@gmx.net>
17599 David Billinghurst (David.Billinghurst@riotinto.com>
17601 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
17603 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17605 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
17606 Remove $(CONFIG_H) dependency.
17608 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
17610 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
17612 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17614 * adadecode.c (ada_demangle): Use xstrdup in lieu of
17616 * misc.c (gnat_decode_option): Likewise.
17618 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
17620 * make.adb (Add_Switch): Make Generic_Position a procedure. The
17621 function approach did not work well because of a side effect (the
17622 function call could reallocate the table which was being indexed
17623 using its result). Fixes ada/4851. [RESURRECTED]
17625 2002-07-01 Roger Sayle <roger@eyesopen.com>
17627 * ada/utils.c (builtin_function): Accept an additional parameter.
17629 2002-06-28 Andreas Jaeger <aj@suse.de>
17632 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
17635 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17637 * Makefile.in (SHELL): Set to @SHELL@.
17639 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17641 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
17642 array size calculation.
17644 2002-06-04 Andreas Jaeger <aj@suse.de>
17646 * Make-lang.in (gnatbind): Readd rule that has been lost in last
17649 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
17651 Merge from pch-branch:
17653 * config-lang.in (gtfiles): Add ada-tree.h.
17654 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
17655 (SET_TYPE_MODULUS): New.
17656 (SET_TYPE_INDEX): New.
17657 (SET_TYPE_DIGITS_VALUE): New.
17658 (SET_TYPE_RM_SIZE): New.
17659 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
17660 (SET_TYPE_ADA_SIZE): New.
17661 (SET_TYPE_ACTUAL_BOUNDS): New.
17662 (SET_DECL_CONST_CORRESPONDING_VAR): New.
17663 (SET_DECL_ORIGINAL_FIELD): New.
17664 (TREE_LOOP_ID): Correct typo.
17665 * decl.c: Use new macros.
17666 * utils.c: Include debug.h, use new macros.
17667 * utils2.c: Use new macros.
17669 * ada-tree.h: Update all macros for new tree description.
17670 (struct tree_loop_id): New.
17671 (union lang_tree_node): New.
17672 (struct lang_decl): New.
17673 (struct lang_type): New.
17674 * misc.c (gnat_mark_tree): Delete.
17675 (LANG_HOOKS_MARK_TREE): Delete.
17676 * trans.c (tree_transform): No longer any need to cast
17679 * utils.c (struct language_function): New dummy structure.
17681 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
17682 (misc.o): Likewise.
17683 (utils.o): Likewise; also gtype-ada.h.
17684 * Make-lang.in (gnat1): Add dependency on s-gtype.
17685 (gnatbind): Add dependency on $(CONFIG_H).
17686 * utils.c: Correct last #include.
17687 (stuct e_stack): Remove unnecessary 'static'.
17688 (mark_e_stack): Remove unused prototype.
17690 * scn-nlit.adb: Remove whitespace after version number to
17691 keep lines under 80 chars.
17692 * snames.adb: Likewise.
17693 * treepr.ads: Likewise.
17695 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
17696 (misc.o): Likewise.
17697 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
17698 * config-lang.in (gtfiles): New.
17699 * decl.c: Use gengtype for roots.
17700 * gigi.h: Use gengtype for roots.
17701 * trans.c: Use gengtype for roots.
17702 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
17704 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
17706 * misc.c (gnat_init): Adjust setting of internal_error_function.
17708 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
17710 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
17711 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
17712 gnat_ug_wnt.texi: Regenerate.
17714 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
17716 * 5ntaprop.adb (with System.OS_Primitives): Remove.
17718 * cstreams.c (max_path_len): Move from here ...
17719 * adaint.c (__gnat_max_path_len): ... to here.
17720 * adaint.c (__gnat_max_path_len): Declare.
17721 * g-dirope.adb (Max_Path): Adjust.
17722 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
17723 * i-cstrea.ads (max_path_len): Adjust.
17724 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
17725 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
17727 * Makefile.in, Make-lang.in: Documentation is now built in
17728 Make-lang.in. Store Info and generated Texinfo files in the
17730 * gnat_ug.texi: Remove CVS keywords, correct version number.
17731 Set file name correctly.
17733 * gnat_ug_*.texi: Add.
17734 * .cvsignore: Ignore generated Texinfo files.
17736 2002-05-30 Zack Weinberg <zack@codesourcery.com>
17738 * ada.h: Add MI guard macro.
17739 (SUBTYPE): Define constants with an anonymous enum, not static
17741 (IN): Cast constants to appropriate type before use.
17743 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
17745 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
17748 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17750 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
17751 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
17752 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
17753 (ALL_ADA_CFLAGS): Likewise.
17754 (ADA_INCLUDES): Likewise.
17755 Adapt for new working dir.
17756 (GNATBIND): Use Makefile.in version.
17757 (.SUFFIXES): Copy from Makefile.in.
17758 (ada-warn): Define.
17759 (.adb.o, .ads.o): Copy from Makefile.in.
17760 Added $(OUTPUT_OPTION).
17761 (GNAT1_C_OBJS): Moved from Makefile.in.
17762 Prefix with ada subdir.
17763 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
17764 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
17765 Adapt for new working dir.
17766 (EXTRA_GNATBIND_OBJS): Likewise.
17767 (ADA_BACKEND): Moved from Makefile.in.
17768 Renamed to avoid conflict with global BACKEND.
17770 (TARGET_ADA_SRCS): Moved from Makefile.in.
17771 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
17773 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
17774 (ada_extra_files): Moved from Makefile.in.
17775 Prefix with ada subdir.
17776 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
17777 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
17778 (ada/nmake.ads): Likewise.
17779 (update-sources): Moved from Makefile.in.
17780 Prefix with ada subdir.
17781 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
17782 (ADA_TREE_H): Likewise.
17783 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
17784 (ada/memtrack.o): Likewise.
17785 (ada/adadecode.o): Likewise.
17786 Update dependencies.
17787 (ada/adaint.o): New.
17788 (ada/argv.o): Moved from Makefile.in.
17789 Prefix with ada subdir.
17790 Update dependencies.
17791 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
17792 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
17793 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
17794 Prefix with ada subdir.
17795 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
17796 (GNAT DEPENDENCIES): Regenerate.
17797 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
17798 toplevel Makefile.in.
17799 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
17800 (TARGET_ADA_SRCS): Removed.
17801 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
17802 (GNATBIND_OBJS): Likewise.
17803 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
17804 (BACKEND): Removed.
17805 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
17806 (TREE_H): Likewise.
17807 (ada_extra_files): Likewise.
17808 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
17809 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
17810 (update-sources): Likewise.
17811 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
17812 (ADA_TREE_H): Likewise.
17813 (adadecoce.o): Likewise.
17814 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
17815 (GNAT DEPENDENCIES): Likewise.
17817 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17819 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
17820 * Makefile.in: Likewise.
17822 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17824 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
17825 Restore $(CONFIG_H) and prefix.o dependencies.
17826 (ada.stage[1-4]): Depend on stage?-start.
17828 * Makefile.in (b_gnatb.c): Depend on interfac.o.
17830 2002-05-02 Jim Wilson <wilson@redhat.com>
17832 * utils.c (finish_record_type): Change record_size to record_type.
17834 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
17836 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
17837 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
17838 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
17840 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
17842 * misc.c (gnat_parse_file): Update.
17844 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
17846 * misc.c (gnat_init): Don't set lang_attribute_common.
17848 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
17850 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
17852 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
17854 * gnat_ug.texi: New file.
17856 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
17857 instead of gfdl.texi
17859 * xgnatug.adb, ug_words: New files.
17861 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
17862 gnat_rm and gnat-style manuals.
17864 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
17866 * gigi.h (incomplete_type_error): Remove.
17867 * utils.c (incomplete_type_error): Remove.
17869 2002-04-16 Mark Mitchell <mark@codesourcery.com>
17871 * trans.c (tree_transform): Add has_scope argument to
17872 expand_start_stmt_expr.
17874 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
17876 * gigi.h (truthvalue_conversion): Rename.
17877 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
17878 * trans.c (tree_transform): Update.
17879 * utils2.c (truthvalue_conversion): Rename, update.
17880 (build_binary_op, build_unary_op): Update.
17882 2002-04-04 Laurent Guerby <guerby@acm.org>
17884 * make.adb: Implement -margs, remove restriction about file name placement.
17885 * makeusg.adb: Documentation update.
17886 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
17887 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
17889 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
17891 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
17892 (builtin_function): Similarly.
17894 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
17896 * decl.c (gnat_to_gnu_entity): Update.
17897 * gigi.h (mark_addressable): Rename.
17898 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
17899 * trans.c (tree_transform): Update.
17900 * utils.c (create_var_decl): Update.
17901 * util2.c (build_binary_op, build_unary_op,
17902 fill_vms_descriptor): Update.
17903 (mark_addressable): Rename, update.
17905 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
17907 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
17909 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
17910 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
17911 * trans.c (tree_transform, convert_with_check): Update.
17912 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
17915 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
17917 * gigi.h (finish_incomplete_decl): Rename.
17918 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
17919 * utils.c (gnat_init_decl_processing): Don't set hook.
17920 (finish_incomplete_decl): Rename.
17922 2002-03-29 Andreas Schwab <schwab@suse.de>
17924 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
17927 2001-03-28 Robert Dewar <dewar@gnat.com>
17930 (Remove_Checks): New procedure
17933 (Remove_Checks): New procedure
17936 Use new Duplicate_Subexpr functions
17937 (Duplicate_Subexpr_No_Checks): New procedure
17938 (Duplicate_Subexpr_No_Checks_Orig): New procedure
17939 (Duplicate_Subexpr): Restore original form (checks duplicated)
17940 (Duplicate_Subexpr): Call Remove_Checks
17943 (Duplicate_Subexpr_No_Checks): New procedure
17944 (Duplicate_Subexpr_No_Checks_Orig): New procedure
17945 Add 2002 to copyright notice
17947 * sem_util.adb: Use new Duplicate_Subexpr functions
17950 (Eval_Indexed_Component): This is the place to call
17951 Constant_Array_Ref and to replace the value. We simply merge
17952 the code of this function in here, since it is now no longer
17953 used elsewhere. This fixes the problem of the back end not
17954 realizing we were clever enough to see that this was
17956 (Expr_Val): Remove call to Constant_Array_Ref
17957 (Expr_Rep_Val): Remove call to Constant_Array_Ref
17959 (Constant_Array_Ref): Deal with string literals (patch
17960 suggested by Zack Weinberg on the gcc list)
17962 2001-03-28 Ed Schonberg <schonber@gnat.com>
17964 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
17965 Duplicate_Subexpr_Move_Checks.
17967 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
17968 Duplicate_Subexpr_Move_Checks.
17970 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
17971 value of array exists before retrieving it (it may a private
17972 protected component in a function).
17974 2002-03-28 Geert Bosch <bosch@gnat.com>
17976 * prj-pp.adb : New file.
17978 * prj-pp.ads : New file.
17980 2002-03-28 Andreas Jaeger <aj@suse.de>
17982 * Makefile.in (stamp-sdefault): Fix path for Makefile.
17984 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
17986 * misc.c (gnat_expand_expr): Move prototype.
17988 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
17990 * misc.c (insert_default_attributes): Remove.
17992 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
17994 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
17995 (gnat_init): Don't set hook.
17996 (gnat_expand_expr): Fix prototype.
17998 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
18000 * misc.c (ggc_p): Remove.
18002 2002-03-27 Geert Bosch <bosch@gnat.com>
18004 * prj-makr.ads, prj-makr.adb : New files.
18006 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
18008 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
18009 (lang_mark_tree): Make static, rename.
18011 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
18013 * misc.c (maybe_build_cleanup): Remove.
18015 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
18017 * gigi.h (yyparse): Remove.
18019 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
18021 * gnat_rm.texi: Sync with ACT version.
18022 (From Ben Brosgol <brosgol@gnat.com>)
18024 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
18026 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
18027 (gnat_init): Remove old hook.
18029 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
18031 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
18032 (yyparse): Rename gnat_parse_file.
18034 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
18036 Delete all lines containing "$Revision:".
18037 * xeinfo.adb: Don't look for revision numbers.
18038 * xnmake.adb: Likewise.
18039 * xsinfo.adb: Likewise.
18040 * xsnames.adb: Likewise.
18041 * xtreeprs.adb: Likewise.
18043 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18045 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
18046 gnat_tree_code_name): Delete.
18047 (tree_code_type, tree_code_length, tree_code_name): Define.
18048 (gnat_init): Don't try to copy into the various tree_code
18051 2002-03-11 Richard Henderson <rth@redhat.com>
18053 * Makefile.in (.NOTPARALLEL): Add fake tag.
18055 2002-03-07 Geert Bosch <bosch@gnat.com>
18057 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
18058 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
18059 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
18060 switch-m.adb, switch-m.ads : New files.
18062 2002-03-07 Geert Bosch <bosch@gnat.com>
18064 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
18065 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
18066 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
18067 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
18068 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
18069 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
18070 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
18071 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
18072 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
18073 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
18074 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
18075 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
18076 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
18077 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
18078 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
18079 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
18080 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
18081 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
18082 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
18083 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
18084 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
18085 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
18086 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
18087 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
18088 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
18089 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
18090 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
18091 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
18092 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
18093 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
18094 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
18095 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
18096 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
18097 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
18098 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
18099 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
18100 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
18101 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
18102 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
18103 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
18104 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
18105 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
18106 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
18107 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
18108 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
18109 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
18110 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
18111 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
18112 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
18113 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
18114 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
18115 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
18116 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
18117 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
18118 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
18119 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
18120 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
18121 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
18122 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
18123 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
18124 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
18125 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
18126 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
18127 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
18128 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
18129 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
18130 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
18131 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
18132 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
18133 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
18134 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
18135 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
18136 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
18137 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
18138 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
18139 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
18140 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
18141 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
18142 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
18143 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
18144 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
18145 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
18146 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
18147 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
18148 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
18149 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
18150 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
18151 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
18152 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
18153 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
18154 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
18155 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
18156 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
18157 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
18158 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
18159 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
18160 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
18162 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
18163 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
18164 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
18165 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
18167 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
18168 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
18170 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
18171 to mdll-fil.ad[bs] and mdll-util.ad[bs]
18173 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
18174 from mdllfile.ad[bs] and mdlltool.ad[bs]
18176 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18178 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
18179 lieu of explicit sizeof/sizeof.
18181 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
18183 * misc.c (copy_lang_decl): Remove.
18185 2002-02-27 Zack Weinberg <zack@codesourcery.com>
18187 * misc.c: Delete traditional-mode-related code copied from the
18188 C front end but not used, or used only to permit the compiler
18191 2002-02-07 Richard Henderson <rth@redhat.com>
18193 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
18194 * adaint.h (__gnat_to_gm_time): Update prototype.
18196 2002-01-30 Richard Henderson <rth@redhat.com>
18198 * trans.c (tree_transform) [N_Loop_Statement]: Use
18199 expand_exit_loop_top_cond.
18201 2001-12-23 Richard Henderson <rth@redhat.com>
18203 * utils.c (end_subprog_body): Push GC context around
18204 rest_of_compilation for nested functions.
18206 2001-12-23 Richard Henderson <rth@redhat.com>
18208 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
18210 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
18212 * gnat-style.texi (Declarations and Types): Remove ancient style
18213 rule which was mandated by code generation issues.
18215 * gnat-style.texi (header): Add @dircategory, @direntry.
18216 (title page): Remove date.
18217 (general) Add @./@: where approriate, and two spaces after the
18218 full stop at the end of a sentence. Use @samp markup when
18219 referring concrete lexical entities (keywords, attribute names
18220 etc.), and @syntax for ARM grammar elements. Use @r for English
18221 text in comments. Use @emph for emphasis. Change "if-statements"
18222 etc. to "if statements" (without @samp). Break long lines. Make
18223 casing of section names consistent.
18224 (Identifiers): Use @samp markup for variable names.
18225 (Comments): Use @samp markup for comment characters. Line-end
18226 comments may follow any Ada code, not just statements. Fix
18227 misspelling of "Integer" as "integer".
18228 (Loop statements): Do not use variable name "I", use "J".
18229 (Subprogram Declarations): Document alignment.
18230 (Subprogram Bodies, Block statements): Document empty line before
18233 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
18235 * make.adb (Add_Switch): Make Generic_Position a procedure. The
18236 function approach did not work well because of a side effect (the
18237 function call could reallocate the table which was being indexed
18238 using its result). Fixes ada/4851.
18240 2001-12-19 Robert Dewar <dewar@gnat.com>
18242 * bindgen.adb: Minor reformatting
18244 * cstand.adb: Minor reformatting
18246 * fmap.adb: Minor reformatting
18247 Change name from Add for Add_To_File_Map (Add is much too generic)
18248 Change Path_Name_Of to Mapped_Path_Name
18249 Change File_Name_Of to Mapped_File_Name
18250 Fix copyright dates in header
18253 Change name from Add for Add_To_File_Map (Add is much too generic)
18254 Change Path_Name_Of to Mapped_Path_Name
18255 Change File_Name_Of to Mapped_File_Name
18256 Fix copyright dates in header
18258 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
18259 Add use clause for Fmap.
18261 * make.adb: Minor reformatting
18263 * osint.adb: Minor reformatting. Change of names in Fmap.
18264 Add use clause for Fmap.
18266 * prj-env.adb: Minor reformatting
18268 * prj-env.ads: Minor reformatting
18270 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
18271 error found (there were odd exceptions to this general rule in
18272 -gnatec/-gnatem processing)
18274 2001-12-19 Olivier Hainque <hainque@gnat.com>
18276 * raise.c (__gnat_eh_personality): Exception handling personality
18277 routine for Ada. Still in rough state, inspired from the C++ version
18278 and still containing a bunch of debugging artifacts.
18279 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
18280 inspired from the C++ library.
18282 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
18283 exception handling integration.
18285 2001-12-19 Arnaud Charlet <charlet@gnat.com>
18287 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
18288 (HIE_SOURCES): Add s-secsta.ad{s,b}.
18289 (HIE_OBJS): Add s-fat*.o
18290 (RAVEN_SOURCES): Remove files that are no longer required. Add
18291 interrupt handling files.
18292 (RAVEN_MOD): Removed, no longer needed.
18294 2001-12-19 Robert Dewar <dewar@gnat.com>
18296 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
18297 Add 2001 to copyright date
18299 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
18300 need to force universal inlining for these cases.
18302 2001-12-19 Arnaud Charlet <charlet@gnat.com>
18304 * s-taprob.adb: Minor clean ups so that this unit can be used in
18307 * exp_ch7.adb: Allow use of secondary stack in HI mode.
18308 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
18310 2001-12-19 Vincent Celier <celier@gnat.com>
18312 * prj-tree.ads (Project_Node_Record): Add comments for components
18313 Pkg_Id and Case_Insensitive.
18315 2001-12-19 Pascal Obry <obry@gnat.com>
18317 * g-socket.adb: Minor reformatting. Found while reading code.
18319 2001-12-19 Robert Dewar <dewar@gnat.com>
18321 * prj-tree.ads: Minor reformatting
18323 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
18325 * config-lang.in (diff_excludes): Remove.
18327 2001-12-17 Ed Schonberg <schonber@gnat.com>
18329 * sem_res.adb (Resolve_Selected_Component): do not generate a
18330 discriminant check if the selected component is a component of
18331 the argument of an initialization procedure.
18333 * trans.c (tree_transform, case of arithmetic operators): If result
18334 type is private, the gnu_type is the base type of the full view,
18335 given that the full view itself may be a subtype.
18337 2001-12-17 Robert Dewar <dewar@gnat.com>
18339 * sem_res.adb: Minor reformatting
18341 * trans.c (tree_transform, case N_Real_Literal): Add missing third
18342 parameter in call to Machine (unknown horrible effects from this
18345 * urealp.h: Add definition of Round_Even for call to Machine
18346 Add third parameter for Machine
18348 2001-12-17 Ed Schonberg <schonber@gnat.com>
18350 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
18351 predefined units in No_Run_Time mode.
18353 2001-12-17 Richard Kenner <kenner@gnat.com>
18355 * misc.c (insn-codes.h): Now include.
18357 2001-12-17 Olivier Hainque <hainque@gnat.com>
18359 * a-except.adb: Preparation work for future integration of the GCC 3
18360 exception handling mechanism
18361 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
18362 to factorize previous code sequences and make them externally callable,
18363 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
18364 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
18365 Use the new notification routines.
18367 2001-12-17 Emmanuel Briot <briot@gnat.com>
18369 * prj-tree.ads (First_Choice_Of): Document the when others case
18371 2001-12-17 Arnaud Charlet <charlet@gnat.com>
18373 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
18374 HI-E mode, in order to support Ravenscar profile properly.
18376 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
18377 mode on 32 bits targets.
18379 2001-12-17 Vincent Celier <celier@gnat.com>
18381 * fmap.adb: Initial version.
18383 * fmap.ads: Initial version.
18385 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
18386 If search is successfully done, add to mapping.
18388 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
18391 (Gnatmake): Add new local variable Mapping_File_Name.
18392 Create mapping file when using project file(s).
18393 Delete mapping file before exiting.
18395 * opt.ads (Mapping_File_Name): New variable
18397 * osint.adb (Find_File): Use path name found in mapping, if any.
18399 * prj-env.adb (Create_Mapping_File): New procedure
18401 * prj-env.ads (Create_Mapping_File): New procedure.
18403 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
18406 * usage.adb: Add entry for new switch -gnatem.
18408 * Makefile.in: Add dependencies for fmap.o.
18410 2001-12-17 Ed Schonberg <schonber@gnat.com>
18412 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
18413 is a package instantiation rewritten as a package body.
18414 (Install_Withed_Unit): Undo previous change, now redundant.
18416 2001-12-17 Gary Dismukes <dismukes@gnat.com>
18419 (Compute_Length): Move conversion to Unsigned to callers.
18420 (Get_Max_Size): Convert Len expression to Unsigned after calls to
18421 Compute_Length and Determine_Range.
18422 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
18423 Compute_Length and Determine_Range.
18424 Above changes fix problem with length computation for supernull arrays
18425 where Max (Len, 0) wasn't getting applied due to the Unsigned
18426 conversion used by Compute_Length.
18428 2001-12-17 Arnaud Charlet <charlet@gnat.com>
18431 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
18432 System.Secondary_Stack.
18433 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
18435 Remove unused entity RE_Exception_Data.
18437 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
18439 * rident.ads (No_Secondary_Stack): New restriction.
18441 2001-12-17 Joel Brobecker <brobecke@gnat.com>
18443 * gnat_rm.texi: Fix minor typos. Found while reading the section
18444 regarding "Bit_Order Clauses" that was sent to a customer.
18445 Very interesting documentation!
18447 2001-12-17 Robert Dewar <dewar@gnat.com>
18449 * sem_case.adb (Choice_Image): Avoid creating improper character
18450 literal names by using the routine Set_Character_Literal_Name. This
18451 fixes bombs in certain error message cases.
18453 2001-12-17 Arnaud Charlet <charlet@gnat.com>
18455 * a-reatim.adb: Minor reformatting.
18457 2001-12-17 Ed Schonberg <schonber@gnat.com>
18459 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
18460 case where the formal is an extension of another formal in the current
18461 unit or in a parent generic unit.
18463 2001-12-17 Arnaud Charlet <charlet@gnat.com>
18465 * s-tposen.adb: Update comments. Minor reformatting.
18466 Minor code clean up.
18468 * s-tarest.adb: Update comments. Minor code reorganization.
18470 2001-12-17 Gary Dismukes <dismukes@gnat.com>
18472 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
18475 2001-12-17 Robert Dewar <dewar@gnat.com>
18477 * exp_attr.adb: Minor reformatting
18479 2001-12-17 Ed Schonberg <schonber@gnat.com>
18481 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
18482 derivations nested within a child unit: verify that the parent
18483 type is declared in an outer scope.
18485 2001-12-17 Robert Dewar <dewar@gnat.com>
18487 * sem_ch12.adb: Minor reformatting
18489 2001-12-17 Ed Schonberg <schonber@gnat.com>
18491 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
18492 warning if current unit is a predefined one, from which bodies may
18495 2001-12-17 Robert Dewar <dewar@gnat.com>
18497 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
18498 Fix header format. Add 2001 to copyright date.
18500 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
18501 which caused CE during compilation if checks were enabled.
18503 2001-12-17 Vincent Celier <celier@gnat.com>
18506 (Switches_Of): New function
18507 (Test_If_Relative_Path): New procedure
18508 (Add_Switches): Use new function Switches_Of
18509 (Collect_Arguments_And_Compile): Use new function Switches_Of.
18510 When using a project file, test if there are any relative
18511 search path. Fail if there are any.
18512 (Gnatmake): Only add switches for the primary directory when not using
18513 a project file. When using a project file, change directory to the
18514 object directory of the main project file. When using a project file,
18515 test if there are any relative search path. Fail if there are any.
18516 When using a project file, fail if specified executable is relative
18517 path with directory information, and prepend executable, if not
18518 specified as an absolute path, with the exec directory. Make sure
18519 that only one -o switch is transmitted to the linker.
18521 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
18524 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
18525 when using a non standard naming scheme.
18526 (Check_Ada_Naming_Scheme): Make sure that error messages
18527 do not raise exceptions.
18528 (Is_Illegal_Append): Return True if there is no dot in the suffix.
18529 (Language_Independent_Check): Check the exec directory.
18531 * prj.adb (Project_Empty): Add new component Exec_Directory
18534 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
18535 (Project_Data): Add component Exec_Directory
18537 * snames.adb: Updated to match snames.ads revision 1.215
18539 * snames.ads: Added Exec_Dir
18541 2001-12-17 Robert Dewar <dewar@gnat.com>
18543 * make.adb: Minor reformatting
18545 * prj-nmsc.adb: Minor reformatting
18547 * snames.adb: Updated to match snames.ads
18549 * snames.ads: Alphebetize entries for project file
18551 2001-12-17 Ed Schonberg <schonber@gnat.com>
18553 * trans.c (process_freeze_entity): Do nothing if the entity is a
18554 subprogram that was already elaborated.
18556 2001-12-17 Richard Kenner <kenner@gnat.com>
18558 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
18559 and Esize if object is referenced via pointer.
18561 2001-12-17 Ed Schonberg <schonber@gnat.com>
18563 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
18564 is discrete before analyzing choices.
18566 2001-12-17 Joel Brobecker <brobecke@gnat.com>
18568 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
18569 containing the name of the Ada Main Program. This string is mainly
18570 intended for the debugger.
18571 (Gen_Output_File_C): Do the equivalent change when generating a C file.
18573 2001-12-17 Robert Dewar <dewar@gnat.com>
18575 * ali.adb: Set new Dummy_Entry field in dependency entry
18577 * ali.ads: Add Dummy_Entry field to source dependency table
18579 * bcheck.adb (Check_Consistency): Ignore dummy D lines
18581 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
18583 * lib-writ.ads: Document dummy D lines for missing files.
18585 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
18587 2001-12-17 Robert Dewar <dewar@gnat.com>
18589 * ali.adb: Type reference does not reset current file.
18591 * ali.adb: Recognize and scan renaming reference
18593 * ali.ads: Add spec for storing renaming references.
18595 * lib-xref.ads: Add documentation for handling of renaming references
18597 * lib-xref.adb: Implement output of renaming reference.
18600 (Determine_Range): Document local variables
18601 (Determine_Range): Make sure Hbound is initialized. It looks as though
18602 there could be a real problem here with an uninitialized reference
18603 to Hbound, but no actual example of failure has been found.
18605 2001-12-17 Laurent Pautet <pautet@gnat.com>
18608 Fix comment of Shutdown_Socket and Close_Socket. These functions
18609 should not fail silently because if they are called twice, this
18610 probably means that there is a race condition in the user program.
18611 Anyway, this behaviour is consistent with the rest of this unit.
18612 When an error occurs, an exception is raised with the error message
18613 as exception message.
18615 2001-12-17 Robert Dewar <dewar@gnat.com>
18617 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
18618 that it happens before modification of Sloc values for -gnatD.
18620 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
18621 so that it happens before modification of Sloc values for -gnatD.
18623 * switch.adb: Minor reformatting
18625 2001-12-15 Richard Henderson <rth@redhat.com>
18627 * sem_ch7.adb: Wrap comment.
18629 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
18631 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
18632 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
18633 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
18634 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
18635 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
18636 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
18637 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
18638 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
18639 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
18640 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
18641 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
18642 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
18643 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
18644 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
18645 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
18646 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
18647 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
18648 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
18649 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
18650 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
18651 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
18652 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
18653 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
18654 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
18657 2001-12-14 Vincent Celier <celier@gnat.com>
18659 * osint.adb(Create_Debug_File): When an object file is specified,
18660 put the .dg file in the same directory as the object file.
18662 2001-12-14 Robert Dewar <dewar@gnat.com>
18664 * osint.adb: Minor reformatting
18666 * lib-xref.adb (Output_Instantiation): New procedure to generate
18667 instantiation references.
18669 * lib-xref.ads: Add documentation of handling of generic references.
18671 * ali.adb (Read_Instantiation_Ref): New procedure to read
18672 instantiation references
18674 * ali.ads: Add spec for storing instantiation references
18676 * bindusg.adb: Minor reformatting
18678 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
18680 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
18682 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
18684 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
18688 Add 2001 to copyright date
18689 Add entry for Latin-5 (Cyrillic ISO-8859-5)
18691 2001-12-14 Matt Gingell <gingell@gnat.com>
18693 * adaint.c: mktemp is a macro on Lynx and can not be used as an
18696 2001-12-14 Richard Kenner <kenner@gnat.com>
18698 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
18699 if operand is CONSTRUCTOR.
18701 2001-12-14 Ed Schonberg <schonber@gnat.com>
18703 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
18704 before emiting check on right-hand side, so that exception information
18707 2001-12-14 Richard Kenner <kenner@gnat.com>
18709 * utils.c (create_var_decl): Throw away initializing expression
18710 if just annotating types and non-constant.
18712 2001-12-14 Vincent Celier <celier@gnat.com>
18714 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
18717 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
18719 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
18721 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
18723 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
18725 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
18727 * ChangeLog: Remove piece of diff output.
18729 2001-12-14 Geert Bosch <bosch@gnat.com>
18731 * config-lang.in: Update copyright notice
18733 * layout.adb: Remove commented out code.
18735 * mdllfile.ads: Update copyright notice. Fix header format.
18737 * sem_case.ads: Likewise.
18739 * sem_ch3.adb: Minor reformatting.
18741 2001-12-12 Geert Bosch <bosch@gnat.com>
18743 * freeze.ads: Update copyright date.
18745 * g-comlin.ads: Minor reformatting.
18747 * gnat-style.texi: Fix typo.
18749 2001-12-12 Geert Bosch <bosch@gnat.com>
18751 * einfo.h: Regenerate.
18753 2001-12-12 Ed Schonberg <schonber@gnat.com>
18755 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
18756 on known node types, rather than untyped fields. Further cleanups.
18758 2001-12-12 Robert Dewar <dewar@gnat.com>
18761 (Save_Entity_Descendant): Minor comment update.
18762 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
18763 of an N_Attribute_Reference node. As per note below, this does not
18764 eliminate need for Associated_Node in attribute ref nodes.
18765 (Associated_Node): Documentation explicitly mentions attribute
18766 reference nodes, since this field is used in such nodes.
18768 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
18770 2001-12-12 Robert Dewar <dewar@gnat.com>
18772 * s-stalib.adb: Add more comments on with statements being needed
18774 * par-ch12.adb: Minor reformatting
18776 * prj-dect.ads: Fix copyright header
18778 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
18779 inputs fit in 32 bits, but the result still overflows.
18781 * s-fatgen.ads: Minor comment improvement
18783 2001-12-12 Ed Schonberg <schonber@gnat.com>
18785 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
18786 formal derived type, look for an inherited component from the full
18787 view of the parent, if any.
18789 2001-12-12 Robert Dewar <dewar@gnat.com>
18791 * checks.ads (Apply_Alignment_Check): New procedure.
18793 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
18794 ensure that the alignment of objects with address clauses is
18795 appropriate, and raise PE if not.
18797 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
18798 Exp_Pakd.Known_Aligned_Enough
18800 * mdllfile.ads: Minor reformatting
18802 * mlib-fil.ads: Minor reformatting
18804 2001-12-12 Ed Schonberg <schonber@gnat.com>
18806 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
18807 fix to any component reference if enclosing record has non-standard
18810 2001-12-12 Vincent Celier <celier@gnat.com>
18812 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
18815 2001-12-12 Ed Schonberg <schonber@gnat.com>
18817 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
18820 2001-12-12 Robert Dewar <dewar@gnat.com>
18822 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
18824 2001-12-12 Emmanuel Briot <briot@gnat.com>
18826 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
18827 and it adds dependencies to system.io.
18829 2001-12-12 Pascal Obry <obry@gnat.com>
18831 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
18834 2001-12-11 Ed Schonberg <schonber@gnat.com>
18836 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
18837 that is the parent of other generics, the instance body replaces the
18838 instance node. Retrieve the instance of the spec, which is the one
18839 that is visible in clients and within the body.
18841 2001-12-11 Vincent Celier <celier@gnat.com>
18843 * gnatmain.adb: Initial version.
18845 * gnatmain.ads: Initial version.
18847 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
18849 * snames.adb: Updated to match snames.ads.
18851 * snames.ads: Added Gnatstub.
18853 2001-12-11 Vincent Celier <celier@gnat.com>
18855 * prj-attr.adb (Initialization_Data): Change name from
18856 Initialisation_Data.
18858 2001-12-11 Emmanuel Briot <briot@gnat.com>
18860 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
18861 + and * applied to backslashed expressions like \r.
18863 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
18865 * g-os_lib.ads: String_List type added, Argument_List type is now
18866 subtype of String_List.
18868 2001-12-11 Robert Dewar <dewar@gnat.com>
18870 * g-os_lib.ads: Change copyright to FSF
18871 Add comments for String_List type
18873 2001-12-11 Vincent Celier <celier@gnat.com>
18875 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
18876 string to the buffer).
18878 2001-12-11 Ed Schonberg <schonber@gnat.com>
18880 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
18883 * sem_attr.adb: Simplify previous fix for Address.
18884 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
18885 to avoid anomalies where the bound of the type appears to raise
18888 2001-12-11 Robert Dewar <dewar@gnat.com>
18890 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
18893 2001-12-11 Ed Schonberg <schonber@gnat.com>
18895 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
18896 renamed unit before checking for recursive instantiations.
18898 2001-12-11 Emmanuel Briot <briot@gnat.com>
18900 * prj.ads: Add comments for some of the fields.
18902 2001-12-11 Robert Dewar <dewar@gnat.com>
18904 * lib-xref.adb (Output_Refs): Don't output type references outside
18905 the main unit if they are not otherwise referenced.
18907 2001-12-11 Ed Schonberg <schonber@gnat.com>
18909 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
18910 code and diagnose additional illegal uses
18912 * sem_util.adb (Is_Object_Reference): An indexed component is an
18913 object only if the prefix is.
18915 2001-12-11 Vincent Celier <celier@gnat.com>
18917 * g-diopit.adb: Initial version.
18919 * g-diopit.ads: Initial version.
18922 (Expand_Path): Avoid use of Unbounded_String
18923 (Find, Wildcard_Iterator): Moved to child package Iteration
18925 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
18927 2001-12-11 Robert Dewar <dewar@gnat.com>
18929 * sem_attr.adb: Minor reformatting
18931 2001-12-11 Ed Schonberg <schonber@gnat.com>
18933 * sem_ch3.adb: Clarify some ???.
18935 2001-12-11 Robert Dewar <dewar@gnat.com>
18937 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
18938 Exp_Pakd.Known_Aligned_Enough
18940 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
18941 version is moved to Exp_Ch13.
18943 2001-12-11 Robert Dewar <dewar@gnat.com>
18945 * einfo.ads: Minor reformatting
18947 * exp_ch5.adb: Add comment for previous.change
18949 * ali.adb: New interface for extended typeref stuff.
18951 * ali.ads: New interface for typeref stuff.
18953 * checks.adb (Apply_Alignment_Check): New procedure.
18955 * debug.adb: Add -gnatdM for modified ALI output
18957 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
18959 * lib-xref.adb: Extend generation of <..> notation to cover
18960 subtype/object types. Note that this is a complete rewrite,
18961 getting rid of the very nasty quadratic algorithm previously
18962 used for derived type output.
18964 * lib-xref.ads: Extend description of <..> notation to cover
18965 subtype/object types. Uses {..} for these other cases.
18966 Also use (..) for pointer types.
18968 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
18970 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
18971 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
18973 2001-12-11 Vincent Celier <celier@gnat.com>
18976 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
18977 Changed /BIND_ONLY to /ACTIONS=BIND
18978 Changed /LINK_ONLY to /ACTIONS=LINK
18980 2001-12-11 Ed Schonberg <schonber@gnat.com>
18982 * sem_ch8.adb (Find_Selected_Component): improved search for a
18983 candidate package in case of error.
18985 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
18986 chain back on scope stack before reinstalling use clauses.
18988 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
18989 is enabled, do not kill the code for the condition, to preserve
18992 2001-12-11 Robert Dewar <dewar@gnat.com>
18994 * checks.adb (Insert_Valid_Check): Apply validity check to expression
18995 of conversion, not to result of conversion.
18997 2001-12-11 Ed Schonberg <schonber@gnat.com>
18999 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
19000 before freezing parent. If the declarations are mutually recursive,
19001 an access to the current record type may be frozen before the
19002 derivation is complete.
19004 2001-12-05 Vincent Celier <celier@gnat.com>
19006 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
19007 -c /COMPILE_ONLY, -l /LINK_ONLY
19010 (Bind_Only): New Flag
19011 (Link_Only): New flag
19013 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
19016 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
19019 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
19020 (Gnatmake): Set the step flags. Only perform a step if the
19021 corresponding step flag is True.
19022 (Scan_Make_Arg): Reset the bind and link step flags when -u
19023 or -gnatc has been specified.
19025 2001-12-05 Ed Schonberg <schonber@gnat.com>
19027 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
19028 get bounds from right operand.
19030 * sem_eval.adb: Minor reformatting
19032 * exp_util.adb (Make_Literal_Range): use bound of literal rather
19033 than Index'First, its lower bound may be different from 1.
19035 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
19038 2001-12-05 Vincent Celier <celier@gnat.com>
19040 * prj-nmsc.adb Minor reformatting
19042 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
19043 set and libraries are not supported.
19045 2001-12-05 Ed Schonberg <schonber@gnat.com>
19047 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
19048 private view explicitly, so the back-end can treat as a global
19051 2001-12-05 Ed Schonberg <schonber@gnat.com>
19053 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
19054 unit, always replace instance node with new body, for ASIS use.
19056 2001-12-05 Vincent Celier <celier@gnat.com>
19058 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
19059 libraries are not supported and both attributes Library_Name and
19060 Library_Dir are specified.
19062 * prj-proc.adb (Expression): Set location of Result to location of
19065 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
19066 (prj-nmsc is now importing MLib.Tgt)
19068 * prj-proc.adb: Put the change indicated above that was forgotten.
19070 2001-12-05 Robert Dewar <dewar@gnat.com>
19072 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
19074 2001-12-05 Ed Schonberg <schonber@gnat.com>
19076 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
19077 constraint, introduce explicit subtype declaration and derive from it.
19079 * sem_ch3.adb: Minor reformatting
19081 2001-12-05 Robert Dewar <dewar@gnat.com>
19083 * checks.adb (Determine_Range): Increase cache size for checks.
19086 * exp_ch6.adb: Minor reformatting
19087 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
19088 a parameter whose root type is System.Address, since treating such
19089 subprograms as pure in the code generator is almost surely a mistake
19090 that will lead to unexpected results.
19092 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
19093 change handling of conversions.
19095 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
19097 2001-12-05 Ed Schonberg <schonber@gnat.com>
19099 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
19100 aggregate with static wrong size, attach generated Raise node to
19103 2001-12-05 Robert Dewar <dewar@gnat.com>
19105 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
19106 Fixes compilation abandoned bomb in B24009B.
19108 2001-12-05 Ed Schonberg <schonber@gnat.com>
19111 Document use of Associated_Node on Selected_Components.
19112 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
19113 to clarify use of untyped descendant fields.
19115 2001-12-05 Robert Dewar <dewar@gnat.com>
19117 * prj-dect.ads: Add ??? comment
19118 Add 2001 to copyright notice (was not done in after all)
19120 * prj-part.adb: Minor reformatting. Reword one awkward error message.
19122 * prj.ads: Minor reformatting throughout, and add some ??? comments
19124 * snames.ads: Minor reformatting
19126 2001-12-05 Geert Bosch <bosch@gnat.com>
19128 * snames.adb: Autoupdate
19130 2001-12-05 Vincent Celier <celier@gnat.com>
19132 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
19134 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
19136 * prj-env.adb: Minor comment changes (modifying -> extends).
19138 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
19140 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
19143 * prj.adb (Initialize): Change Modifying to Extends.
19145 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
19147 * prj.ads: Minor comment change (Modifying -> extending).
19149 * snames.ads: Change modifying to extends.
19151 2001-12-05 Robert Dewar <dewar@gnat.com>
19153 * sem_warn.adb: Remove stuff for conditionals, we are not going to
19156 * sem_warn.ads: Remove stuff for conditionals, we are not going to
19157 do this after all. Add 2001 to copyright notice
19159 2001-12-04 Geert Bosch <bosch@gnat.com>
19161 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
19163 2001-12-04 Robert Dewar <dewar@gnat.com>
19165 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
19166 location if we already have errors. Stops some cases of cascaded
19169 * errout.adb: Improve comment.
19171 2001-12-04 Robert Dewar <dewar@gnat.com>
19174 (Analyze_Formal_Type_Definition): Defend against Error.
19175 (Analyze_Formal_Subprogram): Defend against Error.
19177 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
19178 remove following semicolon if present. Removes cascaded error.
19180 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
19183 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
19184 exceptions equals 0.
19185 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
19186 Fixes PIWG E tests (which have to be run with -gnatL).
19188 2001-12-04 Robert Dewar <dewar@gnat.com>
19190 * einfo.ads: Minor reformatting
19192 2001-12-04 Ed Schonberg <schonber@gnat.com>
19194 * einfo.ads: Block_Node points to the identifier of the block, not to
19195 the block node itself, to preserve the link when the block is
19196 rewritten, e.g. within an if-statement with a static condition.
19198 * inline.adb (Cleanup_Scopes): recover block statement from block
19199 entity using new meaning of Block_Node.
19201 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
19202 identifier of block node, rather than to node itself.
19204 2001-12-04 Gary Dismukes <dismukes@gnat.com>
19207 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
19208 (Discrimify): Go back to setting the Etypes of the selected component
19209 because the Vname component does not exist at this point and will
19210 fail name resolution. Also set Analyzed.
19211 Remove with and use of Sem_Res.
19213 2001-12-04 Arnaud Charlet <charlet@gnat.com>
19215 * Makefile.in: (HIE_SOURCES): add s-fat*.
19217 2001-12-04 Robert Dewar <dewar@gnat.com>
19220 (Compile_Time_Known_Attribute): New procedure.
19221 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
19222 proper range check.
19224 2001-12-04 Ed Schonberg <schonber@gnat.com>
19226 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
19227 processing discriminants to diagnose illegal default values.
19229 2001-12-04 Ed Schonberg <schonber@gnat.com>
19231 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
19232 access discriminant within a type extension that constrains its
19233 parent discriminants.
19235 2001-12-04 Ed Schonberg <schonber@gnat.com>
19237 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
19238 is malformed, use instance of Any_Id to allow analysis to proceed.
19240 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
19241 type definition is illegal.
19242 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
19245 2001-12-04 Ed Schonberg <schonber@gnat.com>
19247 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
19250 2001-12-04 Robert Dewar <dewar@gnat.com>
19252 * errout.adb: Minor reformatting
19254 2001-12-04 Robert Dewar <dewar@gnat.com>
19256 * exp_util.adb: Minor reformatting from last change
19258 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
19259 which is a rewriting of an expression, traverse the original
19260 expression to remove warnings that may have been posted on it.
19262 2001-12-04 Ed Schonberg <schonber@gnat.com>
19264 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
19265 record that has other packed components.
19267 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
19269 * adaint.c: Minor cleanups.
19271 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
19273 * adaint.c: Do not use utime.h on vxworks.
19275 2001-12-04 Arnaud Charlet <charlet@gnat.com>
19277 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
19278 more confusion than it solves.
19280 2001-12-04 Geert bosch <bosch@gnat.com>
19282 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
19284 2001-12-04 Geert Bosch <bosch@gnat.com>
19286 * Makefile.in (update-sources): New target.
19287 For use by gcc_release script.
19289 2001-12-04 Ed Schonberg <schonber@gnat.com>
19291 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
19292 a configuration pragma, it is now legal wherever a pragma can appear.
19294 2001-12-04 Zack Weinberg <zack@codesourcery.com>
19296 * Makefile.in: Don't set ALL. Delete @cross_defines@,
19297 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
19298 is now @CROSS@ -DIN_GCC; update comment.
19300 2001-12-04 Robert Dewar <dewar@gnat.com>
19302 * einfo.adb (Has_Pragma_Pure_Function): New flag.
19303 Fix problem that stopped ceinfo from working
19305 * einfo.ads (Has_Pragma_Pure_Function): New flag.
19307 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
19309 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
19312 (File_Time_Stamp): New procedure.
19313 (Preserve_Mode): New boolean.
19314 (Write_Unit): Pass time stamp.
19315 Implement -p switch (preserve time stamps).
19317 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
19319 * gnatchop.adb: Do usage info for -p switch
19321 * adaint.h (__gnat_set_file_time_name): New function
19323 * adaint.c (__gnat_set_file_time_name): Implement
19325 * adaint.h: Fix typo
19327 2001-12-03 Robert Dewar <dewar@gnat.com>
19329 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
19330 have Associated_Node.
19332 2001-12-03 Robert Dewar <dewar@gnat.com>
19334 * prj-proc.adb: Minor reformatting
19336 * make.adb: Minor reformatting
19338 2001-12-03 Geert Bosch <bosch@gnat.com>
19340 * make.adb: Minor reformatting.
19342 2001-12-03 Robert Dewar <dewar@gnat.com>
19344 * sem_ch12.adb: Minor reformatting
19346 2001-12-03 Ed Schonberg <schonber@gnat.com>
19348 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
19349 push Standard on the stack before analyzing the instance body,
19350 in order to have a clean visibility environment.
19352 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
19354 2001-12-03 Ed Schonberg <schonber@gnat.com>
19356 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
19357 instantiation of a body that contains an inlined body.
19359 2001-12-03 Ed Schonberg <schonber@gnat.com>
19362 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
19363 to prevent freezing within formal packages.
19364 (Freeze_Subprogram_Body): If body comes from another instance that
19365 appeared before its own body, place freeze node at end of current
19366 declarative part, to prevent a back-end crash.
19367 (Inline_Instance_Body): Handle properly a package instance within
19368 a subprogram instance that is a child unit.
19370 2001-12-01 Graham Stott <grahams@redhat.com>
19372 * Makefile.in (misc.o): Add missing $(srcdir) prefix
19373 and add optabs.h dependency.
19375 * misc.c: Include optabs.h
19376 (gnat_tree_code_type): Make static and const.
19377 (gnat_tree_code_length): Likewise.
19378 (gnat_tree_code_name): Likewise.
19379 (update_setjmp_buf): Obtain operands mode from insn_data.
19381 2001-11-29 Richard Henderson <rth@redhat.com>
19383 * init.c: Remove obsolete dwarf2 frame.h section.
19385 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
19387 * Make-lang.in (ada.generated-manpages): New dummy target.
19389 2001-11-29 Ed Schonberg <schonber@gnat.com>
19391 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
19392 into Command, an array conversion is illegal here. Uncovered by
19395 2001-11-28 Geert Bosch <bosch@gnat.com>
19397 * init.c: Minor whitespace changes.
19399 2001-11-28 Doug Rupp <rupp@gnat.com>
19401 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
19404 2001-11-28 Zack Weinberg <zack@codesourcery.com>
19406 * misc.c (gnat_expand_constant): Move declaration above
19407 definition of lang_hooks.
19408 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
19409 (gnat_init): lang_expand_constant no longer exists.
19411 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
19412 always have vprintf.
19413 (gnat_init): Always call set_internal_error_function.
19415 2001-11-27 Andreas Jaeger <aj@suse.de>
19417 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
19419 2001-11-27 Laurent Guerby <guerby@acm.org>
19421 * Makefile.in: Regenerate Ada dependencies.
19423 2001-11-26 Richard Henderson <rth@redhat.com>
19425 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
19426 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
19427 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
19429 2001-11-25 Laurent Guerby <guerby@acm.org>
19431 * sysdep.c (rts_get_*): Fix style.
19433 2001-11-19 Laurent Guerby <guerby@acm.org>
19435 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
19436 since it is of no apparent use and cause warnings.
19438 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
19440 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
19442 (gnat_init): Don't return NULL.
19443 (finish_parse): Remove.
19445 2001-11-17 Laurent Guerby <guerby@acm.org>
19447 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
19448 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
19449 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
19450 * lang-spec.h: Add missing struct field to silence warnings.
19451 * sysdep.c (rts_get_*): Provide K&R prototype.
19452 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
19453 * traceback.c (Unlock_Task, Lock_Task): Likewise.
19454 * tracebak.c (__gnat_backtrace): Remove unused variable.
19455 * utils.c (end_subprog_body): Move to K&R style.
19457 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19459 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
19461 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
19463 * misc.c (gnat_init): Change prototype. Include the
19464 functionality of the old init_parse and init_decl_processing.
19465 (gnat_init_decl_processing): New prototype.
19466 (init_parse): Remove.
19467 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
19469 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
19471 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
19472 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
19473 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
19474 set_yydebug): Remove.
19476 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
19478 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
19479 (struct lang_hooks): Constify.
19480 (language_string, lang_identify): Remove.
19481 * utils.c (init_decl_processing): Update.
19483 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
19485 * misc.c: Include langhooks-def.h.
19486 * Makefile.in: Update.
19488 2001-10-30 Robert Dewar <dewar@gnat.com>
19491 (Check_Identifier): Rewrite circuit to be compatible with use of letters
19492 in the upper half of ASCII.
19493 (Check_Identifier): Minor reformatting
19495 2001-10-30 Geert Bosch <bosch@gnat.com>
19497 * (Associated_Node, Set_Associated_Node): Do not check for
19500 2001-10-30 Robert Dewar <dewar@gnat.com>
19502 * a-reatim.ads: Minor reformatting
19504 2001-10-30 Robert Dewar <dewar@gnat.com>
19506 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
19507 undocumented declarations.
19509 2001-10-30 Pascal Obry <obry@gnat.com>
19511 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
19512 to the binder and linker.
19515 * mdll.ads: Fix layout. Update copyright notice.
19517 * mdll.adb: Fix layout. Update copyright notice.
19519 2001-10-30 Robert Dewar <dewar@gnat.com>
19521 * usage.adb: Minor fix to output for -gnaty.
19523 2001-10-30 Ed Schonberg <schonber@gnat.com>
19525 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
19526 to accommodate all its possible values.
19528 * a-reatim.adb (Split): Special-case handling of Time_Span_First
19529 and of small absolute values of T.
19531 2001-10-30 Richard Kenner <kenner@gnat.com>
19533 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
19534 set_mem_attributes since not needed and wrong if RESULT if a REG;
19535 fixes ACATS failures.
19537 2001-10-30 Geert Bosch <bosch@gnat.com>
19539 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
19540 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
19542 2001-10-30 Robert Dewar <dewar@gnat.com>
19544 * bindusg.adb: Undocument -f switch.
19546 * gnatcmd.adb: Remove /FULL_ELABORATION.
19548 * opt.ads (Force_RM_Elaboration_Order): Document that this is
19551 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
19553 * gnatbind.adb: Minor update of warning msg.
19555 2001-10-30 Vincent Celier <celier@gnat.com>
19557 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
19558 for project file switches (-P (/PROJECT_FILE=),
19559 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
19562 2001-10-30 Geert Bosch <bosch@gnat.com>
19564 * decl.c: Minor whitespace fixes.
19566 2001-10-30 Richard Kenner <kenner@gnat.com>
19568 * utils2.c (build_allocator): Test for SIZE overflow in array case too
19570 2001-10-30 Geert Bosch <bosch@gnat.com>
19572 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
19573 Found due to GCC 3.0 warning of using uninitialized value.
19576 (Get_Max_Size): Use variant record for tracking value/expression.
19577 Makes logic clearer and prevents warnings for uninitialized variables.
19578 (Layout_Array_Type): Use variant record for tracking value/expression.
19579 Makes logic clearer and prevents warnings for uninitialized variables.
19581 2001-10-30 Robert Dewar <dewar@gnat.com>
19583 * lib.adb: Minor reformatting
19585 * s-taprop.ads: Minor reformatting
19587 2001-10-29 Laurent Guerby <guerby@acm.org>
19590 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
19592 (_gnat_error_handler): Make MSG const.
19594 2001-10-29 Richard Kenner <kenner@gnat.com>
19596 * sysdep.c: Fix localtime_r problem on LynxOS.
19597 Also remove #elif to avoid warnings.
19599 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
19602 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
19604 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
19606 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
19607 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
19608 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
19609 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
19610 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
19611 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
19612 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
19613 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
19614 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
19615 types.ads, urealp.adb: Fix spelling errors.
19617 2001-10-27 Laurent Guerby <guerby@acm.org>
19619 * trans.c (gigi): Fix non determinism leading to bootstrap
19620 comparison failures for debugging information.
19622 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
19624 * gnat_rm.texi: Use @./@: where appropriate.
19626 2001-10-26 Robert Dewar <dewar@gnat.com>
19628 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
19630 2001-10-26 Richard Kenner <kenner@gnat.com>
19632 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
19634 2001-10-26 Richard Kenner <kenner@gnat.com>
19636 * decl.c (validate_size): Modify message for bad size to avoid
19637 implication that compiler is modifying the size.
19639 2001-10-26 Robert Dewar <dewar@gnat.com>
19641 * prj-util.adb: Minor reformatting. Fix bad header format.
19643 2001-10-26 Robert Dewar <dewar@gnat.com>
19645 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
19647 * sinfo.ads: Clarify use of Associated_Node (documentation only).
19649 * sem_ch12.adb: Change Node4 to Associated_Node. Change
19650 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
19651 much more narrowly in places where needed. These are cleanups.
19653 2001-10-26 Joel Brobecker <brobecke@gnat.com>
19655 * 5zosinte.ads (null_pthread): new constant.
19658 (Initialize_TCB): Initialize thread ID to null, to be able to verify
19659 later that this field has been set.
19660 (Finalize_TCB): ditto.
19661 (Suspend_Task): Verify that the thread ID is not null before using it.
19662 (Resume_Task): ditto.
19665 (Resume_All_Tasks): Lock the tasks list before using it.
19666 (Suspend_All_Tasks): ditto.
19668 2001-10-26 Richard Kenner <kenner@gnat.com>
19670 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
19671 Make constant variant of designated type for Is_Access_Constant.
19672 Call update_pointer_to with main variant.
19674 * trans.c (process_freeze_entity, process_type):
19675 Call update_pointer_to on main variant.
19677 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
19678 If main variant, update all other variants.
19680 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
19683 2001-10-26 Robert Dewar <dewar@gnat.com>
19685 * prj-util.adb: Minor reformatting
19687 2001-10-26 Robert Dewar <dewar@gnat.com>
19689 * prj-util.adb: Minor reformatting
19691 2001-10-26 Robert Dewar <dewar@gnat.com>
19693 * prj-attr.adb: Minor reformatting throughout
19695 2001-10-26 Robert Dewar <dewar@gnat.com>
19697 * prj-attr.ads: Minor reformatting
19698 Add ??? comment (this whole spec has almost no comments)
19700 2001-10-26 Vincent Celier <celier@gnat.com>
19702 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
19703 ("//") that precede the drive letter on Interix.
19705 2001-10-26 Geert Bosch <bosch@gnat.com>
19707 * gnat_rm.texi: Add GNAT Reference Manual.
19709 2001-10-25 Robert Dewar <dewar@gnat.com>
19711 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
19712 is Error. Similar change for other renaming cases.
19714 2001-10-25 Robert Dewar <dewar@gnat.com>
19716 * s-atacco.ads: Add pragma Inline_Always for functions.
19717 Fix header format. Add copyright 2001
19719 2001-10-25 Ed Schonberg <schonber@gnat.com>
19721 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
19722 return Error rather than Empty so that analysis can proceed.
19724 2001-10-25 Ed Schonberg <schonber@gnat.com>
19726 * sem_util.adb (Enter_Name): better handling of cascaded error
19727 messages when a unit appears in its own context.
19729 2001-10-25 Ed Schonberg <schonber@gnat.com>
19731 * sem_util.adb (Defining_Entity): in case of error, attach created
19732 entity to specification, so that semantic analysis can proceed.
19734 2001-10-25 Robert Dewar <dewar@gnat.com>
19737 (Defining_Entity): Deal with Error.
19738 (Process_End_Label): Deal with bad end label for.
19740 2001-10-25 Ed Schonberg <schonber@gnat.com>
19742 * sem_elab.adb (Check_A_Call): refine message when call is in an
19743 instance but callee is not declared in the generic unit.
19745 2001-10-25 Ed Schonberg <schonber@gnat.com>
19747 * sem_elab.adb (Check_A_Call): check for renaming before finding the
19748 enclosing unit, which may already be different from the calling unit.
19750 2001-10-25 Geert Bosch <bosch@gnat.com>
19752 * 4gintnam.ads: fix header format.
19754 2001-10-25 Ed Schonberg <schonber@gnat.com>
19756 * sem_res.adb (Resolve_Call): if the call is actually an indexing
19757 operation on the result of a parameterless call, perform elaboration
19758 check after the node has been properly rewritten.
19760 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
19761 inlined within the generic tree, the defining identifier is not a
19764 2001-10-25 Ed Schonberg <schonber@gnat.com>
19766 * sem_res.adb (Resolve): special-case resolution of Null in an
19767 instance or an inlined body to avoid view conflicts.
19769 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
19770 compatibility by retrieving the access type of the generic copy.
19772 2001-10-25 Robert Dewar <dewar@gnat.com>
19775 (Analyze_Number_Declaration): Handle error expression.
19776 (Signed_Integer_Type_Declaration): Handle error bound.
19777 (Analyze_Subtype_Indication): Handle error range.
19779 * sem_util.adb (Get_Index_Bounds): Check for Error.
19781 2001-10-25 Robert Dewar <dewar@gnat.com>
19783 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
19784 in no run time mode.
19786 2001-10-25 Pascal Obry <obry@gnat.com>
19788 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
19789 mode case for ALLOC case.
19791 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
19792 all platforms. Improvement of last change.
19794 2001-10-25 Robert Dewar <dewar@gnat.com>
19796 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
19798 2001-10-25 Geert Bosch <bosch@gnat.com>
19800 * osint.adb (Is_Relative): Remove duplicate.
19802 2001-10-25 Pascal Obry <obry@gnat.com>
19804 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
19805 pathnames in UNIX and DOS style with drive letter.
19806 (Is_Relative): new routine.
19808 * osint.adb: Minor reformatting
19810 * osint.adb (Is_Relative): implementation using
19811 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
19813 2001-10-25 Pascal Obry <obry@gnat.com>
19815 * g-dirope.adb (Basename): correctly compute offset between the
19816 original Path and the translated one.
19818 * g-dirope.adb: (Base_Name): add some comments.
19820 2001-10-25 Robert Dewar <dewar@gnat.com>
19822 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
19823 in HIE mode, avoids compilation abandoned message
19825 * exp_imgv.adb: Correct typo in previous change
19827 * exp_imgv.adb: Correct typo in previous change (not my day!)
19829 2001-10-25 Robert Dewar <dewar@gnat.com>
19831 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
19833 2001-10-25 Pascal Obry <obry@gnat.com>
19835 * g-awk.ads: Move all pragma inlines next to the routine
19836 declarations. This is more uniform with other GNAT spec.
19838 2001-10-22 Geert Bosch <bosch@gnat.com>
19840 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
19842 2001-10-19 Geert Bosch <bosch@gnat.com>
19844 * Makefile.in (tools, gnattools): Remove gnatmem.
19846 2001-10-17 Richard Henderson <rth@redhat.com>
19848 * Makefile.in (misc.o): Depend on langhooks.h.
19849 * misc.c: Include it.
19850 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
19851 (LANG_HOOKS_DECODE_OPTION): New.
19852 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
19854 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
19856 * trans.c (tree_transform): Adjust to recent change in
19857 expand_asm_operands to implement named asm operands.
19859 2001-10-11 Ed Schonberg <schonber@gnat.com>
19861 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
19862 renaming of discriminant for mutable record type.
19864 2001-10-11 Robert Dewar <dewar@gnat.com>
19866 * validsw.adb: Properly save -gnatVn status.
19868 2001-10-11 Robert Dewar <dewar@gnat.com>
19870 * usage.adb: Add lines for V switch.
19872 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
19873 (/VALIDITY_CHECKING).
19875 2001-10-11 Ed Schonberg <schonber@gnat.com>
19877 * sem_type.adb (Add_One_Interp): an operator for a type declared in
19878 an extension of System is known to be visible.
19880 2001-10-11 Ed Schonberg <schonber@gnat.com>
19882 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
19883 properly. Fixes regression on ACATS C34005G.
19885 2001-10-11 Robert Dewar <dewar@gnat.com>
19887 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
19888 loop in generic instance, since this is likely not very useful.
19890 2001-10-11 Robert Dewar <dewar@gnat.com>
19892 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
19893 the error message for high integrity mode.
19895 * rtsfind.adb (RTE): Give message if we try to find an entity that
19896 is not available in high integrity mode.
19899 (OK_To_Use_In_HIE_Mode): New array.
19900 (RTE): May return Empty in high integrity mode.
19902 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
19903 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
19905 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
19906 unit if not inlined always and in no runtime mode. Fixes problem
19907 caused by new Rtsfind changes.
19909 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
19912 * rtsfind.adb (RTE): Make sure we do not try to load unit after
19913 giving message for entity not available in high integrity mode.
19915 2001-10-11 Pascal Obry <obry@gnat.com>
19917 * impunit.adb: Add GNAT.CRC32.
19919 2001-10-11 Ed Schonberg <schonber@gnat.com>
19921 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
19922 properly the case where one universal operand in a non-static
19923 exponentiation of a real literal.
19925 2001-10-11 Ed Schonberg <schonber@gnat.com>
19927 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
19928 clause, return the gobal finalization list, for lack of anthing else.
19930 2001-10-11 Ed Schonberg <schonber@gnat.com>
19932 * exp_ch7.adb (Make_Transient_Block): if statement is within
19933 exception handler, always use new transient scope to place Clean
19936 2001-10-11 Pascal Obry <obry@gnat.com>
19939 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
19940 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
19941 (GNATLS_RTL_OBJS): add g-crc32.o
19942 (GNATMAKE_RTL_OBJS): add g-crc32.o
19945 (CRC_Match): new function.
19946 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
19947 instead of the previous simple checksum algorithm.
19948 (Time_Stamp_Mismatch): use CRC_Match for comparison.
19949 (Set_Source_Table): idem.
19952 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
19953 instead of simple checksum.
19954 (CRC_Match): new function.
19955 (CRC_Error): new constant.
19957 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
19958 a CRC now and not a simple checksum. A CRC uses lower-case hex
19959 letters, fixes ambiguity in parsing.
19961 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
19962 is what this variable will store.
19964 * bcheck.adb: Change reference to chechsum in comments by CRC.
19965 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
19966 rename All_Checksum_Match to All_CRC_Match. Change due to API
19967 renaming since now GNAT does not use a simple checksum but a
19968 CRC using GNAT.CRC32.
19970 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
19971 now and not anymore a simple checksum.
19973 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
19976 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
19979 (Restore_Scan_State): rename Checksum to CRC.
19980 (Save_Scan_State): idem.
19984 (Checksum): rename to CRC.
19985 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
19987 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
19988 GNAT.CRC32). Update copyright notice.
19990 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
19991 GNAT.CRC32). Update copyright notice.
19994 (Accumulate_Checksum): removed.
19995 (Update): new procedure. Add a wide-character into the CRC.
19998 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
19999 (Load_File): fix initialization of S (change Source_Checksum to
20002 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
20003 Source_CRC in S initialization.
20005 * sinput.adb (Source_Checksum): renamed to Source_CRC.
20007 * sinput.ads (Source_Checksum): renamed to Source_CRC.
20008 Update comments for the CRC.
20010 * types.adb (Hex): Use lowercase for the letter part.
20012 * types.ads (Get_Hex_String): Returns the hexadecimal representation
20013 for a word. This is currently used only for CRC. In previous version,
20014 the checksum was using a representation with all letter being
20015 upper-case. With the new implementation (using CRC) we do not remove
20016 the 32th bit of the CRC, so we can have an upper-case starting letter
20017 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
20018 It is ambigous since the CRC was optional and could be followed by
20019 options like EB, EE. So now this routines uses lower-case letter for
20020 the hexadecimal representation. Strange enough only lower case letters
20021 where checked in Scan_ALI (even if this was not a possible case).
20023 * gnatvsn.ads (Library_Version): changed to 3.15a.
20025 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
20028 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
20031 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
20032 Add 2001 to copyright notice
20033 (Accumulate_Checksum): Modify to use System.CRC32.
20035 * ali-util.ads: Redo changes of previous revision to continue to use
20036 the word Checksum. Add 2001 to copyright notice.
20038 * ali.adb: Undo some of previous changes, not needed.
20039 Keep the change for lower case letters in the checksum.
20041 * ali.ads: Undo previous change not needed.
20043 * bcheck.adb: Undo most of previous change, not needed.
20044 But do use Checksums_Match for checksum comparison.
20046 * gnatls.adb: Undo most of previous change, not needed.
20047 But do use Checksums_Match for comparing checksums.
20049 * lib-load.adb: Undo previous change, not needed.
20051 * lib-writ.adb: Undo previous change, not needed.
20053 * lib-writ.ads: Document that checksums use lower case,
20054 not upper case letters.
20056 * scans.adb: Undo previous change, not needed
20058 * scans.ads: Undo previous change, not needed.
20060 * scn-nlit.adb: Undo previous changes, not needed.
20062 * scn-slit.adb: Undo previous change, not needed. Fix header format.
20065 (Accumulate_Checksum): Use System.CRC32.
20066 (Initialize_Checksum): New procedure.
20067 Remove other changes of previous revision.
20069 * sinput-p.adb: Undo previous change, not needed.
20071 * sinput.adb: Undo previous change, not needed.
20073 * sinput-l.adb: Undo previous change, not needed.
20075 * sinput.ads: Undo previous change, not needed. Keep only comment
20076 on new checksum algorithm
20078 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
20079 Also remove a-tags and a-stream from GNAT sources.
20081 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
20083 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
20085 2001-10-11 Geert Bosch <bosch@gnat.com>
20087 * einfo.h: Regenerate.
20089 * nmake.ads: Regenerate.
20091 * nmake.adb: Regenerate.
20093 * sinfo.h: Regenerate.
20095 * treeprs.adb: Regenerate.
20097 2001-10-10 Geert Bosch <bosch@gnat.com>
20099 * gnat-style.texi: New file describing coding guidelines for Ada.
20101 2001-10-10 Ed Schonberg <schonber@gnat.com>
20103 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
20106 2001-10-10 Geert Bosch <bosch@gnat.com>
20108 * snames.ads: Add new names for project facility.
20110 * snames.adb: Update to reflect snames.ads changes.
20112 * snames.h: Update to reflect snames.ads changes.
20114 2001-10-10 Vincent Celier <celier@gnat.com>
20117 (Add_Switches): reflect the changes for the switches attributes
20118 Default_Switches indexed by the programming language,
20119 Switches indexed by the file name.
20120 (Collect_Arguments_And_Compile): Idem.
20121 Reflect the attribute name changes.
20124 (Initialisation_Data): Change the names of some packages and
20126 (Initialize): process case insensitive associative arrays.
20129 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
20132 (Parse_Attribute_Declaration): For case insensitive associative
20133 arrays, set the index string to lower case.
20136 Reflect the changes of the project attributes.
20139 Replace Check_Naming_Scheme by Ada_Check and
20140 Language_Independent_Check.
20143 Replaced Check_Naming_Scheme by 2 procedures:
20144 Ada_Check and Language_Independent_Check.
20147 (Process_Declarative_Items): For case-insensitive associative
20148 arrays, set the index string to lower case.
20149 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
20150 Prj.Nmsc.Check_Naming_Scheme.
20153 (Case_Insensitive): New function
20154 (Set_Case_Insensitive): New procedure
20157 (Case_Insensitive): New function
20158 (Set_Case_Insensitive): New procedure
20159 (Project_Node_Record): New flag Case_Insensitive.
20162 (Value_Of): new function to get the string value of a single
20163 string variable or attribute.
20166 (Value_Of): new function to get the string value of a single
20167 string variable or attribute.
20170 (Ada_Default_Spec_Suffix): New function
20171 (Ada_Default_Impl_Suffix): New function
20172 Change definitions of several constants to reflect
20173 new components of record types.
20176 (Naming_Data): Change several components to reflect new
20177 elements of naming schemes.
20178 (Project_Data): New flags Sources_Present and
20179 Language_Independent_Checked.
20180 (Ada_Default_Spec_Suffix): New function.
20181 (Ada_Default_Impl_Suffix): New function.
20184 Modification of predefined names for project manager: added
20185 Implementation, Specification_Exceptions, Implementation_Exceptions,
20186 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
20187 Default_Switches, _Languages, Builder, Cross_Reference,
20188 Finder. Removed Body_Part, Specification_Append, Body_Append,
20189 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
20192 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
20195 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
20196 not that it is Nil_Variable_Value.
20198 * prj.ads: Add ??? for uncommented declarations
20200 2001-10-10 Ed Schonberg <schonber@gnat.com>
20202 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
20203 constant, do not indicate possible modification, so that gigi can
20204 treat it as a bona fide constant.
20206 2001-10-10 Robert Dewar <dewar@gnat.com>
20208 * sem_prag.adb: Add processing for pragma External.
20210 * snames.ads: Add entry for pragma External.
20212 * par-prag.adb: Add pragma External.
20214 * snames.adb: Updated to match snames.ads.
20216 2001-10-10 Ed Schonberg <schonber@gnat.com>
20218 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
20219 a dynamic task if the allocator appears in an indexed assignment
20220 or selected component assignment.
20222 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
20223 For a dynamic task in an assignment statement, use target of
20224 assignment to generate meaningful name.
20226 2001-10-10 Ed Schonberg <schonber@gnat.com>
20228 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
20231 * einfo.ads: Body_Entity is also defined for generic package.
20232 Documentation change only
20234 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
20235 others_choice for a discriminated component initialization,
20236 convert discriminant references into the corresponding discriminals.
20238 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
20239 only if original type is private and expression has to be wrapped
20243 (Apply_Constraint_Check): Do not perform length check
20244 if expression is an aggregate with only an others_choice.
20245 (Length_N_Cond): two references to the same in_parameter
20246 (typically the discriminal in an init_proc) denote the same value.
20247 Two useful optimization uncovered by bugfixes above.
20249 2001-10-10 Robert Dewar <dewar@gnat.com>
20251 * xeinfo.adb: Change int to char in translation of enumeration types.
20252 This fixes a problem in the C representation of component alignment.
20253 Add 2001 to copyright notice
20255 2001-10-10 Richard Kenner <kenner@gnat.com>
20257 * decl.c: (validate_size): Do check size of object of integral type
20258 if it is a packed array type.
20260 2001-10-10 Richard Kenner <kenner@gnat.com>
20262 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
20263 VAR_DECL for constant if not Is_Public but -O0.
20265 2001-10-10 Richard Kenner <kenner@gnat.com>
20267 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
20269 2001-10-10 Geert Bosch <bosch@gnat.com>
20271 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
20272 use '/' as switch character, allowing for absolute file names.
20274 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
20276 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
20279 2001-10-08 Geert Bosch <bosch@gnat.com>
20281 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
20282 Automatically build utilities when files need to be regenerated.
20284 2001-10-08 Geert Bosch <bosch@gnat.com>
20286 * xsnames.adb: New utility for updating snames.ads and snames.adb
20288 2001-10-08 Zack Weinberg <zack@codesourcery.com>
20290 * Make-lang.in (ADAFLAGS): Add -W -Wall.
20291 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
20292 (gnat1): Also depend on attribs.o.
20293 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
20294 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
20295 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
20296 (ADAFLAGS): Add -W -Wall.
20297 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
20300 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
20301 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
20302 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
20303 Use $(ADAC), not $(CC), as compilation command.
20305 (gnattools): Depend directly on tools to build, don't use
20307 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
20309 * einfo.h, sinfo.h: New files (autogenerated).
20311 2001-10-08 Richard Henderson <rth@redhat.com>
20313 * comperr.adb (Abort_In_Progress): New.
20314 (Compiler_Abort): Use it to prevent recursion.
20316 2001-10-08 Robert Dewar <dewar@gnat.com>
20318 * atree.adb: Set Error_Posted in Error node, helps error recovery.
20320 * par-endh.adb (Output_End_Expected): We should also not test
20321 Error_Posted on the Error node, since now it is always set.
20323 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
20324 to help error recovery. Part of general work on 9407-004.
20326 * par.adb: Add ??? for misuse of error
20329 (Resolve): Defend against Error, fixes 9407-003.
20330 (Resolve_Discrete_Subtype_Indication): Defend against Error.
20332 * sinfo.ads (N_Error): Now has Etype field (which will be set
20333 to Any_Type to help error recovery).
20335 2001-10-08 Richard Kenner (kenner@gnat.com)
20337 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
20338 Consistently set MEM attributes from expression; fixes
20339 bootstrap failure on x86.
20341 2001-10-08 Geert Bosch (bosch@gnat.com)
20343 * 5oosinte.adb: Add 2001 to copyright notice.
20345 2001-10-08 Geert Bosch (bosch@gnat.com)
20347 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
20349 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
20351 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
20353 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
20355 2001-10-05 Geert Bosch (bosch@gnat.com)
20357 * adaint.h: Small formatting fix.
20359 2001-10-04 Geert Bosch <bosch@gnat.com>
20361 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
20362 Arg is int, not FILE *, in dummy version of functions.
20364 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
20365 Arg is int, not FILE *.
20367 2001-10-04 Geert Bosch <bosch@gnat.com>
20369 * 3lsoccon.ads: Added file, missed with initial check ins.
20371 * 4lintnam.ads: Fix header format.
20372 Change Linux to GNU/Linux.
20374 * 5iosinte.adb: Change Linux to GNU/Linux.
20376 * 5iosinte.ads: Change Linux to GNU/Linux.
20378 * 5itaprop.adb: Change Linux to GNU/Linux.
20380 * 5itaspri.ads: Change Linux to GNU/Linux.
20381 Update copyright notice.
20383 * 5lintman.adb: Change Linux to GNU/Linux.
20385 * 5lml-tgt.adb: Change Linux to GNU/Linux.
20387 * 5losinte.ads: Change Linux to GNU/Linux.
20389 * 5lsystem.ads: Change Linux to GNU/Linux.
20391 * 5qosinte.adb: Change Linux to GNU/Linux.
20393 * 5qosinte.ads: Change Linux to GNU/Linux.
20395 * 5qparame.ads: Change Linux to GNU/Linux.
20397 * 5qtaprop.adb: Change Linux to GNU/Linux.
20399 * 5qtaspri.ads: Change Linux to GNU/Linux.
20400 Add 2001 to copyright notice.
20402 * 5vintman.ads: Change Linux to GNU/Linux.
20403 Fix header format. Add 2001 to copyright notice.
20405 * g-soccon.ads: Change Linux to GNU/Linux.
20407 * g-trasym.ads: Change Linux to GNU/Linux.
20408 Add 2001 to copyright notice.
20410 * memtrack.adb: Change Linux to GNU/Linux.
20412 * s-intman.ads: Change Linux to GNU/Linux.
20413 Add 2001 to copyright notice. Fix header format.
20415 * s-stache.adb: Change Linux to GNU/Linux.
20417 * adaint.c: Change Linux to GNU/Linux.
20419 * cio.c: Change Linux to GNU/Linux.
20421 * cstreams.c: Change Linux to GNU/Linux.
20423 * init.c: Change Linux to GNU/Linux.
20425 * gmem.c: Change Linux to GNU/Linux.
20427 * tracebak.c: Change Linux to GNU/Linux.
20430 2001-10-02 Geert Bosch <bosch@gnat.com>
20432 * misc.c (insert_default_attributes): Add dummy version.