]> gcc.gnu.org Git - gcc.git/blob - gcc/ada/ChangeLog
60ed170784f1de2b11a92a079eef439011ba1ada
[gcc.git] / gcc / ada / ChangeLog
1 2005-11-19 Richard Guenther <rguenther@suse.de>
2 Roger Sayle <roger@eyesopen.com>
3
4 PR ada/23717
5 * misc.c (internal_error_function): Don't use vsprintf to format
6 the error message text, instead use pp_format_text and the new
7 pretty printer APIs. This allows handling of %qs, %w, etc.
8
9 2005-11-18 Laurent GUERBY <laurent@guerby.net>
10
11 PR ada/24857
12 * Makefile.in: Use s-auxdec-empty for RTEMS.
13
14 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15
16 PR ada/22333
17 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
18 a temporary if taking the address of something that is neither
19 reference, declaration, or constant, since the gimplifier
20 can't handle that case.
21
22 2005-11-17 Laurent GUERBY <laurent@guerby.net>
23
24 PR ada/24857
25 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
26
27 2005-11-16 Richard Guenther <rguenther@suse.de>
28
29 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
30
31 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
32
33 PR ada/24855
34 * raise-gcc.c: Add missing stdarg.h include.
35
36 2005-11-16 Richard Guenther <rguenther@suse.de>
37
38 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
39 (ada/misc.o): Likewise.
40
41 2005-11-14 Thomas Quinot <quinot@adacore.com>
42
43 * g-soccon.ads: Minor reformatting. Update comments.
44
45 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
46 gain visibility on the declaration of struct timeval.
47
48 * g-soccon-freebsd.ads,
49 g-soccon-darwin.ads,
50 g-soccon-tru64.ads,
51 g-soccon-aix.ads,
52 g-soccon-irix.ads,
53 g-soccon-hpux.ads,
54 g-soccon-solaris.ads,
55 g-soccon-vms.ads,
56 g-soccon-mingw.ads,
57 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
58
59 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
60 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
61 g-soccon-linux-x86.ads: New files.
62
63 * g-socthi-mingw.adb:
64 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
65
66 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
67 (time_t, suseconds_t): New types constructed to match the tv_sec
68 and tv_usec fields of C struct timeval.
69 (Timeval): Construct structure in terms of the new types.
70 (Host_Errno): New function (imported from socket.c), returns last hosts
71 database error.
72
73 * g-socthi-vxworks.adb: Add error handling circuitry.
74
75 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
76 components of struct timeval.
77 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
78 (Check_Selector): In error conditions, clear internal socket sets to
79 avoid a memory leak.
80 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
81 Send_Timeout, Receive_Timeout.
82
83 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
84 the tv_sec and tv_usec fields of C struct timeval.
85 (Timeval): Construct structure in terms of the new types.
86 (Host_Errno): New function (imported from socket.c), returns last hosts
87 database error.
88
89 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
90 hosts database last error code.
91
92 * gen-soccon.c: Complete value expansion should not be performed on
93 TARGET, as it has the form of a math expression, and some components
94 may be platform-defined macros.
95 For VxWorks, generate the OK and ERROR values.
96 New constants giving the sizes of the components of C struct timeval.
97
98 2005-11-14 Robert Dewar <dewar@adacore.com>
99 Ed Schonberg <schonberg@adacore.com>
100
101 PR ada/18434
102
103 * types.ads: Include All_Checks in Suppress_Array
104
105 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
106 not(a=b), since we no longer do this rewriting, and hence it is not
107 needed.
108 (Elaboration_Checks_Suppressed): Add special casing to
109 deal with different cases of static and dynamic elaboration checks (all
110 checks does not count in the first case, but does in the second).
111 (Expr_Known_Valid): Do not assume that the result of any arbitrary
112 function call is valid, since this is not the case.
113 (Ensure_Valid): Do not apply validity check to a real literal
114 in a universal or fixed context
115
116 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
117 elementary types using the operator in standard. It is cleaner not to
118 modify the programmers intent, especially in the case of floating-point.
119 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
120 it did not matter because we always rewrote a/=b to not(a=b).
121 (Expand_Allocator_Expression): For an allocator expression whose nominal
122 subtype is an unconstrained packed type, convert the expression to its
123 actual constrained subtype.
124 Implement warning for <= or >= where < or > not possible
125 Fix to Vax_Float tests (too early in many routines, causing premature
126 Vax_Float expansions.
127
128 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
129 to be used with packages and generic packages as well as with
130 subprograms.
131 (Suppress): Set All_Checks, but not Elaboration_Check, for case
132 of pragma Suppress (All_Checks)
133 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
134 a string literal for precise control over warnings.
135 Avoid raise of pragma in case of unrecognized pragma and just return
136 instead.
137
138 * sem_prag.ads: Minor reformatting
139
140 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
141 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
142 Switch. Do not handle any exception.
143 Include -gnatwx as part of -gnatg (warn on redundant parens)
144 Allow optional = after -gnatm
145 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
146 longer sets Elaboration_Checks.
147 Code to set warning mode moved to Sem_Warn
148 so that it can be shared by pragma processing.
149
150 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
151 statement.
152
153 * s-taprop-solaris.adb:
154 Change some <= to =, to avoid new warning
155
156 * a-exexda.adb, prj-proc.adb:
157 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
158 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
159
160 2005-11-14 Robert Dewar <dewar@adacore.com>
161
162 * exp_vfpt.adb: Handle /= case
163 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
164 so that we do not get duplicate scaling for fixed point conversions.
165
166 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
167
168 2005-11-14 Matthew Gingell <gingell@adacore.com>
169
170 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
171 Increase default priority on Lynx from 15 to 17, and meet the Ada
172 requirement that Default_Priority be ((Priority'First +
173 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
174
175 2005-11-14 Vincent Celier <celier@adacore.com>
176
177 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
178 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
179 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
180 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
181 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
182 mlib-tgt-lynxos.adb (DLL_Prefix): New function
183
184 2005-11-14 Doug Rupp <rupp@adacore.com>
185
186 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
187 private part.
188
189 2005-11-14 Arnaud Charlet <charlet@adacore.com>
190
191 * s-traces-default.adb, s-trafor-default.ads,
192 s-tratas-default.adb: Fix compilation errors.
193
194 2005-11-14 Jose Ruiz <ruiz@adacore.com>
195
196 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
197 raising the exception so the memory used is freed.
198
199 2005-11-14 Arnaud Charlet <charlet@adacore.com>
200
201 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
202 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
203 (convert_address): Update comments and list of platforms using this.
204
205 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
206 no longer used.
207
208 2005-11-14 Pascal Obry <obry@adacore.com>
209 Vincent Celier <celier@adacore.com>
210
211 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
212 GNAT.Command_Line.
213
214 * memroot.adb: Remove redundant with/use clause on
215 System.Storage_Elements.
216
217 2005-11-14 Arnaud Charlet <charlet@adacore.com>
218
219 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
220 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
221 related code to a-exexpr.adb
222 (Save_Occurrence_And_Private): Move GCC EH related code to
223 a-exexpr-gcc.adb
224 (Raise_Current_Excep): Add new variable Id with pragma
225 volatile, to ensure that the variable lives on stack.
226
227 * a-exexpr-gcc.adb, raise-gcc.c: New file.
228
229 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
230 from a-except.adb.
231 Move GCC EH related code to a-exexpr-gcc.adb
232
233 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
234 64-bit Solaris
235 Split the Linux version of g-soccon into separate variants for 32 and 64
236 bit platforms.
237 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
238 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
239 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
240 of host variable $(RANLIB_FLAGS).
241 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
242 Code clean up: remove unused/obsolete targets.
243 (EH_MECHANISM): New variable introduced to differenciate between the
244 two EH mechanisms statically.
245 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
246 (LIBGNAT_OBJS): Add raise-gcc.o
247 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
248 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
249 supports VxWorks 6 RTPs.
250 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
251 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
252
253 * raise.c: Move all GCC EH-related routines to raise-gcc.c
254
255 2005-11-14 Jose Ruiz <ruiz@adacore.com>
256
257 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
258 deferral level, when abort is not allowed, to a later stage (the
259 Task_Wrapper).
260 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
261 it will not get changed by the generated code. It was previously done
262 in Create_Task.
263
264 2005-11-14 Thomas Quinot <quinot@adacore.com>
265 Olivier Hainque <hainque@adacore.com>
266 Eric Botcazou <ebotcazou@adacore.com>
267
268 * decl.c:
269 Factor common code to build a storage type for an unconstrained object
270 from a fat or thin pointer type and a constrained object type.
271 (annotate_value): Handle BIT_AND_EXPR.
272 (annotate_rep): Don't restrict the back annotation of inherited
273 components to the type_annotate_only case.
274 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
275 we are not defining the type.
276 <E_Record_Type>: Likewise.
277 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
278 to get advantage of the new maybe_stabilize_reference interface, to
279 ensure that what we reference is indeed stabilized instead of relying
280 on assumptions on what the stabilizer does.
281 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
282 type imported through a limited_with clause, use its non-limited view.
283 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
284 differentiation.
285 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
286 of #if sections + explicit comparisons of convention identifiers.
287 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
288 before early-returning for certain types when code generation is
289 disabled.
290 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
291 nullification of gnu_expr we do for objects with address clause and
292 that we are not defining.
293 (elaborate_expression_1): Do not create constants when creating
294 variables needed by the debug info: the dwarf2 writer considers that
295 CONST_DECLs is used only to represent enumeration constants, and emits
296 nothing for them.
297 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
298 object with an address clause into an indirect reference, drop the
299 initializing expression.
300 Include "expr.h".
301 (STACK_CHECK_BUILTIN): Delete.
302 (STACK_CHECK_PROBE_INTERVAL): Likewise.
303 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
304 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
305 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
306 corresponding to the renamed object as ignored for debugging purposes.
307
308 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
309 related): For a prefix that is a dereference of a fat or thin pointer,
310 if there is an actual subtype provided by the front-end, use that
311 subtype to build an actual type with bounds template.
312 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
313 is provided by the front-end, use that subtype to compute the size of
314 the deallocated object.
315 (gnat_to_gnu): When adding a statement into an elaboration procedure,
316 check for a potential violation of a No_Elaboration_Code restriction.
317 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
318 with extra arguments to control whether to recurse through non-values
319 and to let the caller know if the stabilization has succeeded.
320 (gnat_stabilize_reference): Now a simple wrapper around
321 maybe_stabilize, for common uses without restriction on lvalues and
322 without need to check for the success indication.
323 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
324 pass false instead of 0 as the FORCE argument which is a bool.
325 (Identifier_to_gnu): Remove checks ensuring that an renamed object
326 attached to a renaming pointer has been properly stabilized, as no such
327 object is attached otherwise.
328 (call_to_gnu): Invoke create_var_decl to create the temporary when the
329 function uses the "target pointer" return mechanism.
330 Reinstate conversion of the actual to the type of the formal
331 parameter before any other specific treatment based on the passing
332 mechanism. This turns out to be necessary in order for PLACEHOLDER
333 substitution to work properly when the latter type is unconstrained.
334
335 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
336 common pattern.
337 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
338 with extra arguments to control whether to recurse through non-values
339 and to let the caller know if the stabilization has succeeded.
340
341 * utils2.c (gnat_build_constructor): Only sort the fields for possible
342 static output of record constructor if all the components are constant.
343 (gnat_build_constructor): For a record type, sort the list of field
344 initializers in increasing bit position order.
345 Factor common code to build a storage type for an unconstrained object
346 from a fat or thin pointer type and a constrained object type.
347 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
348 types variants, and process special cases of VIEW_CONVERT expressions
349 as their NOP_EXPR counterpart to ensure we get to the
350 CORRESPONDING_VARs associated with CONST_DECls.
351 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
352 on the right-hand side.
353
354 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
355 a common pattern.
356 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
357 are converting back to its original type.
358 (convert) <JM input>: Fallthrough regular conversion code instead of
359 extracting the object if converting to a type variant.
360 (create_var_decl): When a variable has an initializer requiring code
361 generation and we are at the top level, check for a potential violation
362 of a No_Elaboration_Code restriction.
363 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
364 SIZE and SIZE_UNIT which we need for later back-annotations.
365 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
366 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
367 is an unchecked union.
368 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
369 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
370 main variant, just replace the VIEW_CONVERT_EXPR.
371 <UNION_TYPE>: Revert 2005-03-02 change.
372
373 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
374
375 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
376
377 2005-11-14 Matthew Heaney <heaney@adacore.com>
378
379 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
380 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
381 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
382 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
383 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
384 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
385 Compiles against the spec for ordered maps described in sections
386 A.18.6 of the most recent (August 2005) AI-302 draft.
387
388 2005-11-14 Olivier Hainque <hainque@adacore.com>
389
390 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
391 to ensure bias adjustments take place when need be and to prevent
392 occurrences of intermediate overflows.
393
394 2005-11-14 Matthew Gingell <gingell@adacore.com>
395 Olivier Hainque <hainque@adacore.com>
396
397 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
398 ia64 HP-UX.
399
400 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
401 tracebacks on ia64 HP-UX and provide explanatory comment.
402 Enable backtraces on ia64 GNU/Linux.
403 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
404 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
405
406 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
407 Javier Miranda <miranda@adacore.com>
408
409 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
410 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
411 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
412 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
413
414 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
415 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
416 assertions).
417
418 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
419 subprogram that generates the external name associated with a
420 secondary dispatch table.
421 (Get_Secondary_DT_External_Name): New subprogram that generates the
422 external name associated with a secondary dispatch table.
423
424 2005-11-14 Emmanuel Briot <briot@adacore.com>
425
426 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
427 line in the ALI file to include both an instantiation reference, and a
428 returned value.
429
430 2005-11-14 Vincent Celier <celier@adacore.com>
431
432 * clean.adb (Check_Project): Look for Ada code in extending project,
433 even if Ada is not specified as a language.
434 Use new function DLL_Prefix for DLL_Name
435 (Clean_Interface_Copy_Directory): New procedure
436 (Clean_Library_Directory): New procedure
437 (Clean_Directory): Remove procedure, no longer used
438 (Clean_Project): Do not delete any file in an externally built project
439
440 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
441 directory of an extending project, even when there are no Ada source
442 present.
443 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
444 (Set_Ada_Paths.Add.Recursive_Add): Ditto
445
446 * mlib-prj.adb (Check_Library): For all library projects, get the
447 library file timestamp.
448 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
449 (Build_Library): Use new function DLL_Prefix for the DLL_Name
450 (Clean): Remove procedure, no longer used
451 (Ultimate_Extension_Of): New function
452 (Build_Library): When cleaning the library directory, only remove an
453 existing library file and any ALI file of a source of the project.
454 When cleaning the interface copy directory, remove any source that
455 could be a source of the project.
456
457 * prj.ads, prj.adb (Project_Empty): Add values of new components
458 Library_TS and All_Imported_Projects.
459 (Project_Empty): Add values for new components of Project_Data:
460 Library_ALI_Dir and Display_Library_ALI_Dir
461
462 * prj-attr.adb: New project level attribute name Library_ALI_Dir
463
464 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
465 attribute Library_ALI_Dir.
466 (Check_Library_Attributes): The library directory cannot be the same as
467 any source directory of the project tree.
468 (Check_Stand_Alone_Library): The interface copy directory cannot be
469 the same as any source directory of the project tree.
470
471 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
472 all temporary files.
473
474 2005-11-14 Robert Dewar <dewar@adacore.com>
475 Ed Schonberg <schonberg@adacore.com>
476
477 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
478 (Check_Elab_Call): A call within a protected body is never an
479 elaboration call, and does not require checking.
480 (Same_Elaboration_Scope): Take into account protected types for both
481 entities.
482 (Activate_Elaborate_All_Desirable): New procedure
483
484 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
485 desirable
486
487 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
488 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
489
490 * lib-writ.ads, lib-writ.adb:
491 Implement new AD/ED for Elaborate_All/Elaborate desirable
492 Use new Elaborate_All_Desirable flag in N_With_Clause node
493
494 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
495 N_Free_Statement nodes.
496 Define new class N_Subprogram_Instantiation
497 Add Elaborate_Desirable flag to N_With_Clause node
498 Add N_Delay_Statement (covering two kinds of delay)
499
500 * debug.adb: Introduce d.f flag for compiler
501 Add -da switch for binder
502
503 2005-11-14 Ed Schonberg <schonberg@adacore.com>
504 Cyrille Comar <comar@adacore.com>
505
506 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
507 for task component, in the case of a limited aggregate. The enclosed
508 object declaration will create it earlier. Otherwise, in the case of a
509 nested aggregate, the object may appear in the wrong scope.
510 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
511 (Gen_Assign): If the component being assigned is an array type and the
512 expression is itself an aggregate, wrap the assignment in a block to
513 force finalization actions on the temporary created for each row of the
514 enclosing object.
515 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
516 structures are initialized after all discriminants are set so that
517 they can be accessed even when their offset is dynamic.
518
519 2005-11-14 Robert Dewar <dewar@adacore.com>
520 Hristian Kirtchev <kirtchev@adacore.com>
521
522 * sem_attr.adb: Implement Machine_Rounding attribute
523 (Analyze_Access_Attribute): The access attribute may appear within an
524 aggregate that has been expanded into a loop.
525 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
526 'Terminated whenever the prefix is of a task interface class-wide type.
527 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
528 the prefix is of a task interface class-wide type.
529
530 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
531 to avoid warnings.
532
533 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
534 Remove pragma Inline for [Unaligned_]Valid.
535 Add comments that Valid routines do not work for Vax_Float
536
537 * exp_attr.adb: Implement Machine_Rounding attribute
538
539 * snames.h: Add entry for Machine_Rounding attribute
540
541 2005-11-14 Javier Miranda <miranda@adacore.com>
542 Robert Dewar <dewar@adacore.com>
543 Hristian Kirtchev <kirtchev@adacore.com>
544
545 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
546 and related): For a prefix that is an explicit dereference of an
547 access to unconstrained packed array type, annotate the dereference
548 with an actual subtype so GIGI can make a correct size computation.
549 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
550 'Unrestricted_Access, if the designated type is an interface we
551 add a type conversion to force the displacement of the pointer
552 to the secondary dispatch table.
553 Use Universal_Real instead of Long_Long_Float when we need a high
554 precision float type for the generated code (prevents gratuitous
555 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
556 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
557 'Terminated for task interface class-wide objects. Generate a call to
558 the predefined dispatching routine used to retrieve the _task_id from
559 a task corresponding record.
560 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
561
562 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
563 (Check_Dispatching_Operation): Protect the frontend againts
564 previously detected errors.
565
566 * Makefile.rtl: Add new instantiations of system.fat_gen
567
568 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
569 Change name of instantiated package for better consistency
570 with newly added system.fat_gen instantiations.
571
572 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
573 s-fvagfl.ads: New files.
574
575 2005-11-14 Cyrille Comar <comar@adacore.com>
576 Thomas Quinot <quinot@adacore.com>
577
578 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
579 assignment of a value of a tagged type that has been rewritten to a
580 block statement, it is known by construction that no checks are
581 necessary for the statements within the block: analyze it with checks
582 suppressed.
583 (Expand_N_If_Statement): When killing a dead then-branch in an
584 if-statement that has elsif_parts, recompute the Current_Value node
585 for any entity whose value is known from the condition of the first
586 elsif_part.
587 (Expand_N_Return_Statement): When returning a mutable record, convert
588 the return value into its actual subtype in order to help the backend
589 to return the actual size instead of the maximum. This is another
590 aftermath of not returning mutable records on the sec-stack anymore.
591
592 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
593 handling of error msg for suspicious reverse range iteration.
594 (Check_Possible_Current_Value_Condition): Move declaration from body to
595 spec, to allow this subprogram to be called from exp_ch5.
596
597 2005-11-14 Thomas Quinot <quinot@adacore.com>
598
599 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
600 generate a set of nested array aggregates instead of a single flat
601 aggregate for multi-dimensional arrays.
602
603 2005-11-14 Pascal Obry <obry@adacore.com>
604
605 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
606 by spawnve is a process handle, no need to convert. Add a parameter
607 close to control wether the process handle must be closed.
608 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
609 a process handle, not need to convert.
610 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
611
612 * g-expect.adb: (Kill): Document the new close parameter.
613 (Close): Do not release the process handle in the kill there as
614 waitpid() is using it.
615 (Send_Signal): Release the process handle.
616
617 2005-11-14 Robert Dewar <dewar@adacore.com>
618
619 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
620 need a high precision float type for the generated code (prevents
621 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
622 used).
623
624 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
625 need a high precision float type for the generated code (prevents
626 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
627 used).
628 (Expand_Width_Attribute): In configurable run-time, the attribute is not
629 allowed on non-static enumeration subtypes. Force a load error to emit
630 the correct diagnostic.
631
632 2005-11-14 Thomas Quinot <quinot@adacore.com>
633 Robert Dewar <dewar@adacore.com>
634 Ed Schonberg <schonberg@adacore.com>
635
636 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
637 subtype to compute the size of the designated object at run-time,
638 create such a subtype and store it in the Actual_Designated_Subtype
639 attribute of the N_Free_Statement.
640 Generate itype for classwide designated object in both cases of
641 user-specified storage pool: specific and class-wide, not only in the
642 specific case.
643 Raise CE when trying to set a not null access type object to null.
644 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
645 an explicit loop, because freeze nodes make its position variable.
646
647 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
648 null object.
649
650 2005-11-14 Javier Miranda <miranda@adacore.com>
651
652 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
653 Build_Stream_Procedure): Add the null-excluding attribute to the first
654 formal.
655 This has no semantic meaning under Ada95 mode but it is a
656 requirement under Ada05 mode.
657
658 * par-ch3.adb (P_Access_Definition): Addition of warning message if
659 the null exclusion is used under Ada95 mode
660 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
661 (P_Access_Definition): Remove assertion that forbids the use of
662 the null-exclusion feature in Ada95.
663
664 2005-11-14 Robert Dewar <dewar@adacore.com>
665
666 * impunit.adb: Exclude container helper units not intended for use by
667 users.
668
669 2005-11-14 Ed Schonberg <schonberg@adacore.com>
670
671 * freeze.adb (Freeze_Entity): For an access formal that is an access
672 to subprogram, freeze the anonymous subprogram type at the same time,
673 to prevent later freezing in the wrong scope, such as the enclosing
674 subprogram body.
675 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
676 subprogram whenever available.
677
678 2005-11-14 Arnaud Charlet <charlet@adacore.com>
679
680 PR ada/23732
681 * gnatvsn.ads (Library_Version): Bump to 4.1
682
683 2005-11-14 Robert Dewar <dewar@adacore.com>
684
685 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
686 Storage_Offset to avoid wrap around causing invalid results.
687
688 2005-11-14 Pascal Obry <obry@adacore.com>
689
690 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
691 cross-compiler.
692 (Scan_Bind_Arg): Fail with an error message if -M option is used
693 on a native compiler.
694
695 2005-11-14 Robert Dewar <dewar@adacore.com>
696 Vincent Celier <celier@adacore.com>
697
698 * gprep.adb: Implement -C switch to scan comments
699
700 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
701
702 * scans.ads: Comment updates (including new use of Tok_Comment in
703 preprocessing)
704
705 * opt.ads: Add documentation for flags that are used by gprmake,
706 currently and in the next version of gprmake.
707 (Verbosity_Level): New variable
708 Add Replace_In_Comments switch
709
710 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
711 and -vm.
712 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
713
714 2005-11-14 Arnaud Charlet <charlet@adacore.com>
715
716 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
717 message, friendlier.
718
719 2005-11-14 Robert Dewar <dewar@adacore.com>
720
721 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
722
723 2005-11-14 Doug Rupp <rupp@adacore.com>
724
725 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
726
727 2005-11-14 Robert Dewar <dewar@adacore.com>
728
729 * interfac.ads: Change declarations of IEEE float types so that we no
730 longer need a separate version of this package for VMS.
731
732 2005-11-14 Ed Schonberg <schonberg@adacore.com>
733
734 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
735 internal entity created for the declaration of a child subprogram body
736 with no spec as coming from source, to generate proper cross-reference
737 information.
738
739 2005-11-14 Vincent Celier <celier@adacore.com>
740
741 * make.adb (Compile_Sources): Change verbose message to minimum
742 verbosity level High for "is in an Ada library", "is a read-only
743 library" and "is an internal library",
744 (Create_Binder_Mapping_File): Path name of ALI file for library project
745 must include the library directory, not the object directory.
746 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
747 for new switches -vl, -vm and -vh.
748 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
749 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
750 (Compile_Sources): Do not attempt to compile if an ALI file is missing
751 in a project that is externally built.
752 (Compute_All_Imported_Projects): New procedure
753 (Gnatmake): Check if importing libraries should be regenerated because
754 at least an imported library is more recent.
755 (Initialize): For each project compute the list of the projects it
756 imports directly or indirectly.
757 (Add_Library_Search_Dir): New procedure, used in place of
758 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
759 put in the search paths.
760 (Add_Source_Search_Dir): New procedure, used in place of
761 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
762 put in the search paths.
763 (Mark_Directory): Resolve the absolute path the directory before marking
764 it.
765
766 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
767 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
768 Switch. Do not handle any exception.
769 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
770 so that the switch is recognized as valid.
771 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
772
773 2005-11-14 GNAT Script <nobody@adacore.com>
774
775 * Make-lang.in: Makefile automatically updated
776
777 2005-11-14 Pascal Obry <obry@adacore.com>
778
779 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
780 used.
781 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
782 In both cases the last argument was dropped.
783
784 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
785
786 * namet.h: (Column_Numbe): New type.
787 (Get_Column_Number): Define to sinput__get_column_number.
788 (Instantiation): Define to sinput__instantiation.
789 (Get_Column_Number): Declare.
790 (Instantiation): Likewise.
791
792 2005-11-14 Robert Dewar <dewar@adacore.com>
793
794 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
795 syntax, which could cause compiler hangs.
796
797 2005-11-14 Vincent Celier <celier@adacore.com>
798
799 * prj-ext.adb: Take into account new environment variable
800 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
801 are defined.
802 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
803 normalize its path name, making it absolute and resolving symbolic
804 links, and replace the original if resolved path is different.
805
806 2005-11-14 Vincent Celier <celier@adacore.com>
807
808 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
809 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
810
811 2005-11-14 Emmanuel Briot <briot@adacore.com>
812
813 * prj-pp.adb (Print): Do not output the with statement if the
814 associated name is empty, which happens for virtual extending projects.
815 (Print): Preserve the "extends all" attribute when printing the project.
816
817 * prj-tree.ads (String_Value_Of): Add comment about returned value for
818 a virtual extending project.
819
820 2005-11-14 Ed Schonberg <schonberg@adacore.com>
821
822 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
823 rhs of an assignment even if the type is unconstrained, when the
824 context is non-expanding.
825 In an inlined body, if the context type is private,
826 resolve with its full view, which must be a composite type.
827
828 2005-11-14 Robert Dewar <dewar@adacore.com>
829 Ed Schonberg <schonberg@adacore.com>
830
831 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
832 Do not give obsolescent warning on with of subprogram (since we
833 diagnose calls)
834 (Analyze_With_Clause): Add test for obsolescent package
835 (Install_Context_Clauses): If the unit is the body of a child unit, do
836 not install twice the private declarations of the parents, to prevent
837 circular lists of Use_Clauses in a parent.
838 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
839 compiling body of child unit.
840 Use new class N_Subprogram_Instantiation
841 (Expand_With_Clause): If this is a private with_clause for a child unit,
842 appearing in the context of a package declaration, then the implicit
843 with_clauses generated for parent units are private as well.
844 (License_Check): Do not generate message if with'ed unit is internal
845
846 2005-11-14 Gary Dismukes <dismukes@adacore.com>
847 Ed Schonberg <schonberg@adacore.com>
848 Thomas Quinot <quinot@adacore.com>
849
850 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
851 names are internal, because they will not have a corresponding partner
852 in the actual package.
853 (Analyze_Formal_Package): Move the setting of the formal package spec's
854 Generic_Parent field so that it occurs prior to analyzing the package,
855 to allow proper operation of Install_Parent_Private_Declarations.
856 (Analyze_Package_Instantiation): Set the instantiated package entity's
857 Package_Instantiation field.
858 (Get_Package_Instantiation_Node): Move declaration to package spec.
859 Retrieve the N_Package_Instantiation node when the Package_Instantiation
860 field is present.
861 (Check_Generic_Child_Unit): Within an inlined call, the only possible
862 instantiation is Unchecked_Conversion, for which no parents are needed.
863 (Inline_Instance_Body): Deinstall and record the use_clauses for all
864 parent scopes of a scope being removed prior to inlining an instance
865 body.
866 (Analyze_Package_Instantiation): Do not perform front-end inlining when
867 the current context is itself an instance within a non-instance child
868 unit, to prevent scope stack errors.
869 (Save_References): If the node is an aggregate that is an actual in a
870 call, rewrite as a qualified expression to preserve some type
871 information, to resolve possible ambiguities in the instance.
872 (Instance_Parent_Unit): New global variable to record the ultimate
873 parent unit associated with a generic child unit instance (associated
874 with the existing Parent_Unit_Visible flag).
875 (type Instance_Env): New component Instance_Parent_Unit for stacking
876 parents recorded in the global Instance_Parent_Unit.
877 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
878 stack.
879 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
880 it's not a top-level unit, and only do this if Instance_Parent_Unit is
881 not already set. Replace test of Is_Child_Unit with test of parent's
882 scope against package Standard. Add comments and a ??? comment.
883 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
884 on a child instance parent to test that the parent equals
885 Instance_Parent rather than simply checking that the unit is not a
886 child unit.
887 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
888 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
889 a formal interface are ancestors of the corresponding actual.
890 (Validate_Formal_Interface_Type): Additional legality checks.
891 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
892 interface types with ancestors.
893 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
894 to diagnose attempts to use generic within its own declaration.
895
896 2005-11-14 Ed Schonberg <schonberg@adacore.com>
897 Javier Miranda <miranda@adacore.com>
898
899 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
900 discriminant.
901 (Build_Private_Derived_Type): The entity of the created full view of the
902 derived type does not come from source. If after installing the private
903 declarations of the parent scope the parent is still private, use its
904 full view to construct the full declaration of the derived type.
905 (Build_Derived_Record_Type): Relax the condition that controls the
906 execution of the check that verifies that the partial view and
907 the full view agree in the set of implemented interfaces. In
908 addition, this test now only takes into account the progenitors.
909 (Derive_Interface_Subprograms): No need to derive subprograms
910 of ancestors that are interfaces.
911 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
912 associated code.
913 Change name Is_Package to Is_Package_Or_Generic_Package
914 (Complete_Subprograms_Derivation): Handle the case in which the full
915 view is a transitive derivation of the ancestor of the partial view.
916 (Process_Full_View): Rename local subprogram Find_Interface_In_
917 Descendant to Find_Ancestor_Interface to leave the code more clear.
918 Remove wrong code that avoids the generation of an error message
919 when the immediate ancestor of the partial view is an interface.
920 In addition some minor reorganization of the code has been done to
921 leave it more clear.
922 (Analyze_Type_Declaration): If type has previous incomplete tagged
923 partial view, inherit properly its primitive operations.
924 (Collect_Interfaces): Make public, for analysis of formal
925 interfaces.
926 (Analyze_Interface_Declaration): New procedure for use for regular and
927 formal interface declarations.
928 (Build_Derived_Record_Type): Add support for private types to the code
929 that checks if a tagged type implements abstract interfaces.
930 (Check_Aliased_Component_Type): The test applies in the spec of an
931 instance as well.
932 (Access_Type_Declaration): Clean up declaration of malformed type
933 declared as an access to its own classwide type, to prevent cascaded
934 crash.
935 (Collect_Interfaces): For private extensions and for derived task types
936 and derived protected types, the parent may be an interface that must
937 be included in the interface list.
938 (Access_Definition): If the designated type is an interface that may
939 contain tasks, create Master_Id for it before analyzing the expression
940 of the declaration, which may be an allocator.
941 (Record_Type_Declaration): Set properly the interface kind, for use
942 in allocators, the creation of master id's for task interfaces, etc.
943
944 2005-11-14 Javier Miranda <miranda@adacore.com>
945 Ed Schonberg <schonberg@adacore.com>
946
947 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
948 omitted in case of stream attribute subprograms.
949 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
950 appear immediately after a subprogram body, when there is no previous
951 subprogram declaration.
952 Change name Is_Package to Is_Package_Or_Generic_Package
953 (Process_Formals): A non null qualifier on a non null named access
954 type is not an error, and is a warning only if Redundant_Constructs
955 are flagged.
956
957 2005-11-14 Gary Dismukes <dismukes@adacore.com>
958 Ed Schonberg <schonberg@adacore.com>
959
960 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
961 nested within Analyze_Package_Specification to install the private
962 declarations and use clauses within each of the parent units of a
963 package instance of a generic child package.
964 (Analyze_Package_Specification): When entering a private part of a
965 package associated with a generic instance or formal package, the
966 private declarations of the parent must be installed (by calling new
967 procedure Install_Parent_Private_Declarations).
968 Change name Is_Package to Is_Package_Or_Generic_Package
969 (Preserve_Full_Attributes): For a synchronized type, the corresponding
970 record is absent in a generic context, which does not indicate a
971 compiler error.
972
973 2005-11-14 Ed Schonberg <schonberg@adacore.com>
974
975 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
976 not try to rewrite a renamed stream attribute, because the operations
977 on the type may not have been generated.
978 Handle properly a renaming_as_body generated for a stream operation
979 whose default is abstract because the object type itself is abstract.
980 (Find_Type): If the type is incomplete and appears as the prefix of a
981 'Class reference, it is tagged, and its list of primitive operations
982 must be initialized properly.
983 (Chain_Use_Clauses): When chaining the use clauses that appear in the
984 private declaration of a parent unit, prior to compiling the private
985 part of a child unit, find on the scope stack the proper parent entity
986 on which to link the use clause.
987 (Note_Redundant_Use): Emit a warning when a redundant use clause is
988 detected.
989 (Analyze_Object_Renaming): An attribute reference is not a legal object
990 if it is not a function call.
991
992 2005-11-14 Robert Dewar <dewar@adacore.com>
993 Ed Schonberg <schonberg@adacore.com>
994
995 * sem_eval.adb: Implement d.f flag
996 (Subtype_Statically_Match): A generic actual type has unknown
997 discriminants when the corresponding actual has a similar partial view.
998 If the routine is called to validate the signature of an inherited
999 operation in a child instance, the generic actual matches the full view,
1000
1001 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
1002 Ed Schonberg <schonberg@adacore.com>
1003 Robert Dewar <dewar@adacore.com>
1004 Thomas Quinot <quinot@adacore.com>
1005
1006 * sem_res.adb (Resolve_Call): Provide a better error message whenever
1007 a procedure call is used as a select statement trigger and is not an
1008 entry renaming or a primitive of a limited interface.
1009 (Valid_Conversion): If the operand has a single interpretation do not
1010 remove address operations.
1011 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
1012 statement to inhibit warning.
1013 (Resolve_Unary_Op): Do not produce a warning when
1014 processing an expression of the form -(A mod B)
1015 Use Universal_Real instead of Long_Long_Float when we need a high
1016 precision float type for the generated code (prevents gratuitous
1017 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
1018 (Resolve_Concatenation_Arg): Improve error message when argument is an
1019 ambiguous call to a function that returns an array.
1020 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
1021 there is an implicit operator in the given scope if we are within an
1022 instance: legality check has been performed on the generic.
1023 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
1024 after resolving operand, to avoid false warnings on overloaded calls.
1025
1026 2005-11-14 Ed Schonberg <schonberg@adacore.com>
1027 Javier Miranda <miranda@adacore.com>
1028
1029 PR ada/15604
1030
1031 * sem_type.adb (Covers): In an inlined body, a composite type matches
1032 a private type whose full view is a composite type.
1033 (Interface_Present_In_Ancestor): Protect the frontend against
1034 previously detected errors to ensure that its compilation
1035 with assertions enabled gives the same output that its
1036 compilation without assertions.
1037 (Interface_Present_In_Ancestor): Add support for private types.
1038 Change name In_Actual to In_Generic_Actual (clean up)
1039 (Disambiguate): New predicate In_Actual, to recognize expressions that
1040 appear in the renaming declaration generated for generic actuals, and
1041 which must be resolved in the outer context.
1042
1043 2005-11-14 Robert Dewar <dewar@adacore.com>
1044 Thomas Quinot <quinot@adacore.com>
1045 Hristian Kirtchev <kirtchev@adacore.com>
1046 Ed Schonberg <schonberg@adacore.com>
1047
1048 * sem_util.ads, sem_util.adb: Change name Is_Package to
1049 Is_Package_Or_Generic_Package.
1050 (Check_Obsolescent): New procedure.
1051 (Set_Is_Public): Remove obsolete junk test.
1052 (Set_Public_Status): Do not set Is_Public on an object whose declaration
1053 occurs within a handled_sequence_of_statemets.
1054 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
1055 for a parameterless procedure.
1056 (Enter_Name): Recognize renaming declarations created for private
1057 component of a protected type within protected operations, so that
1058 the source name of the component can be used in the debugger.
1059
1060 2005-11-14 Ed Schonberg <schonberg@adacore.com>
1061 Robert Dewar <dewar@adacore.com>
1062
1063 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
1064 of a generic subprogram are not visible outside the body.
1065 (Set_Warning_Switch): New procedure (code to set warning mode moved
1066 here from Switch.C so that it can be shared by pragma processing.
1067 (Check_References): Special case warning for non-modified non-imported
1068 volatile objects.
1069 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
1070 form with a string literal argument
1071
1072 2005-11-14 Javier Miranda <miranda@adacore.com>
1073
1074 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
1075 anonymous access.
1076 (Write): Addition of "not null" to the anonymous access.
1077 (Read): Addition of "not null" to the anonymous access.
1078 (Write): Addition of "not null" to the anonymous access.
1079
1080 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
1081 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
1082 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
1083 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
1084 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
1085 "not null" to the anonymous access.
1086
1087 2005-11-14 Robert Dewar <dewar@adacore.com>
1088
1089 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
1090 offset values
1091
1092 2005-11-14 Vincent Celier <celier@adacore.com>
1093
1094 * switch.adb (Bad_Switch): New procedure
1095 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
1096 message when in error.
1097
1098 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
1099 Too_Many_Output_Files): Remove declarations, no longer used.
1100 (Scan_Nat): New parameter Switch
1101 (Scan_Pos): Ditto
1102 (Bad_Switch): New procedure
1103
1104 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
1105 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
1106 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
1107 to Osint.Fail. Do not handle any exception.
1108
1109 2005-11-14 Vincent Celier <celier@adacore.com>
1110
1111 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
1112 designates a non existent directory.
1113
1114 2005-11-14 Robert Dewar <dewar@adacore.com>
1115
1116 * xgnatugn.adb: Replace invalid membership test by 'Valid
1117
1118 2005-11-14 Vincent Celier <celier@adacore.com>
1119
1120 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
1121 there is no object directory.
1122
1123 2005-11-14 Robert Dewar <dewar@adacore.com>
1124
1125 * usage.adb: Minor adjustment to output format, use nn instead of nnn
1126 (so that -gnateInnn does not run into next column)
1127
1128 2005-11-14 Ed Falis <falis@adacore.com>
1129
1130 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
1131 "constrained"
1132
1133 2005-11-14 Cyrille Comar <comar@adacore.com>
1134
1135 * s-chepoo.ads: Add comments on Dereference.
1136 Remove unnecessary inherited abstract primitives.
1137 Cosmetic cleanup.
1138
1139 2005-11-14 Robert Dewar <dewar@adacore.com>
1140
1141 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
1142 node parameter, not needed, since it is available as Declaration_Node.
1143
1144 2005-11-14 Geert Bosch <bosch@adacore.com>
1145
1146 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
1147 grammatically correct.
1148
1149 2005-11-14 Vincent Celier <celier@adacore.com>
1150
1151 * s-fileio.ads: Correct spelling error in comment
1152
1153 2005-11-14 Cyrille Comar <comar@adacore.com>
1154 Robert Dewar <dewar@adacore.com>
1155 Vincent Celier <celier@adacore.com>
1156 Ben Brosgol <brosgol@adacore.com>
1157 Jose Ruiz <ruiz@adacore.com>
1158 Pascal Obry <obry@adacore.com>
1159
1160 * gnat_ugn.texi:
1161 Document that -fstack-check is needed for strict compliance with the
1162 Ada 95 Reference Manual.
1163 Correct reference to VAX systems to meet HP guidelines
1164 Add documentation for new gnatmake switches -vl, -vm and -vh
1165 Replace DEC Ada by HP Ada
1166 Replace DIGITAL by HP
1167 Remove empty section on tools in compatibility section
1168 Clarify the Windows convention semantics.
1169 Document the Win32 calling convention.
1170 The Stdcall, Win32 and DLL convention are synonyms.
1171 Add a note in -gnatR description about zero size record components
1172 Note on new >= and <= warnings for -gnatwc
1173 Document that equal sign after -gnatm is optional.
1174 Note that strip is working fine on DLL built with a Library
1175 Project. The restriction apply only to DLL built with gnatdll.
1176 Update section about the way to debug a DLL.
1177 Update information about the DLL convention.
1178 Document -C switch for gnatprep
1179 Document new attribute Library_ALI_Dir
1180 Update elaboration doc to include implicit Elaborate pragmas now
1181 generated for subprogram instantiations.
1182 Document limitation on executable names that include spaces for --GCC,
1183 --GNATBIND, and --GNATLINK switches.
1184 Document that -w causes -gnatws to be added at start of gcc switches
1185
1186 * gnat_rm.texi: Document that -mieee is needed for generating infinite
1187 and NaN values in case of overflow on machines that are not fully
1188 compliant with the IEEE floating-point standard.
1189 Create a section describing the set of compiler options needed for
1190 strict compliance with the Ada 95 Reference Manual.
1191 Add documentation for pragma Obsolescent applied to a package
1192 Clarify potential issues of mixed language programs related to the
1193 I/O buffering enabling in the elaboration of the GNAT runtime.
1194 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
1195 This documentation only patch adds extra documentsion for pragma
1196 Restrictions (No_Elaboration_Code), explaining why it is not possible
1197 to document this restriction in terms of allowed source constructs.
1198 Document string literal form of pragma Warnings
1199 Document new attribute Library_ALI_Dir
1200 Add documentation on stable attributes in project files that was missing
1201
1202 * gnat-style.texi: Indicate that paragraphs within a single comment
1203 should be separated by empty comment lines
1204
1205 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
1206 /05 respectively)
1207
1208 * bindusg.adb: Minor cleanup, put -m before -M for consistency
1209
1210 2005-11-14 Robert Dewar <dewar@adacore.com>
1211
1212 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
1213 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
1214 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
1215 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
1216 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
1217 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
1218 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
1219 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
1220 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
1221 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
1222 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
1223 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
1224 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
1225 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
1226 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
1227 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
1228 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
1229 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
1230 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
1231 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
1232 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
1233 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
1234 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
1235 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
1236 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
1237 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
1238 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
1239 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
1240 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
1241 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
1242 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
1243 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
1244 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
1245 system-interix.ads, system-solaris-sparc.ads,
1246 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
1247 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
1248 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
1249 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
1250 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
1251 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
1252 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
1253 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
1254 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
1255 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
1256 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
1257 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
1258 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
1259 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
1260 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
1261 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
1262 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
1263 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
1264 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
1265 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
1266 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
1267 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
1268 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
1269 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
1270 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
1271 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
1272 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
1273 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
1274 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
1275 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
1276 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
1277 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
1278 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
1279 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
1280 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
1281 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
1282 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
1283 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
1284 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
1285 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
1286 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
1287 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
1288 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
1289 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
1290 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
1291 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
1292 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
1293 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
1294 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
1295 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
1296 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
1297 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
1298 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
1299 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
1300 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
1301 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
1302 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
1303 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
1304 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
1305 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
1306 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
1307 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
1308 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
1309 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
1310 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
1311 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
1312 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
1313 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
1314 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
1315 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
1316 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
1317 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
1318 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
1319 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
1320 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
1321 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
1322 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
1323 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
1324 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
1325 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
1326 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
1327 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
1328 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
1329 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
1330 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
1331 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
1332 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
1333 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
1334 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
1335 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
1336 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
1337 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
1338 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
1339 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
1340 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
1341 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
1342 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
1343 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
1344 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
1345 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
1346 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
1347 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
1348 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
1349 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
1350 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
1351 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
1352 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
1353 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
1354 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
1355 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
1356 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
1357 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
1358 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
1359 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
1360 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
1361 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
1362 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
1363 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
1364 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
1365 a-numaux-darwin.ads, a-numaux-darwin.adb,
1366 a-swuwha.ads, a-stunha.ads: Minor reformatting
1367
1368 2005-11-14 Robert Dewar <dewar@adacore.com>
1369
1370 PR ada/18434
1371 * osint-m.adb: Add pragma Elaborate_All for Osint
1372
1373 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
1374
1375 PR ada/23995
1376 * trans.c (call_to_gnu): Restore statement lost in translation.
1377
1378 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
1379
1380 * init.c: Use the Linux-specific section for the IA-64/Linux target.
1381 (__gnat_adjust_context_for_raise): Add conditional code so that the
1382 IA-64 is also supported.
1383
1384 2005-11-03 James E Wilson <wilson@specifix.com>
1385
1386 PR ada/23427
1387 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
1388 TREE_OVERFLOW check.
1389
1390 2005-09-21 Olivier Hainque <hainque@adacore.com>
1391
1392 PR ada/22418
1393 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
1394 as we create them to store a size in bits.
1395
1396 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
1397
1398 PR ada/21937
1399 PR ada/22328
1400 PR ada/22381
1401 PR ada/22383
1402 PR ada/22419
1403 PR ada/22420
1404 * utils2.c (build_return_expr): New helper function.
1405 * gigi.h (build_return_expr): Declare it.
1406 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
1407 of manually building the RETURN_EXPR tree.
1408 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
1409 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
1410 build_binary_op for the "target pointer" case. Use build_return_expr
1411 instead of manually building the RETURN_EXPR tree.
1412
1413 2005-09-16 Laurent GUERBY <laurent@guerby.net>
1414
1415 PR ada/23788
1416 * s-tpinop.ads: Make this unit Preelaborate.
1417
1418 2005-09-16 Andreas Jaeger <aj@suse.de>
1419
1420 * socket.c: Add string.h for memcpy.
1421
1422 2005-09-05 Arnaud Charlet <charlet@adacore.com>
1423
1424 * dec-io.ads, dec-io.adb: Removed, no longer used.
1425
1426 2005-09-01 Arnaud Charlet <charlet@adacore.com>
1427
1428 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
1429
1430 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
1431 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
1432 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
1433 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
1434 dependent units are Preelaborate.
1435 (Initialize): Call Interrupt_Managemeent.Initialize and
1436 OS_Primitives.Initialize to ensure proper initialization of this unit.
1437 Remove use of System.Soft_Links
1438 Make this unit Preelaborate.
1439
1440 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
1441 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
1442 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
1443 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
1444 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
1445 s-tratas.ads, s-tasinf.ads: Minor reformatting.
1446 Add pragma Preelaborate, since these packages are suitable for this
1447 categorization.
1448 Update comments.
1449
1450 * s-traent-vms.ads, s-intman-dummy.adb,
1451 s-taprop-dummy.adb: Make this unit Preelaborate.
1452
1453 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
1454 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
1455 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
1456 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
1457 s-intman-solaris.adb, s-intman-irix-athread.adb,
1458 s-intman-irix.adb: Mark this unit Preelaborate.
1459 (Initialize): New procedure.
1460 Update comments.
1461
1462 * s-taspri-linux.ads: Removed.
1463
1464 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
1465 as done by other implementations (e.g. posix).
1466
1467 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
1468 responsible for deferring abort.
1469 Mark this unit Preelaborate.
1470
1471 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
1472 proper initialization of the tasking run-time.
1473
1474 * s-tasdeb.ads: Mark this unit Preelaborate.
1475 (Known_Tasks): Add explicit default value to avoid elaboration code.
1476
1477 * s-inmaop-vms.adb (Elaboration code): Add call to
1478 Interrupt_Management.Initialize since the elaboration code depends on
1479 proper initialization of this package.
1480
1481 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
1482 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
1483 s-osprim-posix.adb: Make this unit Preelaborate.
1484
1485 * a-calend.adb: Add call to OS_Primitives.Initialize
1486
1487 * a-elchha.adb: Update use of Except.Id.Full_Name.
1488 Minor reformatting.
1489 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
1490
1491 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
1492 Move with clauses outside Warnings Off now that dependent units are
1493 Preelaborate.
1494 Use raise xxx with "..."; Ada 2005 form.
1495
1496 * a-taside.ads, a-taside.adb:
1497 Remove some dependencies, to make it easier to make this unit truly
1498 Preelaborate.
1499 Rewrite some code to be conformant with Preelaborate rules.
1500
1501 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
1502 marked Preelaborate in the future.
1503
1504 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
1505 these units Preelaborate.
1506
1507 * s-exctab.adb: Update use of Except.Id.Full_Name.
1508
1509 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
1510 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
1511 Set_Exc_Stack_Addr): Removed, no longer used.
1512 Remove reference to *Machine_State_Addr*, no longer needed.
1513
1514 * s-stalib.ads: Mark this unit as Preelaborate[_05].
1515 (Exception_Data): Full_Name is now a System.Address so that this unit
1516 can be made Preelaborate.
1517 Clean up/simplify code thanks to Full_Name being a System.Address.
1518 Remove obsolete pragma Suppress (All_Checks), no longer needed.
1519
1520 * s-taskin.ads, s-taskin.adb:
1521 Move with clauses outside Warnings Off now that dependent units are
1522 Preelaborate.
1523 Make this unit Preelaborate.
1524 (Initialize): New proceduure, replace elaboration code and makes the
1525 set up of the tasking run-time cleaner.
1526 (Detect_Blocking): Now a function instead of a deferred boolean, to
1527 obey Preelaborate rules.
1528
1529 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
1530 soft links, no longer used.
1531
1532 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
1533 packages are suitable for this categorization.
1534
1535 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
1536 since we compile run-time sources in Ada 2005 mode.
1537 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
1538 avoid having s-taprop*.adb depend on s-soflin and to avoid code
1539 duplication.
1540 Remove reference to *Machine_State_Addr*, no longer needed.
1541
1542 2005-09-01 Arnaud Charlet <charlet@adacore.com>
1543
1544 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
1545 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
1546 Remove reference to System.Exceptions.
1547
1548 * s-mastop-x86.adb: Removed, no longer used.
1549
1550 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
1551
1552 * a-excach.adb: Minor reformatting.
1553
1554 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
1555 instead fix new warnings that were hidden by this change.
1556 (AAA, ZZZ): Removed, replaced by...
1557 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
1558 are used instead of constants, to help make Ada.Exception truly
1559 preelaborate.
1560 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
1561 Raise_Storage_Error): File is now a System.Address, to simplify code.
1562 (Elab code): Removed, no longer used.
1563 (Null_Occurrence): Remove Warnings Off and make this construct
1564 preelaborate.
1565 Remove code related to front-end zero cost exception handling, since
1566 it is no longer used.
1567 Remove -gnatL/-gnatZ switches.
1568
1569 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
1570 Update use of Except.Msg.
1571
1572 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
1573 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
1574 to front-end zero cost exception handling, since it is no longer used.
1575 Remove -gnatL/-gnatZ switches.
1576
1577 * lib-writ.ads: Minor reformatting
1578 Remove doc of UX
1579
1580 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
1581
1582 * Make-lang.in: Remove references to s-except.ads
1583
1584 * s-except.ads: Removed, no longer used.
1585
1586 * s-mastop.ads, s-mastop.adb:
1587 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
1588 Remove reference to System.Exceptions.
1589
1590 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
1591 switch-b.adb: Remove code related to front-end zero cost exception
1592 handling, since it is no longer used.
1593 Remove -gnatL/-gnatZ switches.
1594
1595 2005-09-01 Robert Dewar <dewar@adacore.com>
1596 Gary Dismukes <dismukes@adacore.com>
1597 Javier Miranda <miranda@adacore.com>
1598
1599 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
1600 type by valid test and generate warning.
1601 (Tagged_Membership): Generate call to the run-time
1602 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
1603 Change formal name Subtype_Mark to Result_Definition in several calls to
1604 Make_Function_Specification.
1605 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
1606 check for proper accessibility of the operand of a class-wide allocator.
1607 The check can be left out if checks are suppressed or if the expression
1608 has a specific tagged type whose level is known to be safe.
1609
1610 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
1611 generates the run-time check associated with null-excluding entities.
1612 (Expand_N_Return_Statement): Add tests to determine if the accessibility
1613 check on the level of the return expression of a class-wide function
1614 can be elided. The check usually isn't needed if the expression has a
1615 specific type (unless it's a conversion or a formal parameter). Also
1616 add a test for whether accessibility checks are suppressed. Augment
1617 the comments to describe the conditions for performing the check.
1618
1619 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
1620 Javier Miranda <miranda@adacore.com>
1621 Gary Dismukes <dismukes@adacore.com>
1622 Ed Schonberg <schonberg@adacore.com>
1623
1624 * a-tags.adb (IW_Membership): Give support to
1625 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
1626 subprogram has been extended to look for the tag in the ancestors tag
1627 table.
1628 Update the structure of the GNAT Dispatch Table to reflect the
1629 additional two tables used in dispatching selects.
1630 Introduce appropriate array types and record components in
1631 Type_Specific_Data to reflect the two tables.
1632 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
1633 the TSD of a tag, indexed by position.
1634 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
1635 operation kind in the TSD of a tag, indexed by position.
1636
1637 * a-tags.ads: Introduce an enumeration type to capture different
1638 primitive operation kinds. Define a constant reflecting the number of
1639 predefined primitive operations.
1640 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
1641 of an entry wrapper.
1642 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
1643 callable entity of a primitive operation.
1644
1645 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
1646 primitive operations used in dispatching selects for limited
1647 interfaces, limited tagged, task and protected types what implement a
1648 limited interface.
1649 (Freeze_Type): Generate the bodies of the primitive operations used in
1650 dispatching selects for limited tagged, task and protected types that
1651 implement a limited interface. Generate statements to populate the two
1652 auxiliary tables used for dispatching in select statements.
1653 (Freeze_Record_Type): Add call to initialize the dispatch table entries
1654 associated with predefined interface primitive operations.
1655 (Build_Dcheck_Function): Change Set_Subtype_Mark to
1656 Set_Result_Definition.
1657 (Build_Variant_Record_Equality): Change Subtype_Mark to
1658 Result_Definition.
1659 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
1660 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
1661 (Build_Assignment): Simplify the code that adds the run-time-check.
1662 (Expand_N_Object_Declaration): Code cleanup.
1663
1664 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
1665 entries when there is a protected type that implements a limited
1666 interface.
1667
1668 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
1669 common routines used in expansion of dispatching selects.
1670 (Add_Private_Declarations): Select the appropriate protection type when
1671 there is a protected type that implements a limited interface.
1672 (Build_Parameter_Block): Generate a wrapped parameter block.
1673 (Build_Protected_Subprogram_Body): Select the appropriate type for
1674 locking entries when there is a protected type that implements a
1675 limited interface.
1676 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
1677 classified as entry wrappers.
1678 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
1679 asynchronous selects.
1680 (Expand_N_Conditional_Entry_Call): Add support for expansion of
1681 dispatching conditional selects.
1682 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
1683 protection when there is a protected type that implements limited
1684 interfaces.
1685 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
1686 timed selects.
1687 (Extract_Dispatching_Call): Extract the entity of the name of a
1688 dispatching call, the object parameter, actual parameters and
1689 corresponding formals.
1690 (Make_Initialize_Protection): Correct logic of protection initialization
1691 when there is a protected type that implements a limited interface.
1692 (Parameter_Block_Pack): Populate a wrapped parameter block with the
1693 values of actual parameters.
1694 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
1695 block and assign them to the original actual parameters.
1696
1697 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
1698 (Build_Protected_Sub_Specification): Change the type and name of the
1699 last formal to account for the increased variety of protection modes.
1700
1701 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
1702 entities. Used to save the value of the Is_Hidden attribute when the
1703 limited-view is installed.
1704 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
1705 the attribute of procedures classified as entry wrappers.
1706 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
1707 entity of a primitive wrapper.
1708 (Write_Entity_Flags): Output the name and value of the
1709 Is_Primitive_Wrapper attribute.
1710 (Write_Field27_Name): Output the name and entity of the field Wrapped_
1711 Entity.
1712 (Underlying_Type): If we have an incomplete entity that comes from
1713 the limited view then we return the Underlying_Type of its non-limited
1714 view if it is already available.
1715 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
1716 including operators.
1717 (Write_Field26_Name): Add entry for Overridden_Operation
1718 (Overridden_Operation): New attribute of functions and procedures.
1719
1720 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
1721 predefined position in the dispatch table for the primitive operations
1722 used in dispatching selects.
1723 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
1724 predefined primitive operations and replace it with
1725 Default_Prim_Op_Count.
1726 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
1727 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
1728 the names of the generated primitive operations used in dispatching
1729 selects.
1730 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
1731 case of abstract interface types. They will be inherit by the objects
1732 implementing the interface.
1733 (Make_DT): There is no need to inherit the dispatch table of the
1734 ancestor interface for the elaboration of abstract interface types.
1735 The dispatch table will be inherited by the object implementing the
1736 interface.
1737 (Copy_Secondary_DTs): Add documentation.
1738 (Validate_Position): Improve this static check in case of
1739 aliased subprograms because aliased subprograms must have
1740 the same position.
1741 (Init_Predefined_Interface_Primitives): New subprogram that initializes
1742 the entries associated with predefined primitives of all the secondary
1743 dispatch tables.
1744 (Build_Anonymous_Access_Type): Removed.
1745 (Expand_Interface_Actuals): With the previous cleanup there is no need
1746 to build an anonymous access type. This allows further cleanup in the
1747 code generated by the expander.
1748 (Expand_Interface_Conversion): If the actual is an access type then
1749 build an internal function to handle the displacement. If the actual
1750 is null this function returns null because no displacement is
1751 required; otherwise performs a type conversion that will be
1752 expanded in the code that returns the value of the displaced actual.
1753 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
1754 conversions that have no effect in the generated code because no
1755 displacement is required. Code cleanup; use local variables to
1756 avoid repeated calls to the subprogram directly_designated_type().
1757
1758 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
1759 Classify the primitive operations used in dispatching selects as
1760 predefined.
1761 (Implements_Limited_Interface): Determine whether some type either
1762 directly implements a limited interface or extends a type that
1763 implements a limited interface.
1764 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
1765 (Expand_Subtype_From_Expr): Do not build actual subtype if the
1766 expression is limited.
1767 (Find_Interface_Tag): Add code to handle class-wide types and
1768 entities from the limited-view.
1769
1770 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
1771 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
1772 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
1773 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
1774 Set_Prim_Op_Kind.
1775
1776 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
1777 of procedure name or prefix that appears as a trigger in a triggering
1778 alternative.
1779
1780 * uintp.ads: Introduce constants Uint_11 and Uint_13.
1781
1782 2005-09-01 Arnaud Charlet <charlet@adacore.com>
1783
1784 * s-tataat.adb, a-tasatt.adb:
1785 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
1786
1787 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
1788 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
1789 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
1790 longer used.
1791
1792 2005-09-01 Arnaud Charlet <charlet@adacore.com>
1793 Jose Ruiz <ruiz@adacore.com>
1794
1795 * s-taprop-vxworks.adb:
1796 Move with clauses outside Warnings Off now that dependent units are
1797 Preelaborate.
1798 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
1799 initialization of this unit.
1800 (Specific): Add new procedures Initialize and Delete so that this
1801 package can be used for VxWorks 5.x and 6.x
1802 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
1803 differences between VxWorks 5.x and 6.x
1804 Minor reformatting.
1805 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
1806 caller.
1807 Use only Preelaborate-compatible constructs.
1808
1809 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
1810 Primitives.Operations.
1811 (Delete, Initialize): New procedures.
1812
1813 * s-osinte-vxworks.adb: Body used to handle differences between
1814 VxWorks 5.x and 6.x
1815 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
1816
1817 * s-osinte-vxworks.ads: Minor reformatting.
1818 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
1819 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
1820 and 6.
1821 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
1822 between Vxworks 5 and 6.
1823 (taskLock, taskUnlock): Removeed, no longer used.
1824
1825 * adaint.c: The wait.h header is not located in the sys directory on
1826 VxWorks when using RTPs.
1827 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
1828 using RTPs.
1829 (__gnat_dup): dup is available on Vxworks when using RTPs.
1830 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
1831
1832 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
1833
1834 * expect.c: The wait.h header is not located in the sys directory on
1835 VxWorks when using RTPs.
1836
1837 2005-09-01 Thomas Quinot <quinot@adacore.com>
1838
1839 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
1840
1841 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
1842
1843 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
1844 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1845 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
1846 g-soccon-freebsd.ads: Add new constants:
1847 IP_MULTICAST_IF
1848 SO_RCVTIMEO/SO_SNDTIMEO
1849 IOV_MAX
1850
1851 * gen-soccon.c:
1852 Move all target-specific file inclusions and macro definitions to
1853 gsocket.h, in order to ensure that any C code in socket.c will see a
1854 set of constants that is consistent with the contents of g-soccon.ads.
1855
1856 * gsocket.h: Code imported from gen-soccon.c:
1857 Move all target-specific file inclusions and macro definitions to
1858 gsocket.h, in order to ensure that any C code in socket.c will see a set
1859 of constants that is consistent with the contents of g-soccon.ads.
1860 This change also makes gen-soccon self-contained (removing dependencies
1861 upon GCC internal headers).
1862
1863 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
1864 iovecs at a time.
1865 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
1866
1867 * socket.c: Minor reformatting.
1868
1869 2005-09-01 Ed Schonberg <schonberg@adacore.com>
1870 Thomas Quinot <quinot@adacore.com>
1871
1872 * fname-sf.adb, mlib-tgt.ads,
1873 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
1874 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
1875 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
1876 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
1877 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
1878 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
1879 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
1880 makegpr.adb: Remove redundant use_clauses.
1881
1882 2005-09-01 Arnaud Charlet <charlet@adacore.com>
1883
1884 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
1885 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
1886 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
1887 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
1888 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
1889 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
1890 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
1891 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
1892 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
1893 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
1894 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
1895 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
1896 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
1897 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
1898 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
1899 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
1900 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
1901 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
1902 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
1903 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
1904 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
1905 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
1906 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
1907 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
1908 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
1909 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
1910 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
1911 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
1912 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
1913 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
1914 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
1915 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
1916 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
1917 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
1918 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
1919 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
1920 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
1921 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
1922 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
1923 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
1924 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
1925 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
1926 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
1927 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
1928 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
1929 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
1930 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
1931 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
1932 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
1933 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
1934 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
1935 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
1936 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
1937 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
1938 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
1939 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
1940 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
1941 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
1942 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
1943 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
1944 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
1945 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
1946 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
1947 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
1948 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
1949 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
1950 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
1951 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
1952 and always use the no parameter form for consistency.
1953
1954 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
1955
1956 2005-09-01 Robert Dewar <dewar@adacore.com>
1957
1958 * binde.adb: Minor reformatting
1959 (Find_Elab_Order): Output warning if -p used with static elab order
1960
1961 2005-09-01 Robert Dewar <dewar@adacore.com>
1962
1963 * checks.adb (Check_Needed): New procedure, deals with removing checks
1964 based on analysis of short-circuited forms. Also generates warnings for
1965 improper use of non-short-circuited forms.
1966 Code clean ups.
1967
1968 2005-09-01 Robert Dewar <dewar@adacore.com>
1969
1970 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
1971 with 'Valid tests.
1972
1973 2005-09-01 Robert Dewar <dewar@adacore.com>
1974
1975 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
1976 spec.
1977 Implement new insertion char < (conditional warning)
1978 * errutil.adb, erroutc.adb: Implement new insertion char <
1979 (conditional warning).
1980 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
1981 (Error_Msg_Warn): New variable for < insertion char.
1982 * prj-nmsc.adb: Implement new errout insertion char < (conditional
1983 warning).
1984 (Check_For_Source): Change value of Source_Id only after the current
1985 source has been dealt with.
1986
1987 2005-09-01 Robert Dewar <dewar@adacore.com>
1988 Doug Rupp <rupp@adacore.com>
1989
1990 * exp_attr.adb: Handle vax fpt for 'Valid attribute
1991 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
1992 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
1993 (Valid_D, Valid_F, Valid_G): New functions
1994
1995 2005-09-01 Ed Schonberg <schonberg@adacore.com>
1996 Hristian Kirtchev <kirtchev@adacore.com>
1997 Javier Miranda <miranda@adacore.com>
1998
1999 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
2000 from object notation, the original node is unanalyzed and carries no
2001 semantic information, so that accessiblity checks must be performed on
2002 the type of the actual itself.
2003 (Expand_N_Subprogram_Declaration): Change last actual parameter for
2004 compatibility with Build_Protected_Sub_Specification.
2005 (Check_Overriding_Inherited_Interfaces): Add suport to handle
2006 overloaded primitives.
2007 (Register_Interface_DT_Entry): Use the new name of the formal
2008 the the calls to Expand_Interface_Thunk
2009
2010 * exp_dbug.ads: Augment comments on encoding of protected types to
2011 include the generation of dispatching subprograms when the type
2012 implements at least one interface.
2013
2014 * lib.ads: Extend information in Load_Stack to include whether a given
2015 load comes from a Limited_With_Clause.
2016
2017 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
2018 whether a potential circularity is harmless, because it includes units
2019 loaded through a limited_with clause. Extends previous treatment which
2020 did not handle properly arbitrary combinations of limited and
2021 non-limited clauses.
2022
2023 2005-09-01 Nicolas Setton <setton@adacore.com>
2024
2025 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
2026 to be encoded as typ___XBLU_lowerbound__upperbound instead of
2027 typ___XB_lowerbound__upperbound.
2028
2029 2005-09-01 Thomas Quinot <quinot@adacore.com>
2030
2031 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
2032 dummy access formal for RACW/RAS TypeCode TSS.
2033 (Build_TypeCode_Call): Do not generate dummy null access actual for
2034 calls to the TypeCode TSS.
2035
2036 2005-09-01 Ed Schonberg <schonberg@adacore.com>
2037
2038 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
2039 fully qualified name, to distinguish instances with the same local name.
2040
2041 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
2042 fully qualified.
2043
2044 2005-09-01 Robert Dewar <dewar@adacore.com>
2045
2046 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
2047 packed arrays.
2048
2049 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
2050
2051 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
2052 (Free): New deallocation procedure for filter elements
2053 (Close): Deallocate any existing filter for the concerned connection
2054
2055 2005-09-01 Laurent Pautet <pautet@adacore.com>
2056
2057 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
2058 position set is provided, we compute one in order to reduce the maximum
2059 length of the keys. This computation first selects a character
2060 position between 1 and the minimum length of the keys in order to
2061 avoid reducing one of the keys to an empty string.
2062 (Initialize, Compute): When the ratio V to K is too low, the algorithm
2063 does not converge. The initialization procedure now comes with a
2064 maximum number of iterations such that when exceeded, an exception is
2065 raised in Compute. The user can initialize this ratio to another value
2066 and try again
2067 Reformating and updated headers.
2068
2069 2005-09-01 Javier Miranda <miranda@adacore.com>
2070
2071 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
2072 that given an entity T creates and returns an Itype that duplicates the
2073 contents of T. The returned Itype has the null-exclusion
2074 attribute set to True, and its Etype attribute references T
2075 to keep the association between the two entities.
2076 Update copyright notice
2077
2078 * sem_aggr.adb (Check_Can_Never_Be_Null,
2079 Aggregate_Constraint_Checks, Resolve_Aggregate,
2080 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
2081
2082 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
2083
2084 2005-09-01 Gary Dismukes <dismukes@adacore.com>
2085 Robert Dewar <dewar@adacore.com>
2086 Hristian Kirtchev <kirtchev@adacore.com>
2087
2088 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
2089 Result_Definition.
2090
2091 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
2092 function specs.
2093 Call Set_Result_Definition instead of Set_Subtype_Mark.
2094 (P_Subprogram_Specification): Add parsing of anonymous access result
2095 plus null exclusions. Call Set_Result_Definition instead of
2096 Set_Subtype_Mark.
2097
2098 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
2099 (P_Access_Type_Definition): Add parsing for an anonymous access result
2100 subtype, plus parsing for null exclusions. Call Set_Result_Definition
2101 instead of Set_Subtype_Mark.
2102
2103 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
2104 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
2105 (Result_Definition): New function for N_Function_Specifications.
2106 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
2107 N_Function_Specification.
2108 (Set_Null_Exclusion_Present): Allow this flag for
2109 N_Function_Specification.
2110 (Set_Result_Definition): New procedure for N_Function_Specifications.
2111 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
2112 and N_Function_Specification.
2113
2114 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
2115 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
2116 Add support for LIMITED NEW for Ada 2005 AI-419
2117 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
2118 syntax for anonymous access results.
2119 Replace Subtype_Mark field by Result_Definition in
2120 N_Function_Specification and N_Access_Definition specs.
2121 Add Null_Exclusion_Present to spec of N_Function_Specification.
2122 (Result_Definition): New function for N_Function_Specification and
2123 N_Access_Function_Definition.
2124 (Set_Result_Definition): New procedure for N_Function_Specification and
2125 N_Access_Function_Definition.
2126
2127 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
2128 Result_Definition for cases of N_Access_Function_Definition and
2129 N_Function_Specification.
2130 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
2131
2132 2005-09-01 Vincent Celier <celier@adacore.com>
2133
2134 * lib-writ.adb: Update Copyright notice
2135 (Write_With_Lines): On platforms where file names are case-insensitive,
2136 record the file names in lower case.
2137 (Write_ALI): For D lines, on platforms where file names are
2138 case-insensitive, record the file names in lower case.
2139
2140 2005-09-01 Ed Schonberg <schonberg@adacore.com>
2141 Emmanuel Briot <briot@adacore.com>
2142
2143 * lib-xref.adb (Output_Overridden_Op): Display information on
2144 overridden operation.
2145
2146 * lib-xref.ads: Add documentation on overridden operations.
2147
2148 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
2149 information.
2150
2151 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
2152 overriding entity information.
2153
2154 2005-09-01 Vincent Celier <celier@adacore.com>
2155
2156 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
2157 including those that are inherited.
2158
2159 2005-09-01 Robert Dewar <dewar@adacore.com>
2160
2161 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
2162
2163 * par-prag.adb: Implement new pragma Debug_Policy
2164
2165 * sem_prag.adb Implement new pragma Debug_Policy
2166 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
2167 Component_Size attribute specification. Give warning for ignored pragma
2168 Pack.
2169
2170 * snames.h, snames.ads, snames.adb: Introduce entries in
2171 Preset_Names for Name_Disp_Asynchronous_Select,
2172 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
2173 Name_Disp_Timed_Select.
2174 New pragma Debug_Policy
2175
2176 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
2177 explicitly.
2178 Switch -gnata also sets Debug_Pragmas_Enabled
2179
2180 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
2181 handle an explicit -gnata when compiling predefined files.
2182
2183 2005-09-01 Vincent Celier <celier@adacore.com>
2184
2185 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
2186 directories of projects that have no Ada sources.
2187
2188 2005-09-01 Robert Dewar <dewar@adacore.com>
2189
2190 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
2191 (makes a difference for wide characters)
2192
2193 * widechar.adb, widechar.ads:
2194 Add Wide_Char_Byte_Count feature to count chars vs bytes
2195
2196 2005-09-01 Thomas Quinot <quinot@adacore.com>
2197 Ed Schonberg <schonberg@adacore.com>
2198 Robert Dewar <dewar@adacore.com>
2199
2200 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
2201 'Address attribute reference with an overloaded prefix, use the
2202 location of the prefix (not the location of the attribute reference) as
2203 the error location.
2204 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
2205 a function renaming thereof, is a valid prefix for 'Size (where it is
2206 intepreted as a function call).
2207 (Statically_Denotes_Entity): New predicate to determine whether the
2208 prefix of an array attribute can be considered static.
2209
2210 PR ada/9087
2211 (Eval_Attr): Fix failure to evaluate Component_Size for
2212 unconstrained arrays (resulted in wrong value in packed case, since
2213 back end cannot handle this case)
2214
2215 2005-09-01 Robert Dewar <dewar@adacore.com>
2216
2217 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
2218 error msgs for most common cases.
2219 Use new errout insertion char < (conditional warning)
2220
2221 2005-09-01 Javier Miranda <miranda@adacore.com>
2222 Ed Schonberg <schonberg@adacore.com>
2223
2224 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
2225 become local to the whole package.
2226 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
2227 the package was already analyzed the new algorithm "replaces" the
2228 real entities by the shadow ones. This is required to ensure that
2229 the order of these entities in the homonym chains does not change;
2230 otherwise we can have undefined references at linking time because
2231 in case of conflicts the external name of the entities will have
2232 a suffix that depends on the order of the entities in the chain.
2233 (Remove_Limited_With_Clause): Complementary code that completes the
2234 new algorithm and replaces the shadow entities by the real ones.
2235 (Install_Limited_Withed_Unit): When unchaining entities before the
2236 installation of the shadow entities, only regular entities of the
2237 public part must be taken into account. This is required to
2238 keep this routine in synch with the work done by Remove_Limited_
2239 With_Clause
2240 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
2241 even if unit is analyzed, because the analysis of the unit is
2242 idempotent in any case, and the limited view of the unit may have to
2243 be installed for proper visibility.
2244 (Expand_Limited_With_Clause): Even if the unit in the implicit
2245 with_clause has been analyzed already, a limited view of the package
2246 must be built for the current context, if it does not exist yet.
2247
2248 2005-09-01 Ed Schonberg <schonberg@adacore.com>
2249 Javier Miranda <miranda@adacore.com>
2250 Gary Dismukes <dismukes@adacore.com>
2251
2252 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
2253 defining entity for the instance body, make a new defining identifier
2254 rather than copying the entity of the spec, to prevent accidental
2255 sharing of the entity list.
2256 (Check_Private_View): When exchanging views of private types, build the
2257 list of exchanged views as a stack, to ensure that on exit the exchanges
2258 are undone in the proper order.
2259 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
2260 Restore the compilation environment in case of instantiation_error.
2261 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
2262 for an anonymous access result.
2263 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
2264 (Formal_Entity): Handle properly the case of a formal package that
2265 denotes a generic package renaming.
2266
2267 2005-09-01 Thomas Quinot <quinot@adacore.com>
2268
2269 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
2270 clause if the array aggregate is surrounded by parentheses.
2271
2272 2005-09-01 Cyrille Comar <comar@adacore.com>
2273 Gary Dismukes <dismukes@adacore.com>
2274 Ed Schonberg <schonberg@adacore.com>
2275 Javier Miranda <miranda@adacore.com>
2276
2277 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
2278 underlying type
2279 to check if a type is Constrained in cases related to code generation
2280 (rather than semantic checking) since otherwise we do not generate
2281 similar code for mutable private types depending if their
2282 discriminants are visible or not.
2283 (Check_Abstract_Overriding): Do not complain about failure to override
2284 the primitive operations used in dispatching selects since they will
2285 always be overriden at the freeze point of the type.
2286 (Access_Definition): Separate out handling for resetting the scope
2287 of an anonymous access function result type. Retrieve the scope
2288 of the associated function rather than using Current_Scope, which
2289 does not have a consistent value (depends on whether we're in the
2290 middle of analyzing formal parameters). Add ??? comment about
2291 finding a cleaner way to handle the special cases of scope setting.
2292 (Process_Incomplete_Dependents): A protected operation is never a
2293 dispatching operation (only its wrapper may be).
2294 (Build_Derived_Record_Type): In case of tagged private types that
2295 implement interfaces add derivation of predefined primitive
2296 operations.
2297 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
2298 by two parameters that are used in case of derivation from abstract
2299 interface types: No_Predefined_Prims is used to avoid the derivation
2300 of predefined primitives from the interface, and Predefined
2301 Prims_Only is used to complete the derivation predefined primitives
2302 in case of private tagged types implementing interfaces.
2303 Fix typo in comments
2304 (Find_Interface_In_Descendant): Protect the frontend against
2305 wrong code with large circularity chains.
2306 (Is_Private_Overriding): Add support for entities overriding interface
2307 subprograms. The test failed because Entities associated with overriden
2308 interface subprograms are always marked as hidden (and used to build
2309 the secondary dispatch table); in this case the overriden entity is
2310 available through the field abstract_interface_alias (cf. override_
2311 dispatching_operation)
2312 (Access_Definition): Set the scope of the type to Current_Scope for the
2313 case of a function with an anonymous access result type.
2314 (Access_Subprogram_Declaration): Handle creation of the type entity for
2315 an access-to-function type with an anonymous access result.
2316 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
2317 in handling for N_Access_Function_Definition.
2318 (Analyze_Subtype_Declaration): Modify the text of error message.
2319 (Derived_Type_Declaration): Modify the text of error message.
2320 (Process_Subtype): Modify the text of error message plus cleanup
2321 of one redundant error message.
2322 (Analyze_Component_Declaration): Code cleanup.
2323 (Analyze_Object_Declaration): Code cleanup.
2324 (Analyze_Subtype_Declaration): Propagate the null-exclusion
2325 attribute in case of access types. Code cleanup.
2326 (Array_Type_Declaration): Code cleanup.
2327 (Process_Discriminants): Create the new null-excluding itype
2328 if required. Code cleanup.
2329 (Process_Subtype): Create the new null-excluding itype if
2330 required. Code cleanup.
2331 (Build_Derived_Record_Type): Code cleanup to avoid calling
2332 twice the subprogram derive_subprograms in case of private
2333 types that implement interfaces. In this particular case the
2334 subprogram Complete_Subprograms_Derivation already does the
2335 job associated with the second call.
2336
2337 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
2338 conversion to the full view when generating an operation for a
2339 discriminant whose type may currently be private.
2340
2341 2005-09-01 Ed Schonberg <schonberg@adacore.com>
2342 Javier Miranda <miranda@adacore.com>
2343
2344 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
2345 V (Obj.F), the rewriting does not involve the indexed component, but
2346 only the selected component itself.
2347 Do not apply the transformation if the analyzed node is an actual of a
2348 call to another subprogram.
2349 (Complete_Object_Operation): Retain the entity of the
2350 dispatching operation in the selector of the rewritten node. The
2351 entity will be used in the expansion of dispatching selects.
2352 (Analyze_One_Call): Improve location of the error message associated
2353 with interface.
2354 (Analyze_Selected_Component): No need to resolve prefix when it is a
2355 function call, resolution is done when parent node is resolved, as
2356 usual.
2357 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
2358 when attempting to resolve a call transformed from its object notation.
2359 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
2360 of the argument list for each interpretation of the operation.
2361 (Try_Object_Operation): The designated type of an access parameter may
2362 be an incomplete type obtained through a limited_with clause, in which
2363 case the primitive operations of the type are retrieved from its full
2364 view.
2365 (Analyze_Call): If this is an indirect call, and the return type of the
2366 access_to_subprogram is incomplete, use its full view if available.
2367
2368 2005-09-01 Javier Miranda <miranda@adacore.com>
2369 Gary Dismukes <dismukes@adacore.com>
2370
2371 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
2372 access types the null-exclusion and access-to-constant attributes must
2373 also match.
2374 (Analyze_Return_Statement): When the result type is an anonymous access
2375 type, apply a conversion of the return expression to the access type
2376 to ensure that appropriate accessibility checks are performed.
2377 (Analyze_Return_Type): For the case of an anonymous access result type,
2378 generate the Itype and set Is_Local_Anonymous_Access on the type.
2379 Add ??? placeholder for check to disallow returning a limited object
2380 in Ada 2005 unless it's an aggregate or a result of a function call.
2381 Change calls from Subtype_Mark to Result_Definition.
2382 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
2383 Result_Definition in call to Make_Function_Specification.
2384 (Build_Body_To_Inline): Change Set_Subtype_Mark to
2385 Set_Result_Definition.
2386 (Make_Inequality_Operator): Change formal Subtype_Mark to
2387 Result_Definition in call to Make_Function_Specification.
2388 (Process_Formals): Create the new null-excluding itype if required.
2389 (New_Overloaded_Entity): For an entity overriding an interface primitive
2390 check if the entity also covers other abstract subprograms in the same
2391 scope. This is required to handle the general case, that is, overriding
2392 other interface primitives and overriding abstract subprograms inherited
2393 from some abstract ancestor type.
2394 (New_Overloaded_Entity): For an overriding entity that comes from
2395 source, note the operation that it overrides.
2396 (Check_Conformance, Type_Conformant): Addition of one new formal
2397 to skip controlling formals in the analysis. This is used to
2398 handle overloading of abstract interfaces.
2399 (Base_Types_Match): Add missing case for types imported from
2400 limited-with clauses
2401 (New_Overloaded_Entity): Add barrier to protect the use of
2402 the "alias" attribute.
2403
2404 2005-09-01 Ed Schonberg <schonberg@adacore.com>
2405
2406 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
2407 verify that the procedure and the entry are mode conformant.
2408 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
2409 as a different operator, which is often a cut-and-paste error.
2410
2411 2005-09-01 Javier Miranda <miranda@adacore.com>
2412 Ed Schonberg <schonberg@adacore.com>
2413
2414 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
2415 used in controlling parameters exclude null because it is necessary to
2416 read the tag to dispatch, and null has no tag.
2417 (Override_Dispatching_Operation): If the previous operation is inherited
2418 from an interface, it becomes hidden and does not participate in later
2419 name resolution.
2420
2421 2005-09-01 Javier Miranda <miranda@adacore.com>
2422 Ed Schonberg <schonberg@adacore.com>
2423 Gary Dismukes <dismukes@adacore.com>
2424
2425 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
2426 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
2427 the expander will generate the corresponding run-time check to evaluate
2428 the expression.
2429 (Resolve_Call): Check for legal type of procedure name or prefix that
2430 appears as a trigger in a triggering alternative.
2431 (Valid_Conversion): If expression is ambiguous and the context involves
2432 an extension of System, remove System.Address interpretations.
2433 (Resolve_Qualified_Expression): Reject the case of a specific-type
2434 qualification applied to a class-wide argument. Enhance comment
2435 to explain checking of Original_Node.
2436 (Resolve_Type_Conversion): The location of the error message was not
2437 general enough to handle the general case and hence it has been removed.
2438 In addition, this patch improves the text of the message.
2439 (Resolve_Type_Conversion): Add missing support for access to interface
2440 types.
2441 (Resolve_Type_Conversion): If the target is a class-wide interface type,
2442 do not expand if the expression is the actual in a call, because proper
2443 expansion will take place when the call itself is expanded.
2444 (Resolve_Allocator): If the context is an unchecked conversion, the
2445 allocator inherits its storage pool, if any, from the target type of
2446 the conversion.
2447
2448 2005-09-01 Ed Schonberg <schonberg@adacore.com>
2449 Javier Miranda <miranda@adacore.com>
2450
2451 * sem_type.adb (Add_One_Interp): If a candidate operation is an
2452 inherited interface operation that has an implementation, use the
2453 implementation to avoid spurious ambiguities.
2454 (Interface_Present_In_Ancestor): In case of concurrent types we can't
2455 use the Corresponding_Record_Typ attribute to look for the interface
2456 because it is set by the expander (and hence it is not always
2457 available). For this reason we traverse the list of interfaces
2458 (available in the parent of the concurrent type).
2459 (Interface_Present_In_Ancestor): Handle entities from the limited view
2460
2461 2005-09-01 Ed Schonberg <schonberg@adacore.com>
2462
2463 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
2464 from the list of required components.
2465 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
2466 primitive procedure of a limited interface with a controlling first
2467 parameter.
2468 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
2469 of an entry.
2470 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
2471 capture if it is generated in the second operand of a short-circuit
2472 operation.
2473 Do not capture values for variables with address clauses.
2474 (Is_Object_Reference): Treat a function call as an object reference only
2475 if its type is not Standard_Void_Type.
2476
2477 2005-09-01 Ed Schonberg <schonberg@adacore.com>
2478
2479 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
2480 to a variable that is statically known to be constant.
2481
2482 2005-09-01 Geert Bosch <bosch@adacore.com>
2483 Robert Dewar <dewar@adacore.com>
2484
2485 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
2486 (VAXGF_Safe_First): Idem.
2487
2488 2005-09-01 Robert Dewar <dewar@adacore.com>
2489 Arnaud Charlet <charlet@adacore.com>
2490
2491 * g-dirope.ads: Minor reformatting
2492 Document that bounds of result of Base_Name match the input index
2493 positions.
2494 Add documentation on environment variable syntax for Expand_Path
2495
2496 * gnat_ugn.texi: Update documentation to include mention of -m switches
2497 Document new treatment of wide characters in max line length
2498 style check.
2499 Remove -gnatL/-gnatZ switches, no longer used.
2500 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
2501 of -gnata switch.
2502
2503 * gnat_rm.texi: Add doc for two argument form of pragma
2504 Float_Representation.
2505 Add documentation for pragma No_Strict_Aliasing
2506 Add note that explicit component clause overrides pragma Pack.
2507 Add documentation of pragma Debug_Policy
2508
2509 2005-09-01 Matthew Heaney <heaney@adacore.com>
2510
2511 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
2512 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
2513 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
2514 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
2515 draft (Draft 13, August 2005) of Ada Amendment 1.
2516
2517 2005-09-01 Arnaud Charlet <charlet@adacore.com>
2518
2519 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
2520 Note that the platform-specific version of g-soccon.ads for VMS is now
2521 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
2522 really is a package spec).
2523 Replace s-taspri-linux.ads by s-taspri-posix.ads
2524 Remove references to s-mastop-x86.adb
2525
2526 * system-vxworks-xscale.ads: Removed, no longer used.
2527 * s-vxwork-xscale.ads: Removed, no longer used.
2528
2529 2005-09-01 Robert Dewar <dewar@adacore.com>
2530
2531 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
2532 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
2533 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
2534 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
2535 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
2536 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
2537 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
2538 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
2539 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
2540 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
2541 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
2542 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
2543 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
2544 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
2545 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
2546 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
2547 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
2548 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
2549 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
2550 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
2551 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
2552
2553 2005-08-29 Arnaud Charlet <charlet@adacore.com>
2554
2555 PR ada/23187
2556 * adaint.c
2557 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
2558
2559 2005-08-29 Arnaud Charlet <charlet@adacore.com>
2560 Doug Rupp <rupp@adacore.com>
2561
2562 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
2563 when needed.
2564 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
2565 this code in the GNAT run-time.
2566
2567 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
2568
2569 PR ada/21053
2570 * init.c (__gnat_error_handler [many]): Mark "msg" as const
2571 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
2572
2573 (__gnat_inside_elab_final_code): Moved here from
2574 Standard_Library and only defined for the compiler.
2575 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
2576 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
2577 using RTPs because directly vectored Interrupt routines are not
2578 supported on this configuration.
2579 (getpid): Do not redefine this function on VxWorks when using RTPs
2580 because this primitive is well supported by the RTP libraries.
2581 (copy_msg): Correct the code that checks for buffer overflow.
2582 Discovered during code reading.
2583
2584 2005-08-29 Olivier Hainque <hainque@adacore.com>
2585
2586 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
2587 a library level mutable variable with an initializer, tell
2588 build_allocator to ignore the initializer's size. It may not be large
2589 enough for all the values that might be assigned to the variable later
2590 on.
2591
2592 2005-08-29 Arnaud Charlet <charlet@adacore.com>
2593 Eric Botcazou <ebotcazou@adacore.com>
2594
2595 * trans.c: Protect < in error msg with quote
2596 Replace GCC_ZCX by Back_End_Exceptions.
2597 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
2598 has been sufficiently aligned in the record.
2599
2600 2005-08-15 James E. Wilson <wilson@specifix.com>
2601
2602 * system-linux-alpha.ads: Change ia64 to alpha.
2603
2604 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
2605
2606 * decl.c, utils.c: Fix comment typos.
2607
2608 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
2609
2610 * decl.c, init.c, initialize.c: Fix comment typos.
2611
2612 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
2613
2614 Make CONSTRUCTOR use VEC to store initializers.
2615 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
2616 CONSTRUCTOR_ELTS.
2617 * trans.c (extract_values): Likewise.
2618 * utils.c (convert, remove_conversions): Likewise.
2619 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
2620 gnat_build_constructor): Likewise.
2621
2622 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
2623
2624 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
2625 DECL_SECTION_NAME.
2626 (compare_field_bitpos): Likewise.
2627
2628 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
2629
2630 * utils.c (create_var_decl): Only set DECL_COMMON on
2631 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
2632 VAR_OR_FUNCTION_DECL_P.
2633
2634 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
2635
2636 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
2637 removed.
2638
2639 2005-07-07 Pascal Obry <obry@adacore.com>
2640
2641 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
2642 returned type on Windows.
2643
2644 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
2645 routine.
2646
2647 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
2648 exception in this case.
2649 Simplify the code as "Image (Image'Range)" = "Image".
2650
2651 2005-07-07 Vincent Celier <celier@adacore.com>
2652
2653 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
2654 the destructor/constructor attributes for <lib>final/<lib>init.
2655
2656 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
2657
2658 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
2659
2660 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
2661 type if the parameter is not passed by copy but reference by default.
2662
2663 2005-07-07 Javier Miranda <miranda@adacore.com>
2664
2665 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
2666 Reimplementation of the support for abstract interface types in order
2667 to leave the code more clear and easy to maintain.
2668
2669 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
2670 abstract interface types in order to leave the code clearer and easier
2671 to maintain.
2672
2673 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
2674 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
2675 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
2676 appropriate entry of the secondary dispatch table.
2677 (Make_DT): Add code to inherit the secondary dispatch tables of
2678 the ancestors.
2679
2680 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
2681 implementing both functionalities by means of a common routine, each
2682 routine has its own code.
2683
2684 2005-07-07 Javier Miranda <miranda@adacore.com>
2685
2686 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
2687
2688 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
2689 types:
2690 --
2691 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2692 --
2693
2694 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
2695 use of tag incomplete types.
2696
2697 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
2698 give support to tagged incomplete types.
2699
2700 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
2701 expression is a discriminant reference and its type is private, as can
2702 happen within a stream operation for a mutable record, use the full
2703 view of the type to resolve the case alternatives.
2704 (Analyze_Assignment): Check wrong dereference of incomplete types.
2705
2706 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
2707 types.
2708
2709 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
2710 incomplete types.
2711
2712 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
2713 N_Incomplete_Type_Declaration nodes.
2714
2715 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
2716 Tag_Present to give support to tagged incomplete types:
2717 --
2718 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
2719 --
2720
2721 2005-07-07 Olivier Hainque <hainque@adacore.com>
2722
2723 PR ada/22301
2724
2725 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
2726 definitions for the Unwind wrappers in the compiler case.
2727
2728 2005-07-07 Ed Schonberg <schonberg@adacore.com>
2729 Javier Miranda <miranda@adacore.com>
2730
2731 * par-load.adb (Load): If a child unit is loaded through a limited_with
2732 clause, each parent must be loaded as a limited unit as well.
2733
2734 * sem_ch10.adb (Previous_Withed_Unit): Better name for
2735 Check_Withed_Unit. Return true if there is a previous with_clause for
2736 this unit, whether limited or not.
2737 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
2738 the current unit.
2739 (Is_Visible_Through_Renamings): New local subprogram of install_limited
2740 _withed_unit that checks if some package installed through normal with
2741 clauses has a renaming declaration of package whose limited-view is
2742 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
2743 of the current Draft document for Ada 2005.
2744 (Analyze_Context): Complete the list of compilation units that
2745 are allowed to contain limited-with clauses. It also contains
2746 checks that were previously done by Install_Limited_Context_Clauses.
2747 This makes the code more clear and easy to maintain.
2748 (Expand_Limited_With_Clause) It is now a local subprogram of
2749 Install_Limited_Context_Clauses, and contains the code that adds
2750 the implicit limited-with clauses for parents of child units.
2751 This functionality was prevously done by Analyze_Context.
2752
2753 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
2754 incomplete type.
2755
2756 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
2757 been erroneously named in a limited-with clause of its own context.
2758 In this case the error has been previously notified by Analyze_Context.
2759
2760 2005-07-07 Ed Schonberg <schonberg@adacore.com>
2761
2762 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
2763 generic package that contains local declarations with the same name.
2764 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
2765
2766 2005-07-07 Bernard Banner <banner@adacore.com>
2767
2768 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
2769 ia64 platform only on platforms that you the GCC unwind library
2770 rather than the system unwind library.
2771
2772 2005-07-07 Thomas Quinot <quinot@adacore.com>
2773
2774 * expect.c: Minor reformatting
2775
2776 2005-07-07 Sergey Rybin <rybin@adacore.com>
2777
2778 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
2779 --no-separate-is
2780
2781 * gnat_ugn.texi: Add description for new gnatpp option
2782 (--no-separate-is)
2783
2784 2005-07-04 Thomas Quinot <quinot@adacore.com>
2785
2786 * g-expect-vms.adb, g-expect.ads, g-expect.adb
2787 (Get_Command_Output): New subprogram to launch a process and get its
2788 standard output as a string.
2789
2790 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
2791 Olivier Hainque <hainque@adacore.com>
2792
2793 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
2794 fetch a code-range descriptor associated with the machine state. On
2795 failure set the machine state's PC to 0; on success, pass the
2796 descriptor to exc_virtual_unwind.
2797
2798 * init.c (Tru64 section): New function __gnat_set_code_loc.
2799
2800 2005-07-04 Vincent Celier <celier@adacore.com>
2801
2802 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
2803 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
2804 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
2805 Remove all auto-initialization code, as this is now done through the
2806 constructor mechanism.
2807
2808 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
2809 __gnat_sals_init_using_constructors): New functions.
2810
2811 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
2812 Linker_Constructor and Linker_Destructor when switch -a is used.
2813
2814 * bindusg.adb: Add line for new switch -a
2815
2816 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
2817 (Gnatbind): When switch -a is used, check if it is allowed
2818
2819 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
2820
2821 2005-07-04 Joel Brobecker <brobecker@adacore.com>
2822
2823 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
2824 This prevents us from hitting a limitation during the debug info
2825 generation when using stabs.
2826 (Prims_Ptr): Likewise.
2827
2828 2005-07-04 Gary Dismukes <dismukes@adacore.com>
2829 Ed Schonberg <schonberg@adacore.com>
2830 Javier Miranda <miranda@adacore.com>
2831
2832 * checks.adb (Null_Exclusion_Static_Checks): In the case of
2833 N_Object_Declaration, only perform the checks if the Object_Definition
2834 is not an Access_Definition.
2835
2836 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
2837 where the parent of an the access definition is an N_Object_Declaration
2838 when determining the Associated_Node_For_Itype and scope of an
2839 anonymous access-to-subprogram type.
2840
2841 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
2842 Corresponding_Spec on the body created for a null procedure. Add ???
2843 comment. Remove New_Copy_Tree call on body argument to
2844 Set_Body_To_Inline.
2845
2846 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
2847 discriminants, use the type of the actual as well, because the
2848 discriminants may be read by the called subprogram.
2849
2850 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
2851 access type we do not need to handle non-limited views.
2852 (Build_Derived_Record_Type): Additional check to check that in case of
2853 private types, interfaces are only allowed in private extensions.
2854
2855 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
2856
2857 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
2858 <Pragma_Linker_Destructor>: Likewise.
2859
2860 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
2861 Pragma_Linker_Destructor.
2862
2863 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
2864 ATTR_LINK_DESTRUCTOR.
2865 (static_ctors, static_dtors): New variables.
2866
2867 * misc.c (gnat_expand_body): Output current function as constructor
2868 and destructor if requested.
2869
2870 * par-prag.adb: Add processing for pragma Linker_Constructor and
2871 Linker_Destructor.
2872
2873 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
2874 extracted from Check_Interrupt_Or_Attach_Handler.
2875 (Check_Interrupt_Or_Attach_Handler): Invoke it.
2876 Implement pragma Linker_Constructor and Linker_Destructor with the
2877 help of Find_Unique_Parameterless_Procedure.
2878 Replace Name_Alias with Name_Target for pragma Linker_Alias.
2879
2880 * snames.h, snames.ads, snames.adb:
2881 Add Name_Linker_Constructor and Name_Linker_Destructor.
2882 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
2883 * snames.adb: Remove Name_Alias.
2884
2885 * trans.c: Include cgraph.h.
2886 (build_global_cdtor): New function.
2887 (Compilation_Unit_to_gnu): Build global constructor and destructor if
2888 needed.
2889 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
2890 of objects too.
2891 (addressable_p) <COMPONENT_REF>: Unconditionally test
2892 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
2893
2894 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
2895 variable if it is external.
2896
2897 (static_ctors, static_dtors): New global variables.
2898 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
2899 <ATTR_LINK_DESTRUCTOR>: Likewise.
2900 (end_subprog_body): Chain function as constructor and destructor
2901 if requested.
2902
2903 * exp_util.adb (Force_Evaluation): Unconditionally invoke
2904 Remove_Side_Effects with Variable_Ref set to true.
2905 (Remove_Side_Effects): Handle scalar types first. Use a renaming
2906 for non-scalar types even if Variable_Ref is true and for class-wide
2907 expressions.
2908
2909 2005-07-04 Ed Schonberg <schonberg@adacore.com>
2910
2911 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
2912 to prevent spurious warnings.
2913
2914 2005-07-04 Thomas Quinot <quinot@adacore.com>
2915
2916 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
2917 Itypes. Itypes are really unexpected there.
2918 (Build_TypeCode_Function): Generalise special processing for Itypes to
2919 handle the case of numeric implicit base types as well as enumerated
2920 ones.
2921
2922 2005-07-04 Ed Schonberg <schonberg@adacore.com>
2923
2924 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
2925 controlled, indicate the expected type of the dereference that is
2926 created for the call to Deep_Finalize, to prevent spurious errors when
2927 the designated type is private and completed with a derivation from
2928 another private type.
2929
2930 2005-07-04 Vincent Celier <celier@adacore.com>
2931
2932 * make.adb (Change_To_Object_Directory): When unable to change the
2933 current dir to the object directory, output the full path of the
2934 directory.
2935
2936 2005-07-04 Matthew Gingell <gingell@adacore.com>
2937
2938 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
2939
2940 * indepsw-linux.adb: Replace by...
2941
2942 * indepsw-gnu.adb: ...this new file
2943
2944 2005-07-04 Vincent Celier <celier@adacore.com>
2945
2946 * mlib-prj.adb (Auto_Initialize): New constant String
2947 (SALs_Use_Constructors): New Boolean function
2948 (Build_Library): Call gnatbind with Auto_Initialize switch when
2949 SALs_Use_Constructors returns True.
2950
2951 * mlib-tgt.ads: Minor reformatting
2952
2953 * mlib-utl.ads: Minor reformatting
2954
2955 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
2956
2957 2005-07-04 Ed Schonberg <schonberg@adacore.com>
2958
2959 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
2960 single protected declarations can have an interface list.
2961 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
2962 with seriously malformed entry declarations, and lead to compilation
2963 abandoned messages.
2964
2965 2005-07-04 Javier Miranda <miranda@adacore.com>
2966
2967 * par-load.adb: Load the context items in two rounds.
2968
2969 2005-07-04 Robert Dewar <dewar@adacore.com>
2970
2971 * scng.adb: Do not consider Mod used as an attribute to be a keyword
2972
2973 2005-07-04 Ed Schonberg <schonberg@adacore.com>
2974 Javier Miranda <miranda@adacore.com>
2975
2976 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
2977 type extension needs a limited view.
2978 Remove previous restriction on private types available through the
2979 limited-view (only tagged private types were previously allowed).
2980 (Install_Withed_Unit): In the code that implements the
2981 legality rule given in AI-377, exclude a child unit with the name
2982 Standard, because it is a homonym of the Standard environment package.
2983
2984 2005-07-04 Thomas Quinot <quinot@adacore.com>
2985
2986 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
2987 overloaded function call, carry interpretations from the original tree
2988 to the copy.
2989
2990 2005-07-04 Ed Schonberg <schonberg@adacore.com>
2991
2992 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
2993 types check whether some designated type is a limited view, and use
2994 the non-limited view if available.
2995
2996 2005-07-04 Gary Dismukes <dismukes@adacore.com>
2997
2998 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
2999 constraint of full view of a private view T1 if present, when T2 is a
3000 discriminated full view.
3001
3002 2005-07-04 Thomas Quinot <quinot@adacore.com>
3003
3004 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
3005 actual that is a view conversion of a bit packed array reference.
3006
3007 2005-07-04 Ed Schonberg <schonberg@adacore.com>
3008
3009 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
3010 present before checking whether an interface type covers a synchronized
3011 type.
3012
3013 2005-07-04 Ed Schonberg <schonberg@adacore.com>
3014
3015 * sem_util.adb (Is_Object_Reference): An indexed or selected component
3016 whose prefix is an implicit dereference is an object reference. Removes
3017 spurious errors when compiling with -gnatc.
3018
3019 2005-07-04 Robert Dewar <dewar@adacore.com>
3020
3021 PR ada/22039
3022
3023 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
3024
3025 2005-07-04 Matthew Gingell <gingell@adacore.com>
3026
3027 * tracebak.c: Enable tracebacks on ia64 platforms
3028
3029 2005-07-04 Vincent Celier <celier@adacore.com>
3030
3031 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
3032 the GNAT BIND command, as gnatbind accepts multiples ALI files with
3033 the -L or -n switches.
3034
3035 2005-07-04 Vincent Celier <celier@adacore.com>
3036
3037 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
3038 correctly computed and the main project data is not modified while
3039 doing so.
3040 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
3041 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
3042 c++linker as this does not work on some platforms.
3043
3044 2005-07-04 Matthew Heaney <heaney@adacore.com>
3045
3046 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
3047 was changed.
3048 * a-coinve.adb: Perform constraint checks explicitly.
3049
3050 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3051 Thomas Quinot <quinot@adacore.com>
3052
3053 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
3054 new target gen-soccon.
3055
3056 2005-07-04 Robert Dewar <dewar@adacore.com>
3057
3058 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
3059
3060 2005-07-04 Thomas Quinot <quinot@adacore.com>
3061
3062 * g-socket.ads (Check_Selector): Minor rewording of comment.
3063
3064 2005-07-04 Vincent Celier <celier@adacore.com>
3065
3066 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
3067
3068 2005-07-04 Thomas Quinot <quinot@adacore.com>
3069
3070 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
3071
3072 2005-07-04 Sergey Rybin <rybin@adacore.com>
3073
3074 * gnat_ugn.texi: Add description of --eol gnatpp option
3075
3076 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
3077 Thomas Quinot <quinot@adacore.com>
3078
3079 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
3080 if the user wants all calls of a subprogram to be flagged,
3081 independently of whether they are made from within the same unit or
3082 another unit.
3083 Mention restriction for pragma Linker_Alias on some platforms.
3084 Document pragma Linker_Constructor and Linker_Destructor.
3085 Rewrite documentation of Weak_External, Linker_Section and
3086 Linker_Alias pragmas.
3087
3088 2005-07-04 Arnaud Charlet <charlet@adacore.com>
3089
3090 * s-stausa.ads, s-stausa.adb: New files.
3091
3092 2005-06-30 Kelley Cook
3093
3094 * all files: Update FSF address in copyright headers.
3095 * gen-soccon.co (main): Output new FSF address in generated files.
3096
3097 2005-06-28 Paul Brook <paul@codesourcery.com>
3098
3099 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
3100
3101 2005-06-14 Olivier Hainque <hainque@adacore.com>
3102 Eric Botcazou <ebotcazou@adacore.com>
3103
3104 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
3105 exc_unwind, now that we are generating proper .debug_frame output for
3106 that target.
3107
3108 * tracebak.c: Remove the mips-irix section, as we are now using the
3109 s-mastop based unwinder again.
3110 Under SPARC/Solaris, take into account the stack bias to compute the
3111 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
3112 ABI.
3113
3114 2005-06-14 Doug Rupp <rupp@adacore.com>
3115
3116 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
3117
3118 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
3119
3120 2005-06-14 Pascal Obry <obry@adacore.com>
3121
3122 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
3123 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
3124 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
3125 package name).
3126
3127 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
3128 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
3129 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
3130 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
3131 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
3132 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
3133 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
3134 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
3135 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
3136 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
3137 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
3138 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
3139 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
3140 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
3141 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
3142 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
3143 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
3144 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
3145 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
3146 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
3147 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
3148 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
3149 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
3150 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
3151 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
3152 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
3153 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
3154 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
3155 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
3156 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
3157 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
3158 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
3159 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
3160 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
3161 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
3162 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
3163 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
3164 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
3165 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
3166 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
3167 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
3168 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
3169 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
3170 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
3171 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
3172 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
3173 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
3174 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
3175 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
3176 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
3177 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
3178 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
3179 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
3180 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
3181 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
3182 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
3183 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
3184 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
3185 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
3186 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
3187 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
3188 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
3189 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
3190 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
3191 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
3192 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
3193 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
3194 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
3195 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
3196 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
3197 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
3198 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
3199 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
3200 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
3201 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
3202 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
3203 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
3204 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
3205 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
3206 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
3207 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
3208 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
3209 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
3210 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
3211 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
3212 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
3213 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
3214 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
3215 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
3216 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
3217 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
3218 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
3219 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
3220 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
3221 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
3222 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
3223 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
3224 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
3225 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
3226 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
3227 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
3228 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
3229 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
3230 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
3231 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
3232 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
3233 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
3234 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
3235 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
3236 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
3237 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
3238 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
3239 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
3240 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
3241 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
3242 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
3243 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
3244 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
3245 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
3246 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
3247 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
3248 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
3249 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
3250 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
3251 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
3252 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
3253 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
3254 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
3255 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
3256 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
3257 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
3258 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
3259 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
3260
3261 2005-06-14 Jose Ruiz <ruiz@adacore.com>
3262 Arnaud Charlet <charlet@adacore.com>
3263
3264 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
3265 longer protected objects. They have been replaced by lower-level
3266 suspension objects made up by a mutex and a condition variable (or
3267 their equivalent given a particular OS) plus some internal data to
3268 reflect the state of the suspension object.
3269 (Initialize, Finalize): Add this initialization procedure for
3270 Suspension_Object, which is a controlled type.
3271 (Finalize): Add the finalization procedure for Suspension_Object,
3272 which is a controlled type.
3273
3274 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
3275 Ada.Synchronous_Task_Control because there is no longer a need for a
3276 VxWorks specific version of this package. Target dependencies
3277 has been moved to System.Task_Primitives.Operations.
3278
3279 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
3280 longer needed.
3281 (InitializeCriticalSection, EnterCriticalSection,
3282 LeaveCriticalSection, DeleteCriticalSection): Replace the type
3283 pCriticalSection by an anonymous access type so that we avoid problems
3284 of accessibility to local objects.
3285
3286 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
3287 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
3288 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
3289 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
3290 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
3291 set the environment task mask here.
3292 (Current_State): Add this function that returns the state of the
3293 suspension object.
3294 (Set_False): Add this procedure that sets the state of the suspension
3295 object to False.
3296 (Set_True): Add this procedure that sets the state of the suspension
3297 object to True, releasing the task that was suspended, if any.
3298 (Suspend_Until_True): Add this procedure that blocks the calling task
3299 until the state of the object is True. Program_Error is raised if
3300 another task is already waiting on that suspension object.
3301 (Initialize): Add this procedure for initializing the suspension
3302 object. It initializes the mutex and the condition variable which are
3303 used for synchronization and queuing, and it sets the internal state
3304 to False.
3305 (Finalize): Add this procedure for finalizing the suspension object,
3306 destroying the mutex and the condition variable.
3307
3308 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
3309 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
3310 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
3311 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
3312 which provides a low-level abstraction (using operating system
3313 primitives) for Ada.Synchronous_Task_Control.
3314 This object is made up by a mutex (for ensuring mutual exclusion), a
3315 condition variable (for queuing threads until the condition is
3316 signaled), a Boolean (State) indicating whether the object is open,
3317 and a Boolean (Waiting) reflecting whether there is a task already
3318 suspended on this object.
3319
3320 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
3321 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
3322 s-intman-vms.ads, s-intman-mingw.adb,
3323 (Initialize_Interrupts): Removed, no longer used.
3324
3325 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
3326 (Setup_Interrupt_Mask): New procedure.
3327
3328 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
3329
3330 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
3331
3332 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
3333 this is no longer done in the body of s-taprop
3334 (Server_Task): Explicitely test for Pending_Action in case
3335 System.Parameters.No_Abort is True.
3336
3337 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
3338 is no longer done in the body of s-taprop
3339
3340 2005-06-14 Robert Dewar <dewar@adacore.com>
3341
3342 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
3343 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
3344 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
3345 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
3346 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
3347 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
3348 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
3349 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
3350 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
3351 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
3352 system-linux-hppa.ads, system-vms_64.ads,
3353 system-vxworks-alpha.ads: Minor comment update for
3354 AI-362 (unit is Pure).
3355
3356 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
3357 Add pragma Pure_05 for AI-362
3358 Make remaining conversion functions obsolescent in Ada 95
3359
3360 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
3361 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
3362 Add entries for a-wichun and a-zchuni
3363 Add a-widcha a-zchara for AI-395
3364 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
3365
3366 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
3367 Add entries for a-wichun.o and a-zchuni.o
3368 Entries for a-widcha.o and a-zchara.o
3369 Add entry for a-chacon.o
3370
3371 * a-ztenau.adb: Add with of Ada.Characters.Conversions
3372
3373 * a-chacon.ads, a-chacon.adb: New files.
3374
3375 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
3376 categorization violations.
3377
3378 * a-strmap.ads: Add pragma Pure_05 for AI-362
3379 * a-strmap.ads: Add note on implicit categorization for AI-362
3380
3381 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
3382
3383 * par-prag.adb: Dummy entry for pragma Persistent_BSS
3384 Set Ada_Version_Explicit, for implementation of AI-362
3385 Add processing for pragma Pure_05 and Preelaborate_05
3386 Add entry for Assertion_Policy pragma
3387
3388 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
3389 when needed for proper processing of categorization stuff
3390
3391 * sem_cat.adb:
3392 For several cases, make errors in preealborate units warnings,
3393 instead of errors, if GNAT_Mode is set. For AI-362.
3394
3395 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
3396 preelaborate unit is now warning if in GNAT mode
3397
3398 * s-stoele.ads: Document AI-362 for pragma preelaborate
3399
3400 2005-06-14 Doug Rupp <rupp@adacore.com>
3401
3402 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
3403 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
3404 Default_Exception_Msg_Max_Length: new parameter.
3405
3406 * a-except.ads: (Exception_Msg_Max_Length): Set to
3407 System.Parameters.Default_Exception_Msg_Max_Length
3408 Add pragma Preelaborate_05 for AI-362
3409 Add warnings off to allow categorization violations for AI-362
3410
3411 2005-06-14 Vincent Celier <celier@adacore.com>
3412
3413 * gnatsym.adb: Adapt to modification of package Symbols: procedure
3414 Process is now in package Processing.
3415
3416 * symbols.ads, symbols.adb:
3417 (Processing): New package, containing procedure Process
3418
3419 * symbols-vms-alpha.adb:
3420 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
3421
3422 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
3423 symbols-processing-vms-ia64.adb: New files.
3424
3425 2005-06-14 Pascal Obry <obry@adacore.com>
3426
3427 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
3428 implementation. This new version generates the proper DllMain routine
3429 to initialize the SAL. The DllMain is generated in Ada and compiled
3430 before being added as option to the library build command.
3431
3432 2005-06-14 Doug Rupp <rupp@adacore.com>
3433 Pascal Obry <obry@adacore.com>
3434
3435 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
3436 call to decc$translate_vms.
3437 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
3438 need to remove those quotes before catenating the filename.
3439 (__gnat_locate_exec_on_path): improvements to the Win32 section:
3440 * avoid allocating the memory twice for better efficiency;
3441 * allocate 32K buffer for environment expansion as suggested by MSDN;
3442 * prepend ".;" to the path so that current directory is searched too.
3443
3444 2005-06-14 Robert Dewar <dewar@adacore.com>
3445
3446 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
3447 instead of raising CE (AI-241)
3448 Add warnings off to allow categorization violations for AI-362
3449
3450 2005-06-14 Robert Dewar <dewar@adacore.com>
3451
3452 * ali-util.adb, gnatbind.adb: Remove references to
3453 Force_RM_Elaboration_Order.
3454
3455 * switch-b.adb: Remove recognition of -f switch
3456
3457 2005-06-14 Pascal Obry <obry@adacore.com>
3458
3459 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
3460 implementation which is slightly more efficient.
3461
3462 2005-06-14 Gary Dismukes <dismukes@adacore.com>
3463 Javier Miranda <miranda@adacore.com>
3464 Ed Schonberg <schonberg@adacore.com>
3465 Hristian Kirtchev <kirtchev@adacore.com>
3466
3467 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
3468 allocator's designated type is a class-wide type, and compiling for
3469 Ada 2005, emit a run-time check that the accessibility level of the
3470 type given in the allocator's expression is not deeper than the level
3471 of the allocator's access type.
3472
3473 (Tagged_Membership): Modified to gives support to abstract interface
3474 types.
3475
3476 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
3477 Access_Level.
3478 (Descendant_Tag): New predefined function
3479 (Is_Descendant_At_Same_Level): New predefined function
3480 (Get_Access_Level): New private function
3481 (Set_Access_Level): New private procedure
3482 (IW_Membership): New function. Given the tag of an object and the tag
3483 associated with an interface, evaluate if the object implements the
3484 interface.
3485 (Register_Interface_Tag): New procedure used to initialize the table of
3486 interfaces used by the IW_Membership function.
3487 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
3488 of the dispatch table.
3489 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
3490 table of interfaces of the parent.
3491 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
3492 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
3493 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
3494 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
3495 Ada 2005 semantics for the new predefined function.
3496
3497 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
3498 call to Descendant_Tag rather than Internal_Tag.
3499 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
3500 the accessibility level of the attribute's Item parameter is not deeper
3501 than the level of the attribute's prefix type. Tag_Error is raised if
3502 the check fails. The check is only emitted for Ada_05.
3503 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
3504 requested stream attribute, use it.
3505 (Expand_N_Attribute_Reference): If the designated type is an interface
3506 then rewrite the referenced object as a conversion to force the
3507 displacement of the pointer to the secondary dispatch table.
3508 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
3509 is a dereference of an object with a constrained partial view.
3510
3511 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
3512 type is a class-wide type, emit a run-time check that the accessibility
3513 level of the returned object is not deeper than the level of the
3514 function's master (only when compiling for Ada 2005).
3515
3516 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
3517 Action_Nb_Arg): Add entries for new Get_Access_Level and
3518 Set_Access_Level routines in these tables.
3519 (Make_DT): Generate a call to set the accessibility level of the
3520 tagged type in its TSD.
3521 (Make_DT): Code cleanup. The functionality of generating all the
3522 secondary dispatch tables has been moved to freeze_record_type.
3523 (Make_Abstract_Interface_DT): Minor code cleanup.
3524 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
3525 this subprogram implements a new algorithm that provides the
3526 same functionality and it is more clear in case of primitives
3527 associated with abstract interfaces.
3528 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
3529 clean up, the functionality of this subprogram is now provided
3530 by Set_All_DT_Position.
3531 (Write_DT): New subprogram: a debugging procedure designed to be called
3532 within gdb to display the dispatch tables associated with a tagged
3533 type.
3534 (Collect_All_Interfaces): New subprogram that collects the whole list
3535 of interfaces that are directly or indirectly implemented by a tagged
3536 type.
3537 (Default_Prim_Op_Position): New subprogram that returns the fixed
3538 position in the dispatch table of the default primitive operations.
3539 (Expand_Interface_Actuals): New subprogram to generate code that
3540 displaces all the actuals corresponding to class-wide interfaces to
3541 reference the interface tag of the actual object.
3542 (Expand_Interface_Conversion): New subprogram. Reference the base of
3543 the object to give access to the interface tag associated with the
3544 secondary dispatch table.
3545 (Expand_Interface_Thunk): New subprogram that generates the code of the
3546 thunk. This is required for compatibility with the C+ ABI.
3547 (Make_Abstract_Interface_DT): New subprogram that generate the
3548 declarations for the secondary dispatch tables associated with an
3549 abstract interface.
3550 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
3551 attribute for each primitive operation covering interface subprograms
3552 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
3553 These subprograms were upgraded to give support to abstract interfaces
3554
3555 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
3556 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
3557 RE_Set_Access_Level.
3558 (RE_Unit_Table): Add entries for new Ada.Tags operations.
3559 Add support to call the followig new run-time subprograms:
3560 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
3561
3562 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
3563 match its full declaration when both have an access definition with
3564 statically matching designated subtypes.
3565 (Analyze_Component_Declaration): Delete commented out code that was
3566 incorrectly setting the scope of an anonymous access component's type.
3567 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
3568 an access discriminant when the containing type is nonlimited.
3569 (Make_Incomplete_Type_Declaration): Create an incomplete type
3570 declaration for a record type that includes self-referential access
3571 components.
3572 (Check_Anonymous_Access_Types): Before full analysis of a record type
3573 declaration, create anonymous access types for each self-referential
3574 access component.
3575 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
3576 an access component in this context is a Local_Anonymous_Access, for
3577 proper accessibility checks.
3578 (Access_Definition): Set properly the scope of the anonymous access type
3579 created for a stand-alone access object.
3580 (Find_Type_Of_Object): An object declaration may be given with an access
3581 definition.
3582 (Complete_Subprograms_Derivation): New subprogram used to complete
3583 type derivation of private tagged types implementing interfaces.
3584 In this case some interface primitives may have been overriden
3585 with the partial-view and, instead of re-calculating them, they
3586 are included in the list of primitive operations of the full-view.
3587 (Build_Derived_Record_Type): Modified to give support to private
3588 types implemening interfaces.
3589 (Access_Definition): Reject ALL on anonymous access types.
3590 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
3591 type derivation to occur at a deeper accessibility level than the
3592 parent type.
3593 For the case of derivation within a generic body however, disallow the
3594 derivation if the derived type has an ancestor that is a formal type
3595 declared in the formal part of an enclosing generic.
3596 (Analyze_Object_Declaration): For protected objects, remove the check
3597 that they cannot contain interrupt handlers if not declared at library
3598 level.
3599 (Add_Interface_Tag_Components): New subprogram to add the tag components
3600 corresponding to all the abstract interface types implemented by a
3601 record type or a derived record type.
3602 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
3603 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
3604 Process_Full_View, Record_Type_Declaration): Modified to give
3605 support to abstract interface types
3606 (Collect_Interfaces): New subprogram that collects the list of
3607 interfaces that are not already implemented by the ancestors
3608 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
3609 when partial view has no discriminants and full view has defaults.
3610 (Constrain_Access): Reject a constraint on a general access type
3611 if the discriminants of the designated type have defaults.
3612 (Access_Subprogram_Declaration): Associate the Itype node with the inner
3613 full-type declaration or subprogram spec. This is required to handle
3614 nested anonymous declarations.
3615 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
3616 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
3617 Process_Full_View, Record_Type_Declaration): Modified to give
3618 support to abstract interface types
3619 (Derive_Subprograms): Addition of a new formal to indicate if
3620 we are in the case of an abstact-interface derivation
3621 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
3622 to the specification because it is requied to analyze all the
3623 identifiers found in a list of interfaces
3624
3625 * debug.adb: Complete documentation of flag "-gnatdZ"
3626
3627 * exp_ch3.adb: Implement config version of persistent_bss pragma
3628 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
3629 testing for TSS presence to properly enforce visibility rules.
3630 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
3631 Make_Abstract_Interfaces_DT to generate the secondary tables
3632 associated with abstract interfaces.
3633 (Build_Init_Procedure): Modified to initialize all the tags
3634 corresponding.
3635 (Component_Needs_Simple_Initialization): Similar to other tags,
3636 interface tags do not need initialization.
3637 (Freeze_Record_Type): Modified to give support to abstract interface
3638 types.
3639 (Expand_N_Object_Declaration): Do not generate an initialization for
3640 a scalar temporary marked as internal.
3641
3642 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
3643 in-out parameter that is a component in an initialization procedure,
3644 whose constraint might depend on discriminants, and that may be
3645 misaligned because of packing or representation clauses.
3646 (Is_Legal_Copy): New predicate to determine whether a possibly
3647 misaligned in-out actual can actually be passed by copy/return. This
3648 is an error in case the type is by_reference, and a warning if this is
3649 the consequence of a DEC import pragma on the subprogram.
3650 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
3651 interface types
3652 (Expand_Inlined_Call): Mark temporary generated for the return value as
3653 internal, so that no useless scalar normalization is generated for it.
3654 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
3655 null procedure can always be inlined.
3656 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
3657 procedure, generate an explicit empty body for it.
3658
3659 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
3660 Given a type implementing an interface, returns the corresponding
3661 access_disp_table value.
3662 (Find_Interface_Tag): New subprogram. Given a type implementing an
3663 interface, returns the record component containing the tag of the
3664 interface.
3665 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
3666 previous ones that return the corresponding tag and access_disp_table
3667 entities.
3668 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
3669 is a predefined primitive operation.
3670 (Expand_Subtype_From_Expr): If the expression is a selected component
3671 within an initialization procedure, compute its actual subtype, because
3672 the component may depend on the discriminants of the enclosing record.
3673
3674 * i-cpp.ads, i-cpp.adb:
3675 This package has been left available for compatibility with previous
3676 versions of the frontend. As part of the new layout this is now a
3677 dummy package that uses declarations available at a-tags.ads
3678
3679 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
3680 "constant access" and "aliased [constant] access" when not compiling
3681 with -gnat05.
3682 Suppress Ada 2005 keyword warning if -gnatwY used
3683 (P_Identifier_Declarations): Add support for object declarations with
3684 access definitions.
3685 (Private_Extension_Declaration): Complete the documentation
3686 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
3687 attribute in case of private extension declaration
3688 (P_Type_Declaration): Mark as "abstract" the type declarations
3689 corresponding with protected, synchronized and task interfaces
3690 (P_Declarative_Items): "not" and "overriding" are overriding indicators
3691 for a subprogram or instance declaration.
3692
3693 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
3694 instantiation that is a dispatching operation has controlling access
3695 parameters that are null excluding.
3696 Save and restore Ada_Version_Explicit, for implementation of AI-362
3697 (Validate_Derived_Type_Instance): Add check for abstract interface
3698 types.
3699 (Analyze_Formal_Package): Establish Instantiation source for the copy of
3700 the generic that is created to represent the formal package.
3701 (Analyze_Package_Instantiation): Instantiate body immediately if the
3702 package is a predefined unit that contains inlined subprograms, and
3703 we are compiling for a Configurable_Run_Time.
3704 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
3705 If the program has a null default, generate an empty body for it.
3706
3707 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
3708 error message condition, null procedures are correctly detected now.
3709 (New_Overloaded_Entity): Bypass trivial overriding indicator check
3710 for subprograms in the context of protected types. Instead, the
3711 indicator is examined in Sem_Ch9 while analysing the subprogram
3712 declaration.
3713 (Check_Overriding_Indicator): Check consistency of overriding indicator
3714 on subprogram stubs as well.
3715 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
3716 the library level.
3717 (Analize_Subprogram_Specification): When analyzing a subprogram in which
3718 the type of the first formal is a concurrent type, replace this type
3719 by the corresponding record type.
3720 (Analyze_Subprogram_Body): Undo the previous work.
3721 (Analyze_Procedure_Call): If the call has the form Object.Op, the
3722 analysis of the prefix ends up analyzing the call itself, after which
3723 we are done.
3724 (Has_Interface_Formals): New subprogram subsidiary to analyze
3725 subprogram_specification that returns true if some non
3726 class-wide interface subprogram is found
3727 (New_Overloaded_Entity): Modified to give support to abstract
3728 interface types
3729 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
3730 access to subprograms must be recursive.
3731 (Is_Unchecked_Conversion): Improve the test that recognizes
3732 instantiations of Unchecked_Conversion, and allows them in bodies that
3733 are to be inlined by the front-end. When the body comes from an
3734 instantiation, a reference to Unchecked_Conversion will be an
3735 Expanded_Name, even though the body has not been analyzed yet.
3736 Replace Is_Overriding and Not_Overriding in subprogram_indication with
3737 Must_Override and Must_Not_Override, to better express intent of AI.
3738 (Analyze_Subprogram_Body): If an overriding indicator is given, check
3739 that it is consistent with the overrinding status of the subprogram
3740 at this point.
3741 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
3742 always inlined.
3743 If the subprogram is a null procedure, indicate that it does not need
3744 a completion.
3745
3746 * sem_disp.adb (Check_Controlling_Type): Give support to entities
3747 available through limited-with clauses.
3748 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
3749 allowed as the last primitive of a tagged type if it has no previous
3750 spec.
3751 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
3752 to give support to abstract interface types
3753
3754 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
3755 in the case where the target type is an anonymous access type of an
3756 object or component (that is, when Is_Local_Anonymous_Access is true).
3757 Prevent the special checks for conversions of access discriminants in
3758 the case where the discriminant belongs to a nonlimited type, since
3759 such discriminants have their accessibility level defined in the same
3760 way as a normal component of an anonymous access type.
3761 (Resolve_Allocator): When an allocator's designated type is a class-wide
3762 type, check that the accessibility level of type given in the
3763 allocator's expression or subtype indication is not statically deeper
3764 than the level of the allocator's access type.
3765 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
3766 name in a discriminant constraint of a record component.
3767 (Resolve_Explicit_Dereference): Do not check whether the type is
3768 incomplete when the dereference is a use of an access discriminant in
3769 an initialization procedure.
3770 (Resolve_Type_Conversion): Handle conversions to abstract interface
3771 types.
3772 (Valid_Tagged_Conversion): The conversion of a tagged type to an
3773 abstract interface type is always valid.
3774 (Valid_Conversion): Modified to give support to abstract interface types
3775 (Resolve_Actuals): Enable full error reporting on view conversions
3776 between unrelated by_reference array types.
3777 The rule for view conversions of arrays with aliased components is
3778 weakened in Ada 2005.
3779 Call to obsolescent subprogram is now considered to be a violation of
3780 pragma Restrictions (No_Obsolescent_Features).
3781 (Check_Direct_Boolean_Operator): If the boolean operation has been
3782 constant-folded, there is nothing to check.
3783 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
3784 check on possible violation of restriction No_Direct_Boolean_Operators
3785 until after expansion of operands, to prevent spurious errors when
3786 operation is constant-folded.
3787
3788 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
3789 Has_Compatible_Type): Modified to give support to abstract interface
3790 types.
3791 (Interface_Present_In_Ancestor): New function to theck if some ancestor
3792 of a given type implements a given interface
3793
3794 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
3795 prefix is a parameterless function that returns an access_to_procedure.
3796 (Transform_Object_Operation): Handle properly function calls of the
3797 form Obj.Op (X), which prior to analysis appear as indexed components.
3798 (Analyze_One_Call): Complete the error notification to help new Ada
3799 2005 users.
3800 (Analyze_Allocator): For an allocator without an initial value, where
3801 the designated type has a constrained partial view, a discriminant
3802 constraint is illegal.
3803
3804 2005-06-14 Robert Dewar <dewar@adacore.com>
3805
3806 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
3807 do with treatment of Set_Col when positioned at end of line character.
3808
3809 2005-06-14 Robert Dewar <dewar@adacore.com>
3810
3811 * atree.adb: (Elist*): Protect against uninitialized field
3812
3813 2005-06-14 Ed Schonberg <schonberg@adacore.com>
3814
3815 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
3816 for an attribute reference that returns an access type.
3817 (Apply_Discriminant_Check): No need for check if (designated) type has
3818 constrained partial view.
3819
3820 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
3821 both bound checks, rather than a conjunction.
3822 (Insert_Valid_Check): If the expression is an actual that is an indexed
3823 component of a bit-packed array, force expansion of the packed element
3824 reference, because it is specifically inhibited elsewhere.
3825
3826 2005-06-14 Vincent Celier <celier@adacore.com>
3827
3828 * clean.adb (Clean_Project): Correctly delete executable specified as
3829 absolute path names.
3830
3831 * make.adb (Gnatmake): Allow relative executable path names with
3832 directory information even when project files are used.
3833 (Change_To_Object_Directory): Fail gracefully when unable to change
3834 current working directory to object directory of a project.
3835 (Gnatmake): Remove exception handler that could no longer be exercized
3836 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
3837 may be deallocated by Normalize_Arguments.
3838 (Collect_Arguments): Eliminate empty arguments
3839
3840 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
3841 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
3842 (Check_Project): Return False when Project is No_Project. Return True
3843 when All_Projects is True.
3844 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
3845 All_Projects to True.
3846 Minor reformatting
3847
3848 2005-06-14 Ed Schonberg <schonberg@adacore.com>
3849 Javier Miranda <miranda@adacore.com>
3850 Thomas Quinot <quinot@adacore.com>
3851 Robert Dewar <dewar@adacore.com>
3852 Hristian Kirtchev <kirtchev@adacore.com>
3853 Gary Dismukes <dismukes@adacore.com>
3854
3855 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
3856 anonymous access types, to indicate that the accessibility level of
3857 the type is determined by that of the enclosing declaration.
3858 (Has_Persistent_BSS): New flag
3859 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
3860 of this attribute with functions.
3861 (Is_Primitive_Wrapper): Remove the barrier.
3862 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
3863 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
3864 New subprograms.
3865 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
3866 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
3867 New subprograms.
3868 (Is_Pure_Unit_Access_Type): New flag
3869 (Abstract_Interfaces): Complete the assertion to cover all usages.
3870 (Set_Is_Interface): Complete the assertion to cover all usages.
3871 (Is_Primitive_Wrapper): New attribute.
3872 (Is_Obsolescent): Now applies to all entities (though it is only set
3873 for subprograms currently)
3874 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
3875 which solves various problems concerning access subtypes.
3876 (Has_Persistent_BSS): New flag
3877 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
3878 Remove these subprograms because this attribute is currently
3879 not used.
3880 New entity flags:
3881 Has_Specified_Stream_Input (Flag190)
3882 Has_Specified_Stream_Output (Flag191)
3883 Has_Specified_Stream_Read (Flag192)
3884 Has_Specified_Stream_Write (Flag193)
3885 Present in all type and subtype entities. Set for a given view if the
3886 corresponding stream-oriented attribute has been defined by an
3887 attribute definition clause. When such a clause occurs, a TSS is set
3888 on the underlying full view; the flags are used to track visibility of
3889 the attribute definition clause for partial or incomplete views.
3890 (Is_Pure_Unit_Access_Type): New flag
3891 Clarify use of Is_Internal.
3892 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
3893 internally generated to wrap the invocation of tasks and protected
3894 types that implement interfaces.
3895 (Implementation_Base_Type): Documentation correction
3896 (Is_Obsolescent): Now applies to all entities (though it is only set
3897 for subprograms currently)
3898 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
3899 which solves various problems concerning access subtypes.
3900
3901 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
3902 for examined parameters. Identify unequal parameter list lengths as
3903 non-conformant parameters.
3904 (Overriding_Possible): Do not check for "All" qualifier in declaration
3905 of controlling access parameter, following prescription of AI-404.
3906 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
3907 that build the procedure body that wraps an entry invocation
3908 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
3909 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
3910 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
3911 give support to abstract interface types
3912
3913 * freeze.adb (Freeze_Entity): Issue error message if
3914 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
3915 type has no storage pool (Ada 2005) AI-366.
3916 Also modified to give support to abstract interface types
3917 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
3918 Inline_Always pragma.
3919
3920 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
3921 now begin an entry declaration.
3922 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
3923 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
3924 a subprogram declaration preceded by an overriding indicator.
3925 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
3926 declarations or subprogram declarations preceded by reserved words
3927 "not" or "overriding".
3928 (P_Entry_Declaration): Update comment. Parse and check overriding
3929 indicator, set semantic flags of entry declarations.
3930 (P_Task): New error message in case of private applied
3931 to a task type declaration.
3932 (P_Protected): New error message in case of private applied
3933 to a task type declaration.
3934
3935 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
3936 in which the full view of a type implementing an interface is a
3937 concurrent type.
3938 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
3939 Declare_Inherited_Private_Subprograms): If an explicit operation
3940 overrides an operation that is inherited in the private part, mark the
3941 explicit one as overriding, to enable overriding indicator checks.
3942 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
3943 full view to partial view, to simplify handling in back-end.
3944
3945 * sprint.adb: Print interface lists where needed: derived types,
3946 protected types, task types.
3947 output "is null" for null procedures. Part of implementation of
3948
3949 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
3950 relaxation of rules for access types in pure, shared passive partitions.
3951
3952 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
3953 first read discriminants into temporary objects, performing checks on
3954 the read values, then possibly performing discriminant checks on the
3955 actual (if it is constrained), and only finally reading the components
3956 into a constrained temporary object.
3957 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
3958 case of reading discriminants of a mutable record type to recognize
3959 the new form of the code generated by
3960 Build_Mutable_Record_Read_Procedure.
3961
3962 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
3963 of a simple call to Make_TSS_Name.
3964 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
3965 buffer, in order for Is_TSS to work correctly on local TSS names.
3966
3967 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
3968 Is_Local_Anonymous_Access to check legaliy of attributes in the
3969 context of access components and stand-alone access objects.
3970 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
3971 treated as available for a limited private type if there is an
3972 attribute_definition_clause that applies to its full view, but not in
3973 other cases where the attribute is available for the full view
3974 (specifically, the sole fact that the full view is non-limited does not
3975 make the attribute available for the partial view).
3976 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
3977 non-overloaded intrinsic subprogram.
3978 (Check_Stream_Attribute): Reject an attribute reference for an
3979 unavailable stream attribute even if the prefix is not a limited type
3980 (case of a 'Input attribute reference for an abstract, non-classwide
3981 type)
3982 (Stream_Attribute_Available): New function to determine whether a stream
3983 attribute is available at a place.
3984 (Check_Attribute): Use Stream_Attribute_Available instead of just
3985 testing for TSS presence on the implementation base type.
3986 (Analyze_Attribute): Modified to give support to task interfaces.
3987 (Analyze_Access_Attribute): Add error check for use of an Access (or
3988 Unrestricted_Access) attribute with a subprogram marked as
3989 Inline_Always.
3990 (Analyze_Attribute, case Attribute_Address): Add error check for use of
3991 an Address attribute with a subprogram marked as Inline_Always.
3992 Update Eval_Attribute to handle new value of Width from AI-395
3993
3994 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
3995 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
3996 Factor common code across the stream-oriented attribute circcuits into
3997 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
3998 processing is functionally identical to the previous duplicated one,
3999 except that an expression that denotes an abstract subprogram will now
4000 be rejected, as mandated by AI-195 item 5.
4001
4002 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
4003 Is_Local_Anonymous_Access to apply accessibility checks to access
4004 components and stand-alone access objects.
4005 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
4006 elsewhere.
4007 (Is_Potentially_Persistent_Type): New function
4008 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
4009 a heap-object whose type has a constrained partial view, the object is
4010 unconstrained and the component may depend on a discriminant, making its
4011 renaming illegal.
4012
4013 * sinfo.ads, sinfo.adb
4014 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
4015 (Must_Override): Flag applicable to N_Entry_Declaration.
4016 Indicate that interface_list can appear in single task and single
4017 protected declarations.
4018 Replace Is_Overriding and Not_Overriding with Must_Override and
4019 Must_Not_Override, to better express intent of AI.
4020 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
4021 of an overriding indicator in a subprogram or instance.
4022 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
4023 Add the overriding indicator [[not] overriding] construct to the
4024 following grammar productions:
4025 ENTRY_DECLARATION
4026 GENERIC_INSTANTIATION
4027 SUBPROGRAM_SPECIFICATION
4028
4029 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
4030 can start with an overriding indicator.
4031
4032 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
4033 flags accordingly on subrogram specifications or instances.
4034
4035 * sem_ch8.adb:
4036 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
4037 overriding_indicator, if present, is consistent with status of spec.
4038 Improve error message for null-excluding checks on controlling access
4039 parameters.
4040 (Check_In_Previous_With_Clause): Protect the frontend against
4041 previously reported critical errors in the context clauses.
4042 Save and restore Ada_Version_Explicit, for implementation of AI-362
4043 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
4044 operation verify that controlling formals of the renamed entity that
4045 are access parameters are explicitly non-null.
4046 (Find_Expanded_Name): Improve error message when prefix is an illegal
4047 reference to a private child unit.
4048
4049 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
4050 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
4051 Rewrite to correspond to new wide character names in AI-395
4052
4053 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
4054 default procedures.
4055
4056 2005-06-14 Ed Schonberg <schonberg@adacore.com>
4057 Robert Dewar <dewar@adacore.com>
4058
4059 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
4060 code, not on the bodies of predefined operations, to cut down on
4061 spurious noise.
4062
4063 2005-06-14 Ed Schonberg <schonberg@adacore.com>
4064
4065 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
4066 be expanded in place. The size computation does not require a
4067 subtraction, which would raise an exception on a compiler built with
4068 assertions when the upper bound is Integer'first.
4069 (Flatten): For an array of composite components, take into account the
4070 size of the components to determine whether it is safe to expand the
4071 array into a purely positional representation.
4072
4073 2005-06-14 Thomas Quinot <quinot@adacore.com>
4074
4075 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
4076 denoting a formal parameter into account.
4077
4078 2005-06-14 Ed Schonberg <schonberg@adacore.com>
4079
4080 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
4081 the entry_call alternative of a conditional entry call, wrap the
4082 conditional entry call itself.
4083
4084 2005-06-14 Nicolas Setton <setton@adacore.com>
4085 Ed Schonberg <schonberg@adacore.com>
4086
4087 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
4088 the "simple_choice" member in a variant record, in accordance with the
4089 description in the package spec: the information output for a constant
4090 should be "S number", not "SS number".
4091 (Get_Encoded_Name): Return at once if not generating code. Avoids name
4092 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
4093
4094 2005-06-14 Thomas Quinot <quinot@adacore.com>
4095
4096 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
4097 RACW without any primitives, do not generate the if statement for
4098 dispatching by name in the PolyORB/DSA case, as it would be malformed
4099 (it would have an Elsif_Parts list that is not No_List, but with a
4100 length of 0).
4101
4102 2005-06-14 Robert Dewar <dewar@adacore.com>
4103
4104 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
4105
4106 2005-06-14 Jose Ruiz <ruiz@adacore.com>
4107
4108 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
4109 can determine whether pragma Suppress_Exception_Locations is in effect.
4110
4111 * utils2.c (build_call_raise): Do not pass the file name to the
4112 exception handler if pragma Suppress_Exception_Locations is in effect.
4113 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
4114
4115 2005-06-14 Emmanuel Briot <briot@adacore.com>
4116
4117 * g-debpoo.adb (Deallocate, Dereference): Improve output.
4118
4119 2005-06-14 Nicolas Roche <roche@adacore.com>
4120
4121 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
4122 to ""
4123 (Next_Level): Fix minor bug in handling of ../dir case
4124 (Read): Add dir separator to Directory name so that "" is understood as
4125 "/"
4126
4127 2005-06-14 Pascal Obry <obry@adacore.com>
4128
4129 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
4130 releasing the items.
4131
4132 2005-06-14 Vincent Celier <celier@adacore.com>
4133 Cyrille Comar <comar@adacore.com>
4134
4135 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
4136 with output file descriptor and with output file name.
4137 (Dup, Dup2): Now global procedures as they are used by two subprograms
4138 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
4139
4140 2005-06-14 Thomas Quinot <quinot@adacore.com>
4141
4142 PR ada/6717
4143
4144 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
4145 broadcast address.
4146 (Create_Selector): Bind listening socket used to create the signalling
4147 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
4148 Set listen backlog to 1 to ensure that we detect socket theft by a
4149 failure of our own connect(2) call.
4150 (Check_Selector): Improve documentation of the selector mechanism.
4151 (Broadcast_Inet_Addr): New constant.
4152
4153 2005-06-14 Gary Dismukes <dismukes@adacore.com>
4154
4155 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
4156 type which turns out to be an incomplete and incorrect fix.
4157 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
4158 of the type is declared in a record (for determination of insertion
4159 type).
4160 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
4161 a private type and ensure that the primary entity is used for the type
4162 of the newly created function's V formal by taking the Etype of the
4163 view.
4164
4165 2005-06-14 Javier Miranda <miranda@adacore.com>
4166 Jose Ruiz <ruiz@adacore.com>
4167 Robert Dewar <dewar@adacore.com>
4168 Ed Schonberg <schonberg@adacore.com>
4169
4170 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
4171 that indicates if we are parsing a compilation unit found in a
4172 limited-with clause.
4173 It is use to avoid the circularity check.
4174
4175 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
4176 we are parsing a compilation unit found in a limited-with clause. This
4177 is use to avoid the circularity check.
4178
4179 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
4180 unit as a consequence of parsing a limited-with clause. This is used
4181 to avoid the circularity check.
4182
4183 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
4184 (Analyze_Context): Limited-with clauses are now allowed
4185 in more compilation units.
4186 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
4187 againts previously reported critical errors in context clauses
4188 (Install_Limited_Withed_Unit): Code cleanup plus static detection
4189 of two further errors: renamed subprograms and renamed packages
4190 are not allowed in limited with clauses.
4191 (Install_Siblings): Do not install private_with_clauses on the package
4192 declaration for a non-private child unit.
4193 (Re_Install_Parents): When a parent of the subunit is reinstalled,
4194 reset visibility of child units properly.
4195 (Install_Withed_Unit): When a child unit appears in a with_clause of its
4196 parent, it is immediately visible.
4197
4198 2005-06-14 Ed Schonberg <schonberg@adacore.com>
4199 Emmanuel Briot <briot@adacore.com>
4200
4201 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
4202 declared within an inlined body as referenced, to prevent spurious
4203 warnings.
4204 (Output_One_Ref): If an entity renames an array component, indicate in
4205 the ALI file that this aliases (renames) the array. Capture as well
4206 function renamings that rename predefined operations.
4207 Add information about generic parent for package and subprogram
4208 instances.
4209 (Get_Type_Reference): For a subtype that is the renaming of an actual in
4210 an instantiation, use the first_subtype to ensure that we don't generate
4211 cross-reference information for internal types.
4212 For objects and parameters of a generic private type, retain the '*'
4213 indicator to distinguish such an entity from its type.
4214
4215 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
4216 to store information about instantiated entities.
4217
4218 * ali.adb (Scan_ALI): Add support for parsing the reference to the
4219 generic parent
4220
4221 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
4222 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
4223 information.
4224
4225 2005-06-10 Doug Rupp <rupp@adacore.com>
4226 Arnaud Charlet <charlet@adacore.com>
4227 Olivier Hainque <hainque@adacore.com>
4228 Jose Ruiz <ruiz@adacore.com>
4229
4230 * Make-lang.in: Add initialize.o when needed.
4231 Remove obsolete references to RT_FLAGS.
4232 Add missing dependencies for sdefault.o
4233
4234 * initialize.c: New file.
4235
4236 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
4237 [VMS] cond_signal_table: Fix problem in declaration.
4238 [VMS] __gnat_error_handler: rewrite.
4239 Move all __gnat_initialize() routines to initialize.c
4240 Specialize the former "hpux" section to "hppa hpux", as this is what the
4241 section really is here for and we now have other hpux ports that need
4242 different contents.
4243 (__gnat_adjust_context_for_raise) i386-linux: First version of this
4244 function for this target. Adjust PC by one in the machine context. This
4245 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
4246 it is more reliable to do that in the signal handler itself.
4247 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
4248 flags, so that the handler is passed the context structure to adjust
4249 prior to the raise.
4250 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
4251 SA_SIGINFO sigaction should look like. Call
4252 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
4253 Machine_State_Operations stuff.
4254 Add conditional code so that the x86_64 is also supported.
4255
4256 2005-06-14 Pascal Obry <obry@adacore.com>
4257
4258 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
4259 the library name.
4260
4261 2005-06-14 Robert Dewar <dewar@adacore.com>
4262
4263 * opt.ads, opt.adb: New flags for persistent_bss mode
4264 Add Ada_Version_Explicit, for implementation of AI-362
4265 Add Assertions_Enabled_Config and associated handling
4266 Needed since setting can be changed with Assertion_Policy pragma
4267 Add new flag Warn_On_Ada_2005_Compatibility
4268
4269 * switch-c.adb: Recognize -gnatwy/Y
4270 Set Ada_Version_Explicit, for implementation of AI-362
4271 The -gnatg switch now includes -gnatyu
4272
4273 * usage.adb: Add -gnatwy/Y
4274 Remove wrong asterisk on -gnatwX line
4275 Add line for -gnatyu switch
4276
4277 2005-06-14 Vincent Celier <celier@adacore.com>
4278
4279 * osint.adb (Add_Default_Search_Dirs): Put source and object
4280 directories of project files before directories coming from
4281 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
4282
4283 2005-06-14 Robert Dewar <dewar@adacore.com>
4284
4285 PR ada/15613
4286
4287 * par-ch2.adb (Scan_Pragma_Argument): New procedure
4288 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
4289
4290 2005-06-14 Vincent Celier <celier@adacore.com>
4291
4292 * prep.adb (Preprocess): Ignore error when scanning the first token of
4293 a line.
4294
4295 2005-06-14 Vincent Celier <celier@adacore.com>
4296
4297 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
4298 (Check_Stand_Alone_Library): If the specified reference symbol file does
4299 not exist, only issue a warning when the symbol policy is not
4300 Controlled. And, when symbol policy is Compliant, set the symbol
4301 policy to Autonomous.
4302
4303 2005-06-14 Vincent Celier <celier@adacore.com>
4304
4305 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
4306 when the project file in a with clause is not the last one, that is the
4307 project file name is followed by a comma.
4308 * prj-pp.adb: (First_With_In_List): New Boolean global variable
4309 (Print): Issue list of project files separated by commas in with clauses
4310 according to the values returned by Is_Not_Last_In_List.
4311 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
4312 (Set_Is_Not_Last_In_List): New procedure
4313
4314 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
4315
4316 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
4317
4318 2005-06-14 Robert Dewar <dewar@adacore.com>
4319
4320 * scng.adb: Add call to new Check_EOF routine
4321 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
4322 Add some comments regarding wide character handling
4323
4324 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
4325
4326 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
4327
4328 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
4329 characters are now considered graphic characters and hence yield false
4330 in this call.
4331
4332 * nmake.adt: Modify header so that xnmake does not generate output
4333 files with multiple blank lines.
4334
4335 * treeprs.adt: Remove a blank line so that output from xtreeprs does
4336 not have an extra blank line
4337
4338 2005-06-14 Gary Dismukes <dismukes@adacore.com>
4339
4340 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
4341 expression when the component type is an anonymous access type to
4342 ensure that appropriate accessibility checks are done.
4343
4344 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
4345 expression of an assignment when the target object is of an anonymous
4346 access type. This ensures that required accessibility checks are done.
4347 (One_Bound): Move the check for type Universal_Integer to
4348 Process_Bounds.
4349 (Process_Bounds): Check whether the type of the preanalyzed range is
4350 Universal_Integer, and in that case set Typ to Integer_Type prior
4351 to setting the type of the original range and the calls to One_Bound.
4352
4353 2005-06-14 Ed Schonberg <schonberg@adacore.com>
4354
4355 * sem_case.adb (Expand_Others_Choice): Improve warning.
4356
4357 2005-06-14 Ed Schonberg <schonberg@adacore.com>
4358
4359 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
4360 constraint of full view if present, when other type is discriminated.
4361 (Eval_Relational_Op): Recognize tests of pointer values against Null,
4362 when the pointer is known to be non-null, and emit appropriate warning.
4363
4364 2005-06-14 Robert Dewar <dewar@adacore.com>
4365 Ed Schonberg <schonberg@adacore.com>
4366
4367 PR ada/10671
4368
4369 * sem_prag.adb: Implement pragma Persistent_BSS
4370 Remove obsolete pragma Persistent_Data, Persistent_Object
4371 Set Ada_Version_Explicit, for implementation of AI-362
4372 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
4373 Add processing for pragma Pure_05 and Preelaborate_05
4374 Add processing for Assertion_Policy pragma
4375 Add pragma identifiers for Assert
4376 (Analyze_Pragma, case Assert): Check number of arguments
4377 (Process_Inline): Additional guard against an illegal program, where the
4378 argument of the pragma is undefined, and warnings on redundant
4379 constructs are enabled.
4380 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
4381 Ada_05 to this pragma, specifying that the pragma is only active in
4382 Ada_05 mode.
4383 (Check_Arg_Order): New procedure
4384 Add appropriate calls to this procedure throughout
4385 Also throughout, check entity name before doing any other checks
4386
4387 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
4388 Remove obsolete pragma Persistent_Data, Persistent_Object
4389 Add entries for pragma Pure_05 and Preelaborate_05
4390 Add entries for Assertion_Policy pragma and associated names
4391 Add some names for pragma argument processing
4392
4393 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
4394
4395 2005-06-14 Ed Schonberg <schonberg@adacore.com>
4396
4397 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
4398 appears within a negation (either from source or as a rewriting of
4399 inequality) adjust text of warning accordingly.
4400
4401 2005-06-14 Thomas Quinot <quinot@adacore.com>
4402
4403 * s-strxdr.adb: Follow AI95-00132
4404
4405 2005-06-14 Arnaud Charlet <charlet@adacore.com>
4406
4407 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
4408
4409 2005-06-14 Arnaud Charlet <charlet@adacore.com>
4410 Jose Ruiz <ruiz@adacore.com>
4411
4412 * s-tposen.adb, s-tpobop.adb
4413 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
4414 the exception id.
4415 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
4416 there is no violation of the Max_Entry_Queue_Length restriction (if it
4417 has been set); Program_Error is raised otherwise.
4418 (Requeue_Call): Before requeuing the task on the target entry queue we
4419 check that there is no violation of the Max_Entry_Queue_Length
4420 restriction (if it has been set); Program_Error is raised otherwise.
4421
4422 2005-06-14 Robert Dewar <dewar@adacore.com>
4423
4424 * styleg.adb: Fix several remaining problems in -gnatyu switch
4425 Blank line count not reset at start
4426 Scanning outside source buffer in some cases
4427 Confusing message for blanks at end of file
4428 Non-empty blank lines not recognized
4429
4430 * nmake.adt: Modify header so that xnmake does not generate output
4431 files with multiple blank lines.
4432
4433 * treeprs.adt: Remove a blank line so that output from xtreeprs does
4434 not have an extra blank line
4435
4436 2005-06-14 Sergey Rybin <rybin@adacore.com>
4437
4438 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
4439
4440 2005-06-14 Doug Rupp <rupp@adacore.com>
4441 Vincent Celier <celier@adacore.com>
4442
4443 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
4444 Update copyright.
4445
4446 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
4447 Remove "Library" command.
4448 Change keyword for style check -gnatyd from NOCRLF to
4449 DOS_LINE_ENDINGS.
4450 Remove useless second style check keyword NONE
4451 Remove help documentation for inexistent style check keyword
4452 RM_COLUMN_LAYOUT.
4453 Add help documentation for style check keywords DOS_LINE_ENDINGS,
4454 UNNECESSARY_BLANK_LINES and XTRA_PARENS
4455 Add UNNECESSARY_BLANK_LINES for -gnatyu
4456 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
4457
4458 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
4459
4460 2005-06-14 Vincent Celier <celier@adacore.com>
4461
4462 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
4463 gprmake was invoked with -d.
4464 (Compile_Sources): If -d was used, output the "completed ..." message
4465 for each compilation.
4466 (Scan_Arg): Recognize new switch -d
4467 When -c and at least one main is specified, set
4468 Unique_Compile to True to guarantee that no other sources will be
4469 compiled.
4470
4471 2005-06-14 Matthew Heaney <heaney@adacore.com>
4472
4473 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
4474 * a-swuwha.ads, a-swuwha.adb: New files
4475
4476 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
4477 * a-szuzha.ads, a-szuzha.adb: New files.
4478
4479 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
4480 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
4481 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
4482 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
4483 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
4484 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
4485 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
4486 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
4487 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
4488 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
4489 Ada 2005 RM.
4490
4491 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
4492 Olivier Hainque <hainque@adacore.com>
4493 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4494 Pascal Obry <obry@adacore.com>
4495
4496 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
4497
4498 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
4499 making a temporary around a procedure call because of non-addressable
4500 actual parameter.
4501 (process_freeze_entity): If entity is a private type, capture size
4502 information that may have been computed for the full view.
4503 (tree_transform, case N_Allocator): If have initializing expression,
4504 check type for Has_Constrained_Partial_View and pass that to
4505 build_allocator.
4506 (tree_transform, case N_Return_Statement): Pass extra arg to
4507 build_allocator.
4508
4509 * decl.c (annotate_value): Remove early return if -gnatR is not
4510 specified.
4511 (gnat_to_gnu_field): Don't make a packable type for a component clause
4512 if the position is byte aligned, the field is aliased, and the clause
4513 size isn't a multiple of the packable alignment. It serves no useful
4514 purpose packing-wise and would be rejected later on.
4515 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
4516
4517 PR ada/20515
4518 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
4519 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
4520 instead.
4521 (create_concat_name): Idem.
4522
4523 2005-06-10 Robert Dewar <dewar@adacore.com>
4524 Eric Botcazou <ebotcazou@adacore.com>
4525 Ben Brosgol <brosgol@adacore.com>
4526 Cyrille Comar <comar@adacore.com>
4527 Sergey Rybin <rybin@adacore.com>
4528 Pascal Obry <obry@adacore.com>
4529
4530 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
4531 Document second argument (Ada_05) of pragma Obsolescent
4532 Add note that call to subprogram marked with pragma Obsolescent
4533 is now considered to be a violation of program Restrictions
4534 (No_Obsolescent_Features).
4535 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
4536 that only machine-dependent attributes are supported.
4537
4538 * gnat_ugn.texi:
4539 Commented out menu lines and empty section for gnatclean examples
4540 Document -gnatwy/Y
4541 Fix some over long lines
4542 Clarify and enhance documentation of ADA_PROJECT_PATH.
4543 Rework section 2.11.2(3) about linking with a non-GNU compiler.
4544 Mention new switch -fcallgraph-info.
4545 Mention new switch -fstack-usage.
4546 For gnatpp, replace '-notab' with '-N' and add this option to Index
4547 Corrected VMS example.
4548 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
4549 Minor reformatting
4550 Add documentation for -gnatyu switch (unnecessary blank lines)
4551 Document new switch -U for GNAT PRETTY and GNAT METRIC
4552 Add note about Stdcall being handled as C convention on non Windows OS.
4553 Remove some junk typo in description of gnatbind -S switch
4554 Remove reference to Extensions_Allowed pragma
4555 Document the new order of the directories to be searched (source and
4556 object directories of project files before directories in ADA_*_PATH
4557 environment variables.
4558
4559 * g-trasym.ads: Document that IRIX is supported
4560
4561 2005-06-10 Arnaud Charlet <charlet@adacore.com>
4562
4563 * Makefile.in: Add initialize.o when needed.
4564 Adapt to new VMS package body Symbols and subunits
4565 No specialized version of a-sytaco is needed for VxWorks.
4566
4567 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
4568 * a-zchara.ads, a-widcha.ads: New files.
4569
4570 * system-hpux-ia64.ads: New file.
4571
4572 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
4573 is imported from the VxWorks kernel.
4574
4575 2005-06-14 Robert Dewar <dewar@adacore.com>
4576
4577 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
4578 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
4579 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
4580 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
4581 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
4582 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
4583 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
4584 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
4585 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
4586 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
4587 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
4588 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
4589
4590 2005-06-14 Thomas Quinot <quinot@adacore.com>
4591
4592 * xeinfo.adb: Fix typo in comment
4593
4594 2005-06-14 Javier Miranda <miranda@adacore.com>
4595
4596 * repinfo.ads: Fix typo in comment
4597
4598 2005-06-14 Gary Dismukes <dismukes@adacore.com>
4599
4600 * s-finimp.adb (Parent_Tag): Delete this imported function (function
4601 Parent_Tag is now in the visible part of Ada.Tags).
4602 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
4603 using imported function.
4604
4605 2005-06-14 Bernard Banner <banner@adacore.com>
4606
4607 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
4608 also apply for handling support for VxSim 653.
4609
4610 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
4611
4612 * xsnames.adb: Add automatic generation of snames.h.
4613
4614 2005-06-14 Thomas Quinot <quinot@adacore.com>
4615
4616 * gen-soccon.c: Add IP_MULTICAST_IF constant
4617 Minor reformatting and adjustments to prevent warnings.
4618
4619 2005-06-14 Pascal Obry <obry@adacore.com>
4620
4621 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
4622
4623 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
4624
4625 * trans.c (gnat_gimplify_expr): Call
4626 recompute_tree_invarant_for_addr_expr when we change
4627 the operand of the ADDR_EXPR.
4628
4629 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4630
4631 * misc.c: Don't include errors.h.
4632
4633 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4634
4635 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
4636
4637 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
4638
4639 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
4640 comment typos.
4641 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
4642
4643 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
4644
4645 PR ada/20270
4646 * Makefile.in: Make TGT_LIB behave correctly.
4647
4648 2005-04-23 DJ Delorie <dj@redhat.com>
4649
4650 * misc.c: Adjust warning() callers.
4651
4652 2005-04-16 Laurent GUERBY <laurent@guerby.net>
4653
4654 PR ada/18847
4655 * a-nudira.adb (Value): Check for valid string.
4656 * a-nuflra.adb (Value): Likewise.
4657
4658 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
4659
4660 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
4661
4662 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
4663
4664 * adaint.c, init.c, tracebak.c: Fix comment typos.
4665 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
4666
4667 2005-04-07 Laurent GUERBY <laurent@guerby.net>
4668 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4669
4670 * Makefile.in: Add make ifeq define for hppa linux tasking support.
4671 * system-hpux.ads: Define Signed_Zeros to be True.
4672 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
4673
4674 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
4675
4676 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
4677 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
4678 typos.
4679
4680 2005-03-30 Tom Tromey <tromey@redhat.com>
4681
4682 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
4683
4684 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
4685
4686 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
4687
4688 2005-03-29 Robert Dewar <dewar@adacore.com>
4689
4690 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
4691 fixed-point expression has value that is not a multiple of the Small
4692 value.
4693
4694 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
4695
4696 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
4697 nanoseconds.
4698
4699 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
4700
4701 2005-03-29 Vincent Celier <celier@adacore.com>
4702
4703 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
4704 (Build_Dynamic_Library.Version_String): Return the empty string when
4705 Lib_Version is empty or when the symbol policy is not Autonomous.
4706
4707 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
4708 a symbol is not in the reference symbol file, increase the Major ID
4709 and set the Minor ID to 0.
4710 Use gsmatch=lequal instead of gsmatch=equal
4711
4712 2005-03-29 Doug Rupp <rupp@adacore.com>
4713
4714 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
4715 name and translate.
4716
4717 2005-03-29 Javier Miranda <miranda@adacore.com>
4718
4719 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
4720 (Inherit_DT): The first formal has been redefined as a Tag.
4721 This allows us the removal of the subprogram Get_TSD.
4722 (TSD): Replace the call to Get_TSD by the actual code.
4723
4724 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
4725 (Make_DT): Upgrade the call to Inherit_TSD according to the
4726 new interface: the first formal is now a Tag.
4727
4728 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
4729 redefined as a Tag.
4730 This change allows us to remove the subprogram Get_TSD.
4731 (CPP_Get_TSD): Subprogram removed.
4732 (TSD): Replace the call to CPP_Get_TSD by the actual code.
4733
4734 * rtsfind.ads: Remove support to call the run-time
4735 subprogram Get_TSD
4736
4737 2005-03-29 Robert Dewar <dewar@adacore.com>
4738
4739 * errutil.adb, errout.adb:
4740 Minor comment updates on Line_Terminator references
4741
4742 * par-ch10.adb: Add ??? comment about line terminator
4743
4744 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
4745 (check dos line terminator).
4746 (Check_Line_Max_Length): New procedure, split off from the existing
4747 Check_Line_Terminator routine. Separating this out allows -gnatyf to
4748 be properly recognized.
4749
4750 * styleg.adb: Add ??? comment for line terminator reference
4751
4752 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
4753 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
4754
4755 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
4756 (check dos line terminator).
4757 (Check_Line_Max_Length): New procedure, split off from the existing
4758 Check_Line_Terminator routine. Separating this out allows -gnatyf to
4759 be properly recognized.
4760
4761 * stylesw.ads, stylesw.adb:
4762 Add handling for new -gnatyd switch (check dos line terminator)
4763
4764 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
4765 Recognize -gnatwb/-gnatwB switches
4766 Include Warn_On_Bad_Fixed_Value for -gnatg
4767
4768 * usage.adb:
4769 Add line for new -gnatyd switch (check dos line terminator)
4770
4771 * usage.adb: Add lines for -gnatwb/-gnatwB
4772
4773 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
4774
4775 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
4776
4777 * gnat_ugn.texi: Fix overlong lines
4778 Document new -gnatyd switch
4779 Document new -gnatwb/-gnatwB switches
4780
4781 2005-03-29 Ed Schonberg <schonberg@adacore.com>
4782
4783 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
4784 order to retrieve the component list of the type, before examining
4785 individual components.
4786
4787 * sem_type.adb (Covers): Types are compatible if one is the base type
4788 of the other, even though their base types might differ when private
4789 views are involved.
4790
4791 2005-03-29 Thomas Quinot <quinot@adacore.com>
4792
4793 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
4794 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
4795 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
4796 analyzed if expansion is disabled (which could otherwise cause spurious
4797 error messages if expansion has been disabled due to previous
4798 (unrelated) errors).
4799
4800 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
4801 is disabled, the entity denoted by the argument is the access type
4802 itself, not an underlying record type, so there is no need to go back
4803 to the Corresponding_Remote_Type.
4804
4805 2005-03-29 Gary Dismukes <dismukes@adacore.com>
4806 Robert Dewar <dewar@adacore.com>
4807
4808 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
4809 expand a call to an instance of
4810 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
4811 Constructor actual of the instance. A class-wide membership
4812 check is also generated, to ensure that the tag passed to the instance
4813 denotes a type in the class.
4814 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
4815 of Name_Generic_Dispatching_Constructor.
4816
4817 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
4818 05 unit for AI-260-02).
4819
4820 * a-tgdico.ads: New file.
4821
4822 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
4823 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
4824
4825 * snames.ads, snames.adb (Preset_Names): Add entry for
4826 Generic_Dispatching_Constructor.
4827
4828 PR ada/20300
4829
4830 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
4831 character type cases.
4832 (Analyze_Subprogram_Renaming): Add special handling for
4833 the case of renaming of stream attributes when the renaming denotes a
4834 generic formal subprogram association for an abstract formal subprogram.
4835 Check that the attribute is a primitive stream attribute (and not
4836 a class-wide stream attribute) and then rewrite the attribute name
4837 as the name of the appropriate compiler-generated stream primitive.
4838
4839 2005-03-29 Robert Dewar <dewar@adacore.com>
4840
4841 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
4842 recursive calls.
4843 (Is_Possibly_Unaligned_Object): Correct typo that
4844 resulted in inaccurate result for unaligned scalars within records.
4845
4846 2005-03-29 Ed Schonberg <schonberg@adacore.com>
4847
4848 * freeze.adb (Freeze_Record_Type): If the type of the component is an
4849 itype whose parent is controlled and not yet frozen, do not create a
4850 freeze node for the itype if expansion is disabled.
4851
4852 2005-03-29 Vincent Celier <celier@adacore.com>
4853
4854 * make.adb (Gnatmake): Don't fail if the main project file is declared
4855 as having no Ada sources. Do not display message "no sources to
4856 compile" in quiet output.
4857
4858 2005-03-29 Doug Rupp <rupp@adacore.com>
4859
4860 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
4861 extra tools.
4862
4863 2005-03-29 Robert Dewar <dewar@adacore.com>
4864
4865 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
4866 child.
4867
4868 2005-03-29 Robert Dewar <dewar@adacore.com>
4869
4870 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
4871 missing TYPE Improve the error message generated when compiling a
4872 limited interface in Ada83 or Ada95 mode.
4873
4874 2005-03-29 Robert Dewar <dewar@adacore.com>
4875
4876 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
4877 rather than proceed ahead using a junk attribute name.
4878
4879 2005-03-29 Vincent Celier <celier@adacore.com>
4880
4881 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
4882
4883 * prj-part.adb (Parse_Single_Project): Set the location of a project
4884 on its defining identifier, rather than on the reserved word "project".
4885
4886 * prj-proc.adb (Expression): Adapt to the fact that default of external
4887 references may be string expressions, not always literal strings.
4888 (Recursive_Process): Set Display_Name equal to Name
4889 when Location is No_Location, that is when there is no actual file.
4890 Get the Display_Name of the project from the source, when it is not a
4891 virtual project.
4892 (Process): Use the Display_Name in error messages
4893
4894 * prj-strt.adb (External_Reference): Allow default to be string
4895 expressions, not only literal strings.
4896
4897 2005-03-29 Vincent Celier <celier@adacore.com>
4898
4899 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
4900 file and the reference symbol file to be the same file.
4901
4902 2005-03-29 Thomas Quinot <quinot@adacore.com>
4903
4904 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
4905 forbid conversion of a local access-to-subprogram type to a remote one.
4906
4907 * sem_util.adb (Wrong_Type): For a record type that is the expanded
4908 equivalent type for a remote access-to-subprogram type, go back to the
4909 original RAS entity when displaying an error message, so the casing is
4910 the original source casing.
4911
4912 2005-03-29 Robert Dewar <dewar@adacore.com>
4913
4914 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
4915 on param update.
4916
4917 2005-03-29 Ed Schonberg <schonberg@adacore.com>
4918
4919 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
4920 subtype if code is being pre-analyzed, to prevent un-expanded
4921 references to protected formals, among others.
4922 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
4923 interpretation that can be a call, include the result of the call as a
4924 possible interpretation of the dereference.
4925
4926 * sem_ch5.adb (Process_Bounds): Determine type of range by
4927 pre-analyzing a copy of the original range, and then analyze the range
4928 with the expected type.
4929
4930 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
4931 with an overloaded prefix where not all interpretations yield an
4932 access to subprogram, do not rewrite node as a call.
4933 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
4934 the node as a call once the context identifies the interpretation of
4935 the prefix whose call yields the context type.
4936 (Valid_Conversion): For the case of a conversion between
4937 local access-to-subprogram types, check subtype conformance using
4938 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
4939 detailed error message.
4940
4941 2005-03-29 Ed Schonberg <schonberg@adacore.com>
4942
4943 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
4944 indicator, indicate that the formal can never be null.
4945 (Process_Formals): If a formal has a non_null indicator, insert the
4946 resulting subtype immediately before the enclosing subprogram decl,
4947 and not at the beginning of the corresponding declarative part, to
4948 prevent access before elaboration (Ada2005).
4949
4950 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4951
4952 PR ada/19956
4953 * utils.c (finish_record_type): Use variable_size when setting sizes.
4954
4955 2005-03-29 Robert Dewar <dewar@adacore.com>
4956
4957 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
4958 guarantee Unix style line terminators for the output files, even when
4959 running on windows.
4960
4961 2005-03-29 Robert Dewar <dewar@adacore.com>
4962
4963 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
4964 buffer if an exception is raised.
4965
4966 2005-03-29 Ed Falis <falis@adacore.com>
4967
4968 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
4969 VxWorks 653 1.4
4970
4971 2005-03-29 Robert Dewar <dewar@adacore.com>
4972
4973 * sem_util.ads: Minor reformatting
4974 * gnat_rm.texi: Minor editing.
4975
4976 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
4977
4978 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
4979 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
4980
4981 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
4982
4983 * adaint.c (__gnat_portable_spawn): Adjust cast.
4984
4985 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
4986
4987 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
4988
4989 2005-03-17 Pascal Obry <obry@adacore.com>
4990
4991 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
4992 used.
4993
4994 * expect.c (__gnat_waitpid): Moved here from adaint.c.
4995 Reimplement under Win32 using Win32 API.
4996
4997 (__gnat_kill) [Win32]: Properly close the process handle before leaving
4998 this routine.
4999
5000 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
5001
5002 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
5003 (DECL_RENAMED_OBJECT): New accessor macro.
5004 (SET_DECL_RENAMED_OBJECT): New setter macro.
5005
5006 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
5007 object in all cases. Attach the renamed object to the VAR_DECL.
5008 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
5009 field is not prescribed.
5010
5011 * misc.c (gnat_handle_option): Handle -gnatO separately.
5012 (gnat_print_decl) <VAR_DECL>: New case.
5013 Print the DECL_RENAMED_OBJECT node.
5014
5015 * lang.opt: Declare separate -gnatO option.
5016
5017 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
5018 pointer, replace it with the renamed object.
5019 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
5020 pointer type if the source is not a fat pointer type whose underlying
5021 array has the same non-zero alias set as that of the destination array.
5022
5023 2005-03-17 Javier Miranda <miranda@adacore.com>
5024
5025 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
5026 (Get_Inheritance_Depth): Removed.
5027 (Set_Inheritance_Depth): Removed.
5028
5029 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
5030 subprogram Get_Expanded_Name because it is not referenced by the
5031 frontend.
5032
5033 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
5034 (CPP_Get_Inheritance_Depth): Removed.
5035 (CPP_Set_Inheritance_Depth): Removed.
5036
5037 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
5038
5039 2005-03-17 Robert Dewar <dewar@adacore.com>
5040
5041 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
5042 3, since we now expect GCC 3 to do all the work.
5043
5044 2005-03-17 Javier Miranda <miranda@adacore.com>
5045
5046 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
5047 of one barrier to avoid wrong usage of this attribute.
5048
5049 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
5050 First_Private_Entity.
5051
5052 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
5053 the subprogram against wrong usage.
5054 Adapt the code to traverse the entities in the
5055 scope of a record_type because in addition to its usage regarding
5056 packages, this subprogram is also called by Expand_N_Freeze_Entity
5057 to install the visible declarations of the enclosing scope of a
5058 record_type_with_private to establish the proper visibility before
5059 freezing the entity and related subprograms.
5060
5061 2005-03-17 Ed Schonberg <schonberg@adacore.com>
5062
5063 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
5064 entry formals.
5065
5066 2005-03-17 Thomas Quinot <quinot@adacore.com>
5067
5068 * exp_ch3.adb (Check_Attr): New subprogram.
5069 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
5070 into a new Check_Attr subprogram, in order to provide a more
5071 explanatory error message (including the name of the missing attribute).
5072 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
5073 subprogram determines whether a default implementation exists for a
5074 given stream attribute.
5075 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
5076 Determine whether to generate a default implementation for each stream
5077 attribute separately, as this depends on the specific attribute.
5078
5079 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
5080 limited extension where a stream attribute is missing for a limited
5081 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
5082 generate a bogus reference to the missing attribute to prevent
5083 cascaded errors. Instead, generate a null statement.
5084
5085 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
5086 available for a limited type if it has been specified for an ancestor
5087 of the type.
5088
5089 2005-03-17 Ed Schonberg <schonberg@adacore.com>
5090
5091 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
5092 entity is an operator.
5093
5094 2005-03-17 Thomas Quinot <quinot@adacore.com>
5095
5096 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
5097 spec, to make this predicate available to other units.
5098
5099 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
5100 reimplementing it.
5101
5102 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
5103 when no distribution runtime library is available.
5104
5105 * sem_res.adb, sem_dist.adb: Disable expansion of remote
5106 access-to-subprogram types when no distribution runtime library is
5107 available.
5108 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
5109 predicate available to other units.
5110
5111 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
5112 spec, to make this predicate available to other units.
5113
5114 2005-03-17 Vincent Celier <celier@adacore.com>
5115
5116 * make.adb (Insert_Project_Sources): Make sure the Q is always
5117 initialized.
5118
5119 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
5120 the default for the tree, not the global default naming.
5121
5122 * prj-proc.adb (Recursive_Process): No need to put the default naming
5123 in the project data, it's already there.
5124
5125 2005-03-17 Doug Rupp <rupp@adacore.com>
5126
5127 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
5128
5129 * 5xcrtl.ads: Renamed to...
5130 * s-crtl-vms64.ads: ...this new file
5131
5132 2005-03-17 Robert Dewar <dewar@adacore.com>
5133
5134 PR ada/19519
5135
5136 * namet.adb (Copy_One_Character): Set proper wide character encoding
5137 for upper half character if we have upper half encoding.
5138
5139 2005-03-17 Robert Dewar <dewar@adacore.com>
5140
5141 * par.adb (Par): Improved msg for attempt to recompile predefined unit
5142
5143 2005-03-17 Thomas Quinot <quinot@adacore.com>
5144
5145 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
5146 tagged limited type, the TSS is a newly built renaming declaration:
5147 insert it using Set_TSS, not Copy_TSS.
5148
5149 2005-03-17 Javier Miranda <miranda@adacore.com>
5150
5151 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
5152 Try_Object_Operation): Analyze the object that is accessible
5153 through the prefix of the subprogram call before we apply
5154 the transformation of the object-operation notation.
5155
5156 2005-03-17 Jose Ruiz <ruiz@adacore.com>
5157
5158 * s-taprob.adb (Initialize_Protection): Initialize the protected
5159 object's owner to Null_Task.
5160 (Lock): If pragma Detect_Blocking is in effect and the caller of this
5161 procedure is already the protected object's owner then Program_Error
5162 is raised. In addition the protected object's owner is updated.
5163 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
5164 of this procedure is already the protected object's owner then
5165 Program_Error is raised.
5166 In addition the protected object's owner is updated.
5167 (Unlock): Remove the ownership of the protected object.
5168
5169 * s-taprob.ads (Protection): Add the field Owner, used to store the
5170 protected object's owner.
5171 This component is needed for detecting one type of potentially blocking
5172 operations (external calls on a protected subprogram with the same
5173 target object as that of the protected action). Document the rest of
5174 the components.
5175
5176 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
5177 Initialize the protected object's owner to Null_Task.
5178 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
5179 caller of this procedure is already the protected object's owner then
5180 Program_Error is raised.
5181 Do not raise Program_Error when this procedure is called from a
5182 protected action.
5183 (Unlock_Entries): Remove the ownership of the protected object.
5184 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
5185 of this procedure is already the protected object's owner then
5186 Program_Error is raised.
5187 Do not raise Program_Error when this procedure is called from
5188 a protected action.
5189
5190 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
5191 used to store the protected object's owner.
5192
5193 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
5194 effect and this procedure (a potentially blocking operation) is called
5195 from whithin a protected action, Program_Error is raised.
5196 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
5197 and this procedure (a potentially blocking operation) is called from
5198 whithin a protected action, Program_Error is raised.
5199
5200 2005-03-17 Vincent Celier <celier@adacore.com>
5201 Nicolas Setton <setton@adacore.com>
5202
5203 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
5204 switch, not supported by the linker on Darwin. Add '_' before
5205 <library>init, as this character is added unconditionally by the
5206 compiler.
5207 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
5208 correct one ".dylib". This fixes detection of the archive files when
5209 building library projects.
5210
5211 2005-03-17 Vincent Celier <celier@adacore.com>
5212
5213 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
5214 -gnat83, -gnat95 and -gnat05.
5215
5216 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
5217
5218 * gnat_ugn.texi: Document gnatmem restriction
5219
5220 2005-03-17 Thomas Quinot <quinot@adacore.com>
5221
5222 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
5223 cleanup
5224
5225 2005-03-17 Robert Dewar <dewar@adacore.com>
5226
5227 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
5228 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
5229 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
5230
5231 * casing.adb: Comment improvements
5232
5233 2005-03-17 Pascal Obry <obry@adacore.com>
5234
5235 * g-expect.adb: Minor reformatting.
5236
5237 2005-03-15 Zack Weinberg <zack@codesourcery.com>
5238
5239 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
5240 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
5241 to dependencies.
5242
5243 2005-03-15 Vincent Celier <celier@adacore.com>
5244
5245 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
5246 Add new parameter In_Tree to specify the project tree: needed
5247 by the project manager. Adapt to changes in project manager
5248 using new parameter In_Tree.
5249
5250 2005-03-15 Jakub Jelinek <jakub@redhat.com>
5251
5252 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
5253 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
5254 ada/bldtools to avoid make -jN failures.
5255
5256 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
5257
5258 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
5259 to NULL_TREE on entry.
5260
5261 2005-03-15 Robert Dewar <dewar@adacore.com>
5262
5263 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
5264 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
5265 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
5266 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
5267 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
5268 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
5269 system-interix.ads, system-solaris-sparc.ads,
5270 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
5271 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
5272 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
5273 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
5274 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
5275 Compiler_System_Version to be False.
5276
5277 * opt.ads: Add new flag Opt.Address_Is_Private
5278
5279 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
5280 Add new parameter Compiler_System_Version to avoid checking for
5281 completeness of parameters when compiler is compiling itself.
5282 Allows old versions of GNAT to be compiled with new compiler.
5283
5284 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
5285
5286 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
5287 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
5288 calling thread.
5289 (Stack_Base_Available): New flag.
5290 (Get_Page_Size): New overloaded functions imported from C.
5291 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
5292 PROT_ON, PROT_OFF): New constants.
5293 (mprotect): New function imported from C.
5294 (pthread_teb_t): New record type.
5295
5296 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
5297 (Create_Task): Account for the Yellow Zone and the guard page.
5298
5299 2005-03-15 Vincent Celier <celier@adacore.com>
5300
5301 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
5302 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
5303 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
5304 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
5305 Library_File_Name_For): Add new parameter In_Tree
5306 to specify the project tree: needed by the project manager.
5307 Adapt to changes in project manager using new parameter In_Tree.
5308 Remove local imports, use functions in System.CRTL.
5309
5310 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
5311 to use the project manager.
5312
5313 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
5314 In_Tree to designate the project tree. Adapt to changes in the project
5315 manager, using In_Tree.
5316
5317 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
5318 Copy_Interface_Sources): Add new parameter In_Tree to specify the
5319 project tree: needed by the project manager.
5320 (Build_Library): Check that Arg'Length >= 6 before checking if it
5321 contains "--RTS=...".
5322
5323 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
5324 Library_File_Name_For): Add new parameter In_Tree to specify the
5325 project tree: needed by the project manager.
5326
5327 * prj.ads, prj.adb: Major modifications to allow several project trees
5328 in memory at the same time.
5329 Change tables to dynamic tables and hash tables to dynamic hash
5330 tables. Move tables and hash tables from Prj.Com (in the visible part)
5331 and Prj.Env (in the private part). Move some constants from the visible
5332 part to the private part. Make other constants deferred.
5333 (Project_Empty): Make it a variable, not a function
5334 (Empty_Project): Add parameter Tree. Returns the data with the default
5335 naming data of the project tree Tree.
5336 (Initialize): After updating Std_Naming_Data, copy its value to the
5337 component Naming of Project Empty.
5338 (Register_Default_Naming_Scheme): Use and update the default naming
5339 component of the project tree, instead of the global variable
5340 Std_Naming_Data.
5341 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
5342 Tree is not defaulted, return the default naming data of the Tree.
5343 (Initial_Buffer_Size): Constant moved from private part
5344 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
5345 variables initialized in procedure Initialize.
5346 (Add_To_Buffer): Add two in out parameters to replace global variables
5347 Buffer and Buffer_Last.
5348 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
5349 functions.
5350 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
5351 hash tables.
5352 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
5353 for the project tree.
5354 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
5355 constant at the beginning of the package spec, so that they cane be used
5356 in subprograms before their full declarations.
5357 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
5358 (Empty_Project): Add parameter of type Project_Node_Ref
5359 (Private_Project_Tree_Data): Add component Default_Naming of type
5360 Naming_Data.
5361 (Buffer, Buffer_Last): remove global variables
5362 (Add_To_Buffer): Add two in out parameters to replace global variables
5363 Buffer and Buffer_Last.
5364 (Current_Packages_To_Check): Remove global variable
5365 (Empty_Name): Move to private part
5366 (No-Symbols): Make it a constant
5367 (Private_Project_Tree_Data): New type for the private part of the
5368 project tree data.
5369 (Project_Tree_Data): New type for the data of a project tree
5370 (Project_Tree_Ref): New type to designate a project tree
5371 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
5372 for the project tree.
5373
5374 * prj-attr.ads: Add with Table; needed, as package Prj no longer
5375 imports package Table.
5376
5377 * prj-com.adb: Remove empty, no longer needed body
5378
5379 * prj-com.ads: Move most of the content of this package to package Prj.
5380
5381 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
5382 designate the project node tree and Packages_To_Check to replace
5383 global variable Current_Packages_To_Check.
5384 Add new parameters In_Tree and Packages_To_Check to local subprograms,
5385 when needed. Adapt to changes in project manager with project node tree
5386 In_Tree.
5387
5388 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
5389 project tree to most subprograms. Move tables and hash tables to
5390 private part of package Prj.
5391 Adapt to changes in project manager using project tree In_Tree.
5392
5393 * prj-makr.adb (Tree): New constant to designate the project node tree
5394 Adapt to change in project manager using project node tree Tree
5395
5396 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
5397 display the Library_Src_Dir and the Library_Dir.
5398 Add new parameter In_Tree to designate the project node tree to most
5399 subprograms. Adapt to changes in the project manager, using project tree
5400 In_Tree.
5401 (Check_Naming_Scheme): Do not alter the casing on platforms where
5402 the casing of file names is not significant.
5403 (Check): Add new parameter In_Tree to designate the
5404
5405 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
5406 designate the project tree.
5407 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
5408
5409 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
5410 to replace those that were in the private part of package Prj.
5411 Add new parameter In__Tree to designate the project node tree to most
5412 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
5413 (Post_Parse_Context_Clause): When specifying the project node of a with
5414 clause, indicate that it is a limited with only if there is "limited"
5415 in the with clause, not necessarily when In_Limited is True.
5416 (Parse): Add new parameter In_Tree to designate the project node tree
5417
5418 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
5419 designate the project node tree. Adapt to change in Prj.Tree with
5420 project node tree In_Tree.
5421
5422 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
5423 tree In_Tree in the call to function Empty_Process to give its initial
5424 value to the project data Processed_Data.
5425 Add new parameters In_Tree to designate the project tree and
5426 From_Project_Node_Tree to designate the project node tree to several
5427 subprograms. Adapt to change in project manager with project tree
5428 In_Tree and project node tree From_Project_Node_Tree.
5429
5430 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
5431 to replace those that were in the private part of package Prj.
5432 Add new parameter In_Tree to designate the project node tree to most
5433 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
5434
5435 * prj-tree.ads, prj-tree.adb: Add new parameter of type
5436 Project_Node_Tree_Ref to most subprograms.
5437 Use this new parameter to store project nodes in the designated project
5438 node tree.
5439 (Project_Node_Tree_Ref): New type to designate a project node tree
5440 (Tree_Private_Part): Change table to dynamic table and hash tables to
5441 dynamic hash tables.
5442
5443 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
5444 the project tree to most subprograms. Adapt to changes in project
5445 manager using project tree In_Tree.
5446
5447 * makegpr.adb (Project_Tree): New constant needed to use project
5448 manager.
5449
5450 2005-03-15 Olivier Hainque <hainque@adacore.com>
5451
5452 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
5453 for sigactions with SA_SIGINFO set. Call
5454 __gnat_adjust_context_for_raise before raising, to perform the
5455 potentially required adjustments to the machine context for the GCC
5456 unwinder.
5457
5458 * raise.h (__gnat_adjust_context_for_raise): New prototype.
5459
5460 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
5461 Adjust PC by one in the provided machine context.
5462 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
5463 so that the handler is passed the context structure to adjust prior to
5464 the raise.
5465 (__gnat_error_handler) HPUX: Adjust the signature to match what an
5466 SA_SIGINFO sigaction should look like. Call
5467 __gnat_adjust_context_for_raise before actually raising.
5468 (__gnat_adjust_context_for_raise): Default noop to help PC
5469 adjustments before raise from signal handlers.
5470 (__gnat_error_handler): Indirectly call a predicate function to
5471 determine if a condition should be resignaled or not.
5472 (__gnat_set_resignal_predicate): User interface to modify the predicate.
5473 (__gnat_default_resignal_p): Default GNAT predicate.
5474
5475 2005-03-15 Doug Rupp <rupp@adacore.com>
5476
5477 * adaint.c: Prefix #include of VMS system header files with vms/
5478 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
5479 Do not define a dummy function "convert_addresses" under Darwin,
5480 not needed.
5481
5482 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
5483 with vms/
5484
5485 2005-03-15 Nicolas Setton <setton@adacore.com>
5486
5487 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
5488 PPC/AIX.
5489
5490 2005-03-15 Robert Dewar <dewar@adacore.com>
5491
5492 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
5493 AI-386.
5494
5495 * a-retide.ads: Minor comment changes
5496
5497 2005-03-15 Robert Dewar <dewar@adacore.com>
5498
5499 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
5500 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
5501 Realloc_For_Chunk to private part of package.
5502 New subprograms for AI-301
5503
5504 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
5505 Get_Line procedure.
5506 Avoid unnecessary use of Get/Set_Wide_String
5507
5508 2005-03-15 Robert Dewar <dewar@adacore.com>
5509
5510 PR ada/13470
5511
5512 * a-stunau.ads, a-stunau.adb:
5513 Change interface to allow efficient (and correct) implementation
5514 The previous changes to allow extra space in unbounded strings had
5515 left this interface a bit broken.
5516
5517 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
5518
5519 * g-spipat.ads, g-spipat.adb: New interface for Get_String
5520 Minor reformatting (function specs)
5521
5522 * g-spitbo.adb: New interface for Get_String
5523
5524 * g-spitbo.ads: Minor reformatting
5525
5526 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
5527
5528 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
5529
5530 2005-03-15 Javier Miranda <miranda@adacore.com>
5531 Robert Dewar <dewar@adacore.com>
5532 Thomas Quinot <quinot@adacore.com>
5533 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5534
5535 * atree.ads, atree.adb: Add support for Elist24 field
5536
5537 * atree.h: Fix wrong definition of Field27
5538 Add support for Elist16 field
5539 Add support for Elist24 field
5540
5541 * einfo.ads, einfo.adb (Abstract_Interfaces,
5542 Set_Abstract_Interfaces): New subprograms.
5543 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
5544 subprograms.
5545 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
5546 entities rather than a single node.
5547 (Is_Interface, Set_Is_Interface): New subprogram
5548 (First_Tag_Component): New syntesized attribute
5549 (Next_Tag_Component): New synthesized attribute
5550 (Write_Entity_Flags): Upgraded to write Is_Interface
5551 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
5552 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
5553 (Task_Body_Procedure): New subprogram to read this attribute.
5554 (Set_Task_Body_Procedure): New subprogram to set this attribute.
5555 (Has_Controlled_Component): Now applies to all entities.
5556 This is only a documentation change, since it always worked to apply
5557 this to other than composite types (yielding false), but now this is
5558 official.
5559 Update documentation on Must_Be_Byte_Aligned for new spec
5560
5561 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
5562 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
5563 uses of the Access_Disp_Table attribute to reference the first dispatch
5564 table associated with a tagged type. As
5565 part of the implementation of abstract interface types,
5566 Access_Disp_Table has been redefined to contain a list of dispatch
5567 tables (rather than a single dispatch table).
5568 Similarly, upgrade all the references to Tag_Component by the
5569 new attribute First_Tag_Component.
5570 (Find_Inherited_TSS): Moved to exp_tss.
5571 Clean up test in Expand_N_Object_Declaration for cases
5572 where we need to do a separate assignment of the initial value.
5573 (Expand_N_Object_Declaration): If the expression in the
5574 declaration of a tagged type is an aggregate, no need to generate an
5575 additional tag assignment.
5576 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
5577 is to be deleted.
5578 Bit packed array ops are only called if operands are known to be
5579 aligned.
5580 (Component_Equality): When returning an N_Raise_Program_Error statement,
5581 ensure that its Etype is set to Empty to avoid confusing GIGI (which
5582 expects that only expressions have a bona fide type).
5583 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
5584 determine the amount of data to be copied.
5585
5586 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
5587 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
5588 INTERFACE_TYPE_DEFINITION ::=
5589 [limited | task | protected | synchronized] interface
5590 [AND interface_list]
5591
5592 * par-ch3.adb (P_Type_Declaration): Modified to give support to
5593 interfaces.
5594 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
5595 interfaces.
5596 (P_Interface_Type_Definition): New subprogram that parses the new
5597 syntax rule of Ada 2005 interfaces
5598 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
5599 messages by the correct RENAMES (quotes removed).
5600
5601 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
5602 attribute First_Tag_Component.
5603
5604 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
5605 (Interface_List, Set_Interface_List): New subprograms.
5606 (Interface_Present, Set_Interface_Present): New subprograms.
5607 (Limited_Present, Set_Limited_Present): Available also in derived
5608 type definition nodes.
5609 (Protected_Present, Set_Protected_Present): Available also in
5610 record type definition and
5611 derived type definition nodes.
5612 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
5613 (Task_Present, Set_Task_Present): New subprogram.
5614 (Task_Body_Procedure): Removed.
5615 (Set_Task_Body_Procedure): Removed.
5616 These subprogram have been removed because the attribute
5617 Task_Body_Procedure has been moved to the corresponding task type
5618 or task subtype entity to leave a field free to store the list
5619 of interfaces implemented by a task (for AI-345)
5620 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
5621 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
5622 expression flag Do_Range_Check
5623 (Exception_Junk): Change to Flag7 to accomodate above change
5624 (Box_Present, Default_Name, Specification, Set_Box_Present,
5625 Set_Default_Name, Set_Specification): Expand the expression
5626 "X in N_Formal_Subprogram_Declaration" into the corresponding
5627 two comparisons. Required to use the csinfo tool.
5628
5629 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
5630 "with string" given.
5631
5632 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
5633 expression given.
5634
5635 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
5636 in 2005 mode
5637
5638 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
5639 attribute Task_Body_Procedure rather than the old semantic field that
5640 was available in the task_type_declaration node.
5641
5642 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
5643 interface type definitions.
5644 (P_Formal_Derived_Type_Definition): Modified to handle the list of
5645 interfaces.
5646
5647 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
5648 task type declaration.
5649 (P_Protected): Modified to handle the list of interfaces in a
5650 protected type declaration.
5651
5652 2005-03-15 Doug Rupp <rupp@adacore.com>
5653 Vincent Celier <celier@adacore.com>
5654
5655 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
5656 (Gen_Output_File_C): Likewise.
5657 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
5658
5659 2005-03-15 Thomas Quinot <quinot@adacore.com>
5660
5661 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
5662 is an N_Raise_Constraint_Error node, create a new copy of it without
5663 going through a call to Duplicate_Subexpr.
5664
5665 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
5666 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5667 Nicolas Setton <setton@adacore.com>
5668 Ed Schonberg <schonberg@adacore.com>
5669
5670 PR ada/19900
5671 PR ada/19408
5672 PR ada/19140
5673 PR ada/20255
5674
5675 * decl.c (gnat_to_gnu_field): Reject aliased components with a
5676 representation clause that prescribes a size not equal to the rounded
5677 size of their types.
5678 (gnat_to_gnu_entity, case E_Component): Always look at
5679 Original_Record_Component if Present and not the entity.
5680 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
5681 of tagged extension types by not making field for components that are
5682 inside the parent.
5683 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
5684 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
5685 expression to the type of the object when the object is constant.
5686 Reverse defer_debug_incomplete_list before traversing it, so that trees
5687 are processed in the order at which they were added to the list. This
5688 order is important when using the stabs debug format.
5689 If we are deferring the output of debug information, also defer this
5690 output for a function return type.
5691 When adding fields to a record, prevent emitting debug information
5692 for incomplete records, emit the information only when the record is
5693 complete.
5694 (components_to_record): New parameter defer_debug.
5695 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
5696 (gnat_to_gnu_field_decl): New function.
5697 (substitution_list, annotate_rep): Call it.
5698 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
5699 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
5700 No longer update discriminants to not be a COMPONENT_REF.
5701 (copy_alias_set): Strip padding from input type; also handle
5702 unconstrained arrays properly.
5703
5704 * gigi.h (write_record_type_debug_info): New function.
5705 Convert to use ANSI-style prototypes. Remove unused
5706 declarations for emit_stack_check, elab_all_gnat and
5707 set_second_error_entity.
5708 (gnat_to_gnu_field_decl): New decl.
5709
5710 * utils.c (write_record_type_debug_info): New function.
5711 (finish_record_type): Delegate generation of debug information to
5712 write_record_type_debug_info.
5713 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
5714 (update_pointer_to): Fix pasto.
5715 (convert) <UNION_TYPE>: Accept slight type variations when
5716 converting to an unchecked union type.
5717
5718 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
5719 replace the N_Freeze_Entity with a null statement.
5720
5721 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
5722 within a constrained subcomponent of an enclosing record, place the
5723 freeze nodes in the scope stack entry for the enclosing record.
5724 (Undelay_Type): New Subprogram.
5725 (Set_Small_Size): Pass T, the type to modify; all callers changed.
5726 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
5727 within records; allow them to have freeze nodes if their base types
5728 aren't frozen yet.
5729
5730 * exp_util.adb (Remove_Side_Effects): Properly test for
5731 Expansion_Delayed and handle case when it's inside an
5732 N_Qualified_Expression.
5733
5734 * sem_ch3.adb (Derived_Type_Declaration): New predicate
5735 Comes_From_Generic, to recognize accurately that the parent type in a
5736 derived type declaration can be traced back to a formal type, because
5737 it is one or is derived from one, or because its completion is derived
5738 from one.
5739 (Constrain_Component_Type): If component comes from source and has no
5740 explicit constraint, no need to constrain in in a subtype of the
5741 enclosing record.
5742 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
5743 Minor change to propagate Is_Ada_2005 flag
5744
5745 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
5746 Expansion_Delayed is False.
5747 (assoc_to_constructor): Ignore fields that have a
5748 Corresponding_Discriminant.
5749 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
5750 function returns "by target", dereference the target pointer using the
5751 type of the actual return value.
5752 <all>: Be prepared for a null gnu_result.
5753 (processed_inline_subprograms): Check flag_really_no_inline
5754 instead of flag_no_inline.
5755 (set_second_error_entity): Remove unused function.
5756 (gnat_to_gnu, case N_Selected_Component): Call
5757 gnat_to_gnu_field_decl.
5758 (assoc_to_constructor): Likewise.
5759
5760 2005-03-15 Robert Dewar <dewar@adacore.com>
5761 Ed Schonberg <schonberg@adacore.com>
5762 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5763
5764 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
5765 Must_Be_Byte_Aligned for cases where we do not need to use a
5766 System.Pack_nn unit.
5767
5768 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
5769 as procedures.
5770 Needed now that we do some processing for IN parameters as well. This
5771 may well fix some unrelated errors.
5772 (Expand_Call): Handle case of unaligned objects (in particular those
5773 that come from packed arrays).
5774 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
5775 renamed entity is an inherited operation, re-expand the call using the
5776 original operation, which is the one to call.
5777 Detect attempt to inline parameterless recursive subprogram.
5778 (Represented_As_Scalar): Fix to work properly with private types
5779 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
5780 accurate estimate. Yields True in far fewer cases than before,
5781 improving the quality of code that depends on this test.
5782
5783 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
5784 over both visible and private declarations to remove them from tree,
5785 and mark subprograms declared in package as eliminated, to prevent
5786 spurious use in subsequent compilation of generic units in the context.
5787
5788 * exp_util.ads: Minor cleanup in variable names
5789
5790 * sem_eval.ads, sem_eval.adb: Minor reformatting
5791 (Compile_Time_Known_Bounds): New function
5792
5793 2005-03-15 Ed Schonberg <schonberg@adacore.com>
5794
5795 * exp_ch7.adb (Convert_View): Use base types of underlying types when
5796 determining whether an unchecked conversion is needed for the argument
5797 of an initialization call.
5798
5799 2005-03-15 Ed Schonberg <schonberg@adacore.com>
5800
5801 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
5802 that appears in the instantiation rather than the internal subtype
5803 generated in the wrapper package, to avoid anomalies in gigi when the
5804 target is derived from a private type whose full view is an access type.
5805
5806 2005-03-15 Robert Dewar <dewar@adacore.com>
5807
5808 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
5809 not needed.
5810 Add documentation to replace the use of this flag
5811 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
5812 the x86_64.
5813
5814 2005-03-15 Thomas Quinot <quinot@adacore.com>
5815
5816 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
5817 here from exp_attr so it can be shared between exp_attr and exp_dist.
5818 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
5819 all TSS names, not a subset thereof, and the previous name introduced
5820 an unnecessarily confusion that a distinction might exist between
5821 "OK" TSS names and some "not OK" TSS names.
5822
5823 2005-03-15 Doug Rupp <rupp@adacore.com>
5824
5825 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
5826 Command_Name.
5827
5828 2005-03-15 Pascal Obry <obry@adacore.com>
5829 Eric Botcazou <ebotcazou@adacore.com>
5830
5831 PR ada/20226
5832 PR ada/20344
5833
5834 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
5835 when IN_RTS. This is to work around a bootstrap path problem.
5836
5837 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
5838 table and pass it to __gnat_install_SEH_handler().
5839 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
5840
5841 * lang.opt: Fix specification of -fRTS=.
5842
5843 2005-03-15 Doug Rupp <rupp@adacore.com>
5844 Bernard Banner <banner@adacore.com>
5845 Vincent Celier <celier@adacore.com>
5846 Arnaud Charlet <charlet@adacore.com>
5847
5848 PR ada/6852
5849 This change works fine when gnatlib is built from the gcc directory,
5850 but does not work when using the libada Makefile, since GCC_FOR_TARGET
5851 is not passed to ada/Makefile.in, so more work is needed by a
5852 Makefile/configure expert.
5853
5854 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
5855 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
5856 Setup gnatlink switch -M for x86_64 linux, as it is already setup
5857 for Linux x86.
5858 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
5859 Run ranlib on libgccprefix.a
5860 Define PREFIX_OBJS for Darwin, to build libgccprefix.
5861 (ADA_INCLUDE_SRCS): Split Ada packages.
5862
5863 2005-03-15 Robert Dewar <dewar@adacore.com>
5864
5865 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
5866
5867 * impunit.adb: Add GNAT.UTF_32
5868
5869 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
5870
5871 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
5872 now uses GNAT.UTF_32).
5873
5874 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
5875 capabilities for categorizing characters using Unicode categories
5876
5877 2005-03-15 Ed Schonberg <schonberg@adacore.com>
5878
5879 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
5880 instantiation that has been rewritten as a package body, retrieve spec
5881 to generate proper name for implicit_with_clause.
5882 (Install_Parents): Recognize a parent that is an instantiation but has
5883 been rewritten as a package declaration during analysis.
5884
5885 2005-03-15 Javier Miranda <miranda@adacore.com>
5886 Ed Schonberg <schonberg@adacore.com>
5887
5888 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
5889 parameter reported some error we immediately return. This improves the
5890 behaviour of the frontend in case of errors.
5891 (Install_Parent, Remove_Parent): Introduce new flag
5892 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
5893 ancestor of a generic child unit, when the child is being instantiated.
5894 (Inline_Instance_Body): If we are compiling the private
5895 part or the body of a child unit, restore the proper visibility of the
5896 parents after compiling the instance body.
5897
5898 2005-03-15 Ed Schonberg <schonberg@adacore.com>
5899 Javier Miranda <miranda@adacore.com>
5900
5901 PR ada/15608
5902 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
5903 of a private type, in which case it is underlying_type that denotes
5904 the proper task. Also modified to use the new entity attribute
5905 that is directly available in the task type and task subtype entities
5906 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
5907 arrays when other dimensions than the first are constrained by
5908 discriminants of an enclosing record.
5909 (Insert_Explicit_Dereference): If the prefix is an indexed component or
5910 a combination of indexed and selected components, find ultimate entity
5911 and generate the appropriate reference for it, to suppress spurious
5912 warnings.
5913 (Note_Possible_Modification): If an entity name has no entity, return.
5914 (Is_Variable): A function call never denotes a variable.
5915 (Requires_Transient_Scope): For record types, recurse only on
5916 components, not on internal subtypes that may have been generated for
5917 constrained components.
5918
5919 2005-03-15 Ed Schonberg <schonberg@adacore.com>
5920
5921 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
5922 Eliminated as candidates for resolution. Both efficient, and avoids
5923 anomalies with operators declared in deleted code.
5924 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
5925 expansion is disabled (as when compiling a generic) to prevent spurious
5926 warnings on prefixes of selected components.
5927
5928 2005-03-15 Ed Schonberg <schonberg@adacore.com>
5929
5930 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
5931 attached to a list before checking whether it appears in the private
5932 declarations of the current package.
5933 (Make_Inequality_Operator): Insert declaration in proper declarative
5934 list rather than just setting the Parent field, so that
5935 Is_Private_Declaration can handle it properly.
5936
5937 2005-03-15 Ed Schonberg <schonberg@adacore.com>
5938
5939 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
5940 a renaming a body, check that the renamed subprogram in not intrinsic.
5941 (Find_Direct_Name): If several use_visible entities hide
5942 each other, and the context is a predefined file compiled through
5943 rtsfind, keep only the entity that comes from a predefined file.
5944
5945 2005-03-15 Geert Bosch <bosch@adacore.com>
5946
5947 * s-fatgen.adb (Valid): Extend special exceptions to account for long
5948 long float padding to also cover AMD64 and IA64.
5949
5950 2005-03-15 Gary Dismukes <dismukes@adacore.com>
5951
5952 * s-imgwch.adb: Add with and use of Interfaces.
5953 (Img_Wide_Character): Change type of Val to Unsigned_16.
5954 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
5955
5956 2005-03-15 Matthew Gingell <gingell@adacore.com>
5957
5958 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
5959
5960 2005-03-15 Robert Dewar <dewar@adacore.com>
5961
5962 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
5963
5964 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
5965
5966 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
5967
5968 2005-03-15 Robert Dewar <dewar@adacore.com>
5969
5970 * s-bitops.adb, s-bitops.ads,
5971 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
5972 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
5973 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
5974 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
5975 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
5976 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
5977 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
5978 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
5979 reformatting.
5980
5981 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
5982
5983 * utils2.c (build_binary_op): Fix typo.
5984
5985 2005-03-15 Doug Rupp <rupp@adacore.com>
5986
5987 * s-crtl.ads (popen,pclose): New imports.
5988
5989 2005-03-15 Cyrille Comar <comar@adacore.com>
5990
5991 * comperr.adb (Compiler_Abort): remove references to obsolete
5992 procedures in the bug boxes for various GNAT builds.
5993
5994 2005-03-15 Vincent Celier <celier@adacore.com>
5995
5996 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
5997
5998 2005-03-15 Geert Bosch <bosch@adacore.com>
5999 Arnaud Charlet <charlet@adacore.com>
6000 Robert Dewar <dewar@adacore.com>
6001 Cyrille Comar <comar@adacore.com>
6002 Sergey Rybin <rybin@adacore.com>
6003
6004 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
6005 too specific and long-winded to be appropriate for the GNAT User's
6006 Guide.
6007 Warn about use of GCC switches not documented in the GNAT User's Guide,
6008 as these may cause generated code to not conform to Ada semantics.
6009 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
6010 Add documentation for -gnat95 and -gnat05 switches
6011 Remove paragraph documenting obsolete way to refer to third party
6012 libraries.
6013 Add a few references to Ada_05 that were missing.
6014 Update documentation on -gnatZ/-gnatL.
6015 Document limitation when using -m64 under Solaris.
6016 Change the "Name Casing" subsection of the pretty-printer section
6017 according to the changes in the dictionary processing.
6018
6019 * gnat_rm.texi: Document the Ada_05 pragma.
6020 Section on record representation clauses describes the new more
6021 relaxed rules about placement of large packed bit array components.
6022 Add documentation of GNAT.UTF_32
6023
6024 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
6025
6026 * misc.c (gnat_post_options): Turn off structural
6027 aliasing for now.
6028
6029 2005-03-08 Laurent Guerby <laurent@guerby.net>
6030
6031 * system-linux-sparc.ads: Fix typo in previous commit.
6032
6033 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
6034 Laurent Guerby <laurent@guerby.net>
6035
6036 PR ada/20035
6037 * system-linux-sparc.ads: New.
6038 * Makefile.in: Add sparc linux entry.
6039
6040 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
6041
6042 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
6043 parameters as unused.
6044
6045 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
6046 Partial merge from libada-gnattools-branch:
6047
6048 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
6049 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
6050 into code in gnattools/Makefile.in. Remove direct dependencies on
6051 stamp-tools by tools clauses.
6052 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
6053 * config-lang.in: Add gnattools to $lang_dirs.
6054
6055 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
6056
6057 PR ada/19942
6058 * utils.c (gnat_type_for_mode): Return null instead of ICE because
6059 we asked for an unknown mode.
6060
6061 2005-02-12 Richard Henderson <rth@redhat.com>
6062
6063 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
6064 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
6065
6066 2005-02-10 Andreas Jaeger <aj@suse.de>
6067
6068 * init.c (__gnat_initialize): Mark parameter as unused.
6069
6070 2005-02-09 Doug Rupp <rupp@adacore.com>
6071
6072 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
6073 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
6074
6075 2005-02-09 Doug Rupp <rupp@adacore.com>
6076
6077 * gnatchop.adb (dup, dup2),
6078 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
6079
6080 * gnatlbr.adb (mkdir),
6081 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
6082
6083 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
6084
6085 2005-02-09 Doug Rupp <rupp@adacore.com>
6086
6087 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
6088
6089 2005-02-09 Robert Dewar <dewar@adacore.com>
6090 Thomas Quinot <quinot@adacore.com>
6091 Javier Miranda <miranda@adacore.com>
6092 Pascal Obry <obry@adacore.com>
6093 Ed Schonberg <schonberg@adacore.com>
6094 Doug Rupp <rupp@adacore.com>
6095 Gary Dismukes <dismukes@adacore.com>
6096 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6097
6098 * g-zstspl.ads: New file.
6099
6100 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
6101
6102 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
6103 Ada 95 mode
6104 Add definition of Wide_Wide_Space for AI-285
6105
6106 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
6107 interface (to support Ada 95 and Ada 2005 units).
6108 Add Unbounded_IO files
6109 Add entries for Wide_Wide packages for AI-285
6110 Add list of containers packages to Ada 2005 unit list
6111
6112 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
6113 support new Unbounded_IO package cleanly.
6114
6115 * g-utf_32.ads, g-utf_32.adb: New files.
6116
6117 * Makefile.rtl: Add entry for g-utf_32
6118 Add new files for Unbounded_IO
6119 Adjust make file for new AI-285 wide wide packages
6120 Add AI-302 containers to the run time.
6121
6122 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
6123 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
6124 subprograms for AI-301.
6125
6126 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
6127
6128 * a-stunau.ads: Minor comment correction
6129
6130 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
6131 etc.
6132 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
6133 (Check_RPC): Update to match changes in expanded code.
6134 Clean up unused entity.
6135
6136 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
6137 was not taken into account.
6138 This includes proper initialization with Normalize_Scalars.
6139 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
6140 normalize scalars cases (particularly the latter) to do a better job
6141 of finding invalid representations.
6142
6143 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
6144
6145 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
6146 used
6147
6148 * exp_dist.adb: Add support for wide wide character type
6149 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
6150 private part, generate stub bodies at the end of the private part,
6151 not the visible part.
6152 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
6153 PolyORB support.
6154 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
6155 generic wrapper to execute final processing after completing the
6156 expansion of the RPC receiver for an RACW.
6157
6158 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
6159 packages and attributes.
6160 (Preset_Names): Addition of the new reserved words of Ada 2005,
6161 that is interface, overriding and synchronized.
6162 (Get_Pragma_Id): Give support to the use of the new reserved word
6163 "interface" as a pragma name.
6164 (Is_Pragma_Name): Give support to the use of the new reserved word
6165 "interface" as a pragma name.
6166 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
6167 attribute implementation.
6168
6169 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
6170 checks to entities that are output parameters of Asm operations.
6171 Handle the Stream_Size attribute.
6172 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
6173
6174 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
6175
6176 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
6177 for second parameter being 0.0.
6178 Add support for wide wide character type.
6179 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
6180
6181 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
6182 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
6183 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
6184 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
6185 for wide wide character cases.
6186
6187 * cstand.adb: Create entities for Wide_Wide_Character and
6188 Wide_Wide_String.
6189
6190 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
6191 accordance with AI-258.
6192 Add new declarations for 16/32 bit C character types (Part of AI285)
6193
6194 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
6195 (Obsolescent_Warning): New field
6196 (Rep_Clause): New local subprogram used to share code. Returns the rep
6197 clause for which the name is given in parameter.
6198 (Has_Stream_Size_Clause): New routine.
6199 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
6200 (Address_Clause): Implementation is now using Rep_Clause.
6201 (Alignment_Clause): Idem.
6202 (Size_Clause): Idem.
6203
6204 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
6205 entity in non-Ada 2005 mode and generate warning.
6206
6207 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
6208 (Prag): Code cleanup. Remove old gnat pragma "overriding"
6209
6210 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
6211 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
6212 on the named unit if the pragma is not in the current compilation unit,
6213 so that elaboration calls in the current unit can set up an elaboration
6214 dependency on the named unit, as needed.
6215 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
6216 subprogram as well as for subprograms declared within a package.
6217 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
6218 pragma overriding.
6219
6220 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
6221 to z) to avoid some instances of duplication for Wide_Wide packages.
6222
6223 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
6224 characters.
6225
6226 * scn.adb: Char_Literal_Value field is now a Uint
6227
6228 * scng.adb: Significant rewrite to handle new Ada 2005 features
6229 allowing wide and wide wide characters in program text, e.g. for
6230 identifiers, as described in AI-285.
6231 (Set_Reserved): New procedure, makes setting up keywords cleaner.
6232 (Initialize_Scanner): Register the new reserved words of Ada 2005.
6233 (Scan): Give support to the new reserved words.
6234
6235 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
6236 warning notifying that interface, overriding, and synchronized are
6237 new reserved words.
6238 (P_Pragma): Allow the use of the new reserved word "interface" as
6239 a pragma name.
6240
6241 * gnatls.adb, gnatbind.adb,
6242 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
6243 identifiers named "interface" to "SAL_Interface".
6244
6245 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
6246 (Structured Exception handling).
6247 (Gen_Main_C): Idem.
6248
6249 * bindgen.adb:
6250 (Gen_Main_Ada): Set the default exit code if specified.
6251 (Gen_Main_C): Likewise.
6252 Part of *DC20-006.
6253 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
6254 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
6255
6256 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
6257 new -Xnnn switch.
6258
6259 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
6260 has a collision with the new Ada 2005 "interface" reserved word.
6261
6262 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
6263 generate a warning notifying that interface, overriding, and
6264 synchronized are new reserved words.
6265
6266 * scans.ads (Token_Type): Addition of the tokens corresponding to the
6267 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
6268 and Tok_Synchronized.
6269
6270 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
6271 "dispatching" rather than "primitive" operations, since dispatching
6272 calls are now allowed to abstract formal subprograms (which are not
6273 primitive).
6274 Char_Literal_Value field is now a Uint
6275 (Resolve_Slice): If the prefix is an access to an unconstrained array,
6276 compute the actual subtype of the designated object to impose the proper
6277 index constraints.
6278 (Resolve_Selected_Component): Do not insert an access check if the
6279 prefix is an access type: such a node is expanded into an explicit
6280 dereference, on which the access check is performed anyway. Removes
6281 expensive duplicate checks.
6282 (Resolve_Call): Use new flag Is_Obsolescent and field
6283 Obsolescent_Warning so that pragma Obsolescent works on library
6284 subprograms.
6285 Add support for wide wide character type
6286 (Resolve_Allocator): Replace the error message on wrong null-exclusion
6287 value by a warning message.
6288 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
6289 as fixed-point, and one of the operands is non-static and universal, it
6290 can only be an illegal exponentiation operation, in which case there is
6291 no real value to retrieve.
6292
6293 * exp_strm.adb: Add support for wide wide character type
6294 (Build_Elementary_Input_Call): Compute the size of the stream element by
6295 querying the rep chain to find the Stream_Attribute attribute value.
6296 (Build_Elementary_Write_Call): Ditto.
6297
6298 * sem_aggr.adb: Char_Literal_Value field is now a Uint
6299 Add support for wide wide character type
6300 Replace the error messages on wrong null-exclusion value by warnings
6301 as described in Ada 2005.
6302 (Resolve_Extension_Aggregate): Document the fact that the error
6303 message on class-wide expressions in extensions aggregates.
6304
6305 * sem_case.adb: Add support for wide wide character type
6306
6307 * sem_ch13.adb: Add support for wide wide character type
6308 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
6309
6310 * sem_ch3.adb: Add support for wide wide character type
6311 (Process_Subtype): If constraint is illegal for the type, set Ekind of
6312 now-useless Itype, to prevent cascaded errors on a compiler built
6313 without -gnatp.
6314
6315 * sem_ch8.adb: Add with and use of Sem_Disp.
6316 (Analyze_Subprogram_Renaming): Replace unclean uses of
6317 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
6318 of Corresponding_Spec to Empty).
6319 (Attribute_Renaming): Replace use of Corresponding_Spec with
6320 Corresponding_ Formal_Spec and simplify condition.
6321 (Use_One_Package): Check that scope of homonym of identifier is defined,
6322 before checking whether it is a wrapper package.
6323 Add support for wide wide character type
6324
6325 * sem_eval.adb: Add support for wide wide character type.
6326 (Eval_Arithmetic_Op): Check for compile time known signed integer
6327 overflow in the non-static case.
6328 (Subtypes_Statically_Match): A formal scalar type and its base type do
6329 not statically match.
6330
6331 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
6332 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
6333 subtype).
6334 (Unit_Declaration_Node): Ditto.
6335 (Is_Variable_Prefix): For the case of an indexed component whose prefix
6336 has a packed array type, the prefix has been rewritten into a type
6337 conversion. Determine variable-ness from the converted expression.
6338 Handle wide wide character cases.
6339
6340 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
6341
6342 * stringt.ads, stringt.adb: Handle full UTF-32 range.
6343 Remove ["0A"] from comment, since it can look like a line terminator.
6344 Currently we don't permit this, but this is under discussion by the
6345 ARG, and it is easy enough to use a different example.
6346
6347 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
6348 handling UTF-32 encoding for wide wide character.
6349 Implement new brackets coding ["hhhhhhhh"]
6350 Add UTF-8 encodings for full UTF-32 range
6351
6352 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
6353
6354 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
6355 bit range Add full UTF-32 support.
6356 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
6357 notify that constraint error will be raised at run-time
6358 because a null value is assigned to a null-excluding object.
6359 Remove some obsolete declarations and make Char_Code
6360 unsigned.
6361
6362 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
6363 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
6364 Rcheck subprograms.
6365
6366 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
6367 wrong null-exclusion value by a warning message.
6368 (Enable_Range_Check): Do range check if the prefix is an
6369 explicit dereference whose designated object is an unconstrained array.
6370 Current algorithm for removing duplicate checks is over-eager in this
6371 case.
6372
6373 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
6374 null-exclusion value by a warning message
6375
6376 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
6377 completely. Add support for Uint2 field
6378
6379 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
6380 exp_prag.adb: Char_Literal_Value field is now a Uint.
6381
6382 * exp_util.adb (Insert_Actions): Replace
6383 N_Formal_Subprogram_Declaration by
6384 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
6385 Char_Literal_Value field is now a Uint.
6386
6387 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
6388 defined for subprogram renaming declarations. When set, the field
6389 indicates the defining entity of a corresponding formal subprogram
6390 when the renaming corresponds to a formal subprogram association in an
6391 instantiation.
6392 (Set_Corresponding_Formal_Spec): New procedure to return
6393 Corresponding_Formal_Spec field.
6394 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
6395 (which is now a subtype).
6396 Char_Literal_Value field is now a Uint
6397
6398 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
6399 pointer to the base of the dispatch table.
6400 Minor changes to comments.
6401 (Controlling_Type): New function for determining the tagged type
6402 associated with a tagged primitive subprogram.
6403 (Expand_Dispatching_Call): Add support for a controlling actual that is
6404 directly a value of type Ada.Tag rather than a tagged object.
6405
6406 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
6407 describing the new layout.
6408 (Dispatch_Table): The expander computes the actual array size, allocates
6409 the Dispatch_Table record accordingly, and generates code that displaces
6410 the base of the record after the Typeinfo_Ptr component. The access to
6411 these components is done by means of local functions.
6412 (Offset_To_Top): New function.
6413 (Typeinfo_Ptr): New function.
6414 (Get_TSD): Modified to access the new position of the TSD.
6415 (Set_TSD): Modified to save the TSD in its new position.
6416
6417 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
6418 case of formal abstract subprograms. Add check and message for -gnat05.
6419 Update comments.
6420
6421 * sem_ch12.adb: Add with and use for Sem_Disp.
6422 (Analyze_Associations): Minor change from "=" to "in" for use of
6423 N_Formal_Subtype_Declaration (which is now a subtype).
6424 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
6425 N_Formal_Subtype_Declaration (which is now a subtype).
6426 (Analyze_Formal_Subprogram): Add handling for
6427 N_Formal_Abstract_Subprogram, marking the formal as abstract and
6428 dispatching, setting the controlling status of the formal parameters
6429 and result, and issuing an error if there is no controlling type for
6430 the formal subprogram.
6431 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
6432 which is an unclean use of that field, we set the new field
6433 Corresponding_Formal_Spec to make the formal subprogram available to
6434 processing in Analyze_Subprogram_Declaration.
6435 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
6436 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
6437 Constrained, so that it is is does not statically match its anonymous
6438 base type.
6439
6440 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
6441 abstract formal subprograms in error check for functions returning
6442 abstract types. Set scope of new designator for
6443 a parameterless subprogram, so that it is available when checking the
6444 body for nested subprograms, before full analysis of said body.
6445 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
6446 subprogram only if inner one comes from source.
6447 (Analyze_Function_Call): If the call is given in object notation, the
6448 analysis of the name rewrites the node and analyzes it with the proper
6449 argument list. After analyzing the name, if the call has been rewritten
6450 and the result type is set, no further analysis is needed.
6451 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
6452 mark in function specification, in a context where the formals are
6453 visible and hide outer homographs.
6454
6455 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
6456 as the tagged type for the cases of abstract formal subprograms and
6457 renamings of those. Clean up spec comments.
6458 (Check_Dispatching_Context): Add error message to indicate "abstract
6459 procedure", covering the case of a call to a formal abstract procedure
6460 that has statically tagged operands.
6461 (Check_Dispatching_Call): Check for the case of an actual given by
6462 a tag-indeterminate function call whose type is an ancestor of the
6463 containing call's associated tagged type. This situation can occur
6464 for inherited primitives with function defaults. In this case we
6465 use the tagged type's tag directly as the controlling argument for
6466 the calls.
6467 (Expand_Call): Name change on call to Expand_Dispatch_Call.
6468
6469 * sprint.adb (Sprint_Node_Actual): Split
6470 N_Formal_Subprogram_Declaration into two alternatives for the new
6471 cases N_Formal_Abstract_Subprogram_Declaration and
6472 N_Formal_Concrete_Subprogram_Declaration.
6473 Char_Literal_Value field is now a Uint.
6474
6475 * trans.c: Get rid of junk Uint2 reference.
6476 Char_Literal_Value field is now a Uint.
6477 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
6478 (gigi): Correct third arg to gimplify_body.
6479
6480 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
6481 (TYPE_LANG_FLAG_0): Check for record or union.
6482
6483 * treepr.adb: Char_Literal_Value field is now a Uint
6484
6485 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
6486 UI_From_CC.
6487
6488 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
6489 Add full UTF-32 support
6490 Char_Code is now 32 bits
6491
6492 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
6493 wide character UTF_32 line terminators.
6494 Initialize Main_Source_File to avoid error when no main
6495 source is loaded.
6496
6497 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
6498 (Main_Source_File) when no main source has been loaded, to avoid
6499 potential crash.
6500
6501 2005-02-09 Robert Dewar <dewar@adacore.com>
6502
6503 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
6504 Fix name of Set routine
6505
6506 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
6507 fixed packages.
6508
6509 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
6510 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
6511 fixed packages
6512
6513 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
6514 forms of Get_Line subprograms for AI-301.
6515
6516 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
6517 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
6518 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
6519 a-stwima.ads: Minor reformatting.
6520
6521 2005-02-09 Doug Rupp <rupp@adacore.com>
6522 Thomas Quinot <quinot@adacore.com>
6523
6524 * adaint.c, adaint.h
6525 [VMS] (to_ptr32): New function.
6526 (MAYBE_TO_PTR32): New macro.
6527 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
6528 for pointer size.
6529 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
6530 [VMS] (#define fork()): Remove since unneccessary.
6531 (__gnat_set_close_on_exec): New routine to support
6532 GNAT.OS_Lib.Set_Close_On_Exec.
6533
6534 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
6535 the parent side as close-on-exec so that they are not inherited by the
6536 child.
6537
6538 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
6539 set or clear the FD_CLOEXEC flag on a file descriptor.
6540
6541 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
6542 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6543
6544 Fix for c330001 - PR ada/19386
6545
6546 * decl.c:
6547 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
6548 on the field if Pragma Component_Alignment (Storage_Unit).
6549 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
6550 side-effects as if it were a constant; also make SAVE_EXPR to protect
6551 side-effects.
6552 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
6553 UNION_TYPE.
6554 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
6555 (components_to_record): Test it.
6556 Fix improper usage of REFERENCE_CLASS_P.
6557
6558 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
6559 RECORD_TYPE.
6560
6561 * utils2.c: Minor reformatting.
6562
6563 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
6564 handle other cases like RECORD_TYPE.
6565
6566 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
6567
6568 2005-02-09 Ed Schonberg <schonberg@adacore.com>
6569
6570 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
6571 component of an array of arrays in an assignment context, and the
6572 aggregate has component associations that require sliding on
6573 assignment, force reanalysis of the aggregate to generate a temporary
6574 before the assignment.
6575 (Must_Slide): Make global to the package, for use in Gen_Assign.
6576
6577 2005-02-09 Ed Schonberg <schonberg@adacore.com>
6578
6579 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
6580 unchecked union with no inferable discriminants, return a
6581 Raise_Program_Error node, rather than inserting it at the point the
6582 type is frozen.
6583 (Expand_Record_Equality, Component_Equality): Handle properly the case
6584 where some subcomponent is an unchecked union whose generated equality
6585 code raises program error.
6586
6587 2005-02-09 Doug Rupp <rupp@adacore.com>
6588
6589 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
6590 [VMS] (#define exit hack): Remove.
6591
6592 2005-02-09 Pascal Obry <obry@adacore.com>
6593 Arnaud Charlet <charlet@adacore.com>
6594
6595 * init.c (__gnat_initialize): Add a new parameter eh which contains the
6596 address of the exception registration. The Win32 version of this
6597 routine calls __gnat_install_SEH_handler() to initialize the SEH
6598 (Structured Exception Handling) handler.
6599 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
6600 SEH (Structured Exception Handling) now.
6601 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
6602 (__gnat_initialize for ppc-vxworks): Adjust comments and the
6603 preprocessor condition protecting the call to the extra eh setup
6604 subprogram, which is only available for the ppc target.
6605 (__gnat_clear_exception_count): replaced reference to
6606 variable taskIdCurrent by call to taskIdSelf(), cleaner.
6607
6608 * seh_init.c: New file.
6609
6610 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
6611 (GNATBIND_OBJS): Idem.
6612
6613 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
6614 routine takes a new parameter (a pointer to the exception registration
6615 for the SEH (Structured Exception Handling) support.
6616
6617 * raise.h: (__gnat_install_SEH_handler): New prototype.
6618 Update copyright notice.
6619
6620 * s-tassta.adb (Task_Wrapper): Declare the exception registration
6621 record and initialize it by calling __gnat_install_SEH_handler.
6622
6623 2005-02-09 Vincent Celier <celier@adacore.com>
6624
6625 * make.adb (Gnatmake): Do not fail when the main project has no object
6626 directory.
6627
6628 2005-02-09 Doug Rupp <rupp@adacore.com>
6629
6630 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
6631 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
6632 [VMS]: Add translations for g-enblsp.adb.
6633
6634 * s-asthan-vms.adb: Removed.
6635 * s-asthan-vms-alpha.adb: Added.
6636
6637 2005-02-09 Pascal Obry <obry@adacore.com>
6638
6639 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
6640 (LIBGNAT_OBJS): Add seh_init.o.
6641
6642 2005-02-09 Arnaud Charlet <charlet@adacore.com>
6643
6644 PR ada/16592
6645
6646 * Makefile.in: Link all gnat tools with -static-libgcc, since
6647 -shared-libgcc is now used by default on some systems (e.g. linux with
6648 recent binutils).
6649 Remove references to Makefile.prolog/generic, no longer used.
6650
6651 2005-02-09 Vincent Celier <celier@adacore.com>
6652
6653 * prj-makr.adb (Process_Directory): Put file name in canonical case
6654 before matching against the patterns.
6655 If gnatname has been invoked as <prefix>-gnatname
6656 then invoke the compiler as <prefix>-gcc, not just "gcc".
6657
6658 2005-02-09 Ed Schonberg <schonberg@adacore.com>
6659
6660 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
6661 with expansion disabled. The actual subtype is needed among other
6662 places when the selected component appears in the context of a loop
6663 bound, and denotes a packed array.
6664 (Operator_Check): Always use the first subtype in the
6665 error message, to avoid the appearance of internal base types.
6666 (Transform_Object_Operation): Copy each actual in full
6667 to the parameter associations of the constructed call, rather than
6668 using the shallow copy mechanism of New_Copy_List. This ensures that
6669 the chaining of named associations is done properly.
6670 (Complete_Object_Operation): Rewrite node, rather than
6671 replacing it, so that we can trace back to the original selected
6672 component.
6673
6674 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
6675 and calls that use object notation, if the called function is not
6676 declared in a withed unit, place the elaboration constraint on the
6677 unit in the context that makes the function accessible.
6678 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
6679 imposes an elaboration constraint between two packages.
6680
6681 2005-02-09 Ed Schonberg <schonberg@adacore.com>
6682
6683 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
6684 views of a private type after handling its private dependents, to
6685 maintain proper stack discipline between entry and exit from the
6686 package.
6687
6688 2005-02-09 Cyrille Comar <comar@adacore.com>
6689
6690 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
6691 Minor reformatting.
6692
6693 2005-02-09 Arnaud Charlet <charlet@adacore.com>
6694
6695 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
6696 fields for foreign threads.
6697
6698 2005-02-09 Doug Rupp <rupp@adacore.com>
6699
6700 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
6701 recursion warnings when compiled with -gnatdm.
6702
6703 2005-02-09 Robert Dewar <dewar@adacore.com>
6704
6705 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
6706 Slight fix to documentation of -gnaty with no parameters
6707
6708 * xr_tabls.ads: Add ??? comment for missing overall comment
6709
6710 * xsinfo.adb: Make default file name be sinfo.h, since this is what
6711 we now use by default.
6712
6713 * xsnames.adb: Adjust end of file test to look for five space followed
6714 by '#' instead of six spaces. The format of xsnames.adb was modified
6715 in the last update.
6716
6717 * a-numeri.ads: Add reference to AI-388 for greek letter pi
6718 identifier.
6719
6720 * clean.adb: Minor reformatting.
6721
6722 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
6723 gnatname.adb: Minor reformatting
6724 Add 2005 to copyright output when utility is run
6725
6726 * csets.adb: Eliminate obsolete comment
6727
6728 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
6729 Update comments.
6730
6731 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
6732
6733 2005-02-09 Sergey Rybin <rybin@adacore.com>
6734
6735 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
6736 the difference between compact and incompact layout and add the record
6737 representation clause to the example illustrating different layouts.
6738 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
6739 component clauses").
6740
6741 2005-02-09 Florian Villoing <villoing@adacore.com>
6742
6743 * gnat_ugn.texi: Fix typos.
6744 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
6745 @file.
6746 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
6747 in the generated documentation.
6748
6749 2005-02-09 Arnaud Charlet <charlet@adacore.com>
6750
6751 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
6752 longer supported.
6753 Update linker wrapper when linking with non GNU C++.
6754
6755 2005-02-09 Pascal Obry <obry@adacore.com>
6756
6757 * gnat_ugn.texi:
6758 Document the procedure to debug the DllMain routine on Windows.
6759 Add note about -funwind-tables and mixed Ada and C/C++ programming in
6760 ZCX mode.
6761 Document new BIND qualifer /RETURN_CODES=VMS.
6762
6763 2005-02-09 Ben Brosgol <brosgol@adacore.com>
6764
6765 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
6766 Edited gnatmetric chapter
6767
6768 2005-02-09 Robert Dewar <dewar@adacore.com>
6769
6770 * gnat_rm.texi:
6771 Changes to document new wide wide character support
6772 For AI-285
6773 Update documentation on Normalize_Scalars and Initialize_Scalars
6774
6775 2005-02-09 Pascal Obry <obry@adacore.com>
6776
6777 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
6778
6779 2005-02-09 Jose Ruiz <ruiz@adacore.com>
6780
6781 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
6782 from the VxWorks kernel) that is needed for getting the active
6783 priority of the different tasks.
6784
6785 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
6786 Use a pragma Elaborate_Body in the spec file instead.
6787 Noticed by code reading.
6788
6789 2005-02-09 Thomas Quinot <quinot@adacore.com>
6790
6791 * exp_util.ads: Minor correction in comment.
6792
6793 2005-02-09 Arnaud Charlet <charlet@adacore.com>
6794
6795 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
6796 since this procedure is now too complex to be worth inlining.
6797
6798 2005-02-09 Richard Henderson <rth@redhat.com>
6799
6800 * utils.c (gnat_define_builtin): Remove.
6801 (gnat_install_builtins): Use build_common_builtin_nodes.
6802
6803 2005-02-09 Arnaud Charlet <charlet@adacore.com>
6804
6805 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
6806 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
6807 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
6808 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
6809 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
6810 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
6811 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
6812 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
6813 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
6814 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
6815 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
6816 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
6817 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
6818 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
6819 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
6820 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
6821 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
6822 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
6823 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
6824 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
6825 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
6826 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
6827 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
6828 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
6829 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
6830 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
6831 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
6832 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
6833 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
6834 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
6835 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
6836 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
6837 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
6838 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
6839 library.
6840
6841 2005-01-27 Laurent GUERBY <laurent@guerby.net>
6842
6843 * Makefile.in: Fix a-intnam.ads from previous commit,
6844 add 2005 to copyright.
6845 * a-intman-rtems.ads: Renamed to...
6846 * a-intnam-rtems.ads:
6847
6848 2005-01-27 Laurent GUERBY <laurent@guerby.net>
6849
6850 * Makefile.in: Rename GNAT RTEMS specific files.
6851 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
6852 5rosinte.ads, 5rparame.adb: Replaced by files below.
6853 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
6854 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
6855
6856 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
6857 Laurent GUERBY <laurent@guerby.net>
6858
6859 PR ada/19488
6860 * 5rosinte.ads: Add No_Key constant.
6861 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
6862 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
6863
6864 2005-01-26 Laurent GUERBY <laurent@guerby.net>
6865
6866 PR ada/19414
6867 * i-cobol.adb (Valid_Numeric): Handle zero length case.
6868
6869 2005-01-20 Richard Henderson <rth@redhat.com>
6870
6871 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
6872 a-intnam-linux.ads and system-linux-alpha.ads.
6873 * a-intnam-linux-alpha.ads: Remove file.
6874 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
6875 * system-linux-alpha.ads: New file.
6876
6877 2005-01-18 Jakub Jelinek <jakub@redhat.com>
6878
6879 PR ada/13470
6880 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
6881 set to the new string.
6882
6883 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
6884
6885 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
6886 to True.
6887
6888 2005-01-18 Richard Henderson <rth@redhat.com>
6889
6890 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
6891 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
6892 for alpha-linux.
6893 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
6894
6895 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
6896
6897 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
6898 (GCC_ZCX_Support): Likewise.
6899
6900 2005-01-11 Bastian Blank <waldi@debian.org>
6901
6902 * system-linux-s390.ads: Define Preallocated_Stacks.
6903 * system-linux-s390x.ads: Likewise.
6904
6905 2005-01-04 Arnaud Charlet <charlet@adacore.com>
6906
6907 * gnat_ugn.texi: Fix texi errors with null variables.
6908
6909 2005-01-03 Thomas Quinot <quinot@adacore.com>
6910
6911 * gen-soccon.c: New utility program to generate g-soccon.ads
6912 automatically.
6913
6914 * socket.c, gsocket.h: Split inclusion of system header files into a
6915 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
6916
6917 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
6918 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
6919 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
6920 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
6921 should not be edited by hand anymore, but should be regenerated using
6922 gen-soccon.
6923
6924 2005-01-03 Robert Dewar <dewar@adacore.com>
6925 Ed Schonberg <schonberg@adacore.com>
6926 Vincent Celier <celier@adacore.com>
6927
6928 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
6929 on/off, since this is an obsolescent feature, for which we now generate
6930 a warning.
6931
6932 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
6933 warning mode is set and obsolescent usage of this attribute occurs.
6934 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
6935 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
6936 predates, and partly motivates, the adoption of the AI.
6937 Implement new Ada 2005 attribute Mod
6938
6939 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
6940 attribute Mod.
6941
6942 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
6943
6944 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
6945 pragma restrictions.
6946 New entry for Ada 2005 attribute Mod.
6947
6948 * par-prag.adb:
6949 Add recognition of new pragma Restrictions No_Dependence
6950 Recognize restriction No_Obsolescent_Features at parse time
6951
6952 * bcheck.adb: Add circuitry for checking for consistency of
6953 No_Dependence restrictions.
6954
6955 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
6956 restrictions.
6957
6958 * restrict.ads, restrict.adb: Add subprograms to deal with
6959 No_Dependence restrictions.
6960
6961 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
6962 restrictions.
6963
6964 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
6965 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
6966
6967 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
6968 dummy parameter to scng instantiation.
6969 Needed for new restriction No_Obsolescent_Features
6970
6971 * scn.adb: (Obsolescent_Check): New procedure
6972 Needed for new restriction No_Obsolescent_Features
6973
6974 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
6975 specified by AI-285, needed for implementation of AI-388 (adding greek
6976 pi to Ada.Numerics).
6977 Add new generic formal to scng, needed for new restriction
6978 No_Obsolescent_Features.
6979
6980 * s-rident.ads: Add new restriction No_Obsolescent_Features.
6981
6982 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
6983 restrictions lines.
6984 (Scan_ALI): When finding an unexpected character on an R line, raise
6985 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
6986 Ignore_Errors is True, default restrictions are set and scanning of the
6987 ALI file continues with the next line. Also, when Bad_R_Line is raised
6988 and Ignore_Errors is True, skip to the end of le line.
6989
6990 * sem_ch10.adb: Check that explicit with's do not violate
6991 No_Dependence restrictions.
6992 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
6993 illegal context clauses containing child units of instance.
6994
6995 * sem_prag.adb: Processing and checking for new No_Dependence
6996 restrictions.
6997 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
6998 analyze and check the External argument.
6999
7000 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
7001
7002 2005-01-03 Robert Dewar <dewar@adacore.com>
7003
7004 * atree.adb: Add a fifth component to entities
7005 This allows us to add 32 flags and four new fields
7006
7007 * atree.ads: Add a fifth component to entities
7008 This allows us to add 32 flags and four new fields
7009
7010 * einfo.ads, einfo.adb: Document new fields and new flags now available
7011 Add routines for printing new fields
7012
7013 * treepr.adb: Call routines to print out additional fields if present
7014
7015 2005-01-03 Arnaud Charlet <charlet@adacore.com>
7016
7017 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
7018 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
7019
7020 * Makefile.in: Add support to build shared Ada libraries on solaris x86
7021 Remove gpr2make, replaced by gprmake.
7022 Remove references to gnatmem and libaddr2line.
7023 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
7024 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
7025 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
7026 a-numaux-darwin.ads and a-numaux-darwin.adb
7027 Enable mlib-tgt-lynxos.adb on lynxos.
7028
7029 * Make-lang.in: Remove rules for gpr2make.
7030 When generating sdefault.adb, do not call Relocate_Path
7031 on S3 for function Target_Name, as it is not a path.
7032 Remove references to gnatmem and libaddr2line.
7033
7034 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
7035 files.
7036
7037 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
7038
7039 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
7040 address is incompatible with its base type alignment constraints when
7041 this can be decided statically.
7042
7043 2005-01-03 Olivier Hainque <hainque@adacore.com>
7044
7045 * decl.c (compatible_signatures_p): New function. The intended purpose
7046 is to check if two function signatures for a call-site and a callee are
7047 compatible enough for the call to be valid. The underlying purpose is
7048 to check if a call to a mapped builtin is using the right interface.
7049 The current code actually does not check antyhing - this a placeholder
7050 for future refinements.
7051 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
7052 builtin calls for convention Intrinsic.
7053
7054 * gigi.h (builtin_decl_for): Declare (new function).
7055
7056 * utils.c (gnat_install_builtins): Install the target specific builtins.
7057 (builtin_decl_for): New function, provide a dummy body for now.
7058
7059 2005-01-03 Geert Bosch <bosch@adacore.com>
7060
7061 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
7062 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
7063 (Pred): Implement in terms of Succ.
7064
7065 * trans.c (convert_with_check): Reimplement conversion of float to
7066 integer.
7067
7068 2005-01-03 Ed Schonberg <schonberg@adacore.com>
7069 Vincent Celier <celier@adacore.com>
7070
7071 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
7072 bounds can be negative, and must be declared Int, not Nat.
7073
7074 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
7075 array is checked after using the index in the array.
7076
7077 * makegpr.adb (Add_Switches): Check if there is a package for the
7078 processor. If there is no package, do not look for switches.
7079
7080 2005-01-03 Ed Schonberg <schonberg@adacore.com>
7081
7082 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
7083 generation of predefined stream operations (specs and bodies) should
7084 proceed. Under various restrictions these subprograms must not be
7085 generated.
7086
7087 2005-01-03 Thomas Quinot <quinot@adacore.com>
7088
7089 * exp_dist.adb:
7090 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
7091 amount of PCS-specific code in RACW stubs generation.
7092 (Copy_Specification): Set Etype on copied formal parameter entities, as
7093 this information is needed for PolyORB stubs generation.
7094 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
7095 variable Dynamic_Async.
7096 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
7097 (Build_RPC_Receiver_Specification): Make generic again, as recent
7098 changes have allowed RPC receivers to have the same profile for both
7099 variants of the PCS.
7100 Reorganise RPC receiver generation to reduce differences between the
7101 structure of GARLIC and PolyORB RPC receivers.
7102 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
7103 PCS-specific.
7104 Simplify elaboration code for RCI packages.
7105
7106 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
7107 generation to reduce differences between the structure of GARLIC and
7108 PolyORB RPC receivers.
7109
7110 * s-stratt.adb: Fix typo in comment.
7111
7112 2005-01-03 Thomas Quinot <quinot@adacore.com>
7113
7114 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
7115 copied from Make_Init_Call).
7116
7117 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
7118 reads and assignments on a temporary variable declared with appropriate
7119 discriminants.
7120
7121 2005-01-03 Robert Dewar <dewar@adacore.com>
7122
7123 * i-c.adb (To_C): Raise CE if string is null and Append_Null
7124
7125 2005-01-03 Robert Dewar <dewar@adacore.com>
7126
7127 * i-cstrin.adb (Update): Do not append a null in form called with a
7128 String. This avoids unintended behavior.
7129
7130 2005-01-03 Arnaud Charlet <charlet@adacore.com>
7131
7132 PR ada/17527
7133 * init.c: Fix warnings on Free BSD section.
7134
7135 2005-01-03 Arnaud Charlet <charlet@adacore.com>
7136
7137 PR ada/16949
7138 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
7139 xsinfo.adb).
7140
7141 2005-01-03 Vincent Celier <celier@adacore.com>
7142
7143 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
7144 libraries when Unique_Compile is True (-u switch).
7145 (Gnatmake): ditto.
7146
7147 2005-01-03 Robert Dewar <dewar@adacore.com>
7148
7149 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
7150 upper case letter or underscore after W, as allowed by spec.
7151
7152 2005-01-03 Arnaud Charlet <charlet@adacore.com>
7153
7154 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
7155 darwin port by using proper type definitions from header files.
7156 Use SIGTERM instead of SIGABRT for SIGADAABORT.
7157
7158 2005-01-03 Robert Dewar <dewar@adacore.com>
7159
7160 * par.adb: Enhance error message handling for configuration file
7161 pragmas.
7162
7163 2005-01-03 Robert Dewar <dewar@adacore.com>
7164
7165 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
7166 removed during the previous update (test properly for case of dividing
7167 largest negative number by -1, which generates overflow).
7168
7169 2005-01-03 Ed Schonberg <schonberg@adacore.com>
7170 Sergey Rybin <rybin@adacore.com>
7171
7172 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
7173 to use as the defining identifier for a formal package.
7174 (Remove_Parent): If the instance takes place within (an instance of)
7175 a sibling, preserve private declarations of common parent.
7176
7177 2005-01-03 Ed Schonberg <schonberg@adacore.com>
7178
7179 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
7180 to determine whether one of the operands is a fixed-point type for
7181 which a user-defined multiplication or division operation might be
7182 defined.
7183
7184 * sem_res.adb (Valid_Conversion): The legality rules for conversions
7185 of access types are symmetric in Ada 2005: either designated type can
7186 be unconstrained.
7187
7188 2005-01-03 Vincent Celier <celier@adacore.com>
7189
7190 * s-fileio.adb (Temp_File_Record): Change length of string component
7191 Name from L_tmpnam + 1 to max_path_len + 1.
7192
7193 2005-01-03 Arnaud Charlet <charlet@adacore.com>
7194
7195 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
7196 Self_Id.Deferral_Level = 0.
7197 (Do_Pending_Action): Move this function to the spec.
7198
7199 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
7200 Do_Pending_Action explicitely when needed, in case we're using
7201 No_Abort restrictions.
7202
7203 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
7204 deferral level since it will not get changed by the generated code.
7205 Keeping a default value of 1 would prevent some operations (e.g.
7206 select or delay) to proceed successfully.
7207
7208 2005-01-03 Ben Brosgol <brosgol@adacore.com>
7209 Robert Dewar <dewar@adacore.com>
7210 Cyrille Comar <comar@adacore.com>
7211
7212 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
7213 porting guide chapter (vms version).
7214 Revised doc title (removed "for native platforms") and subtitle.
7215 Add discussion on warning flag for obsolescent features. First we
7216 note that it applies to obsolete GNAT features, which was previously
7217 omitted. Second we contrast the behavior with that of the new
7218 Ada 2005 AI-368 restriction No_Obsolescent_Features.
7219 Preliminary rewriting of GNAT & libraries chapter in order to take
7220 into account default project locations & new project manager
7221 capabilities.
7222
7223 2005-01-03 Robert Dewar <dewar@adacore.com>
7224
7225 * cstand.adb (Create_Operators): Clean up format and documentation of
7226 unary and binary operator result tables. No change in code, just
7227 reformatting and addition of comments.
7228
7229 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
7230 sem_ch2.adb: Minor reformatting
7231
7232 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
7233 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
7234 comments for Tree_Read and Tree_Write.
7235
7236 2005-01-03 Pascal Obry <obry@adacore.com>
7237
7238 * exp_attr.ads: Minor reformatting.
7239
7240 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
7241
7242 * comperr.adb (Compiler_Abort): Add specialized message for GAP
7243 versions.
7244
7245 2005-01-03 Ed Schonberg <schonberg@adacore.com>
7246
7247 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
7248 whether the ancestor type is private, as may be the case with nested
7249 instantiations.
7250
7251 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
7252
7253 PR ada/19128
7254 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
7255
7256 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
7257
7258 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
7259 * utils2.c (build_unary_op): Likewise.
7260
7261 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7262
7263 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
7264
7265 2004-12-19 Richard Henderson <rth@redhat.com>
7266
7267 * trans.c (gigi): Update gimplify_body call.
7268
7269 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
7270
7271 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
7272
7273 2004-12-07 Ed Falis <falis@adacore.com>
7274
7275 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
7276 current task being suspended.
7277
7278 * init.c (__gnat_clear_exception): added to reset VxWorks exception
7279 count.
7280 (__gnat_map_signal): removed test for current task being suspended.
7281
7282 2004-12-07 Gary Dismukes <dismukes@adacore.com>
7283
7284 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
7285 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
7286 targets (such as AAMP).
7287
7288 2004-12-07 Ed Schonberg <schonberg@adacore.com>
7289
7290 * atree.adb (Visit_Itype): Create a new name for the generated itype,
7291 because the back-end may otherwise treat it as a redefinition of the
7292 old symbol.
7293
7294 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
7295
7296 * back_end.adb (Scan_Back_End_Switches): Accept --param.
7297
7298 * lang-specs.h: Accept --param.
7299
7300 2004-12-07 Vincent Celier <celier@adacore.com>
7301
7302 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
7303 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
7304 Current_Body_Suffix => Ada_Body_Suffix).
7305 Take into account Externally_Built attribute.
7306
7307 * clean.adb (In_Extension_Chain): Always return False when one of the
7308 parameter is No_Project.
7309 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
7310 Ada_Language_Index).
7311 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
7312 Process_Languages for procedure Parse).
7313
7314 * gnatcmd.adb (Carg_Switches): New table.
7315 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
7316 Adapt to name changes in package Prj (Current_Spec_Suffix =>
7317 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
7318
7319 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
7320 Header_Num and function Hash are now declared in package Prj,
7321 not Prj.Com.
7322
7323 * prj.adb (Suffix_Of): New function.
7324 (Set (Suffix)): New procedure.
7325 (Hash): One function moved from Prj.Com
7326 (Is_Present, Language_Processing_Data_Of): New functions
7327 (Set): Two new procedures
7328 (Add_Language_Name, Display_Language_Name): New procedures
7329
7330 * prj.ads: (Suffix_Of): New function
7331 (Set (Suffix)): New procedure
7332 Add several types and tables for multi-language support.
7333 (Header_Num): Type moved from Prj.Com
7334 (Hash): Two functions moved from Prj.Com
7335 (Is_Present, Language_Processing_Data_Of): New functions
7336 (Set): Two new procedures
7337 (Add_Language_Name, Display_Language_Name): New procedures
7338 (Naming): Component name changes:
7339 Current_Spec_Suffix => Ada_Spec_Suffix,
7340 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
7341 Impl_Suffixes, Supp_Suffixes.
7342 (Project_Data): New components: Externally_Built, Supp_Languages,
7343 First_Language_Processing, Supp_Language_Processing, Default_Linker,
7344 Default_Linker_Path.
7345
7346 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
7347 new package Language_Processing with its attributes (Compiler_Driver,
7348 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
7349 Binder_Driver, Default_Linker).
7350
7351 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
7352 (Header_Num): Type moved to package Prj
7353
7354 * prj-env.adb: Adapt to name changes in package Prj
7355 (Current_Spec_Suffix => Ada_Spec_Suffix,
7356 Current_Body_Suffix => Ada_Body_Suffix).
7357
7358 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
7359 default to the project path, except the "-" is one of the directories
7360 in env var ADA_PROJECT_PATH.
7361 (Current_Project_Path): Global variable, replacing Project_Path
7362 that was in the body of Prj.Part.
7363 (Project_Path): New function
7364 (Set_Project_Path): New procedure
7365 Initialize Current_Project_Path during elaboration of the package
7366 Remove dependency on Prj.Com, no longer needed
7367
7368 * prj-ext.ads (Project_Path): New function
7369 (Set_Project_Path): New procedure
7370
7371 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
7372 suffix is defined for language <lang>.
7373 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
7374 accessing directly the components of Naming.
7375 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
7376 Reorganise of this package.
7377 Break procedure Check in several procedures.
7378
7379 * prj-nmsc.ads: Replace all procedures (Ada_Check,
7380 Other_Languages_Check and Language_Independent_Check) with a single
7381 procedure Check.
7382
7383 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
7384 Process_Languages, no longer needed.
7385
7386 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
7387 Current_Project_Path.
7388 Remove elaboration code, moved to the body of Prj.Ext
7389 Use new function Prj.Ext.Project_Path instead of old variable
7390 Project_Path.
7391 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
7392 When comparing with project paths on the stack, first put the resolved
7393 path in canonical case.
7394 (Parse_Single_Project): Set the path name of the project file in the
7395 tree to the normalized path.
7396
7397 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
7398 parameter Process_Languages, no longer needed.
7399 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
7400 Other_Languages_Check.
7401
7402 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
7403 to store the resolved canonical path of the project file.
7404 Remove dependency to Prj.Com, no longer needed
7405
7406 * prj-util.adb: Adapt to name changes in package Prj
7407 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
7408 Ada_Body_Suffix).
7409
7410 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
7411 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
7412 Externally_Built, Include_Option, Language_Processing.
7413
7414 * makegpr.adb: Numerous changes due to changes in packages
7415 Prj and Prj.Nmsc.
7416
7417 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
7418 default to the project path, except whe "-" is one of the directories
7419 in env var ADA_PROJECT_PATH.
7420 (Gnatls): In verbose mode, add the new section "Project Search Path:"
7421
7422 2004-12-07 Robert Dewar <dewar@adacore.com>
7423
7424 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
7425
7426 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
7427 set -gnatR3m mode.
7428
7429 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
7430 flag. No longer needed now that we handle this in gnat1drv.adb.
7431
7432 * repinfo.ads: Minor reformatting
7433
7434 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7435 Olivier Hainque <hainque@adacore.com>
7436 Eric Botcazou <ebotcazou@adacore.com>
7437
7438 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
7439 TYPE_SIZE_UNIT of result type if SIZE is not specified.
7440 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
7441 of a bitfield, which we know is useless and causes trouble because of
7442 alignment implications.
7443
7444 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
7445 BSS sections.
7446 (process_attributes): Clear DECL_COMMON again when a section attribute
7447 is present.
7448 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
7449 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
7450 (create_field_decl): Special case ADDRESSABLE negative to mean
7451 "no bitfield creation", to be used by make_aligning_type. Don't
7452 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
7453 fields claimed addressable still have to be bitfields. Use
7454 value_factor_p instead of a raw binop construction to check for the
7455 position's alignment.
7456
7457 2004-12-07 Geert Bosch <bosch@adacore.com>
7458
7459 * eval_fat.adb: Revert previous change.
7460
7461 2004-12-07 Thomas Quinot <quinot@adacore.com>
7462 Ed Schonberg <schonberg@adacore.com>
7463
7464 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
7465 with an implicit dereference as its prefix, use
7466 Insert_Explicit_Dereference instead of merely rewriting the prefix into
7467 an explicit dereference. This ensures that a reference to the original
7468 prefix is generated, if appropriate.
7469
7470 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
7471 dereference is rewritten to an explicit one, generate a reference to
7472 the entity denoted by its prefix using the original prefix node, so
7473 the dereference can be properly recorded as a read of the denoted
7474 access value, if appropriate.
7475
7476 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
7477 emitting 'assigned but never read' warning on a variable on the basis
7478 that it has an access type.
7479 (Check_References): Emit unreferenced warning when the scope is a
7480 subprogram body.
7481
7482 2004-12-07 Robert Dewar <dewar@adacore.com>
7483 Ed Schonberg <schonberg@adacore.com>
7484
7485 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
7486 intrinsic
7487
7488 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
7489 leaving call unchanged.
7490 This deals with the case where the pragma Import specified
7491 an external name, to be handled by the back end.
7492
7493 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
7494 subprogram which is Imported with convention Intrinsic if an
7495 External_Name argument is specified.
7496 (Process_Import_Or_Interface): Properly diagnose link name argument.
7497 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
7498 with Sem_Ch6.Cannot_Inline.
7499 (Process_Inline): Provide separate warning for inapplicable inline
7500 pragma.
7501 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
7502 treatment is uniform on different targets.
7503
7504 2004-12-07 Ed Schonberg <schonberg@adacore.com>
7505
7506 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
7507 construct is rewritten, preserve end label to permit source navigation.
7508
7509 2004-12-07 Thomas Quinot <quinot@adacore.com>
7510
7511 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
7512 Specific_Build_Stub_Target): New subprograms.
7513 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
7514 the PCS implementation used, using the above PCS-customized subprograms.
7515 Minor reformatting.
7516 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
7517 for generation of DSA code targeted to the PolyORB PCS.
7518 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
7519 implementation of the partition communication subsystem in ancillary
7520 subprograms.
7521 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
7522 PolyORB_Support.Build_Stub_Type): New subrograms containing the
7523 PCS-specific part of Add_Stub_Type.
7524 (Insert_Partition_Check): Use runtime library function to perform
7525 E.4(19) check.
7526
7527 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
7528 (RE_Same_Partition): New entity, from s-parint.
7529
7530 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
7531
7532 2004-12-07 Gary Dismukes <dismukes@adacore.com>
7533
7534 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
7535 Output the copyright message on a separate line from the version
7536 message.
7537
7538 2004-12-07 Joel Brobecker <brobecker@adacore.com>
7539
7540 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
7541 compile-time warning.
7542
7543 2004-12-07 Robert Dewar <dewar@adacore.com>
7544
7545 * g-regpat.adb: (Match): Change a misuse of or to or else
7546
7547 2004-12-07 Ed Schonberg <schonberg@adacore.com>
7548
7549 * lib-xref.adb:
7550 (Generate_Reference): Handle properly a reference to an entry formal,
7551 when an accept statement has a pragma Unreferenced for it.
7552
7553 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
7554 and the Has_Pragma_Unreferenced flag for each formal before analyzing
7555 the body, to ensure that warnings are properly emitted for each accept
7556 statement of a given task entry.
7557
7558 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
7559
7560 * Makefile.in: Add support for foreign threads on VMS.
7561
7562 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7563
7564 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
7565 Remove.
7566 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
7567
7568 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
7569
7570 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
7571 exception.
7572 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
7573
7574 2004-12-07 Robert Dewar <dewar@adacore.com>
7575
7576 * nlists.adb (Prepend_Debug): Remove parameters and nest within
7577 Prepend.
7578 (Remove_Next_Debug): Same fix
7579
7580 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
7581 maintain back pointers now, though we did not used to, and comments
7582 were out of date).
7583 (Prepend): Remove pragma Inline.
7584 (Remove_Next): Same cleanup
7585
7586 2004-12-07 Thomas Quinot <quinot@adacore.com>
7587
7588 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
7589 used to record an implicit dereference as a read operation on its
7590 prefix when operating under -gnatc. Necessary to avoid spurious
7591 'variable assigned but never read' warnings in that mode.
7592 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
7593 is a non-overloaded implicit dereference, call the above subprogram to
7594 ensure proper recording of references.
7595
7596 2004-12-07 Gary Dismukes <dismukes@adacore.com>
7597
7598 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
7599 to be resolved later as part of Analyze_Iteration_Scheme's call to
7600 Make_Index.
7601
7602 2004-12-07 Ed Schonberg <schonberg@adacore.com>
7603
7604 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
7605 prefix is not a scalar type, place error message on prefix, not on
7606 type entity.
7607
7608 2004-12-07 Bernard Banner <banner@adacore.com>
7609
7610 * vxaddr2line.adb: Add support for x86 vxworks
7611
7612 2004-12-07 Thomas Quinot <quinot@adacore.com>
7613
7614 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
7615 documentation of the behaviour of these functions when passed an IP
7616 address that has no record in the system hosts database and no reverse
7617 record in the DNS.
7618
7619 * cstand.adb, a-tags.ads: Fix typos in comment.
7620
7621 2004-12-07 Robert Dewar <dewar@adacore.com>
7622
7623 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
7624 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
7625 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
7626 s-poosiz.ads: Minor reformatting
7627
7628 * make.adb: Minor reformatting
7629 Add some ??? comments asking for more comments
7630
7631 * s-poosiz.adb: Minor reformatting
7632 Add comments on alignment requirement
7633
7634 * sinfo.ads: Remove obsolete comment and fix typo.
7635
7636 2004-12-07 Vincent Celier <celier@adacore.com>
7637 Sergey Rybin <rybin@adacore.com>
7638
7639 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
7640 Files" with the new tool and package names.
7641 Reformatting to suppress most of the warnings for line too long
7642 Document the new section "Project Search Path:" in the output of
7643 gnatls -v.
7644 Add gnatmetric section
7645
7646 2004-12-07 Vincent Celier <celier@adacore.com>
7647
7648 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
7649 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
7650 and -eit to -ept. Added qualifier
7651 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
7652
7653 2004-11-27 Andreas Schwab <schwab@suse.de>
7654
7655 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
7656
7657 2004-11-25 Arnaud Charlet <charlet@adacore.com>
7658
7659 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
7660 internal implementation unit GNAT.Sockets.Thin,
7661 as their usage for sockets is non-portable (using the read and write
7662 functions from the system runtime library is fine on UNIX but won't
7663 work under Windows).
7664
7665 * mingw32.h: Update copyright notice.
7666
7667 2004-11-25 Arnaud Charlet <charlet@adacore.com>
7668
7669 * ada-tree.h: Minor reformatting of previous change to avoid lines
7670 longer than 79 characters.
7671
7672 2004-11-25 Olivier Hainque <hainque@adacore.com>
7673
7674 * tb-gcc.c: GCC infrastructure based implementation of
7675 __gnat_backtrace.
7676
7677 2004-11-24 Steven Bosscher <stevenb@suse.de>
7678
7679 * misc.c (gnat_post_options): Don't clear
7680 flag_inline_functions.
7681
7682 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
7683
7684 PR ada/17986
7685 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
7686 tree.
7687
7688 2004-11-21 Andreas Jaeger <aj@suse.de>
7689
7690 * stylesw.adb: Change Style_Check_Subprogram_Order to
7691 Style_Check_Order_Subprograms.
7692
7693 2004-11-18 Arnaud Charlet <charlet@adacore.com>
7694
7695 * adaint.h, adaint.c
7696 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
7697 to avoid warnings.
7698 Add also a cast to kill another warning.
7699 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
7700 parameter with the priority class of the parent process instead of
7701 always using the NORMAL_PRIORITY_CLASS.
7702 (__gnat_dup): New function.
7703 (__gnat_dup2): New function.
7704 (__gnat_is_symbolic_link): Enable the effective body of this
7705 function when __APPLE__ is defined.
7706
7707 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
7708 Update comments.
7709
7710 2004-11-18 Olivier Hainque <hainque@adacore.com>
7711
7712 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
7713 address of which may be used to represent "others" and "all others"
7714 choices in exception tables, instead of the current harcoded
7715 (void *)0 and (void *)1.
7716 (Setup_Exception): Do nothing in the GNAT SJLJ case.
7717
7718 * gigi.h (others_decl, all_others_decl): New decls representing the
7719 new Others_Value and All_Others_Value objects.
7720 (struct attrib): Rename "arg" component as "args", since GCC expects a
7721 list of arguments in there.
7722
7723 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
7724 corresponding objects exported by a-exexpr, instead of hardcoded dummy
7725 addresses.
7726
7727 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
7728 others_decl and all_others_decl instead of hardcoded dummy addresses
7729 to represent "others" and "all others" choices, which is cleaner and
7730 more flexible with respect to the possible eh pointer encoding policies.
7731
7732 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
7733 (process_attributes): Account for the naming change of the "args"
7734 attribute list entry component.
7735
7736 * decl.c (build_attr_list): Rename into prepend_attributes to allow
7737 cumulating attributes for different entities into a single list.
7738 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
7739 attributes for the current entity and propagate first subtype
7740 attributes to other subtypes.
7741 <E_Procedure>: Attribute arguments are attr->args and not
7742 attr->arg any more.
7743 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
7744 argument provided, as this is what GCC expects. Use NULL_TREE instead
7745 of 0 for trees.
7746
7747 2004-11-18 Robert Dewar <dewar@adacore.com>
7748
7749 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
7750 Minor reformatting througout (including new function specs)
7751 Add ??? comments asking for clarification.
7752
7753 2004-11-18 Thomas Quinot <quinot@adacore.com>
7754
7755 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
7756 incomplete duplicate implementation of this subprogram from butil.
7757
7758 2004-11-18 Thomas Quinot <quinot@adacore.com>
7759
7760 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
7761 procedures factors the common processing for building an RPC receiver
7762 for an RCI package or an RACW type.
7763 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
7764 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
7765 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
7766 in use.
7767 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
7768 Add_RACW_Features.
7769 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
7770 Add_RAST_Features.
7771 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
7772 distribution subprogram identifiers that are either subprogram numbers
7773 or strings.
7774 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
7775 string distribution identifiers assigned to a given subprogram.
7776 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
7777 (Add_RAS_Dereference_TSS): Add comments.
7778 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
7779 is not referenced yet because it will be used by the PolyORB DSA
7780 implementation.
7781 (Insert_Partition_Check): Remove fossile code.
7782 (First_RCI_Subprogram_Id): Document this constant.
7783 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
7784 RAS_Access TSS.
7785 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
7786 replaced with calls to Get_Library_Unit_Name_String. Previously there
7787 were several instances of the same code in different locations in the
7788 compiler; this checkin completes the replacement of all of these
7789 instances with calls to a common subprogram.
7790 Minor reformatting.
7791
7792 * sem_dist.adb: Remove comment noting that RPC receiver generation
7793 should be disabled for RACWs that implement RASs.
7794 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
7795
7796 * sem_util.ads, sem_util.adb (Has_Stream): New function
7797 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
7798 qualified name of a library unit into the name buffer.
7799 (Note_Possible_Modification): Generate a reference only
7800 if the context comes from source.
7801
7802 * snames.ads (PCS_Names): New subtype corresponding to names of
7803 supported implementations of the Partition Communication Subsystem
7804 (PCS) (i.e. the runtime library support modules for the distributed
7805 systems annex).
7806
7807 2004-11-18 Robert Dewar <dewar@adacore.com>
7808 Ed Schonberg <schonberg@adacore.com>
7809
7810 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
7811 (Has_Rep_Pragma): New function
7812 (Has_Attribute_Definition_Clause): New function
7813 (Record_Rep_Pragma): Moved here from sem_ch13.adb
7814 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
7815
7816 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
7817
7818 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
7819 (Expand_Pragma_Psect_Object): New procedure
7820 These procedures contain the revised and cleaned up processing for
7821 these two pragmas. This processing was formerly in Sem_Prag, but
7822 is more appropriately moved here. The cleanup involves making sure
7823 that the pragmas are properly attached to the tree, and that no
7824 nodes are improperly shared.
7825
7826 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
7827 pragmas to Exp_Prag, which is more appropriate.
7828 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
7829 check for duplicates Remove use of Is_Psected flag, no longer needed.
7830 Use new Make_String_Literal function with string.
7831
7832 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
7833 that are functions return universal values, that have to be converted
7834 to the context type.
7835 Use new Make_String_Literal function with string.
7836 (Get_Stream_Convert_Pragma): New function, replaces the use of
7837 Get_Rep_Pragma, which had to be kludged to work in this case.
7838
7839 * freeze.adb: Use new Has_Rep_Pragma function
7840
7841 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
7842 function with string.
7843 Use new Has_Rep_Pragma function.
7844
7845 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
7846 string argument.
7847
7848 2004-11-18 Robert Dewar <dewar@adacore.com>
7849
7850 * errout.ads, errout.adb: (First_Sloc): New function
7851
7852 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
7853 check (-gnatyx) instead of being included as a redundant construct
7854 warning.
7855
7856 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
7857 Style_Check_Order_Subprograms.
7858
7859 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
7860 stylesw.adb: Add Style_Check_Xtra_Parens
7861
7862 * usage.adb: Add line for -gnatyx (check extra parens)
7863
7864 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
7865
7866 2004-11-18 Ed Schonberg <schonberg@adacore.com>
7867 Robert Dewar <dewar@adacore.com>
7868
7869 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
7870 discriminant of a constrained subtype, analyze the copy of the
7871 corresponding constraint, because in some cases it may be only
7872 partially analyzed.
7873 Removes long-lived ??? comments.
7874
7875 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
7876 handled controlled or secondary-stack expressions within the
7877 iteration_scheme of a loop.
7878
7879 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
7880 bounds that may contain functions calls, to prevent memory leaks when
7881 the bound contains a call to a function that uses the secondary stack.
7882 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
7883 generate temporaries for loop bounds that might contain function calls
7884 that require secondary stack and/or finalization actions.
7885
7886 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
7887 selected component and the selector is overloadable (not just a
7888 function) treat as function call, Analyze_Call will disambiguate if
7889 necessary.
7890 (Analyze_Selected_Component): Do not generate an actual subtype for the
7891 selected component if expansion is disabled. The actual subtype is only
7892 needed for constraint checks.
7893 (Analyze_Allocator): If restriction No_Streams is set, then do
7894 not permit objects to be declared of a stream type, or of a
7895 composite type containing a stream.
7896
7897 * restrict.ads: Remove the a-stream entry from Unit_Array, since
7898 No_Streams no longer prohibits with'ing this package.
7899
7900 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
7901 discriminants, but the parent base has unknown discriminants, there is
7902 no discriminant constraint to inherit. Such a discrepancy can arise
7903 when the actual for a formal type with unknown discriminants is a
7904 similar private type whose full view has discriminants.
7905 (Analyze_Object_Declaration): If restriction No_Streams is set, then
7906 do not permit objects to be declared of a stream type, or of a
7907 composite type containing a stream.
7908
7909 2004-11-18 Ed Schonberg <schonberg@adacore.com>
7910
7911 * exp_dbug.ads: Update documentation to reflect simpler encoding for
7912 protected operations.
7913
7914 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
7915 generated name, it complicates decoding in gdb and hinders debugging
7916 of protected operations.
7917 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
7918 flag for the protected entry barrier function.
7919 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
7920 flag for the protected entry function.
7921
7922 2004-11-18 Nicolas Setton <setton@adacore.com>
7923
7924 * expect.c: Define __unix__ when __APPLE__ is defined.
7925
7926 * Makefile.in: Inform the value of the variable GMEM_LIB in the
7927 Darwin-specific section.
7928
7929 * lang-specs.h: Change the placement of the %1 marker.
7930 Works around the fact that gcc adds -fPIC by default under Darwin.
7931
7932 2004-11-18 Ed Schonberg <schonberg@adacore.com>
7933
7934 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
7935 type of the object with the packed array type, set the Analyzed flag
7936 on the object if it is an entity or simple indexed component, to avoid
7937 spurious type errors.
7938
7939 2004-11-18 Gary Dismukes <dismukes@adacore.com>
7940
7941 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
7942 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
7943 separate line from the version message.
7944
7945 2004-11-18 Ed Falis <falis@adacore.com>
7946
7947 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
7948 vthreads.
7949 (init_float): Eliminate initialization of floating point status for
7950 AE653. The instructions have no effect for vThreads.
7951
7952 2004-11-18 Vincent Celier <celier@adacore.com>
7953
7954 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
7955 gnatbind is invoked with -shared.
7956
7957 2004-11-18 Jose Ruiz <ruiz@adacore.com>
7958
7959 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
7960 for Detect_Blocking which is redundant with the check done within the
7961 procedure Protected_Single_Entry_Call.
7962 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
7963 Detect_Blocking which is redundant with the check done within the
7964 procedure Protected_Single_Entry_Call.
7965
7966 2004-11-18 Vincent Celier <celier@adacore.com>
7967
7968 * makegpr.adb (Compile): Put the compiling switches (in package
7969 Compiler and on the command line) immediately after "-c", instead of
7970 at the end of the command line invocation of the compiler, when
7971 compiling a non-Ada file.
7972 (Build_Global_Archive): When there is no need to rebuild the archive,
7973 set Global_Archive_Exists, so that the archive is passed to the linker
7974 if one is needed.
7975
7976 2004-11-18 Robert Dewar <dewar@adacore.com>
7977 Sergey Rybin <rybin@adacore.com>
7978
7979 * gnat_ugn.texi:
7980 Remove extra paren check from list of checks for redundant constructs
7981 Add documentation of new -gnatyx style check (check extra parens)
7982 Remove paragraph about gnatelim debug options.
7983
7984 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
7985 objects rather than forbidding dependencies on the package Ada.Streams.
7986
7987 * sinfo.ads: Add ??? note that we should document pragmas passed to
7988 back end.
7989
7990 * g-expect.ads: Fix a few typos in the comments.
7991
7992 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
7993
7994 * misc.c (gnat_handle_option): Use %< and %> for quoting in
7995 warning message.
7996
7997 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7998
7999 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
8000
8001 2004-11-07 Andreas Schwab <schwab@suse.de>
8002
8003 * Makefile.in (install-gnatlib): Remove spurious hyphen.
8004
8005 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
8006
8007 PR ada/18228
8008 * Makefile.in (darwin): Set soext to .dylib.
8009
8010 2004-10-26 Vincent Celier <celier@gnat.com>
8011 Thomas Quinot <quinot@act-europe.fr>
8012
8013 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
8014 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
8015 there is no use of GNAT.Sockets.Constants.
8016 Remove remaining pragma Import for C_Write
8017 Remove C_Read and C_Write from internal implementation unit
8018 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
8019 the read and write functions from the system runtime library is fine
8020 on UNIX but won't work under Windows).
8021
8022 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
8023 (Check_Selector): Use C_Recv instead of C_Read.
8024 Selectors are the GNAT.Sockets abstraction to perform a select()
8025 call on a set of descriptors. To allow abortion of an ongoing
8026 select operation, some data is written to a dedicated socket that
8027 is always monitored.
8028 Under Windows, the write and read library functions cannot operate
8029 on sockets, so we need to use send and recv instead, which is portable
8030 across all supported platforms.
8031
8032 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
8033 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
8034 (using the read and write functions from the system runtime library is
8035 fine on UNIX but won't work under Windows).
8036
8037 2004-10-26 Nicolas Setton <setton@act-europe.fr>
8038
8039 * mlib-tgt-darwin.adb: New file.
8040
8041 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
8042 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
8043 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8044 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
8045 subprogram body.
8046
8047 * Makefile.in: Add support for building shared libraries under Darwin.
8048 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
8049 the low level EH init subprogram to be called from __gnat_initialize.
8050
8051 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
8052 indicates which options to pass to the archive indexer.
8053
8054 * mlib-utl.adb: Add support for calling ranlib with additional
8055 options. This is needed for instance under Mac OS X.
8056 (Ranlib_Options): New global variable, used to store the potential
8057 options to pass to ranlib.
8058 (Ar): Use Ranlib_Options when spawning ranlib.
8059 (Initialize): Set the value of ranlib option.
8060
8061 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
8062
8063 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
8064 instead of 8K, to reflect the real potential needs for stack-checking
8065 in the ZCX case.
8066
8067 2004-10-26 Pascal Obry <obry@gnat.com>
8068
8069 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
8070
8071 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
8072 Windows only the initial thread stack size can be set so it is good to
8073 start we a low stack size.
8074 The OS will adjust the size as needed.
8075
8076 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
8077 Nicolas Setton <setton@act-europe.fr>
8078
8079 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
8080 "__unix__" instead of "unix".
8081 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
8082 sections were just mistakenly ignored. The former is
8083 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
8084 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
8085 of hpux. This prevents an unwanted definition of the symbol
8086 convert_addresses in adaint.o.
8087
8088 2004-10-26 Gary Dismukes <dismukes@gnat.com>
8089
8090 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
8091 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
8092
8093 2004-10-26 Cyrille Comar <comar@act-europe.fr>
8094
8095 * a-filico.ads, a-filico.adb: fix incorrect header.
8096
8097 2004-10-26 Javier Miranda <miranda@gnat.com>
8098
8099 * a-ststio.ads: Fix typo in identifier
8100
8101 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
8102
8103 * sem_ch4.adb: Minor reformatting.
8104
8105 2004-10-26 Ed Schonberg <schonberg@gnat.com>
8106
8107 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
8108 enabled, check the result of unary and binary operations when the
8109 expression is the right-hand side of an assignment.
8110
8111 2004-10-26 Vincent Celier <celier@gnat.com>
8112
8113 * clean.adb (Delete): Do not output warnings when in quiet output and
8114 not in verbose mode.
8115 (Force_Deletions): New Boolean flag, defaulted to False
8116 (Delete): Only delete a file if it is writable, and when
8117 Force_Deletions is True.
8118 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
8119 (Usage): Line for new switch -f
8120 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
8121 own.
8122
8123 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
8124
8125 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
8126 JM type only if its size matches that of the wrapper. When a size is
8127 prescribed and the field is not aliased, remove the wrapper of a JM
8128 type only if the size is not greater than that of the packed array.
8129 (gnat_to_gnu_entity): Change the extension of packed array wrappers
8130 from LJM to JM.
8131
8132 2004-10-26 Geert Bosch <bosch@gnat.com>
8133
8134 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
8135 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
8136 (Pred): Implement in terms of Succ.
8137
8138 2004-10-26 Ed Schonberg <schonberg@gnat.com>
8139
8140 * exp_aggr.adb (Safe_Component): An aggregate component that is an
8141 unchecked conversion is safe for in-place use if the expression of the
8142 conversion is safe.
8143 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
8144 be expandable in place even if the aggregate does not come from source.
8145 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
8146 designated object of an allocator in place, rather than building it
8147 first on the stack. The previous scheme forces a full copy of the array,
8148 and may be altogether unsusable if the size of the array is too large
8149 for stack allocation.
8150
8151 2004-10-26 Robert Dewar <dewar@gnat.com>
8152
8153 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
8154 compares if the component is atomic.
8155
8156 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
8157 array assignment if the component type is atomic.
8158
8159 2004-10-26 Ed Schonberg <schonberg@gnat.com>
8160 Eric Botcazou <ebotcazou@act-europe.fr>
8161
8162 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
8163 is aliased and is a by_reference type, do not pass by copy.
8164 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
8165 detect whether the call is in the right side of an assignment or
8166 the expression of an object declaration. Recurse on component
8167 association within aggregates.
8168 Call it in the condition that determines whether the temporary is
8169 necessary for correct stack-checking.
8170
8171 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
8172
8173 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
8174 RACW_Type, used in the PolyORB version.
8175 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
8176 version and the GARLIC version.
8177
8178 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
8179 Rename RCI_Info to RCI_Locator for better consistency between the
8180 GARLIC and PolyORB versions of the distributed systems annex.
8181 (DSA_Implementation_Name): This enumeration lists the possible
8182 implementations of the Partition Communication Subsystem for the
8183 Distributed Systems Annex (DSA). The three available implementations
8184 are the dummy stub implementation (No_DSA), and two versions based on
8185 two different distribution runtime libraries: GARLIC and PolyORB. Both
8186 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
8187 technology.
8188 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
8189 that organization.
8190
8191 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
8192 between the GARLIC and PolyORB versions of the distributed systems
8193 annex.
8194 Remove RE_Unbounded_Reclaim_Pool since it is unused.
8195
8196 2004-10-26 Gary Dismukes <dismukes@gnat.com>
8197
8198 * gnat1drv.adb: Suppress calling the back end when
8199 Frontend_Layout_On_Target is true.
8200
8201 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
8202
8203 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
8204 Set_Read_Only): New subprograms.
8205 These new routines allow the user to set or unset the Owner execute
8206 and Owner write permission flags on a file.
8207
8208 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
8209 GNAT.OS_Lib.Set_Executable instead of rolling our own.
8210
8211 2004-10-26 Matthew Gingell <gingell@gnat.com>
8212
8213 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
8214
8215 2004-10-26 Pascal Obry <obry@gnat.com>
8216
8217 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
8218 memory before the faulting page we properly test the process read
8219 access for this address using appropriate Win32 routine.
8220 (HPUX sections): guard with "__hpux__" instead of "hpux".
8221
8222 2004-10-26 Robert Dewar <dewar@gnat.com>
8223
8224 * lib-xref.adb (Generate_Reference): Don't complain about reference to
8225 entry parameter if pragma Unreferenced set, since we do not properly
8226 handle the case of multiple parameters.
8227
8228 2004-10-26 Vincent Celier <celier@gnat.com>
8229
8230 * prj-env.adb: (Contains_ALI_Files): New Boolean function
8231 (Ada_Objects_Path.Add): For a library project, add to the object path
8232 the library directory only if there is no object directory or if the
8233 library directory contains ALI files.
8234 (Set_Ada_Paths.Add.Recursive_Add): Ditto
8235
8236 2004-10-26 Vincent Celier <celier@gnat.com>
8237
8238 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
8239 extension of library projects.
8240
8241 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
8242 path defaults to ".:<prefix>/lib/gnat".
8243 (Parse): For an extending all project, allow direct import of a project
8244 that is virtually extended.
8245
8246 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
8247 the specified name is directly imported, return its ID. Otherwise, if
8248 an extension of this project is imported, return the ID of the
8249 extension.
8250
8251 2004-10-26 Robert Dewar <dewar@gnat.com>
8252
8253 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
8254 (Sub3): New procedure, used by Scaled_Divide
8255 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
8256 correct more than one instance of failure to propagate carries
8257 correctly.
8258 (Double_Divide): Handle overflow case of largest negative number
8259 divided by minus one.
8260
8261 * s-arit64.ads (Double_Divide): Document that overflow can occur in
8262 the case of a quotient value out of range.
8263 Fix comments.
8264
8265 2004-10-26 Robert Dewar <dewar@gnat.com>
8266
8267 * s-bitops.adb (Bit_Eq): Remove redundant check.
8268
8269 * s-bitops.ads: Minor comment updates
8270 Change some occurrences of Address to System.Address
8271
8272 * s-carsi8.ads: Fix minor cut-and-paste error in comments
8273
8274 2004-10-26 Ed Schonberg <schonberg@gnat.com>
8275
8276 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
8277 accessibility check to prefix that is a protected operation.
8278
8279 2004-10-26 Ed Schonberg <schonberg@gnat.com>
8280
8281 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
8282 empty, post message on stub.
8283
8284 2004-10-26 Ed Schonberg <schonberg@gnat.com>
8285 Javier Miranda <miranda@gnat.com>
8286
8287 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
8288 current instance appears within a unit that is directly in the context
8289 of the main unit.
8290 Used to determine whether the body of the instance should be analyzed
8291 immediately after its spec, to make its subprogram bodies available
8292 for front-end inlining.
8293 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
8294 constraint is not allowed on the component type (AARM 12.5.3(3))
8295
8296 2004-10-26 Cyrille Comar <comar@act-europe.fr>
8297
8298 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
8299 'Storage_Pool): enhance, document & limit detection of non-sharable
8300 internal pools.
8301
8302 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
8303
8304 * s-pooglo.ads: Add more documentation now that this pool is properly
8305 documented.
8306
8307 2004-10-26 Ed Schonberg <schonberg@gnat.com>
8308
8309 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
8310 or protected type with discriminants, do not constrain the
8311 corresponding record type if the subtype declaration has no
8312 discriminant constraints. This can be the case in source code, or in
8313 the subtype declaration created to rename an actual type within an
8314 instantiation.
8315
8316 2004-10-26 Ed Schonberg <schonberg@gnat.com>
8317
8318 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
8319 different kind of stub (possibly wrong name for file), do not check
8320 for conformance.
8321 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
8322 includes call to some function that returns an unconstrained type, do
8323 not inline.
8324
8325 2004-10-26 Ed Schonberg <schonberg@gnat.com>
8326
8327 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
8328 appear in the code for the main unit. Dependencies among units in the
8329 context of the main unit are established when those other units are
8330 compiled. Otherwise spurious elaboration constraints can generate
8331 incorrect elaboration circularities.
8332
8333 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
8334 Ed Schonberg <schonberg@gnat.com>
8335
8336 * sem_util.adb (Is_Aliased_View): Defend against the case where this
8337 subprogram is called with a parameter that is not an object name. This
8338 situation arises for some cases of illegal code, which is diagnosed
8339 later, and in this case it is wrong to call Is_Aliased, as that might
8340 cause a compiler crash.
8341 (Explain_Limited_Type): Refine previous fix to include
8342 inherited components of derived types, to provide complete information.
8343
8344 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
8345 is the prival for a protected object.
8346 It is necessary to mark this entity as a variable, in addition to
8347 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
8348 modified to avoid checking the Aliased flag on entities that are not
8349 objects. (Checking that flag for non-objects is erroneous and could
8350 lead to a compiler crash).
8351
8352 2004-10-26 Robert Dewar <dewar@gnat.com>
8353
8354 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
8355 X_Frac = 0.5, then we know that the number X must be positive.
8356 (Succ): Remove the same redundant test, and also fix the primary test
8357 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
8358 Minor reformatting
8359 (Decompose): Add fuller comments to spec
8360
8361 2004-10-26 Pascal Obry <obry@gnat.com>
8362
8363 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
8364 validity (process must have read access). Set to 0 in all other cases.
8365 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
8366 violation on Win32.
8367 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
8368 segmentation violation.
8369
8370 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
8371
8372 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
8373 whose type is a constructed subtype of an aliased object with an
8374 unconstrained nominal subtype, convert the actual to the constructed
8375 subtype before taking its address.
8376
8377 2004-10-26 Vincent Celier <celier@gnat.com>
8378
8379 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
8380 (Is_Path_Name_Case_Sensitive): New function
8381
8382 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
8383 (Base_Name, Simple_Name, Current_Directory, Compose,
8384 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
8385 the result.
8386
8387 2004-10-26 Cyrille Comar <comar@act-europe.fr>
8388 Vasiliy Fofanov <fofanov@act-europe.fr>
8389 Vincent Celier <celier@gnat.com>
8390
8391 * gnat_ugn.texi: Generalize "finding memory problems" section into a
8392 "memory management issues" section and document some of the useful
8393 memory pools provided as part of the GNAT library.
8394 Remove "virtual" from declaration of A::method2 in
8395 the simple example of Ada/C++ mixed system.
8396 Library Projects may be virtually extended: their virtual extensions
8397 are not Library Projects.
8398 Added section on extending project hierarchies.
8399
8400 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
8401
8402 * adaint.c (__gnat_get_libraries_from_registry): Cast value
8403 to LPBYTE.
8404 (__gnat_portable_spawn): Remove const.
8405
8406 * mingw32.h (MAXPATHLEN): Check for previous definition.
8407
8408 2004-10-17 Matthias Klose <doko@debian.org>
8409
8410 * gnatvsn.ads: Set gnat library version to 4.0.
8411
8412 2004-10-05 Vincent Celier <celier@gnat.com>
8413
8414 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
8415
8416 2004-10-04 Laurent GUERBY <laurent@guerby.net>
8417
8418 PR ada/15156
8419 * Makefile.in: Define and use RANLIB_FLAGS.
8420
8421 2004-10-04 Pascal Obry <obry@gnat.com>
8422
8423 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
8424 other x86 platforms).
8425
8426 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
8427
8428 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
8429 in general and triggers stack alignment adjustment for thread entry
8430 points on targets where this is necessary.
8431
8432 2004-10-04 Bernard Banner <banner@gnat.com>
8433
8434 PR ada/13897
8435
8436 * Makefile.in: Add section for powerpc linux
8437 Add variant i-vxwork-x86.ads
8438
8439 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
8440
8441 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
8442
8443 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
8444 table registration calls when need be. Ensures no reference to the crt
8445 ctors symbol are issued in the SJLJ case, which avoids possible
8446 undefined symbol errors in the case of modules to be statically linked
8447 with the kernel.
8448
8449 2004-10-04 Javier Miranda <miranda@gnat.com>
8450
8451 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
8452 in-line the code corresponding to subprogram Analyze_Actuals. In
8453 addition, analyze the actuals only in case of subprogram call.
8454
8455 2004-10-04 Ed Falis <falis@gnat.com>
8456
8457 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
8458
8459 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
8460
8461 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
8462 in the documentation.
8463
8464 2004-10-04 Robert Dewar <dewar@gnat.com>
8465
8466 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
8467 IF and CASE.
8468 (Analyze_Block_Statement): Add circuitry to detect following dead code
8469 (Check_Unreachable_Code): Handle case of block exit
8470
8471 2004-10-04 Robert Dewar <dewar@gnat.com>
8472
8473 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
8474 (XMatchD): Avoid warning for Logic_Error call
8475
8476 2004-10-04 Robert Dewar <dewar@gnat.com>
8477
8478 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
8479 consider expressions buried within a procedure actual to be an actual.
8480 This caused some blowups with uses of packed slices within a procedure
8481 actual.
8482
8483 2004-10-04 Robert Dewar <dewar@gnat.com>
8484
8485 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
8486 longer need to be initialized to zero.
8487 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
8488 initialized to zero.
8489
8490 * checks.adb (Expr_Known_Valid): Packed arrays are now always
8491 considered valid, even if the representation is modular. That's correct
8492 now that we no longer initialize packed modular arrays to zero.
8493
8494 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
8495 suffixes. These are now documented as the only cases in which the
8496 debugger ignores outer records.
8497 Previously, the spec allowed arbitrary suffixes for this purpose.
8498 Change name of LJM to JM for packed array pad records
8499 Create separate section on packed array handling, and add a whole new
8500 set of comments to this section describing the situation with packed
8501 modular types and justification requirements depending on endianness.
8502
8503 2004-10-04 Robert Dewar <dewar@gnat.com>
8504
8505 * a-except.adb: Add a comment for last change
8506
8507 * einfo.ads: Minor spelling correction in comment
8508
8509 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
8510
8511 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
8512 messages.
8513
8514 * sem_util.ads: Minor comment update
8515
8516 2004-10-04 Ed Schonberg <schonberg@gnat.com>
8517
8518 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
8519 Inline_Always when in Configurable_Run_Time mode.
8520
8521 * sem_prag.adb (Process_Convention): If entity is an inherited
8522 subprogram, apply convention to parent subprogram if in same scope.
8523 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
8524 when in Configurable_Run_Time mode.
8525
8526 2004-10-04 Ed Schonberg <schonberg@gnat.com>
8527
8528 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
8529 class_wide type after component list has been inherited.
8530
8531 2004-10-04 Ed Schonberg <schonberg@gnat.com>
8532
8533 * sem_ch12.adb (Check_Generic_Actuals): New predicate
8534 Denotes_Previous_Actual, to handle properly the case of a private
8535 actual that is also the component type of a subsequent array actual.
8536 The visibility status of the first actual is not affected when the
8537 second is installed.
8538 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
8539 make fully recursive the treatment of formals of packages declared
8540 with a box.
8541 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
8542 the above on exit from an instantiation.
8543 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
8544 current instantiation which is now complete.
8545 (Analyze_Package_Instantiation): No instantiated body is needed if the
8546 main unit is generic. Efficient, and avoid anomalies when a instance
8547 appears in a package accessed through rtsfind.
8548
8549 2004-10-04 Ed Schonberg <schonberg@gnat.com>
8550
8551 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
8552 do not generate a declaration for a temporary if the call is part of a
8553 library-level instantiation.
8554
8555 2004-10-04 Ed Schonberg <schonberg@gnat.com>
8556
8557 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
8558 searching for a limited component to flag.
8559
8560 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
8561 expansion of Input, to account for the fact that the implicit call
8562 generated by the attribute reference must freeze the user-defined
8563 stream subprogram. This is only relevant to 'Input, because it can
8564 appear in an object declaration, prior to the body of the subprogram.
8565
8566 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
8567 expansion can proceed and further errors uncovered.
8568 (Minor clean up): Fix cases of using | instead of \ for continuation
8569 messages.
8570
8571 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8572
8573 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
8574
8575 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
8576 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
8577 Use gcc_assert and gcc_unreachable.
8578
8579 * decl.c (gnat_to_gnu_entity, case object): Check and process a
8580 specified alignment before validating size.
8581 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
8582 stripped-down declaration for the type of the inner field when making
8583 a JM type.
8584
8585 * utils.c (finish_record_type): Do not compute the size in units
8586 incrementally. Instead compute it once for the rep clause case.
8587 Use gcc_assert and gcc_unreachable.
8588
8589 2004-10-04 Vincent Celier <celier@gnat.com>
8590
8591 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
8592 in file name.
8593 (Is_Valid_Path_Name): Take '/' as a directory separator.
8594
8595 2004-10-04 Vincent Celier <celier@gnat.com>
8596
8597 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
8598 (Extended_Project) only if Extended_Project is defined, to avoid
8599 assertion error.
8600 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
8601 resolved path.
8602 (Parse_Single_Project): Ditto.
8603
8604 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
8605 Add_To_Project_Path for virtual projects.
8606
8607 2004-10-04 Vincent Celier <celier@gnat.com>
8608
8609 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
8610 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
8611 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
8612 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
8613 parameter Options_2.
8614
8615 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
8616 Build_Dynamic_Library with an empty Options_2.
8617
8618 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
8619 default anymore.
8620
8621 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
8622 directory separator, if any.
8623 (Gprmake): Do not allow mains on the command line for library projects.
8624 Do not attempt to link when the project is a library project.
8625 (Library_Opts): New table to store Library_Options.
8626 (Build_Library): If Library_Options is specified, pass these options
8627 when building a shared library.
8628
8629 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
8630
8631 * s-tposen.adb (Service_Entry): The object must be always unlocked at
8632 the end of this procedure now that the unlock operation was inserted
8633 by the expander.
8634
8635 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
8636
8637 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
8638 corresponding to the Preallocated_Stacks flags in System.
8639 (Get_Target_Parameters): Including the processing for
8640 Preallocated_Stacks.
8641
8642 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
8643 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
8644 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
8645 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
8646 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
8647 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
8648 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
8649 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
8650 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
8651 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
8652 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
8653 used to signal whether the compiler creates the required stacks and
8654 descriptors for the different tasks (when True) or it is done by the
8655 underlying operating system at run time (when False).
8656 It is initially set to False in all targets.
8657
8658 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
8659 if it is supported by the target.
8660 (Make_Task_Create_Call): Pass the stack address if it has been
8661 previously created. Otherwise pass a Null_Address.
8662
8663 * snames.adb: Add _stack.
8664
8665 * snames.ads: Add Name_uStack. Required to allow the expander to
8666 statically allocated task stacks.
8667
8668 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
8669 Stack_Address argument.
8670 Check that its value is equal to Null_Address because this target does
8671 not support the static stack allocation.
8672
8673 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
8674
8675 * usage.adb: Change "pragma inline" to "pragma Inline" in information
8676 and error messages
8677
8678 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
8679
8680 * exp_dist.adb: Split declaration of asynchronous flag out of
8681 Add_RACW_Read_Attribute.
8682 Minor reformatting for better alignment with PolyORB version.
8683 Store the entity for the asynchronous flag of an RACW, rather than the
8684 expression, in the asynchronous flags table. This will allow this flag
8685 to be used in other subprograms beside Add_RACW_Read_Attribute.
8686
8687 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
8688
8689 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
8690 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
8691 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
8692 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
8693 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
8694 sockets constant MSG_NOSIGNAL (Linux-specific).
8695 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
8696 all Send operations.
8697 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
8698 from trigerring SIGPIPE.
8699 Rename components to avoid clash with Ada 2005 possible reserved
8700 word 'interface'.
8701 (Check_Selector): When the select system call returns with an error
8702 condition, propagate Socket_Error to the caller.
8703
8704 2004-10-01 Jan Hubicka <jh@suse.cz>
8705
8706 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
8707
8708 2004-09-23 Robert Dewar <dewar@gnat.com>
8709
8710 PR ada/17540
8711
8712 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
8713 instead do this at freeze time (we won't do it if there is an address
8714 clause).
8715 Change "pragma inline" to "pragma Inline" in information and error
8716 messages.
8717 Minor reformatting.
8718
8719 * freeze.adb (Check_Address_Clause): Remove previous change, not the
8720 right way of doing things after all.
8721 (Freeze_Entity): For object, set Is_Public for imported entities
8722 unless there is an address clause present.
8723
8724 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
8725
8726 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
8727 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
8728 ensures proper handling of types with rep clauses, which might have
8729 their TYPE_SIZE set already.
8730
8731 2004-09-21 Robert Dewar <dewar@gnat.com>
8732
8733 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
8734 packed array types in both little- and big-endian cases. This change
8735 ensures that we no longer count on the unused bits being initialized
8736 for such types (and in particular ensures that equality testing will
8737 only read the relevant bits).
8738 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
8739 These changes mean that we no longer need to initialize small packed
8740 arrays.
8741 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
8742 optimization to an LJM field as to its parent field.
8743
8744 * ada-tree.h, trans.c, utils.c, utils2.c:
8745 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
8746
8747 2004-09-20 Jan Hubicka <jh@suse.cz>
8748
8749 * utils.c (gnat_finalize): Remove.
8750 (end_subprog_body): Directly call cgraph_finalize_function;
8751 do not lower the nested functions.
8752
8753 2004-09-20 Robert Dewar <dewar@gnat.com>
8754
8755 PR ada/17540
8756
8757 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
8758 if an address clause is present, since that means that the Import
8759 should be ignored.
8760
8761 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
8762
8763 * 5tsystem.ads: Removed, no longer used.
8764
8765 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
8766 Zack Weinberg <zack@codesourcery.com>
8767
8768 * ada-tree.def: Use tree_code_class enumeration constants
8769 instead of code letters.
8770 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
8771 Update for new tree-class enumeration constants.
8772
8773 2004-09-17 Vincent Celier <celier@gnat.com>
8774
8775 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
8776 capabilities of the general project manager.
8777
8778 2004-09-09 Vincent Celier <celier@gnat.com>
8779
8780 * a-direct.ads: Add pragma Ada_05
8781 (Directory_Entry_Type): Give default value to component Kind to avoid
8782 not initialized warnings.
8783
8784 * a-direct.adb (Current_Directory): Remove directory separator at the
8785 end.
8786 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
8787 an existing directory.
8788 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
8789 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
8790 Convert the result to File_Size.
8791
8792 * prj.ads: (Project_Error): New exception
8793
8794 * prj-attr.adb: Except in procedure Initialize, Fail comes from
8795 Prj.Com, not from Osint.
8796 (Attrs, Package_Attributes): Tables moved to private part of spec
8797 (Add_Attribute, Add_Unknown_Package): Moved to new child package
8798 Prj.Attr.PM.
8799 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
8800 Prj.Project_Error after call to Fail.
8801 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
8802 Fail. Check that package name is not already in use.
8803
8804 * prj-attr.ads: Comment updates to indicate that all subprograms may be
8805 used by tools, not only by the project manager, and to indicate that
8806 exception Prj.Prj_Error may be raised in case of problem.
8807 (Add_Unknown_Package, Add_Attribute): Moved to new child package
8808 Prj.Attr.PM.
8809 (Attrs, Package_Attributes): Table instantiations moved from the body to
8810 the private part to be accessible from Prj.Attr.PM body.
8811
8812 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
8813 from new package Prj.Attr.PM.
8814 (Parse_Attribute_Declaration): Call Add_Attribute from new package
8815 Prj.Attr.PM.
8816
8817 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
8818
8819 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
8820 instead of Elaboration_Checks).
8821
8822 * a-calend.adb: Minor reformatting
8823
8824 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8825
8826 * gigi.h (maybe_pad_type): New declaration.
8827 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
8828
8829 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
8830
8831 * cuintp.c: Convert to use buildN.
8832
8833 * decl.c (maybe_pad_type): No longer static.
8834 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
8835 target pointer.
8836 Convert to use buildN.
8837
8838 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
8839 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
8840 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
8841 RHS.
8842 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
8843 (gnat_gimplify_expr, case ADDR_EXPR): New case.
8844 Convert to use buildN.
8845
8846 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
8847 TREE_READONLY for const.
8848 Convert to use buildN.
8849
8850 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
8851 (create_var_decl): Refine when TREE_STATIC is set.
8852 Convert to use buildN.
8853
8854 2004-09-09 Gary Dismukes <dismukes@gnat.com>
8855
8856 * gnat_ugn.texi: Delete text relating to checking of ali and object
8857 consistency.
8858
8859 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
8860 routines.
8861
8862 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
8863
8864 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
8865 pragmas recognized by GNAT.
8866
8867 * gnat_rm.texi: Document pragma Detect_Blocking.
8868
8869 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
8870 raise Program_Error if called from a protected operation.
8871
8872 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
8873 the protected action nesting level.
8874 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
8875 protected action nesting level.
8876 (Unlock): When pragma Detect_Blocking is active decrease the protected
8877 action nesting level.
8878
8879 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
8880 Protected_Action_Nesting.
8881
8882 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
8883 Common_ATCB record. It contains the dynamic level of protected action
8884 nesting for each task. It is needed for checking whether potentially
8885 blocking operations are called from protected operations.
8886 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
8887 Detect_Blocking is active or not in the partition.
8888
8889 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
8890 raise Program_Error if called from a protected operation.
8891 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
8892 Program_Error if called from a protected operation.
8893 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
8894 Program_Error if called from a protected operation.
8895
8896 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
8897 raise Program_Error if called from a protected operation.
8898
8899 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
8900 raise Program_Error if called from a protected operation, and increase
8901 the protected action nesting level.
8902 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
8903 Program_Error if called from a protected operation, and increase the
8904 protected action nesting level.
8905 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
8906 protected action nesting level.
8907
8908 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
8909 raise Program_Error if called from a protected operation, and increase
8910 the protected action nesting level.
8911 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
8912 Program_Error if called from a protected operation, and increase the
8913 protected action nesting level.
8914 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
8915 raise Program_Error if called from a protected operation.
8916 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
8917 active, raise Program_Error if called from a protected operation.
8918 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
8919 protected action nesting level.
8920
8921 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
8922 insertion of the statement raising Program_Error. The run time
8923 contains the required machinery for handling that.
8924
8925 * sem_util.ads: Change comment associated to procedure
8926 Check_Potentially_Blocking_Operation.
8927 This procedure does not insert a call for raising the exception because
8928 that is currently done by the run time.
8929
8930 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
8931
8932 * init.c: Add the global variable __gl_detect_blocking that indicates
8933 whether pragma Detect_Blocking is active (1) or not (0). Needed for
8934 making the pragma available at run time.
8935 (__gnat_set_globals): Pass and update the detect_blocking parameter.
8936
8937 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
8938 pragma Detect_Blocking is active.
8939
8940 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
8941
8942 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
8943 DB is found in the ali file. Any unit compiled with pragma
8944 Detect_Blocking active forces its effect in the whole partition.
8945
8946 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
8947 Detect_Blocking is active and delay is called from a protected
8948 operation.
8949
8950 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
8951 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
8952 Detect_Blocking is active (0 otherwise).
8953 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
8954 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
8955 otherwise).
8956
8957 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
8958
8959 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
8960 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
8961 package.
8962
8963 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
8964 (Register_Receiving_Stub): Add Subp_Info formal parameter.
8965 Update API in placeholder implemetation of s-parint to reflect changes
8966 in distribution runtime library.
8967
8968 * sem_ch3.adb (Expand_Derived_Record): Rename to
8969 Expand_Record_Extension.
8970
8971 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
8972 primitive operations of potentially distributed object types that have
8973 non-controlling anonymous access formals.
8974
8975 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
8976 subprogram.
8977 New implementation of expansion for remote access-to-subprogram types,
8978 based on the RACW infrastructure.
8979 This version of sem_dist is compatible with PolyORB/DSA as well as
8980 GLADE.
8981
8982 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
8983 Asynchrronous that applies to a remote access-to-subprogram type, mark
8984 the underlying RACW type as asynchronous.
8985
8986 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
8987 __gnat_using_gnu_linker to 1.
8988
8989 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
8990 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
8991 GNAT.Perfect_Hash_Generators, and remove the empty
8992 GNAT.Perfect_Hash package.
8993
8994 * atree.adb: Minor reformatting
8995
8996 * exp_ch3.adb (Expand_Derived_Record): Rename to
8997 Expand_Record_Extension.
8998 (Build_Record_Init_Proc.Build_Assignment): The default expression in
8999 a component declaration must remain attached at that point in the
9000 tree so New_Copy_Tree copies it if the enclosing record type is derived.
9001 It is therefore necessary to take a copy of the expression when building
9002 the corresponding assignment statement in the init proc.
9003 As a side effect, in the case of a derived record type, we now see the
9004 original expression, without any rewriting that could have occurred
9005 during expansion of the ancestor type's init proc, and we do not need
9006 to go back to Original_Node.
9007
9008 * exp_ch3.ads (Expand_Derived_Record): Rename to
9009 Expand_Record_Extension.
9010
9011 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
9012 Returns the RACW type used to implement a remote access-to-subprogram
9013 type.
9014 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
9015 New subprograms. Used to create a proxy tagged object for a remote
9016 subprogram. The proxy object is used as the designated object
9017 for RAS values on the same partition (unless All_Calls_Remote applies).
9018 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
9019 System.Partition_Interface.Get_Unique_Remote_Pointer.
9020 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
9021 Renamed from Add_RAS_*_Attribute.
9022 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
9023 subprograms.
9024 New implementation of expansion for remote access-to-subprogram types,
9025 based on the RACW infrastructure.
9026
9027 * exp_dist.ads (Copy_Specification): Update comment to note that this
9028 function can copy the specification from either a subprogram
9029 specification or an access-to-subprogram type definition.
9030
9031 2004-09-09 Ed Schonberg <schonberg@gnat.com>
9032
9033 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
9034 in an instance, between an explicit subprogram an one inherited from a
9035 type derived from an actual.
9036
9037 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
9038 add a polling call if the subprogram is to be inlined by the back-end,
9039 to avoid repeated calls with multiple inlinings.
9040
9041 * checks.adb (Apply_Alignment_Check): If the expression in the address
9042 clause is a call whose name is not a static entity (e.g. a dispatching
9043 call), treat as dynamic.
9044
9045 2004-09-09 Robert Dewar <dewar@gnat.com>
9046
9047 * g-trasym.ads: Minor reformatting
9048
9049 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
9050 packed arrays, since unused bits are expected to be zero for a
9051 comparison.
9052
9053 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
9054
9055 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
9056 comment.
9057
9058 2004-09-09 Pascal Obry <obry@gnat.com>
9059
9060 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
9061 enable map file generation. Add the right option to generate the map
9062 file if Map_File is set to True.
9063
9064 * gnatdll.adb (Gen_Map_File): New variable.
9065 (Syntax): Add info about new -m (Map_File) option.
9066 (Parse_Command_Line): Add support for -m option.
9067 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
9068 Minor reformatting.
9069
9070 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
9071
9072 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
9073 new gnatdist implementation.
9074 Define a subpackage isolating the output routines specific to this
9075 verbose mode.
9076
9077 2004-09-09 Joel Brobecker <brobecker@gnat.com>
9078
9079 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
9080
9081 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
9082
9083 2004-09-09 Cyrille Comar <comar@act-europe.fr>
9084
9085 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
9086 internal unit.
9087
9088 * opt.ads: Add Ada_Version_Runtime constant used to decide which
9089 version of the language is used to compile the run time.
9090
9091 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
9092
9093 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
9094 of variable length temporaries for function return now that the
9095 back-end and gigi support it.
9096
9097 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9098
9099 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
9100
9101 * trans.c (struct stmt_group): Delete field GLOBAL.
9102 (gnat_init_stmt_group): Do not initialize it.
9103 (call_to_gnu): Use save_expr, not protect_multiple_eval.
9104 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
9105 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
9106 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
9107 (start_stmt_group): Likewise.
9108 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
9109
9110 * utils2.c (ggc.h): Include.
9111 (build_call_raise): Call build_int_cst, not build_int_2.
9112
9113 * utils.c (gnat_init_decl_processing): Fix arg to
9114 build_common_tree_nodes.
9115 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
9116 (gnat_define_builtin): Set built_in_decls.
9117 (init_gigi_decls): Call build_int_cst, not build_int_2.
9118
9119 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
9120 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
9121 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
9122 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
9123 SET_TYPE_MODULE): Use them.
9124 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
9125 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
9126 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
9127 SET_TYPE_ADA_SIZE): Likewise.
9128 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
9129 (DECL_CONST_CORRESPONDING_VAR,
9130 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
9131 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
9132 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
9133 (TYPE_RM_SIZE_NUM): New macro.
9134 (TYPE_RM_SIZE): Modified to use above.
9135
9136 * cuintp.c: (build_cst_from_int): New function.
9137 (UI_To_gnu): Use it.
9138
9139 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
9140 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
9141 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
9142 MIN_EXPR for the size, copy it into new.
9143
9144 2004-09-01 Robert Dewar <dewar@gnat.com>
9145
9146 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
9147 packed indexed component where array is an IN OUT formal. This
9148 generated garbage code previously.
9149
9150 * gnat_ugn.texi: Document -fverbose-asm
9151
9152 * gnat-style.texi: Minor updates (note that boolean constants and
9153 variables are joined with AND/OR rather than short circuit forms).
9154
9155 2004-09-01 Ed Schonberg <schonberg@gnat.com>
9156
9157 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
9158 it is an upward conversion of an untagged type with no representation
9159 change.
9160
9161 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
9162
9163 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
9164 System.Partition_Interface.
9165
9166 * checks.adb (Apply_Access_Checks): Do not generate checks when
9167 expander is not active (but check for unset reference to prefix of
9168 dereference).
9169
9170 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
9171 pragma Debug as an if statement with a constant condition, for
9172 consistent treatment of entity references contained within the
9173 enclosed procedure call.
9174
9175 2004-09-01 Vincent Celier <celier@gnat.com>
9176
9177 * bindgen.adb: (Set_EA_Last): New procedure
9178 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
9179 Set_EA_Last.
9180 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
9181 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
9182 linked without errors.
9183 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
9184 ST and EA.
9185 (Gen_Exception_Table_C): Correct same bugs
9186
9187 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
9188
9189 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
9190 on Windows, make sure that the drive letter is in upper case.
9191
9192 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
9193 Windows, when the drive letter is added and Case_Sensitive is True, the
9194 drive letter is forced to upper case.
9195
9196 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
9197 to Options_2 for the call to MLib.Utl.Gcc.
9198
9199 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
9200 directory separator when defining BASE_DIR.
9201
9202 2004-09-01 Pascal Obry <obry@gnat.com>
9203
9204 * gprcmd.adb (Extend): Do not output trailing directory separator. This
9205 is not needed and it confuses Windows GNU/make which does not report
9206 directory terminated by a slash as a directory.
9207 (gprcmd): Idem for "pwd" internal command.
9208
9209 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
9210 target names rewrite to fix regressions with recent version of
9211 GNU/make. Starting with GNU/make 3.80 the pipe character was not
9212 handled properly anymore.
9213
9214 2004-09-01 Andreas Schwab <schwab@suse.de>
9215
9216 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
9217 * raise.c [!IN_RTS]: Undef abort.
9218
9219 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
9220
9221 * utils2.c (build_allocator): Use ssize_int.
9222
9223 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
9224
9225 2004-08-27 Andreas Schwab <schwab@suse.de>
9226
9227 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
9228
9229 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
9230 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9231
9232 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
9233
9234 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
9235
9236 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
9237 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
9238 * utils.c (init_gigi_decls): Likewise.
9239 * utils2.c (build_call_raise, build_allocator): Likewise.
9240
9241 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
9242
9243 * utils.c (gnat_init_decl_processing): Adjust
9244 build_common_tree_nodes call.
9245
9246 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
9247
9248 * utils2.c (build_allocator): Use build_int_cst for negative
9249 size types.
9250
9251 2004-08-18 Richard Henderson <rth@redhat.com>
9252
9253 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
9254
9255 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
9256
9257 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
9258 call.s
9259 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
9260 (gnat_to_gnu): Likewise.
9261
9262 2004-08-16 Pascal Obry <obry@gnat.com>
9263
9264 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
9265 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
9266 option and not mdll anymore. Update comment.
9267
9268 2004-08-16 Pascal Obry <obry@gnat.com>
9269
9270 * bld.adb (Put_Include_Project): Properly handle directory separators
9271 on Windows.
9272
9273 2004-08-16 Ed Schonberg <schonberg@gnat.com>
9274
9275 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
9276 decreasing the number of allocated junk nodes while searching for the
9277 appropriate subprogram.
9278
9279 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
9280
9281 * cuintp.c (UI_To_gnu): Use build_int_cst..
9282 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
9283 * utils.c (init_gigi_decls): Likewise.
9284 * utils2.c (build_call_raise): Likewise.
9285
9286 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
9287
9288 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
9289 for a global aliased object with a variable size and an unconstrained
9290 nominal subtype, pretend there is no initializer if the one we have is
9291 incomplete, and avoid referencing an inexistant component in there. The
9292 part we have will be rebuilt anyway and the reference may confuse
9293 further operations.
9294
9295 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
9296
9297 * einfo.ads: Minor reformatting
9298
9299 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
9300 restrictions in the ALI if we only want to warn about violations.
9301
9302 2004-08-13 Vincent Celier <celier@gnat.com>
9303
9304 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
9305 when creating a new Unit_Record in table Units.
9306
9307 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
9308 that are violated, if any.
9309
9310 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
9311 add directory separator if path already ends with a directory separator.
9312
9313 2004-08-13 Ed Schonberg <schonberg@gnat.com>
9314
9315 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
9316 unit, this is an attempt to inline a construct that is not available in
9317 the current restricted mode, so abort rather than trying to continue.
9318
9319 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
9320 discriminants that rename those of the parent, recover names of
9321 original discriminants for the constraint on the full view of the
9322 parent.
9323 (Complete_Private_Subtype): Do not create a subtype declaration if the
9324 subtype is an itype.
9325
9326 * gnat_rm.texi: Added section on implementation of discriminated
9327 records with default values for discriminants.
9328
9329 2004-08-13 Ed Schonberg <schonberg@gnat.com>
9330
9331 PR ada/15601
9332 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
9333 the second operand is overloaded.
9334
9335 2004-08-10 Richard Henderson <rth@redhat.com>
9336
9337 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
9338 add __builtin_alloca.
9339
9340 2004-08-10 Richard Henderson <rth@redhat.com>
9341
9342 * config-lang.in (boot_language): Yes.
9343
9344 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
9345
9346 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
9347 from complaining on potential uninitialized reference.
9348 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
9349 new specification and test explicitly for non-zero return value.
9350
9351 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
9352 returning C.int, to avoid using a derived boolean type.
9353
9354 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
9355 Duplicate_Subexpr_No_Checks in preference to direct use of
9356 Remove_Side_Effects and New_Copy_Tree.
9357 Clear Comes_From_Source on prefix of 'Size attribute reference.
9358
9359 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
9360 g-socthi-vxworks.adb: Change calls to
9361 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
9362 and test explicitly for non-zero return value.
9363
9364 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
9365 (Is_Socket_In_Set): Declare imported function as returning C.int, to
9366 avoid using a derived boolean type.
9367
9368 2004-08-09 Albert Lee <lee@gnat.com>
9369
9370 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
9371
9372 2004-08-09 Pascal Obry <obry@gnat.com>
9373
9374 * gnat_ugn.texi: Document new way to build DLLs on Windows using
9375 GCC's -shared option.
9376
9377 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
9378 Options_2 parameter (options put after object files).
9379
9380 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
9381
9382 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
9383 ignore overflows on low and high bounds of an index to also account for
9384 differences in signedness between sizetype and gnu_index_subtype.
9385 These are as legitimate as the ones caused by a lower TYPE_PRECISION
9386 on sizetype.
9387
9388 2004-08-09 Robert Dewar <dewar@gnat.com>
9389
9390 * s-solita.ads, s-solita.adb: Minor reformatting
9391
9392 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
9393 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
9394 obsolescent section
9395 Add note that No_Implicit_Conditionals does not suppress
9396 run time constraint checks.
9397
9398 * vms_conv.ads: Minor reformatting
9399
9400 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
9401 and necessary for following change).
9402 (Mark): Return new format Mark_Id containing sec stack address
9403 (Release): Use sec stack address from Mark_Id avoiding Self call
9404
9405 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
9406 pointer (cleanup and necessary for following change).
9407 Define Mark_Id as record containing address of secondary stack, that way
9408 Release does not need to find the stack again, decreasing the number of
9409 calls to Self and improving efficiency.
9410
9411 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
9412
9413 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
9414 case variable into the individual case branches when possible.
9415
9416 * sem_ch11.adb: Minor reformatting
9417
9418 * prj.ads: Correct spelling of suffixs
9419
9420 * prj-nmsc.adb: Minor reformatting
9421 Correct spelling suffixs throughout (also in identifiers)
9422
9423 * freeze.adb: Minor spelling correction
9424
9425 * exp_ch2.adb: Cleanups to handling of Current_Value
9426 (no functional effect).
9427
9428 * bld.adb: Correct spelling of suffixs
9429
9430 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
9431
9432 2004-08-09 Ed Schonberg <schonberg@gnat.com>
9433
9434 PR ada/15408
9435
9436 * sem_ch7.adb (Install_Private_Declarations): In the body of the
9437 package or of a child, private entities are both immediately_visible
9438 and not hidden.
9439
9440 2004-08-09 Ed Schonberg <schonberg@gnat.com>
9441
9442 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
9443 there are no range checks on the value of the literal.
9444
9445 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
9446 wrapped is the triggering alternative of an asynchronous select, action
9447 statements mustbe inserted before the select itself.
9448
9449 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
9450 case where the prefix is a protected function call.
9451 (Resolve_Attribute, case 'Access): The attribute reference on a
9452 subprogram is legal in a generic body if the subprogram is declared
9453 elsewhere.
9454
9455 2004-08-09 Vincent Celier <celier@gnat.com>
9456
9457 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
9458 languages, otherwise building the library may fail with unresolved
9459 symbols.
9460 (Compile_Sources): Do not build libraries if -c switch is used
9461
9462 * gnatlink.adb (Process_Args): New switches -M and -Mmap
9463 (Write_Usage): If map file creation is supported, output new switches
9464 -M and -Mmap.
9465 (Gnatlink): When -M is specified, add the necessary switch(es) to the
9466 gcc call, when supported.
9467
9468 * Makefile.in: Added indepsw.o to the object list for gnatlink
9469 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
9470
9471 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
9472 indepsw.adb, indepsw.ads: New files.
9473
9474 2004-08-09 Bernard Banner <banner@gnat.com>
9475
9476 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
9477
9478 * Makefile.in: add section for vxworks x86
9479
9480 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
9481
9482 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
9483 per-object constrained components where the discriminant is of an
9484 Access type.
9485 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
9486 the parent initialization procedure for derived Unchecked_Unions.
9487 Instead, derived Unchecked_Unions build their own initialization
9488 procedure.
9489 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
9490 Check the body of the subprogram for details.
9491 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
9492 functions for derived Unchecked_Union types by introducing a condition.
9493 Allow the creation of TSS equality functions for Unchecked_Unions.
9494 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
9495 Add formal parameter Discr to function signature. Discr is used to
9496 control the generated case statement for Unchecked_Union types.
9497 (Make_Eq_If): Rename formal parameter Node to E in function signature.
9498
9499 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
9500 Unchecked_Unions.
9501 Check the body of the subprogram for details.
9502 (Expand_Composite_Equality): Augment composite type equality to include
9503 correct handling of Unchecked_Union components.
9504 (Expand_N_In): Add condition to detect illegal membership tests when the
9505 subtype mark is a constrained Unchecked_Union and the expression lacks
9506 inferable discriminants, and build a Raise_Program_Error node.
9507 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
9508 to detect types that contain components of unconstrained Unchecked_Union
9509 subtype. Add condition to detect equality between types that have an
9510 unconstrained Unchecked_Union component, and build a Raise_Program_Error
9511 node. Add condition to detect equality between Unchecked_Union types
9512 that lack inferable discriminants, and build a Raise_Program_Error node.
9513 Otherwise build a TSS equality function call.
9514 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
9515 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
9516 with the operand lacking inferable discriminants, and build a Raise_
9517 Program_Error node.
9518 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
9519 composite equality.
9520 (Has_Inferable_Discriminants): Implement new predicate for objects and
9521 expressions of Unchecked_Union type. Check the body of subprogram for
9522 details.
9523 (Has_Unconstrained_UU_Components): Add function
9524 Component_Is_Unconstrained_UU. It is used to detect whether a single
9525 component is of an unconstrained Unchecked_Union subtype. Add function
9526 Variant_Is_Unconstrained_UU. It is used to detect whether a single
9527 component inside a variant is of an unconstrained Unchecked_Union type.
9528
9529 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
9530 inferred discriminant values. Add condition to generate a case
9531 statement with an inferred discriminant as the switch.
9532 (Make_Component_List_Assign): Introduce a Boolean flag that determines
9533 the behaviour of the subprogram in the presence of an Unchecked_Union.
9534 Add condition to trigger the usage of the inferred discriminant value
9535 as the generated case statement switch.
9536 (Make_Field_Assign): Introduce a Boolean flag that determines the
9537 behaviour of the subprogram in the presence of an Unchecked_Union. Add
9538 condition to trigger the usage of the inferred discriminant value as
9539 the right-hand side of the generated assignment.
9540
9541 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
9542 parameter generation when dealing with Unchecked_Unions.
9543
9544 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
9545 checks for Unchecked_Unions.
9546
9547 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
9548
9549 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
9550 Raise_Program_Error nodes for the execution of Read and Write
9551 attributes of Unchecked_Union types and the execution of Input and
9552 Output attributes of Unchecked_Union types that lack default
9553 discriminant values.
9554
9555 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
9556 Unchecked_Union. Add procedure Check_Component. It is used to inspect
9557 per-object constrained components of Unchecked_Unions for being
9558 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
9559 check individual components withing a variant.
9560
9561 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
9562 comparison of Unchecked_Unions.
9563 (Resolve_Equality_OP): Remove guard that prevents equality between
9564 Unchecked_Unions.
9565
9566 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
9567 of component subtypes for Unchecked_Union components.
9568 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
9569 since it is the actual subtype.
9570
9571 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
9572 pass of Unchecked_Union subtypes as generic actuals to formal types
9573 that lack known_discriminant_parts or that are derived Unchecked_Union
9574 types, and do nothing. In any other case, produce an error message.
9575
9576 * sem_ch3.adb (Analyze_Component_Declaration): Add function
9577 Contains_POC. It determines whether a constraint uses the discriminant
9578 of an enclosing record type.
9579 Add condition to detect per-object constrained component and set the
9580 appropriate flag.
9581 (Derived_Type_Declaration): Remove guard that prevents derivation from
9582 Unchecked_Union types.
9583 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
9584 Union subtypes.
9585
9586 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
9587 references to Unchecked_Union discriminants.
9588
9589 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
9590 formal generation when dealing with Unchecked_Unions.
9591 (Set_Actual_Subtypes): Add condition to prevent generation of actual
9592 subtypes for Unchecked_Unions.
9593
9594 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
9595 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
9596 completions of discriminated partial views by Unchecked_Unions and
9597 produce an error message.
9598
9599 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9600
9601 * trans.c (struct stmt_group): New field, GLOBAL.
9602 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
9603 (struct elab_info): New struct.
9604 (elab_info_list, gnu_elab_proc_stack): New variables.
9605 (Compilation_Unit_to_gnu): New procedure.
9606 (gigi): Call it and also handle elaboration procs we've saved.
9607 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
9608 global field from parent.
9609 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
9610 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
9611 (start_stmt_group): Initialize global field from parent.
9612 (add_decl_expr): Set to global for current statement group.
9613 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
9614 post.
9615
9616 * utils.c (global_bindings_p): True when no current_function_decl; no
9617 longer check current_binding_level.
9618
9619 2004-08-09 Ben Brosgol <brosgol@gnat.com>
9620
9621 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
9622 choice.
9623
9624 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
9625
9626 2004-08-06 Andreas Schwab <schwab@suse.de>
9627
9628 * utils.c (gnat_define_builtin): Remove second parameter of
9629 make_decl_rtl.
9630 (begin_subprog_body): Likewise.
9631
9632 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
9633
9634 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
9635 optimization, not supported by the tree-ssa back-end.
9636
9637 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
9638
9639 * s-mastop-irix.adb: Update comments.
9640
9641 * a-except.adb (Exception_Information): Raise Constraint_Error if
9642 exception Id is Null_Id.
9643 This is required behavior, which is more reliably and clearly checked
9644 at the top level interface level.
9645
9646 2004-07-26 Javier Miranda <miranda@gnat.com>
9647
9648 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
9649 call if a component has no default_expression and the box is used.
9650
9651 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
9652 default_expression and you use box, it behaves as if you had declared a
9653 stand-alone object.
9654 (Resolve_Record_Aggregate): If a component has no default_expression and
9655 you use box, it behaves as if you had declared a stand-alone object.
9656
9657 * sem_ch10.adb (Install_Siblings): Do not make visible the private
9658 entities of private-with siblings.
9659
9660 2004-07-26 Ed Schonberg <schonberg@gnat.com>
9661
9662 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
9663 for a component of an itype, set the parent pointer for analysis,
9664 there is no list in which to insert it.
9665
9666 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
9667 bona-fide renamings, not for inherited operations.
9668
9669 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
9670 actual for a formal that is an access parameter, create local
9671 finalization list even if the expression is not an aggregate.
9672
9673 2004-07-26 Ed Schonberg <schonberg@gnat.com>
9674
9675 PR ada/16213
9676 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
9677 Diagnose properly illegal subprogram renamings that are library units.
9678
9679 2004-07-26 Ed Schonberg <schonberg@gnat.com>
9680
9681 PR ada/15588
9682 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
9683 conversion rewritten as an unchecked conversion, check that original
9684 expression is a variable.
9685
9686 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
9687 unchecked_conversion, create new node rather than rewriting in place,
9688 to preserve original construct.
9689
9690 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9691
9692 * gigi.h (gnat_expand_body): Deleted.
9693
9694 * Make-lang.in: (trans.o): Depends on function.h.
9695
9696 * misc.c: (gnat_expand_body): Moved to here.
9697
9698 * trans.c (gnat_expand_body_1): Deleted.
9699 (gnat_expand_body): Moved from here.
9700 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
9701 (add_stmt): Check for marked visited with global_bindings_p.
9702 (gnat_gimplify_expr, case COMPONENT_REF): New case.
9703 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
9704
9705 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
9706 VIEW_CONVERT_EXPR if not operation type.
9707
9708 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
9709 fat pointer.
9710
9711 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
9712 changes: reformatting of negation operators, removing unneeded
9713 inequality comparison with zero, converting equality comparisons with
9714 zero to negations, changing int/0/1 to bool/false/true, replace calls
9715 to gigi_abort with abort, and various other similar changes.
9716
9717 2004-07-26 Vincent Celier <celier@gnat.com>
9718
9719 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
9720 "setup".
9721
9722 * make.adb (Gnatmake): Fail when a library is not present and there is
9723 no object directory.
9724
9725 * mlib-prj.adb (Check_Library): No need to check if the library needs
9726 to be rebuilt if there is no object directory, hence no object files
9727 to build the library.
9728
9729 * opt.ads (Setup_Projects): New Boolean flag.
9730
9731 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
9732 Location.
9733 Create directory when Kind /= "" and in "gnat setup". Report error if
9734 directory cannot be created.
9735 (Ada_Check): Create library interface copy dir if it does not exist
9736 and we are in "gnat setup".
9737 (Find_Sources): No error if in "gnat setup" and no Ada sources were
9738 found.
9739 (Language_Independent_Check): Create object directory, exec directory
9740 and/or library directory if they do not exist and we are in
9741 "gnat setup".
9742
9743 * vms_conv.ads: (Command_Type): New command Setup.
9744
9745 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
9746
9747 * vms_data.ads: Add qualifiers/switches for new built-in command
9748 "setup".
9749
9750 2004-07-25 Richard Henderson <rth@redhat.com>
9751
9752 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
9753 DECL_IGNORED_P on RESULT_DECL.
9754
9755 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
9756
9757 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
9758 allocation and potentially overflowing update with
9759 Tailored_Exception_Information. Use the sec-stack free procedural
9760 interface to output Exception_Information instead.
9761
9762 * a-except.adb (To_Stderr): New subprogram for character, and string
9763 version moved from a-exextr to be visible from other separate units.
9764 (Tailored_Exception_Information): Remove the procedural version,
9765 previously used by the default Last_Chance_Handler and not any more.
9766 Adjust various comments.
9767
9768 * a-exexda.adb: Generalize the exception information procedural
9769 interface, to minimize the use of secondary stack and the need for
9770 local buffers when the info is to be output to stderr:
9771 (Address_Image): Removed.
9772 (Append_Info_Character): New subprogram, checking for overflows and
9773 outputing to stderr if buffer to fill is of length 0.
9774 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
9775 (Append_Info_Address, Append_Info_Exception_Name,
9776 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
9777 Append_Info_Basic_Exception_Traceback,
9778 Append_Info_Exception_Information): New subprograms.
9779 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
9780 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
9781 Exception_Info_Maxlength, Exception_Name_Length,
9782 Exception_Message_Length): New subprograms.
9783 (Exception_Information): Use Append_Info_Exception_Information.
9784 (Tailored_Exception_Information): Use
9785 Append_Info_Basic_Exception_Information.
9786 Export services for the default Last_Chance_Handler.
9787
9788 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
9789 other separate units.
9790
9791 2004-07-20 Vincent Celier <celier@gnat.com>
9792
9793 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
9794
9795 2004-07-20 Ed Schonberg <schonberg@gnat.com>
9796
9797 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
9798 emit itype references for the designated types of component types that
9799 are declared outside of the full record declaration, and that may
9800 denote a partial view of that record type.
9801
9802 2004-07-20 Ed Schonberg <schonberg@gnat.com>
9803
9804 PR ada/15607
9805 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
9806 which is the designated type in an access component declaration, to the
9807 list of incomplete dependents of the parent type, to avoid elaboration
9808 issues with out-of-scope subtypes.
9809 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
9810 full view of the parent.
9811
9812 2004-07-20 Ed Schonberg <schonberg@gnat.com>
9813
9814 PR ada/15610
9815 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
9816 entities that are hidden, such as references to generic actuals
9817 outside an instance.
9818
9819 2004-07-20 Javier Miranda <miranda@gnat.com>
9820
9821 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
9822 support to the new notation.
9823 (Analyze_Selected_Component): Add call to Try_Object_Operation.
9824
9825 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
9826
9827 * s-taprob.adb: Adding the elaboration code required for initializing
9828 the tasking soft links that are common to the full and the restricted
9829 run times.
9830
9831 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
9832 restricted run time has been moved to the package
9833 System.Soft_Links.Tasking.
9834
9835 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
9836 restricted run time has been moved to the package
9837 System.Soft_Links.Tasking.
9838
9839 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
9840
9841 * s-solita.ads, s-solita.adb: New files.
9842
9843 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9844
9845 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
9846 Case_Statement_to_gnu): Split off from gnat_to_gnu.
9847 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
9848 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
9849 Exception_Handler_to_gnu_zcx): Likewise.
9850
9851 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
9852
9853 * gigi.h (builtin_function): Declare.
9854
9855 2004-07-15 Robert Dewar <dewar@gnat.com>
9856
9857 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
9858 reformatting
9859
9860 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
9861 access values as an example of a warning.
9862
9863 * gnat_rm.texi: Document new attribute Has_Access_Values
9864
9865 * gnat-style.texi: Document that box comments belong on nested
9866 subprograms
9867
9868 * sem_util.ads (Has_Access_Values): Improved documentation
9869
9870 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
9871
9872 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
9873 (Process_Interface_Name): Call to this new procedure
9874 (Set_Extended_Import_Export_External_Name): Call to this new procedure
9875
9876 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
9877
9878 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
9879
9880 * einfo.ads: Minor comment typo fixed
9881
9882 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
9883
9884 * snames.adb: Add _atcb.
9885
9886 * snames.ads: Add Name_uATCB.
9887
9888 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
9889 (in the expanded code) when using the restricted run time.
9890
9891 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
9892 a in parameter in order to allow ATCBs to be preallocated (in the
9893 expanded code).
9894
9895 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
9896 order to allow ATCBs to be preallocated. In case of error, the ATCB is
9897 deallocated in System.Tasking.Stages.
9898
9899 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
9900 order to allow ATCBs to be preallocated.
9901
9902 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
9903 here. It was previously done in Initialize_ATCB.
9904
9905 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
9906
9907 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
9908 Restricted run time.
9909
9910 * exp_ch3.adb: When using the Restricted run time, pass the
9911 preallocated Ada_Task_Control_Block when creating a task.
9912
9913 2004-07-15 Ed Schonberg <schonberg@gnat.com>
9914
9915 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
9916 function call that is itself an actual in an enclosing call, diagnose
9917 problem here rather than assuming that resolution will catch it.
9918
9919 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
9920 the local copy of a generic unit for a formal package, and the generic
9921 is a child unit, install private part of ancestors before compiling
9922 private part of spec.
9923
9924 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
9925 use scope entities rather than tree structures, to handle properly
9926 parent units that are instances rewritten as bodies for inlining
9927 purposes.
9928
9929 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
9930 Remove_Parents): Handle properly a parent unit that is an
9931 instantiation, when the unit has been rewritten as a body for inlining
9932 purposes.
9933
9934 * par.adb (Goto_List): Global variable to collect goto statements in a
9935 given unit, for use in detecting natural loops.
9936
9937 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
9938 use in detecting natural loops.
9939
9940 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
9941 backwards goto's, and rewrite as a infinite loop, to improve locality
9942 of temporaries.
9943
9944 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
9945 subcomponent that includes an indexed reference, to prevent the
9946 generation of copies that would miscompile the desired assignment
9947 statement.
9948 (Build_Task_Image_Decls): Add a numeric suffix to
9949 generated name for string variable, to avoid spurious conflicts with
9950 the name of the type of a single protected object.
9951
9952 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
9953 loop with an explicit exit statement, to avoid generating an
9954 out-of-range value with 'Succ leading to spurious constraint_errors
9955 when compiling with -gnatVo.
9956
9957 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
9958
9959 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
9960 might not be analyzed yet, even if its Etype is already set (case of an
9961 unchecked conversion built using Unchecked_Convert_To, for example).
9962 If the prefix has already been analyzed, this will be a nop anyway.
9963
9964 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
9965 controller type, or an assignment of a record type with controlled
9966 components, copy only user data, and leave the finalization chain
9967 pointers untouched.
9968
9969 2004-07-15 Vincent Celier <celier@gnat.com>
9970
9971 * make.adb (Collect_Arguments): Improve error message when attempting
9972 to compile a source not part of any project, when -x is not used.
9973
9974 * prj.ads: (Defined_Variable_Kind): New subtype
9975
9976 * prj-attr.adb (Register_New_Package): Two new procedures to register
9977 a package with or without its attributes.
9978 (Register_New_Attribute): Mew procedure to register a new attribute in a
9979 package.
9980 New attribute oriented subprograms: Attribute_Node_Id_Of,
9981 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
9982 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
9983 Next_Attribute.
9984 New package oriented subprograms: Package_Node_Id_Of,
9985 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
9986
9987 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
9988 type.
9989 (Package_Node_Id): Now a private, self initialized type
9990 (Register_New_Package): New procedure to register a package with its
9991 attributes.
9992 New attribute oriented subprograms: Attribute_Node_Id_Of,
9993 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
9994 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
9995 Next_Attribute.
9996 New package oriented subprograms: Package_Node_Id_Of,
9997 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
9998
9999 * prj-dect.adb (Parse_Attribute_Declaration,
10000 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
10001
10002 * prj-makr.adb (Make): Parse existing project file before creating
10003 other files. Fail if there was an error during parsing.
10004
10005 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
10006 new spec of Prj.Attr.
10007
10008 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
10009 to new spec of Prj.Attr.
10010
10011 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10012
10013 * utils2.c: Fix typo in comment.
10014
10015 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10016
10017 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
10018 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
10019
10020 2004-07-14 Andreas Schwab <schwab@suse.de>
10021
10022 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
10023
10024 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10025
10026 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
10027 object type.
10028 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
10029 TYPE_STUB_DECL.
10030
10031 * misc.c (gnat_types_compatible_p): New function.
10032 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
10033 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
10034
10035 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
10036 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
10037 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
10038 (mark_visited): Don't mark dummy type.
10039 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
10040 parameter, we must remove any LJM building from GNU_NAME.
10041 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
10042 (pos_to_constructor): Use int_const_binop.
10043 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
10044 PARM_DECL.
10045
10046 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
10047 (gnat_pushlevel): Set TREE_USE on BLOCK node.
10048 (gnat_install_builtins): Add __builtin_memset.
10049
10050 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
10051
10052 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
10053 for a renaming, stabilize the initialization expression if we are at a
10054 local level. At the local level, uses of the renaming may be performed
10055 by a direct dereference of the initializing expression, and we don't
10056 want possible variables there to be evaluated for every use.
10057
10058 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
10059 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
10060 them on the way. Account for the fact that we may introduce side
10061 effects in the process.
10062
10063 2004-07-13 Richard Henderson <rth@redhat.com>
10064
10065 * misc.c (default_pass_by_ref): Use pass_by_reference.
10066
10067 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
10068
10069 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
10070 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
10071
10072 2004-07-08 Richard Henderson <rth@redhat.com>
10073
10074 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
10075 commentary.
10076
10077 2004-07-06 Vincent Celier <celier@gnat.com>
10078
10079 * vms_conv.ads: Minor reformatting.
10080 Alphabetical order for enumerated values of type Command_Type, to have
10081 the command in alphabetical order for the usage.
10082
10083 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
10084 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
10085
10086 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
10087
10088 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
10089 (Add_Archive_Path): Only add the global archive if there is one.
10090 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
10091 or not any object file to put in the global archive, and don't build
10092 a global archive if there is none.
10093 (X_Switches): New table
10094 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
10095 in the X_Switches table, if any.
10096 (Initialize): Make sure the X_Switches table is empty
10097 (Scan_Arg): Record -X switches in table X_Switches
10098
10099 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
10100
10101 * make.adb: Minor comment fix
10102
10103 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
10104 invoked with directory information, add the directory in front of the
10105 path.
10106
10107 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
10108 invoked with directory information, add the directory in front of the
10109 path.
10110
10111 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
10112 when Keep_Temporary_Files is False.
10113 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
10114 directory information, add the directory in front of the path.
10115 When not on VMS, handle new switch -dn before the command to set
10116 Keep_Temporary_Files to True.
10117 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
10118 everywhere.
10119
10120 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
10121 invoked with directory information, add the directory in front of the
10122 path.
10123
10124 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
10125
10126 * snames.ads, snames.adb (Name_Stub): New name for the distributed
10127 systems annex.
10128
10129 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
10130 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
10131
10132 * g-socket.adb (To_Timeval): Fix incorrect conversion of
10133 Selector_Duration to Timeval for the case of 0.0.
10134
10135 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
10136 documentation from Evolve_And_Then.
10137
10138 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
10139
10140 * s-taprop-tru64.adb, s-taprop-os2.adb,
10141 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
10142
10143 2004-07-06 Robert Dewar <dewar@gnat.com>
10144
10145 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
10146 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
10147 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
10148 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
10149 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
10150 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
10151 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
10152 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
10153 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
10154 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
10155 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
10156 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
10157 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
10158 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
10159 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
10160 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
10161 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
10162 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
10163 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
10164 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
10165 vms_data.ads: Minor reformatting,
10166 Fix bad box comment format.
10167
10168 * gnat_rm.texi: Fix minor grammatical error
10169
10170 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
10171
10172 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
10173 more cases of discriminated records to be recognized as not needing a
10174 secondary stack.
10175 (Has_Access_Values): New function.
10176
10177 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
10178
10179 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
10180 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
10181 with LRM terminology).
10182 Change terminology in comments primitive type => elementary type.
10183
10184 2004-07-06 Ed Schonberg <schonberg@gnat.com>
10185
10186 PR ada/15602
10187 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
10188 parameters do not impose any requirements on the presence of a body.
10189
10190 2004-07-06 Ed Schonberg <schonberg@gnat.com>
10191
10192 PR ada/15593
10193 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
10194 compilation unit and is in an open scope at the point of instantiation,
10195 assume that a body may be present later.
10196
10197 2004-07-06 Ed Schonberg <schonberg@gnat.com>
10198
10199 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
10200 Improve error message when specified size is not supported.
10201
10202 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
10203 is never a primitive operation.
10204
10205 2004-07-05 Andreas Schwab <schwab@suse.de>
10206
10207 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
10208 RECORD_OR_UNION_CHECK.
10209 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
10210
10211 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
10212
10213 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
10214 dependency on xgnatugn, instead build it via a submake.
10215 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
10216
10217 2004-07-04 Richard Henderson <rth@redhat.com>
10218
10219 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
10220
10221 2004-07-01 Richard Henderson <rth@redhat.com>
10222
10223 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
10224 * utils.c (max_size): Likewise.
10225
10226 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10227
10228 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
10229 and rest_of_type_compilation; add arg to create_*_decl.
10230 (annotate_decl_with_node): Deleted.
10231 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
10232 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
10233 (get_current_block_context, gnat_pushdecl): New declarations.
10234 (gnat_init_stmt_group): Likewise.
10235 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
10236 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
10237 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
10238 (gnat_init): Call gnat_init_stmt_group.
10239 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
10240 (gnu_pending_elaboration_list): Deleted.
10241 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
10242 (gigi): Rearrange initialization calls and move some to last above.
10243 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
10244 Delete calls to add_decl_expr; add arg to create_*_decl.
10245 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
10246 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
10247 begin_subprog_body and call it.
10248 Don't push and pop ggc context.
10249 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
10250 (add_stmt): Remove handling of DECL_EXPR from here.
10251 If not in function, mark visited.
10252 (add_decl_expr): Put global at top level.
10253 Check for cases of DECL_INITIAL we have to handle here.
10254 (process_type): Add extra arg to create_type_decl.
10255 (build_unit_elab): Rework to just gimplify.
10256 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
10257 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
10258 (get_pending_elaborations, pending_elaborations_p): Likewise.
10259 (push_pending_elaborations, pop_pending_elaborations): Likewise.
10260 (get_elaboration_location, insert_elaboration_list): Likewise.
10261 (gnat_binding_level): Renamed from ada_binding_level.
10262 (init_gnat_to_gnu): Don't clear pending_elaborations.
10263 (global_bindings_p): Treat as global if no current_binding_level.
10264 (set_current_block_context): New function.
10265 (gnat_pushdecl): Renamed from pushdecl; major rework.
10266 All callers changed.
10267 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
10268 (finish_record_type): Call call pushdecl for stub decl.
10269 (function_nesting_depth): Deleted.
10270 (begin_subprog_body): Delete obsolete code.
10271 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
10272
10273 2004-06-28 Robert Dewar <dewar@gnat.com>
10274
10275 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10276 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
10277 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
10278 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
10279 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
10280
10281 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
10282 deal with problem of inefficient slices on machines with strict
10283 alignment, when the slice is a component of a composite.
10284
10285 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
10286 machines, we need the check there as well.
10287
10288 2004-06-28 Ed Schonberg <schonberg@gnat.com>
10289
10290 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
10291 determine safe copying direction for overlapping slice assignments
10292 when component is controlled.
10293
10294 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
10295 formal derived type in the actual for a formal package are visible in
10296 the enclosing instance.
10297
10298 2004-06-28 Ed Schonberg <schonberg@gnat.com>
10299
10300 PR ada/15600
10301 * sem_util.adb (Trace_Components): Diagnose properly an illegal
10302 circularity involving a private type whose completion includes a
10303 self-referential component.
10304 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
10305 renaming or an instantiation from an implicit derived operation.
10306
10307 2004-06-28 Pascal Obry <obry@gnat.com>
10308
10309 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
10310 DLL.
10311 (Library_File_Name_For): Idem.
10312
10313 2004-06-28 Matthew Gingell <gingell@gnat.com>
10314
10315 * g-traceb.ads: Add explanatory note on the format of addresses
10316 expected by addr2line.
10317
10318 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
10319
10320 * Makefile.in: Force debugging information on s-tasdeb.adb,
10321 a-except.adb and s-assert.adb needed by the debugger.
10322
10323 2004-06-28 Vincent Celier <celier@gnat.com>
10324
10325 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
10326 Need_To_Build_Lib.
10327 (Gnatmake): Ditto.
10328
10329 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
10330
10331 * prj.adb: Minor reformatting
10332 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
10333
10334 * prj.ads: Comment updates
10335 Minor reformatting
10336 (Project_Data): Change Flag1 to Need_To_Build_Lib.
10337 Remove Flag2: not used.
10338
10339 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
10340 declaration.
10341
10342 * gnat_ugn.texi: Put a "null;" declaration in one project file example
10343
10344 * gnat_rm.texi: Document Empty declarations "null;".
10345
10346 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
10347 front of the linker options.
10348 (Link_Foreign): Put the global archives and the libraries in front of
10349 the linker options.
10350
10351 2004-06-28 Javier Miranda <miranda@gnat.com>
10352
10353 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
10354 (RTU_Loaded): Code cleanup
10355 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
10356 withed predefined units.
10357
10358 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
10359 explicitly withed predefined units.
10360 Fix typo in comment
10361
10362 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
10363 explicitly withed predefined units.
10364
10365 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10366
10367 * ada-tree.def (DECL_STMT): Deleted.
10368 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
10369 (DECL_STMT_VAR): Deleted.
10370 * decl.c: add_decl_stmt now add_decl_expr.
10371 * gigi.h: Likewise.
10372 * trans.c: Likewise.
10373 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
10374 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
10375 (add_stmt): Only handle padded type here.
10376 (add_stmt_with_node): Allow gnat_node to not be present.
10377 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
10378 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
10379 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
10380 make a SAVE_EXPR for the entire fat pointer.
10381 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
10382 (create_index_type): Make a DECL_EXPR.
10383 (end_subprog_body): Don't call allocate_struct_function here but
10384 do clear cfun.
10385
10386 2004-06-25 Pascal Obry <obry@gnat.com>
10387
10388 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
10389 Relocatable from Build_Dynamic_Library call.
10390
10391 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
10392 Relocatable are now synonym.
10393
10394 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
10395
10396 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
10397 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
10398 call.
10399
10400 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
10401 Lib_Address and Relocatable.
10402 (Default_DLL_Address): Removed.
10403
10404 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
10405 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
10406 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
10407 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
10408 (Default_DLL_Address): Removed.
10409
10410 * mlib-tgt-mingw.adb: Ditto.
10411 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
10412
10413 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
10414 the initial thread stack size.
10415
10416 * a-strmap.ads: Move package L to private part as it is not used in
10417 the spec. Found while reading code.
10418
10419 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
10420
10421 * tracebak.c: Introduce support for a GCC infrastructure based
10422 implementation of __gnat_backtrace.
10423
10424 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
10425 any more. Use accessors instead. This eases maintenance and relaxes
10426 some alignment constraints.
10427 (_GNAT_Exception structure): Remove the Ada specific fields
10428 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
10429 a-exexpr.adb.
10430 (is_handled_by, __gnat_eh_personality): Replace component references to
10431 exception structure by use of the new accessors.
10432
10433 * init.c (__gnat_initialize): Adjust comments to match the just
10434 reverted meaning of the -static link-time option.
10435
10436 * adaint.c (convert_addresses): Arrange not to define a stub for
10437 mips-irix any more, as we now want to rely on a real version from a
10438 recent libaddr2line.
10439
10440 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
10441 the personality routine can use them and not have to rely on a C
10442 counterpart of the record anymore. This simplifies maintenance and
10443 relaxes the constraint of having Standard'Maximum_Alignment match
10444 BIGGEST_ALIGNMENT.
10445 Update comments, and add a section on the common header alignment issue.
10446
10447 2004-06-25 Geert Bosch <bosch@gnat.com>
10448
10449 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
10450 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
10451
10452 2004-06-25 Robert Dewar <dewar@gnat.com>
10453
10454 * gnat_rm.texi: Fix section on component clauses to indicate that the
10455 restriction on byte boundary placement still applies for bit packed
10456 arrays.
10457 Add comment on stack usage from Initialize_Scalars
10458
10459 * gnat_ugn.texi: Add documentation for -gnatyLnnn
10460
10461 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
10462 limiting nesting level.
10463
10464 * usage.adb: Add line for -gnatyLnnn switch
10465
10466 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
10467 sem_ch13.adb, exp_aggr.adb: Minor reformatting
10468
10469 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
10470 type as well as on the subtype. This corrects a problem in freeze in
10471 setting alignments of atomic types.
10472
10473 * sem_eval.ads: Minor comment typo fixed
10474
10475 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
10476 level. Minor reformatting.
10477
10478 * fname.adb (Is_Predefined_File_Name): Require a letter after the
10479 minus sign. This means that file names like a--b.adb will not be
10480 considered predefined.
10481
10482 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
10483 record Test new flag and give diagnostic for bad component clause.
10484 (Freeze_Entity): Set alignment of array from component alignment in
10485 cases where this is safe to do.
10486
10487 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
10488 arrays.
10489
10490 * cstand.adb: (Create_Standard): Set alignment of String to 1
10491
10492 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
10493
10494 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
10495 code in the common constrained array cases.
10496
10497 * a-storio.adb: Change implementation to avoid possible alignment
10498 problems on machines requiring strict alignment (data should be moved
10499 as type Buffer, not type Elmt).
10500
10501 * checks.adb (Apply_Array_Size_Check): Improve these checks by
10502 killing the overflow checks which we really do not need (64-bits is
10503 enough).
10504
10505 2004-06-25 Vincent Celier <celier@gnat.com>
10506
10507 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
10508 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
10509 inconditionally for the main project.
10510 (Recursive_Add_Archives.Add_Archive_Path): New procedure
10511 (Link_Executables.Check_Time_Stamps): New procedure
10512 (Link_Executables.Link_Foreign): New procedure
10513 Changes made to reduce nesting level of this package
10514 (Check): New procedure
10515 (Add_Switches): When not in quiet output, check that a switch is not
10516 the concatenation of several valid switches. If it is, issue a warning.
10517 (Build_Global_Archive): If the global archive is rebuilt, linking need
10518 to be done.
10519 (Compile_Sources): Rebuilding a library archive does not imply
10520 rebuilding the global archive.
10521 (Build_Global_Archive): New procedure
10522 (Build_Library): New name for Build_Archive, now only for library
10523 project
10524 (Check_Archive_Builder): New procedure
10525 (Create_Global_Archive_Dependency_File): New procedure
10526 (Gprmake): Call Build_Global_Archive before linking
10527 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
10528 throughout.
10529 (Scan_Arg): Display the Copyright notice when -v is used
10530
10531 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
10532 for gnatls.
10533
10534 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
10535 COMPILE.
10536 Add new GNAT LIST qualifier /FILES=
10537 Added qualifier /DIRECTORY= to GNAT METRIC
10538 Added qualifier /FILES= to GNAT METRIC
10539 Added qualifier /FILES to GNAT PRETTY
10540
10541 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
10542 to take into account both versions of the switch.
10543
10544 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
10545 always be the last switch to the gcc driver. Disable switch storing so
10546 that switches automatically added by the gcc driver are not put in the
10547 ALI file.
10548
10549 * prj.adb (Project_Empty): Take into account changes in components of
10550 Project_Data.
10551
10552 * prj.ads (Languages_Processed): New enumaration value All_Languages.
10553
10554 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
10555 used. Split Boolean component Ada_Sources_Present in two Boolean
10556 components Ada_Sources_Present and Other_Sources_Present.
10557 Minor reformatting
10558
10559 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
10560 instead of Sources_Present.
10561 (Set_Ada_Paths.Add.Recursive_Add): Ditto
10562
10563 * prj-nmsc.adb: Minor reformatting
10564 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
10565 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
10566 Check_Ada_Naming_Scheme.
10567 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
10568 throughout.
10569
10570 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
10571 In_Limited.
10572 Make sure that all cycles where there is at least one "limited with"
10573 are detected.
10574 (Parse_Single_Project): New Boolean parameter In_Limited
10575
10576 * prj-proc.adb (Recursive_Check): When Process_Languages is
10577 All_Languages, call first Prj.Nmsc.Ada_Check, then
10578 Prj.Nmsc.Other_Languages_Check.
10579
10580 * prj-proc.adb (Process): Use Ada_Sources_Present or
10581 Other_Sources_Present (instead of Sources_Present) depending on
10582 Process_Languages.
10583
10584 * lang-specs.h: Keep -g and -m switches in the same order, and as the
10585 last switches.
10586
10587 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
10588 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
10589 False.
10590 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
10591 False.
10592
10593 * lib.ads (Disable_Switch_Storing): New procedure.
10594
10595 * make.adb: Modifications to reduce nesting level of this package.
10596 (Check_Standard_Library): New procedure
10597 (Gnatmake.Check_Mains): New procedure
10598 (Gnatmake.Create_Binder_Mapping_File): New procedure
10599 (Compile_Sources.Compile): Add switch -gnatez as the last option
10600 (Display): Never display -gnatez
10601
10602 * Makefile.generic:
10603 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
10604
10605 * gnatcmd.adb (Check_Project): New function
10606 (Process_Link): New procedure to reduce nesting depth
10607 (Check_Files): New procedure to reduce the nesting depth.
10608 For GNAT METRIC, include the inherited sources in extending projects.
10609 (GNATCmd): When GNAT LS is invoked with a project file and no files,
10610 add the list of files from the sources of the project file. If this list
10611 is too long, put it in a temp text files and use switch -files=
10612 (Delete_Temp_Config_Files): Delete the temp text file that contains
10613 a list of source for gnatpp or gnatmetric, if one has been created.
10614 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
10615 in the project file is too large, create a temporary text file that
10616 list them and pass it to the tool with "-files=<temp text file>".
10617 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
10618
10619 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
10620 generated file is in not in Ada.
10621
10622 * gnatls.adb: Remove all parameters And_Save that are no longer used.
10623 (Scan_Ls_Arg): Add processing for -files=
10624 (Usage): Add line for -files=
10625
10626 * g-os_lib.adb (On_Windows): New global constant Boolean flag
10627 (Normalize_Pathname): When on Windows and the path starts with a
10628 directory separator, make sure that the resulting path will start with
10629 a drive letter.
10630
10631 * clean.adb (Clean_Archive): New procedure
10632 (Clean_Project): When there is non-Ada code, delete the global archive,
10633 the archive dependency files, the object files and their dependency
10634 files, if they exist.
10635 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
10636
10637 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
10638
10639 * sinfo.ads: Fix typo in comment.
10640
10641 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
10642 the TSS for remote access-to-subprogram types, since these TSS are
10643 always present once the type has been analyzed.
10644 (RAS_E_Dereference): Same.
10645
10646 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
10647 reference raises Bad_Attribute, mark the reference as analyzed so the
10648 node (and any children resulting from rewrites that could have occurred
10649 during the analysis that ultimately failed) is not analyzed again.
10650
10651 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
10652
10653 * exp_dist.adb: Minor comment fix.
10654
10655 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
10656 type is an anonymous access type, no unchecked deallocation of the
10657 allocated object can occur. If the object is controlled, attach it with
10658 a count of 1. This allows attachment to the Global_Final_List, if
10659 no other relevant list is available.
10660 (Get_Allocator_Final_List): For an anonymous access type that is
10661 the type of a discriminant or record component, the corresponding
10662 finalisation list is the one of the scope of the type.
10663
10664 2004-06-25 Ed Schonberg <schonberg@gnat.com>
10665
10666 * sem_ch3.adb (Replace_Type): When computing the signature of an
10667 inherited subprogram, use the first subtype if the derived type
10668 declaration has no constraint.
10669
10670 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
10671 before applying previous optimization. Minor code cleanup.
10672
10673 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
10674 placed at the beginning of an unpacked record without explicit
10675 alignment, a slice of it will be aligned and does not need a copy when
10676 used as an actual.
10677
10678 2004-06-25 Ed Schonberg <schonberg@gnat.com>
10679
10680 PR ada/15591
10681 PR ada/15592
10682 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
10683 reference is written with expressions mimicking parameters.
10684
10685 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
10686
10687 PR ada/15589
10688 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
10689 STEP 2a. The constraints of a full type declaration of a derived record
10690 type are checked for conformance with those declared in the
10691 corresponding private extension declaration. The message
10692 "not conformant with previous declaration" is emitted if an error is
10693 detected.
10694
10695 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
10696
10697 * g-traceb.ads: Document the need for -E binder switch in the spec.
10698
10699 * g-trasym.ads: Document the need for -E binder switch in the spec.
10700
10701 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
10702
10703 * sem_prag.adb: Add handling of pragma Detect_Blocking.
10704
10705 * snames.h, snames.ads, snames.adb: Add entry for pragma
10706 Detect_Blocking.
10707
10708 * s-rident.ads: Change reference to pragma Detect_Blocking.
10709
10710 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
10711 system.ads.
10712
10713 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
10714 to indicate whether pragma Detect_Blocking is active.
10715
10716 * par-prag.adb: Add entry for pragma Detect_Blocking.
10717
10718 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
10719 of not handling WITH.
10720 Note that this replaces the previous update which was incorrect.
10721
10722 2004-06-25 Javier Miranda <miranda@gnat.com>
10723
10724 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
10725 use-clauses to have a clean environment.
10726
10727 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
10728 the installation of the use-clauses to stablish a clean environment in
10729 case of compilation of a separate unit; otherwise the call to
10730 use_one_package is protected by the barrier Applicable_Use.
10731
10732 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
10733 the installation of the use-clauses to stablish a clean environment in
10734 case of compilation of a separate unit.
10735 (End_Use_Clauses): Minor comment cleanup.
10736
10737 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
10738
10739 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
10740
10741 2004-06-23 Richard Henderson <rth@redhat.com>
10742
10743 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
10744
10745 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10746
10747 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
10748 now bool instead of int.
10749 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
10750 * trans.c (gnu_switch_label_stack): New function.
10751 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
10752 elaboration of renamed entity returns.
10753 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
10754 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
10755 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
10756 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
10757 DECL_SIZE_UNIT and simplify variable-sized case.
10758 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
10759 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
10760 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
10761 (build_unit_elab): Disable for now.
10762 * utils.c (mark_visited): New function.
10763 (pushdecl): Walk tree to call it for global decl.
10764 (update_pointer_to): Update all variants of pointer and ref types.
10765 Add arg to COMPONENT_REF.
10766 (convert): Likewise.
10767 Move check for converting between variants lower down.
10768 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
10769 (build_allocator): Don't force type of MODIFY_EXPR.
10770 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
10771 put_var_into_stack.
10772
10773 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10774
10775 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
10776 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
10777 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
10778 subprograms.
10779 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
10780 all callers changed.
10781 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
10782 the way that EXIT_STMT finds the loop label.
10783 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
10784 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
10785 (add_stmt): Use annotate_with_locus insted of setting directly.
10786 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
10787 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
10788 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
10789 (build_vms_descriptor): Add extra args to ARRAY_REF.
10790 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
10791 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
10792 New cases.
10793 (build_binary_op): Don't make explicit CONVERT_EXPR.
10794 Add extra rgs to ARRAY_REF.
10795
10796 2004-06-14 Pascal Obry <obry@gnat.com>
10797
10798 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
10799 Windows. Fix minor typo.
10800
10801 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
10802 which is now supported on Windows. With this implementation using the
10803 Library Project feature is no different on Windows than on UNIX.
10804
10805 2004-06-14 Vincent Celier <celier@gnat.com>
10806
10807 * makegpr.adb (Compile_Sources): Nothing to do when there are no
10808 non-Ada sources.
10809
10810 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
10811
10812 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
10813 found, show the project name and the path of the previously parsed
10814 project file.
10815
10816 2004-06-14 Ed Schonberg <schonberg@gnat.com>
10817
10818 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
10819 array, avoid copying the actual before the call.
10820
10821 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
10822
10823 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
10824 Instead, allocate memory on worst-case alignment assumptions, and then
10825 return an aligned address within the allocated zone.
10826
10827 2004-06-14 Robert Dewar <dewar@gnat.com>
10828
10829 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
10830 elab entities in predefined units in No_Run_Time_Mode.
10831 (Gen_Adainit_C): Same fix
10832 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
10833 units in No_Run_Time_Mode
10834 (Gen_Elab_Calls_C): Same fix
10835
10836 * symbols-vms-alpha.adb: Minor reformatting
10837
10838 * g-debpoo.ads: Minor reformatting
10839
10840 * lib.adb (In_Same_Extended_Unit): Version working on node id's
10841
10842 * lib.ads (In_Same_Extended_Unit): Version working on node id's
10843
10844 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
10845 working on nodes.
10846
10847 * make.adb: Minor reformatting
10848
10849 * par-ch12.adb: Minor reformatting
10850
10851 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
10852
10853 * prj-strt.adb: Minor reformatting
10854
10855 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
10856 be more general.
10857
10858 * sem_attr.adb: Minor reformatting
10859
10860 * sem_ch7.adb: Minor reformatting
10861
10862 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
10863 for type in the same unit as the object declaration.
10864
10865 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
10866 static string expressions and not just string literals.
10867 Minor reformatting
10868 (Set_Warning): Reset restriction warning flag for restriction pragma
10869 Implement pragma Profile_Warnings
10870 Implement pragma Profile (Restricted)
10871 Give obolescent messages for old restrictions and pragmas
10872
10873 * snames.h, snames.ads, snames.adb: Add new entry for pragma
10874 Profile_Warnings.
10875
10876 * s-rident.ads: Add declarations for restrictions required by profile
10877 Restricted and profile Ravenscar.
10878
10879 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
10880
10881 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
10882 configuration pragmas.
10883
10884 2004-06-11 Vincent Celier <celier@gnat.com>
10885
10886 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
10887 gnatsym, when symbol policy is Restricted.
10888
10889 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
10890 gnatsym, when symbol policy is Restricted.
10891
10892 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
10893 read the symbol file.
10894 (Finalize): Fail in symbol policy Restricted if a symbol in the original
10895 symbol file is not in the object files. Do not create a new symbol file
10896 when symbol policy is Restricted.
10897
10898 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
10899 in Scng.
10900
10901 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
10902 Restricted.
10903 (Usage): Line for new switch -R
10904
10905 * make.adb (Initialize): When the platform is not VMS, add the
10906 directory where gnatmake is invoked in the front of the path, if
10907 gnatmake is invoked with directory information. Change the Scan_Args
10908 while loop to a for loop.
10909 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
10910 if Depth is equal or greater than the proposed depth, there is nothing
10911 to do.
10912 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
10913 instead of 0.
10914
10915 * prj.ads: Add new symbol policy Restricted.
10916
10917 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
10918 with the new parameters Check_All_Labels and Case_Location.
10919
10920 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
10921 (Library_Symbol_File needs to be defined).
10922
10923 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
10924 and Case_Location If Check_All_Labels is True, check that all values of
10925 the string type are used, and output warning(s) if they are not.
10926
10927 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
10928 and Case_Location.
10929
10930 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
10931
10932 * gnat_ugn.texi: Update documentation about the library directory in
10933 Library Projects.
10934
10935 * makegpr.adb (Display_Command): In verbose mode, also display the
10936 value of the CPATH env var, when the compiler is gcc.
10937 (Initialize): Change the Scan_Args while loop to a for loop
10938 (Compile_Individual_Sources): Change directory to object directory
10939 before compilations.
10940
10941 * symbols.ads: New symbol policy Restricted.
10942
10943 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
10944
10945 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
10946 is now taken care of internally in the Exception_Propagation package
10947 and does not require clients assistance any more.
10948
10949 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
10950 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
10951 functions. Helpers to maintain a predicate required in the handling of
10952 occurrence transfer between tasks.
10953 This is now handled internally and does not require clients assistance
10954 for the setup/propagate separation anymore.
10955 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
10956 allocation strategy, handle the Setup_And_Not_Propagated predicate and
10957 document.
10958
10959 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
10960 raise_after_setup, now that everything is handled internally within the
10961 setup/propagation engine.
10962
10963 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
10964
10965 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
10966 Add additional conditions for the case of an actual being a simple
10967 name or literal. Improve inlining by preventing the generation
10968 of temporaries with a short lifetime (one use).
10969
10970 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
10971
10972 PR ada/15587
10973
10974 * einfo.ads: Minor comment updates for Has_Completion and
10975 E_Constant list of flags.
10976
10977 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
10978 and constant redeclarations now set the Has_Completion flag of their
10979 defining identifiers.
10980
10981 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
10982 Inspect_Deferred_Constant_Completion.
10983 Used to detect private deferred constants that have not been completed
10984 either by a constant redeclaration or pragma Import. Emits error message
10985 "constant declaration requires initialization expression".
10986
10987 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
10988 completes a deferred constant.
10989
10990 2004-06-11 Geert Bosch <bosch@gnat.com>
10991
10992 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
10993
10994 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
10995 calculating exponent for scaling denormal numbers.
10996 (Leading_Part): Properly raise Constraint_Error for zero or negative
10997 Adjustment.
10998 (Remainder): Properly raise Constraint_Error for zero divisor.
10999
11000 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
11001
11002 * sem_util.adb: Minor reformatting.
11003
11004 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
11005 dereference when accessing the entry parameter record.
11006 (Check_Array_Type): Always check for possible implicit dereference.
11007 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
11008 Abort if a pointer is still present (denoting that an implicit
11009 dereference was left in the tree by the front-end).
11010
11011 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
11012 dereference when accessing the entry parameter record.
11013 (Check_Array_Type): Always check for possible implicit dereference.
11014 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
11015 Abort if a pointer is still present (denoting that an implicit
11016 dereference was left in the tree by the front-end).
11017
11018 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
11019
11020 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
11021 message, like the compiler itself does. Easier to parse the output.
11022
11023 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
11024
11025 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
11026 be base names, and not includes directories.
11027
11028 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
11029
11030 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
11031 so that dependencies are properly taken into account by make.
11032
11033 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
11034
11035 PR ada/15622
11036 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
11037 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
11038
11039 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
11040
11041 * Makefile.in (install-gnatlib): install target-specific run-time files.
11042
11043 * Make-lang.in: Remove obsolete targets.
11044
11045 2004-06-11 Ed Schonberg <schonberg@gnat.com>
11046
11047 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
11048 specification, to catch misuses of program unit names.
11049
11050 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
11051 superfluous conversions in an instance.
11052
11053 2004-06-11 Ed Schonberg <schonberg@gnat.com>
11054
11055 PR ada/15403
11056
11057 * sem_ch12.adb (Save_References): If operator node has been folded to
11058 enumeration literal, associated_node must be discarded.
11059
11060 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
11061
11062 * s-stchop-vxworks.adb: Add required pragma Convention to
11063 Task_Descriptor because it is updated by a C function.
11064
11065 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
11066
11067 PR ada/15568
11068
11069 * Makefile.in: Remove target specific SO_OPT on IRIX
11070
11071 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11072
11073 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
11074 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
11075 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
11076 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
11077 (STMT_STMT, USE_STMT): New statement codes.
11078 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
11079 * ada-tree.h: Reflect above changes.
11080 (struct tree_loop_id): Deleted.
11081 (union lang_tree_node, struct lang_decl, struct lang_type):
11082 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
11083 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
11084 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
11085 (IS_ADA_STMT): New macro.
11086 * decl.c (annotate_decl_with_node): New function.
11087 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
11088 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
11089 Call add_stmt_with_node to do needed assignments.
11090 Add call to update setjmp buffer directly, not via EXPR_STMT.
11091 (maybe_variable): Argment GNAT_NODE deleted.
11092 * gigi.h (maybe_variable): Likewise.
11093 (make_transform, add_stmt_with_node, set_block_for_group): New.
11094 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
11095 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
11096 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
11097 (set_lineno, set_lineno_from_sloc): Likewise.
11098 (record_code_position, insert_code_for): Likewise.
11099 (gnat_poplevel): Now returns void.
11100 (end_subprog_body): Now takes argument.
11101 * misc.c (cgraph.h, tree-inline.h): New includes.
11102 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
11103 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
11104 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
11105 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
11106 (gnat_parse_file): Don't set immediate_size_expand.
11107 Call cgraph functions.
11108 (gnat_expand_expr): Remove most cases.
11109 (record_code_position, insert_code_for): Remove from here.
11110 * trans.c (toplev.h, tree-gimple.h): Now included.
11111 (discard_file_names): Deleted.
11112 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
11113 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
11114 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
11115 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
11116 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
11117 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
11118 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
11119 (set_block_for_group, add_stmt_list): Likewise.
11120 (start_stmt_group): Renamed from start_block_stmt.
11121 (end_stmt_group): Likewise, from end_block_stmt.
11122 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
11123 (gigi): Don't set discard_file_names or call set_lineno.
11124 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
11125 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
11126 Numerous changes throughout to reflect new names and complete
11127 function-at-a-time implementation.
11128 (gnat_expand_stmt): Delete or comment out all cases.
11129 (process_inlined_subprograms): Use add_stmt.
11130 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
11131 call set_lineno; also remove unneeded block handling.
11132 (process_type): Remove unneeded block handling.
11133 (build_unit_elab): Remove calls to deleted functions.
11134 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
11135 (tree-dump.h): Likewise.
11136 (struct ada_binding_level): Add field jmpbuf_decl.
11137 (gnat_define_builtin, gnat_install_builtins): New.
11138 (gnat_gimplify_function, gnat_finalize): Likewise.
11139 (gnat_poplevel): No longer return BLOCK, set it instead.
11140 Remove code dealing with nested functions.
11141 (gnat_init_decl_processing): Also set size_type_node.
11142 Call gnat_install_builtins.
11143 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
11144 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
11145 Remove special-case for "main".
11146 (end_subprog_body): Add arg and rework for tree-ssa.
11147 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
11148 Add case for BOOLEAN_TYPE.
11149 * utils2.c (rtl.h): Now include.
11150 (build_call_raise): Test Debug_Flag_NN directly.
11151 (build_call_alloc_dealloc): Don't use local stack allocation for now.
11152 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
11153 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
11154
11155 2004-06-07 Robert Dewar <dewar@gnat.com>
11156
11157 * a-direct.ads, einfo.ads: Minor comment updates
11158
11159 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11160 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
11161 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
11162 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
11163 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
11164
11165 * s-interr-sigaction.adb: Remove unreferenced variable
11166 (Attached_Interrupts). Minor reformatting.
11167 Avoid use of variable I (replace by J).
11168
11169 * par-ch10.adb: Fix text of one error message
11170
11171 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
11172 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
11173 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
11174 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
11175 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
11176 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
11177 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
11178 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
11179 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
11180 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
11181 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
11182 2005 support.
11183
11184 2004-06-07 Doug Rupp <rupp@gnat.com>
11185
11186 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
11187
11188 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
11189
11190 * mlib-tgt-vms-ia64.adb: New file.
11191
11192 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
11193 Add mlib-tgt-vms-ia64.adb
11194 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
11195 Move to alpha specific ifeq section.
11196 Add VMS specific versions of symbols.adb
11197 Renaming of 5q vms files.
11198
11199 * 5qsystem.ads renamed to system-vms_64.ads.
11200
11201 2004-06-07 Vincent Celier <celier@gnat.com>
11202
11203 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
11204 explain that when a time of day corresponding to the non existing hour
11205 on the day switching to DST is specified, Split may return a different
11206 value for Seconds.
11207
11208 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
11209 to GNAT PRETTY.
11210
11211 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
11212 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
11213
11214 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
11215 to False.
11216 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
11217 the linking options.
11218 (Build_Library.Check_Libs): On VMS, if there is a dependency on
11219 g-trasym.ads, set Gtrasymobj_Needed to True.
11220
11221 * prj-attr.adb: Add new package Metrics for gnatmetric
11222
11223 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
11224 canonical case to take into account files with upper case characters on
11225 Windows.
11226 (Ada_Check): Load the reference symbol file name in the name buffer to
11227 check it, not the symbol file name.
11228
11229 * snames.ads, snames.adb: Add standard name Metrics (name of project
11230 file package for gnatmetric).
11231
11232 * vms_conv.ads: Add Metric to Comment_Type
11233
11234 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
11235
11236 * vms_data.ads: Add qualifiers for GNAT METRIC
11237
11238 * makegpr.adb (Link_Executables): Take into account the switches
11239 specified in package Linker of the main project.
11240
11241 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
11242
11243 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
11244 the index of the last element is Units.Last, not Units.Table'Last
11245 (which is usually not a valid index within the actually allocated
11246 storage for the table).
11247
11248 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
11249 determines whether to generate a call to a checked storage pool
11250 Dereference action.
11251 Generate such a call only for a dereference that either comes from
11252 source, or is the result of rewriting a dereference that comes from
11253 source.
11254
11255 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
11256
11257 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
11258
11259 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
11260
11261 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
11262 file level, elaborate the stride for inner dimensions in alignment
11263 units, not bytes.
11264
11265 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
11266 in a comment.
11267
11268 2004-06-07 Javier Miranda <miranda@gnat.com>
11269
11270 * exp_ch6.adb: Correct wrong modification in previous patch
11271
11272 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
11273
11274 * g-trasym.ads: Corrected comment to properly reflect level of support
11275 on VMS.
11276
11277 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
11278
11279 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
11280 includes case of a variable referenced on the left hand side of an
11281 assignment, therefore remove redundant code. Variables and prefixes of
11282 indexed or selected components are now marked as referenced on left
11283 hand side. Warnings are now properly emitted when variables or prefixes
11284 are assigned but not read.
11285
11286 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
11287 left hand side referenced variables. Private access types do not
11288 produce the warning "variable ... is assigned but never read".
11289 Add also additional checks to left hand side referenced variables.
11290 Aliased, renamed objects and access types do not produce the warning
11291 "variable ... is assigned but never read" since other entities may read
11292 the memory location.
11293
11294 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
11295
11296 * Makefile.in: In the powerpc/vxworks-specific section, restore
11297 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
11298 by mistake).
11299
11300 2004-06-07 Ed Schonberg <schonberg@gnat.com>
11301
11302 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
11303 predefined operators.
11304 Removes spurious type errors from g-trasym-vms.adb.
11305
11306 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
11307 distinct from the operator appearing in the source, call appropriate
11308 routine to insert conversions when needed, and complete resolution of
11309 node.
11310 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
11311 interpretations for rewritten right operand.
11312 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
11313 the other operand is overloaded and the context is a type conversion.
11314
11315 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11316
11317 * ada-tree.def (BLOCK_STMT): Now has two operands.
11318 (BREAK_STMT): New.
11319
11320 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
11321
11322 * gigi.h: (gnat_poplevel): Now returns a tree.
11323
11324 * trans.c (end_block_stmt): Add arg; all callers changed.
11325 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
11326 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
11327 (add_stmt): Set TREE_TYPE.
11328 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
11329 (gnat_expand_stmt, case BREAK_STMT): New case.
11330
11331 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
11332
11333 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
11334
11335 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
11336 procedure Set_Stack_Size that is not needed.
11337
11338 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
11339
11340 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
11341 used for gnatpp input file and for the files upon which it depends
11342
11343 2004-06-07 Ben Brosgol <brosgol@gnat.com>
11344
11345 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
11346
11347 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
11348
11349 * gnatvsn.ads: Bump version numbers appropriately.
11350 Add new build type.
11351
11352 2004-06-07 Pascal Obry <obry@gnat.com>
11353
11354 * gnat_ugn.texi: Improve comments about imported names and link names
11355 on Windows. Add a note about the requirement to use -k gnatdll's option
11356 when working with a DLL which has stripped stdcall symbols (no @nn
11357 suffix).
11358
11359 2004-05-27 Vincent Celier <celier@gnat.com>
11360
11361 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
11362 COMMENTS_LAYOUT=UNTOUCHED
11363
11364 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
11365 symbols-vms-alpha.adb
11366
11367 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
11368
11369 * sem.ads: Clarify documentation on checks suppression.
11370
11371 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
11372
11373 2004-05-27 Ed Schonberg <schonberg@gnat.com>
11374
11375 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
11376 the case of multiple derivations.
11377 (Is_Object_Reference): For a selected component, verify that the prefix
11378 is itself an object and not a value.
11379
11380 * sem_ch12.adb (Same_Instantiated_Constant): New name for
11381 Same_Instantiated_Entity.
11382 (Same_Instantiated_Variable): Subsidiary to
11383 Check_Formal_Package_Instance, to recognize actuals for in-out generic
11384 formals that are obtained from a previous formal package.
11385 (Instantiate_Subprogram_Body): Emit proper error when
11386 generating code and the proper body of a stub is missing.
11387
11388 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
11389 has a universal interpretation, do the disambiguation here.
11390
11391 * exp_ch4.adb (Expand_N_Type_Conversion,
11392 Expand_N_Unchecked_Type_Conversion): Special handling when target type
11393 is Address, to avoid typing anomalies when Address is a visible integer
11394 type.
11395
11396 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
11397 to determine whether a subprogram should not be marked Pure, even when
11398 declared in a pure package.
11399
11400 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
11401
11402 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
11403
11404 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
11405 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
11406 Update the documentation about the Ravenscar profile, following the
11407 definition found in AI-249.
11408
11409 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
11410 setting the Profile (Ravenscar). This must be done in addition to
11411 setting the required restrictions.
11412
11413 * rtsfind.ads: Add the set of operations defined in package
11414 Ada.Interrupts.
11415
11416 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
11417 restriction.
11418
11419 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
11420
11421 lang-specs.h: Always require -c or -S and always redirect to /dev/null
11422 if -gnatc or -gnats is passed.
11423
11424 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
11425
11426 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
11427 a significant reference. Warnings are now properly emitted when a
11428 discriminated type is not referenced.
11429
11430 * lib-xref.adb (Generate_Reference): A deferred constant completion,
11431 record representation clause or record type discriminant does not
11432 produce a reference to its corresponding entity. Warnings are now
11433 properly emitted when deferred constants and record types are not
11434 referenced.
11435
11436 2004-05-27 Geert Bosch <bosch@gnat.com>
11437
11438 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
11439 Fixes ACATS Annex G tests.
11440
11441 2004-05-27 Robert Dewar <dewar@gnat.com>
11442
11443 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
11444 handling WITH
11445
11446 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
11447
11448 * s-interr.adb (Server_Task): Take into account case of early return
11449 from sigwait under e.g. linux.
11450
11451 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
11452
11453 * gnat_ugn.texi: Add description for the new gnatpp options:
11454 -rnb - replace the original source without creating its backup copy
11455 -c0 - do not format comments
11456
11457 2004-05-24 Geert Bosch <bosch@gnat.com>
11458
11459 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
11460 with 192 bits of precision, sufficient to reduce a double-extended
11461 arguments X with a maximum relative error of T'Machine_Epsilon, for X
11462 in -2.0**32 .. 2.0**32.
11463 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
11464 reduction by the processor, which only uses a 68-bit approximation of
11465 Pi.
11466 (Tan): Always reduce arguments and compute function either using
11467 the processor's fptan instruction, or by dividing sin and cos as needed.
11468
11469 2004-05-24 Doug Rupp <rupp@gnat.com>
11470
11471 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
11472 gcc error on 32/64 bit VMS.
11473
11474 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
11475
11476 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
11477 since this is what we get for stack overflows although not documented
11478 as such.
11479 Document the issues which may require adjustments to our signal
11480 handlers.
11481
11482 2004-05-24 Ed Schonberg <schonberg@gnat.com>
11483
11484 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
11485 enclosing dynamic scope if the instantiation is within a generic unit.
11486
11487 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
11488
11489 * exp_dbug.ads: Fix typo.
11490
11491 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
11492 Rename it to its proper name: system-linux-ia64.ads
11493 (stamp-gnatlib1): Remove extra target specific run time files when
11494 setting up the rts directory.
11495
11496 2004-05-24 Javier Miranda <miranda@gnat.com>
11497
11498 * einfo.ads, einfo.adb (Limited_Views): Removed.
11499 (Limited_View): New attribute that replaces the previous one. It is
11500 now a bona fide package with the limited-view list through the
11501 first_entity and first_private attributes.
11502
11503 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
11504 limited-private-with clause.
11505 (Install_Limited_Withed_Unit): Install the private declarations of a
11506 limited-private-withed package. Update the installation of the shadow
11507 entities according to the new structure (see Build_Limited_Views)
11508 (Build_Limited_Views): Replace the previous implementation of the
11509 limited view by a package entity that references the first shadow
11510 entity plus the first shadow private entity (required for limited-
11511 private-with clause)
11512 (New_Internal_Shadow_Entity): Code cleanup.
11513 (Remove_Limited_With_Clause): Update the implementation to undo the
11514 new work carried out by Build_Limited_Views.
11515 (Build_Chain): Complete documentation.
11516 Replace Ada0Y by Ada 0Y in comments
11517 Minor reformating
11518
11519 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
11520 types the level of accessibility depends on the enclosing type
11521 declaration.
11522
11523 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
11524 entities. Complete documentation of previous change.
11525
11526 2004-05-24 Robert Dewar <dewar@gnat.com>
11527
11528 * namet.adb: Minor reformatting
11529 Avoid use of name I (replace by J)
11530 Minor code restructuring
11531
11532 * sem_ch6.adb: Minor reformatting
11533
11534 * lib-writ.adb: Do not set restriction as active if this is a
11535 Restriction_Warning case.
11536
11537 * sem_prag.adb: Reset restriction warning flag if real pragma
11538 restriction encountered.
11539
11540 * s-htable.adb: Minor reformatting
11541 Change rotate count to 3 in Hash (improves hash for small strings)
11542
11543 * 5qsystem.ads: Add comments for type Address (no literals allowed).
11544
11545 * gnat_ugn.texi: Add new section of documentation "Code Generation
11546 Control", which describes the use of -m switches.
11547
11548 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
11549
11550 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
11551 through the DECL_INITIAL for renamed variables.
11552
11553 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
11554
11555 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
11556
11557 2004-05-19 Joel Brobecker <brobecker@gnat.com>
11558
11559 * exp_dbug.ads: Correct comments concerning handling of overloading,
11560 since we no longer use $ anymore.
11561
11562 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
11563
11564 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
11565 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
11566 with illegal subunits.
11567
11568 2004-05-19 Ed Schonberg <schonberg@gnat.com>
11569
11570 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
11571 body with front-end inlining enabled, check whether an inline pragma
11572 appears immediately after the body and applies to it.
11573
11574 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
11575 enabled and the pragma appears after the body of the subprogram.
11576
11577 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11578
11579 Part of function-at-a-time conversion
11580
11581 * misc.c (adjust_decl_rtl): Deleted.
11582 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
11583 Define.
11584
11585 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
11586 (add_decl_stmt, add_stmt, block_has_vars): New functions.
11587 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
11588
11589 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
11590 when making a decl.
11591 (gnat_to_gnu_entity): Likewise.
11592 Use add_stmt to update setjmp buffer.
11593 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
11594 flush_addressof.
11595 No longer call adjust_decl_rtl.
11596 (DECL_INIT_BY_ASSIGN_P): New macro.
11597 (DECL_STMT_VAR): Likewise.
11598
11599 * trans.c (gigi): Call start_block_stmt to make the outermost
11600 BLOCK_STMT.
11601 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
11602 Call start_block_stmt and end_block_stmt temporarily.
11603 Use gnat_expand_stmt instead of expand_expr_stmt.
11604 (add_decl_stmt): New function.
11605 (tree_transform): Call it.
11606 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
11607 (end_block_stmt): Set type and NULL_STMT.
11608 (gnat_expand_stmt): Make recursize call instead of calling
11609 expand_expr_stmt.
11610 (gnat_expand_stmt, case DECL_STMT): New case.
11611 (set_lineno_from_sloc): Do nothing if global.
11612 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
11613 (start_block_stmt, add_stmt, end_block_stmt): New functions.
11614 (build_block_stmt): Call them.
11615 (gnat_to_code): Don't expand NULL_STMT.
11616 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
11617 args.
11618 (tree_transform): Likewise.
11619 (tree_transform, case N_Null_Statement): Return NULL_STMT.
11620 (gnat_expand_stmt, case NULL_STMT): New case.
11621 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
11622 IF_STMT_TRUE.
11623
11624 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
11625 TREE_ADDRESSABLE.
11626
11627 * utils.c (create_var_decl): Do not call expand_decl or
11628 expand_decl_init.
11629 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
11630 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
11631 here.
11632 (struct e_stack): Add chain_next to GTY.
11633 (struct binding_level): Deleted.
11634 (struct ada_binding_level): New struct.
11635 (free_block_chain): New.
11636 (global_binding_level, clear_binding_level): Deleted.
11637 (global_bindings_p): Rework to see if no chain.
11638 (kept_level_p, set_block): Deleted.
11639 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
11640 new data structure and work directly on BLOCK node.
11641 (gnat_poplevel): Similarly.
11642 (get_decls): Look at BLOCK_VARS.
11643 (insert_block): Work directly on BLOCK node.
11644 (block_has_var): New function.
11645 (pushdecl): Rework for new binding structures.
11646 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
11647 poplevel.
11648 (build_subprog_body): Likewise.
11649 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
11650
11651 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
11652
11653 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
11654 (DECL_STMT_VAR): Likewise.
11655
11656 2004-05-17 Robert Dewar <dewar@gnat.com>
11657
11658 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
11659 procedure
11660
11661 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
11662 of restriction synonyums by using
11663 Restrict.Process_Restriction_Synonyms.
11664
11665 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
11666
11667 * s-restri.ads (Tasking_Allowed): Correct missing comment
11668
11669 * s-rident.ads: Add entries for restriction synonyms
11670
11671 * ali.adb: Fix some problems with badly formatted ALI files that can
11672 result in infinite loops.
11673
11674 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
11675 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
11676 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
11677 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
11678 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
11679 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
11680 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
11681 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
11682 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
11683 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
11684 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
11685 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
11686 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
11687 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
11688 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
11689 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
11690 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
11691 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
11692 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
11693 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
11694 to Task_Id (minor cleanup).
11695
11696 2004-05-17 Vincent Celier <celier@gnat.com>
11697
11698 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
11699 directory separator.
11700
11701 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
11702 project being extended, if Languages is not declared in extending
11703 project.
11704
11705 2004-05-17 Javier Miranda <miranda@gnat.com>
11706
11707 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
11708 limited view of a visible sibling.
11709
11710 2004-05-14 Robert Dewar <dewar@gnat.com>
11711
11712 * gnat_ugn.texi: Minor change to -gnatS documentation
11713
11714 * sprint.adb: Remove some instances of Assert (False) and for this
11715 purpose replace them by output of a ??? string.
11716
11717 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
11718 Assert (False).
11719
11720 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
11721 flag processing. This was suppressing required dependencies in
11722 No_Run_Time mode and is not needed since the binder does not generate
11723 references for things in libgnat anyway.
11724
11725 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
11726 warning.
11727
11728 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
11729
11730 * gnat_ugn.texi: Document AIX-specific issue with initialization of
11731 resolver library.
11732
11733 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
11734 action for the case of an actual parameter in an init proc call.
11735
11736 2004-05-14 Ed Schonberg <schonberg@gnat.com>
11737
11738 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
11739 subtype, check visible entities in base type.
11740
11741 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
11742 actions if the object is a renaming.
11743
11744 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
11745 Check_Formal_Package_Instance, to determine more precisely when the
11746 formal and the actual denote the same entity.
11747
11748 2004-05-14 Javier Miranda <miranda@gnat.com>
11749
11750 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
11751
11752 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
11753 corresponding to a private_with must be removed from visibility; it
11754 will be made visible later, just before we analyze the private part of
11755 the package.
11756 (Check_Private_Child_Unit): Allow private_with clauses in public
11757 siblings.
11758 (Install_Siblings): Make visible the private entities of private-withed
11759 siblings.
11760 (Install_Withed_Unit): Do not install the private withed unit if we
11761 are compiling a package declaration and the Private_With_OK flag was
11762 not set by the caller. These declarations will be installed later,
11763 just before we analyze the private part of the package.
11764
11765 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
11766 during the evaluation of the expression that initializes the object,
11767 decorate it with the expected type to avoid cascade errors.
11768 Code cleanup.
11769
11770 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
11771 subprogram we have to install the private_with clauses after its
11772 specification has been analyzed (as documented in AI-262.TXT).
11773
11774 * sem_ch8.adb (Has_Private_With): New function. Determines if the
11775 current compilation unit has a private with on a given entity.
11776 (Find_Direct_Name): Detect the Beaujolais problem described in
11777 AI-262.TXT
11778
11779 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
11780 provides the functionality of the function Is_Ancestor that was
11781 previously available in sem_ch10. It has been renamed to avoid
11782 overloading.
11783
11784 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
11785
11786 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11787
11788 * utils.c (build_vms_descriptor): Use SImode pointers.
11789
11790 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
11791
11792 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
11793
11794 2004-05-14 GNAT Script <nobody@gnat.com>
11795
11796 * Make-lang.in: Makefile automatically updated
11797
11798 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
11799
11800 Renaming of target specific files for clarity
11801
11802 * Makefile.in: Rename GNAT target specific files.
11803
11804 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
11805 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
11806 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
11807 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
11808 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
11809 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
11810 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
11811 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
11812 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
11813 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
11814 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
11815 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
11816 51osinte.adb, 51osinte.ads, 51system.ads,
11817 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
11818 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
11819 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
11820 56tpopsp.adb, 57system.ads, 58system.ads,
11821 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
11822 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
11823 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
11824 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
11825 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
11826 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
11827 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
11828 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
11829 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
11830 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
11831 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
11832 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
11833 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
11834 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
11835 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
11836 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
11837 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
11838 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
11839 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
11840 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
11841 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
11842 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
11843 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
11844 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
11845 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
11846 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
11847 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
11848 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
11849 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
11850 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
11851 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
11852 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
11853 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
11854 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
11855 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
11856 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
11857 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
11858 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
11859 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
11860 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
11861
11862 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
11863 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
11864 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
11865 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
11866 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
11867 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
11868 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
11869 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
11870 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
11871 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
11872 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
11873 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
11874 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
11875 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
11876 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
11877 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
11878 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
11879 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
11880 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
11881 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
11882 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
11883 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
11884 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
11885 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
11886 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
11887 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
11888 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
11889 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
11890 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
11891 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
11892 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
11893 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
11894 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
11895 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
11896 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
11897 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
11898 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
11899 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
11900 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
11901 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
11902 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
11903 s-osinte-vms.ads, s-osinte-vxworks.adb,
11904 s-osinte-vxworks.ads, s-osprim-mingw.adb,
11905 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
11906 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
11907 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
11908 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
11909 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
11910 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
11911 s-stchop-vxworks.adb, s-taprop-dummy.adb,
11912 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
11913 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
11914 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
11915 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
11916 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
11917 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
11918 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
11919 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
11920 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
11921 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
11922 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
11923 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
11924 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
11925 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
11926 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
11927 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
11928 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
11929 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
11930 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
11931 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
11932 system-irix-o32.ads, system-linux-x86_64.ads,
11933 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
11934 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
11935 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
11936 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
11937 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
11938 system-vxworks-mips.ads, system-vxworks-ppc.ads,
11939 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
11940 above.
11941
11942 2004-05-13 Zack Weinberg <zack@codesourcery.com>
11943
11944 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
11945
11946 2004-05-13 Diego Novillo <dnovillo@redhat.com>
11947
11948 Merge from tree-ssa-20020619-branch.
11949
11950 * config-lang.in (boot_language, build_by_default): Set
11951 to no.
11952 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
11953 (max_size): Add static chain op for call_expr.
11954
11955 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
11956
11957 PR target/15331
11958 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
11959
11960 2004-05-11 Roger Sayle <roger@eyesopen.com>
11961
11962 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
11963 COND_EXPR.
11964
11965 2004-05-10 Doug Rupp <rupp@gnat.com>
11966
11967 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
11968 system.aux_dec.
11969
11970 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
11971
11972 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
11973
11974 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
11975 Fixes undefined symbols in IA64 gnatlib.
11976
11977 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
11978
11979 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
11980 Short_Address). This will be moved to system.auxdec.
11981
11982 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
11983
11984 * sem_util.adb: Replace test for presence of a node that is always
11985 present with a call to Discard_Node.
11986
11987 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
11988 Analyze on the library unit node after generation of distribution stub
11989 constructs. The call was a no-op because Unit_Node has already been
11990 Analyzed, and the tree fragments for the distribution stubs are
11991 analyzed as they are inserted in Exp_Dist.
11992 Update comment regarding to distribution stubs to reflect that we
11993 do not generate stub in separate files anymore.
11994
11995 * einfo.ads: Clarify the fact that a tagged private type has the
11996 E_Record_Type_With_Private Ekind.
11997
11998 * erroutc.adb: Minor reformatting
11999
12000 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
12001 values if line length is increased using -gnatyM (noticed during code
12002 reading).
12003
12004 * eval_fat.adb: Minor reformatting
12005 Put spaces around exponentiation operator
12006
12007 2004-05-10 Ed Schonberg <schonberg@gnat.com>
12008
12009 PR ada/15005
12010 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
12011 has been rewritten as an explicit dereference, retrieve type of
12012 original node to check for possibly unconstrained record type.
12013
12014 2004-05-10 Ed Schonberg <schonberg@gnat.com>
12015
12016 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
12017 overriding, use the operation of the parent unconditionally.
12018
12019 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
12020 operation when either operand is a literal, to avoid further
12021 ambiguities.
12022
12023 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
12024 overridden by a previous explicit declaration, mark the previous entity
12025 as overriding.
12026
12027 * sem_disp.adb (Check_Dispatching_Operation): New predicate
12028 Is_Visibly_Controlled, to determine whether a declaration of a
12029 primitive control operation for a derived type overrides an inherited
12030 one. Add warning if the explicit declaration does not override.
12031
12032 2004-05-10 Vincent Celier <celier@gnat.com>
12033
12034 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
12035 some cases when the sources are no longer present.
12036
12037 * make.adb (Collect_Arguments): Fail if an external source, not part
12038 of any project need to be compiled, when switch -x has not been
12039 specified.
12040
12041 * makeusg.adb: Document new switch -x
12042
12043 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
12044 defaulted to False.
12045
12046 * switch-m.adb (Scan_Make_Switches): New switch -x
12047
12048 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
12049 gnatmake switch -x.
12050
12051 * gnat_ugn.texi: Document new gnatmake switch -x
12052
12053 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
12054
12055 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
12056
12057 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
12058 (process_attributes): Likewise.
12059
12060 2004-05-10 Joel Brobecker <brobecker@gnat.com>
12061
12062 * s-inmaop.ads: Fix spelling mistake in one of the comments.
12063
12064 2004-05-10 Robert Dewar <dewar@gnat.com>
12065
12066 * gnat_ugn.texi: Document that for config pragma files, the maximum
12067 line length is always 32767.
12068
12069 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
12070 literals is now allowed.
12071
12072 * gnat-style.texi: Remove statement about splitting long lines before
12073 an operator rather than after, since we do not follow this rule at all.
12074 Clarify rule (really lack of rule) for spaces around exponentiation
12075
12076 * sem_elim.adb: Allow concatenation of string literals as well as a
12077 single string literal for pragma arguments.
12078
12079 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
12080
12081 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
12082 written for append case.
12083
12084 * frontend.adb: Changes to avoid checking max line length in config
12085 pragma files.
12086
12087 * g-os_lib.ads: Minor reformatting
12088
12089 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
12090 wrong in any case. Instead use standard value. Noticed during code
12091 reading.
12092
12093 * opt.ads (Max_Line_Length): New field, used to implement removal of
12094 limitation on length of lines when scanning config pragma files.
12095
12096 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
12097 makeutl.ads, makeutl.adb: Minor reformatting
12098
12099 * scn.adb: Do not check line length while scanning config pragma files
12100 Do not check line length while scanning out license information
12101
12102 * scng.adb: Changes to avoid line length checks while parsing config
12103 pragma files.
12104
12105 2004-05-10 GNAT Script <nobody@gnat.com>
12106
12107 * Make-lang.in: Makefile automatically updated
12108
12109 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
12110
12111 * osint.adb (Find_Program_Name): Fix handling of VMS version
12112 number.
12113
12114 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
12115
12116 * g-os_lib.ads (Invalid_Time): New constant
12117
12118 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
12119 return OS_Time instead of time_t to match what is imported by Ada.
12120 Now return -1 if the file doesn't exist, instead of a random value
12121
12122 2004-05-05 Robert Dewar <dewar@gnat.com>
12123
12124 * usage.adb: Add line for -gnatR?s switch
12125
12126 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
12127
12128 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
12129 and for Match (Data_First, Data_last)
12130
12131 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
12132 written when we are dealing with multi-unit files.
12133
12134 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
12135
12136 * Makefile.in: Remove unused targets and variables.
12137
12138 2004-05-05 Vincent Celier <celier@gnat.com>
12139
12140 * switch-m.adb: New gnatmake switch -eI
12141
12142 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
12143 of new gnatmake switch -eInnn.
12144
12145 * makegpr.adb: Take into account new parameters Index and Src_Index in
12146 Prj.Util.
12147
12148 * clean.adb: Implement support for multi-unit sources, including new
12149 switch -i.
12150
12151 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
12152 Src_Index.
12153
12154 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
12155 (Extract_From_Q): New out parameter Index
12156 (Mark, Is_Marked): Subprograms moved to Makeutl
12157 (Switches_Of): New parameter Source_Index
12158 (Add_Switch): New parameter Index
12159 (Check): New parameter Source_Index
12160 (Collect_Arguments): New parameter Source_Index
12161 (Collect_Arguments_And_Compile): New parameter Source_Index
12162 (Compile): New parameter Source_Index
12163 Put subprograms in alphabetical order
12164 Add support for multi-source sources, including in project files.
12165
12166 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
12167 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
12168 Make.
12169
12170 * makeusg.adb: New gnatmake switch -eInnn
12171
12172 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
12173 Prj.Util.Value_Of.
12174
12175 * opt.ads (Main_Index): New variable, defaulted to 0.
12176
12177 * osint.ads, osinte.adb (Add_File): New parameter Index
12178 (Current_Source_Index): New function
12179
12180 * prj.adb: Take into account new components Index and Src_Index
12181
12182 * prj.ads (String_Element): New component Index
12183 (Variable_Value): New component Index
12184 (Array_Element): New component Src_Index
12185
12186 * prj-attr.adb: Indicate that optional index may be specified for
12187 attributes Main, Executable, Spec, Body and some of Switches.
12188
12189 * prj-attr.ads (Attribute_Kind): New values for optional indexes
12190 (Attribute_Record): New component Optional_Index
12191
12192 * prj-com.ads (File_Name_Data): New component Index
12193
12194 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
12195
12196 * prj-env.adb (Put): Output optional index
12197
12198 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
12199 attributes Spec and Body.
12200
12201 * prj-nmsc.adb: Process optional indexes
12202
12203 * prj-pp.adb: Ouput "at" for optional indexes
12204
12205 * prj-proc.adb: Take into account optional indexes
12206
12207 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
12208 Optional_Index. For string literal,
12209 process optional index when Optional_Index is True.
12210 (Parse_Expresion): New Boolean parameter Optional_Index
12211
12212 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
12213 (Set_Source_Index_Of): New procedure
12214
12215 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
12216 index.
12217
12218 * prj-util.ads (Executable_Of): New parameter Index
12219 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
12220 New parameter Src_Index, defaulted to 0.
12221
12222 2004-05-05 Ed Schonberg <schonberg@gnat.com>
12223
12224 PR ada/15257
12225 * sem_ch3.adb (Access_Definition): If this is an access parameter
12226 whose designated type is imported through a limited_with clause, do
12227 not add the enclosing subprogram to the list of private dependents of
12228 the type.
12229
12230 2004-05-05 Ed Schonberg <schonberg@gnat.com>
12231
12232 PR ada/15258
12233 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
12234 a limited_with clause, and the other is its non-limited view.
12235
12236 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
12237
12238 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
12239
12240 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
12241 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
12242 Stand.Boolean_Literals to produce references to entities
12243 Standard_False and Standard_True from compile-time computed boolean
12244 values.
12245
12246 * stand.ads (Boolean_Literals): New variable, provides the entity
12247 values for False and True, for use by the expander.
12248
12249 2004-05-05 Doug Rupp <rupp@gnat.com>
12250
12251 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
12252 5vinmaop.adb: Unchecked convert Short_Address vice Address
12253
12254 * adaint.c, raise.c: Caste CRTL function return value
12255 to avoid gcc error on 32/64 bit IVMS.
12256
12257 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
12258 target = IA64/VMS.
12259
12260 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
12261
12262 * 5qsystem.ads (Address): Declare as Long_Integer
12263 (Short_Address): Declare as 32 bit subtype of Address
12264 Declare abstract address operations to avoid gratuitous ambiguities.
12265
12266 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
12267
12268 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
12269 instead of the old Boolean_Entry_Barriers.
12270 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
12271
12272 2004-05-05 GNAT Script <nobody@gnat.com>
12273
12274 * Make-lang.in: Makefile automatically updated
12275
12276 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
12277
12278 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
12279
12280 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
12281
12282 PR ada/15152
12283
12284 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
12285 alone. Replacing object references by literals is inappropriate in a
12286 so low level context.
12287
12288 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
12289
12290 * a-exexpr.adb: Add comments
12291
12292 2004-05-03 Joel Brobecker <brobecker@gnat.com>
12293
12294 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
12295 declare the Ancestor_Tags array in Type_Specific_Data with a small size
12296 without risking a bounds check error when accessing one of its
12297 components.
12298 (Type_Specific_Data): Define Ancestor_Tags as a small array.
12299 This prevents us from hitting a limitation during the debug info
12300 generation when using stabs.
12301
12302 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
12303 small array.
12304 This prevents us from hitting a limitation during the debug info
12305 generation when using stabs.
12306
12307 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
12308
12309 lang-specs.h: Remove -gnatz* from specs.
12310
12311 2004-05-03 Vincent Celier <celier@gnat.com>
12312
12313 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
12314
12315 * Make-lang.in, Makefile.in: Add gprmake
12316
12317 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
12318
12319 * sem_aggr.adb: Fix typo in comment.
12320
12321 2004-05-03 Robert Dewar <dewar@gnat.com>
12322
12323 * make.adb: Minor reformatting
12324
12325 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
12326
12327 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
12328 so that it works when address is not a private type.
12329
12330 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
12331 properly with rewritten unchecked conversions. This prevents
12332 order-of-elaboration issues that can otherwise arise.
12333 (Minimum_Size): Don't check size of access types under VMS
12334
12335 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
12336 interpretations of integer literals as type System.Address.
12337
12338 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
12339 (Is_Descendent_Of): New function
12340
12341 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
12342
12343 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
12344 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
12345 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
12346
12347 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
12348 of the old Max_Entry_Queue_Depth.
12349
12350 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
12351 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
12352 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
12353
12354 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
12355 New entry for proper handling of Max_Entry_Queue_Depth.
12356 New entry for proper handling of No_Dynamic_Interrupts.
12357
12358 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
12359 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
12360 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
12361 the GNAT specific restriction Max_Entry_Queue_Depth.
12362 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
12363 the GNAT specific restriction No_Dynamic_Interrupts.
12364
12365 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
12366 instead of the old Boolean_Entry_Barriers.
12367 Use the new restriction No_Dynamic_Attachment instead of the old
12368 No_Dynamic_Interrupts.
12369
12370 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
12371 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
12372
12373 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
12374 of the old Max_Entry_Queue_Depth.
12375
12376 2004-05-03 GNAT Script <nobody@gnat.com>
12377
12378 * Make-lang.in: Makefile automatically updated
12379
12380 2004-04-29 Ed Schonberg <schonberg@gnat.com>
12381
12382 * checks.adb (Enable_Range_Check): If the prefix of an index component
12383 is an access to an unconstrained array, perform check unconditionally.
12384
12385 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12386
12387 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
12388 Component_Clause.
12389
12390 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
12391
12392 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
12393 alternate stack setting. There was no support for the tasking cases
12394 and the changes eventually caused a number of side-effect failures in
12395 the non-tasking case too.
12396
12397 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
12398
12399 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
12400 -gnats is passed.
12401
12402 2004-04-29 Vincent Celier <celier@gnat.com>
12403
12404 * make.adb (Gnatmake): Increase max size of argument array for
12405 gnatbind for the potential addition of -F.
12406 If there are Stand-Alone Library projects, invoke gnatbind with -F to
12407 be sure that elaboration flags will be checked.
12408
12409 * switch-c.adb: Correct call to Scan_Pos for -gnateI
12410
12411 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
12412
12413 * sem_warn.adb (Check_References): Move '<access-variable> may be
12414 null' warning out of under Warn_On_No_Value_Assigned.
12415
12416 2004-04-29 Ed Falis <falis@gnat.com>
12417
12418 * gnat_ugn.texi: Fixed texi error
12419
12420 2004-04-29 Robert Dewar <dewar@gnat.com>
12421
12422 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
12423 abstract operations if they come from predefined files.
12424
12425 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
12426 Dynamic, not RM).
12427
12428 * s-addope.adb: Correct obvious error in mod function
12429
12430 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
12431
12432 * Makefile.in: Add target pairs for powerpc darwin*
12433 tasking support.
12434
12435 * a-intnam-darwin.ads, s-osinte-darwin.adb,
12436 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
12437
12438 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
12439
12440 * Makefile.in: Add target macro definitions for s390*-linux*.
12441 * system-linux-s390.ads: New file.
12442 * system-linux-s390x.ads: New file.
12443
12444 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
12445
12446 * gnat_ugn.texi: Correct argument to @setfilename.
12447
12448 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
12449
12450 * a-exexpr.adb (Unwind_Word): New data type.
12451 (Unwind_Exception): Use it as type of Private1 and Private2.
12452
12453 * raise.c (db_action_for): Fix debug printf.
12454
12455 2004-04-27 Ed Schonberg <schonberg@gnat.com>
12456
12457 * a-wtmoio.ads: Formal type must be a modular type, not a signed
12458 integer type.
12459
12460 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12461
12462 * decl.c (gnat_to_gnu_entity, case object): Call
12463 __builtin_update_setjmp_buf.
12464
12465 * gigi.h (update_setjmp_buf): Deleted.
12466 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
12467
12468 * misc.c: (update_setjmp_buf): Deleted.
12469
12470 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
12471 around block of RTL.
12472
12473 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
12474
12475 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
12476
12477 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
12478 subprogram for which no pragma All_Calls_Remote applies, store the
12479 address of the real subprogram in the underlying record type, so local
12480 dereferences do not go through the PCS.
12481
12482 2004-04-26 Robert Dewar <dewar@gnat.com>
12483
12484 * i-c.ads: Add some type qualifications to avoid ambiguities when
12485 compiling with s-auxdec.ads and a non-private address type.
12486
12487 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
12488
12489 * Makefile.rtl: Fix error in previous check-in:
12490 Add s-addope.o to non tasking object list (rather than tasking object
12491 list).
12492
12493 2004-04-26 Javier Miranda <miranda@gnat.com>
12494
12495 * sem_aggr.adb: Fix typo in comments
12496 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
12497 Required to check the null-exclusion attribute.
12498
12499 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
12500 case of anonymous access types in record and array components. For a
12501 component definition the level is the same of the enclosing composite
12502 type.
12503
12504 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
12505 that are anonymous access types the level of accessibility depends on
12506 the enclosing type declaration. In order to have this information, set
12507 the scope of the anonymous access type to the enclosing record type
12508 declaration.
12509 (Array_Type_Declaration): In case of components that are anonymous
12510 access types the level of accessibility depends on the enclosing type
12511 declaration. In order to have this information, set the scope of the
12512 anonymous access type to the enclosing array type declaration.
12513
12514 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
12515 access type.
12516
12517 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
12518 renaming of anonymous access-to-constant types allowed if and only if
12519 the renamed object is access-to-constant.
12520
12521 * sem_util.adb (Type_Access_Level): In case of anonymous access types
12522 that are component_definition or discriminants of a nonlimited type,
12523 the level is the same as that of the enclosing component type.
12524
12525 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
12526
12527 * sem_elim.adb: Some minor code reorganization from code reading. Fix
12528 misprint in the function name (File_Name_Match).
12529
12530 2004-04-23 Laurent GUERBY <laurent@guerby.net>
12531
12532 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
12533 install.
12534
12535 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12536
12537 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
12538
12539 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
12540
12541 * adaint.c (__gnat_try_lock): No longer requires that the parent
12542 directory be writable, the directory itself is enough.
12543 (gnat_is_absolute_path): Change profile, so that the call from
12544 GNAT.OS_Lib can be made more efficient.
12545
12546 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
12547 from GNAT.OS_Lib can be made more efficient.
12548
12549 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
12550 one copy of the file name. Found by code reading.
12551
12552 2004-04-23 Vincent Celier <celier@gnat.com>
12553
12554 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
12555 Correct documentation on gnatmake switches transmitted to the compiler
12556
12557 * ali.ads: Minor comment fix
12558
12559 2004-04-23 Javier Miranda <miranda@gnat.com>
12560
12561 * sem_ch6.adb: (Confirming Types): Code cleanup
12562
12563 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
12564 subprogram types: E_Anonymous_Access_Subprogram_Type and
12565 E_Anonymous_Access_Protected_Subprogram_Type.
12566
12567 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
12568
12569 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
12570 whether a pragma All_Calls_Remote applies to the subprogram on which
12571 'Access is taken.
12572 No functional change is introduced by this revision; the new parameter
12573 will be used to allow calls to local RCI subprograms to be optimized
12574 to not use the PCS in the case where no pragma All_Calls_Remote applies,
12575 as is already done in the PolyORB implementation of the DSA.
12576
12577 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
12578 whether a pragma All_Calls_Remote applies to the subprogram on which
12579 'Access is taken.
12580 No functional change is introduced by this revision; the new parameter
12581 will be used to allow calls to local RCI subprograms to be optimized
12582 to not use the PCS in the case where no pragma All_Calls_Remote applies,
12583 as is already done in the PolyORB implementation of the DSA.
12584
12585 2004-04-23 Robert Dewar <dewar@gnat.com>
12586
12587 * Makefile.rtl: Add entry for s-addope.o in run time library list
12588 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
12589 * s-addope.ads, s-addope.adb: New files.
12590
12591 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
12592 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
12593 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
12594 System.Address to be non-private and signed.
12595
12596 * sem_elim.adb: Minor reformatting (fairly extensive)
12597 Some minor code reorganization from code reading
12598 Add a couple of ??? comments
12599
12600 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12601
12602 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
12603 (tree_transform, case N_If_Statement): Remove non-determinism.
12604
12605 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
12606
12607 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
12608
12609 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
12610 Eliminate' section.
12611
12612 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
12613 no longer used as a parameter name for Eliminate pragma).
12614
12615 2004-04-22 Laurent GUERBY <laurent@guerby.net>
12616
12617 PR optimization/14984
12618 PR optimization/14985
12619 * trans.c (gigi): Fix non determinism leading to bootstrap
12620 comparison failures.
12621
12622 2004-04-21 Pascal Obry <obry@gnat.com>
12623
12624 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
12625 passed to spawnvp() to properly handle program pathname with spaces on
12626 Win32.
12627
12628 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
12629
12630 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
12631 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
12632 unlocked in case of exceptions.
12633
12634 2004-04-21 Joel Brobecker <brobecker@gnat.com>
12635
12636 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
12637 This function does not exist anymore.
12638
12639 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
12640
12641 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
12642
12643 * link.c: Move variables to the __gnat name space.
12644
12645 * Makefile.in: list link.o explicitly when needed.
12646
12647 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
12648
12649 2004-04-21 Javier Miranda <miranda@gnat.com>
12650
12651 * einfo.adb (Original_Access_Type): New subprogram
12652 (Set_Original_Access_Type): New subprogram
12653 (Write_Field21_Name): Write the name of the new field
12654
12655 * einfo.ads (Original_Access_Type): New field present in access to
12656 subprogram types.
12657 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
12658 E_Anonymous_Access_Protected_Subprogram_Type.
12659
12660 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
12661 subprogram types.
12662
12663 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
12664 to anonymous access to subprogram types.
12665
12666 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
12667 to subprogram types.
12668
12669 * sem_ch3.adb (Access_Definition): Complete decoration of entities
12670 corresponding to anonymous access to subprogram types.
12671 (Analyze_Component_Declaration): Add new actual to the call to
12672 subprogram replace_anonymous_access_to_protected_subprogram.
12673 (Array_Type_Declaration): Add new actual to the call to subprogram
12674 replace_anonymous_access_to_protected_subprogram.
12675 (Process_Discriminants): Add new actual to the call to subprogram
12676 replace_anonymous_access_to_protected_subprogram.
12677 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
12678
12679 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
12680 formal.
12681
12682 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
12683 access to subprogram types.
12684
12685 * sem_util.adb (Has_Declarations): Addition of package_specification
12686 nodes.
12687
12688 2004-04-21 Ed Schonberg <schonberg@gnat.com>
12689
12690 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
12691 inlined flags to renamed entity only if in current unit.
12692
12693 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
12694
12695 * s-parint.ads: Add DSA implementation marker.
12696
12697 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
12698 value of System.Partition_Interface.DSA_Implementation to determine
12699 what version of the distributed systems annex is available (no
12700 implementation, GLADE, or PolyORB).
12701
12702 2004-04-21 Joel Brobecker <brobecker@gnat.com>
12703
12704 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
12705
12706 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12707
12708 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
12709 with new type if alias sets differ.
12710 Fixes ACATS c41103b.
12711
12712 2004-04-21 Vincent Celier <celier@gnat.com>
12713
12714 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
12715 Add array Lang_Args for the language specific compiling argument
12716 switches.
12717
12718 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
12719
12720 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
12721
12722 * gnat_rm.texi: Update the descripton of the Eliminate pragma
12723 according to the recent changes in the format of the parameters of the
12724 pragma (replacing Homonym_Number with Source_Location).
12725
12726 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
12727
12728 * 5isystem.ads: Removed, unused.
12729
12730 * gnat_rm.texi: Redo 1.13 change.
12731
12732 2004-04-19 Robert Dewar <dewar@gnat.com>
12733
12734 * s-stoele.ads: Clean up definition of Storage_Offset (the new
12735 definition is cleaner, avoids the kludge of explicit Standard operator
12736 references, and also is consistent with a visible System.Address with
12737 no visible operations.
12738
12739 * s-geveop.adb: Add declarations to avoid assumption of visible
12740 operations on type System.Address (since these might not be available
12741 if Address is a non-private type for which the operations
12742 are made abstract).
12743
12744 * sem_eval.adb: Minor reformatting
12745
12746 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
12747 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
12748 reformatting (new function spec format).
12749
12750 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
12751 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
12752 s-caun64.adb: Add declarations to avoid assumption of visible
12753 operations on type System.Address (since these might not be available
12754 if Address is a non-private type for which the operations are made
12755 abstract).
12756
12757 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
12758
12759 * exp_intr.adb: Minor comment update
12760
12761 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
12762
12763 * 5omastop.adb: Add declarations to avoid assumption of visible
12764 operations on type System.Address (since these might not be available
12765 if Address is a non-private type for which the operations
12766 are made abstract).
12767
12768 2004-04-19 Vincent Celier <celier@gnat.com>
12769
12770 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
12771
12772 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
12773 defaulted to Ada.
12774
12775 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
12776 defaulted to Ada.
12777 Call Check with Process_Languages.
12778 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
12779 with Process_Languages.
12780 (Recursive_Check): New Boolean parameter Process_Languages. Call
12781 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
12782 Process_Languages.
12783
12784 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
12785
12786 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
12787 parameter Ada_Main, defaulted to True.
12788 Check for Ada specific characteristics only when Ada_Main is True.
12789
12790 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
12791
12792 * prj.adb: (Project_Empty): Add new Project_Data components.
12793
12794 * prj.ads: New types and tables for non Ada languages.
12795 (Project_Data): New components Languages, Impl_Suffixes,
12796 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
12797 Include_Path, Include_Data_Set.
12798
12799 * prj-env.ads, prj-env.adb: Minor reformatting
12800
12801 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
12802 Put subprograms in alphabetical order
12803
12804 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
12805 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
12806 Opt.Follow_Links.
12807
12808 * mlib-prj.adb: Back out modification in last version, as they are
12809 incorrect.
12810 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
12811
12812 * make.adb: (Mains): Moved to package Makeutl
12813 (Linker_Opts): Moved to package Makeutl
12814 (Is_External_Assignment): Moved to package Makeutl
12815 (Test_If_Relative_Path): Moved to package Makeutl
12816 (Gnatmake): Move sorting of linker options to function
12817 Makeutl.Linker_Options_Switches.
12818
12819 * makeutl.ads, makeutl.adb: New files.
12820
12821 * Makefile.in: Add makeutl.o to the object files for gnatmake
12822
12823 * makeusg.adb: Add line for new switch -eL.
12824
12825 * gnatls.adb (Image): New function.
12826 (Output_Unit): If in verbose mode, output the list of restrictions
12827 specified by pragmas Restrictions.
12828
12829 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
12830 Text_IO.
12831
12832 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
12833 needed, to put it in the range 1970 (included) - 2026 (excluded).
12834 (Time_Of): Do not shift Unix_Min_Year (1970).
12835 Shift the date by multiple of 56 years, if needed, to put it in the
12836 range 1970 (included) - 2026 (excluded).
12837
12838 * adaint.h, adaint.c (__gnat_set_executable): New function.
12839
12840 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12841
12842 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
12843 and pop GC context.
12844 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
12845 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
12846 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
12847 (tree_transform, case N_Code_Statement): Likewise.
12848 (gnat_expand_stmt, case LABEL_STMT): Don't look at
12849 LABEL_STMT_FIRST_IN_EH.
12850 (gnat_expand_stmt, case ASM_STMT): New case.
12851
12852 * utils2.c (build_unary_op): Properly set TREE_READONLY of
12853 UNCONSTRAINED_ARRAY_REF.
12854
12855 * utils.c (poplevel): Temporarily push/pop GC context around inline
12856 function expansion.
12857
12858 * decl.c (maybe_variable): Properly set TREE_READONLY of
12859 UNCONSTRAINED_ARRAY_REF.
12860 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
12861
12862 * ada-tree.def: (ASM_STMT): New.
12863
12864 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
12865 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
12866 ASM_STMT_INPUT): New.
12867 (ASM_STMT_CLOBBER): Likewise.
12868
12869 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
12870
12871 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
12872 general rcheck mechanism to raise Program_Error for E.4(18), instead
12873 of a custom raiser in System.Partition_Interface.
12874 Part of general cleanup work before PolyORB integration.
12875
12876 * snames.ads, snames.adb: Add new runtime library entities and names
12877 for PolyORB DSA.
12878
12879 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
12880 exp_dist.
12881 (Build_Subprogram_Id): New subprogram provided by exp_dist
12882 Code reorganisation in preparation for PolyORB integration.
12883
12884 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
12885 exp_dist.
12886 (Build_Subprogram_Id): New subprogram provided by exp_dist
12887
12888 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
12889 actual parameter types for call to dereference of an
12890 access-to-subprogram type.
12891
12892 * rtsfind.ads: Add new runtime library entities and names for PolyORB
12893 DSA.
12894
12895 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
12896 instead, which has the same behaviour here since we never pass it a
12897 NULL pointer.
12898
12899 * link.c (run_path_option, Solaris case): Use -Wl, as for other
12900 platforms.
12901
12902 * Makefile.in: adjust object file lists for gnatlink and gnatmake
12903 to account for new dependency upon Interfaces.C.Strings + link.o
12904 For x86 FreeBSD, use 86numaux.
12905
12906 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
12907 from Mlib.Tgt to Mlib.
12908
12909 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
12910 target-independent.
12911
12912 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
12913 target-specific versions of this subprogram, now implemented as a
12914 target-independent function in Mlib.
12915
12916 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
12917 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
12918 (Linker_Library_Path_Option): Remove target-specific versions of this
12919 subprogram, now implemented as a target-independent function in Mlib.
12920
12921 * atree.adb: (Allocate_Initialize_Node): New subprogram.
12922 Factors out node table slots allocation.
12923 (Fix_Parents): New subprogram.
12924 Encapsulate the pattern of fixing up parent pointers for syntactic
12925 children of a rewritten node.
12926 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
12927 (Rewrite): Use New_Copy when creating saved copy of original node.
12928 (Replace): Use Copy_Node to copy nodes.
12929
12930 2004-04-19 Javier Miranda <miranda@gnat.com>
12931
12932 * sprint.adb (Sprint_Node_Actual): Give support to the new
12933 Access_To_Subprogram node available in Access_Definition nodes. In
12934 addition, give support to the AI-231 node fields: null-exclusion,
12935 all-present, constant-present.
12936
12937 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
12938
12939 * sinfo.ads, sinfo.adb:
12940 New field Access_To_Subprogram_Definition in Access_Definition nodes
12941
12942 * sem_ch6.adb (Process_Formals): Move here the code that creates and
12943 decorates internal subtype declaration corresponding to the
12944 null-excluding formal. This code was previously in Set_Actual_Subtypes.
12945 In addition, carry out some code cleanup on this code. In case of
12946 access to protected subprogram call
12947 Replace_Anonymous_Access_To_Protected_Subprogram.
12948 (Set_Actual_Subtypes): Code cleanup.
12949
12950 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
12951 Find_Type in case of anonymous access renamings. Add warning in case of
12952 null-excluding attribute used in anonymous access renaming.
12953
12954 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
12955 subprogram
12956
12957 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
12958 subprogram.
12959 (Access_Definition): In case of anonymous access to subprograms call
12960 the corresponding semantic routine to decorate the node.
12961 (Access_Subprogram_Declaration): Addition of some comments indicating
12962 some code that probably should be added here. Detected by comparison
12963 with the access_definition subprogram.
12964 (Analyze_Component_Declaration): In case of access to protected
12965 subprogram call Replace_Anonymous_Access_To_Protected.
12966 (Array_Type_Declaration): In case of access to protected subprogram call
12967 Replace_Anonymous_Access_To_Protected_Subprogram.
12968 (Process_Discriminants): In case of access to protected subprogram call
12969 Replace_Anonymous_Access_To_Protected_Subprogram.
12970
12971 * par.adb (P_Access_Definition): New formal that indicates if the
12972 null-exclusion part was present.
12973 (P_Access_Type_Definition): New formal that indicates if the caller has
12974 already parsed the null-excluding part.
12975
12976 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
12977 (P_Identifier_Declarations): Code cleanup and give support to renamings
12978 of anonymous access to subprogram types.
12979 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
12980 (P_Array_Type_Definition): Give support to AI-254.
12981 (P_Component_Items): Give support to AI-254.
12982 (P_Access_Definition): New formal that indicates if the header was
12983 already parsed by the caller.
12984 (P_Access_Type_Definition): New formal that indicates if the caller has
12985 already parsed the null-excluding part.
12986
12987 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
12988 call to P_Access_Definition.
12989
12990 2004-04-19 Geert Bosch <bosch@gnat.com>
12991
12992 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
12993 the delicate semantics of floating-point to integer conversion.
12994 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
12995
12996 * eval_fat.adb (Machine_Mantissa): Moved to spec.
12997 (Machine_Radix): New function.
12998
12999 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
13000 conversion checks.
13001 (Machine_Radix): New function also for use in conversion checks.
13002
13003 2004-04-19 Ed Schonberg <schonberg@gnat.com>
13004
13005 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
13006
13007 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
13008 to decorate the access-to-protected subprogram and the equivalent type.
13009
13010 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
13011 to anonymous access to subprogram types.
13012
13013 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
13014 constant-folding, for legality checks in contexts that require an RM
13015 static expression.
13016
13017 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
13018 temporary but stack checking is not enabled, increment serial number
13019 to so that symbol generation is consistent with and without stack
13020 checking.
13021
13022 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
13023 independent on whether stack checking is enabled, caller must check
13024 the corresponding flag.
13025
13026 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
13027 range checks.
13028 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
13029 parent if it has discriminants.
13030 (Build_Derived_Private_Type): Constructed full view does
13031 not come from source.
13032 (Process_Discriminants): Default discriminants on a tagged type are
13033 legal if this is the internal completion of a private untagged
13034 derivation.
13035
13036 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
13037 no constraint checks, because it corresponds to an existing object.
13038
13039 * sem_prag.adb (Process_Convention): Pragma applies
13040 only to subprograms in the same declarative part, i.e. the same unit,
13041 not the same scope.
13042
13043 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
13044 ignore type mismatch on a numeric conversion if expression comes from
13045 expansion.
13046
13047 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
13048
13049 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
13050 Homonym_Number parameter, add processing for Source_Location parameter
13051 corresponding.
13052 (Check_Eliminated): Remove the check for homonym numbers, add the check
13053 for source location traces.
13054
13055 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
13056 with Arg_Source_Location corresponding to the changes in the format of
13057 the pragma.
13058
13059 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
13060 Eliminate pragma corresponding to the changes in the format of the
13061 pragma: Homonym_Number is replaced with Source_Location, two ways of
13062 distinguishing homonyms are mutially-exclusive.
13063
13064 2004-04-19 Joel Brobecker <brobecker@gnat.com>
13065
13066 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
13067
13068 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
13069 No_Dollar_In_Label, no longer necessary, as it is always True.
13070 (Strip_Suffixes): Likewise.
13071
13072 2004-04-19 Gary Dismukes <dismukes@gnat.com>
13073
13074 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
13075 modulus for compatibility with size clause on targets with 16-bit
13076 Integer.
13077
13078 * layout.adb (Discrimify): In the case of private types, set Vtyp to
13079 full type to fix type mismatches on calls to size functions for
13080 discriminant-dependent array components.
13081
13082 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
13083
13084 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
13085 lib.
13086
13087 2004-04-19 Pascal Obry <obry@gnat.com>
13088
13089 * mdll-utl.adb (Locate): New version is idempotent.
13090
13091 2004-04-17 Laurent Guerby <laurent@guerby.net>
13092
13093 PR ada/14988 (partial)
13094 * impunit.adb: Fix typo.
13095
13096 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
13097
13098 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
13099 and install-rts-cert targets. Remove all gnatlib and gnattools
13100 targets and all other rts-* targets (moved to libada). Remove (now)
13101 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
13102 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
13103
13104 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13105
13106 * trans.c (tree_transform): Shortcut returning error_mark_node for
13107 statements in annotate_only_mode.
13108 (tree_transform, case N_Label, case N_Return_Statement,
13109 N_Goto_Statement): Make statement tree instead of generating code.
13110 (tree_transform, case N_Assignment_Statement): No longer check
13111 type_annotate_only.
13112 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
13113 RETURN_STMT): New.
13114 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
13115 New fcns.
13116 (gnat_to_gnu): Collect any RTL generated and deal with it.
13117 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
13118 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
13119 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
13120
13121 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
13122
13123 * ada-tree.def (EXPR_STMT): Fix typo in name.
13124 (BLOCK_STMT, IF_STMT): New nodes.
13125
13126 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
13127 LABEL_STMT_FIRST_IN_EH): New macros.
13128 (RETURN_STMT_EXPR): Likewise.
13129
13130 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
13131 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
13132
13133 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
13134
13135 * atree.ads: Correct documentation on extended nodes.
13136
13137 * link.c: Set run_path_option for FreeBSD.
13138
13139 2004-04-08 Vincent Celier <celier@gnat.com>
13140
13141 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
13142 one of the ALI file, do not link with DEC lib.
13143
13144 * par.adb Remove the last two characters ("%s" or "%b") when checking
13145 if a language defined unit may be recompiled.
13146
13147 2004-04-08 Ed Schonberg <schonberg@gnat.com>
13148
13149 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
13150 removal of abstract operation leaves no possible interpretation for
13151 expression.
13152
13153 * sem_eval.adb (Eval_Qualified_Expression): Use
13154 Set_Raises_Constraint_Error on node when needed, so that it does not
13155 get optimized away by subsequent optimizations.
13156
13157 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
13158 operands even when they are not wrapped in a type conversion.
13159
13160 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
13161
13162 * sem_prag.adb (Set_Exported): Warn about making static as result of
13163 export only when the export is coming from source. This may be not
13164 be true e.g. on VMS where we expand export pragmas for exception codes
13165 together with imported or exported exceptions, and we don't want the
13166 user to be warned about something he didn't write.
13167
13168 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
13169
13170 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
13171 duplication between normal entities and those declared as renamings.
13172 No functional change.
13173
13174 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
13175 inline functions returning an unconstrained result.
13176
13177 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
13178
13179 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
13180 conform to what other front-ends do.
13181
13182 2004-04-08 Doug Rupp <rupp@gnat.com>
13183
13184 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
13185 libraries.
13186
13187 2004-04-06 Pascal Obry <obry@gnat.com>
13188
13189 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
13190
13191 * osint.adb (Program_Name): Do not look past a directory separator.
13192
13193 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
13194
13195 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
13196
13197 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
13198 requirement for preserving a copy of the original assignment node.
13199
13200 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
13201
13202 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
13203
13204 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
13205 when supported.
13206
13207 2004-04-06 Ed Schonberg <schonberg@gnat.com>
13208
13209 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
13210 operator calls in functional notation, and apply
13211 Universal_Interpretation to operands, not to their type.
13212
13213 2004-04-06 Robert Dewar <dewar@gnat.com>
13214
13215 * 5wdirval.adb: Minor reformatting
13216
13217 2004-04-06 Ed Falis <falis@gnat.com>
13218
13219 * gnat_rm.texi: Improve a reference to the GCC manual
13220
13221 2004-04-05 Vincent Celier <celier@gnat.com>
13222
13223 * adaint.h, adaint.c: Add function __gnat_named_file_length
13224
13225 * impunit.adb: Add Ada.Directories to the list
13226
13227 * Makefile.in: Add VMS and Windows versions of
13228 Ada.Directories.Validity package body.
13229
13230 * Makefile.rtl: Add a-direct and a-dirval
13231
13232 * mlib-tgt.ads: Minor comment update.
13233
13234 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
13235 a-direct.ads, a-direct.adb: New files.
13236
13237 2004-04-05 Vincent Celier <celier@gnat.com>
13238
13239 PR ada/13620
13240 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
13241 just to the compiler.
13242
13243 2004-04-05 Robert Dewar <dewar@gnat.com>
13244
13245 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
13246 returned string is 1.
13247
13248 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
13249
13250 * eval_fat.ads: Minor reformatting
13251
13252 * g-curexc.ads: Document that lower bound of returned string values
13253 is always one.
13254
13255 * gnatlink.adb: Add ??? comment for previous change
13256 (need to document why this is VMS specific)
13257
13258 * s-stoele.ads: Minor reformatting
13259
13260 * tbuild.ads: Minor reformatting throughout (new function specs)
13261
13262 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
13263 after WITH.
13264
13265 * scng.adb: Minor reformatting
13266
13267 2004-04-05 Geert Bosch <bosch@gnat.com>
13268
13269 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
13270 (Leading_Part): Still perform truncation to machine number if the
13271 specified radix_digits is greater or equal to machine_mantissa.
13272
13273 2004-04-05 Javier Miranda <miranda@gnat.com>
13274
13275 * par-ch3.adb: Complete documentation of previous change
13276 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
13277 (aliased must appear before constant).
13278
13279 * par-ch4.adb: Complete documentation of previous change.
13280
13281 * par-ch6.adb: Complete documentation of previous change.
13282
13283 * sinfo.ads: Fix typo in commment.
13284
13285 2004-04-05 Ed Schonberg <schonberg@gnat.com>
13286
13287 * sem_ch3.adb (Inherit_Components): If derived type is private and has
13288 stored discriminants, use its discriminants to constrain parent type,
13289 as is done for non-private derived record types.
13290
13291 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
13292 Ada 2005 AI-310: an abstract non-dispatching operation is not a
13293 candidate interpretation in an overloaded call.
13294
13295 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
13296 expression is Null and target type is not an access type (e.g. a
13297 non-private address type).
13298
13299 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
13300
13301 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
13302 statement whose right-hand side is an inlined call, save a copy of the
13303 original assignment subtree to preserve enough consistency for
13304 Analyze_Assignment to proceed.
13305
13306 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
13307 complete assignment subtree which is now unnecessary, as the expansion
13308 of inlined call has been improved to preserve a consistent assignment
13309 tree. Note_Possible_Modification must be called only
13310 after checks have been applied, or else unnecessary checks will
13311 be generated.
13312
13313 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
13314 of explicit dereferences that do not Come_From_Source:
13315 - be selective on cases where we must go back to the dereferenced
13316 pointer (an assignment to an implicit dereference must not be
13317 recorded as modifying the pointer);
13318 - do not rely on Original_Node being present (Analyze_Assignment
13319 calls Note_Possible_Modification on a copied tree).
13320
13321 * sem_warn.adb (Check_References): When an unset reference to a pointer
13322 that is never assigned is encountered, prefer '<pointer> may be null'
13323 warning over '<pointer> is never assigned a value'.
13324
13325 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
13326
13327 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
13328 the ABI.
13329
13330 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
13331
13332 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
13333 libexc. We currently don't reference anything in this library and
13334 linking it in triggers linker warnings we don't want to see.
13335
13336 * init.c: Update comments.
13337
13338 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13339
13340 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
13341 * utils.c (create_field_decl): Likewise.
13342 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
13343
13344 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
13345
13346 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
13347 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
13348 Add info directory entry and category.
13349
13350 2004-04-02 Jan Hubicka <jh@suse.cz>
13351
13352 * utils.c: Include function.h
13353 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
13354
13355 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
13356
13357 PR ada/14150
13358 * Make-lang.in: Clean up generation of documentation
13359
13360 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
13361
13362 * xgnatug.adb: Removed, replaced by xgnatugn.adb
13363
13364 * xgnatugn.adb: Replaces xgnatug.adb
13365
13366 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
13367
13368 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
13369
13370 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13371 gnat_ug_wnt.texi: Removed.
13372
13373 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
13374
13375 * utils2.c: Update copyright notice.
13376
13377 2004-04-01 Robert Dewar <dewar@gnat.com>
13378
13379 * checks.adb: Minor reformatting throughout
13380 Note that prev checkin added RM reference to alignment warning
13381
13382 2004-04-01 Ed Schonberg <schonberg@gnat.com>
13383
13384 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
13385 non-static when building aggregate for bit-packed array.
13386
13387 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
13388 function call that is itself the actual in a procedure call, build
13389 temporary for it.
13390
13391 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
13392 a string literal, create a temporary for it, constant folding only
13393 handles scalars here.
13394
13395 2004-04-01 Vincent Celier <celier@gnat.com>
13396
13397 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
13398 Error_Msg_SP): New empty procedures to instantiate the Scanner.
13399 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
13400 tokens.
13401 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
13402 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
13403 and get the checksum.
13404
13405 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
13406 already in the Q.
13407 Increase the Marking_Label at the end of the Multiple_Main_Loop,
13408 instead of at the beginning.
13409
13410 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
13411 directly.
13412 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
13413 on VMS.
13414
13415 * osint.ads (Multi_Unit_Index_Character): New Character global variable
13416
13417 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
13418 not '~' directly.
13419
13420 * par.adb: Remove test on file name to detect language defined units.
13421 Add test on unit name, after parsing, to detect language defined units
13422 that are not compiled with -gnatg (except System.RPC and its children)
13423
13424 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
13425 following units without style checking.
13426
13427 * switch-c.adb: Change -gnatC to -gnateI
13428
13429 * usage.adb: Document new switch -gnateInnn
13430
13431 * scng.adb (Accumulate_Token_Checksum): New procedure
13432 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
13433 word or literal number.
13434 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
13435 numbers.
13436
13437 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
13438
13439 * a-tasatt.adb,
13440 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
13441 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
13442 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
13443 5vtpopde.adb: Add missing 'constant' keywords.
13444
13445 2004-04-01 Javier Miranda <miranda@gnat.com>
13446
13447 * par-ch4.adb: (P_Allocator): Code cleanup
13448
13449 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
13450 attribute.
13451
13452 * sinfo.ads: Complete documentation of previous change
13453
13454 2004-04-01 Pascal Obry <obry@gnat.com>
13455
13456 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
13457 only on VMS. This special handling was done because an old GNU/ld bug
13458 on Windows which has been fixed.
13459
13460 2004-04-01 GNAT Script <nobody@gnat.com>
13461
13462 * Make-lang.in: Makefile automatically updated
13463
13464 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13465
13466 * decl.c (gnat_to_gnu_entity, make_type_from_size):
13467 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
13468 * trans.c (tree_transform, convert_with_check): Likewise.
13469 * utils.c (gnat_signed_or_unsigned_type): Likewise.
13470 (build_vms_descriptor, unchecked_convert): Likewise.
13471 * utils2.c (nonbinary_modular_operation): Likewise.
13472
13473 2004-03-29 Javier Miranda <miranda@gnat.com>
13474
13475 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
13476 (Install_Null_Excluding_Check): Local subprogram that determines whether
13477 an access node requires a runtime access check and if so inserts the
13478 appropriate run-time check.
13479 (Apply_Access_Check): Call Install_Null_Excluding check if required
13480 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
13481
13482 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
13483
13484 * einfo.ads: Fix typo in comment
13485
13486 * exp_ch3.adb (Build_Assignment): Generate conversion to the
13487 null-excluding type to force the corresponding run-time check.
13488 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
13489 type to force the corresponding run-time check.
13490
13491 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
13492 the null-excluding type to force the corresponding run-time check.
13493
13494 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
13495 case of access types unless they have the null-excluding attribute.
13496
13497 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
13498 part.
13499
13500 * exp_util.ads: Fix typo in comment
13501
13502 * par.adb (P_Null_Exclusion): New subprogram
13503 (P_Subtype_Indication): New formal that indicates if the null-excluding
13504 part has been scanned-out and it was present
13505
13506 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
13507
13508 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
13509 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
13510 type to force the corresponding run-time check
13511 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
13512 components
13513 (Resolve_Array_Aggregate): Carry out some static checks
13514 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
13515
13516 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
13517 attribute must be set only if specified by means of the null-excluding
13518 part. In addition, we must also propagate the access-constant attribute
13519 if present.
13520 (Access_Subprogram_Declaration, Access_Type_Declaration,
13521 Analyze_Component_Declaration, Analyze_Object_Declaration,
13522 Array_Type_Declaration, Process_Discriminants,
13523 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
13524 and carry out some static checks.
13525 (Build_Derived_Access_Type): Set the null-excluding attribute
13526 (Derived_Type_Declaration, Process_Subtype): Carry out some static
13527 checks.
13528
13529 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
13530
13531 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
13532
13533 * sem_ch6.adb (Process_Formals): Carry out some static checks.
13534 (Set_Actual_Subtypes): Generate null-excluding subtype if the
13535 null-excluding part was present; it is not required to be done here in
13536 case of anonymous access types.
13537 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
13538 value.
13539
13540 * sem_res.adb (Resolve_Actuals): Carry out some static check
13541 (Resolve_Null): Allow null in anonymous access
13542
13543 * sinfo.adb: New subprogram Null_Exclusion_Present
13544 All_Present and Constant_Present available on access_definition nodes
13545
13546 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
13547 object_declaration, derived_type_definition, component_definition,
13548 discriminant_specification, access_to_object_definition,
13549 access_function_definition, allocator, access_procedure_definition,
13550 access_definition, parameter_specification, All_Present and
13551 Constant_Present flags available on access_definition nodes.
13552
13553 2004-03-29 Robert Dewar <dewar@gnat.com>
13554
13555 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
13556 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
13557 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
13558 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
13559 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
13560 sem_prag.adb: Updates to handle multiple units/file
13561
13562 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
13563
13564 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
13565 sem_util.adb: Minor reformatting
13566
13567 * sem_ch12.adb: Add comment for previous change
13568
13569 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
13570
13571 * osint.adb (Executable_Prefix): Set Exec_Name to the current
13572 executable name when not initialized. Otherwise, use its current value.
13573
13574 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
13575 initialize it to another executable name than the current one. This
13576 allows to configure paths for an executable name (gnatmake) different
13577 from the current one (gnatdist).
13578
13579 2004-03-29 Ed Schonberg <schonberg@gnat.com>
13580
13581 * exp_ch6.adb (Expand_Call): A call to a function declared in the
13582 current unit cannot be inlined if it appears in the body of a withed
13583 unit, to avoid order of elaboration problems in gigi.
13584
13585 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
13586 information for protected (wrapper) operation as well, to simplify gdb
13587 use.
13588
13589 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
13590 protected body, indicate that the entity for the generated spec comes
13591 from source, to ensure that references are properly generated for it.
13592 (Build_Body_To_Inline): Do not inline a function that returns a
13593 controlled type.
13594
13595 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
13596 apply convention to homonyms that are declared explicitly.
13597
13598 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
13599 that renames an equality operator and the operands are overloaded,
13600 resolve them with the declared formal types, before rewriting as an
13601 operator.
13602
13603 2004-03-29 GNAT Script <nobody@gnat.com>
13604
13605 * Make-lang.in: Makefile automatically updated
13606
13607 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
13608
13609 * memtrack.adb: Log realloc calls, which are treated as free followed
13610 by alloc.
13611
13612 2004-03-25 Vincent Celier <celier@gnat.com>
13613
13614 * prj-makr.adb (Process_Directories): Detect when a file contains
13615 several units. Do not include such files in the config pragmas or
13616 in the naming scheme.
13617
13618 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
13619 Resolve links only when not in Trusted_Mode.
13620 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
13621 Do not resolve links for the display names.
13622
13623 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
13624 resolve links when computing the display names.
13625
13626 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
13627
13628 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
13629 attribute reference does not denote a subtype, it can be any
13630 expression that has a classwide type, potentially after an implicit
13631 dereference. In particular, the prefix can be a view conversion for
13632 a classwide type (for which Is_Object_Reference holds), but it can
13633 also be a value conversion for an access-to-classwide type. In the
13634 latter case, there is an implicit dereference, and the original node
13635 for the prefix does not verify Is_Object_Reference.
13636
13637 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
13638 conversion of a discriminant-dependent component of a mutable object
13639 is one itself.
13640
13641 2004-03-25 Ed Schonberg <schonberg@gnat.com>
13642
13643 * freeze.adb (Freeze_Entity): When an inherited subprogram is
13644 inherited, has convention C, and has unconstrained array parameters,
13645 place the corresponding warning on the derived type declaration rather
13646 than the original subprogram.
13647
13648 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
13649 indication on renaming declaration, if formal has a box and actual
13650 is absent.
13651
13652 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
13653 determine whether to generate an implicit or explicit reference to
13654 the renamed entity.
13655
13656 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
13657 subprogram renaming comes from a defaulted formal subprogram in an
13658 instance.
13659
13660 2004-03-25 Gary Dismukes <dismukes@gnat.com>
13661
13662 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
13663 value expressions to ensure that calls within a component definition
13664 will be checked (since those are evaluated during the record type's
13665 elaboration).
13666
13667 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
13668
13669 * s-tpobop.adb: Code clean up:
13670 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
13671 code.
13672 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
13673
13674 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
13675
13676 * Makefile.in: Clean up in the ravenscar run time.
13677
13678 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13679
13680 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
13681 of No_Strict_Aliasing to build_pointer_type_for_mode.
13682 * utils.c (update_pointer_to): Walk pointer and ref chains.
13683
13684 2004-03-22 Cyrille Comar <comar@act-europe.fr>
13685
13686 * ali.ads: Fix Comment about Dynamic_Elab.
13687
13688 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
13689 Has_RACW, Is_Generic, etc.)
13690 (Output_Object, Gnatls): Take into account ALI files not attached to
13691 an object.
13692
13693 2004-03-22 Vincent Celier <celier@gnat.com>
13694
13695 * gprep.adb: Change all String_Access to Name_Id
13696 (Is_ASCII_Letter): new function
13697 (Double_File_Name_Buffer): New procedure
13698 (Preprocess_Infile_Name): New procedure
13699 (Process_Files): New procedure
13700 (Gnatprep): Check if output and input are existing directories.
13701 Call Process_Files to do the real job.
13702
13703 2004-03-22 Robert Dewar <dewar@gnat.com>
13704
13705 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
13706 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
13707
13708 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
13709
13710 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
13711 case when the source contains only comments.
13712
13713 2004-03-22 Ed Schonberg <schonberg@gnat.com>
13714
13715 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
13716 declaration for a child subprogram body that acts as a spec, indicate
13717 that the entity in the declaration needs debugging information.
13718
13719 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
13720 full view if the subtype is created for a constrained record component;
13721 gigi has enough information to construct the record, and there is no
13722 place in the tree for the declaration.
13723
13724 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
13725 serial number for the dummy body that is built for analysis, to avoid
13726 inconsistencies in the generation of internal names when compiling
13727 with -gnatN.
13728
13729 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
13730
13731 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
13732 object.
13733
13734 2004-03-22 GNAT Script <nobody@gnat.com>
13735
13736 * Make-lang.in: Makefile automatically updated
13737
13738 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13739
13740 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
13741 * trans.c (tree_transform, emit_index_check): Likewise.
13742 * utils.c (build_template): Likewise.
13743 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
13744 (maybe_unconstrained_array, unchecked_convert): Likewise.
13745 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
13746 (build_unary_op): Likewise.
13747 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
13748 (fill_vms_descriptor): Likewise.
13749 (build_call_alloc_dealloc): Likewise.
13750 ALIGN is unsigned.
13751 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
13752
13753 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
13754
13755 PR other/14630
13756 * gnat_ug.texi: Add info directory category and entry.
13757 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
13758 gnat_ug_wnt.texi: Regenerate.
13759
13760 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
13761
13762 * ada-tree.h: Update copyright notice.
13763 Minor reformatting.
13764
13765 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
13766
13767 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
13768 as regular exception objects and not as mere integers representing the
13769 condition code. The latter approach required some dynamics to mask off
13770 severity bits, which did not fit well into the GCC table based model.
13771 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
13772 exception data objects. We don't it and it would conflict with the other
13773 external symbol we have to generate for such exceptions.
13774
13775 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
13776 the special code for VMS exceptions, since these are now represented
13777 as regular exceptions objects.
13778
13779 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13780
13781 * decl.c (debug_no_type_hash): Remove.
13782 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
13783 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
13784
13785 2004-03-19 Laurent Guerby <laurent@guerby.net>
13786
13787 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
13788 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
13789
13790 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13791
13792 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
13793 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
13794 (TYPE_RM_SIZE_INT): Directly use type.values.
13795 (TREE_LOOP_ID): Clean up check.
13796 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
13797 TYPE_VALUES, not TYPE_FIELDS.
13798 * trans.c (convert_with_check): Delay access of bounds of basetype
13799 until sure is numeric.
13800
13801 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
13802
13803 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
13804
13805 Code clean up:
13806 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
13807 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
13808 Specific.Set instead of direct call to e.g pthread_setspecific.
13809
13810 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
13811
13812 * adaint.c: Update comments.
13813
13814 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
13815 GNATLIB_SHARED for FreeBSD.
13816
13817 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
13818
13819 * init.c [VxWorks]: Do not fix the stack size for the environment task.
13820 When needed (stack checking) the stack size is retrieved
13821 from the VxWorks kernel.
13822
13823 * Makefile.in: Flag -nostdinc is required when building the run time
13824 for avoiding looking for files in the base compiler.
13825 Add the VxWorks specific version of the package body for
13826 System.Stack_checking.Operations (5zstchop.adb).
13827
13828 * Make-lang.in: Add the object file for
13829 System.Stack_Checking.Operations.
13830
13831 * Makefile.rtl: Add object file for the package
13832 System.Stack_Checking.Operations.
13833
13834 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
13835
13836 * s-stache.ads, s-stache.adb: Move the operations related to stack
13837 checking from this package to package System.Stack_Checking.Operations.
13838 This way, stack checking operations are only linked in the final
13839 executable when using the -fstack-check flag.
13840
13841 2004-03-18 Doug Rupp <rupp@gnat.com>
13842
13843 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
13844 Reorganize ifeq's.
13845
13846 * 5qsystem.ads, 5xcrtl.ads: New files.
13847
13848 2004-03-18 Vincent Celier <celier@gnat.com>
13849
13850 * prj.adb (Reset): Reset hash table Files_Htable
13851
13852 * prj-env.adb (Source_Paths, Object_Paths): New tables.
13853 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
13854 the procedures Add_To_Path_File.
13855 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
13856 making sure that each directory is present only once and, for object
13857 dirs, when a directory already present is added, the duplicate is
13858 removed and the directory is always put as the last in the table.
13859 Write the path files at the end of these accumulations.
13860
13861 * prj-nmsc.adb (Record_Source): Add source file name in hash table
13862 Files_Htable for all sources.
13863
13864 * prj-proc.adb (Process): Remove restrictions between not directly
13865 related extending projects.
13866
13867 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
13868
13869 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
13870 (Find_Sources): Minor speed optimization.
13871
13872 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
13873 parameter Trusted_Mode.
13874
13875 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
13876
13877 * scn.adb (Determine_License): Take into account a degenerated case
13878 when the source contains only comments.
13879
13880 2004-03-18 Ed Schonberg <schonberg@gnat.com>
13881
13882 * sem_warn.adb (Check_References): For a warning on a selected
13883 component that does not come from source, locate an uninitialized
13884 component of the record type to produce a more precise error message.
13885
13886 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
13887
13888 * 3zsoccon.ads: Fix multicast options.
13889
13890 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
13891 in the spec.
13892
13893 2004-03-15 Robert Dewar <dewar@gnat.com>
13894
13895 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
13896 pragma used for a private type.
13897
13898 * lib-xref.adb (Generate_Reference): Do not generate warning if
13899 reference is in a different unit from the pragma Unreferenced.
13900
13901 * 5vtpopde.adb: Minor reformatting
13902 Fix casing of To_Task_ID
13903
13904 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
13905 flag if we have an unchecked conversion to an access type in the same
13906 unit.
13907
13908 2004-03-15 Geert Bosch <bosch@gnat.com>
13909
13910 * a-ngcoty.adb (Modulus): In alternate formula for large real or
13911 imaginary parts, use Double precision throughout.
13912
13913 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
13914 we want to be able to compile run-time with -gnata for testing, but
13915 this may also be instantiated in user code that is compiled with -gnata.
13916
13917 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
13918
13919 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
13920 codes. Having a separate type for this is useful to enforce consistency
13921 throughout the various run-time units.
13922 (Exception_Data): Use Exception_Code for Import_Code.
13923
13924 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
13925 Natural and Integer in various places.
13926 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
13927 with the severity bits masked off.
13928 (Register_VMS_Exception): Handle the additional exception data pointer
13929 argument.
13930
13931 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
13932 component, now reflected by an exported accessor.
13933 (is_handled_by): New routine to compute whether the propagated
13934 occurrence matches some handler choice specification. Extracted out of
13935 get_action_description_for, and expanded to take care of the VMS
13936 specifities.
13937 (get_action_description_for): Use is_handled_by instead of an explicit
13938 complex condition to decide if the current choice at hand catches the
13939 propagated occurrence.
13940
13941 * raise.h (Exception_Code): New type for C.
13942
13943 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
13944 System.Standard_Library.Exception_Code, to allow references from the
13945 pragma import/export expander.
13946
13947 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
13948 New accessors to allow easy access to GNAT exception data
13949 characteristics.
13950 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
13951 redundant Handled_By_Others component, helper for the personality
13952 routine which will now be able to call the appropriate exception data
13953 accessor instead.
13954
13955 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
13956 component of Standard_Exception_Type to be the closest possible to
13957 Exception_Code in System.Standard_Library, that we cannot get at this
13958 point. Expand a ??? comment to notify that this type node should
13959 probably be rewritten later on.
13960
13961 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
13962 registration call to include a pointer to the exception object in the
13963 arguments.
13964
13965 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
13966 instead of int and explicit bitmasks.
13967
13968 2004-03-15 Vincent Celier <celier@gnat.com>
13969
13970 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
13971 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
13972
13973 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
13974 longer needed now that it is in the spec of
13975 System.Tasking.Task_Attributes.
13976
13977 * adaint.h, adaint.c: (__gnat_create_output_file): New function
13978
13979 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
13980
13981 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
13982
13983 * make.adb (Gnatmake): Do not check the executable suffix; it is being
13984 taken care of in Scan_Make_Arg.
13985 (Scan_Make_Arg): Add the executable suffix only if the argument
13986 following -o, in canonical case, does not end with the executable
13987 suffix. When in verbose mode and executable file name does not end
13988 with executable suffix, output the executable name, in canonical case.
13989
13990 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
13991 to avoid warnings when instantiating Ada.Task_Attributes.
13992 Minor reformating.
13993
13994 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
13995 in the correct order.
13996
13997 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
13998 redirect standard output and error to a file for the invocation of the
13999 compiler, then read the file.
14000
14001 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
14002 directory, instead of the Value.
14003 (Find_Source_Dirs): Remove useless code & comments.
14004
14005 2004-03-15 Ed Schonberg <schonberg@gnat.com>
14006
14007 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
14008 tagged type is inherited, and the parent operation is not frozen yet,
14009 force generation of a freeze node for the inherited operation, so the
14010 corresponding dispatch entry is properly initialized.
14011 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
14012 when looking for user-defined equality operation.
14013
14014 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
14015 boolean when locating primitive equality of tagged component.
14016
14017 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
14018 bit-aligned field and the right-hand side a string literal, introduce
14019 a temporary before expanding assignment into a loop.
14020
14021 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
14022 priority in full, to ensure that any expanded subepxressions of it are
14023 elaborated in the scope of the init_proc.
14024
14025 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
14026 after object declaration, skipping over code that may have been
14027 generated for validity checks.
14028
14029 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
14030 discriminants, ignore the known discriminants of its full view, if
14031 any, to check legality.
14032
14033 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
14034 component if type has unknown discriminants.
14035 (Analyze_Private_Extension_Declaration): Discriminant constraint is
14036 null if type has unknown discriminants.
14037
14038 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
14039 for end label when present.
14040
14041 * s-fileio.adb (Open): When called with a C_Stream, use given name for
14042 temporary file, rather than an empty string.
14043
14044 2004-03-15 Ed Falis <falis@gnat.com>
14045
14046 * s-thread.adb: Removed, no longer used.
14047
14048 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14049
14050 * decl.c (target.h): Now include.
14051 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
14052 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
14053 (validate_size): For POINTER_TYPE, get smallest size permitted on
14054 machine.
14055
14056 * fe.h: Sort Einfo decls and add Set_Mechanism.
14057
14058 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
14059 (ada/decl.o): Depends on target.h.
14060
14061 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
14062 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
14063
14064 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
14065
14066 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
14067
14068 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
14069 Insert_Dereference_Action when rewriting an implicit dereference into
14070 an explicit one, this will be taken care of during expansion of the
14071 explicit dereference.
14072 (Expand_N_Slice): Same. Always do the rewriting, even for the case
14073 of non-packed slices, since the dereference action generated by
14074 expansion of the explicit dereference is needed in any case.
14075 (Expand_N_Selected_Component): When rewriting an implicit dereference,
14076 analyze and resolve the rewritten explicit dereference so it is seen
14077 by the expander.
14078 (Insert_Dereference_Action): This procedure is now called only for the
14079 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
14080 dereferences that do not come from source (including explicit
14081 dereferences resulting from rewriting implicit ones), but do not
14082 recursively insert a check for the dereference nodes contained within
14083 the check.
14084 (Insert_Dereference_Action): Clarify and correct comment.
14085
14086 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
14087
14088 PR ada/14131
14089 Move language detection to the top level.
14090 * config-lang.in: Build by default.
14091
14092 2004-03-05 Robert Dewar <dewar@gnat.com>
14093
14094 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
14095
14096 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
14097 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
14098 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
14099 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
14100 unchecked conversion to spec to avoid warnings.
14101
14102 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
14103 to Task_ID
14104
14105 * 7stpopsp.adb: Correct casing in To_Task_ID call
14106
14107 * a-strsea.ads, a-strsea.adb: Minor reformatting
14108
14109 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
14110
14111 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
14112 Adjust Max_Msg_Length to be clearly large enough.
14113
14114 * fe.h: Define In_Same_Source_Unit
14115
14116 * osint.adb: Add pragma Warnings Off to suppress warnings
14117 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
14118 aliasing warnings.
14119
14120 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
14121
14122 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
14123
14124 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
14125
14126 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
14127
14128 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
14129
14130 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
14131 node. We now do generate them for gcc back end.
14132
14133 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
14134 warning.
14135
14136 * sinput-c.adb: Fix bad name in header.
14137 Add pragma Warnings Off to suppress aliasing warning.
14138
14139 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
14140
14141 * snames.h, snames.ads, snames.adb: Add entry for pragma
14142 No_Strict_Aliasing.
14143
14144 2004-03-05 Vincent Celier <celier@gnat.com>
14145
14146 * prj-com.ads: Add hash table Files_Htable to check when a file name
14147 is already a source of another project.
14148
14149 * prj-nmsc.adb (Record_Source): Before recording a new source, check
14150 if its file name is not already a source of another project. Report an
14151 error if it is.
14152
14153 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
14154 source file name, call gnatpp with all the sources of the main project.
14155
14156 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
14157 of file names.
14158
14159 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
14160 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
14161 /RUNTIME_SYSTEM=, converted to --RTS=
14162 /NOTABS, converted to -notabs
14163
14164 2004-03-05 Pascal Obry <obry@gnat.com>
14165
14166 * make.adb: Minor reformatting.
14167
14168 2004-03-05 Ed Schonberg <schonberg@gnat.com>
14169
14170 Part of implemention of AI-262.
14171 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
14172
14173 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
14174 procedure.
14175
14176 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
14177 when component type is a partially constrained class-wide subtype.
14178 (Constrain_Discriminated_Type): If parent type has unknown
14179 discriminants, a constraint is illegal, even if full view has
14180 discriminants.
14181 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
14182 with unknown discriminants whose full view is a discriminated record.
14183
14184 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
14185 flag, to handle properly derivations of tagged types with unknown
14186 discriminants.
14187 (Analyze_Package_Spec, Analyze_Package_Body): Install
14188 Private_With_Clauses before analyzing private part or body.
14189
14190 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
14191 Has_Discriminants can be true for a given type (documentation).
14192
14193 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
14194
14195 * s-restri.ads: Fix license (GPL->GMGPL).
14196
14197 * s-tassta.adb: Minor reformatting.
14198
14199 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
14200 by calls to Exit_One_ATC_Level, since additional clean up is performed
14201 by this function.
14202
14203 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
14204 by calls to Exit_One_ATC_Level, since additional clean up is performed
14205 by this function.
14206
14207 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14208
14209 * trans.c: Reflect GCC changes to fix bootstrap problem.
14210 Add warning for suspicious aliasing unchecked conversion.
14211
14212 2004-03-05 GNAT Script <nobody@gnat.com>
14213
14214 * Make-lang.in: Makefile automatically updated
14215
14216 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
14217
14218 * ali.adb (Read_Instantiation_Instance): Do not modify the
14219 current_file_num when reading information about instantiations, since
14220 this corrupts files in later references.
14221
14222 2004-03-02 Vincent Celier <celier@gnat.com>
14223
14224 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
14225 before checking if it is read-only.
14226
14227 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
14228 of SRC_DIRS and eliminate duplicates.
14229
14230 * gprcmd.adb: Replace command "path" with command "path_sep" to return
14231 the path separator.
14232 (Usage): Document path_sep
14233
14234 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
14235 C++ compiler. No need for a script.
14236 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
14237 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
14238 subst.
14239
14240 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
14241 where there are Ada sources.
14242 (Set_Ada_Paths): Only add to the include path the source dirs of project
14243 with Ada sources.
14244 (Add_To_Path): Add the Display_Values of the directories, not their
14245 Values.
14246
14247 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
14248 data.
14249
14250 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
14251 is not No_Name.
14252 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
14253 Value is canonicalized.
14254 (Language_Independent_Check): Do not copy Value to Display_Value when
14255 canonicalizing Value.
14256
14257 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
14258 path to find limited with cycles.
14259 (Parse_Single_Project): Use canonical cased path to find the end of a
14260 with cycle.
14261
14262 2004-03-02 Ed Schonberg <schonberg@gnat.com>
14263
14264 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
14265 and not a child unit.
14266
14267 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
14268 appear in a with_clause.
14269
14270 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
14271 only happen in type_annotate mode, do not try to elaborate it.
14272
14273 * exp_util.adb (Force_Evaluation): If expression is a selected
14274 component on the left of an assignment, use a renaming rather than a
14275 temporary to remove side effects.
14276
14277 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
14278 inlined instance body, which is analyzed before the end of the
14279 enclosing scope.
14280
14281 2004-03-02 Robert Dewar <dewar@gnat.com>
14282
14283 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
14284 sem_ch4.adb: Use new feature for substitution of keywords in VMS
14285
14286 * errout.ads, errout.adb: Implement new circuit for substitution of
14287 keywords in VMS.
14288
14289 * sem_case.adb (Analyze_Choices): Place message properly when case is
14290 a subtype reference rather than an explicit range.
14291
14292 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
14293
14294 2004-03-02 Doug Rupp <rupp@gnat.com>
14295
14296 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
14297
14298 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
14299
14300 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
14301
14302 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14303
14304 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
14305 BLKmode bitfield.
14306
14307 2004-02-25 Robert Dewar <dewar@gnat.com>
14308
14309 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
14310 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
14311 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
14312 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
14313 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
14314 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
14315 the defining instance of the type to avoid aliasing problems.
14316 Fix copyright header. Fix bad comments in package header.
14317
14318 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
14319
14320 2004-02-25 Ed Schonberg <schonberg@gnat.com>
14321
14322 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
14323 rewritten as references when aliased through an address clause.
14324
14325 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
14326 whether call can be interpreted as an indirect call to the result of a
14327 parameterless function call returning an access subprogram.
14328
14329 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
14330
14331 Code clean up:
14332 * exp_ch7.adb (Make_Clean): Remove generation of calls to
14333 Unlock[_Entries], since this is now done by Service_Entries directly.
14334
14335 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
14336
14337 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
14338 Requeue_Call for better code readability. Change spec and update calls:
14339 PO_Service_Entries now unlock the PO on exit.
14340 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
14341 PO_Service_Entries.
14342
14343 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
14344
14345 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
14346
14347 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
14348
14349 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
14350 protected subprogram call and analyzing the result of such expanding
14351 in case when the called protected subprogram is eliminated.
14352
14353 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
14354 names.
14355
14356 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
14357
14358 * Makefile.in: Clean ups.
14359
14360 2004-02-23 Ed Schonberg <schonberg@gnat.com>
14361
14362 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
14363 protected operations if original subprogram is flagged as eliminated.
14364 (Expand_N_Subprogram_Body): For a protected operation, create
14365 discriminals for next operation before checking whether the operation
14366 is eliminated.
14367
14368 * exp_ch9.adb (Expand_N_Protected_Body,
14369 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
14370 for internal protected operations if the original subprogram is
14371 eliminated.
14372
14373 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
14374 declared in a single protected object.
14375
14376 2004-02-23 Vincent Celier <celier@gnat.com>
14377
14378 * prj-attr.adb: Make attribute Builder'Executable an associative array,
14379 case insensitive if file names are case insensitive, instead of a
14380 standard associative array.
14381
14382 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
14383 them as case insensitive on platforms where the file names are case
14384 sensitive.
14385
14386 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
14387 project file has already been parsed that canonical path are compared.
14388
14389 2004-02-23 Robert Dewar <dewar@gnat.com>
14390
14391 * sinput-c.ads: Correct bad unit title in header
14392
14393 * freeze.adb: Minor reformatting
14394
14395 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14396
14397 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
14398 nonaddressable COMPONENT_REF that is removing padding that we are
14399 taking the address of, take the address of the padded record instead
14400 if item is variable size.
14401
14402 2004-02-20 Robert Dewar <dewar@gnat.com>
14403
14404 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
14405
14406 2004-02-20 Ed Schonberg <schonberg@gnat.com>
14407
14408 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
14409 itype references for the constrained designated type of a component
14410 whose base type is already frozen.
14411
14412 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
14413
14414 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
14415 avoid GCC warnings.
14416
14417 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
14418
14419 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
14420 identifier for a phantom package that rewrites the formal package
14421 declaration with a box. The Add semantic decorations for the defining
14422 identifier from the original node (that represents the formal package).
14423
14424 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
14425
14426 * Make-lang.in (ada/stamp-sdefault): Use the top level
14427 move-if-change.
14428
14429 2004-02-19 Richard Henderson <rth@redhat.com>
14430
14431 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
14432
14433 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
14434
14435 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
14436 Scan_ALI can be used for multiple ALI files without reinitializing
14437 between calls.
14438
14439 2004-02-18 Robert Dewar <dewar@gnat.com>
14440
14441 * debug.adb: Minor reformatting.
14442
14443 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14444
14445 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
14446 to zero if there is an address clause.
14447
14448 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
14449
14450 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
14451
14452 2004-02-18 Gary Dismukes <dismukes@gnat.com>
14453
14454 * layout.adb (Layout_Component_List): Revise generation of call to
14455 discriminant-checking function to pass selections of all of the type's
14456 discriminants rather than just the variant-controlling discriminant.
14457
14458 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
14459
14460 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
14461 fail in the current setup and triggers spurious system error messages.
14462 Pretend it occurred and failed instead.
14463
14464 2004-02-18 Vincent Celier <celier@gnat.com>
14465
14466 * bld.adb: Mark FLDFLAGS as saved
14467 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
14468 it is not the root project. Put each directory to be
14469 extended between double quotes to prevent it to be expanded on Windows.
14470 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
14471 the project file. Set them back to their initial values if they have not
14472 been set in the project file.
14473
14474 * gprcmd.adb: (Gprdebug, Debug): New global variables
14475 (Display_Command): New procedure
14476 (Usage): Document new command "linkopts"
14477 Call Display_Command when env var GPRDEBUG has the value "TRUE"
14478 Implement new command "linkopts"
14479 Remove quotes that may be around arguments for "extend"
14480 Always call Normalize_Pathname with arguments formatted for the platform
14481
14482 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
14483 Change @echo to @$(display) in target clean to be able to clean silently
14484
14485 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
14486
14487 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
14488 canonical case.
14489
14490 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
14491 = Extending_All when current project is an extending all project.
14492
14493 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
14494 set to True only for LINK command, after Unix switch -o.
14495 (Process_Arguments): Set Output_File_Expected to True for LINK command
14496 after Unix switch -o. When Output_File_Expected is True, never add an
14497 extension to a file name.
14498
14499 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
14500 option file name, only to the --for-linker= switch.
14501 (Option_File_Name): If option file name do not end with ".opt", append
14502 "/OPTIONS".
14503
14504 2004-02-18 GNAT Script <nobody@gnat.com>
14505
14506 * Make-lang.in: Makefile automatically updated
14507
14508 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
14509
14510 * Make-lang.in (stamp-sdefault): Do not depend on
14511 move-if-change.
14512
14513 2004-02-12 Zack Weinberg <zack@codesourcery.com>
14514
14515 * config-lang.in: Disable Ada by default until probe logic for
14516 a bootstrap Ada compiler can be moved to the top level configure
14517 script.
14518
14519 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
14520
14521 * decl.c (components_to_record): Don't claim that the internal fields
14522 we make to hold the variant parts are semantically addressable, because
14523 they are not.
14524
14525 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
14526 adjust the comment describing the modular type form when we can use it.
14527 (Install_PAT): Account for the Esiz renaming.
14528
14529 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
14530 sc_onstack context indication before raising the exception to which
14531 the signal is mapped. Allows better handling of later signals possibly
14532 triggered by the resumed user code if the exception is handled.
14533
14534 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
14535
14536 * 5zinit.adb: Removed, no longer used.
14537
14538 2004-02-12 Robert Dewar <dewar@gnat.com>
14539
14540 * ali.adb: Remove separating space between parameters on R line. Makes
14541 format consistent with format used by the binder for Set_Globals call.
14542
14543 * atree.ads, atree.adb: Minor reformatting (new function header format)
14544
14545 * bindgen.adb: Add Run-Time Globals documentation section containing
14546 detailed documentation of the globals passed from the binder file to
14547 the run time.
14548
14549 * gnatls.adb: Minor reformatting
14550
14551 * init.c (__gnat_set_globals): Add note pointing to documentation in
14552 bindgen.
14553
14554 * lib-writ.ads, lib-writ.adb: Remove separating space between
14555 parameters on R line.
14556 Makes format consistent with format used by the binder for Set_Globals
14557 call.
14558
14559 * osint.ads: Add 2004 to copyright notice
14560 Minor reformatting
14561
14562 * snames.ads: Correct capitalization of FIFO_Within_Priorities
14563 Noticed during code reading, documentation issue only
14564
14565 * usage.adb: Remove junk line for obsolete C switch
14566 Noticed during code reading
14567
14568 2004-02-12 Vincent Celier <celier@gnat.com>
14569
14570 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
14571 extend for each directory, so that multiple /** directories are
14572 extended individually.
14573 (Recursive_Process): Set the default for LANGUAGES to ada
14574
14575 * gprcmd.adb: Define new command "ignore", to do nothing.
14576 Implement new comment "path".
14577
14578 * Makefile.generic: Suppress output when SILENT is set
14579 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
14580 used, so that the correct compiler is invoked.
14581 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
14582 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
14583
14584 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
14585
14586 * Makefile.in: Clean ups and remove obsolete targets.
14587
14588 2004-02-12 Ed Schonberg <schonberg@gnat.com>
14589
14590 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
14591 predicate declared in exp_util.
14592
14593 * exp_util.adb: Add comments.
14594
14595 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
14596 visibility before compiling context of the subunit.
14597
14598 * sem_res.adb (Check_Parameterless_Call): If the context expects a
14599 value but the name is a procedure, do not attempt to analyze as a call,
14600 in order to obtain more telling diagnostics.
14601
14602 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
14603 'Access on parameterless function calls.
14604 (Normalize_Actuals): For a parameterless function call with missing
14605 actuals, defer diagnostic until resolution of enclosing call.
14606
14607 * sem_util.adb (Wrong_Type): If the context type is an access to
14608 subprogram and the expression is a procedure name, suggest a missing
14609 'attribute.
14610
14611 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
14612 Nathanael Nerode <neroden@gcc.gnu.org>
14613
14614 PR ada/6637, PR ada/5911
14615 Merge with libada-branch:
14616 * config-lang.in: Build libada only when ada is built.
14617
14618 2004-02-09 Ed Schonberg <schonberg@gnat.com>
14619
14620 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
14621 for a tagged type, verify that both formals have the same type.
14622
14623 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
14624 temporary when the formal is an in-parameter and the actual a possibly
14625 unaligned slice.
14626
14627 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
14628 when expansion is disabled, to ensure proper name capture with
14629 overloaded literals. Condition can be of any boolean type, resolve
14630 accordingly.
14631
14632 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
14633 renaming is for a formal subprogram with a default operator name, and
14634 there is a usable operator that is visible at the point of
14635 instantiation.
14636
14637 2004-02-09 Robert Dewar <dewar@gnat.com>
14638
14639 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
14640 rewrite to ignore errors in ali files, intended to allow tools downward
14641 compatibility with new versions of ali files.
14642
14643 * ali.ads: Add new parameter Ignore_Errors
14644
14645 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
14646 duplicating the error message giving the file with restrictions.
14647
14648 * debug.adb: Add debug flag I for gnatbind
14649
14650 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
14651 operators for the case where the operator is a defining operator.
14652
14653 * exp_ch3.adb: Minor reformatting (new function spec format).
14654
14655 * exp_ch4.adb: Add comment for previous change, and make minor
14656 adjustment to loop to always check for improper loop termination.
14657 Minor reformatting throughout (new function spec format).
14658
14659 * gnatbind.adb: Implement -di debug flag for gnatbind
14660
14661 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
14662
14663 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
14664
14665 * lib-load.adb: Fix bad assertion.
14666 Found by testing and code reading.
14667 Minor reformatting.
14668
14669 * lib-load.ads: Minor reformatting.
14670
14671 * lib-writ.adb: There is only one R line now.
14672
14673 * lib-writ.ads: Add documentation on making downward compatible changes
14674 to ali files so old tools work with new ali files.
14675 There is only one R line now.
14676 Add documentation on format incompatibilities (with special GPS note)
14677
14678 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
14679
14680 * par-load.adb: Minor reformatting
14681
14682 * sem_ch8.adb: Fix to error message from last update
14683 Minor reformatting and restructuring of code from last update
14684
14685 * par-prag.adb, snames.adb, snames.ads, snames.h,
14686 sem_prag.adb: Implement pragma Profile.
14687
14688 * stylesw.adb: Implement -gnatyN switch to turn off all style check
14689 options.
14690
14691 * usage.adb: Add line for -gnatyN switch
14692
14693 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
14694
14695 2004-02-09 Albert Lee <lee@gnat.com>
14696
14697 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
14698
14699 2004-02-09 Ed Schonberg <schonberg@gnat.com>
14700
14701 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
14702 slices.
14703
14704 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
14705 is nested in an instance that is not frozen yet, to avoid
14706 order-of-elaboration problems in gigi.
14707
14708 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
14709 body the attribute is legal.
14710
14711 2004-02-09 Robert Dewar <dewar@gnat.com>
14712
14713 * s-rident.ads: Minor comment correction
14714
14715 * targparm.adb: Remove dependence on uintp completely. There was
14716 always a bug in Make in that it called Targparm before initializing
14717 the Uint package. The old code appeared to get away with this, but
14718 the new code did not! This caused an assertion error in gnatmake.
14719
14720 * targparm.ads: Fix bad comment, restriction pragmas with parameters
14721 are indeed fully supported.
14722
14723 2004-02-06 Alan Modra <amodra@bigpond.net.au>
14724
14725 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
14726
14727 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
14728
14729 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
14730 with targetm.calls.promote_prototypes.
14731
14732 2004-02-04 Robert Dewar <dewar@gnat.com>
14733
14734 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
14735 ali.ads, gprcmd.adb: Minor reformatting
14736
14737 * bindgen.adb: Output restrictions string for new style restrictions
14738 handling
14739
14740 * impunit.adb: Add s-rident.ads (System.Rident) and
14741 s-restri (System.Restrictions)
14742
14743 * lib-writ.adb: Fix bug in writing restrictions string (last few
14744 entries wrong)
14745
14746 * s-restri.ads, s-restri.adb: Change name Restrictions to
14747 Run_Time_Restrictions to avoid conflict with package name.
14748 Add circuit to read and acquire run time restrictions.
14749
14750 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
14751
14752 * restrict.ads, restrict.adb: Use the new restriction
14753 No_Task_Attributes_Package instead of the old No_Task_Attributes.
14754
14755 * sem_prag.adb: No_Task_Attributes is a synonym of
14756 No_Task_Attributes_Package.
14757
14758 * snames.ads, snames.adb: New entry for proper handling of
14759 No_Task_Attributes.
14760
14761 * s-rident.ads: Adding restriction No_Task_Attributes_Package
14762 (AI-00249) that supersedes the GNAT specific restriction
14763 No_Task_Attributes.
14764
14765 2004-02-04 Ed Schonberg <schonberg@gnat.com>
14766
14767 * sem_prag.adb:
14768 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
14769 body, an identifier may be wrapped in an unchecked conversion.
14770
14771 2004-02-04 Vincent Celier <celier@gnat.com>
14772
14773 * lib-writ.ads: Comment update for the W lines
14774
14775 * bld.adb: (Expression): An empty string list is static
14776
14777 * fname-uf.adb: Minor comment update
14778
14779 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
14780
14781 * gnatbind.adb: Initialize Cumulative_Restrictions with the
14782 restrictions on the target.
14783
14784 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
14785
14786 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
14787 gen_rtx.
14788
14789 2004-02-02 Arnaud Charlet <charlet@gnat.com>
14790
14791 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
14792
14793 2004-02-02 Vincent Celier <celier@gnat.com>
14794
14795 * gprcmd.adb (Check_Args): If condition is false, print the invoked
14796 comment before the usage.
14797 Gprcmd: Fail when command is not recognized.
14798 (Usage): Document command "prefix"
14799
14800 * g-md5.adb (Digest): Process last block.
14801 (Update): Do not process last block. Store remaining characters and
14802 length in Context.
14803
14804 * g-md5.ads (Update): Document that several call to update are
14805 equivalent to one call with the concatenated string.
14806 (Context): Add fields to allow new Update behaviour.
14807
14808 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
14809 defaulted to False.
14810 When May_Fail is True and no existing file can be found, return No_File.
14811
14812 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
14813 functions.
14814
14815 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
14816 spec file name instead on the W line.
14817
14818 2004-02-02 Robert Dewar <dewar@gnat.com>
14819
14820 * ali.adb: Read and acquire info from new format restrictions lines
14821
14822 * bcheck.adb: Add circuits for checking restrictions with parameters
14823
14824 * bindgen.adb: Output dummy restrictions data
14825 To be changed later
14826
14827 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
14828 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
14829 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
14830 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
14831 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
14832
14833 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
14834 the warning message on access to possibly uninitialized variable S)
14835 Minor changes for new restrictions handling.
14836
14837 * gnatbind.adb: Minor reformatting
14838 Minor changes for new restrictions handling
14839 Move circuit for -r processing here from bcheck (cleaner)
14840
14841 * gnatcmd.adb, gnatlink.adb: Minor reformatting
14842
14843 * lib-writ.adb: Output new format restrictions lines
14844
14845 * lib-writ.ads: Document new R format lines for new restrictions
14846 handling.
14847
14848 * s-restri.ads/adb: New files
14849
14850 * Makefile.rtl: Add entry for s-restri.ads/adb
14851
14852 * par-ch3.adb: Fix bad error messages starting with upper case letter
14853 Minor reformatting
14854
14855 * restrict.adb: Major rewrite throughout for new restrictions handling
14856 Major point is to handle restrictions with parameters
14857
14858 * restrict.ads: Major changes in interface to handle restrictions with
14859 parameters. Also generally simplifies setting of restrictions.
14860
14861 * snames.ads/adb: New entry for proper handling of No_Requeue
14862
14863 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
14864 restriction counting.
14865 Other minor changes for new restrictions handling
14866
14867 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
14868 Restriction_Warnings now allows full parameter notation
14869 Major rewrite of Restrictions for new restrictions handling
14870
14871 2004-02-02 Javier Miranda <miranda@gnat.com>
14872
14873 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
14874 syntax rule for object renaming declarations.
14875 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
14876 component definitions.
14877
14878 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
14879 components.
14880 (Array_Type_Declaration): Give support to access components. In addition
14881 it was also modified to reflect the name of the object in anonymous
14882 array types. The old code did not take into account that it is possible
14883 to have an unconstrained anonymous array with an initial value.
14884 (Check_Or_Process_Discriminants): Allow access discriminant in
14885 non-limited types.
14886 (Process_Discriminants): Allow access discriminant in non-limited types
14887 Initialize the new Access_Definition field in N_Object_Renaming_Decl
14888 node. Change Ada0Y to Ada 0Y in comments
14889
14890 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
14891 equality operators.
14892 Change Ada0Y to Ada 0Y in comments
14893
14894 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
14895 renamings Change Ada0Y to Ada 0Y in comments
14896
14897 * sem_type.adb (Find_Unique_Type): Give support to the equality
14898 operators for universal access types
14899 Change Ada0Y to Ada 0Y in comments
14900
14901 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
14902
14903 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
14904 field.
14905 (N_Object_Renaming_Declaration): Addition of Access_Definition field
14906 Change Ada0Y to Ada 0Y in comments
14907
14908 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
14909 component definition and object renaming nodes
14910 Change Ada0Y to Ada 0Y in comments
14911
14912 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
14913
14914 * restrict.adb: Use the new restriction identifier
14915 No_Requeue_Statements instead of the old No_Requeue for defining the
14916 restricted profile.
14917
14918 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
14919 No_Requeue_Statements.
14920
14921 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
14922 that supersedes the GNAT specific restriction No_Requeue. The later is
14923 kept for backward compatibility.
14924
14925 2004-02-02 Ed Schonberg <schonberg@gnat.com>
14926
14927 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
14928 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
14929 pragma and fix incorrect ones.
14930
14931 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
14932 warning if the pragma is redundant.
14933
14934 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
14935
14936 * 5staprop.adb: Add missing 'constant' keywords.
14937
14938 * Makefile.in: use consistent value for SYMLIB on
14939 platforms where libaddr2line is supported.
14940
14941 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14942
14943 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
14944 annotating types.
14945
14946 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
14947
14948 * init.c (__gnat_install_handler): Setup an alternate stack for signal
14949 handlers in the environment thread. This allows proper propagation of
14950 an exception on stack overflows in this thread even when the builtin
14951 ABI stack-checking scheme is used without support for a stack reserve
14952 region.
14953
14954 * utils.c (create_field_decl): Augment the head comment about bitfield
14955 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
14956 here, because the former is not accurate enough at this point.
14957 Let finish_record_type decide instead.
14958 Don't make a bitfield if the field is to be addressable.
14959 Always set a size for the field if the record is packed, to ensure the
14960 checks for bitfield creation are triggered.
14961 (finish_record_type): During last pass over the fields, clear
14962 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
14963 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
14964 from DECL_BIT_FIELD.
14965
14966 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
14967
14968 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
14969 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
14970 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
14971
14972 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14973
14974 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
14975
14976 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
14977 (ZCX_By_Default): Likewise.
14978 (Front_End_ZCX_Support): Likewise.
14979
14980 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
14981 (Initialize_Lock): Mark Level unreferenced.
14982 (Sleep): Mark Reason unreferenced.
14983 (Timed_Sleep): Likewise.
14984 (Wakeup): Likewise.
14985 (Exit_Task): Use Result.
14986 (Check_No_Locks): Mark Self_ID unreferenced.
14987
14988 * 5gtasinf.adb (New_Sproc): Make Attr constant.
14989 (Bound_Thread_Attributes): Make Sproc constant.
14990 (New_Bound_Thread_Attributes): Likewise.
14991
14992 2004-01-26 Ed Schonberg <schonberg@gnat.com>
14993
14994 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
14995 one-dimensional array an slice assignments, when component type is
14996 controlled.
14997
14998 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
14999 component type is controlled, and control_actions are in effect, use
15000 TSS procedure rather than generating inline code.
15001
15002 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
15003 arrays with controlled components.
15004
15005 2004-01-26 Vincent Celier <celier@gnat.com>
15006
15007 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
15008 command line for the non VMS case.
15009
15010 * gnatlink.adb (Process_Binder_File): When building object file, if
15011 GNU linker is used, put all object paths between quotes, to prevent ld
15012 error when there are unusual characters (such as '!') in the paths.
15013
15014 * Makefile.generic: When there are sources in Ada and the main is in
15015 C/C++, invoke gnatmake with -B, instead of -z.
15016
15017 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
15018 from VMS_Conversion.
15019 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
15020 specification of argument file on the command line.
15021
15022 2004-01-26 Bernard Banner <banner@gnat.com>
15023
15024 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
15025
15026 2004-01-26 Ed Schonberg <schonberg@gnat.com>
15027
15028 * snames.adb: Update copyright notice.
15029 Add info on slice assignment for controlled arrays.
15030
15031 2004-01-23 Robert Dewar <dewar@gnat.com>
15032
15033 * exp_aggr.adb: Minor reformatting
15034
15035 * exp_ch9.adb: Minor code clean up
15036 Minor reformatting
15037 Fix bad character in comment
15038
15039 PR ada/13471
15040 * targparm.adb (Get_Target_Parameters): Give clean abort error on
15041 unexpected end of file, along with more detailed message.
15042
15043 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15044
15045 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
15046 PAT.
15047
15048 * decl.c (copy_alias_set): New function.
15049 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
15050
15051 2004-01-23 Doug Rupp <rupp@gnat.com>
15052
15053 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
15054 lib$${file} in case subsequent character is not a separator.
15055
15056 2004-01-23 Vincent Celier <celier@gnat.com>
15057
15058 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
15059 when the GCC version is at least 3.
15060
15061 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
15062 Remove all "Opt.", to prepare for opt split
15063
15064 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
15065 Extends_All. Set to True when the project parsed is an extending all
15066 project. Fails for importing an extending all project only when the
15067 imported project is an extending all project.
15068 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
15069 depending on the value of Extends_All returned.
15070
15071 * prj-proc.adb (Process): Check that no project shares its object
15072 directory with a project that extends it, directly or indirectly,
15073 including a virtual project.
15074 Check that no project extended by another project shares its object
15075 directory with another also extended project.
15076
15077 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
15078 Kind = N_With_Clause
15079
15080 * prj-tree.ads: Minor reformatting
15081 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
15082
15083 2004-01-23 Ed Schonberg <schonberg@gnat.com>
15084
15085 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
15086 applies to a type with an incomplete view, use full view in Name of
15087 clause, for consistency with uses of Get_Attribute_Definition_Clause.
15088
15089 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
15090
15091 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
15092 SCHED_RR, since other values are not supported by this policy.
15093 (Initialize): Move initialization of mutex attribute to package
15094 elaboration, to prevent early access to this variable.
15095
15096 * Makefile.in: Remove mention of Makefile.adalib, unused.
15097
15098 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
15099 1ssecsta.ads: Removed, unused.
15100
15101 2004-01-21 Javier Miranda <miranda@gnat.com>
15102
15103 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
15104 entity if already built in the current scope.
15105
15106 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
15107 reminder in internal scopes. Required for nested limited aggregates.
15108
15109 2004-01-21 Doug Rupp <rupp@gnat.com>
15110
15111 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
15112 VMS. Replace all occurences of libgnat- and libgnarl- with
15113 libgnat$(hyphen) and libgnarl$(hyphen).
15114 Fixed shared library build problem on VMS.
15115
15116 2004-01-21 Robert Dewar <dewar@gnat.com>
15117
15118 * mlib-prj.adb: Minor reformatting
15119
15120 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
15121
15122 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
15123 'constant' keywords for declaration of pointers that are not modified.
15124
15125 * exp_pakd.adb: Fix English in comment.
15126
15127 2004-01-21 Ed Schonberg <schonberg@gnat.com>
15128
15129 PR ada/10889
15130 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
15131 copy all attributes of the parent, including the foreign language
15132 convention.
15133
15134 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
15135
15136 PR ada/10565
15137 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
15138 for 'delay until' statement.
15139
15140 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
15141
15142 * Make-lang.in: Replace $(docdir) with doc.
15143 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
15144 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
15145 to use consistent MAKEINFO rule.
15146 (ada.man, ada.srcman): Dummy entry.
15147 (ADA_INFOFILES): Define.
15148 (ada.info, ada.srcinfo): New rules.
15149
15150 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
15151
15152 * utils.c: Update copyright notice, missed in previous change.
15153
15154 2004-01-19 Vincent Celier <celier@gnat.com>
15155
15156 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
15157 args if Bind is True. Set First_ALI, if not already done.
15158 (Build_Library): For Stand Alone Libraries, extract from one ALI file
15159 an eventual --RTS switch, for gnatbind, and all backend switches +
15160 --RTS, for linking.
15161
15162 2004-01-19 Robert Dewar <dewar@gnat.com>
15163
15164 * sem_attr.adb, memtrack.adb: Minor reformatting
15165
15166 2004-01-19 Ed Schonberg <schonberg@gnat.com>
15167
15168 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
15169 that rename enumeration literals. This is properly done in sem_eval.
15170
15171 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
15172 to functions that rename enumeration literals.
15173
15174 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
15175 functions that rename enumeration literals.
15176
15177 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
15178
15179 * Make-lang.in (utils.o): Depend on target.h.
15180 * utils.c: Include target.h.
15181 (process_attributes): Use targetm.have_named_sections instead
15182 of ASM_OUTPUT_SECTION_NAME.
15183
15184 2004-01-16 Andreas Jaeger <aj@suse.de>
15185
15186 * Makefile.in: Add $(DESTDIR).
15187
15188 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
15189
15190 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
15191 also when not defining if a Size clause applies. That information is
15192 not to be ignored.
15193
15194 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
15195
15196 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
15197 symbolic links for the shared gnat run time when needed.
15198
15199 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
15200
15201 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
15202 for writing, and terminate with an error message if not.
15203
15204 2004-01-15 Ed Schonberg <schonberg@gnat.com>
15205
15206 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
15207 warning on an access to subprogram in an instance, when the target
15208 type is declared in the same generic unit.
15209 (Eval_Attribute): If 'access is known to fail accessibility check,
15210 rewrite as a raise statement.
15211
15212 2004-01-15 GNAT Script <nobody@gnat.com>
15213
15214 * Make-lang.in: Makefile automatically updated
15215
15216 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
15217
15218 * Make-lang.in (ada.srcextra): Dummy entry.
15219
15220 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
15221
15222 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
15223
15224 2004-01-13 Ed Schonberg <schonberg@gnat.com>
15225
15226 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
15227 components that are initialized with aggregates.
15228
15229 2004-01-13 Vincent Celier <celier@gnat.com>
15230
15231 * gnatlink.adb (Process_Binder_File): To find directory of shared
15232 libgcc, if "gcc-lib" is not a subdirectory, look for the last
15233 subdirectory "lib" in the path of the shared libgnat or libgnarl.
15234
15235 * make.adb (Gnatmake): If GCC version is at least 3, link with
15236 -shared-libgcc, when there is at least one shared library project.
15237
15238 * opt.ads (GCC_Version): New integer constant.
15239
15240 * adaint.c (get_gcc_version): New function.
15241
15242 2004-01-13 Robert Dewar <dewar@gnat.com>
15243
15244 * sem_dist.adb, sem_res.adb, sem_util.adb,
15245 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
15246 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
15247
15248 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
15249
15250 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
15251 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
15252 declarations.
15253
15254 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
15255
15256 * misc.c: Remove trailing spaces.
15257 Update copyright notice missed in previous change.
15258
15259 PR ada/13572
15260 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
15261 prefix/share/make
15262
15263 * Makefile.generic: Update copyright.
15264 Add license notice.
15265
15266 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
15267 of prefix/share/make.
15268
15269 * Makefile.prolog: Update copyright.
15270 Add license notice.
15271
15272 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
15273
15274 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
15275 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
15276 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
15277 instead of String.
15278
15279 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
15280 signature.
15281
15282 2004-01-12 Javier Miranda <miranda@gnat.com>
15283
15284 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
15285 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
15286 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
15287 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
15288 Component_Definition node.
15289
15290 2004-01-12 Ed Falis <falis@gnat.com>
15291
15292 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
15293
15294 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
15295
15296 * link.c: Change default libgnat kind to STATIC for FreeBSD.
15297
15298 2004-01-12 Bernard Banner <banner@gnat.com>
15299
15300 * Makefile.in: map 86numaux to a-numaux for x86_64
15301
15302 2004-01-12 Ed Schonberg <schonberg@gnat.com>
15303
15304 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
15305 generated to rename a generic actual, go to the actual itself, the
15306 subtype is not a user-visible entity.
15307
15308 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
15309 part is a private subtype, reset the visibility of its full view, if
15310 any, to be consistent.
15311
15312 PR ada/13417
15313 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
15314 to use a generic package G as a formal package for another generic
15315 declared within G.
15316
15317 2004-01-12 Robert Dewar <dewar@gnat.com>
15318
15319 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
15320
15321 * usage.adb: Remove mention of obsolete -gnatwb switch
15322 Noticed during code reading
15323
15324 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
15325
15326 * 1ssecsta.adb: Minor changes for -gnatwa warnings
15327
15328 2004-01-12 GNAT Script <nobody@gnat.com>
15329
15330 * Make-lang.in: Makefile automatically updated
15331
15332 2004-01-09 Mark Mitchell <mark@codesourcery.com>
15333
15334 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
15335
15336 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15337
15338 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
15339
15340 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
15341
15342 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
15343 Update comment and copyright date.
15344 * stamp-xgnatug: Delete.
15345
15346 2004-01-05 Robert Dewar <dewar@gnat.com>
15347
15348 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
15349 be modified by the binder generated main program if the -D switch is
15350 used.
15351
15352 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
15353 imported functions (since now we expect this to be done for imported
15354 functions)
15355
15356 * 5vtaprop.adb: Add several ??? for sections requiring more comments
15357 Minor reformatting throughout
15358
15359 * 5zinit.adb: Minor reformatting
15360 Add 2004 to copyright date
15361 Minor changes to avoid -gnatwa warnings
15362 Correct some instances of using OR instead of OR ELSE (noted while
15363 doing reformatting)
15364
15365 * sprint.adb: Minor updates to avoid -gnatwa warnings
15366
15367 * s-secsta.ads, s-secsta.adb:
15368 (SS_Get_Max): New function to obtain high water mark for ss stack
15369 Default_Secondary_Stack is not a constant since it may be modified by
15370 the binder generated main program if the -D switch is used.
15371
15372 * switch-b.adb: New -Dnnn switch for binder
15373
15374 * switch-c.adb:
15375 Make -gnatg imply all warnings currently in -gnatwa
15376
15377 * vms_conv.adb: Minor reformatting
15378 Add 2004 to copyright notice
15379 Add 2004 to printed copyright notice
15380
15381 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
15382 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
15383 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
15384 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
15385 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
15386 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
15387 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
15388 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
15389 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
15390 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
15391 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
15392 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
15393 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
15394 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
15395 checks.adb, clean.adb, cstand.adb, einfo.ads,
15396 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
15397 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
15398 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
15399 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
15400 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
15401 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
15402 Minor reformatting and code clean ups.
15403 Minor changes to prevent -gnatwa warnings
15404
15405 * ali.adb: Minor reformatting and cleanup of code
15406 Acquire new SS indication of secondary stack use from ali files
15407
15408 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
15409 (since now we expect this to be done for imported functions)
15410
15411 * bindgen.adb: Generate call to modify default secondary stack size if
15412 -Dnnn switch given
15413
15414 * bindusg.adb: Add line for new -D switch
15415
15416 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
15417 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
15418 Add circuitry for both records and arrays to avoid gigi
15419 processing if the type involved has non-bit-aligned components
15420
15421 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
15422 N_String_Literal node always references an E_String_Literal_Subtype
15423 entity. This may not be true in the future.
15424 (Possible_Bit_Aligned_Component): Move processing of
15425 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
15426
15427 * exp_ch6.adb (Expand_Thread_Body): Pick up
15428 Default_Secondary_Stack_Size as variable so that we get value modified
15429 by possible -Dnnn binder parameter.
15430
15431 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
15432 (Type_May_Have_Bit_Aligned_Components): New function.
15433
15434 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
15435 (Type_May_Have_Bit_Aligned_Components): New function.
15436
15437 * fe.h: (Set_Identifier_Casing): Fix prototype.
15438 Add declaration for Sem_Elim.Eliminate_Error_Msg.
15439 Minor reformatting.
15440
15441 * freeze.adb (Freeze_Entity): Add RM reference to error message about
15442 importing constant atomic/volatile objects.
15443 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
15444 unless explicit Pure_Function pragma given, to avoid insidious bug of
15445 call to non-pure imported function getting eliminated.
15446
15447 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
15448 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
15449 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
15450 Add 2004 to printed copyright notice
15451
15452 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
15453 stack used.
15454
15455 * Makefile.rtl: Add entry for g-sestin.o
15456 g-sestin.ads: New file.
15457
15458 * mdll.adb: Minor changes to avoid -gnatwa warnings
15459
15460 * mlib-tgt.adb: Minor reformatting
15461
15462 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
15463 New switch Sec_Stack_Used (GNAT, GNATBIND)
15464 Make Default_Secondary_Stack_Size a variable instead of a constant,
15465 so that it can be modified by the new -Dnnn bind switch.
15466
15467 * rtsfind.adb (Load_Fail): Give full error message in configurable
15468 run-time mode if all_errors mode is set. This was not done in the case
15469 of a file not found, which was an oversight.
15470 Note if secondary stack unit is used by compiler.
15471
15472 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
15473 ineffective elaborate all pragmas on non-visible packages (this
15474 happened when a renamed subprogram was called). Now the elaborate all
15475 always goes on the package containing the renaming rather than the one
15476 containing the renamed subprogram.
15477
15478 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
15479 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
15480
15481 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
15482 has an Etype that references an E_String_Literal.
15483 (Eval_String_Literal): Avoid assumption that N_String_Literal node
15484 always references an E_String_Literal_Subtype entity. This may not
15485 be true in the future.
15486
15487 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
15488 pragma location.
15489
15490 * sem_res.adb (Resolve): Specialize msg for function name used in proc
15491 call.
15492
15493 2004-01-05 Ed Falis <falis@gnat.com>
15494
15495 * g-debuti.adb: Replaced direct boolean operator with short-circuit
15496 form.
15497
15498 2004-01-05 Vincent Celier <celier@gnat.com>
15499
15500 * bld.adb: Minor comment updates
15501 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
15502 of Item_Name).
15503
15504 * make.adb (Gnatmake): Special process for files to compile/check when
15505 -B is specified. Fail when there are only foreign mains in attribute
15506 Main of the project file and -B is not specified. Do not skip bind/link
15507 steps when -B is specified.
15508
15509 * makeusg.adb: Document new switch -B
15510
15511 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
15512
15513 * switch-m.adb: (Scan_Make_Switches): Process -B switch
15514
15515 * vms_data.ads: Add new GNAT PRETTY qualifier
15516 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
15517
15518 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
15519
15520 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
15521 case.
15522
15523 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
15524 Set_Identifier_Casing.
15525
15526 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
15527 has size that overflows.
15528
15529 2004-01-05 Gary Dismukes <dismukes@gnat.com>
15530
15531 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
15532 -gnatwa warning on static condition.
15533
15534 2004-01-05 Doug Rupp <rupp@gnat.com>
15535
15536 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
15537
15538 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
15539
15540 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
15541 all attributes, including read-only attribute.
15542
15543 2004-01-05 Pascal Obry <obry@gnat.com>
15544
15545 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
15546 library naming scheme.
15547
15548 * mlib-prj.adb (Build_Library): Generate different names for the static
15549 or dynamic version of the GNAT runtime. This is needed to support the
15550 new shared library naming scheme.
15551 (Process_Binder_File): Add detection of shared library in binder file
15552 based on the new naming scheme.
15553
15554 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
15555 scheme for the shared runtime libraries.
15556
15557 * Makefile.in:
15558 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
15559 scheme.
15560 (install-gnatlib): Do not create symlinks for shared libraries.
15561 (gnatlib-shared-default): Idem.
15562 (gnatlib-shared-dual-win32): New target. Not used for now as the
15563 auto-import feature does not support arrays/records.
15564 (gnatlib-shared-win32): Do not create copy for the shared libraries.
15565 (gnatlib-shared-vms): Fix shared runtime libraries names.
15566
15567 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
15568 dependent runtime shared library name.
15569
15570 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
15571
15572 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
15573 than the object.
15574
15575 2004-01-05 Ed Schonberg <schonberg@gnat.com>
15576
15577 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
15578 protected objects when allocator has a subtype indication, not a
15579 qualified expression. Note that qualified expressions may have to be
15580 checked when limited aggregates are implemented.
15581
15582 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
15583 pure, emit warning.
15584 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
15585 subprogram is imported, remove warning.
15586
15587 2004-01-05 Geert Bosch <bosch@gnat.com>
15588
15589 * s-poosiz.adb: Update copyright notice.
15590 (Allocate): Use Task_Lock to protect against concurrent access.
15591 (Deallocate): Likewise.
15592
15593 2004-01-05 Joel Brobecker <brobecker@gnat.com>
15594
15595 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
15596 comment.
15597
15598 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
15599
15600 * gnat_ug.texi: Force a CVS commit by updating copyright.
15601 * gnat_ug_vxw.texi: Regenerate.
15602 * gnat_ug_wnt.texi: Regenerate.
15603 * gnat_ug_vms.texi: Regenerate.
15604 * gnat_ug_unx.texi: Regenerate.
15605
15606 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
15607
15608 * trans.c: Remove uses of "register" specifier in
15609 declarations of local variables.
15610
15611 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
15612
15613 * stamp-xgnatug: New stamp file.
15614 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
15615 (ada/doctools/xgnatug): Add $(build_exeext).
15616 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
15617 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
15618
15619 2003-12-17 Ed Falis <falis@gnat.com>
15620
15621 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
15622 eliminate warning.
15623
15624 * a-exextr.adb: Add context clause for
15625 Ada.Exceptions.Last_Chance_Handler.
15626
15627 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
15628
15629 * cstand.adb (Create_Standard): Change the way how the declaration of
15630 the Duration type is created (making it the same way as it is for all
15631 the other standard types).
15632
15633 2003-12-17 Robert Dewar <dewar@gnat.com>
15634
15635 * s-crtl.ads: Fix header format
15636 Change Pure to Preelaborate
15637
15638 2003-12-17 Ed Schonberg <schonberg@gnat.com>
15639
15640 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
15641 the expression type only if it is declared in the current unit.
15642
15643 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
15644 are universal and already analyzed, as can occur in constrained
15645 subcomponents that depend on discriminants, when one constraint is a
15646 subtype mark.
15647
15648 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
15649 type Any_Fixed is legal as the argument of a conversion, if only one
15650 fixed-point type is in context.
15651
15652 2003-12-17 GNAT Script <nobody@gnat.com>
15653
15654 * Make-lang.in: Makefile automatically updated
15655
15656 2003-12-15 Robert Dewar <dewar@gnat.com>
15657
15658 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
15659 sec stack size.
15660
15661 2003-12-15 Vincent Celier <celier@gnat.com>
15662
15663 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
15664 (Gnatchop): Do not set failure status when reporting the number of
15665 warnings.
15666
15667 2003-12-15 Doug Rupp <rupp@gnat.com>
15668
15669 * s-ctrl.ads: New file.
15670
15671 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
15672
15673 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
15674 (GNATBIND_OBJS): Add ada/s-crtl.o.
15675
15676 * Makefile.in [VMS]: Clean up ifeq rules.
15677
15678 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
15679 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
15680 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
15681 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
15682 s-tasdeb.adb: Update copyright.
15683 Import System.CRTL.
15684 Make minor modifications to use System.CRTL declared functions instead
15685 of importing locally.
15686
15687 2003-12-15 GNAT Script <nobody@gnat.com>
15688
15689 * Make-lang.in: Makefile automatically updated
15690
15691 2003-12-11 Ed Falis <falis@gnat.com>
15692
15693 * 5zinit.adb: Clean up.
15694
15695 * 5zintman.adb (Notify_Exception): replaced case statement with a call
15696 to __gnat_map_signal, imported from init.c to support
15697 signal -> exception mappings that depend on the vxWorks version.
15698
15699 * init.c:
15700 Created and exported __gnat_map_signal to support signal -> exception
15701 mapping that is dependent on the VxWorks version.
15702 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
15703
15704 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
15705
15706 * 5wosinte.ads: Link with -mthreads switch.
15707
15708 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
15709
15710 * init.c (__gnat_install_handler [NetBSD]): Set
15711 __gnat_handler_installed, as done on all other platforms.
15712 Remove duplicated code.
15713
15714 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
15715
15716 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
15717
15718 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
15719
15720 * sinfo.ads: Fix inconsistent example code in comment.
15721
15722 2003-12-11 Robert Dewar <dewar@gnat.com>
15723
15724 * a-tiinau.adb: Add a couple of comments
15725
15726 * sem_ch3.adb: Minor reformatting
15727
15728 * sem_prag.adb:
15729 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
15730 Minor reformatting throughout
15731
15732 2003-12-11 Ed Schonberg <schonberg@gnat.com>
15733
15734 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
15735 bounds of a loop, create a separate block in order to generate proper
15736 cleanup actions to prevent memory leaks.
15737
15738 * sem_res.adb (Resolve_Call): After a call to
15739 Establish_Transient_Scope, the call may be rewritten and relocated, in
15740 which case no further processing is needed.
15741
15742 * sem_util.adb: (Wrong_Type): Refine previous fix.
15743 Fixes ACATS regressions.
15744
15745 PR ada/13353
15746
15747 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
15748 be inlined.
15749
15750 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
15751
15752 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
15753 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
15754 obsolete files.
15755
15756 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
15757 (rts-zfp): Ditto.
15758
15759 2003-12-08 Robert Dewar <dewar@gnat.com>
15760
15761 * 7sintman.adb: Minor reformatting
15762
15763 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
15764 standard linker options to get standard libraries linked. We now plan
15765 to provide dummy versions of these libraries to match the appropriate
15766 configurable run-time (e.g. if a library is not needed at all, provide
15767 a dummy empty library).
15768
15769 * targparm.ads: Configurable_Run_Time mode no longer affects linker
15770 options (-L parameters and standard libraries). What we plan to do is
15771 to provide dummy libraries where the libraries are not required.
15772
15773 * gnatbind.adb: Minor comment improvement
15774
15775 2003-12-08 Javier Miranda <miranda@gnat.com>
15776
15777 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
15778 aggregate in the parent. Otherwise constants with limited aggregates
15779 are not supported. Add new formal to pass the component type (Ctype).
15780 It is required to call the corresponding IP subprogram in case of
15781 default initialized components.
15782 (Gen_Assign): In case of default-initialized component, generate a
15783 call to the IP subprogram associated with the component.
15784 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
15785 of aggregate with default initialized components.
15786 (Has_Default_Init_Comps): Improve implementation to recursively check
15787 all the present expressions.
15788
15789 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
15790 to indicate that the initialization call corresponds to a
15791 default-initialized component of an aggregate.
15792 In case of default initialized aggregate with tasks this parameter is
15793 used to generate a null string (this is just a workaround that must be
15794 improved later). In case of discriminants, this parameter is used to
15795 generate a selected component node that gives access to the discriminant
15796 value.
15797
15798 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
15799 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
15800 allocated aggregates with default-initialized components.
15801
15802 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
15803 the box notation is used in positional aggregates.
15804
15805 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
15806
15807 * lib.ads: Fix typo in comment
15808
15809 2003-12-08 Vincent Celier <celier@gnat.com>
15810
15811 * prj.adb (Project_Empty): New component Unkept_Comments
15812 (Scan): Remove procedure; moved to Prj.Err.
15813
15814 * prj.ads (Project_Data): New Boolean component Unkept_Comments
15815 (Scan): Remove procedure; moved to Prj.Err.
15816
15817 * prj-dect.adb: Manage comments for the different declarations.
15818
15819 * prj-part.adb (With_Record): New component Node
15820 (Parse): New Boolean parameter Store_Comments, defaulted to False.
15821 Set the scanner to return ends of line and comments as tokens, if
15822 Store_Comments is True.
15823 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
15824 comments are associated with these nodes. Store the node IDs in the
15825 With_Records.
15826 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
15827 With_Records.
15828 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
15829 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
15830 current project. Call Tree.Restore afterwards. Set the various nodes
15831 for comment storage (Next_End, End_Of_Line, Previous_Line,
15832 Previous_End).
15833
15834 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
15835 defaulted to False.
15836
15837 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
15838 to False. When Truncated is True, truncate the string, never go to the
15839 next line.
15840 (Write_End_Of_Line_Comment): New procedure
15841 (Print): Process comments for nodes N_With_Clause,
15842 N_Package_Declaration, N_String_Type_Declaration,
15843 N_Attribute_Declaration, N_Typed_Variable_Declaration,
15844 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
15845 Process nodes N_Comment.
15846
15847 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
15848 without comments and there are some comments, set the flag
15849 Unkept_Comments to True.
15850 (Scan): If there are comments, set the flag Unkept_Comments to True and
15851 clear the comments.
15852 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
15853 (Next_End_Nodes: New table
15854 (Comment_Zones_Of): New function
15855 (Scan): New procedure; moved from Prj. Accumulate comments in the
15856 Comments table and set end of line comments, comments after, after end
15857 and before end.
15858 (Add_Comments): New procedure
15859 (Save, Restore, Seset_State): New procedures
15860 (There_Are_Unkept_Comments): New function
15861 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
15862 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
15863 procedures.
15864 (First_Comment_After, First_Comment_After_End): New functions
15865 (First_Comment_Before, First_Comment_Before_End): New functions
15866 (Next_Comment): New function
15867 (End_Of_Line_Comment, Follows_Empty_Line,
15868 Is_Followed_By_Empty_Line): New functions
15869 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
15870 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
15871 (Set_Next_Comment): New procedure
15872 (Default_Project_Node): Associate comment before if the node can store
15873 comments.
15874
15875 * scans.ads (Token_Type): New enumeration value Tok_Comment
15876 (Comment_Id): New global variable
15877
15878 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
15879 defaulted to False.
15880 (Scan): Store position of start of comment. If comments are tokens, set
15881 Comment_Id and set Token to Tok_Comment when scanning a comment.
15882 (Set_Comment_As_Token): New procedure
15883
15884 * sinput-p.adb: Update Copyright notice
15885 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
15886 that no longer exists.
15887
15888 2003-12-08 Javier Miranda <miranda@gnat.com>
15889
15890 * sem_aggr.adb: Add dependence on Exp_Tss package
15891 Correct typo in comment
15892 (Resolve_Aggregate): In case of array aggregates set the estimated
15893 type of the aggregate before calling resolve. This is needed to know
15894 the name of the corresponding IP in case of limited array aggregates.
15895 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
15896 in case of default initialized array components.
15897
15898 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
15899 types. Required to give support to limited aggregates in generic
15900 formals.
15901
15902 2003-12-08 Ed Schonberg <schonberg@gnat.com>
15903
15904 * sem_ch3.adb (Check_Initialization): For legality purposes, an
15905 inlined body functions like an instantiation.
15906 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
15907 until bounds are analyzed, to diagnose premature use of type.
15908
15909 * sem_util.adb (Wrong_Type): Improve error message when the type of
15910 the expression is used prematurely.
15911
15912 2003-12-08 GNAT Script <nobody@gnat.com>
15913
15914 * Make-lang.in: Makefile automatically updated
15915
15916 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
15917
15918 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
15919 they are automatically generated by Make-lang.in and cause nothing but
15920 maintenance troubles.
15921
15922 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
15923
15924 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
15925 version of this unit).
15926
15927 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
15928
15929 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
15930 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
15931 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
15932 the body of System.Interrupt_Management common to several targets.
15933 Update copyright notice when appropriate.
15934
15935 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
15936 constant.
15937
15938 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
15939 to ensure that the kernel fills in the interrupted context structure
15940 before calling a signal handler, which is necessary to be able to
15941 unwind past it. Update the copyright notice.
15942
15943 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
15944
15945 * a-elchha.ads: New file.
15946
15947 * a-elchha.adb: New default last chance handler. Contents taken from
15948 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
15949
15950 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
15951 is moved to a-elchha.adb to provide a target-independent default last
15952 chance handler.
15953
15954 * Makefile.rtl: Add a-elchha.o
15955
15956 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
15957
15958 2003-12-05 Ed Schonberg <schonberg@gnat.com>
15959
15960 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
15961 declared in an instance, do not inline the call if the instance is not
15962 frozen yet, to prevent order of elaboration problems.
15963
15964 * sem_prag.adb: Add comments for previous fix.
15965
15966 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
15967
15968 * g-table.adb: Use the right variable in Set_Item.
15969 Update copyright notice.
15970
15971 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
15972
15973 * Makefile.in: Remove unused rules.
15974
15975 2003-12-05 Vincent Celier <celier@gnat.com>
15976
15977 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
15978 -nostdlib. Not needed here after all.
15979
15980 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
15981
15982 PR ada/11724
15983
15984 * adaint.h, adaint.c, g-os_lib.ads:
15985 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
15986 on some platforms (including FreeBSD), it is a 64 bit value.
15987 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
15988
15989 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
15990
15991 * gnatvsn.ads (Library_Version): Now contain only the relevant
15992 version info.
15993 (Verbose_Library_Version): New constant.
15994
15995 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
15996 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
15997 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
15998
15999 * gnatlbr.adb: Clean up: replace Library_Version by
16000 Verbose_Library_Version.
16001
16002 * make.adb, lib-writ.adb, exp_attr.adb:
16003 Clean up: replace Library_Version by Verbose_Library_Version.
16004
16005 * 5lintman.adb: Removed.
16006
16007 * Makefile.in:
16008 Update and simplify computation of LIBRARY_VERSION.
16009 Fix computation of GSMATCH_VERSION.
16010 5lintman.adb is no longer used: replaced by 7sintman.adb.
16011
16012 2003-12-03 Robert Dewar <dewar@gnat.com>
16013
16014 * exp_ch5.adb:
16015 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
16016 name. Modified to consider small non-bit-packed arrays as troublesome
16017 and in need of component-by-component assigment expansion.
16018
16019 2003-12-03 Vincent Celier <celier@gnat.com>
16020
16021 * lang-specs.h: Process nostdlib as nostdinc
16022
16023 * back_end.adb: Update Copyright notice
16024 (Scan_Compiler_Arguments): Process -nostdlib directly.
16025
16026 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
16027
16028 * Makefile.in:
16029 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
16030 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
16031 included in HIE_NONE_TARGET_PAIRS.
16032
16033 2003-12-03 Ed Schonberg <schonberg@gnat.com>
16034
16035 * sem_attr.adb:
16036 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
16037 is legal in an instance, because legality is cheched in the template.
16038
16039 * sem_prag.adb:
16040 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
16041 appplied to an unchecked conversion of a formal parameter.
16042
16043 * sem_warn.adb:
16044 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
16045 variables.
16046
16047 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
16048
16049 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
16050 routines. The second one is new functionality to deal with backtracing
16051 through signal handlers.
16052 (unwind): Split into the two separate subroutines above.
16053 Update the documentation, and deal properly with sizeof (REG) different
16054 from sizeof (void*).
16055
16056 2003-12-01 Nicolas Setton <setton@act-europe.fr>
16057
16058 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
16059 so that the debugger can reliably access the value of the parameter,
16060 and therefore is able to display the exception name when an exception
16061 breakpoint is reached.
16062
16063 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
16064
16065 * fmap.adb: Fix typo in warning message.
16066
16067 * g-socket.ads, g-socket.adb: Make Free a visible instance of
16068 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
16069
16070 2003-12-01 Vincent Celier <celier@gnat.com>
16071
16072 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
16073 ther is no Afile.
16074 (Build_Library): Get the switches only if Default_Switches is declared
16075 in package Binder.
16076
16077 2003-12-01 Ed Schonberg <schonberg@gnat.com>
16078
16079 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
16080 actuals that are indexed components, reanalyze actual to ensure that
16081 packed array references are properly expanded.
16082
16083 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
16084 attempted assignment to a discriminant.
16085
16086 2003-12-01 Robert Dewar <dewar@gnat.com>
16087
16088 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
16089 reformatting.
16090
16091 * switch-c.adb: Minor reformatting of comments
16092
16093 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
16094
16095 * Makefile.in: Clean ups.
16096
16097 2003-12-01 GNAT Script <nobody@gnat.com>
16098
16099 * Make-lang.in: Makefile automatically updated
16100
16101 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
16102
16103 * 5wsystem.ads: Disable zero cost exception, not ready yet.
16104
16105 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
16106
16107 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
16108 to force serialization.
16109
16110 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
16111
16112 * g-socket.ads, g-socket.adb:
16113 Clarify documentation of function Stream. Introduce a Free procedure
16114 to release the returned Stream once it becomes unused.
16115
16116 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
16117
16118 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
16119
16120 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
16121 since NT 4 cannot handle timeout values that are too large,
16122 e.g. DWORD'Last - 1.
16123
16124 2003-11-26 Ed Schonberg <schonberg@gnat.com>
16125
16126 * exp_ch4.adb:
16127 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
16128 in procedure calls and whose expansion must be deferred.
16129
16130 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
16131 is in exp_ch4.
16132
16133 * sem_ch3.adb:
16134 (Build_Derived_Array_Type): Create operator for unconstrained type
16135 if ancestor is unconstrained.
16136
16137 2003-11-26 Vincent Celier <celier@gnat.com>
16138
16139 * make.adb (Project_Object_Directory): New global variable
16140 (Change_To_Object_Directory): New procedure
16141 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
16142 of Change_Dir directly. Do not change working directory to object
16143 directory of main project after each compilation.
16144 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
16145 directly.
16146 Change to object directory of main project before binding step.
16147 (Initialize): Initialize Project_Object_Directory to No_Project
16148
16149 * mlib-prj.adb:
16150 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
16151 binding a Stand-Alone Library.
16152
16153 * output.adb: Update Copyright notice
16154 (Write_Char): Output buffer when full
16155
16156 2003-11-26 Robert Dewar <dewar@gnat.com>
16157
16158 * sem_ch13.adb: (Check_Size): Reset size if size is too small
16159
16160 * sem_ch13.ads:
16161 (Check_Size): Fix documentation to include bit-packed array case
16162
16163 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
16164
16165 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
16166
16167 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
16168
16169 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
16170
16171 PR ada/13142
16172 * utils.c (init_gigi_decls): Change name of built-in setjmp to
16173 __builtin_setjmp, since this is apparently needed by recent
16174 non Ada changes.
16175
16176 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16177
16178 * adadecode.c: Only include ctype.h if not IN_GCC.
16179 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
16180
16181 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
16182
16183 * Makefile.in:
16184 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
16185 signals and interrupts.
16186
16187 * 5zintman.ads: New File.
16188
16189 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
16190 add exception signals to the set of unmasked signals.
16191
16192 * 5ztaprop.adb:
16193 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
16194 between signals and interrupts.
16195 Add to Unblocked_Signal_Mask the set of signals that are in
16196 Keep_Unmasked.
16197
16198 * 7sinmaop.adb:
16199 Adding a check to see whether the Interrupt_ID we want to unmask is in
16200 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
16201 reason is that the index type of the Keep_Unmasked array is not always
16202 Interrupt_ID; it may be a subtype of Interrupt_ID.
16203
16204 2003-11-24 Gary Dismukes <dismukes@gnat.com>
16205
16206 * exp_util.adb:
16207 (Remove_Side_Effects): Condition constantness of object created for a
16208 an unchecked type conversion on the constantness of the expression
16209 to ensure the correct value for 'Constrained when passing components
16210 of view-converted class-wide objects.
16211
16212 2003-11-24 Robert Dewar <dewar@gnat.com>
16213
16214 * par-load.adb (Load): Improve handling of misspelled and missing units
16215 Removes several cases of compilation abandoned messages
16216
16217 * lib.adb: (Remove_Unit): New procedure
16218
16219 * lib.ads: (Remove_Unit): New procedure
16220
16221 * lib-load.adb: Minor reformatting
16222
16223 2003-11-24 Vincent Celier <celier@gnat.com>
16224
16225 * make.adb:
16226 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
16227 (Marking_Label): Label to mark processed source files. Incremented for
16228 each executable.
16229 (Gnatmake): Increase Marking_Labet for each executable
16230 (Is_Marked): Compare against marking label
16231 (Mark): Mark with marking label
16232
16233 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
16234
16235 * s-thread.ads:
16236 Move the declaration of the TSD for System.Threads to System.Soft_Links.
16237 Add some comments.
16238
16239 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
16240 (rts-cert): build a single relocatable object for the run-time lib.
16241 Fix perms.
16242
16243 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
16244
16245 * Make-lang.in:
16246 Use gnatls rather than gcc to obtain the location of GNAT RTL for
16247 crosstools build.
16248
16249 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
16250
16251 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
16252 can not use it as before (that is, as a variable) when dumping it into
16253 the tree file. Add a local variable to store the result of this
16254 function and to be used as the string to be written into the tree.
16255
16256 * scn.adb (Initialize_Scanner): Add comments explaining the recent
16257 changes.
16258
16259 * sinput.adb (Source_First, Source_Last): In case of
16260 Internal_Source_File, replace returning attributes of
16261 Internal_Source_Ptr (which is wrong) with returning attributes of
16262 Internal_Source.
16263
16264 2003-11-24 Ed Schonberg <schonberg@gnat.com>
16265
16266 * sem_ch3.adb:
16267 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
16268 used for implicit concatenation operators.
16269 Code cleanup.
16270
16271 * sem_elab.adb:
16272 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
16273 task bodies that are in the scope of a Suppress pragma.
16274 (Check_A Call): Use the flag to prevent spurious elaboration checks.
16275
16276 * sinfo.ads, sinfo.adb:
16277 New flag No_Elaboration_Check on function/procedure calls, to properly
16278 suppress checks on calls in task bodies that are within a local suppress
16279 pragma.
16280
16281 * exp_ch4.adb:
16282 (Expand_Concatenate_Other): Use the proper integer type for the
16283 expression for the upper bound, to avoid universal_integer computations
16284 when possible.
16285
16286 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
16287
16288 * .cvsignore: Delete.
16289
16290 2003-11-21 Andreas Schwab <schwab@suse.de>
16291
16292 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
16293
16294 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
16295
16296 * 5wsystem.ads: Enable zero cost exception.
16297
16298 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
16299
16300 * 5ztiitho.adb: Remove an unreferenced variable.
16301
16302 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
16303
16304 * adaint.c: For FreeBSD, use mkstemp.
16305
16306 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
16307
16308 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
16309
16310 2003-11-21 Robert Dewar <dewar@gnat.com>
16311
16312 * bld.adb: Remove useless USE of gnatvsn
16313
16314 * gnatchop.adb: Minor reformatting
16315 Clean up version handling to be more consistent
16316
16317 * gnatxref.adb: Minor reformatting
16318
16319 * gprcmd.adb: Minor reformatting
16320 Fix output of copyright to be more consistent with other tools
16321
16322 2003-11-21 Vincent Celier <celier@gnat.com>
16323
16324 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
16325
16326 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
16327
16328 * atree.adb (Initialize): Add initializations for global variables
16329 used in New_Copy_Tree.
16330
16331 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
16332 Internal_Source_File as the actual).
16333 Put the set of statements creating Any_Character before the set of
16334 statements creating Any_Array to have Any_Character fully initialized
16335 when it is used in creating Any_Array.
16336
16337 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
16338 not call Scan in case if the actual is Internal_Source_File
16339 Add 2003 to copyright note.
16340
16341 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
16342 processing Internal_Source_File.
16343
16344 * types.ads: Add the constant Internal_Source_File representing the
16345 source buffer for artificial source-code-like strings created within
16346 the compiler (the definition of Source_File_Index is changed).
16347
16348 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
16349
16350 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
16351 56system.ads: New file, FreeBSD version.
16352
16353 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
16354
16355 * Make-lang.in (ada.extraclean): Delete.
16356
16357 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
16358
16359 * gnatmem.adb: Clean up verbose output.
16360
16361 * gprcmd.adb: Change copyright to FSF.
16362
16363 2003-11-19 Vincent Celier <celier@gnat.com>
16364
16365 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
16366 and Version (ignored).
16367
16368 * symbols.ads: (Policy): New type
16369 (Initialize): New parameter Reference, Symbol_Policy and
16370 Library_Version.
16371 Remove parameter Force.
16372 Minor reformatting.
16373
16374 * snames.ads, snames.adbadb: New standard names
16375 Library_Reference_Symbol_File and Library_Symbol_Policy
16376
16377 * mlib-prj.adb:
16378 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
16379 project.
16380
16381 * mlib-tgt.adb:
16382 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
16383
16384 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
16385
16386 * prj.adb: (Project_Empty): New component Symbol_Data
16387
16388 * prj.ads: (Policy, Symbol_Record): New types
16389 (Project_Data): New component Symbol_Data
16390
16391 * prj-attr.adb:
16392 New attributes Library_Symbol_File, Library_Symbol_Policy and
16393 Library_Reference_Symbol_File.
16394
16395 * prj-nmsc.adb:
16396 (Ada_Check): When project is a Stand-Alone library project, process
16397 attribute Library_Symbol_File, Library_Symbol_Policy and
16398 Library_Reference_Symbol_File.
16399
16400 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
16401 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
16402 5sml-tgt.adb (Build_Dynamic_Library): New parameter
16403 Symbol_Data (ignored).
16404
16405 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
16406 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
16407 functions Option_File_Name and Version_String. Set new options of
16408 gnatsym related to symbol file, symbol policy and reference symbol
16409 file.
16410
16411 * 5vsymbol.adb:
16412 Extensive modifications to take into account the reference symbol file,
16413 the symbol policy, the library version and to put in the symbol file the
16414 minor and major IDs.
16415
16416 * bld.adb (Process_Declarative_Items): Put second argument of
16417 gprcmd to_absolute between single quotes, to avoid problems with
16418 Windows.
16419
16420 * bld-io.adb: Update Copyright notice.
16421 (Flush): Remove last character of a line, if it is a back slash, to
16422 avoid make problems.
16423
16424 * gnatsym.adb:
16425 Implement new scheme with reference symbol file and symbol policy.
16426
16427 * g-os_lib.ads: (Is_Directory): Clarify comment
16428
16429 2003-11-19 Robert Dewar <dewar@gnat.com>
16430
16431 * atree.adb: Move New_Copy_Tree global variables to head of package
16432
16433 * errout.adb: Minor reformatting
16434
16435 2003-11-19 Javier Miranda <miranda@gnat.com>
16436
16437 * sem_ch4.adb: (Diagnose_Call): Improve error message.
16438 Add reference to Ada0Y (AI-50217)
16439
16440 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
16441 sem_util.adb: Add reference to AI-50217
16442
16443 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
16444
16445 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
16446
16447 * sem_aggr.adb: Complete documentation of AI-287 changes
16448
16449 * par-ch4.adb: Document previous changes.
16450
16451 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
16452 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
16453 Ada0Y (AI-50217)
16454
16455 * exp_aggr.adb: Add references to AI-287 in previous changes
16456
16457 2003-11-19 Ed Schonberg <schonberg@gnat.com>
16458
16459 * exp_ch6.adb:
16460 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
16461 in the rewriting is the result of an inlined call.
16462
16463 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
16464 parameter is a type conversion, use original node to construct the
16465 post-call assignment, because expression may have been rewritten, e.g.
16466 if it is a packed array.
16467
16468 * sem_attr.adb:
16469 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
16470 body, just as it is in an instance.
16471 Categorization routines
16472
16473 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
16474 Instantiate_Object): Set proper sloc reference for message on missing
16475 actual.
16476
16477 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
16478
16479 * Makefile.in: Add FreeBSD libgnat pairs.
16480
16481 * usage.adb: Fix typo in usage message.
16482
16483 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
16484
16485 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
16486 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
16487 pragma Thread_Body.
16488 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
16489
16490 * s-thread.adb: This file is now a dummy implementation of
16491 System.Thread.
16492
16493 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
16494
16495 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
16496
16497 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
16498
16499 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
16500 instanciation references in the parent type description.
16501
16502 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16503
16504 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
16505
16506 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
16507 TYPE_PRECISION directly from esize.
16508
16509 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
16510
16511 * cstreams.c:
16512 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
16513
16514 * init.c: Initialization routines for FreeBSD
16515
16516 * link.c: Link info for FreeBSD
16517
16518 * sysdep.c: Add the case of FreeBSD
16519
16520 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
16521
16522 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
16523 already called in System.Threads.
16524
16525 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
16526 environment task, as it has been moved to System.Threads.Initialization.
16527
16528 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
16529
16530 * adaint.c (__gnatlib_install_locks): Only reference
16531 __gnat_install_locks on VMS, since other platforms can avoid using
16532 --enable-threads=gnat
16533
16534 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16535
16536 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
16537
16538 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
16539 TYPE_PACKED_ARRAY_TYPE_P.
16540 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
16541
16542 Part of PR ada/12806
16543 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
16544 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
16545
16546 2003-11-17 Vincent Celier <celier@gnat.com>
16547
16548 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
16549 to False.
16550 Do not set exit status to Failure when Warning is True.
16551 (Gnatchop): Make errors "no compilation units found" and
16552 "no source files written" warnings only.
16553
16554 * make.adb (Gnatmake): When using a project file, set
16555 Look_In_Primary_Dir to False.
16556 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
16557 and Local_Configuration_Pragmas in the project where they are declared
16558 not an extending project which might have inherited them.
16559
16560 * osint.adb (Locate_File): If Name is already an absolute path, do not
16561 look for a directory.
16562
16563 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
16564 -gnats (Check_Syntax) is used, issue only a warning, not an error.
16565
16566 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
16567 in objects of type Variable_Value.
16568
16569 * prj.ads: (Variable_Value): New component Project
16570
16571 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
16572 is in a project extended by Project.
16573
16574 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
16575 Project of Variable_Values to this new parameter value.
16576 (Expression): Set component Project of Variable_Values.
16577 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
16578 Set the component Project in array elements.
16579
16580 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
16581
16582 * errout.adb: (Initialize): Add initialization for error nodes.
16583
16584 * sem_ch12.adb (Initialize): Add missing initializations for
16585 Exchanged_Views and Hidden_Entities.
16586
16587 2003-11-17 Ed Schonberg <schonberg@gnat.com>
16588
16589 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
16590 already instantiated tree for use in subsequent inlining.
16591 (Analyze_Associations, Instantiate_Formal_Subprogram,
16592 Instantiate_Object): improve error message for mismatch in
16593 instantiations.
16594
16595 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
16596 instantiations of subprograms declared in instances.
16597
16598 2003-11-17 Javier Miranda <miranda@gnat.com>
16599
16600 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
16601 executed only under the Extensions_Allowed flag.
16602
16603 2003-11-17 Robert Dewar <dewar@gnat.com>
16604
16605 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
16606 zeroes suppressed.
16607 (Address_Image): Fix bug of returning 0x instead of 0x0
16608 Minor reformatting (function specs).
16609
16610 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
16611 (missed case of 33-63)
16612
16613 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
16614
16615 * s-thread.adb: Add comments for pragma Restriction
16616
16617 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
16618 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
16619
16620 2003-11-17 Ed Falis <falis@gnat.com>
16621
16622 * s-thread.adb: Added No_Tasking restriction for this implementation.
16623
16624 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
16625
16626 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
16627 instanciation references in the parent type description.
16628
16629 2003-11-17 GNAT Script <nobody@gnat.com>
16630
16631 * Make-lang.in: Makefile automatically updated
16632
16633 2003-11-16 Jason Merrill <jason@redhat.com>
16634
16635 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
16636 and TAGS files that include them for each front end.
16637
16638 2003-11-14 Andreas Jaeger <aj@suse.de>
16639
16640 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
16641 is the canonical version.
16642 * misc.c (gnat_handle_option): Likewise.
16643
16644 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
16645
16646 * 5nsystem.ads: New file for x86_64-linux-gnu.
16647
16648 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
16649
16650 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
16651
16652 * comperr.adb: Fix logic in previous change.
16653
16654 2003-11-13 Vincent Celier <celier@gnat.com>
16655
16656 * 5bml-tgt.adb (Build_Dynamic_Library): Use
16657 Osint.Include_Dir_Default_Prefix instead of
16658 Sdefault.Include_Dir_Default_Name.
16659
16660 * gnatlbr.adb: Update Copyright notice
16661 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
16662 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
16663 instead of Sdefault.Object_Dir_Default_Name
16664
16665 * gnatlink.adb:
16666 (Process_Binder_File): Never suppress the option following -Xlinker
16667
16668 * mdll-utl.adb:
16669 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
16670 Sdefault.Object_Dir_Default_Name.
16671
16672 * osint.ads, osint.adb:
16673 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
16674 Minor reformatting.
16675
16676 * vms_conv.ads: Minor reformating
16677 Remove GNAT STANDARD and GNAT PSTA
16678
16679 * vms_conv.adb:
16680 Allow GNAT MAKE to have several files on the command line.
16681 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
16682 Sdefault.Object_Dir_Default_Name.
16683 Minor Reformating
16684 Remove data for GNAT STANDARD
16685
16686 * vms_data.ads:
16687 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
16688 Remove data for GNAT STANDARD
16689 Remove options and documentation for -gnatwb/-gnatwB: these warning
16690 options no longer exist.
16691
16692 2003-11-13 Ed Falis <falis@gnat.com>
16693
16694 * 5zthrini.adb: (Init_RTS): Made visible
16695
16696 * 5zthrini.adb:
16697 (Register): Removed unnecessary call to taskVarGet that checked whether
16698 an ATSD was already set as a task var for the argument thread.
16699
16700 * s-thread.adb:
16701 Updated comment to reflect that this is a VxWorks version
16702 Added context clause for System.Threads.Initialization
16703 Added call to System.Threads.Initialization.Init_RTS
16704
16705 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
16706
16707 * 5zthrini.adb:
16708 (Init_RTS): New procedure, for the initialization of the run-time lib.
16709
16710 * s-thread.adb:
16711 Remove dependancy on System.Init, so that this file can be used in the
16712 AE653 sequential run-time lib.
16713
16714 2003-11-13 Robert Dewar <dewar@gnat.com>
16715
16716 * bindgen.adb: Minor reformatting
16717
16718 2003-11-13 Ed Schonberg <schonberg@gnat.com>
16719
16720 * checks.adb:
16721 (Apply_Discriminant_Check): Do no apply check if target type is derived
16722 from source type with no applicable constraint.
16723
16724 * lib-writ.adb:
16725 (Ensure_System_Dependency): Do not apply the style checks that may have
16726 been specified for the main unit.
16727
16728 * sem_ch8.adb:
16729 (Find_Selected_Component): Further improvement in error message, with
16730 RM reference.
16731
16732 * sem_res.adb:
16733 (Resolve): Handle properly the case of an illegal overloaded protected
16734 procedure.
16735
16736 2003-11-13 Javier Miranda <miranda@gnat.com>
16737
16738 * exp_aggr.adb:
16739 (Has_Default_Init_Comps): New function to check the presence of
16740 default initialization in an aggregate.
16741 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
16742 extension aggregate of a limited record. In addition, a new formal
16743 was added to do not initialize the record controller (if any) during
16744 this recursive expansion of ancestors.
16745 (Init_Controller): Add support for limited record components.
16746 (Expand_Record_Aggregate): In case of default initialized components
16747 convert the aggregate into a set of assignments.
16748
16749 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
16750 describing the new syntax.
16751 Nothing else needed to be done because this subprogram delegates part of
16752 its work to P_Precord_Or_Array_Component_Association.
16753 (P_Record_Or_Array_Component_Association): Give support to the new
16754 syntax for default initialization of components.
16755
16756 * sem_aggr.adb:
16757 (Resolve_Aggregate): Relax the strictness of the frontend in case of
16758 limited aggregates.
16759 (Resolve_Record_Aggregate): Give support to default initialized
16760 components.
16761 (Get_Value): In case of default initialized components, duplicate
16762 the corresponding default expression (from the record type
16763 declaration). In case of default initialization in the *others*
16764 choice, do not check that all components have the same type.
16765 (Resolve_Extension_Aggregate): Give support to limited extension
16766 aggregates.
16767
16768 * sem_ch3.adb:
16769 (Check_Initialization): Relax the strictness of the front-end in case
16770 of aggregate and extension aggregates. This test is now done in
16771 Get_Value in a per-component manner.
16772
16773 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
16774 expression corresponds to a limited aggregate. This test is now done
16775 in Get_Value.
16776
16777 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
16778 Box_Present flag.
16779
16780 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
16781 present in an N_Component_Association node
16782
16783 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
16784
16785 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
16786 type-conformant entry only if they are homographs.
16787
16788 2003-11-13 GNAT Script <nobody@gnat.com>
16789
16790 * Make-lang.in: Makefile automatically updated
16791
16792 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16793
16794 * adadecode.c: Use <> form of include for ctype.h.
16795 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
16796
16797 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16798
16799 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
16800 Works around PR middle-end/6552.
16801
16802 2003-11-10 Ed Falis <falis@gnat.com>
16803
16804 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
16805
16806 * 5zinit.adb: (Install_Handler): Moved back to spec
16807 (Install_Signal_Handlers): Deleted
16808
16809 * 5zthrini.adb: Added context clause for System.Storage_Elements
16810 (Register): Only handles creation of taskVar; initialization moved to
16811 Thread_Body_Enter.
16812 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
16813 Added declaration of environment task secondary stack and
16814 initialization.
16815
16816 * s-thread.adb: Implement bodies for thread body processing
16817
16818 * s-thread.ads:
16819 Added comment identifying supported targets for pragma Thread_Body.
16820
16821 2003-11-10 Pascal Obry <obry@gnat.com>
16822
16823 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
16824 GNAT_MAX_PATH_LEN.
16825
16826 * s-fileio.adb:
16827 (Open): Properly check for string length before copying into the buffer.
16828 Raises Name_Error if buffer is too small. Note that this was a potential
16829 buffer overflow.
16830
16831 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
16832
16833 * bindgen.adb, comperr.adb: Code clean ups.
16834 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
16835
16836 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
16837
16838 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
16839
16840 2003-11-10 Vincent Celier <celier@gnat.com>
16841
16842 * gprcmd.adb:
16843 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
16844 installation.
16845
16846 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
16847
16848 * prj.adb: (Project_Empty): Add new boolean component Virtual
16849
16850 * prj.ads: (Virtual_Prefix): New constant string
16851 (Project_Data): New boolean component Virtual
16852
16853 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
16854 a library project is extended by a virtual extending project.
16855
16856 * prj-part.adb:
16857 Modifications throughout to implement extending-all project, including:
16858 (Virtual_Hash, Processed_Hash): New hash tables
16859 (Create_Virtual_Extending_Project): New procedure
16860 (Look_For_Virtual_Projects_For): New procedure
16861
16862 * prj-proc.adb:
16863 (Process): After checking the projects, if main project is an
16864 extending-all project, set the object directory of all virtual extending
16865 project to the object directory of the main project.
16866 Adjust error message when a virtual extending project has the same
16867 object directory as an project being extended.
16868 (Recursive_Process): If name starts with the virtual prefix, set Virtual
16869 to True in the project data.
16870
16871 * prj-tree.adb:
16872 (Default_Project_Node): Add new boolean component Extending_All
16873 (Is_Extending_All): New function
16874 (Set_Is_Extending_All): New procedure
16875
16876 * prj-tree.ads: (Is_Extending_All): New function
16877 (Set_Is_Extending_All): New procedure
16878 (Project_Node_Record): New boolean component Extending_All
16879
16880 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
16881
16882 * vms_data.ads:
16883 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
16884
16885 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
16886 "gprcmd prefix" to define it.
16887
16888 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
16889
16890 * einfo.ads: Fix a typo and remove an extraneous word in comments.
16891
16892 * lib-load.adb:
16893 (Create_Dummy_Package_Unit): Set the scope of the entity for the
16894 created dummy package to Standard_Standard, not to itself, to
16895 defend other parts of the front-end against encoutering a cycle in
16896 the scope chain.
16897
16898 * sem_ch10.adb:
16899 (Analyze_With_Clause): When setting the entities for the successive
16900 N_Expanded_Names that constitute the name of a child unit, do not
16901 attempt to go further than Standard_Standard in the chain of scopes.
16902 This case arises from the placeholder units created by
16903 Create_Dummy_Package_Unit in the case of a with_clause for a
16904 nonexistent child unit.
16905
16906 2003-11-10 Ed Schonberg <schonberg@gnat.com>
16907
16908 * exp_ch6.adb:
16909 (Expand_Thread_Body): Place subprogram on scope stack, so that new
16910 declarations are given the proper scope.
16911
16912 * sem_ch13.adb:
16913 (Check_Expr_Constants): Reject an expression that contains a constant
16914 created during expansion, and that appears after the object to which
16915 the address clause applies.
16916
16917 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
16918 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
16919 that uses 'Range of a function call with controlled components, so
16920 that the function result can be finalized before starting the loop.
16921
16922 * sem_ch8.adb:
16923 (Find_Selected_Component): Improve error message when prefix is
16924 an implicit dereference of an incomplete type.
16925
16926 2003-11-10 Robert Dewar <dewar@gnat.com>
16927
16928 * opt.ads: New Print_Standard flag for -gnatS switch
16929
16930 * sem_ch13.adb: Remove some additional checks for unaligned arrays
16931
16932 * cstand.adb (Create_Standard): Print out package standard if -gnatS
16933 switch set
16934
16935 * debug.adb: Update doc for -gnatds to discuss relationship with new
16936 -gnatS flag
16937
16938 * sinfo.adb: Add new field Entity_Or_Associated_Node
16939
16940 * sinfo.ads: Add new field Entity_Or_Associated_Node
16941 Update documentation for Associated_Node and Entity fields to clarify
16942 relationship and usage.
16943
16944 * sprint.adb:
16945 (Write_Id): Properly process Associated_Node field in generic template
16946
16947 * switch-c.adb:
16948 Recognize new -gnatS switch for printing package Standard
16949 This replaces gnatpsta
16950
16951 * usage.adb:
16952 Add line for new -gnatS switch for printing package Standard
16953 This replaces gnatpsta
16954
16955 2003-11-10 Andreas Jaeger <aj@suse.de>
16956
16957 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
16958 integer.
16959
16960 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
16961
16962 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
16963 by gnat1.
16964
16965 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
16966
16967 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
16968 no longer needed.
16969
16970 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
16971
16972 * sysdep.c: Add handling of cygwin.
16973
16974 2003-11-10 GNAT Script <nobody@gnat.com>
16975
16976 * Make-lang.in: Makefile automatically updated
16977
16978 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
16979
16980 PR 12950
16981 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
16982 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
16983 Replace GNAT_ROOT by GCC_ROOT.
16984
16985 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
16986
16987 2003-11-06 Zack Weinberg <zack@codesourcery.com>
16988
16989 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
16990 and update for changed meaning of GET_MODE_BITSIZE.
16991
16992 2003-11-04 Doug Rupp <rupp@gnat.com>
16993
16994 * sysdep.c: Problem discovered during IA64 VMS port.
16995 [VMS] #include <unixio.h> to get proper prototypes.
16996
16997 * adaint.c:
16998 Issues discovered/problems fixed during IA64 VMS port.
16999 [VMS] #define _POSIX_EXIT for proper semantics.
17000 [VMS] #include <unixio.h> for proper prototypes.
17001 [VMS] (fork): #define IA64 version.
17002 (__gnat_os_exit): Remove unnecessary VMS specific code.
17003
17004 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17005
17006 Part of PR ada/12806
17007
17008 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
17009 tree, not integer.
17010
17011 * decl.c:
17012 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
17013 not integer.
17014
17015 * targtyps.c, decl.c, misc.c,
17016 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
17017 routines to work around change in FP sizing semantics in GCC.
17018
17019 * utils.c:
17020 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
17021
17022 * gigi.h: (enumerate_modes): New function.
17023
17024 * Make-lang.in: (ada/misc.o): Add real.h.
17025
17026 * misc.c: (enumerate_modes): New function.
17027
17028 2003-11-04 Robert Dewar <dewar@gnat.com>
17029
17030 * 3vtrasym.adb: Minor reformatting
17031 Use terminology encoded/decoded name, rather than C++ specific notion
17032 of mangling (this is the terminology used throughout GNAT).
17033
17034 * einfo.h: Regenerated
17035
17036 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
17037
17038 * exp_ch6.adb:
17039 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
17040
17041 * par-prag.adb: Add dummy entry for Thread_Body pragma
17042
17043 * rtsfind.ads:
17044 Add entries for System.Threads entities for thread body processing
17045
17046 * sem_attr.adb:
17047 (Analyze_Pragma, Access attributes): Check these are not applied to a
17048 thread body, since this is not permitted
17049
17050 * sem_prag.adb: Add processing for Thread_Body pragma.
17051 Minor comment fix.
17052
17053 * sem_res.adb:
17054 (Resolve_Call): Check for incorrect attempt to call a thread body
17055 procedure with a direct call.
17056
17057 * snames.ads, snames.adb: Add entry for Thread_Body pragma
17058 Add names associated with thread body expansion
17059
17060 * snames.h: Add entry for Thread_Body pragma
17061
17062 * s-thread.adb: Add entries for thread body processing
17063 These are dummy bodies so far
17064
17065 * s-thread.ads: Add documentation on thread body handling.
17066 Add entries for thread body processing.
17067
17068 2003-11-04 Javier Miranda <miranda@gnat.com>
17069
17070 * sem_ch10.adb:
17071 (Build_Limited_Views): Return after posting an error in case of limited
17072 with_clause on subprograms, generics, instances or generic renamings
17073 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
17074 on subprograms, generics, instances or generic renamings
17075
17076 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
17077
17078 * raise.c (setup_to_install): Correct mistake in last revision; two
17079 arguments out of order.
17080
17081 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
17082 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
17083 notice, missed in previous change.
17084 Remove trailing blanks and other style errors introduced in previous
17085 change.
17086
17087 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
17088
17089 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
17090 rid of the wrapper for a LJM type, ensuring we don't do that if the
17091 field is addressable. This avoids potential low level type view
17092 mismatches later on, for instance in a by-reference argument passing
17093 process.
17094
17095 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17096
17097 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
17098 aligned at byte boundary.
17099
17100 2003-11-04 Joel Brobecker <brobecker@gnat.com>
17101
17102 * decl.c (components_to_record): Do not delete the empty variants from
17103 the end of the union type.
17104
17105 2003-11-04 Ed Schonberg <schonberg@gnat.com>
17106
17107 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
17108 operation for a derived type, an explicit declaration may use a local
17109 subtype of Boolean.
17110
17111 2003-11-04 Vincent Celier <celier@gnat.com>
17112
17113 * make.adb (Gnatmake): Allow main sources on the command line with a
17114 library project when it is only for compilation (no binding or
17115 linking).
17116
17117 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17118
17119 * Makefile.in: Remove many duplicate variables.
17120
17121 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
17122
17123 * Make-lang.in (dvi): Move targets to $(docobjdir).
17124 (gnat_ug_vms.dvi): Simplify rule and adjust target.
17125 (gnat_ug_wnt.dvi): Likewise.
17126 (gnat_ug_unx.dvi): Likewise.
17127 (gnat_ug_vxw.dvi): Likewise.
17128 (gnat_rm.dvi): Likewise.
17129 (gnat-style.dvi): Likewise.
17130
17131 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
17132
17133 * gigi.h: Missed commit from update for C90.
17134
17135 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
17136
17137 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
17138
17139 2003-10-31 Andreas Schwab <schwab@suse.de>
17140
17141 * raise.c (get_action_description_for): Fix typo in last change.
17142
17143 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
17144
17145 PR ada/12761
17146 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
17147 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
17148
17149 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
17150
17151 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
17152 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
17153 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
17154 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
17155 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
17156
17157 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
17158
17159 * 3vtrasym.adb:
17160 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
17161 numbers when symbol name is too long.
17162
17163 2003-10-30 Ed Falis <falis@gnat.com>
17164
17165 * g-signal.ads, g-signal.adb: New files
17166
17167 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
17168
17169 * Makefile.rtl: Introduce GNAT.Signals
17170
17171 2003-10-30 Robert Dewar <dewar@gnat.com>
17172
17173 * freeze.adb: Minor reformatting
17174
17175 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
17176
17177 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
17178 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
17179 New handling of Id_Check parameter to improve recognition of keywords
17180 used as identifiers.
17181 Update copyright notice to include 2003
17182
17183 2003-10-29 Robert Dewar <dewar@gnat.com>
17184
17185 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
17186 sem_ch10.adb: Minor reformatting
17187
17188 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
17189 (Expand_Assign_Record): Test right hand side for bit unaligned as well
17190
17191 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
17192
17193 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
17194 Support for TBK$SYMBOLIZE-based symbolic traceback.
17195
17196 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
17197
17198 * exp_disp.adb:
17199 Revert previous change, that did not work well when pragma No_Run_Time
17200 was used in conjunction with a run-time other than ZFP.
17201
17202 2003-10-29 Vincent Celier <celier@gnat.com>
17203
17204 * make.adb:
17205 (Gnatmake): When there are no Ada mains in attribute Main, disable the
17206 bind and link steps only is switch -z is not used.
17207
17208 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
17209
17210 * Makefile.generic: Remove duplicated setting of CC.
17211
17212 * Makefile.prolog: Set CC to gcc by default, to override make's
17213 default (cc).
17214
17215 * einfo.h: Regenerated.
17216
17217 2003-10-29 Ed Schonberg <schonberg@gnat.com>
17218
17219 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
17220 current body, after compiling subunit.
17221
17222 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
17223 when in deleted code, because gigi needs properly ordered freeze
17224 actions to annotate types.
17225
17226 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
17227 prevent the premature freezing of record type that contains
17228 subcomponents with a private type that does not yet have a completion.
17229
17230 2003-10-29 Javier Miranda <miranda@gnat.com>
17231
17232 * sem_ch12.adb:
17233 (Analyze_Package_Instantiation): Check that instances can not be used in
17234 limited with_clauses.
17235
17236 * sem_ch8.adb:
17237 (Analyze_Package_Renaming): Check that limited withed packages cannot
17238 be renamed. Improve text on error messages related to limited
17239 with_clauses.
17240
17241 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
17242
17243 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
17244 Update copyright notice.
17245
17246 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
17247 (Install_Limited_Context_Clauses): New subprogram that isolates all the
17248 checks required for limited context_clauses and installs the limited
17249 view.
17250 (Install_Limited_Withed_Unit): Complete its documentation.
17251 (Analyze_Context): Check that limited with_clauses are only allowed in
17252 package specs.
17253 (Install_Context): Call Install_Limited_Context_Clauses after the
17254 parents have been installed.
17255 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
17256 package as 'From_With_Type'; this mark indicates that the limited view
17257 is installed. Used to check bad usages of limited with_clauses.
17258 (Build_Limited_Views): Do not add shadow entities to the scope's list
17259 of entities. Do not add real entities to the Non_Limited_Views chain.
17260 Improve error notification.
17261 (Remove_Context_Clauses): Remove context clauses in two phases:
17262 limited views first and regular views later (to maintain the
17263 stack model).
17264 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
17265 its visible entities.
17266
17267 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
17268
17269 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
17270 with any type that Is_Fixed_Point_Type.
17271
17272 * sinfo.ads: Fix documentation for Associated_Node attribute.
17273
17274 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
17275
17276 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
17277 both '-gnatc' and '-gnatt' are specified.
17278
17279 * atree.adb (Initialize): Add initialization for Node_Count (set to
17280 zero).
17281
17282 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17283
17284 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
17285 do not consider as Pure.
17286
17287 Part of implementation of function-at-a-time:
17288
17289 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
17290 (tree_transform): Add new argument to build_component_ref.
17291 (tree_transform, case N_Assignment_Statement): Make and return an
17292 EXPR_STMT.
17293 (tree_transform): If result IS_STMT, set flags and return it.
17294 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
17295
17296 * utils2.c (build_simple_component_ref, build_component_ref): Add new
17297 arg, NO_FOLD_P.
17298 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
17299 (build_allocator): Likewise.
17300
17301 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
17302 Add new arg to build_component_ref.
17303 (maybe_unconstrained_array, unchecked_convert): Likewise.
17304
17305 * ada-tree.def (EXPR_STMT): New code.
17306
17307 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
17308
17309 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
17310 build_component_ref calls.
17311
17312 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
17313
17314 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
17315 (build_component_ref): Add new argument, NO_FOLD_P.
17316
17317 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
17318
17319 * Makefile.generic: Add missing substitution on object_deps handling.
17320
17321 PR ada/5909:
17322 * Make-lang.in (check-ada): Enable ACATS test suite.
17323
17324 2003-10-27 Robert Dewar <dewar@gnat.com>
17325
17326 * exp_ch3.adb:
17327 (Freeze_Array_Type): We do not need an initialization routine for types
17328 derived from String or Wide_String. They should be treated the same
17329 as String and Wide_String themselves. This caused problems with the
17330 use of Initialize_Scalars.
17331
17332 * exp_ch5.adb:
17333 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
17334 composites. This allows use of component clauses that are not byte
17335 aligned.
17336
17337 * sem_prag.adb:
17338 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
17339 is an attempt to pack an array of atomic objects.
17340
17341 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
17342
17343 2003-10-27 Pascal Obry <obry@gnat.com>
17344
17345 * g-dirope.adb:
17346 (Basename): Check for drive letters in a pathname only on DOS based OS.
17347
17348 2003-10-27 Vincent Celier <celier@gnat.com>
17349
17350 * make.adb:
17351 (Gnatmake): When unable to change dir to the object dir, display the
17352 content of the parent dir of the obj dir, to try to understand why this
17353 happens.
17354
17355 2003-10-27 GNAT Script <nobody@gnat.com>
17356
17357 * Make-lang.in: Makefile automatically updated
17358
17359 2003-10-27 Ed Schonberg <schonberg@gnat.com>
17360
17361 * sem_ch12.adb:
17362 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
17363 should not be done in Save/Restore_Scope_Stack, because it is performed
17364 locally.
17365
17366 * sem_ch8.adb:
17367 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
17368 whether use clauses should be removed/restored.
17369
17370 * sem_ch8.ads:
17371 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
17372 whether use clauses should be removed/restored.
17373
17374 2003-10-26 Andreas Jaeger <aj@suse.de>
17375
17376 * Makefile.in: Remove duplicated lines.
17377
17378 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
17379
17380 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
17381 minimize the differences with ACT tree.
17382
17383 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
17384 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
17385 Gnatvsn.Gnat_Static_Version_String to reduce differences between
17386 ACT and FSF trees.
17387
17388 2003-10-24 Pascal Obry <obry@gnat.com>
17389
17390 * adadecode.c (ostrcpy): New function.
17391 (__gnat_decode): Use ostrcpy of strcpy.
17392 (has_prefix): Set first parameter a const.
17393 (has_suffix): Set first parameter a const.
17394 Update copyright notice. Fix source name in header.
17395 Removes a trailing space.
17396 PR ada/12014.
17397
17398 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
17399
17400 * exp_disp.adb:
17401 Remove the test against being in No_Run_Time_Mode before generating a
17402 call to Register_Tag. It is redundant with the test against the
17403 availability of the function Register_Tag.
17404
17405 2003-10-24 Vincent Celier <celier@gnat.com>
17406
17407 * g-catiio.adb: (Month_Name): Correct spelling of February
17408
17409 * make.adb: (Mains): New package
17410 (Initialize): Call Mains.Delete
17411 (Gnatmake): Check that each main on the command line is a source of a
17412 project file and, if there are several mains, each of them is a source
17413 of the same project file.
17414 (Gnatmake): When a foreign language is specified in attribute Languages,
17415 no main is specified on the command line and attribute Mains is not
17416 empty, only build the Ada main. If there is no Ada main, just compile
17417 the Ada sources and their closure.
17418 (Gnatmake): If a main is specified on the command line with directory
17419 information, check that the source exists and, if it does, that the path
17420 is the actual path of a source of a project.
17421
17422 * prj-env.adb:
17423 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
17424 Full_Path is True, return the full path instead of the simple file name.
17425 (Project_Of): New function
17426
17427 * prj-env.ads:
17428 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
17429 defaulted to False.
17430 (Project_Of): New function
17431
17432 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
17433
17434 * Makefile.generic:
17435 Ensure objects of main project are always checked and rebuilt if needed.
17436 Set CC to gcc by default.
17437 Prepare new handling of link by creating a global archive (not activated
17438 yet).
17439
17440 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
17441 stringt.h: Update copyright notice. Remove trailing blanks.
17442 Fix source name in header.
17443
17444 2003-10-24 Robert Dewar <dewar@gnat.com>
17445
17446 * sem_ch12.adb: Minor reformatting
17447
17448 * sem_ch3.adb:
17449 Minor reformatting (including new function return style throughout)
17450
17451 * sem_ch3.ads:
17452 Minor reformatting (including new function return style throughout)
17453
17454 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
17455
17456 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
17457 stringt.h: Update copyright notice. Remove trailing blanks.
17458 Fix source name in header.
17459
17460 2003-10-24 GNAT Script <nobody@gnat.com>
17461
17462 * Make-lang.in: Makefile automatically updated
17463
17464 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
17465
17466 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
17467 stringt.h: Convert to ISO C90 declarations and definitions.
17468
17469 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
17470
17471 PR ada/11978:
17472 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
17473 External_Tag attribute definition clauses.
17474
17475 2003-10-23 Ed Schonberg <schonberg@gnat.com>
17476
17477 PR ada/7613:
17478 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
17479 child unit, generate a fully qualified name to avoid spurious errors
17480 when the context contains renamings of different child units with
17481 the same simple name.
17482
17483 * exp_dbug.ads: Add documentation on name qualification for renamings
17484 of child units.
17485
17486 2003-10-23 Robert Dewar <dewar@gnat.com>
17487
17488 * g-regpat.ads, g-regpat.adb: Minor reformatting
17489
17490 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
17491
17492 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
17493
17494 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
17495
17496 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
17497 Machine call.
17498
17499 * urealp.h: (Machine): Update to proper definition.
17500
17501 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
17502
17503 * init.c, adaint.c: Minor reformatting.
17504
17505 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
17506
17507 * adaint.c (w32_epoch_offset): Define static const at file level.
17508 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
17509 rather than t_create, t_access in call to GetFileTime. Use union
17510 to convert between FILETIME and unsigned long long.
17511 (__gnat_file_time_name): Test for invalid file handle.
17512 (__gnat_set_filetime_name): Support win32 targets using
17513 w32api SetFileTime.
17514
17515 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
17516
17517 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
17518
17519 * ctrl_c.c (__gnat_int_handler): Remove declaration.
17520
17521 * decl.c (creat_concat_name): Const-ify prefix.
17522
17523 * adaint.c: Include ctype.h if __MINGW32__.
17524 (__gnat_readlink): Mark arguments as possibly unused.
17525 (__gnat_symlink): Likewise.
17526 (__gnat_is_symbolic_link): Likewise.
17527 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
17528 declaration
17529 (__gnat_file_time_name): Don't declare struct stat statbuf when
17530 not needed.
17531 (__gnat_is_absolute_path): Add parenthesis around condition of
17532 'if' statement to avoid warning.
17533 (__gnat_plist_init): Specify void as parameter.
17534 (plist_enter): Likewise.
17535 (plist_leave): Likewise.
17536 (remove_handle): Make static. Initialize prev.
17537
17538 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
17539
17540 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
17541 * cstreams.c (__gnat_full_name): Minor improvements and clean up
17542 of previous change.
17543
17544 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17545
17546 * tracebak.c (MAX): Avoid redefinition warning.
17547
17548 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
17549 Change msg to const char *.
17550 (__gnat_install_handler): Remove ss, unused.
17551 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
17552 to const char *.
17553 * cstreams.c (__gnat_full_name): Declare p only when used.
17554 (__gnat_full_name) [sgi] Return buffer.
17555
17556 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
17557
17558 * mingw32.h: New file.
17559 * gnat_wrapper.adb: New file.
17560
17561 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
17562
17563 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
17564 string match a pre compiled regular expression (the corresponding
17565 version of the function working on a raw regular expression)
17566 Fix typos in various comments
17567 Update copyright notice in spec
17568
17569 2003-10-21 Gary Dismukes <dismukes@gnat.com>
17570
17571 * exp_ch3.adb:
17572 (Component_Needs_Simple_Initialization): Return False when the type is a
17573 packed bit array. Revise spec comments to document this case.
17574
17575 * exp_prag.adb:
17576 (Expand_Pragma_Import): Set any expression on the imported object to
17577 empty to avoid initializing imported objects (in particular this
17578 covers the case of zero-initialization of bit arrays).
17579 Update copyright notice.
17580
17581 2003-10-21 Ed Schonberg <schonberg@gnat.com>
17582
17583 * sem_ch12.adb:
17584 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
17585 a subunit is missing.
17586 (Instantiate_Subprogram_Body): If body of function is missing, set type
17587 of return expression explicitly in dummy body, to prevent cascaded
17588 errors when a subunit is missing.
17589 Fixes PR 5677.
17590
17591 * sem_ch3.adb:
17592 (Access_Subprogram_Declaration): Verify that return type is valid.
17593 Fixes PR 8693.
17594
17595 * sem_elab.adb:
17596 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
17597 generic.
17598 Fixes PR 12318.
17599
17600 * sem_util.adb:
17601 (Corresponding_Discriminant): If the scope of the discriminant is a
17602 private type without discriminant, use its full view.
17603 Fixes PR 8247.
17604
17605 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
17606
17607 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
17608 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
17609 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
17610 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
17611 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
17612 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
17613 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
17614 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
17615 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
17616 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
17617 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
17618 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
17619 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
17620 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
17621 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
17622 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
17623 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
17624 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
17625 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
17626 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
17627 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
17628 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
17629 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
17630 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
17631 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
17632 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
17633 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
17634 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
17635 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
17636 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
17637 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
17638 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
17639 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
17640 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
17641 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
17642 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
17643 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
17644 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
17645 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
17646 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
17647 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
17648 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
17649 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
17650 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
17651 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
17652 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
17653 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
17654 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
17655 vms_conv.ads, vms_conv.adb, vms_data.ads,
17656 vxaddr2line.adb: Files added. Merge with ACT tree.
17657
17658 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
17659 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
17660 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
17661 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
17662 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
17663 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
17664 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
17665 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
17666 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
17667 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
17668
17669 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
17670 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
17671 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
17672 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
17673 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
17674 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
17675 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
17676 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
17677 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
17678 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
17679 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
17680 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
17681 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
17682 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
17683 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
17684 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
17685 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
17686 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
17687 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
17688 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
17689 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
17690 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
17691 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
17692 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
17693 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
17694 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
17695 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
17696 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
17697 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
17698 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
17699 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
17700 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
17701 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
17702 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
17703 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
17704 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
17705 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
17706 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
17707 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
17708 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
17709 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
17710 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
17711 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
17712 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
17713 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
17714 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
17715 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
17716 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
17717 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
17718 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
17719 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
17720 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
17721 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
17722 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
17723 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
17724 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
17725 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
17726 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
17727 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
17728 checks.adb, checks.ads, cio.c, comperr.adb,
17729 comperr.ads, csets.adb, cstand.adb, cstreams.c,
17730 debug_a.adb, debug_a.ads, debug.adb, decl.c,
17731 einfo.adb, einfo.ads, errout.adb, errout.ads,
17732 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
17733 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
17734 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
17735 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
17736 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
17737 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
17738 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
17739 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
17740 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
17741 fe.h, fmap.adb, fmap.ads, fname.adb,
17742 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
17743 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
17744 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
17745 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
17746 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
17747 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
17748 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
17749 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
17750 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
17751 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
17752 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
17753 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
17754 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
17755 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
17756 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
17757 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
17758 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
17759 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
17760 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
17761 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
17762 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
17763 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
17764 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
17765 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
17766 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
17767 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
17768 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
17769 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
17770 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
17771 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
17772 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
17773 layout.adb, lib.adb, lib.ads, lib-list.adb,
17774 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
17775 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
17776 link.c, live.adb, make.adb, make.ads,
17777 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
17778 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
17779 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
17780 misc.c, mkdir.c, mlib.adb, mlib.ads,
17781 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
17782 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
17783 namet.adb, namet.ads, namet.h, nlists.ads,
17784 nlists.h, nmake.adt, opt.adb, opt.ads,
17785 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
17786 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
17787 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
17788 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
17789 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
17790 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
17791 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
17792 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
17793 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
17794 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
17795 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
17796 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
17797 prj-util.adb, prj-util.ads, raise.c, raise.h,
17798 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
17799 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
17800 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
17801 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
17802 scans.ads, scn.adb, scn.ads, s-crc32.adb,
17803 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
17804 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
17805 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
17806 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
17807 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
17808 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
17809 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
17810 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
17811 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
17812 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
17813 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
17814 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
17815 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
17816 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
17817 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
17818 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
17819 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
17820 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
17821 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
17822 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
17823 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
17824 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
17825 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
17826 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
17827 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
17828 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
17829 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
17830 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
17831 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
17832 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
17833 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
17834 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
17835 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
17836 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
17837 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
17838 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
17839 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
17840 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
17841 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
17842 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
17843 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
17844 stringt.adb, stringt.ads, stringt.h, style.ads,
17845 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
17846 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
17847 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
17848 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
17849 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
17850 table.adb, table.ads, targparm.adb, targparm.ads,
17851 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
17852 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
17853 ttypes.ads, types.ads, types.h, uintp.adb,
17854 uintp.ads, uintp.h, uname.adb, urealp.adb,
17855 urealp.ads, urealp.h, usage.adb, utils2.c,
17856 utils.c, validsw.adb, validsw.ads, widechar.adb,
17857 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
17858 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
17859 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
17860 gnatvsn.ads: Merge with ACT tree.
17861
17862 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
17863
17864 2003-10-20 Mark Mitchell <mark@codesourcery.com>
17865
17866 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
17867 (gnat_ug_vmx.info): Likewise.
17868 (gnat_ug_vxw.info): Likewise.
17869 (gnat_ug_wnt.info): Likewise.
17870 (gnat_rm.info): Likewise.
17871 (gnat-style.info): Likewise.
17872
17873 * Make-lang.in (ada.install-info): Remove target.
17874 (info): New target.
17875 (install-info): Likewise.
17876 (gnat_ug_unx.info): Simplify rule.
17877 (gnat_ug_vmx.info): Likewise.
17878 (gnat_ug_vxw.info): Likewise.
17879 (gnat_ug_wnt.info): Likewise.
17880 (gnat_rm.info): Likewise.
17881 (gnat-style.info): Likewise.
17882
17883 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
17884
17885 * Make-lang.in: Replace uses of $(target_alias) with
17886 $(target_noncanonical).
17887 * ada/Makefile.in: Remove unused mention of $(target_alias).
17888
17889 2003-10-06 Mark Mitchell <mark@codesourcery.com>
17890
17891 * Make-lang.in (ada.info): Replace with ...
17892 (info): ... this.
17893 (ada.dvi): Replace with ...
17894 (dvi): ... this.
17895
17896 2003-09-29 Zack Weinberg <zack@codesourcery.com>
17897
17898 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
17899 initialize dconstp5 and dconstmp5.
17900
17901 2003-09-28 Richard Henderson <rth@redhat.com>
17902
17903 * trans.c (tree_transform): Update call to expand_asm_operands.
17904
17905 2003-09-21 Richard Henderson <rth@redhat.com>
17906
17907 * trans.c, utils.c: Revert.
17908
17909 2003-09-21 Richard Henderson <rth@redhat.com>
17910
17911 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
17912 change to const.
17913
17914 2003-09-04 Michael Matz <matz@suse.de>
17915
17916 * misc.c: Include "target.h".
17917 * Make-lang.in (misc.o): Add dependency on target.h.
17918
17919 2003-09-03 DJ Delorie <dj@redhat.com>
17920
17921 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
17922 hook.
17923
17924 2003-08-30 Zack Weinberg <zack@codesourcery.com>
17925
17926 * Makefile.in: Update substitutions to match changes to
17927 configure. Use include directives instead of @-insertions
17928 to read in host and target fragments. Add a rule to
17929 regenerate ada/Makefile.
17930
17931 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
17932
17933 * lang-options.h: Remove.
17934 * lang.opt: Add help text.
17935
17936 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
17937
17938 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
17939 calls.
17940
17941 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
17942
17943 * misc.c (gnat_handle_option): Don't handle filenames.
17944
17945 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
17946
17947 * Make-lang.in: Replace PWD with PWD_COMMAND.
17948 * Makefile.adalib: Likewise.
17949 * Makefile.in: Likewise.
17950
17951 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
17952
17953 * misc.c (gnat_argv): Revert last change.
17954 (gnat_handle_option, gnat_init_options): Copy arguments.
17955
17956 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
17957
17958 * misc.c (gnat_argv): Make const.
17959
17960 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
17961
17962 * misc.c (save_argc, save_argv): Keep non-static!
17963
17964 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
17965
17966 * misc.c (save_argc, save_argv): Make static.
17967 (gnat_init_options): New prototype.
17968 (gnat_init_options): Update.
17969
17970 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
17971
17972 * gnat_ug.texi: Remove unlikely characters from @vars.
17973 * gnat_ug_vms.texi: Regenerate.
17974
17975 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
17976
17977 * misc.c (record_code_position): Adjust emit_note call.
17978
17979 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
17980
17981 * misc.c (gnat_handle_option): Don't check for missing arguments.
17982
17983 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
17984
17985 * utils.c (end_subprog_body): Adjust expand_function_end call.
17986
17987 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
17988
17989 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
17990 Bind_Main_Program.
17991
17992 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
17993
17994 * lang.opt: Declare Ada.
17995 * misc.c (gnat_init_options): Update.
17996
17997 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
17998
17999 * utils.c (begin_subprog_body): Adjust init_function_start call.
18000
18001 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
18002
18003 * Make-lang.in: Update to use options.c and options.h.
18004 * misc.c: Include options.h not aoptions.h.
18005 (gnat_handle_option): Abort on unrecognized switch.
18006 (gnat_init_options): Request Ada switches.
18007
18008 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
18009
18010 * lang.opt: Add -Wall.
18011 * misc.c (gnat_handle_option): Handle it.
18012
18013 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
18014
18015 * misc.c (gnat_handle_option): Fix warnings.
18016
18017 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
18018
18019 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
18020
18021 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
18022
18023 * Make-lang.in: Update to handle command-line options.
18024 * lang.opt: New file.
18025 * misc.c: Include aoptions.h.
18026 (cl_options_count, cl_options): Remove.
18027 (gnat_handle_option): New.
18028 (gnat_decode_option): Remove.
18029 (LANG_HOOKS_DECODE_OPTION): Remove.
18030 (LANG_HOOKS_HANDLE_OPTION): Override.
18031
18032 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
18033
18034 * init.c, misc.c, trans.c, utils.c: Remove dead code.
18035
18036 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
18037
18038 * Makefile.in: Replace "host_canonical" with "host" for autoconf
18039 substitution.
18040
18041 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
18042
18043 * Make-lang.in: Update.
18044 * misc.c: Include opts.h. Define cl_options_count and cl_options.
18045
18046 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
18047
18048 * misc.c (gnat_init_options): Update.
18049
18050 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
18051
18052 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
18053 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
18054 __attribute__ ((__unused__)).
18055
18056 2003-06-05 Jan Hubicka <jh@suse.cz>
18057
18058 * Make-lang.in: Add support for stageprofile and stagefeedback
18059
18060 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
18061
18062 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
18063 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
18064
18065 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
18066
18067 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
18068 Remove non-VMS directive.
18069 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
18070 alternatives.
18071 (Examples of gnatls Usage): Remove VMS alternative.
18072
18073 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
18074
18075 PR ada/9953:
18076 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
18077 and turn ZCX_By_Default back to False since the underlying support
18078 is not quite there yet.
18079
18080 2003-06-01 Andreas Jaeger <aj@suse.de>
18081
18082 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
18083 and ROUND_TYPE_SIZE_UNIT.
18084
18085 2003-05-22 Geert Bosch <bosch@gnat.com>
18086
18087 * gnat_rm.texi : Remove reference to Ada Core Technologies.
18088
18089 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
18090
18091 * trans.c (tree_transform): Use location_t and input_location
18092 directly.
18093 (build_unit_elab): Likewise.
18094 * utils.c (create_label_decl): Likewise.
18095
18096 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
18097
18098 * trans.c (tree_transform, build_unit_elab,
18099 set_lineno): Rename lineno to input_line.
18100 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
18101 end_subprog_body): Likewise.
18102 * utils2.c (build_call_raise): Likewise.
18103
18104 2003-05-01 Laurent Guerby <guerby@acm.org>
18105
18106 PR ada/10546
18107 * 5iosinte.ads: Increase pthread_cond_t size to match recent
18108 LinuxThread and NPTL version, merge from ACT.
18109
18110 2003-04-28 Zack Weinberg <zack@codesourcery.com>
18111
18112 * utils.c (convert): No need to clear TREE_CST_RTL.
18113
18114 2003-04-23 Geert Bosch <bosch@gnat.com>
18115
18116 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
18117 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
18118 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
18119 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
18120 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
18121 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
18122 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
18123 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
18124 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
18125 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
18126 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
18127 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
18128 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
18129 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
18130 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
18131 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
18132 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
18133 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
18134 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
18135 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
18136 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
18137 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
18138 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
18139 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
18140 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
18141 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
18142 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
18143 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
18144 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
18145 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
18146 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
18147 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
18148 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
18149 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
18150 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
18151 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
18152 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
18153 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
18154 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
18155 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
18156 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
18157 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
18158 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
18159 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
18160 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
18161 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
18162 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
18163 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
18164 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
18165 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
18166 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
18167 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
18168 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
18169 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
18170 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
18171 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
18172 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
18173 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
18174 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
18175 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
18176 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
18177 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
18178 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
18179 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
18180 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
18181 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
18182 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
18183 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
18184 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
18185 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
18186 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
18187 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
18188 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
18189 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
18190 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
18191 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
18192 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
18193 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
18194 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
18195 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
18196 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
18197 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
18198 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
18199 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
18200 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
18201 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
18202 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
18203 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
18204 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
18205 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
18206 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
18207 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
18208 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
18209 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
18210 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
18211 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
18212 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
18213 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
18214 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
18215 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
18216 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
18217 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
18218 ali.adb, ali.ads, alloc.ads, argv.c,
18219 atree.adb, atree.ads, atree.h, aux-io.c,
18220 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
18221 binde.adb, binde.ads, binderr.adb, binderr.ads,
18222 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
18223 butil.adb, butil.ads, cal.c, calendar.ads,
18224 casing.adb, casing.ads, ceinfo.adb, checks.adb,
18225 checks.ads, cio.c, comperr.adb, comperr.ads,
18226 config-lang.in, csets.adb, csets.ads, csinfo.adb,
18227 cstand.adb, cstand.ads, cuintp.c, debug.adb,
18228 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
18229 dec-io.ads, dec.ads, deftarg.c, directio.ads,
18230 einfo.adb, einfo.ads, elists.adb, elists.ads,
18231 elists.h, errno.c, errout.adb, errout.ads,
18232 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
18233 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
18234 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
18235 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
18236 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
18237 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
18238 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
18239 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
18240 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
18241 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
18242 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
18243 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
18244 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
18245 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
18246 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
18247 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
18248 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
18249 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
18250 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
18251 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
18252 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
18253 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
18254 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
18255 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
18256 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
18257 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
18258 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
18259 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
18260 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
18261 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
18262 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
18263 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
18264 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
18265 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
18266 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
18267 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
18268 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
18269 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
18270 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
18271 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
18272 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
18273 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
18274 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
18275 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
18276 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
18277 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
18278 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
18279 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
18280 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
18281 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
18282 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
18283 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
18284 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
18285 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
18286 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
18287 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
18288 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
18289 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
18290 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
18291 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
18292 lib.adb, lib.ads, live.adb, live.ads,
18293 machcode.ads, make.adb, make.ads, makeusg.adb,
18294 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
18295 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
18296 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
18297 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
18298 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
18299 mlib.ads, namet.adb, namet.ads, nlists.adb,
18300 nlists.ads, opt.adb, opt.ads, osint-b.adb,
18301 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
18302 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
18303 osint.ads, output.adb, output.ads, par-ch10.adb,
18304 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
18305 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
18306 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
18307 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
18308 par-tchk.adb, par-util.adb, par.adb, par.ads,
18309 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
18310 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
18311 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
18312 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
18313 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
18314 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
18315 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
18316 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
18317 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
18318 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
18319 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
18320 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
18321 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
18322 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
18323 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
18324 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
18325 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
18326 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
18327 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
18328 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
18329 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
18330 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
18331 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
18332 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
18333 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
18334 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
18335 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
18336 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
18337 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
18338 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
18339 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
18340 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
18341 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
18342 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
18343 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
18344 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
18345 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
18346 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
18347 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
18348 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
18349 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
18350 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
18351 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
18352 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
18353 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
18354 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
18355 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
18356 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
18357 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
18358 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
18359 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
18360 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
18361 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
18362 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
18363 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
18364 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
18365 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
18366 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
18367 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
18368 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
18369 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
18370 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
18371 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
18372 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
18373 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
18374 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
18375 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
18376 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
18377 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
18378 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
18379 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
18380 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
18381 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
18382 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
18383 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
18384 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
18385 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
18386 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
18387 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
18388 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
18389 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
18390 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
18391 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
18392 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
18393 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
18394 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
18395 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
18396 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
18397 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
18398 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
18399 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
18400 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
18401 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
18402 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
18403 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
18404 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
18405 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
18406 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
18407 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
18408 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
18409 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
18410 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
18411 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
18412 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
18413 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
18414 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
18415 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
18416 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
18417 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
18418 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
18419 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
18420 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
18421 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
18422 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
18423 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
18424 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
18425 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
18426 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
18427 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
18428 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
18429 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
18430 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
18431 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
18432 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
18433 snames.ads, sprint.adb, sprint.ads, stand.adb,
18434 stand.ads, stringt.adb, stringt.ads, style.adb,
18435 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
18436 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
18437 switch-m.ads, switch.adb, switch.ads, system.ads,
18438 table.adb, table.ads, targparm.adb, targparm.ads,
18439 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
18440 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
18441 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
18442 ttypef.ads, ttypes.ads, types.adb, types.ads,
18443 uintp.adb, uintp.ads, uname.adb, uname.ads,
18444 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
18445 usage.adb, usage.ads, validsw.adb, validsw.ads,
18446 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
18447 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
18448 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
18449 formatting and other trivial changes from ACT.
18450
18451 2003-04-12 Zack Weinberg <zack@codesourcery.com>
18452
18453 * gigi.h, utils2.c (build_constructor):
18454 Rename gnat_build_constructor. Use build_constructor.
18455 * decl.c (gnat_to_gnu_entity)
18456 * trans.c (tree_transform, pos_to_constructor, extract_values)
18457 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
18458 (unchecked_convert)
18459 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
18460 (fill_vms_descriptor):
18461 Update to match.
18462
18463 2003-04-06 Zack Weinberg <zack@codesourcery.com>
18464
18465 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
18466 * misc.c (gnat_tree_size): New function.
18467 (LANG_HOOKS_TREE_SIZE): Override.
18468
18469 2003-04-03 Jason Merrill <jason@redhat.com>
18470
18471 * misc.c (gnat_adjust_rli): #if 0.
18472
18473 2003-03-31 Geert Bosch <bosch@gnat.com>
18474
18475 PR ada/10020
18476 * link.c : Fix misspelled "const" keyword
18477
18478 2003-03-23 Mark Mitchell <mark@codesourcery.com>
18479
18480 PR c++/7086
18481 * utils2.c: Adjust calls to put_var_into_stack.
18482
18483 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
18484
18485 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
18486
18487 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
18488
18489 * misc.c (gnat_init): Update for new prototype.
18490
18491 2003-03-05 Olivier Hainque <hainque@gnat.com>
18492
18493 ada/9961
18494 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
18495 warning, and fix return type for the IN_RTS && !SJLJ case.
18496
18497 2003-03-04 Tom Tromey <tromey@redhat.com>
18498
18499 * Make-lang.in (ada.tags): New target.
18500
18501 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
18502
18503 ada/9911
18504 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
18505 wrapper, which name remains constant whatever underlying GCC
18506 scheme.
18507
18508 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
18509 the stable interface needed for a-except.
18510
18511 2003-03-02 Andreas Jaeger <aj@suse.de>
18512
18513 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
18514 gnat_ug_wnt.texi: Regenerate.
18515
18516 2003-03-02 Laurent Guerby <guerby@acm.org>
18517
18518 * Makefile.in (install-gnatlib): Match previous change there
18519 so it works.
18520
18521 2003-02-28 Andreas Schwab <schwab@suse.de>
18522
18523 * Make-lang.in (install-gnatlib): Change to ada directory before
18524 running make instead of using ada/Makefile directly.
18525
18526 2003-02-18 Ben Elliston <bje@redhat.com>
18527
18528 Part of fix for PR ada/9406
18529 * gnat_ug.texi (Binder output file): Grammar fix.
18530
18531 2003-02-18 Ben Elliston <bje@redhat.com>
18532
18533 PR other/7350
18534 * 5qtaprop.adb (Sleep): Fix typo in comment.
18535
18536 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
18537
18538 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
18539 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
18540 gnat_ug_wnt.texi: Regenerate.
18541
18542 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
18543
18544 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
18545 be created if necessary.
18546 (ada.install-common): Let $(DESTDIR)$(bindir) be created
18547 if necessary. Remove erroneous and redundant gnatchop
18548 installation commands. Test for gnatdll before attempting
18549 to install it.
18550 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
18551 and gnatdll from all plausible locations.
18552
18553 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
18554
18555 * utils2.c (build_unary_op): Don't check flag_volatile.
18556 * gnat_ug.texi: Remove -fvolatile from example.
18557 * gnat_ug_vxw.texi: Likewise.
18558
18559 2003-01-29 Laurent Guerby <guerby@acm.org>
18560
18561 PR ada/8344
18562 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
18563 * Makefile.in: match previous change.
18564 * Make-lang.in: match previous change.
18565
18566 2003-01-29 Joel Sherrill <joel@OARcorp.com>
18567
18568 * 5rosinte.ads: Add SIGXCPU.
18569 * 5rtpopsp.adb: New file.
18570 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
18571 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
18572 specific file 5rtpopsp.adb.
18573 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
18574 is likely needed for all newlib targets.
18575 * init.c: Add RTEMS specific version of __gnat_initialize().
18576
18577 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18578
18579 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
18580
18581 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18582
18583 * init.c (__gnat_error_handler): Make msg const.
18584
18585 * gmem.c (convert_addresses): Move declaration ...
18586 * adaint.h: ... here.
18587 * adaint.c (convert_addresses): Adapt addrs type to match
18588 prototype.
18589
18590 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
18591
18592 2003-01-24 Andreas Schwab <schwab@suse.de>
18593
18594 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
18595 size_t to avoid warning.
18596
18597 2003-01-21 Zack Weinberg <zack@codesourcery.com>
18598
18599 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
18600
18601 2003-01-09 Geoffrey Keating <geoffk@apple.com>
18602
18603 * gnat_rm.texi: Remove RCS version number.
18604
18605 * ada-tree.h (union lang_tree_node): Add chain_next option.
18606
18607 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
18608
18609 * Make-lang.in (ada.install-info, ada.install-common,
18610 ada.uninstall): Prepend $(DESTDIR) to the destination
18611 directory in all (un)installation commands.
18612 * Makefile.in (install-gnatlib, install-rts): Ditto.
18613
18614 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
18615
18616 * gnat_rm.texi, gnat_ug.texi: Use @copying.
18617 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
18618 gnat_ug_wnt.texi: Regenerate.
18619
18620 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
18621
18622 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
18623 only.
18624 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
18625 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
18626 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
18627 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
18628 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
18629 $(srcdir)/doc/include/gcc-common.texi.
18630
18631 2002-12-15 Geert Bosch <bosch@gnat.com>
18632
18633 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
18634
18635 2002-12-14 Geert Bosch <bosch@gnat.com>
18636
18637 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
18638 case of a body created for a Renaming_As_Body, on which
18639 conformance checks are not performed. Fixes PR ada/5690.
18640
18641 2002-11-30 Zack Weinberg <zack@codesourcery.com>
18642
18643 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
18644 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
18645 not already included.
18646 * Make-lang.in: Update dependencies.
18647
18648 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
18649 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
18650 solution to buffer overflow bug on GNU/Linux.
18651
18652 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
18653 Closes PR ada/5856 and PR ada/6919 !
18654 * bindgen.adb: Remove all references to Public_Version.
18655 * comperr.adb: Remove all references to Public_Version and
18656 GNATPRO_Version; correct bug reporting instructions.
18657 * comperr.ads: Change to match bug box.
18658 * gnatvsn.ads: Remove all references to Public version and
18659 GNATPRO version.
18660
18661 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
18662 PR ada/6919
18663 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
18664 GNU/Linux.
18665
18666 PR ada/6558
18667 * config-lang.in: Remove diff_excludes.
18668
18669 2002-11-05 Graham Stott <graham.stott@btinternet.com>
18670 PR ada/8358
18671 * trans.c (gnu_pending_elaboration_lists): New GC root.
18672 (build_unit_elab): Use..
18673
18674 2002-10-30 Geert Bosch <bosch@gnat.com>
18675 PR ada/6558
18676 * misc.c : Include optabs.h
18677
18678 * Make-lang.in (misc.o): Add dependency on optabs.h
18679
18680 2002-10-29 Geert Bosch <bosch@gnat.com>
18681 PR ada/6558
18682 * Make-lang.in (gnatbind): Depend on CONFIG_H
18683
18684 2002-10-29 Geert bosch <bosch@gnat.com>
18685 PR ada/6558
18686 * misc.c: Unrevert misc.c (1.13)
18687
18688 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
18689
18690 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
18691 maintainership comments.
18692
18693 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
18694 PR ada/5904
18695 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
18696 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
18697 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
18698 7staprop.adb: Correct statements in comments about
18699 maintainership of GNAT.
18700
18701 PR ada/5904
18702 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
18703 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
18704 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
18705 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
18706 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
18707 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
18708 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
18709 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
18710 comments about maintainership of GNAT.
18711
18712 PR ada/6919 (forward port of patch for PR ada/5904)
18713 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
18714 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
18715 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
18716 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
18717 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
18718 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
18719 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
18720 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
18721 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
18722 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
18723 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
18724 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
18725 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
18726 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
18727 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
18728 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
18729 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
18730 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
18731 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
18732 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
18733 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
18734 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
18735 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
18736 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
18737 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
18738 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
18739 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
18740 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
18741 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
18742 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
18743 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
18744 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
18745 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
18746 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
18747 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
18748 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
18749 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
18750 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
18751 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
18752 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
18753 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
18754 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
18755 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
18756 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
18757 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
18758 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
18759 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
18760 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
18761 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
18762 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
18763 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
18764 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
18765 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
18766 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
18767 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
18768 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
18769 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
18770 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
18771 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
18772 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
18773 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
18774 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
18775 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
18776 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
18777 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
18778 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
18779 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
18780 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
18781 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
18782 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
18783 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
18784 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
18785 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
18786 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
18787 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
18788 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
18789 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
18790 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
18791 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
18792 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
18793 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
18794 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
18795 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
18796 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
18797 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
18798 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
18799 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
18800 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
18801 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
18802 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
18803 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
18804 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
18805 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
18806 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
18807 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
18808 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
18809 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
18810 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
18811 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
18812 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
18813 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
18814 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
18815 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
18816 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
18817 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
18818 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
18819 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
18820 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
18821 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
18822 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
18823 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
18824 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
18825 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
18826 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
18827 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
18828 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
18829 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
18830 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
18831 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
18832 par-endh.adb par-labl.adb par-load.adb par-prag.adb
18833 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
18834 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
18835 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
18836 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
18837 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
18838 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
18839 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
18840 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
18841 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
18842 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
18843 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
18844 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
18845 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
18846 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
18847 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
18848 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
18849 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
18850 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
18851 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
18852 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
18853 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
18854 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
18855 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
18856 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
18857 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
18858 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
18859 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
18860 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
18861 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
18862 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
18863 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
18864 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
18865 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
18866 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
18867 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
18868 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
18869 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
18870 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
18871 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
18872 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
18873 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
18874 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
18875 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
18876 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
18877 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
18878 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
18879 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
18880 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
18881 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
18882 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
18883 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
18884 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
18885 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
18886 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
18887 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
18888 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
18889 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
18890 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
18891 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
18892 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
18893 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
18894 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
18895 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
18896 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
18897 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
18898 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
18899 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
18900 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
18901 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
18902 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
18903 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
18904 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
18905 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
18906 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
18907 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
18908 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
18909 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
18910 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
18911 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
18912 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
18913 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
18914 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
18915 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
18916 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
18917 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
18918 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
18919 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
18920 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
18921 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
18922 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
18923 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
18924 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
18925 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
18926 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
18927 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
18928 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
18929 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
18930 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
18931 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
18932 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
18933 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
18934 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
18935 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
18936 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
18937 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
18938 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
18939 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
18940 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
18941 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
18942 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
18943 stringt.ads stringt.h style.adb style.ads stylesw.adb
18944 stylesw.ads switch.adb switch.ads sysdep.c system.ads
18945 table.adb table.ads targparm.adb targparm.ads targtyps.c
18946 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
18947 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
18948 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
18949 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
18950 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
18951 usage.ads utils.c utils2.c validsw.adb validsw.ads
18952 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
18953 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
18954 xtreeprs.adb: Correct statements in comments about maintainership
18955 of GNAT.
18956
18957 2002-09-23 Zack Weinberg <zack@codesourcery.com>
18958
18959 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
18960 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
18961 * gnatvsn.ads: Gnat_Version_String is now a function.
18962 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
18963 copy the C version_string into a String and return it.
18964 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
18965 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
18966 Remove pragma Ident (Gnat_Version_String). If this was the
18967 sole use of package Gnatvsn, remove the with statement too.
18968 * gnat1drv.adb: Tweak -gnatv output.
18969
18970 2002-09-17 Richard Henderson <rth@redhat.com>
18971
18972 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
18973 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
18974 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
18975 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
18976 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
18977 and real_2expN instead of a loop.
18978 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
18979 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
18980
18981 2002-08-25 Andre Leis <a.leis@gmx.net>
18982 David Billinghurst (David.Billinghurst@riotinto.com>
18983
18984 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
18985
18986 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
18987
18988 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
18989 Remove $(CONFIG_H) dependency.
18990
18991 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
18992
18993 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
18994
18995 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18996
18997 * adadecode.c (ada_demangle): Use xstrdup in lieu of
18998 xmalloc/strcpy.
18999 * misc.c (gnat_decode_option): Likewise.
19000
19001 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
19002
19003 * make.adb (Add_Switch): Make Generic_Position a procedure. The
19004 function approach did not work well because of a side effect (the
19005 function call could reallocate the table which was being indexed
19006 using its result). Fixes ada/4851. [RESURRECTED]
19007
19008 2002-07-01 Roger Sayle <roger@eyesopen.com>
19009
19010 * ada/utils.c (builtin_function): Accept an additional parameter.
19011
19012 2002-06-28 Andreas Jaeger <aj@suse.de>
19013
19014 PR ada/7144
19015 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
19016 <adi@thur.de>.
19017
19018 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19019
19020 * Makefile.in (SHELL): Set to @SHELL@.
19021
19022 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19023
19024 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
19025 array size calculation.
19026
19027 2002-06-04 Andreas Jaeger <aj@suse.de>
19028
19029 * Make-lang.in (gnatbind): Readd rule that has been lost in last
19030 patch.
19031
19032 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
19033
19034 Merge from pch-branch:
19035
19036 * config-lang.in (gtfiles): Add ada-tree.h.
19037 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
19038 (SET_TYPE_MODULUS): New.
19039 (SET_TYPE_INDEX): New.
19040 (SET_TYPE_DIGITS_VALUE): New.
19041 (SET_TYPE_RM_SIZE): New.
19042 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
19043 (SET_TYPE_ADA_SIZE): New.
19044 (SET_TYPE_ACTUAL_BOUNDS): New.
19045 (SET_DECL_CONST_CORRESPONDING_VAR): New.
19046 (SET_DECL_ORIGINAL_FIELD): New.
19047 (TREE_LOOP_ID): Correct typo.
19048 * decl.c: Use new macros.
19049 * utils.c: Include debug.h, use new macros.
19050 * utils2.c: Use new macros.
19051
19052 * ada-tree.h: Update all macros for new tree description.
19053 (struct tree_loop_id): New.
19054 (union lang_tree_node): New.
19055 (struct lang_decl): New.
19056 (struct lang_type): New.
19057 * misc.c (gnat_mark_tree): Delete.
19058 (LANG_HOOKS_MARK_TREE): Delete.
19059 * trans.c (tree_transform): No longer any need to cast
19060 for TREE_LOOP_ID.
19061
19062 * utils.c (struct language_function): New dummy structure.
19063
19064 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
19065 (misc.o): Likewise.
19066 (utils.o): Likewise; also gtype-ada.h.
19067 * Make-lang.in (gnat1): Add dependency on s-gtype.
19068 (gnatbind): Add dependency on $(CONFIG_H).
19069 * utils.c: Correct last #include.
19070 (stuct e_stack): Remove unnecessary 'static'.
19071 (mark_e_stack): Remove unused prototype.
19072
19073 * scn-nlit.adb: Remove whitespace after version number to
19074 keep lines under 80 chars.
19075 * snames.adb: Likewise.
19076 * treepr.ads: Likewise.
19077
19078 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
19079 (misc.o): Likewise.
19080 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
19081 * config-lang.in (gtfiles): New.
19082 * decl.c: Use gengtype for roots.
19083 * gigi.h: Use gengtype for roots.
19084 * trans.c: Use gengtype for roots.
19085 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
19086
19087 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
19088
19089 * misc.c (gnat_init): Adjust setting of internal_error_function.
19090
19091 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
19092
19093 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
19094 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
19095 gnat_ug_wnt.texi: Regenerate.
19096
19097 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
19098
19099 * 5ntaprop.adb (with System.OS_Primitives): Remove.
19100
19101 * cstreams.c (max_path_len): Move from here ...
19102 * adaint.c (__gnat_max_path_len): ... to here.
19103 * adaint.c (__gnat_max_path_len): Declare.
19104 * g-dirope.adb (Max_Path): Adjust.
19105 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
19106 * i-cstrea.ads (max_path_len): Adjust.
19107 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
19108 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
19109
19110 * Makefile.in, Make-lang.in: Documentation is now built in
19111 Make-lang.in. Store Info and generated Texinfo files in the
19112 source directory.
19113 * gnat_ug.texi: Remove CVS keywords, correct version number.
19114 Set file name correctly.
19115
19116 * gnat_ug_*.texi: Add.
19117 * .cvsignore: Ignore generated Texinfo files.
19118
19119 2002-05-30 Zack Weinberg <zack@codesourcery.com>
19120
19121 * ada.h: Add MI guard macro.
19122 (SUBTYPE): Define constants with an anonymous enum, not static
19123 const variables.
19124 (IN): Cast constants to appropriate type before use.
19125
19126 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
19127
19128 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
19129 (experimental)".
19130
19131 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19132
19133 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
19134 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
19135 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
19136 (ALL_ADA_CFLAGS): Likewise.
19137 (ADA_INCLUDES): Likewise.
19138 Adapt for new working dir.
19139 (GNATBIND): Use Makefile.in version.
19140 (.SUFFIXES): Copy from Makefile.in.
19141 (ada-warn): Define.
19142 (.adb.o, .ads.o): Copy from Makefile.in.
19143 Added $(OUTPUT_OPTION).
19144 (GNAT1_C_OBJS): Moved from Makefile.in.
19145 Prefix with ada subdir.
19146 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
19147 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
19148 Adapt for new working dir.
19149 (EXTRA_GNATBIND_OBJS): Likewise.
19150 (ADA_BACKEND): Moved from Makefile.in.
19151 Renamed to avoid conflict with global BACKEND.
19152 Use that one.
19153 (TARGET_ADA_SRCS): Moved from Makefile.in.
19154 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
19155 Use ADA_BACKEND.
19156 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
19157 (ada_extra_files): Moved from Makefile.in.
19158 Prefix with ada subdir.
19159 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
19160 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
19161 (ada/nmake.ads): Likewise.
19162 (update-sources): Moved from Makefile.in.
19163 Prefix with ada subdir.
19164 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
19165 (ADA_TREE_H): Likewise.
19166 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
19167 (ada/memtrack.o): Likewise.
19168 (ada/adadecode.o): Likewise.
19169 Update dependencies.
19170 (ada/adaint.o): New.
19171 (ada/argv.o): Moved from Makefile.in.
19172 Prefix with ada subdir.
19173 Update dependencies.
19174 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
19175 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
19176 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
19177 Prefix with ada subdir.
19178 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
19179 (GNAT DEPENDENCIES): Regenerate.
19180 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
19181 toplevel Makefile.in.
19182 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
19183 (TARGET_ADA_SRCS): Removed.
19184 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
19185 (GNATBIND_OBJS): Likewise.
19186 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
19187 (BACKEND): Removed.
19188 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
19189 (TREE_H): Likewise.
19190 (ada_extra_files): Likewise.
19191 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
19192 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
19193 (update-sources): Likewise.
19194 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
19195 (ADA_TREE_H): Likewise.
19196 (adadecoce.o): Likewise.
19197 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
19198 (GNAT DEPENDENCIES): Likewise.
19199
19200 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19201
19202 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
19203 * Makefile.in: Likewise.
19204
19205 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
19206
19207 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
19208 Restore $(CONFIG_H) and prefix.o dependencies.
19209 (ada.stage[1-4]): Depend on stage?-start.
19210
19211 * Makefile.in (b_gnatb.c): Depend on interfac.o.
19212
19213 2002-05-02 Jim Wilson <wilson@redhat.com>
19214
19215 * utils.c (finish_record_type): Change record_size to record_type.
19216
19217 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
19218
19219 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
19220 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
19221 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
19222
19223 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
19224
19225 * misc.c (gnat_parse_file): Update.
19226
19227 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
19228
19229 * misc.c (gnat_init): Don't set lang_attribute_common.
19230
19231 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
19232
19233 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
19234
19235 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
19236
19237 * gnat_ug.texi: New file.
19238
19239 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
19240 instead of gfdl.texi
19241
19242 * xgnatug.adb, ug_words: New files.
19243
19244 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
19245 gnat_rm and gnat-style manuals.
19246
19247 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
19248
19249 * gigi.h (incomplete_type_error): Remove.
19250 * utils.c (incomplete_type_error): Remove.
19251
19252 2002-04-16 Mark Mitchell <mark@codesourcery.com>
19253
19254 * trans.c (tree_transform): Add has_scope argument to
19255 expand_start_stmt_expr.
19256
19257 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
19258
19259 * gigi.h (truthvalue_conversion): Rename.
19260 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
19261 * trans.c (tree_transform): Update.
19262 * utils2.c (truthvalue_conversion): Rename, update.
19263 (build_binary_op, build_unary_op): Update.
19264
19265 2002-04-04 Laurent Guerby <guerby@acm.org>
19266
19267 * make.adb: Implement -margs, remove restriction about file name placement.
19268 * makeusg.adb: Documentation update.
19269 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
19270 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
19271
19272 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
19273
19274 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
19275 (builtin_function): Similarly.
19276
19277 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
19278
19279 * decl.c (gnat_to_gnu_entity): Update.
19280 * gigi.h (mark_addressable): Rename.
19281 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
19282 * trans.c (tree_transform): Update.
19283 * utils.c (create_var_decl): Update.
19284 * util2.c (build_binary_op, build_unary_op,
19285 fill_vms_descriptor): Update.
19286 (mark_addressable): Rename, update.
19287
19288 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
19289
19290 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
19291 Rename.
19292 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
19293 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
19294 * trans.c (tree_transform, convert_with_check): Update.
19295 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
19296 Rename.
19297
19298 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
19299
19300 * gigi.h (finish_incomplete_decl): Rename.
19301 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
19302 * utils.c (gnat_init_decl_processing): Don't set hook.
19303 (finish_incomplete_decl): Rename.
19304
19305 2002-03-29 Andreas Schwab <schwab@suse.de>
19306
19307 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
19308 directory.
19309
19310 2001-03-28 Robert Dewar <dewar@gnat.com>
19311
19312 * checks.ads:
19313 (Remove_Checks): New procedure
19314
19315 * checks.adb:
19316 (Remove_Checks): New procedure
19317
19318 * exp_util.adb:
19319 Use new Duplicate_Subexpr functions
19320 (Duplicate_Subexpr_No_Checks): New procedure
19321 (Duplicate_Subexpr_No_Checks_Orig): New procedure
19322 (Duplicate_Subexpr): Restore original form (checks duplicated)
19323 (Duplicate_Subexpr): Call Remove_Checks
19324
19325 * exp_util.ads:
19326 (Duplicate_Subexpr_No_Checks): New procedure
19327 (Duplicate_Subexpr_No_Checks_Orig): New procedure
19328 Add 2002 to copyright notice
19329
19330 * sem_util.adb: Use new Duplicate_Subexpr functions
19331
19332 * sem_eval.adb:
19333 (Eval_Indexed_Component): This is the place to call
19334 Constant_Array_Ref and to replace the value. We simply merge
19335 the code of this function in here, since it is now no longer
19336 used elsewhere. This fixes the problem of the back end not
19337 realizing we were clever enough to see that this was
19338 constant.
19339 (Expr_Val): Remove call to Constant_Array_Ref
19340 (Expr_Rep_Val): Remove call to Constant_Array_Ref
19341 Minor reformatting
19342 (Constant_Array_Ref): Deal with string literals (patch
19343 suggested by Zack Weinberg on the gcc list)
19344
19345 2001-03-28 Ed Schonberg <schonber@gnat.com>
19346
19347 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
19348 Duplicate_Subexpr_Move_Checks.
19349
19350 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
19351 Duplicate_Subexpr_Move_Checks.
19352
19353 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
19354 value of array exists before retrieving it (it may a private
19355 protected component in a function).
19356
19357 2002-03-28 Geert Bosch <bosch@gnat.com>
19358
19359 * prj-pp.adb : New file.
19360
19361 * prj-pp.ads : New file.
19362
19363 2002-03-28 Andreas Jaeger <aj@suse.de>
19364
19365 * Makefile.in (stamp-sdefault): Fix path for Makefile.
19366
19367 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
19368
19369 * misc.c (gnat_expand_expr): Move prototype.
19370
19371 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
19372
19373 * misc.c (insert_default_attributes): Remove.
19374
19375 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
19376
19377 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
19378 (gnat_init): Don't set hook.
19379 (gnat_expand_expr): Fix prototype.
19380
19381 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
19382
19383 * misc.c (ggc_p): Remove.
19384
19385 2002-03-27 Geert Bosch <bosch@gnat.com>
19386
19387 * prj-makr.ads, prj-makr.adb : New files.
19388
19389 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
19390
19391 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
19392 (lang_mark_tree): Make static, rename.
19393
19394 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
19395
19396 * misc.c (maybe_build_cleanup): Remove.
19397
19398 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
19399
19400 * gigi.h (yyparse): Remove.
19401
19402 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
19403
19404 * gnat_rm.texi: Sync with ACT version.
19405 (From Ben Brosgol <brosgol@gnat.com>)
19406
19407 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
19408
19409 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
19410 (gnat_init): Remove old hook.
19411
19412 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
19413
19414 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
19415 (yyparse): Rename gnat_parse_file.
19416
19417 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
19418
19419 Delete all lines containing "$Revision:".
19420 * xeinfo.adb: Don't look for revision numbers.
19421 * xnmake.adb: Likewise.
19422 * xsinfo.adb: Likewise.
19423 * xsnames.adb: Likewise.
19424 * xtreeprs.adb: Likewise.
19425
19426 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19427
19428 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
19429 gnat_tree_code_name): Delete.
19430 (tree_code_type, tree_code_length, tree_code_name): Define.
19431 (gnat_init): Don't try to copy into the various tree_code
19432 arrays.
19433
19434 2002-03-11 Richard Henderson <rth@redhat.com>
19435
19436 * Makefile.in (.NOTPARALLEL): Add fake tag.
19437
19438 2002-03-07 Geert Bosch <bosch@gnat.com>
19439
19440 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
19441 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
19442 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
19443 switch-m.adb, switch-m.ads : New files.
19444
19445 2002-03-07 Geert Bosch <bosch@gnat.com>
19446
19447 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
19448 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
19449 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
19450 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
19451 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
19452 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
19453 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
19454 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
19455 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
19456 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
19457 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
19458 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
19459 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
19460 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
19461 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
19462 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
19463 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
19464 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
19465 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
19466 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
19467 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
19468 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
19469 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
19470 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
19471 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
19472 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
19473 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
19474 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
19475 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
19476 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
19477 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
19478 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
19479 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
19480 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
19481 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
19482 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
19483 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
19484 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
19485 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
19486 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
19487 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
19488 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
19489 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
19490 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
19491 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
19492 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
19493 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
19494 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
19495 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
19496 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
19497 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
19498 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
19499 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
19500 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
19501 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
19502 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
19503 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
19504 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
19505 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
19506 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
19507 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
19508 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
19509 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
19510 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
19511 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
19512 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
19513 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
19514 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
19515 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
19516 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
19517 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
19518 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
19519 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
19520 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
19521 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
19522 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
19523 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
19524 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
19525 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
19526 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
19527 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
19528 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
19529 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
19530 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
19531 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
19532 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
19533 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
19534 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
19535 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
19536 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
19537 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
19538 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
19539 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
19540 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
19541 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
19542 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
19543 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
19544
19545 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
19546 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
19547 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
19548 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
19549
19550 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
19551 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
19552
19553 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
19554 to mdll-fil.ad[bs] and mdll-util.ad[bs]
19555
19556 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
19557 from mdllfile.ad[bs] and mdlltool.ad[bs]
19558
19559 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19560
19561 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
19562 lieu of explicit sizeof/sizeof.
19563
19564 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
19565
19566 * misc.c (copy_lang_decl): Remove.
19567
19568 2002-02-27 Zack Weinberg <zack@codesourcery.com>
19569
19570 * misc.c: Delete traditional-mode-related code copied from the
19571 C front end but not used, or used only to permit the compiler
19572 to link.
19573
19574 2002-02-07 Richard Henderson <rth@redhat.com>
19575
19576 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
19577 * adaint.h (__gnat_to_gm_time): Update prototype.
19578
19579 2002-01-30 Richard Henderson <rth@redhat.com>
19580
19581 * trans.c (tree_transform) [N_Loop_Statement]: Use
19582 expand_exit_loop_top_cond.
19583
19584 2001-12-23 Richard Henderson <rth@redhat.com>
19585
19586 * utils.c (end_subprog_body): Push GC context around
19587 rest_of_compilation for nested functions.
19588
19589 2001-12-23 Richard Henderson <rth@redhat.com>
19590
19591 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
19592
19593 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
19594
19595 * gnat-style.texi (Declarations and Types): Remove ancient style
19596 rule which was mandated by code generation issues.
19597
19598 * gnat-style.texi (header): Add @dircategory, @direntry.
19599 (title page): Remove date.
19600 (general) Add @./@: where approriate, and two spaces after the
19601 full stop at the end of a sentence. Use @samp markup when
19602 referring concrete lexical entities (keywords, attribute names
19603 etc.), and @syntax for ARM grammar elements. Use @r for English
19604 text in comments. Use @emph for emphasis. Change "if-statements"
19605 etc. to "if statements" (without @samp). Break long lines. Make
19606 casing of section names consistent.
19607 (Identifiers): Use @samp markup for variable names.
19608 (Comments): Use @samp markup for comment characters. Line-end
19609 comments may follow any Ada code, not just statements. Fix
19610 misspelling of "Integer" as "integer".
19611 (Loop statements): Do not use variable name "I", use "J".
19612 (Subprogram Declarations): Document alignment.
19613 (Subprogram Bodies, Block statements): Document empty line before
19614 "begin".
19615
19616 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
19617
19618 * make.adb (Add_Switch): Make Generic_Position a procedure. The
19619 function approach did not work well because of a side effect (the
19620 function call could reallocate the table which was being indexed
19621 using its result). Fixes ada/4851.
19622
19623 2001-12-19 Robert Dewar <dewar@gnat.com>
19624
19625 * bindgen.adb: Minor reformatting
19626
19627 * cstand.adb: Minor reformatting
19628
19629 * fmap.adb: Minor reformatting
19630 Change name from Add for Add_To_File_Map (Add is much too generic)
19631 Change Path_Name_Of to Mapped_Path_Name
19632 Change File_Name_Of to Mapped_File_Name
19633 Fix copyright dates in header
19634
19635 * fmap.ads:
19636 Change name from Add for Add_To_File_Map (Add is much too generic)
19637 Change Path_Name_Of to Mapped_Path_Name
19638 Change File_Name_Of to Mapped_File_Name
19639 Fix copyright dates in header
19640
19641 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
19642 Add use clause for Fmap.
19643
19644 * make.adb: Minor reformatting
19645
19646 * osint.adb: Minor reformatting. Change of names in Fmap.
19647 Add use clause for Fmap.
19648
19649 * prj-env.adb: Minor reformatting
19650
19651 * prj-env.ads: Minor reformatting
19652
19653 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
19654 error found (there were odd exceptions to this general rule in
19655 -gnatec/-gnatem processing)
19656
19657 2001-12-19 Olivier Hainque <hainque@gnat.com>
19658
19659 * raise.c (__gnat_eh_personality): Exception handling personality
19660 routine for Ada. Still in rough state, inspired from the C++ version
19661 and still containing a bunch of debugging artifacts.
19662 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
19663 inspired from the C++ library.
19664
19665 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
19666 exception handling integration.
19667
19668 2001-12-19 Arnaud Charlet <charlet@gnat.com>
19669
19670 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
19671 (HIE_SOURCES): Add s-secsta.ad{s,b}.
19672 (HIE_OBJS): Add s-fat*.o
19673 (RAVEN_SOURCES): Remove files that are no longer required. Add
19674 interrupt handling files.
19675 (RAVEN_MOD): Removed, no longer needed.
19676
19677 2001-12-19 Robert Dewar <dewar@gnat.com>
19678
19679 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
19680 Add 2001 to copyright date
19681
19682 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
19683 need to force universal inlining for these cases.
19684
19685 2001-12-19 Arnaud Charlet <charlet@gnat.com>
19686
19687 * s-taprob.adb: Minor clean ups so that this unit can be used in
19688 Ravenscar HI.
19689
19690 * exp_ch7.adb: Allow use of secondary stack in HI mode.
19691 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
19692
19693 2001-12-19 Vincent Celier <celier@gnat.com>
19694
19695 * prj-tree.ads (Project_Node_Record): Add comments for components
19696 Pkg_Id and Case_Insensitive.
19697
19698 2001-12-19 Pascal Obry <obry@gnat.com>
19699
19700 * g-socket.adb: Minor reformatting. Found while reading code.
19701
19702 2001-12-19 Robert Dewar <dewar@gnat.com>
19703
19704 * prj-tree.ads: Minor reformatting
19705
19706 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
19707
19708 * config-lang.in (diff_excludes): Remove.
19709
19710 2001-12-17 Ed Schonberg <schonber@gnat.com>
19711
19712 * sem_res.adb (Resolve_Selected_Component): do not generate a
19713 discriminant check if the selected component is a component of
19714 the argument of an initialization procedure.
19715
19716 * trans.c (tree_transform, case of arithmetic operators): If result
19717 type is private, the gnu_type is the base type of the full view,
19718 given that the full view itself may be a subtype.
19719
19720 2001-12-17 Robert Dewar <dewar@gnat.com>
19721
19722 * sem_res.adb: Minor reformatting
19723
19724 * trans.c (tree_transform, case N_Real_Literal): Add missing third
19725 parameter in call to Machine (unknown horrible effects from this
19726 omission).
19727
19728 * urealp.h: Add definition of Round_Even for call to Machine
19729 Add third parameter for Machine
19730
19731 2001-12-17 Ed Schonberg <schonber@gnat.com>
19732
19733 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
19734 predefined units in No_Run_Time mode.
19735
19736 2001-12-17 Richard Kenner <kenner@gnat.com>
19737
19738 * misc.c (insn-codes.h): Now include.
19739
19740 2001-12-17 Olivier Hainque <hainque@gnat.com>
19741
19742 * a-except.adb: Preparation work for future integration of the GCC 3
19743 exception handling mechanism
19744 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
19745 to factorize previous code sequences and make them externally callable,
19746 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
19747 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
19748 Use the new notification routines.
19749
19750 2001-12-17 Emmanuel Briot <briot@gnat.com>
19751
19752 * prj-tree.ads (First_Choice_Of): Document the when others case
19753
19754 2001-12-17 Arnaud Charlet <charlet@gnat.com>
19755
19756 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
19757 HI-E mode, in order to support Ravenscar profile properly.
19758
19759 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
19760 mode on 32 bits targets.
19761
19762 2001-12-17 Vincent Celier <celier@gnat.com>
19763
19764 * fmap.adb: Initial version.
19765
19766 * fmap.ads: Initial version.
19767
19768 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
19769 If search is successfully done, add to mapping.
19770
19771 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
19772
19773 * make.adb:
19774 (Gnatmake): Add new local variable Mapping_File_Name.
19775 Create mapping file when using project file(s).
19776 Delete mapping file before exiting.
19777
19778 * opt.ads (Mapping_File_Name): New variable
19779
19780 * osint.adb (Find_File): Use path name found in mapping, if any.
19781
19782 * prj-env.adb (Create_Mapping_File): New procedure
19783
19784 * prj-env.ads (Create_Mapping_File): New procedure.
19785
19786 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
19787 (Mapping_File)
19788
19789 * usage.adb: Add entry for new switch -gnatem.
19790
19791 * Makefile.in: Add dependencies for fmap.o.
19792
19793 2001-12-17 Ed Schonberg <schonber@gnat.com>
19794
19795 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
19796 is a package instantiation rewritten as a package body.
19797 (Install_Withed_Unit): Undo previous change, now redundant.
19798
19799 2001-12-17 Gary Dismukes <dismukes@gnat.com>
19800
19801 * layout.adb:
19802 (Compute_Length): Move conversion to Unsigned to callers.
19803 (Get_Max_Size): Convert Len expression to Unsigned after calls to
19804 Compute_Length and Determine_Range.
19805 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
19806 Compute_Length and Determine_Range.
19807 Above changes fix problem with length computation for supernull arrays
19808 where Max (Len, 0) wasn't getting applied due to the Unsigned
19809 conversion used by Compute_Length.
19810
19811 2001-12-17 Arnaud Charlet <charlet@gnat.com>
19812
19813 * rtsfind.ads:
19814 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
19815 System.Secondary_Stack.
19816 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
19817 in HI-E mode.
19818 Remove unused entity RE_Exception_Data.
19819
19820 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
19821
19822 * rident.ads (No_Secondary_Stack): New restriction.
19823
19824 2001-12-17 Joel Brobecker <brobecke@gnat.com>
19825
19826 * gnat_rm.texi: Fix minor typos. Found while reading the section
19827 regarding "Bit_Order Clauses" that was sent to a customer.
19828 Very interesting documentation!
19829
19830 2001-12-17 Robert Dewar <dewar@gnat.com>
19831
19832 * sem_case.adb (Choice_Image): Avoid creating improper character
19833 literal names by using the routine Set_Character_Literal_Name. This
19834 fixes bombs in certain error message cases.
19835
19836 2001-12-17 Arnaud Charlet <charlet@gnat.com>
19837
19838 * a-reatim.adb: Minor reformatting.
19839
19840 2001-12-17 Ed Schonberg <schonber@gnat.com>
19841
19842 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
19843 case where the formal is an extension of another formal in the current
19844 unit or in a parent generic unit.
19845
19846 2001-12-17 Arnaud Charlet <charlet@gnat.com>
19847
19848 * s-tposen.adb: Update comments. Minor reformatting.
19849 Minor code clean up.
19850
19851 * s-tarest.adb: Update comments. Minor code reorganization.
19852
19853 2001-12-17 Gary Dismukes <dismukes@gnat.com>
19854
19855 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
19856 when Java_VM.
19857
19858 2001-12-17 Robert Dewar <dewar@gnat.com>
19859
19860 * exp_attr.adb: Minor reformatting
19861
19862 2001-12-17 Ed Schonberg <schonber@gnat.com>
19863
19864 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
19865 derivations nested within a child unit: verify that the parent
19866 type is declared in an outer scope.
19867
19868 2001-12-17 Robert Dewar <dewar@gnat.com>
19869
19870 * sem_ch12.adb: Minor reformatting
19871
19872 2001-12-17 Ed Schonberg <schonber@gnat.com>
19873
19874 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
19875 warning if current unit is a predefined one, from which bodies may
19876 have been deleted.
19877
19878 2001-12-17 Robert Dewar <dewar@gnat.com>
19879
19880 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
19881 Fix header format. Add 2001 to copyright date.
19882
19883 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
19884 which caused CE during compilation if checks were enabled.
19885
19886 2001-12-17 Vincent Celier <celier@gnat.com>
19887
19888 * make.adb:
19889 (Switches_Of): New function
19890 (Test_If_Relative_Path): New procedure
19891 (Add_Switches): Use new function Switches_Of
19892 (Collect_Arguments_And_Compile): Use new function Switches_Of.
19893 When using a project file, test if there are any relative
19894 search path. Fail if there are any.
19895 (Gnatmake): Only add switches for the primary directory when not using
19896 a project file. When using a project file, change directory to the
19897 object directory of the main project file. When using a project file,
19898 test if there are any relative search path. Fail if there are any.
19899 When using a project file, fail if specified executable is relative
19900 path with directory information, and prepend executable, if not
19901 specified as an absolute path, with the exec directory. Make sure
19902 that only one -o switch is transmitted to the linker.
19903
19904 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
19905
19906 * prj-nmsc.adb:
19907 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
19908 when using a non standard naming scheme.
19909 (Check_Ada_Naming_Scheme): Make sure that error messages
19910 do not raise exceptions.
19911 (Is_Illegal_Append): Return True if there is no dot in the suffix.
19912 (Language_Independent_Check): Check the exec directory.
19913
19914 * prj.adb (Project_Empty): Add new component Exec_Directory
19915
19916 * prj.ads:
19917 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
19918 (Project_Data): Add component Exec_Directory
19919
19920 * snames.adb: Updated to match snames.ads revision 1.215
19921
19922 * snames.ads: Added Exec_Dir
19923
19924 2001-12-17 Robert Dewar <dewar@gnat.com>
19925
19926 * make.adb: Minor reformatting
19927
19928 * prj-nmsc.adb: Minor reformatting
19929
19930 * snames.adb: Updated to match snames.ads
19931
19932 * snames.ads: Alphebetize entries for project file
19933
19934 2001-12-17 Ed Schonberg <schonber@gnat.com>
19935
19936 * trans.c (process_freeze_entity): Do nothing if the entity is a
19937 subprogram that was already elaborated.
19938
19939 2001-12-17 Richard Kenner <kenner@gnat.com>
19940
19941 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
19942 and Esize if object is referenced via pointer.
19943
19944 2001-12-17 Ed Schonberg <schonber@gnat.com>
19945
19946 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
19947 is discrete before analyzing choices.
19948
19949 2001-12-17 Joel Brobecker <brobecke@gnat.com>
19950
19951 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
19952 containing the name of the Ada Main Program. This string is mainly
19953 intended for the debugger.
19954 (Gen_Output_File_C): Do the equivalent change when generating a C file.
19955
19956 2001-12-17 Robert Dewar <dewar@gnat.com>
19957
19958 * ali.adb: Set new Dummy_Entry field in dependency entry
19959
19960 * ali.ads: Add Dummy_Entry field to source dependency table
19961
19962 * bcheck.adb (Check_Consistency): Ignore dummy D lines
19963
19964 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
19965
19966 * lib-writ.ads: Document dummy D lines for missing files.
19967
19968 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
19969
19970 2001-12-17 Robert Dewar <dewar@gnat.com>
19971
19972 * ali.adb: Type reference does not reset current file.
19973
19974 * ali.adb: Recognize and scan renaming reference
19975
19976 * ali.ads: Add spec for storing renaming references.
19977
19978 * lib-xref.ads: Add documentation for handling of renaming references
19979
19980 * lib-xref.adb: Implement output of renaming reference.
19981
19982 * checks.adb:
19983 (Determine_Range): Document local variables
19984 (Determine_Range): Make sure Hbound is initialized. It looks as though
19985 there could be a real problem here with an uninitialized reference
19986 to Hbound, but no actual example of failure has been found.
19987
19988 2001-12-17 Laurent Pautet <pautet@gnat.com>
19989
19990 * g-socket.ads:
19991 Fix comment of Shutdown_Socket and Close_Socket. These functions
19992 should not fail silently because if they are called twice, this
19993 probably means that there is a race condition in the user program.
19994 Anyway, this behaviour is consistent with the rest of this unit.
19995 When an error occurs, an exception is raised with the error message
19996 as exception message.
19997
19998 2001-12-17 Robert Dewar <dewar@gnat.com>
19999
20000 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
20001 that it happens before modification of Sloc values for -gnatD.
20002
20003 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
20004 so that it happens before modification of Sloc values for -gnatD.
20005
20006 * switch.adb: Minor reformatting
20007
20008 2001-12-15 Richard Henderson <rth@redhat.com>
20009
20010 * sem_ch7.adb: Wrap comment.
20011
20012 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
20013
20014 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
20015 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
20016 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
20017 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
20018 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
20019 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
20020 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
20021 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
20022 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
20023 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
20024 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
20025 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
20026 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
20027 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
20028 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
20029 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
20030 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
20031 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
20032 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
20033 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
20034 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
20035 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
20036 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
20037 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
20038 spelling errors.
20039
20040 2001-12-14 Vincent Celier <celier@gnat.com>
20041
20042 * osint.adb(Create_Debug_File): When an object file is specified,
20043 put the .dg file in the same directory as the object file.
20044
20045 2001-12-14 Robert Dewar <dewar@gnat.com>
20046
20047 * osint.adb: Minor reformatting
20048
20049 * lib-xref.adb (Output_Instantiation): New procedure to generate
20050 instantiation references.
20051
20052 * lib-xref.ads: Add documentation of handling of generic references.
20053
20054 * ali.adb (Read_Instantiation_Ref): New procedure to read
20055 instantiation references
20056
20057 * ali.ads: Add spec for storing instantiation references
20058
20059 * bindusg.adb: Minor reformatting
20060
20061 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20062
20063 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20064
20065 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20066
20067 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
20068
20069 * csets.ads:
20070 Fix header format
20071 Add 2001 to copyright date
20072 Add entry for Latin-5 (Cyrillic ISO-8859-5)
20073
20074 2001-12-14 Matt Gingell <gingell@gnat.com>
20075
20076 * adaint.c: mktemp is a macro on Lynx and can not be used as an
20077 expression.
20078
20079 2001-12-14 Richard Kenner <kenner@gnat.com>
20080
20081 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
20082 if operand is CONSTRUCTOR.
20083
20084 2001-12-14 Ed Schonberg <schonber@gnat.com>
20085
20086 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
20087 before emiting check on right-hand side, so that exception information
20088 is correct.
20089
20090 2001-12-14 Richard Kenner <kenner@gnat.com>
20091
20092 * utils.c (create_var_decl): Throw away initializing expression
20093 if just annotating types and non-constant.
20094
20095 2001-12-14 Vincent Celier <celier@gnat.com>
20096
20097 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
20098 Default_Ada_...
20099
20100 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
20101 Remove functions.
20102 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
20103
20104 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
20105 Remove functions.
20106 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
20107
20108 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
20109
20110 * ChangeLog: Remove piece of diff output.
20111
20112 2001-12-14 Geert Bosch <bosch@gnat.com>
20113
20114 * config-lang.in: Update copyright notice
20115
20116 * layout.adb: Remove commented out code.
20117
20118 * mdllfile.ads: Update copyright notice. Fix header format.
20119
20120 * sem_case.ads: Likewise.
20121
20122 * sem_ch3.adb: Minor reformatting.
20123
20124 2001-12-12 Geert Bosch <bosch@gnat.com>
20125
20126 * freeze.ads: Update copyright date.
20127
20128 * g-comlin.ads: Minor reformatting.
20129
20130 * gnat-style.texi: Fix typo.
20131
20132 2001-12-12 Geert Bosch <bosch@gnat.com>
20133
20134 * einfo.h: Regenerate.
20135
20136 2001-12-12 Ed Schonberg <schonber@gnat.com>
20137
20138 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
20139 on known node types, rather than untyped fields. Further cleanups.
20140
20141 2001-12-12 Robert Dewar <dewar@gnat.com>
20142
20143 * sem_ch12.adb:
20144 (Save_Entity_Descendant): Minor comment update.
20145 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
20146 of an N_Attribute_Reference node. As per note below, this does not
20147 eliminate need for Associated_Node in attribute ref nodes.
20148 (Associated_Node): Documentation explicitly mentions attribute
20149 reference nodes, since this field is used in such nodes.
20150
20151 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
20152
20153 2001-12-12 Robert Dewar <dewar@gnat.com>
20154
20155 * s-stalib.adb: Add more comments on with statements being needed
20156
20157 * par-ch12.adb: Minor reformatting
20158
20159 * prj-dect.ads: Fix copyright header
20160
20161 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
20162 inputs fit in 32 bits, but the result still overflows.
20163
20164 * s-fatgen.ads: Minor comment improvement
20165
20166 2001-12-12 Ed Schonberg <schonber@gnat.com>
20167
20168 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
20169 formal derived type, look for an inherited component from the full
20170 view of the parent, if any.
20171
20172 2001-12-12 Robert Dewar <dewar@gnat.com>
20173
20174 * checks.ads (Apply_Alignment_Check): New procedure.
20175
20176 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
20177 ensure that the alignment of objects with address clauses is
20178 appropriate, and raise PE if not.
20179
20180 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
20181 Exp_Pakd.Known_Aligned_Enough
20182
20183 * mdllfile.ads: Minor reformatting
20184
20185 * mlib-fil.ads: Minor reformatting
20186
20187 2001-12-12 Ed Schonberg <schonber@gnat.com>
20188
20189 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
20190 fix to any component reference if enclosing record has non-standard
20191 representation.
20192
20193 2001-12-12 Vincent Celier <celier@gnat.com>
20194
20195 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
20196 Iteration
20197
20198 2001-12-12 Ed Schonberg <schonber@gnat.com>
20199
20200 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
20201 sem_attr.
20202
20203 2001-12-12 Robert Dewar <dewar@gnat.com>
20204
20205 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
20206
20207 2001-12-12 Emmanuel Briot <briot@gnat.com>
20208
20209 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
20210 and it adds dependencies to system.io.
20211
20212 2001-12-12 Pascal Obry <obry@gnat.com>
20213
20214 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
20215 variable name.
20216
20217 2001-12-11 Ed Schonberg <schonber@gnat.com>
20218
20219 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
20220 that is the parent of other generics, the instance body replaces the
20221 instance node. Retrieve the instance of the spec, which is the one
20222 that is visible in clients and within the body.
20223
20224 2001-12-11 Vincent Celier <celier@gnat.com>
20225
20226 * gnatmain.adb: Initial version.
20227
20228 * gnatmain.ads: Initial version.
20229
20230 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
20231
20232 * snames.adb: Updated to match snames.ads.
20233
20234 * snames.ads: Added Gnatstub.
20235
20236 2001-12-11 Vincent Celier <celier@gnat.com>
20237
20238 * prj-attr.adb (Initialization_Data): Change name from
20239 Initialisation_Data.
20240
20241 2001-12-11 Emmanuel Briot <briot@gnat.com>
20242
20243 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
20244 + and * applied to backslashed expressions like \r.
20245
20246 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
20247
20248 * g-os_lib.ads: String_List type added, Argument_List type is now
20249 subtype of String_List.
20250
20251 2001-12-11 Robert Dewar <dewar@gnat.com>
20252
20253 * g-os_lib.ads: Change copyright to FSF
20254 Add comments for String_List type
20255
20256 2001-12-11 Vincent Celier <celier@gnat.com>
20257
20258 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
20259 string to the buffer).
20260
20261 2001-12-11 Ed Schonberg <schonber@gnat.com>
20262
20263 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
20264 sem_attr.
20265
20266 * sem_attr.adb: Simplify previous fix for Address.
20267 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
20268 to avoid anomalies where the bound of the type appears to raise
20269 constraint error.
20270
20271 2001-12-11 Robert Dewar <dewar@gnat.com>
20272
20273 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
20274 handled.
20275
20276 2001-12-11 Ed Schonberg <schonber@gnat.com>
20277
20278 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
20279 renamed unit before checking for recursive instantiations.
20280
20281 2001-12-11 Emmanuel Briot <briot@gnat.com>
20282
20283 * prj.ads: Add comments for some of the fields.
20284
20285 2001-12-11 Robert Dewar <dewar@gnat.com>
20286
20287 * lib-xref.adb (Output_Refs): Don't output type references outside
20288 the main unit if they are not otherwise referenced.
20289
20290 2001-12-11 Ed Schonberg <schonber@gnat.com>
20291
20292 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
20293 code and diagnose additional illegal uses
20294
20295 * sem_util.adb (Is_Object_Reference): An indexed component is an
20296 object only if the prefix is.
20297
20298 2001-12-11 Vincent Celier <celier@gnat.com>
20299
20300 * g-diopit.adb: Initial version.
20301
20302 * g-diopit.ads: Initial version.
20303
20304 * g-dirope.adb:
20305 (Expand_Path): Avoid use of Unbounded_String
20306 (Find, Wildcard_Iterator): Moved to child package Iteration
20307
20308 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
20309
20310 2001-12-11 Robert Dewar <dewar@gnat.com>
20311
20312 * sem_attr.adb: Minor reformatting
20313
20314 2001-12-11 Ed Schonberg <schonber@gnat.com>
20315
20316 * sem_ch3.adb: Clarify some ???.
20317
20318 2001-12-11 Robert Dewar <dewar@gnat.com>
20319
20320 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
20321 Exp_Pakd.Known_Aligned_Enough
20322
20323 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
20324 version is moved to Exp_Ch13.
20325
20326 2001-12-11 Robert Dewar <dewar@gnat.com>
20327
20328 * einfo.ads: Minor reformatting
20329
20330 * exp_ch5.adb: Add comment for previous.change
20331
20332 * ali.adb: New interface for extended typeref stuff.
20333
20334 * ali.ads: New interface for typeref stuff.
20335
20336 * checks.adb (Apply_Alignment_Check): New procedure.
20337
20338 * debug.adb: Add -gnatdM for modified ALI output
20339
20340 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
20341
20342 * lib-xref.adb: Extend generation of <..> notation to cover
20343 subtype/object types. Note that this is a complete rewrite,
20344 getting rid of the very nasty quadratic algorithm previously
20345 used for derived type output.
20346
20347 * lib-xref.ads: Extend description of <..> notation to cover
20348 subtype/object types. Uses {..} for these other cases.
20349 Also use (..) for pointer types.
20350
20351 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
20352
20353 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
20354 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
20355
20356 2001-12-11 Vincent Celier <celier@gnat.com>
20357
20358 * gnatcmd.adb:
20359 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
20360 Changed /BIND_ONLY to /ACTIONS=BIND
20361 Changed /LINK_ONLY to /ACTIONS=LINK
20362
20363 2001-12-11 Ed Schonberg <schonber@gnat.com>
20364
20365 * sem_ch8.adb (Find_Selected_Component): improved search for a
20366 candidate package in case of error.
20367
20368 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
20369 chain back on scope stack before reinstalling use clauses.
20370
20371 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
20372 is enabled, do not kill the code for the condition, to preserve
20373 warning.
20374
20375 2001-12-11 Robert Dewar <dewar@gnat.com>
20376
20377 * checks.adb (Insert_Valid_Check): Apply validity check to expression
20378 of conversion, not to result of conversion.
20379
20380 2001-12-11 Ed Schonberg <schonber@gnat.com>
20381
20382 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
20383 before freezing parent. If the declarations are mutually recursive,
20384 an access to the current record type may be frozen before the
20385 derivation is complete.
20386
20387 2001-12-05 Vincent Celier <celier@gnat.com>
20388
20389 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
20390 -c /COMPILE_ONLY, -l /LINK_ONLY
20391
20392 * opt.ads:
20393 (Bind_Only): New Flag
20394 (Link_Only): New flag
20395
20396 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
20397 and -l (Link_Only)
20398
20399 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
20400
20401 * make.adb:
20402 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
20403 (Gnatmake): Set the step flags. Only perform a step if the
20404 corresponding step flag is True.
20405 (Scan_Make_Arg): Reset the bind and link step flags when -u
20406 or -gnatc has been specified.
20407
20408 2001-12-05 Ed Schonberg <schonber@gnat.com>
20409
20410 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
20411 get bounds from right operand.
20412
20413 * sem_eval.adb: Minor reformatting
20414
20415 * exp_util.adb (Make_Literal_Range): use bound of literal rather
20416 than Index'First, its lower bound may be different from 1.
20417
20418 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
20419 and C48009J
20420
20421 2001-12-05 Vincent Celier <celier@gnat.com>
20422
20423 * prj-nmsc.adb Minor reformatting
20424
20425 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
20426 set and libraries are not supported.
20427
20428 2001-12-05 Ed Schonberg <schonber@gnat.com>
20429
20430 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
20431 private view explicitly, so the back-end can treat as a global
20432 when appropriate.
20433
20434 2001-12-05 Ed Schonberg <schonber@gnat.com>
20435
20436 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
20437 unit, always replace instance node with new body, for ASIS use.
20438
20439 2001-12-05 Vincent Celier <celier@gnat.com>
20440
20441 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
20442 libraries are not supported and both attributes Library_Name and
20443 Library_Dir are specified.
20444
20445 * prj-proc.adb (Expression): Set location of Result to location of
20446 first term.
20447
20448 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
20449 (prj-nmsc is now importing MLib.Tgt)
20450
20451 * prj-proc.adb: Put the change indicated above that was forgotten.
20452
20453 2001-12-05 Robert Dewar <dewar@gnat.com>
20454
20455 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
20456
20457 2001-12-05 Ed Schonberg <schonber@gnat.com>
20458
20459 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
20460 constraint, introduce explicit subtype declaration and derive from it.
20461
20462 * sem_ch3.adb: Minor reformatting
20463
20464 2001-12-05 Robert Dewar <dewar@gnat.com>
20465
20466 * checks.adb (Determine_Range): Increase cache size for checks.
20467 Minor reformatting
20468
20469 * exp_ch6.adb: Minor reformatting
20470 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
20471 a parameter whose root type is System.Address, since treating such
20472 subprograms as pure in the code generator is almost surely a mistake
20473 that will lead to unexpected results.
20474
20475 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
20476 change handling of conversions.
20477
20478 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
20479
20480 2001-12-05 Ed Schonberg <schonber@gnat.com>
20481
20482 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
20483 aggregate with static wrong size, attach generated Raise node to
20484 declaration.
20485
20486 2001-12-05 Robert Dewar <dewar@gnat.com>
20487
20488 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
20489 Fixes compilation abandoned bomb in B24009B.
20490
20491 2001-12-05 Ed Schonberg <schonber@gnat.com>
20492
20493 * sem_ch12.adb:
20494 Document use of Associated_Node on Selected_Components.
20495 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
20496 to clarify use of untyped descendant fields.
20497
20498 2001-12-05 Robert Dewar <dewar@gnat.com>
20499
20500 * prj-dect.ads: Add ??? comment
20501 Add 2001 to copyright notice (was not done in after all)
20502
20503 * prj-part.adb: Minor reformatting. Reword one awkward error message.
20504
20505 * prj.ads: Minor reformatting throughout, and add some ??? comments
20506
20507 * snames.ads: Minor reformatting
20508
20509 2001-12-05 Geert Bosch <bosch@gnat.com>
20510
20511 * snames.adb: Autoupdate
20512
20513 2001-12-05 Vincent Celier <celier@gnat.com>
20514
20515 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
20516
20517 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
20518
20519 * prj-env.adb: Minor comment changes (modifying -> extends).
20520
20521 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
20522
20523 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
20524 Tok_Extends.
20525
20526 * prj.adb (Initialize): Change Modifying to Extends.
20527
20528 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
20529
20530 * prj.ads: Minor comment change (Modifying -> extending).
20531
20532 * snames.ads: Change modifying to extends.
20533
20534 2001-12-05 Robert Dewar <dewar@gnat.com>
20535
20536 * sem_warn.adb: Remove stuff for conditionals, we are not going to
20537 do this after all.
20538
20539 * sem_warn.ads: Remove stuff for conditionals, we are not going to
20540 do this after all. Add 2001 to copyright notice
20541
20542 2001-12-04 Geert Bosch <bosch@gnat.com>
20543
20544 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
20545
20546 2001-12-04 Robert Dewar <dewar@gnat.com>
20547
20548 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
20549 location if we already have errors. Stops some cases of cascaded
20550 errors.
20551
20552 * errout.adb: Improve comment.
20553
20554 2001-12-04 Robert Dewar <dewar@gnat.com>
20555
20556 * sem_ch12.adb:
20557 (Analyze_Formal_Type_Definition): Defend against Error.
20558 (Analyze_Formal_Subprogram): Defend against Error.
20559
20560 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
20561 remove following semicolon if present. Removes cascaded error.
20562
20563 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
20564
20565 * bindgen.adb:
20566 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
20567 exceptions equals 0.
20568 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
20569 Fixes PIWG E tests (which have to be run with -gnatL).
20570
20571 2001-12-04 Robert Dewar <dewar@gnat.com>
20572
20573 * einfo.ads: Minor reformatting
20574
20575 2001-12-04 Ed Schonberg <schonber@gnat.com>
20576
20577 * einfo.ads: Block_Node points to the identifier of the block, not to
20578 the block node itself, to preserve the link when the block is
20579 rewritten, e.g. within an if-statement with a static condition.
20580
20581 * inline.adb (Cleanup_Scopes): recover block statement from block
20582 entity using new meaning of Block_Node.
20583
20584 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
20585 identifier of block node, rather than to node itself.
20586
20587 2001-12-04 Gary Dismukes <dismukes@gnat.com>
20588
20589 * layout.adb:
20590 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
20591 (Discrimify): Go back to setting the Etypes of the selected component
20592 because the Vname component does not exist at this point and will
20593 fail name resolution. Also set Analyzed.
20594 Remove with and use of Sem_Res.
20595
20596 2001-12-04 Arnaud Charlet <charlet@gnat.com>
20597
20598 * Makefile.in: (HIE_SOURCES): add s-fat*.
20599
20600 2001-12-04 Robert Dewar <dewar@gnat.com>
20601
20602 * sem_attr.adb:
20603 (Compile_Time_Known_Attribute): New procedure.
20604 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
20605 proper range check.
20606
20607 2001-12-04 Ed Schonberg <schonber@gnat.com>
20608
20609 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
20610 processing discriminants to diagnose illegal default values.
20611
20612 2001-12-04 Ed Schonberg <schonber@gnat.com>
20613
20614 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
20615 access discriminant within a type extension that constrains its
20616 parent discriminants.
20617
20618 2001-12-04 Ed Schonberg <schonber@gnat.com>
20619
20620 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
20621 is malformed, use instance of Any_Id to allow analysis to proceed.
20622
20623 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
20624 type definition is illegal.
20625 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
20626 misplaced.
20627
20628 2001-12-04 Ed Schonberg <schonber@gnat.com>
20629
20630 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
20631 constants.
20632
20633 2001-12-04 Robert Dewar <dewar@gnat.com>
20634
20635 * errout.adb: Minor reformatting
20636
20637 2001-12-04 Robert Dewar <dewar@gnat.com>
20638
20639 * exp_util.adb: Minor reformatting from last change
20640
20641 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
20642 which is a rewriting of an expression, traverse the original
20643 expression to remove warnings that may have been posted on it.
20644
20645 2001-12-04 Ed Schonberg <schonber@gnat.com>
20646
20647 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
20648 record that has other packed components.
20649
20650 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
20651
20652 * adaint.c: Minor cleanups.
20653
20654 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
20655
20656 * adaint.c: Do not use utime.h on vxworks.
20657
20658 2001-12-04 Arnaud Charlet <charlet@gnat.com>
20659
20660 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
20661 more confusion than it solves.
20662
20663 2001-12-04 Geert bosch <bosch@gnat.com>
20664
20665 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
20666
20667 2001-12-04 Geert Bosch <bosch@gnat.com>
20668
20669 * Makefile.in (update-sources): New target.
20670 For use by gcc_release script.
20671
20672 2001-12-04 Ed Schonberg <schonber@gnat.com>
20673
20674 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
20675 a configuration pragma, it is now legal wherever a pragma can appear.
20676
20677 2001-12-04 Zack Weinberg <zack@codesourcery.com>
20678
20679 * Makefile.in: Don't set ALL. Delete @cross_defines@,
20680 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
20681 is now @CROSS@ -DIN_GCC; update comment.
20682
20683 2001-12-04 Robert Dewar <dewar@gnat.com>
20684
20685 * einfo.adb (Has_Pragma_Pure_Function): New flag.
20686 Fix problem that stopped ceinfo from working
20687
20688 * einfo.ads (Has_Pragma_Pure_Function): New flag.
20689
20690 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
20691
20692 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
20693
20694 * gnatchop.adb:
20695 (File_Time_Stamp): New procedure.
20696 (Preserve_Mode): New boolean.
20697 (Write_Unit): Pass time stamp.
20698 Implement -p switch (preserve time stamps).
20699
20700 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
20701
20702 * gnatchop.adb: Do usage info for -p switch
20703
20704 * adaint.h (__gnat_set_file_time_name): New function
20705
20706 * adaint.c (__gnat_set_file_time_name): Implement
20707
20708 * adaint.h: Fix typo
20709
20710 2001-12-03 Robert Dewar <dewar@gnat.com>
20711
20712 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
20713 have Associated_Node.
20714
20715 2001-12-03 Robert Dewar <dewar@gnat.com>
20716
20717 * prj-proc.adb: Minor reformatting
20718
20719 * make.adb: Minor reformatting
20720
20721 2001-12-03 Geert Bosch <bosch@gnat.com>
20722
20723 * make.adb: Minor reformatting.
20724
20725 2001-12-03 Robert Dewar <dewar@gnat.com>
20726
20727 * sem_ch12.adb: Minor reformatting
20728
20729 2001-12-03 Ed Schonberg <schonber@gnat.com>
20730
20731 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
20732 push Standard on the stack before analyzing the instance body,
20733 in order to have a clean visibility environment.
20734
20735 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
20736
20737 2001-12-03 Ed Schonberg <schonber@gnat.com>
20738
20739 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
20740 instantiation of a body that contains an inlined body.
20741
20742 2001-12-03 Ed Schonberg <schonber@gnat.com>
20743
20744 * sem_ch12.adb:
20745 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
20746 to prevent freezing within formal packages.
20747 (Freeze_Subprogram_Body): If body comes from another instance that
20748 appeared before its own body, place freeze node at end of current
20749 declarative part, to prevent a back-end crash.
20750 (Inline_Instance_Body): Handle properly a package instance within
20751 a subprogram instance that is a child unit.
20752
20753 2001-12-01 Graham Stott <grahams@redhat.com>
20754
20755 * Makefile.in (misc.o): Add missing $(srcdir) prefix
20756 and add optabs.h dependency.
20757
20758 * misc.c: Include optabs.h
20759 (gnat_tree_code_type): Make static and const.
20760 (gnat_tree_code_length): Likewise.
20761 (gnat_tree_code_name): Likewise.
20762 (update_setjmp_buf): Obtain operands mode from insn_data.
20763
20764 2001-11-29 Richard Henderson <rth@redhat.com>
20765
20766 * init.c: Remove obsolete dwarf2 frame.h section.
20767
20768 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
20769
20770 * Make-lang.in (ada.generated-manpages): New dummy target.
20771
20772 2001-11-29 Ed Schonberg <schonber@gnat.com>
20773
20774 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
20775 into Command, an array conversion is illegal here. Uncovered by
20776 ACATS B460005.
20777
20778 2001-11-28 Geert Bosch <bosch@gnat.com>
20779
20780 * init.c: Minor whitespace changes.
20781
20782 2001-11-28 Doug Rupp <rupp@gnat.com>
20783
20784 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
20785 signal stack.
20786
20787 2001-11-28 Zack Weinberg <zack@codesourcery.com>
20788
20789 * misc.c (gnat_expand_constant): Move declaration above
20790 definition of lang_hooks.
20791 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
20792 (gnat_init): lang_expand_constant no longer exists.
20793
20794 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
20795 always have vprintf.
20796 (gnat_init): Always call set_internal_error_function.
20797
20798 2001-11-27 Andreas Jaeger <aj@suse.de>
20799
20800 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
20801
20802 2001-11-27 Laurent Guerby <guerby@acm.org>
20803
20804 * Makefile.in: Regenerate Ada dependencies.
20805
20806 2001-11-26 Richard Henderson <rth@redhat.com>
20807
20808 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
20809 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
20810 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
20811
20812 2001-11-25 Laurent Guerby <guerby@acm.org>
20813
20814 * sysdep.c (rts_get_*): Fix style.
20815
20816 2001-11-19 Laurent Guerby <guerby@acm.org>
20817
20818 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
20819 since it is of no apparent use and cause warnings.
20820
20821 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
20822
20823 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
20824 static too.
20825 (gnat_init): Don't return NULL.
20826 (finish_parse): Remove.
20827
20828 2001-11-17 Laurent Guerby <guerby@acm.org>
20829
20830 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
20831 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
20832 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
20833 * lang-spec.h: Add missing struct field to silence warnings.
20834 * sysdep.c (rts_get_*): Provide K&R prototype.
20835 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
20836 * traceback.c (Unlock_Task, Lock_Task): Likewise.
20837 * tracebak.c (__gnat_backtrace): Remove unused variable.
20838 * utils.c (end_subprog_body): Move to K&R style.
20839
20840 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
20841
20842 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
20843
20844 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
20845
20846 * misc.c (gnat_init): Change prototype. Include the
20847 functionality of the old init_parse and init_decl_processing.
20848 (gnat_init_decl_processing): New prototype.
20849 (init_parse): Remove.
20850 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
20851
20852 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
20853
20854 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
20855 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
20856 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
20857 set_yydebug): Remove.
20858
20859 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
20860
20861 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
20862 (struct lang_hooks): Constify.
20863 (language_string, lang_identify): Remove.
20864 * utils.c (init_decl_processing): Update.
20865
20866 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
20867
20868 * misc.c: Include langhooks-def.h.
20869 * Makefile.in: Update.
20870
20871 2001-10-30 Robert Dewar <dewar@gnat.com>
20872
20873 * style.adb:
20874 (Check_Identifier): Rewrite circuit to be compatible with use of letters
20875 in the upper half of ASCII.
20876 (Check_Identifier): Minor reformatting
20877
20878 2001-10-30 Geert Bosch <bosch@gnat.com>
20879
20880 * (Associated_Node, Set_Associated_Node): Do not check for
20881 Freeze_Entity.
20882
20883 2001-10-30 Robert Dewar <dewar@gnat.com>
20884
20885 * a-reatim.ads: Minor reformatting
20886
20887 2001-10-30 Robert Dewar <dewar@gnat.com>
20888
20889 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
20890 undocumented declarations.
20891
20892 2001-10-30 Pascal Obry <obry@gnat.com>
20893
20894 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
20895 to the binder and linker.
20896 Minor style fix.
20897
20898 * mdll.ads: Fix layout. Update copyright notice.
20899
20900 * mdll.adb: Fix layout. Update copyright notice.
20901
20902 2001-10-30 Robert Dewar <dewar@gnat.com>
20903
20904 * usage.adb: Minor fix to output for -gnaty.
20905
20906 2001-10-30 Ed Schonberg <schonber@gnat.com>
20907
20908 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
20909 to accommodate all its possible values.
20910
20911 * a-reatim.adb (Split): Special-case handling of Time_Span_First
20912 and of small absolute values of T.
20913
20914 2001-10-30 Richard Kenner <kenner@gnat.com>
20915
20916 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
20917 set_mem_attributes since not needed and wrong if RESULT if a REG;
20918 fixes ACATS failures.
20919
20920 2001-10-30 Geert Bosch <bosch@gnat.com>
20921
20922 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
20923 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
20924
20925 2001-10-30 Robert Dewar <dewar@gnat.com>
20926
20927 * bindusg.adb: Undocument -f switch.
20928
20929 * gnatcmd.adb: Remove /FULL_ELABORATION.
20930
20931 * opt.ads (Force_RM_Elaboration_Order): Document that this is
20932 obsolescent.
20933
20934 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
20935
20936 * gnatbind.adb: Minor update of warning msg.
20937
20938 2001-10-30 Vincent Celier <celier@gnat.com>
20939
20940 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
20941 for project file switches (-P (/PROJECT_FILE=),
20942 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
20943 or MEDIUM or HIGH)
20944
20945 2001-10-30 Geert Bosch <bosch@gnat.com>
20946
20947 * decl.c: Minor whitespace fixes.
20948
20949 2001-10-30 Richard Kenner <kenner@gnat.com>
20950
20951 * utils2.c (build_allocator): Test for SIZE overflow in array case too
20952
20953 2001-10-30 Geert Bosch <bosch@gnat.com>
20954
20955 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
20956 Found due to GCC 3.0 warning of using uninitialized value.
20957
20958 * layout.adb:
20959 (Get_Max_Size): Use variant record for tracking value/expression.
20960 Makes logic clearer and prevents warnings for uninitialized variables.
20961 (Layout_Array_Type): Use variant record for tracking value/expression.
20962 Makes logic clearer and prevents warnings for uninitialized variables.
20963
20964 2001-10-30 Robert Dewar <dewar@gnat.com>
20965
20966 * lib.adb: Minor reformatting
20967
20968 * s-taprop.ads: Minor reformatting
20969
20970 2001-10-29 Laurent Guerby <guerby@acm.org>
20971
20972 * init.c:
20973 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
20974 const.
20975 (_gnat_error_handler): Make MSG const.
20976
20977 2001-10-29 Richard Kenner <kenner@gnat.com>
20978
20979 * sysdep.c: Fix localtime_r problem on LynxOS.
20980 Also remove #elif to avoid warnings.
20981
20982 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
20983 used by this.
20984
20985 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
20986
20987 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
20988
20989 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
20990 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
20991 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
20992 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
20993 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
20994 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
20995 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
20996 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
20997 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
20998 types.ads, urealp.adb: Fix spelling errors.
20999
21000 2001-10-27 Laurent Guerby <guerby@acm.org>
21001
21002 * trans.c (gigi): Fix non determinism leading to bootstrap
21003 comparison failures for debugging information.
21004
21005 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
21006
21007 * gnat_rm.texi: Use @./@: where appropriate.
21008
21009 2001-10-26 Robert Dewar <dewar@gnat.com>
21010
21011 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
21012
21013 2001-10-26 Richard Kenner <kenner@gnat.com>
21014
21015 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
21016
21017 2001-10-26 Richard Kenner <kenner@gnat.com>
21018
21019 * decl.c (validate_size): Modify message for bad size to avoid
21020 implication that compiler is modifying the size.
21021
21022 2001-10-26 Robert Dewar <dewar@gnat.com>
21023
21024 * prj-util.adb: Minor reformatting. Fix bad header format.
21025
21026 2001-10-26 Robert Dewar <dewar@gnat.com>
21027
21028 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
21029
21030 * sinfo.ads: Clarify use of Associated_Node (documentation only).
21031
21032 * sem_ch12.adb: Change Node4 to Associated_Node. Change
21033 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
21034 much more narrowly in places where needed. These are cleanups.
21035
21036 2001-10-26 Joel Brobecker <brobecke@gnat.com>
21037
21038 * 5zosinte.ads (null_pthread): new constant.
21039
21040 * 5ztaprop.adb:
21041 (Initialize_TCB): Initialize thread ID to null, to be able to verify
21042 later that this field has been set.
21043 (Finalize_TCB): ditto.
21044 (Suspend_Task): Verify that the thread ID is not null before using it.
21045 (Resume_Task): ditto.
21046
21047 * s-tasdeb.adb:
21048 (Resume_All_Tasks): Lock the tasks list before using it.
21049 (Suspend_All_Tasks): ditto.
21050
21051 2001-10-26 Richard Kenner <kenner@gnat.com>
21052
21053 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
21054 Make constant variant of designated type for Is_Access_Constant.
21055 Call update_pointer_to with main variant.
21056
21057 * trans.c (process_freeze_entity, process_type):
21058 Call update_pointer_to on main variant.
21059
21060 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
21061 If main variant, update all other variants.
21062
21063 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
21064 TREE_STATIC.
21065
21066 2001-10-26 Robert Dewar <dewar@gnat.com>
21067
21068 * prj-util.adb: Minor reformatting
21069
21070 2001-10-26 Robert Dewar <dewar@gnat.com>
21071
21072 * prj-util.adb: Minor reformatting
21073
21074 2001-10-26 Robert Dewar <dewar@gnat.com>
21075
21076 * prj-attr.adb: Minor reformatting throughout
21077
21078 2001-10-26 Robert Dewar <dewar@gnat.com>
21079
21080 * prj-attr.ads: Minor reformatting
21081 Add ??? comment (this whole spec has almost no comments)
21082
21083 2001-10-26 Vincent Celier <celier@gnat.com>
21084
21085 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
21086 ("//") that precede the drive letter on Interix.
21087
21088 2001-10-26 Geert Bosch <bosch@gnat.com>
21089
21090 * gnat_rm.texi: Add GNAT Reference Manual.
21091
21092 2001-10-25 Robert Dewar <dewar@gnat.com>
21093
21094 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
21095 is Error. Similar change for other renaming cases.
21096
21097 2001-10-25 Robert Dewar <dewar@gnat.com>
21098
21099 * s-atacco.ads: Add pragma Inline_Always for functions.
21100 Fix header format. Add copyright 2001
21101
21102 2001-10-25 Ed Schonberg <schonber@gnat.com>
21103
21104 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
21105 return Error rather than Empty so that analysis can proceed.
21106
21107 2001-10-25 Ed Schonberg <schonber@gnat.com>
21108
21109 * sem_util.adb (Enter_Name): better handling of cascaded error
21110 messages when a unit appears in its own context.
21111
21112 2001-10-25 Ed Schonberg <schonber@gnat.com>
21113
21114 * sem_util.adb (Defining_Entity): in case of error, attach created
21115 entity to specification, so that semantic analysis can proceed.
21116
21117 2001-10-25 Robert Dewar <dewar@gnat.com>
21118
21119 * sem_util.adb
21120 (Defining_Entity): Deal with Error.
21121 (Process_End_Label): Deal with bad end label for.
21122
21123 2001-10-25 Ed Schonberg <schonber@gnat.com>
21124
21125 * sem_elab.adb (Check_A_Call): refine message when call is in an
21126 instance but callee is not declared in the generic unit.
21127
21128 2001-10-25 Ed Schonberg <schonber@gnat.com>
21129
21130 * sem_elab.adb (Check_A_Call): check for renaming before finding the
21131 enclosing unit, which may already be different from the calling unit.
21132
21133 2001-10-25 Geert Bosch <bosch@gnat.com>
21134
21135 * 4gintnam.ads: fix header format.
21136
21137 2001-10-25 Ed Schonberg <schonber@gnat.com>
21138
21139 * sem_res.adb (Resolve_Call): if the call is actually an indexing
21140 operation on the result of a parameterless call, perform elaboration
21141 check after the node has been properly rewritten.
21142
21143 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
21144 inlined within the generic tree, the defining identifier is not a
21145 compilation_unit.
21146
21147 2001-10-25 Ed Schonberg <schonber@gnat.com>
21148
21149 * sem_res.adb (Resolve): special-case resolution of Null in an
21150 instance or an inlined body to avoid view conflicts.
21151
21152 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
21153 compatibility by retrieving the access type of the generic copy.
21154
21155 2001-10-25 Robert Dewar <dewar@gnat.com>
21156
21157 * sem_ch3.adb:
21158 (Analyze_Number_Declaration): Handle error expression.
21159 (Signed_Integer_Type_Declaration): Handle error bound.
21160 (Analyze_Subtype_Indication): Handle error range.
21161
21162 * sem_util.adb (Get_Index_Bounds): Check for Error.
21163
21164 2001-10-25 Robert Dewar <dewar@gnat.com>
21165
21166 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
21167 in no run time mode.
21168
21169 2001-10-25 Pascal Obry <obry@gnat.com>
21170
21171 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
21172 mode case for ALLOC case.
21173
21174 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
21175 all platforms. Improvement of last change.
21176
21177 2001-10-25 Robert Dewar <dewar@gnat.com>
21178
21179 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
21180
21181 2001-10-25 Geert Bosch <bosch@gnat.com>
21182
21183 * osint.adb (Is_Relative): Remove duplicate.
21184
21185 2001-10-25 Pascal Obry <obry@gnat.com>
21186
21187 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
21188 pathnames in UNIX and DOS style with drive letter.
21189 (Is_Relative): new routine.
21190
21191 * osint.adb: Minor reformatting
21192
21193 * osint.adb (Is_Relative): implementation using
21194 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
21195
21196 2001-10-25 Pascal Obry <obry@gnat.com>
21197
21198 * g-dirope.adb (Basename): correctly compute offset between the
21199 original Path and the translated one.
21200
21201 * g-dirope.adb: (Base_Name): add some comments.
21202
21203 2001-10-25 Robert Dewar <dewar@gnat.com>
21204
21205 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
21206 in HIE mode, avoids compilation abandoned message
21207
21208 * exp_imgv.adb: Correct typo in previous change
21209
21210 * exp_imgv.adb: Correct typo in previous change (not my day!)
21211
21212 2001-10-25 Robert Dewar <dewar@gnat.com>
21213
21214 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
21215
21216 2001-10-25 Pascal Obry <obry@gnat.com>
21217
21218 * g-awk.ads: Move all pragma inlines next to the routine
21219 declarations. This is more uniform with other GNAT spec.
21220
21221 2001-10-22 Geert Bosch <bosch@gnat.com>
21222
21223 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
21224
21225 2001-10-19 Geert Bosch <bosch@gnat.com>
21226
21227 * Makefile.in (tools, gnattools): Remove gnatmem.
21228
21229 2001-10-17 Richard Henderson <rth@redhat.com>
21230
21231 * Makefile.in (misc.o): Depend on langhooks.h.
21232 * misc.c: Include it.
21233 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
21234 (LANG_HOOKS_DECODE_OPTION): New.
21235 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
21236
21237 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
21238
21239 * trans.c (tree_transform): Adjust to recent change in
21240 expand_asm_operands to implement named asm operands.
21241
21242 2001-10-11 Ed Schonberg <schonber@gnat.com>
21243
21244 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
21245 renaming of discriminant for mutable record type.
21246
21247 2001-10-11 Robert Dewar <dewar@gnat.com>
21248
21249 * validsw.adb: Properly save -gnatVn status.
21250
21251 2001-10-11 Robert Dewar <dewar@gnat.com>
21252
21253 * usage.adb: Add lines for V switch.
21254
21255 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
21256 (/VALIDITY_CHECKING).
21257
21258 2001-10-11 Ed Schonberg <schonber@gnat.com>
21259
21260 * sem_type.adb (Add_One_Interp): an operator for a type declared in
21261 an extension of System is known to be visible.
21262
21263 2001-10-11 Ed Schonberg <schonber@gnat.com>
21264
21265 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
21266 properly. Fixes regression on ACATS C34005G.
21267
21268 2001-10-11 Robert Dewar <dewar@gnat.com>
21269
21270 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
21271 loop in generic instance, since this is likely not very useful.
21272
21273 2001-10-11 Robert Dewar <dewar@gnat.com>
21274
21275 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
21276 the error message for high integrity mode.
21277
21278 * rtsfind.adb (RTE): Give message if we try to find an entity that
21279 is not available in high integrity mode.
21280
21281 * rtsfind.ads:
21282 (OK_To_Use_In_HIE_Mode): New array.
21283 (RTE): May return Empty in high integrity mode.
21284
21285 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
21286 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
21287
21288 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
21289 unit if not inlined always and in no runtime mode. Fixes problem
21290 caused by new Rtsfind changes.
21291
21292 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
21293 body is deleted.
21294
21295 * rtsfind.adb (RTE): Make sure we do not try to load unit after
21296 giving message for entity not available in high integrity mode.
21297
21298 2001-10-11 Pascal Obry <obry@gnat.com>
21299
21300 * impunit.adb: Add GNAT.CRC32.
21301
21302 2001-10-11 Ed Schonberg <schonber@gnat.com>
21303
21304 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
21305 properly the case where one universal operand in a non-static
21306 exponentiation of a real literal.
21307
21308 2001-10-11 Ed Schonberg <schonber@gnat.com>
21309
21310 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
21311 clause, return the gobal finalization list, for lack of anthing else.
21312
21313 2001-10-11 Ed Schonberg <schonber@gnat.com>
21314
21315 * exp_ch7.adb (Make_Transient_Block): if statement is within
21316 exception handler, always use new transient scope to place Clean
21317 procedure.
21318
21319 2001-10-11 Pascal Obry <obry@gnat.com>
21320
21321 * Makefile.in:
21322 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
21323 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
21324 (GNATLS_RTL_OBJS): add g-crc32.o
21325 (GNATMAKE_RTL_OBJS): add g-crc32.o
21326
21327 * ali-util.adb:
21328 (CRC_Match): new function.
21329 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
21330 instead of the previous simple checksum algorithm.
21331 (Time_Stamp_Mismatch): use CRC_Match for comparison.
21332 (Set_Source_Table): idem.
21333
21334 * ali-util.ads:
21335 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
21336 instead of simple checksum.
21337 (CRC_Match): new function.
21338 (CRC_Error): new constant.
21339
21340 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
21341 a CRC now and not a simple checksum. A CRC uses lower-case hex
21342 letters, fixes ambiguity in parsing.
21343
21344 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
21345 is what this variable will store.
21346
21347 * bcheck.adb: Change reference to chechsum in comments by CRC.
21348 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
21349 rename All_Checksum_Match to All_CRC_Match. Change due to API
21350 renaming since now GNAT does not use a simple checksum but a
21351 CRC using GNAT.CRC32.
21352
21353 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
21354 now and not anymore a simple checksum.
21355
21356 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
21357 places.
21358
21359 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
21360
21361 * scans.adb:
21362 (Restore_Scan_State): rename Checksum to CRC.
21363 (Save_Scan_State): idem.
21364
21365 * scans.ads:
21366 With GNAT.CRC32.
21367 (Checksum): rename to CRC.
21368 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
21369
21370 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
21371 GNAT.CRC32). Update copyright notice.
21372
21373 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
21374 GNAT.CRC32). Update copyright notice.
21375
21376 * scn.adb:
21377 (Accumulate_Checksum): removed.
21378 (Update): new procedure. Add a wide-character into the CRC.
21379
21380 * sinput-l.adb:
21381 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
21382 (Load_File): fix initialization of S (change Source_Checksum to
21383 Source_CRC)
21384
21385 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
21386 Source_CRC in S initialization.
21387
21388 * sinput.adb (Source_Checksum): renamed to Source_CRC.
21389
21390 * sinput.ads (Source_Checksum): renamed to Source_CRC.
21391 Update comments for the CRC.
21392
21393 * types.adb (Hex): Use lowercase for the letter part.
21394
21395 * types.ads (Get_Hex_String): Returns the hexadecimal representation
21396 for a word. This is currently used only for CRC. In previous version,
21397 the checksum was using a representation with all letter being
21398 upper-case. With the new implementation (using CRC) we do not remove
21399 the 32th bit of the CRC, so we can have an upper-case starting letter
21400 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
21401 It is ambigous since the CRC was optional and could be followed by
21402 options like EB, EE. So now this routines uses lower-case letter for
21403 the hexadecimal representation. Strange enough only lower case letters
21404 where checked in Scan_ALI (even if this was not a possible case).
21405
21406 * gnatvsn.ads (Library_Version): changed to 3.15a.
21407
21408 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
21409 for the compiler.
21410
21411 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
21412 for the compiler.
21413
21414 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
21415 Add 2001 to copyright notice
21416 (Accumulate_Checksum): Modify to use System.CRC32.
21417
21418 * ali-util.ads: Redo changes of previous revision to continue to use
21419 the word Checksum. Add 2001 to copyright notice.
21420
21421 * ali.adb: Undo some of previous changes, not needed.
21422 Keep the change for lower case letters in the checksum.
21423
21424 * ali.ads: Undo previous change not needed.
21425
21426 * bcheck.adb: Undo most of previous change, not needed.
21427 But do use Checksums_Match for checksum comparison.
21428
21429 * gnatls.adb: Undo most of previous change, not needed.
21430 But do use Checksums_Match for comparing checksums.
21431
21432 * lib-load.adb: Undo previous change, not needed.
21433
21434 * lib-writ.adb: Undo previous change, not needed.
21435
21436 * lib-writ.ads: Document that checksums use lower case,
21437 not upper case letters.
21438
21439 * scans.adb: Undo previous change, not needed
21440
21441 * scans.ads: Undo previous change, not needed.
21442
21443 * scn-nlit.adb: Undo previous changes, not needed.
21444
21445 * scn-slit.adb: Undo previous change, not needed. Fix header format.
21446
21447 * scn.adb:
21448 (Accumulate_Checksum): Use System.CRC32.
21449 (Initialize_Checksum): New procedure.
21450 Remove other changes of previous revision.
21451
21452 * sinput-p.adb: Undo previous change, not needed.
21453
21454 * sinput.adb: Undo previous change, not needed.
21455
21456 * sinput-l.adb: Undo previous change, not needed.
21457
21458 * sinput.ads: Undo previous change, not needed. Keep only comment
21459 on new checksum algorithm
21460
21461 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
21462 Also remove a-tags and a-stream from GNAT sources.
21463
21464 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
21465
21466 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
21467
21468 2001-10-11 Geert Bosch <bosch@gnat.com>
21469
21470 * einfo.h: Regenerate.
21471
21472 * nmake.ads: Regenerate.
21473
21474 * nmake.adb: Regenerate.
21475
21476 * sinfo.h: Regenerate.
21477
21478 * treeprs.adb: Regenerate.
21479
21480 2001-10-10 Geert Bosch <bosch@gnat.com>
21481
21482 * gnat-style.texi: New file describing coding guidelines for Ada.
21483
21484 2001-10-10 Ed Schonberg <schonber@gnat.com>
21485
21486 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
21487 is Flag174.
21488
21489 2001-10-10 Geert Bosch <bosch@gnat.com>
21490
21491 * snames.ads: Add new names for project facility.
21492
21493 * snames.adb: Update to reflect snames.ads changes.
21494
21495 * snames.h: Update to reflect snames.ads changes.
21496
21497 2001-10-10 Vincent Celier <celier@gnat.com>
21498
21499 * make.adb:
21500 (Add_Switches): reflect the changes for the switches attributes
21501 Default_Switches indexed by the programming language,
21502 Switches indexed by the file name.
21503 (Collect_Arguments_And_Compile): Idem.
21504 Reflect the attribute name changes.
21505
21506 * prj-attr.adb:
21507 (Initialisation_Data): Change the names of some packages and
21508 attributes.
21509 (Initialize): process case insensitive associative arrays.
21510
21511 * prj-attr.ads:
21512 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
21513
21514 * prj-dect.adb:
21515 (Parse_Attribute_Declaration): For case insensitive associative
21516 arrays, set the index string to lower case.
21517
21518 * prj-env.adb:
21519 Reflect the changes of the project attributes.
21520
21521 * prj-nmsc.adb:
21522 Replace Check_Naming_Scheme by Ada_Check and
21523 Language_Independent_Check.
21524
21525 * prj-nmsc.ads:
21526 Replaced Check_Naming_Scheme by 2 procedures:
21527 Ada_Check and Language_Independent_Check.
21528
21529 * prj-proc.adb:
21530 (Process_Declarative_Items): For case-insensitive associative
21531 arrays, set the index string to lower case.
21532 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
21533 Prj.Nmsc.Check_Naming_Scheme.
21534
21535 * prj-tree.adb:
21536 (Case_Insensitive): New function
21537 (Set_Case_Insensitive): New procedure
21538
21539 * prj-tree.ads:
21540 (Case_Insensitive): New function
21541 (Set_Case_Insensitive): New procedure
21542 (Project_Node_Record): New flag Case_Insensitive.
21543
21544 * prj-util.adb:
21545 (Value_Of): new function to get the string value of a single
21546 string variable or attribute.
21547
21548 * prj-util.ads:
21549 (Value_Of): new function to get the string value of a single
21550 string variable or attribute.
21551
21552 * prj.adb:
21553 (Ada_Default_Spec_Suffix): New function
21554 (Ada_Default_Impl_Suffix): New function
21555 Change definitions of several constants to reflect
21556 new components of record types.
21557
21558 * prj.ads:
21559 (Naming_Data): Change several components to reflect new
21560 elements of naming schemes.
21561 (Project_Data): New flags Sources_Present and
21562 Language_Independent_Checked.
21563 (Ada_Default_Spec_Suffix): New function.
21564 (Ada_Default_Impl_Suffix): New function.
21565
21566 * snames.ads:
21567 Modification of predefined names for project manager: added
21568 Implementation, Specification_Exceptions, Implementation_Exceptions,
21569 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
21570 Default_Switches, _Languages, Builder, Cross_Reference,
21571 Finder. Removed Body_Part, Specification_Append, Body_Append,
21572 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
21573 Gnatlink.
21574
21575 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
21576 Add comments.
21577
21578 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
21579 not that it is Nil_Variable_Value.
21580
21581 * prj.ads: Add ??? for uncommented declarations
21582
21583 2001-10-10 Ed Schonberg <schonber@gnat.com>
21584
21585 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
21586 constant, do not indicate possible modification, so that gigi can
21587 treat it as a bona fide constant.
21588
21589 2001-10-10 Robert Dewar <dewar@gnat.com>
21590
21591 * sem_prag.adb: Add processing for pragma External.
21592
21593 * snames.ads: Add entry for pragma External.
21594
21595 * par-prag.adb: Add pragma External.
21596
21597 * snames.adb: Updated to match snames.ads.
21598
21599 2001-10-10 Ed Schonberg <schonber@gnat.com>
21600
21601 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
21602 a dynamic task if the allocator appears in an indexed assignment
21603 or selected component assignment.
21604
21605 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
21606 For a dynamic task in an assignment statement, use target of
21607 assignment to generate meaningful name.
21608
21609 2001-10-10 Ed Schonberg <schonber@gnat.com>
21610
21611 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
21612 a generic package.
21613
21614 * einfo.ads: Body_Entity is also defined for generic package.
21615 Documentation change only
21616
21617 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
21618 others_choice for a discriminated component initialization,
21619 convert discriminant references into the corresponding discriminals.
21620
21621 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
21622 only if original type is private and expression has to be wrapped
21623 in a conversion.
21624
21625 * checks.adb:
21626 (Apply_Constraint_Check): Do not perform length check
21627 if expression is an aggregate with only an others_choice.
21628 (Length_N_Cond): two references to the same in_parameter
21629 (typically the discriminal in an init_proc) denote the same value.
21630 Two useful optimization uncovered by bugfixes above.
21631
21632 2001-10-10 Robert Dewar <dewar@gnat.com>
21633
21634 * xeinfo.adb: Change int to char in translation of enumeration types.
21635 This fixes a problem in the C representation of component alignment.
21636 Add 2001 to copyright notice
21637
21638 2001-10-10 Richard Kenner <kenner@gnat.com>
21639
21640 * decl.c: (validate_size): Do check size of object of integral type
21641 if it is a packed array type.
21642
21643 2001-10-10 Richard Kenner <kenner@gnat.com>
21644
21645 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
21646 VAR_DECL for constant if not Is_Public but -O0.
21647
21648 2001-10-10 Richard Kenner <kenner@gnat.com>
21649
21650 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
21651
21652 2001-10-10 Geert Bosch <bosch@gnat.com>
21653
21654 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
21655 use '/' as switch character, allowing for absolute file names.
21656
21657 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
21658
21659 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
21660 FSF address.
21661
21662 2001-10-08 Geert Bosch <bosch@gnat.com>
21663
21664 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
21665 Automatically build utilities when files need to be regenerated.
21666
21667 2001-10-08 Geert Bosch <bosch@gnat.com>
21668
21669 * xsnames.adb: New utility for updating snames.ads and snames.adb
21670
21671 2001-10-08 Zack Weinberg <zack@codesourcery.com>
21672
21673 * Make-lang.in (ADAFLAGS): Add -W -Wall.
21674 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
21675 (gnat1): Also depend on attribs.o.
21676 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
21677 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
21678 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
21679 (ADAFLAGS): Add -W -Wall.
21680 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
21681 take out CFLAGS.
21682
21683 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
21684 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
21685 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
21686 Use $(ADAC), not $(CC), as compilation command.
21687
21688 (gnattools): Depend directly on tools to build, don't use
21689 recursive make.
21690 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
21691
21692 * einfo.h, sinfo.h: New files (autogenerated).
21693
21694 2001-10-08 Richard Henderson <rth@redhat.com>
21695
21696 * comperr.adb (Abort_In_Progress): New.
21697 (Compiler_Abort): Use it to prevent recursion.
21698
21699 2001-10-08 Robert Dewar <dewar@gnat.com>
21700
21701 * atree.adb: Set Error_Posted in Error node, helps error recovery.
21702
21703 * par-endh.adb (Output_End_Expected): We should also not test
21704 Error_Posted on the Error node, since now it is always set.
21705
21706 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
21707 to help error recovery. Part of general work on 9407-004.
21708
21709 * par.adb: Add ??? for misuse of error
21710
21711 * sem_res.adb:
21712 (Resolve): Defend against Error, fixes 9407-003.
21713 (Resolve_Discrete_Subtype_Indication): Defend against Error.
21714
21715 * sinfo.ads (N_Error): Now has Etype field (which will be set
21716 to Any_Type to help error recovery).
21717
21718 2001-10-08 Richard Kenner (kenner@gnat.com)
21719
21720 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
21721 Consistently set MEM attributes from expression; fixes
21722 bootstrap failure on x86.
21723
21724 2001-10-08 Geert Bosch (bosch@gnat.com)
21725
21726 * 5oosinte.adb: Add 2001 to copyright notice.
21727
21728 2001-10-08 Geert Bosch (bosch@gnat.com)
21729
21730 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
21731
21732 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
21733
21734 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
21735
21736 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
21737
21738 2001-10-05 Geert Bosch (bosch@gnat.com)
21739
21740 * adaint.h: Small formatting fix.
21741
21742 2001-10-04 Geert Bosch <bosch@gnat.com>
21743
21744 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
21745 Arg is int, not FILE *, in dummy version of functions.
21746
21747 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
21748 Arg is int, not FILE *.
21749
21750 2001-10-04 Geert Bosch <bosch@gnat.com>
21751
21752 * 3lsoccon.ads: Added file, missed with initial check ins.
21753
21754 * 4lintnam.ads: Fix header format.
21755 Change Linux to GNU/Linux.
21756
21757 * 5iosinte.adb: Change Linux to GNU/Linux.
21758
21759 * 5iosinte.ads: Change Linux to GNU/Linux.
21760
21761 * 5itaprop.adb: Change Linux to GNU/Linux.
21762
21763 * 5itaspri.ads: Change Linux to GNU/Linux.
21764 Update copyright notice.
21765
21766 * 5lintman.adb: Change Linux to GNU/Linux.
21767
21768 * 5lml-tgt.adb: Change Linux to GNU/Linux.
21769
21770 * 5losinte.ads: Change Linux to GNU/Linux.
21771
21772 * 5lsystem.ads: Change Linux to GNU/Linux.
21773
21774 * 5qosinte.adb: Change Linux to GNU/Linux.
21775
21776 * 5qosinte.ads: Change Linux to GNU/Linux.
21777
21778 * 5qparame.ads: Change Linux to GNU/Linux.
21779
21780 * 5qtaprop.adb: Change Linux to GNU/Linux.
21781
21782 * 5qtaspri.ads: Change Linux to GNU/Linux.
21783 Add 2001 to copyright notice.
21784
21785 * 5vintman.ads: Change Linux to GNU/Linux.
21786 Fix header format. Add 2001 to copyright notice.
21787
21788 * g-soccon.ads: Change Linux to GNU/Linux.
21789
21790 * g-trasym.ads: Change Linux to GNU/Linux.
21791 Add 2001 to copyright notice.
21792
21793 * memtrack.adb: Change Linux to GNU/Linux.
21794
21795 * s-intman.ads: Change Linux to GNU/Linux.
21796 Add 2001 to copyright notice. Fix header format.
21797
21798 * s-stache.adb: Change Linux to GNU/Linux.
21799
21800 * adaint.c: Change Linux to GNU/Linux.
21801
21802 * cio.c: Change Linux to GNU/Linux.
21803
21804 * cstreams.c: Change Linux to GNU/Linux.
21805
21806 * init.c: Change Linux to GNU/Linux.
21807
21808 * gmem.c: Change Linux to GNU/Linux.
21809
21810 * tracebak.c: Change Linux to GNU/Linux.
21811
21812
21813 2001-10-02 Geert Bosch <bosch@gnat.com>
21814
21815 * misc.c (insert_default_attributes): Add dummy version.
This page took 1.008817 seconds and 5 git commands to generate.