]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ada/ChangeLog
* trans.c (gigi): Update gimplify_body call.
[thirdparty/gcc.git] / gcc / ada / ChangeLog
1 2004-12-19 Richard Henderson <rth@redhat.com>
2
3 * trans.c (gigi): Update gimplify_body call.
4
5 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
6
7 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
8
9 2004-12-07 Ed Falis <falis@adacore.com>
10
11 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
12 current task being suspended.
13
14 * init.c (__gnat_clear_exception): added to reset VxWorks exception
15 count.
16 (__gnat_map_signal): removed test for current task being suspended.
17
18 2004-12-07 Gary Dismukes <dismukes@adacore.com>
19
20 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
21 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
22 targets (such as AAMP).
23
24 2004-12-07 Ed Schonberg <schonberg@adacore.com>
25
26 * atree.adb (Visit_Itype): Create a new name for the generated itype,
27 because the back-end may otherwise treat it as a redefinition of the
28 old symbol.
29
30 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
31
32 * back_end.adb (Scan_Back_End_Switches): Accept --param.
33
34 * lang-specs.h: Accept --param.
35
36 2004-12-07 Vincent Celier <celier@adacore.com>
37
38 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
39 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
40 Current_Body_Suffix => Ada_Body_Suffix).
41 Take into account Externally_Built attribute.
42
43 * clean.adb (In_Extension_Chain): Always return False when one of the
44 parameter is No_Project.
45 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
46 Ada_Language_Index).
47 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
48 Process_Languages for procedure Parse).
49
50 * gnatcmd.adb (Carg_Switches): New table.
51 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
52 Adapt to name changes in package Prj (Current_Spec_Suffix =>
53 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
54
55 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
56 Header_Num and function Hash are now declared in package Prj,
57 not Prj.Com.
58
59 * prj.adb (Suffix_Of): New function.
60 (Set (Suffix)): New procedure.
61 (Hash): One function moved from Prj.Com
62 (Is_Present, Language_Processing_Data_Of): New functions
63 (Set): Two new procedures
64 (Add_Language_Name, Display_Language_Name): New procedures
65
66 * prj.ads: (Suffix_Of): New function
67 (Set (Suffix)): New procedure
68 Add several types and tables for multi-language support.
69 (Header_Num): Type moved from Prj.Com
70 (Hash): Two functions moved from Prj.Com
71 (Is_Present, Language_Processing_Data_Of): New functions
72 (Set): Two new procedures
73 (Add_Language_Name, Display_Language_Name): New procedures
74 (Naming): Component name changes:
75 Current_Spec_Suffix => Ada_Spec_Suffix,
76 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
77 Impl_Suffixes, Supp_Suffixes.
78 (Project_Data): New components: Externally_Built, Supp_Languages,
79 First_Language_Processing, Supp_Language_Processing, Default_Linker,
80 Default_Linker_Path.
81
82 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
83 new package Language_Processing with its attributes (Compiler_Driver,
84 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
85 Binder_Driver, Default_Linker).
86
87 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
88 (Header_Num): Type moved to package Prj
89
90 * prj-env.adb: Adapt to name changes in package Prj
91 (Current_Spec_Suffix => Ada_Spec_Suffix,
92 Current_Body_Suffix => Ada_Body_Suffix).
93
94 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
95 default to the project path, except the "-" is one of the directories
96 in env var ADA_PROJECT_PATH.
97 (Current_Project_Path): Global variable, replacing Project_Path
98 that was in the body of Prj.Part.
99 (Project_Path): New function
100 (Set_Project_Path): New procedure
101 Initialize Current_Project_Path during elaboration of the package
102 Remove dependency on Prj.Com, no longer needed
103
104 * prj-ext.ads (Project_Path): New function
105 (Set_Project_Path): New procedure
106
107 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
108 suffix is defined for language <lang>.
109 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
110 accessing directly the components of Naming.
111 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
112 Reorganise of this package.
113 Break procedure Check in several procedures.
114
115 * prj-nmsc.ads: Replace all procedures (Ada_Check,
116 Other_Languages_Check and Language_Independent_Check) with a single
117 procedure Check.
118
119 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
120 Process_Languages, no longer needed.
121
122 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
123 Current_Project_Path.
124 Remove elaboration code, moved to the body of Prj.Ext
125 Use new function Prj.Ext.Project_Path instead of old variable
126 Project_Path.
127 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
128 When comparing with project paths on the stack, first put the resolved
129 path in canonical case.
130 (Parse_Single_Project): Set the path name of the project file in the
131 tree to the normalized path.
132
133 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
134 parameter Process_Languages, no longer needed.
135 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
136 Other_Languages_Check.
137
138 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
139 to store the resolved canonical path of the project file.
140 Remove dependency to Prj.Com, no longer needed
141
142 * prj-util.adb: Adapt to name changes in package Prj
143 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
144 Ada_Body_Suffix).
145
146 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
147 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
148 Externally_Built, Include_Option, Language_Processing.
149
150 * makegpr.adb: Numerous changes due to changes in packages
151 Prj and Prj.Nmsc.
152
153 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
154 default to the project path, except whe "-" is one of the directories
155 in env var ADA_PROJECT_PATH.
156 (Gnatls): In verbose mode, add the new section "Project Search Path:"
157
158 2004-12-07 Robert Dewar <dewar@adacore.com>
159
160 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
161
162 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
163 set -gnatR3m mode.
164
165 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
166 flag. No longer needed now that we handle this in gnat1drv.adb.
167
168 * repinfo.ads: Minor reformatting
169
170 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
171 Olivier Hainque <hainque@adacore.com>
172 Eric Botcazou <ebotcazou@adacore.com>
173
174 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
175 TYPE_SIZE_UNIT of result type if SIZE is not specified.
176 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
177 of a bitfield, which we know is useless and causes trouble because of
178 alignment implications.
179
180 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
181 BSS sections.
182 (process_attributes): Clear DECL_COMMON again when a section attribute
183 is present.
184 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
185 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
186 (create_field_decl): Special case ADDRESSABLE negative to mean
187 "no bitfield creation", to be used by make_aligning_type. Don't
188 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
189 fields claimed addressable still have to be bitfields. Use
190 value_factor_p instead of a raw binop construction to check for the
191 position's alignment.
192
193 2004-12-07 Geert Bosch <bosch@adacore.com>
194
195 * eval_fat.adb: Revert previous change.
196
197 2004-12-07 Thomas Quinot <quinot@adacore.com>
198 Ed Schonberg <schonberg@adacore.com>
199
200 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
201 with an implicit dereference as its prefix, use
202 Insert_Explicit_Dereference instead of merely rewriting the prefix into
203 an explicit dereference. This ensures that a reference to the original
204 prefix is generated, if appropriate.
205
206 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
207 dereference is rewritten to an explicit one, generate a reference to
208 the entity denoted by its prefix using the original prefix node, so
209 the dereference can be properly recorded as a read of the denoted
210 access value, if appropriate.
211
212 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
213 emitting 'assigned but never read' warning on a variable on the basis
214 that it has an access type.
215 (Check_References): Emit unreferenced warning when the scope is a
216 subprogram body.
217
218 2004-12-07 Robert Dewar <dewar@adacore.com>
219 Ed Schonberg <schonberg@adacore.com>
220
221 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
222 intrinsic
223
224 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
225 leaving call unchanged.
226 This deals with the case where the pragma Import specified
227 an external name, to be handled by the back end.
228
229 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
230 subprogram which is Imported with convention Intrinsic if an
231 External_Name argument is specified.
232 (Process_Import_Or_Interface): Properly diagnose link name argument.
233 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
234 with Sem_Ch6.Cannot_Inline.
235 (Process_Inline): Provide separate warning for inapplicable inline
236 pragma.
237 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
238 treatment is uniform on different targets.
239
240 2004-12-07 Ed Schonberg <schonberg@adacore.com>
241
242 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
243 construct is rewritten, preserve end label to permit source navigation.
244
245 2004-12-07 Thomas Quinot <quinot@adacore.com>
246
247 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
248 Specific_Build_Stub_Target): New subprograms.
249 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
250 the PCS implementation used, using the above PCS-customized subprograms.
251 Minor reformatting.
252 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
253 for generation of DSA code targeted to the PolyORB PCS.
254 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
255 implementation of the partition communication subsystem in ancillary
256 subprograms.
257 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
258 PolyORB_Support.Build_Stub_Type): New subrograms containing the
259 PCS-specific part of Add_Stub_Type.
260 (Insert_Partition_Check): Use runtime library function to perform
261 E.4(19) check.
262
263 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
264 (RE_Same_Partition): New entity, from s-parint.
265
266 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
267
268 2004-12-07 Gary Dismukes <dismukes@adacore.com>
269
270 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
271 Output the copyright message on a separate line from the version
272 message.
273
274 2004-12-07 Joel Brobecker <brobecker@adacore.com>
275
276 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
277 compile-time warning.
278
279 2004-12-07 Robert Dewar <dewar@adacore.com>
280
281 * g-regpat.adb: (Match): Change a misuse of or to or else
282
283 2004-12-07 Ed Schonberg <schonberg@adacore.com>
284
285 * lib-xref.adb:
286 (Generate_Reference): Handle properly a reference to an entry formal,
287 when an accept statement has a pragma Unreferenced for it.
288
289 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
290 and the Has_Pragma_Unreferenced flag for each formal before analyzing
291 the body, to ensure that warnings are properly emitted for each accept
292 statement of a given task entry.
293
294 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
295
296 * Makefile.in: Add support for foreign threads on VMS.
297
298 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
299
300 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
301 Remove.
302 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
303
304 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
305
306 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
307 exception.
308 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
309
310 2004-12-07 Robert Dewar <dewar@adacore.com>
311
312 * nlists.adb (Prepend_Debug): Remove parameters and nest within
313 Prepend.
314 (Remove_Next_Debug): Same fix
315
316 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
317 maintain back pointers now, though we did not used to, and comments
318 were out of date).
319 (Prepend): Remove pragma Inline.
320 (Remove_Next): Same cleanup
321
322 2004-12-07 Thomas Quinot <quinot@adacore.com>
323
324 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
325 used to record an implicit dereference as a read operation on its
326 prefix when operating under -gnatc. Necessary to avoid spurious
327 'variable assigned but never read' warnings in that mode.
328 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
329 is a non-overloaded implicit dereference, call the above subprogram to
330 ensure proper recording of references.
331
332 2004-12-07 Gary Dismukes <dismukes@adacore.com>
333
334 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
335 to be resolved later as part of Analyze_Iteration_Scheme's call to
336 Make_Index.
337
338 2004-12-07 Ed Schonberg <schonberg@adacore.com>
339
340 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
341 prefix is not a scalar type, place error message on prefix, not on
342 type entity.
343
344 2004-12-07 Bernard Banner <banner@adacore.com>
345
346 * vxaddr2line.adb: Add support for x86 vxworks
347
348 2004-12-07 Thomas Quinot <quinot@adacore.com>
349
350 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
351 documentation of the behaviour of these functions when passed an IP
352 address that has no record in the system hosts database and no reverse
353 record in the DNS.
354
355 * cstand.adb, a-tags.ads: Fix typos in comment.
356
357 2004-12-07 Robert Dewar <dewar@adacore.com>
358
359 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
360 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
361 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
362 s-poosiz.ads: Minor reformatting
363
364 * make.adb: Minor reformatting
365 Add some ??? comments asking for more comments
366
367 * s-poosiz.adb: Minor reformatting
368 Add comments on alignment requirement
369
370 * sinfo.ads: Remove obsolete comment and fix typo.
371
372 2004-12-07 Vincent Celier <celier@adacore.com>
373 Sergey Rybin <rybin@adacore.com>
374
375 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
376 Files" with the new tool and package names.
377 Reformatting to suppress most of the warnings for line too long
378 Document the new section "Project Search Path:" in the output of
379 gnatls -v.
380 Add gnatmetric section
381
382 2004-12-07 Vincent Celier <celier@adacore.com>
383
384 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
385 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
386 and -eit to -ept. Added qualifier
387 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
388
389 2004-11-27 Andreas Schwab <schwab@suse.de>
390
391 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
392
393 2004-11-25 Arnaud Charlet <charlet@adacore.com>
394
395 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
396 internal implementation unit GNAT.Sockets.Thin,
397 as their usage for sockets is non-portable (using the read and write
398 functions from the system runtime library is fine on UNIX but won't
399 work under Windows).
400
401 * mingw32.h: Update copyright notice.
402
403 2004-11-25 Arnaud Charlet <charlet@adacore.com>
404
405 * ada-tree.h: Minor reformatting of previous change to avoid lines
406 longer than 79 characters.
407
408 2004-11-25 Olivier Hainque <hainque@adacore.com>
409
410 * tb-gcc.c: GCC infrastructure based implementation of
411 __gnat_backtrace.
412
413 2004-11-24 Steven Bosscher <stevenb@suse.de>
414
415 * misc.c (gnat_post_options): Don't clear
416 flag_inline_functions.
417
418 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
419
420 PR ada/17986
421 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
422 tree.
423
424 2004-11-21 Andreas Jaeger <aj@suse.de>
425
426 * stylesw.adb: Change Style_Check_Subprogram_Order to
427 Style_Check_Order_Subprograms.
428
429 2004-11-18 Arnaud Charlet <charlet@adacore.com>
430
431 * adaint.h, adaint.c
432 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
433 to avoid warnings.
434 Add also a cast to kill another warning.
435 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
436 parameter with the priority class of the parent process instead of
437 always using the NORMAL_PRIORITY_CLASS.
438 (__gnat_dup): New function.
439 (__gnat_dup2): New function.
440 (__gnat_is_symbolic_link): Enable the effective body of this
441 function when __APPLE__ is defined.
442
443 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
444 Update comments.
445
446 2004-11-18 Olivier Hainque <hainque@adacore.com>
447
448 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
449 address of which may be used to represent "others" and "all others"
450 choices in exception tables, instead of the current harcoded
451 (void *)0 and (void *)1.
452 (Setup_Exception): Do nothing in the GNAT SJLJ case.
453
454 * gigi.h (others_decl, all_others_decl): New decls representing the
455 new Others_Value and All_Others_Value objects.
456 (struct attrib): Rename "arg" component as "args", since GCC expects a
457 list of arguments in there.
458
459 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
460 corresponding objects exported by a-exexpr, instead of hardcoded dummy
461 addresses.
462
463 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
464 others_decl and all_others_decl instead of hardcoded dummy addresses
465 to represent "others" and "all others" choices, which is cleaner and
466 more flexible with respect to the possible eh pointer encoding policies.
467
468 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
469 (process_attributes): Account for the naming change of the "args"
470 attribute list entry component.
471
472 * decl.c (build_attr_list): Rename into prepend_attributes to allow
473 cumulating attributes for different entities into a single list.
474 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
475 attributes for the current entity and propagate first subtype
476 attributes to other subtypes.
477 <E_Procedure>: Attribute arguments are attr->args and not
478 attr->arg any more.
479 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
480 argument provided, as this is what GCC expects. Use NULL_TREE instead
481 of 0 for trees.
482
483 2004-11-18 Robert Dewar <dewar@adacore.com>
484
485 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
486 Minor reformatting througout (including new function specs)
487 Add ??? comments asking for clarification.
488
489 2004-11-18 Thomas Quinot <quinot@adacore.com>
490
491 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
492 incomplete duplicate implementation of this subprogram from butil.
493
494 2004-11-18 Thomas Quinot <quinot@adacore.com>
495
496 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
497 procedures factors the common processing for building an RPC receiver
498 for an RCI package or an RACW type.
499 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
500 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
501 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
502 in use.
503 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
504 Add_RACW_Features.
505 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
506 Add_RAST_Features.
507 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
508 distribution subprogram identifiers that are either subprogram numbers
509 or strings.
510 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
511 string distribution identifiers assigned to a given subprogram.
512 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
513 (Add_RAS_Dereference_TSS): Add comments.
514 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
515 is not referenced yet because it will be used by the PolyORB DSA
516 implementation.
517 (Insert_Partition_Check): Remove fossile code.
518 (First_RCI_Subprogram_Id): Document this constant.
519 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
520 RAS_Access TSS.
521 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
522 replaced with calls to Get_Library_Unit_Name_String. Previously there
523 were several instances of the same code in different locations in the
524 compiler; this checkin completes the replacement of all of these
525 instances with calls to a common subprogram.
526 Minor reformatting.
527
528 * sem_dist.adb: Remove comment noting that RPC receiver generation
529 should be disabled for RACWs that implement RASs.
530 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
531
532 * sem_util.ads, sem_util.adb (Has_Stream): New function
533 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
534 qualified name of a library unit into the name buffer.
535 (Note_Possible_Modification): Generate a reference only
536 if the context comes from source.
537
538 * snames.ads (PCS_Names): New subtype corresponding to names of
539 supported implementations of the Partition Communication Subsystem
540 (PCS) (i.e. the runtime library support modules for the distributed
541 systems annex).
542
543 2004-11-18 Robert Dewar <dewar@adacore.com>
544 Ed Schonberg <schonberg@adacore.com>
545
546 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
547 (Has_Rep_Pragma): New function
548 (Has_Attribute_Definition_Clause): New function
549 (Record_Rep_Pragma): Moved here from sem_ch13.adb
550 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
551
552 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
553
554 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
555 (Expand_Pragma_Psect_Object): New procedure
556 These procedures contain the revised and cleaned up processing for
557 these two pragmas. This processing was formerly in Sem_Prag, but
558 is more appropriately moved here. The cleanup involves making sure
559 that the pragmas are properly attached to the tree, and that no
560 nodes are improperly shared.
561
562 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
563 pragmas to Exp_Prag, which is more appropriate.
564 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
565 check for duplicates Remove use of Is_Psected flag, no longer needed.
566 Use new Make_String_Literal function with string.
567
568 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
569 that are functions return universal values, that have to be converted
570 to the context type.
571 Use new Make_String_Literal function with string.
572 (Get_Stream_Convert_Pragma): New function, replaces the use of
573 Get_Rep_Pragma, which had to be kludged to work in this case.
574
575 * freeze.adb: Use new Has_Rep_Pragma function
576
577 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
578 function with string.
579 Use new Has_Rep_Pragma function.
580
581 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
582 string argument.
583
584 2004-11-18 Robert Dewar <dewar@adacore.com>
585
586 * errout.ads, errout.adb: (First_Sloc): New function
587
588 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
589 check (-gnatyx) instead of being included as a redundant construct
590 warning.
591
592 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
593 Style_Check_Order_Subprograms.
594
595 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
596 stylesw.adb: Add Style_Check_Xtra_Parens
597
598 * usage.adb: Add line for -gnatyx (check extra parens)
599
600 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
601
602 2004-11-18 Ed Schonberg <schonberg@adacore.com>
603 Robert Dewar <dewar@adacore.com>
604
605 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
606 discriminant of a constrained subtype, analyze the copy of the
607 corresponding constraint, because in some cases it may be only
608 partially analyzed.
609 Removes long-lived ??? comments.
610
611 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
612 handled controlled or secondary-stack expressions within the
613 iteration_scheme of a loop.
614
615 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
616 bounds that may contain functions calls, to prevent memory leaks when
617 the bound contains a call to a function that uses the secondary stack.
618 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
619 generate temporaries for loop bounds that might contain function calls
620 that require secondary stack and/or finalization actions.
621
622 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
623 selected component and the selector is overloadable (not just a
624 function) treat as function call, Analyze_Call will disambiguate if
625 necessary.
626 (Analyze_Selected_Component): Do not generate an actual subtype for the
627 selected component if expansion is disabled. The actual subtype is only
628 needed for constraint checks.
629 (Analyze_Allocator): If restriction No_Streams is set, then do
630 not permit objects to be declared of a stream type, or of a
631 composite type containing a stream.
632
633 * restrict.ads: Remove the a-stream entry from Unit_Array, since
634 No_Streams no longer prohibits with'ing this package.
635
636 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
637 discriminants, but the parent base has unknown discriminants, there is
638 no discriminant constraint to inherit. Such a discrepancy can arise
639 when the actual for a formal type with unknown discriminants is a
640 similar private type whose full view has discriminants.
641 (Analyze_Object_Declaration): If restriction No_Streams is set, then
642 do not permit objects to be declared of a stream type, or of a
643 composite type containing a stream.
644
645 2004-11-18 Ed Schonberg <schonberg@adacore.com>
646
647 * exp_dbug.ads: Update documentation to reflect simpler encoding for
648 protected operations.
649
650 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
651 generated name, it complicates decoding in gdb and hinders debugging
652 of protected operations.
653 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
654 flag for the protected entry barrier function.
655 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
656 flag for the protected entry function.
657
658 2004-11-18 Nicolas Setton <setton@adacore.com>
659
660 * expect.c: Define __unix__ when __APPLE__ is defined.
661
662 * Makefile.in: Inform the value of the variable GMEM_LIB in the
663 Darwin-specific section.
664
665 * lang-specs.h: Change the placement of the %1 marker.
666 Works around the fact that gcc adds -fPIC by default under Darwin.
667
668 2004-11-18 Ed Schonberg <schonberg@adacore.com>
669
670 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
671 type of the object with the packed array type, set the Analyzed flag
672 on the object if it is an entity or simple indexed component, to avoid
673 spurious type errors.
674
675 2004-11-18 Gary Dismukes <dismukes@adacore.com>
676
677 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
678 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
679 separate line from the version message.
680
681 2004-11-18 Ed Falis <falis@adacore.com>
682
683 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
684 vthreads.
685 (init_float): Eliminate initialization of floating point status for
686 AE653. The instructions have no effect for vThreads.
687
688 2004-11-18 Vincent Celier <celier@adacore.com>
689
690 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
691 gnatbind is invoked with -shared.
692
693 2004-11-18 Jose Ruiz <ruiz@adacore.com>
694
695 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
696 for Detect_Blocking which is redundant with the check done within the
697 procedure Protected_Single_Entry_Call.
698 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
699 Detect_Blocking which is redundant with the check done within the
700 procedure Protected_Single_Entry_Call.
701
702 2004-11-18 Vincent Celier <celier@adacore.com>
703
704 * makegpr.adb (Compile): Put the compiling switches (in package
705 Compiler and on the command line) immediately after "-c", instead of
706 at the end of the command line invocation of the compiler, when
707 compiling a non-Ada file.
708 (Build_Global_Archive): When there is no need to rebuild the archive,
709 set Global_Archive_Exists, so that the archive is passed to the linker
710 if one is needed.
711
712 2004-11-18 Robert Dewar <dewar@adacore.com>
713 Sergey Rybin <rybin@adacore.com>
714
715 * gnat_ugn.texi:
716 Remove extra paren check from list of checks for redundant constructs
717 Add documentation of new -gnatyx style check (check extra parens)
718 Remove paragraph about gnatelim debug options.
719
720 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
721 objects rather than forbidding dependencies on the package Ada.Streams.
722
723 * sinfo.ads: Add ??? note that we should document pragmas passed to
724 back end.
725
726 * g-expect.ads: Fix a few typos in the comments.
727
728 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
729
730 * misc.c (gnat_handle_option): Use %< and %> for quoting in
731 warning message.
732
733 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
734
735 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
736
737 2004-11-07 Andreas Schwab <schwab@suse.de>
738
739 * Makefile.in (install-gnatlib): Remove spurious hyphen.
740
741 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
742
743 PR ada/18228
744 * Makefile.in (darwin): Set soext to .dylib.
745
746 2004-10-26 Vincent Celier <celier@gnat.com>
747 Thomas Quinot <quinot@act-europe.fr>
748
749 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
750 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
751 there is no use of GNAT.Sockets.Constants.
752 Remove remaining pragma Import for C_Write
753 Remove C_Read and C_Write from internal implementation unit
754 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
755 the read and write functions from the system runtime library is fine
756 on UNIX but won't work under Windows).
757
758 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
759 (Check_Selector): Use C_Recv instead of C_Read.
760 Selectors are the GNAT.Sockets abstraction to perform a select()
761 call on a set of descriptors. To allow abortion of an ongoing
762 select operation, some data is written to a dedicated socket that
763 is always monitored.
764 Under Windows, the write and read library functions cannot operate
765 on sockets, so we need to use send and recv instead, which is portable
766 across all supported platforms.
767
768 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
769 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
770 (using the read and write functions from the system runtime library is
771 fine on UNIX but won't work under Windows).
772
773 2004-10-26 Nicolas Setton <setton@act-europe.fr>
774
775 * mlib-tgt-darwin.adb: New file.
776
777 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
778 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
779 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
780 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
781 subprogram body.
782
783 * Makefile.in: Add support for building shared libraries under Darwin.
784 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
785 the low level EH init subprogram to be called from __gnat_initialize.
786
787 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
788 indicates which options to pass to the archive indexer.
789
790 * mlib-utl.adb: Add support for calling ranlib with additional
791 options. This is needed for instance under Mac OS X.
792 (Ranlib_Options): New global variable, used to store the potential
793 options to pass to ranlib.
794 (Ar): Use Ranlib_Options when spawning ranlib.
795 (Initialize): Set the value of ranlib option.
796
797 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
798
799 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
800 instead of 8K, to reflect the real potential needs for stack-checking
801 in the ZCX case.
802
803 2004-10-26 Pascal Obry <obry@gnat.com>
804
805 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
806
807 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
808 Windows only the initial thread stack size can be set so it is good to
809 start we a low stack size.
810 The OS will adjust the size as needed.
811
812 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
813 Nicolas Setton <setton@act-europe.fr>
814
815 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
816 "__unix__" instead of "unix".
817 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
818 sections were just mistakenly ignored. The former is
819 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
820 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
821 of hpux. This prevents an unwanted definition of the symbol
822 convert_addresses in adaint.o.
823
824 2004-10-26 Gary Dismukes <dismukes@gnat.com>
825
826 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
827 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
828
829 2004-10-26 Cyrille Comar <comar@act-europe.fr>
830
831 * a-filico.ads, a-filico.adb: fix incorrect header.
832
833 2004-10-26 Javier Miranda <miranda@gnat.com>
834
835 * a-ststio.ads: Fix typo in identifier
836
837 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
838
839 * sem_ch4.adb: Minor reformatting.
840
841 2004-10-26 Ed Schonberg <schonberg@gnat.com>
842
843 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
844 enabled, check the result of unary and binary operations when the
845 expression is the right-hand side of an assignment.
846
847 2004-10-26 Vincent Celier <celier@gnat.com>
848
849 * clean.adb (Delete): Do not output warnings when in quiet output and
850 not in verbose mode.
851 (Force_Deletions): New Boolean flag, defaulted to False
852 (Delete): Only delete a file if it is writable, and when
853 Force_Deletions is True.
854 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
855 (Usage): Line for new switch -f
856 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
857 own.
858
859 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
860
861 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
862 JM type only if its size matches that of the wrapper. When a size is
863 prescribed and the field is not aliased, remove the wrapper of a JM
864 type only if the size is not greater than that of the packed array.
865 (gnat_to_gnu_entity): Change the extension of packed array wrappers
866 from LJM to JM.
867
868 2004-10-26 Geert Bosch <bosch@gnat.com>
869
870 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
871 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
872 (Pred): Implement in terms of Succ.
873
874 2004-10-26 Ed Schonberg <schonberg@gnat.com>
875
876 * exp_aggr.adb (Safe_Component): An aggregate component that is an
877 unchecked conversion is safe for in-place use if the expression of the
878 conversion is safe.
879 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
880 be expandable in place even if the aggregate does not come from source.
881 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
882 designated object of an allocator in place, rather than building it
883 first on the stack. The previous scheme forces a full copy of the array,
884 and may be altogether unsusable if the size of the array is too large
885 for stack allocation.
886
887 2004-10-26 Robert Dewar <dewar@gnat.com>
888
889 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
890 compares if the component is atomic.
891
892 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
893 array assignment if the component type is atomic.
894
895 2004-10-26 Ed Schonberg <schonberg@gnat.com>
896 Eric Botcazou <ebotcazou@act-europe.fr>
897
898 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
899 is aliased and is a by_reference type, do not pass by copy.
900 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
901 detect whether the call is in the right side of an assignment or
902 the expression of an object declaration. Recurse on component
903 association within aggregates.
904 Call it in the condition that determines whether the temporary is
905 necessary for correct stack-checking.
906
907 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
908
909 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
910 RACW_Type, used in the PolyORB version.
911 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
912 version and the GARLIC version.
913
914 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
915 Rename RCI_Info to RCI_Locator for better consistency between the
916 GARLIC and PolyORB versions of the distributed systems annex.
917 (DSA_Implementation_Name): This enumeration lists the possible
918 implementations of the Partition Communication Subsystem for the
919 Distributed Systems Annex (DSA). The three available implementations
920 are the dummy stub implementation (No_DSA), and two versions based on
921 two different distribution runtime libraries: GARLIC and PolyORB. Both
922 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
923 technology.
924 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
925 that organization.
926
927 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
928 between the GARLIC and PolyORB versions of the distributed systems
929 annex.
930 Remove RE_Unbounded_Reclaim_Pool since it is unused.
931
932 2004-10-26 Gary Dismukes <dismukes@gnat.com>
933
934 * gnat1drv.adb: Suppress calling the back end when
935 Frontend_Layout_On_Target is true.
936
937 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
938
939 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
940 Set_Read_Only): New subprograms.
941 These new routines allow the user to set or unset the Owner execute
942 and Owner write permission flags on a file.
943
944 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
945 GNAT.OS_Lib.Set_Executable instead of rolling our own.
946
947 2004-10-26 Matthew Gingell <gingell@gnat.com>
948
949 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
950
951 2004-10-26 Pascal Obry <obry@gnat.com>
952
953 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
954 memory before the faulting page we properly test the process read
955 access for this address using appropriate Win32 routine.
956 (HPUX sections): guard with "__hpux__" instead of "hpux".
957
958 2004-10-26 Robert Dewar <dewar@gnat.com>
959
960 * lib-xref.adb (Generate_Reference): Don't complain about reference to
961 entry parameter if pragma Unreferenced set, since we do not properly
962 handle the case of multiple parameters.
963
964 2004-10-26 Vincent Celier <celier@gnat.com>
965
966 * prj-env.adb: (Contains_ALI_Files): New Boolean function
967 (Ada_Objects_Path.Add): For a library project, add to the object path
968 the library directory only if there is no object directory or if the
969 library directory contains ALI files.
970 (Set_Ada_Paths.Add.Recursive_Add): Ditto
971
972 2004-10-26 Vincent Celier <celier@gnat.com>
973
974 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
975 extension of library projects.
976
977 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
978 path defaults to ".:<prefix>/lib/gnat".
979 (Parse): For an extending all project, allow direct import of a project
980 that is virtually extended.
981
982 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
983 the specified name is directly imported, return its ID. Otherwise, if
984 an extension of this project is imported, return the ID of the
985 extension.
986
987 2004-10-26 Robert Dewar <dewar@gnat.com>
988
989 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
990 (Sub3): New procedure, used by Scaled_Divide
991 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
992 correct more than one instance of failure to propagate carries
993 correctly.
994 (Double_Divide): Handle overflow case of largest negative number
995 divided by minus one.
996
997 * s-arit64.ads (Double_Divide): Document that overflow can occur in
998 the case of a quotient value out of range.
999 Fix comments.
1000
1001 2004-10-26 Robert Dewar <dewar@gnat.com>
1002
1003 * s-bitops.adb (Bit_Eq): Remove redundant check.
1004
1005 * s-bitops.ads: Minor comment updates
1006 Change some occurrences of Address to System.Address
1007
1008 * s-carsi8.ads: Fix minor cut-and-paste error in comments
1009
1010 2004-10-26 Ed Schonberg <schonberg@gnat.com>
1011
1012 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
1013 accessibility check to prefix that is a protected operation.
1014
1015 2004-10-26 Ed Schonberg <schonberg@gnat.com>
1016
1017 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
1018 empty, post message on stub.
1019
1020 2004-10-26 Ed Schonberg <schonberg@gnat.com>
1021 Javier Miranda <miranda@gnat.com>
1022
1023 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
1024 current instance appears within a unit that is directly in the context
1025 of the main unit.
1026 Used to determine whether the body of the instance should be analyzed
1027 immediately after its spec, to make its subprogram bodies available
1028 for front-end inlining.
1029 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
1030 constraint is not allowed on the component type (AARM 12.5.3(3))
1031
1032 2004-10-26 Cyrille Comar <comar@act-europe.fr>
1033
1034 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1035 'Storage_Pool): enhance, document & limit detection of non-sharable
1036 internal pools.
1037
1038 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
1039
1040 * s-pooglo.ads: Add more documentation now that this pool is properly
1041 documented.
1042
1043 2004-10-26 Ed Schonberg <schonberg@gnat.com>
1044
1045 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
1046 or protected type with discriminants, do not constrain the
1047 corresponding record type if the subtype declaration has no
1048 discriminant constraints. This can be the case in source code, or in
1049 the subtype declaration created to rename an actual type within an
1050 instantiation.
1051
1052 2004-10-26 Ed Schonberg <schonberg@gnat.com>
1053
1054 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
1055 different kind of stub (possibly wrong name for file), do not check
1056 for conformance.
1057 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
1058 includes call to some function that returns an unconstrained type, do
1059 not inline.
1060
1061 2004-10-26 Ed Schonberg <schonberg@gnat.com>
1062
1063 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
1064 appear in the code for the main unit. Dependencies among units in the
1065 context of the main unit are established when those other units are
1066 compiled. Otherwise spurious elaboration constraints can generate
1067 incorrect elaboration circularities.
1068
1069 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
1070 Ed Schonberg <schonberg@gnat.com>
1071
1072 * sem_util.adb (Is_Aliased_View): Defend against the case where this
1073 subprogram is called with a parameter that is not an object name. This
1074 situation arises for some cases of illegal code, which is diagnosed
1075 later, and in this case it is wrong to call Is_Aliased, as that might
1076 cause a compiler crash.
1077 (Explain_Limited_Type): Refine previous fix to include
1078 inherited components of derived types, to provide complete information.
1079
1080 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
1081 is the prival for a protected object.
1082 It is necessary to mark this entity as a variable, in addition to
1083 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
1084 modified to avoid checking the Aliased flag on entities that are not
1085 objects. (Checking that flag for non-objects is erroneous and could
1086 lead to a compiler crash).
1087
1088 2004-10-26 Robert Dewar <dewar@gnat.com>
1089
1090 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
1091 X_Frac = 0.5, then we know that the number X must be positive.
1092 (Succ): Remove the same redundant test, and also fix the primary test
1093 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
1094 Minor reformatting
1095 (Decompose): Add fuller comments to spec
1096
1097 2004-10-26 Pascal Obry <obry@gnat.com>
1098
1099 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
1100 validity (process must have read access). Set to 0 in all other cases.
1101 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
1102 violation on Win32.
1103 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
1104 segmentation violation.
1105
1106 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
1107
1108 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
1109 whose type is a constructed subtype of an aliased object with an
1110 unconstrained nominal subtype, convert the actual to the constructed
1111 subtype before taking its address.
1112
1113 2004-10-26 Vincent Celier <celier@gnat.com>
1114
1115 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
1116 (Is_Path_Name_Case_Sensitive): New function
1117
1118 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
1119 (Base_Name, Simple_Name, Current_Directory, Compose,
1120 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
1121 the result.
1122
1123 2004-10-26 Cyrille Comar <comar@act-europe.fr>
1124 Vasiliy Fofanov <fofanov@act-europe.fr>
1125 Vincent Celier <celier@gnat.com>
1126
1127 * gnat_ugn.texi: Generalize "finding memory problems" section into a
1128 "memory management issues" section and document some of the useful
1129 memory pools provided as part of the GNAT library.
1130 Remove "virtual" from declaration of A::method2 in
1131 the simple example of Ada/C++ mixed system.
1132 Library Projects may be virtually extended: their virtual extensions
1133 are not Library Projects.
1134 Added section on extending project hierarchies.
1135
1136 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
1137
1138 * adaint.c (__gnat_get_libraries_from_registry): Cast value
1139 to LPBYTE.
1140 (__gnat_portable_spawn): Remove const.
1141
1142 * mingw32.h (MAXPATHLEN): Check for previous definition.
1143
1144 2004-10-17 Matthias Klose <doko@debian.org>
1145
1146 * gnatvsn.ads: Set gnat library version to 4.0.
1147
1148 2004-10-05 Vincent Celier <celier@gnat.com>
1149
1150 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
1151
1152 2004-10-04 Laurent GUERBY <laurent@guerby.net>
1153
1154 PR ada/15156
1155 * Makefile.in: Define and use RANLIB_FLAGS.
1156
1157 2004-10-04 Pascal Obry <obry@gnat.com>
1158
1159 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
1160 other x86 platforms).
1161
1162 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
1163
1164 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
1165 in general and triggers stack alignment adjustment for thread entry
1166 points on targets where this is necessary.
1167
1168 2004-10-04 Bernard Banner <banner@gnat.com>
1169
1170 PR ada/13897
1171
1172 * Makefile.in: Add section for powerpc linux
1173 Add variant i-vxwork-x86.ads
1174
1175 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
1176
1177 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
1178
1179 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
1180 table registration calls when need be. Ensures no reference to the crt
1181 ctors symbol are issued in the SJLJ case, which avoids possible
1182 undefined symbol errors in the case of modules to be statically linked
1183 with the kernel.
1184
1185 2004-10-04 Javier Miranda <miranda@gnat.com>
1186
1187 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
1188 in-line the code corresponding to subprogram Analyze_Actuals. In
1189 addition, analyze the actuals only in case of subprogram call.
1190
1191 2004-10-04 Ed Falis <falis@gnat.com>
1192
1193 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
1194
1195 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
1196
1197 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
1198 in the documentation.
1199
1200 2004-10-04 Robert Dewar <dewar@gnat.com>
1201
1202 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
1203 IF and CASE.
1204 (Analyze_Block_Statement): Add circuitry to detect following dead code
1205 (Check_Unreachable_Code): Handle case of block exit
1206
1207 2004-10-04 Robert Dewar <dewar@gnat.com>
1208
1209 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
1210 (XMatchD): Avoid warning for Logic_Error call
1211
1212 2004-10-04 Robert Dewar <dewar@gnat.com>
1213
1214 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
1215 consider expressions buried within a procedure actual to be an actual.
1216 This caused some blowups with uses of packed slices within a procedure
1217 actual.
1218
1219 2004-10-04 Robert Dewar <dewar@gnat.com>
1220
1221 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
1222 longer need to be initialized to zero.
1223 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
1224 initialized to zero.
1225
1226 * checks.adb (Expr_Known_Valid): Packed arrays are now always
1227 considered valid, even if the representation is modular. That's correct
1228 now that we no longer initialize packed modular arrays to zero.
1229
1230 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
1231 suffixes. These are now documented as the only cases in which the
1232 debugger ignores outer records.
1233 Previously, the spec allowed arbitrary suffixes for this purpose.
1234 Change name of LJM to JM for packed array pad records
1235 Create separate section on packed array handling, and add a whole new
1236 set of comments to this section describing the situation with packed
1237 modular types and justification requirements depending on endianness.
1238
1239 2004-10-04 Robert Dewar <dewar@gnat.com>
1240
1241 * a-except.adb: Add a comment for last change
1242
1243 * einfo.ads: Minor spelling correction in comment
1244
1245 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
1246
1247 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
1248 messages.
1249
1250 * sem_util.ads: Minor comment update
1251
1252 2004-10-04 Ed Schonberg <schonberg@gnat.com>
1253
1254 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
1255 Inline_Always when in Configurable_Run_Time mode.
1256
1257 * sem_prag.adb (Process_Convention): If entity is an inherited
1258 subprogram, apply convention to parent subprogram if in same scope.
1259 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
1260 when in Configurable_Run_Time mode.
1261
1262 2004-10-04 Ed Schonberg <schonberg@gnat.com>
1263
1264 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
1265 class_wide type after component list has been inherited.
1266
1267 2004-10-04 Ed Schonberg <schonberg@gnat.com>
1268
1269 * sem_ch12.adb (Check_Generic_Actuals): New predicate
1270 Denotes_Previous_Actual, to handle properly the case of a private
1271 actual that is also the component type of a subsequent array actual.
1272 The visibility status of the first actual is not affected when the
1273 second is installed.
1274 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
1275 make fully recursive the treatment of formals of packages declared
1276 with a box.
1277 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
1278 the above on exit from an instantiation.
1279 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
1280 current instantiation which is now complete.
1281 (Analyze_Package_Instantiation): No instantiated body is needed if the
1282 main unit is generic. Efficient, and avoid anomalies when a instance
1283 appears in a package accessed through rtsfind.
1284
1285 2004-10-04 Ed Schonberg <schonberg@gnat.com>
1286
1287 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
1288 do not generate a declaration for a temporary if the call is part of a
1289 library-level instantiation.
1290
1291 2004-10-04 Ed Schonberg <schonberg@gnat.com>
1292
1293 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
1294 searching for a limited component to flag.
1295
1296 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
1297 expansion of Input, to account for the fact that the implicit call
1298 generated by the attribute reference must freeze the user-defined
1299 stream subprogram. This is only relevant to 'Input, because it can
1300 appear in an object declaration, prior to the body of the subprogram.
1301
1302 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
1303 expansion can proceed and further errors uncovered.
1304 (Minor clean up): Fix cases of using | instead of \ for continuation
1305 messages.
1306
1307 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1308
1309 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
1310
1311 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
1312 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
1313 Use gcc_assert and gcc_unreachable.
1314
1315 * decl.c (gnat_to_gnu_entity, case object): Check and process a
1316 specified alignment before validating size.
1317 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
1318 stripped-down declaration for the type of the inner field when making
1319 a JM type.
1320
1321 * utils.c (finish_record_type): Do not compute the size in units
1322 incrementally. Instead compute it once for the rep clause case.
1323 Use gcc_assert and gcc_unreachable.
1324
1325 2004-10-04 Vincent Celier <celier@gnat.com>
1326
1327 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
1328 in file name.
1329 (Is_Valid_Path_Name): Take '/' as a directory separator.
1330
1331 2004-10-04 Vincent Celier <celier@gnat.com>
1332
1333 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
1334 (Extended_Project) only if Extended_Project is defined, to avoid
1335 assertion error.
1336 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
1337 resolved path.
1338 (Parse_Single_Project): Ditto.
1339
1340 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
1341 Add_To_Project_Path for virtual projects.
1342
1343 2004-10-04 Vincent Celier <celier@gnat.com>
1344
1345 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1346 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1347 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
1348 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
1349 parameter Options_2.
1350
1351 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
1352 Build_Dynamic_Library with an empty Options_2.
1353
1354 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
1355 default anymore.
1356
1357 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
1358 directory separator, if any.
1359 (Gprmake): Do not allow mains on the command line for library projects.
1360 Do not attempt to link when the project is a library project.
1361 (Library_Opts): New table to store Library_Options.
1362 (Build_Library): If Library_Options is specified, pass these options
1363 when building a shared library.
1364
1365 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
1366
1367 * s-tposen.adb (Service_Entry): The object must be always unlocked at
1368 the end of this procedure now that the unlock operation was inserted
1369 by the expander.
1370
1371 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
1372
1373 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
1374 corresponding to the Preallocated_Stacks flags in System.
1375 (Get_Target_Parameters): Including the processing for
1376 Preallocated_Stacks.
1377
1378 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
1379 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
1380 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
1381 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
1382 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
1383 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
1384 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
1385 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
1386 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
1387 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
1388 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
1389 used to signal whether the compiler creates the required stacks and
1390 descriptors for the different tasks (when True) or it is done by the
1391 underlying operating system at run time (when False).
1392 It is initially set to False in all targets.
1393
1394 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
1395 if it is supported by the target.
1396 (Make_Task_Create_Call): Pass the stack address if it has been
1397 previously created. Otherwise pass a Null_Address.
1398
1399 * snames.adb: Add _stack.
1400
1401 * snames.ads: Add Name_uStack. Required to allow the expander to
1402 statically allocated task stacks.
1403
1404 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
1405 Stack_Address argument.
1406 Check that its value is equal to Null_Address because this target does
1407 not support the static stack allocation.
1408
1409 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
1410
1411 * usage.adb: Change "pragma inline" to "pragma Inline" in information
1412 and error messages
1413
1414 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
1415
1416 * exp_dist.adb: Split declaration of asynchronous flag out of
1417 Add_RACW_Read_Attribute.
1418 Minor reformatting for better alignment with PolyORB version.
1419 Store the entity for the asynchronous flag of an RACW, rather than the
1420 expression, in the asynchronous flags table. This will allow this flag
1421 to be used in other subprograms beside Add_RACW_Read_Attribute.
1422
1423 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
1424
1425 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
1426 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1427 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
1428 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
1429 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
1430 sockets constant MSG_NOSIGNAL (Linux-specific).
1431 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
1432 all Send operations.
1433 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
1434 from trigerring SIGPIPE.
1435 Rename components to avoid clash with Ada 2005 possible reserved
1436 word 'interface'.
1437 (Check_Selector): When the select system call returns with an error
1438 condition, propagate Socket_Error to the caller.
1439
1440 2004-10-01 Jan Hubicka <jh@suse.cz>
1441
1442 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
1443
1444 2004-09-23 Robert Dewar <dewar@gnat.com>
1445
1446 PR ada/17540
1447
1448 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
1449 instead do this at freeze time (we won't do it if there is an address
1450 clause).
1451 Change "pragma inline" to "pragma Inline" in information and error
1452 messages.
1453 Minor reformatting.
1454
1455 * freeze.adb (Check_Address_Clause): Remove previous change, not the
1456 right way of doing things after all.
1457 (Freeze_Entity): For object, set Is_Public for imported entities
1458 unless there is an address clause present.
1459
1460 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
1461
1462 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
1463 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
1464 ensures proper handling of types with rep clauses, which might have
1465 their TYPE_SIZE set already.
1466
1467 2004-09-21 Robert Dewar <dewar@gnat.com>
1468
1469 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
1470 packed array types in both little- and big-endian cases. This change
1471 ensures that we no longer count on the unused bits being initialized
1472 for such types (and in particular ensures that equality testing will
1473 only read the relevant bits).
1474 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1475 These changes mean that we no longer need to initialize small packed
1476 arrays.
1477 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
1478 optimization to an LJM field as to its parent field.
1479
1480 * ada-tree.h, trans.c, utils.c, utils2.c:
1481 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1482
1483 2004-09-20 Jan Hubicka <jh@suse.cz>
1484
1485 * utils.c (gnat_finalize): Remove.
1486 (end_subprog_body): Directly call cgraph_finalize_function;
1487 do not lower the nested functions.
1488
1489 2004-09-20 Robert Dewar <dewar@gnat.com>
1490
1491 PR ada/17540
1492
1493 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
1494 if an address clause is present, since that means that the Import
1495 should be ignored.
1496
1497 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
1498
1499 * 5tsystem.ads: Removed, no longer used.
1500
1501 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
1502 Zack Weinberg <zack@codesourcery.com>
1503
1504 * ada-tree.def: Use tree_code_class enumeration constants
1505 instead of code letters.
1506 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
1507 Update for new tree-class enumeration constants.
1508
1509 2004-09-17 Vincent Celier <celier@gnat.com>
1510
1511 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
1512 capabilities of the general project manager.
1513
1514 2004-09-09 Vincent Celier <celier@gnat.com>
1515
1516 * a-direct.ads: Add pragma Ada_05
1517 (Directory_Entry_Type): Give default value to component Kind to avoid
1518 not initialized warnings.
1519
1520 * a-direct.adb (Current_Directory): Remove directory separator at the
1521 end.
1522 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
1523 an existing directory.
1524 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
1525 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
1526 Convert the result to File_Size.
1527
1528 * prj.ads: (Project_Error): New exception
1529
1530 * prj-attr.adb: Except in procedure Initialize, Fail comes from
1531 Prj.Com, not from Osint.
1532 (Attrs, Package_Attributes): Tables moved to private part of spec
1533 (Add_Attribute, Add_Unknown_Package): Moved to new child package
1534 Prj.Attr.PM.
1535 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
1536 Prj.Project_Error after call to Fail.
1537 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
1538 Fail. Check that package name is not already in use.
1539
1540 * prj-attr.ads: Comment updates to indicate that all subprograms may be
1541 used by tools, not only by the project manager, and to indicate that
1542 exception Prj.Prj_Error may be raised in case of problem.
1543 (Add_Unknown_Package, Add_Attribute): Moved to new child package
1544 Prj.Attr.PM.
1545 (Attrs, Package_Attributes): Table instantiations moved from the body to
1546 the private part to be accessible from Prj.Attr.PM body.
1547
1548 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
1549 from new package Prj.Attr.PM.
1550 (Parse_Attribute_Declaration): Call Add_Attribute from new package
1551 Prj.Attr.PM.
1552
1553 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
1554
1555 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
1556 instead of Elaboration_Checks).
1557
1558 * a-calend.adb: Minor reformatting
1559
1560 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1561
1562 * gigi.h (maybe_pad_type): New declaration.
1563 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
1564
1565 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
1566
1567 * cuintp.c: Convert to use buildN.
1568
1569 * decl.c (maybe_pad_type): No longer static.
1570 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
1571 target pointer.
1572 Convert to use buildN.
1573
1574 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
1575 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
1576 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
1577 RHS.
1578 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
1579 (gnat_gimplify_expr, case ADDR_EXPR): New case.
1580 Convert to use buildN.
1581
1582 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
1583 TREE_READONLY for const.
1584 Convert to use buildN.
1585
1586 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
1587 (create_var_decl): Refine when TREE_STATIC is set.
1588 Convert to use buildN.
1589
1590 2004-09-09 Gary Dismukes <dismukes@gnat.com>
1591
1592 * gnat_ugn.texi: Delete text relating to checking of ali and object
1593 consistency.
1594
1595 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
1596 routines.
1597
1598 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
1599
1600 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
1601 pragmas recognized by GNAT.
1602
1603 * gnat_rm.texi: Document pragma Detect_Blocking.
1604
1605 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
1606 raise Program_Error if called from a protected operation.
1607
1608 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
1609 the protected action nesting level.
1610 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
1611 protected action nesting level.
1612 (Unlock): When pragma Detect_Blocking is active decrease the protected
1613 action nesting level.
1614
1615 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
1616 Protected_Action_Nesting.
1617
1618 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
1619 Common_ATCB record. It contains the dynamic level of protected action
1620 nesting for each task. It is needed for checking whether potentially
1621 blocking operations are called from protected operations.
1622 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
1623 Detect_Blocking is active or not in the partition.
1624
1625 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
1626 raise Program_Error if called from a protected operation.
1627 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
1628 Program_Error if called from a protected operation.
1629 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
1630 Program_Error if called from a protected operation.
1631
1632 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
1633 raise Program_Error if called from a protected operation.
1634
1635 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
1636 raise Program_Error if called from a protected operation, and increase
1637 the protected action nesting level.
1638 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
1639 Program_Error if called from a protected operation, and increase the
1640 protected action nesting level.
1641 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
1642 protected action nesting level.
1643
1644 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
1645 raise Program_Error if called from a protected operation, and increase
1646 the protected action nesting level.
1647 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
1648 Program_Error if called from a protected operation, and increase the
1649 protected action nesting level.
1650 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
1651 raise Program_Error if called from a protected operation.
1652 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
1653 active, raise Program_Error if called from a protected operation.
1654 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
1655 protected action nesting level.
1656
1657 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
1658 insertion of the statement raising Program_Error. The run time
1659 contains the required machinery for handling that.
1660
1661 * sem_util.ads: Change comment associated to procedure
1662 Check_Potentially_Blocking_Operation.
1663 This procedure does not insert a call for raising the exception because
1664 that is currently done by the run time.
1665
1666 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
1667
1668 * init.c: Add the global variable __gl_detect_blocking that indicates
1669 whether pragma Detect_Blocking is active (1) or not (0). Needed for
1670 making the pragma available at run time.
1671 (__gnat_set_globals): Pass and update the detect_blocking parameter.
1672
1673 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
1674 pragma Detect_Blocking is active.
1675
1676 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
1677
1678 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
1679 DB is found in the ali file. Any unit compiled with pragma
1680 Detect_Blocking active forces its effect in the whole partition.
1681
1682 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
1683 Detect_Blocking is active and delay is called from a protected
1684 operation.
1685
1686 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
1687 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
1688 Detect_Blocking is active (0 otherwise).
1689 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
1690 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
1691 otherwise).
1692
1693 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
1694
1695 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
1696 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
1697 package.
1698
1699 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
1700 (Register_Receiving_Stub): Add Subp_Info formal parameter.
1701 Update API in placeholder implemetation of s-parint to reflect changes
1702 in distribution runtime library.
1703
1704 * sem_ch3.adb (Expand_Derived_Record): Rename to
1705 Expand_Record_Extension.
1706
1707 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
1708 primitive operations of potentially distributed object types that have
1709 non-controlling anonymous access formals.
1710
1711 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
1712 subprogram.
1713 New implementation of expansion for remote access-to-subprogram types,
1714 based on the RACW infrastructure.
1715 This version of sem_dist is compatible with PolyORB/DSA as well as
1716 GLADE.
1717
1718 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
1719 Asynchrronous that applies to a remote access-to-subprogram type, mark
1720 the underlying RACW type as asynchronous.
1721
1722 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
1723 __gnat_using_gnu_linker to 1.
1724
1725 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
1726 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
1727 GNAT.Perfect_Hash_Generators, and remove the empty
1728 GNAT.Perfect_Hash package.
1729
1730 * atree.adb: Minor reformatting
1731
1732 * exp_ch3.adb (Expand_Derived_Record): Rename to
1733 Expand_Record_Extension.
1734 (Build_Record_Init_Proc.Build_Assignment): The default expression in
1735 a component declaration must remain attached at that point in the
1736 tree so New_Copy_Tree copies it if the enclosing record type is derived.
1737 It is therefore necessary to take a copy of the expression when building
1738 the corresponding assignment statement in the init proc.
1739 As a side effect, in the case of a derived record type, we now see the
1740 original expression, without any rewriting that could have occurred
1741 during expansion of the ancestor type's init proc, and we do not need
1742 to go back to Original_Node.
1743
1744 * exp_ch3.ads (Expand_Derived_Record): Rename to
1745 Expand_Record_Extension.
1746
1747 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
1748 Returns the RACW type used to implement a remote access-to-subprogram
1749 type.
1750 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
1751 New subprograms. Used to create a proxy tagged object for a remote
1752 subprogram. The proxy object is used as the designated object
1753 for RAS values on the same partition (unless All_Calls_Remote applies).
1754 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
1755 System.Partition_Interface.Get_Unique_Remote_Pointer.
1756 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
1757 Renamed from Add_RAS_*_Attribute.
1758 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
1759 subprograms.
1760 New implementation of expansion for remote access-to-subprogram types,
1761 based on the RACW infrastructure.
1762
1763 * exp_dist.ads (Copy_Specification): Update comment to note that this
1764 function can copy the specification from either a subprogram
1765 specification or an access-to-subprogram type definition.
1766
1767 2004-09-09 Ed Schonberg <schonberg@gnat.com>
1768
1769 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
1770 in an instance, between an explicit subprogram an one inherited from a
1771 type derived from an actual.
1772
1773 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
1774 add a polling call if the subprogram is to be inlined by the back-end,
1775 to avoid repeated calls with multiple inlinings.
1776
1777 * checks.adb (Apply_Alignment_Check): If the expression in the address
1778 clause is a call whose name is not a static entity (e.g. a dispatching
1779 call), treat as dynamic.
1780
1781 2004-09-09 Robert Dewar <dewar@gnat.com>
1782
1783 * g-trasym.ads: Minor reformatting
1784
1785 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
1786 packed arrays, since unused bits are expected to be zero for a
1787 comparison.
1788
1789 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
1790
1791 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
1792 comment.
1793
1794 2004-09-09 Pascal Obry <obry@gnat.com>
1795
1796 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
1797 enable map file generation. Add the right option to generate the map
1798 file if Map_File is set to True.
1799
1800 * gnatdll.adb (Gen_Map_File): New variable.
1801 (Syntax): Add info about new -m (Map_File) option.
1802 (Parse_Command_Line): Add support for -m option.
1803 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
1804 Minor reformatting.
1805
1806 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
1807
1808 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
1809 new gnatdist implementation.
1810 Define a subpackage isolating the output routines specific to this
1811 verbose mode.
1812
1813 2004-09-09 Joel Brobecker <brobecker@gnat.com>
1814
1815 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
1816
1817 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
1818
1819 2004-09-09 Cyrille Comar <comar@act-europe.fr>
1820
1821 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
1822 internal unit.
1823
1824 * opt.ads: Add Ada_Version_Runtime constant used to decide which
1825 version of the language is used to compile the run time.
1826
1827 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
1828
1829 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
1830 of variable length temporaries for function return now that the
1831 back-end and gigi support it.
1832
1833 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1834
1835 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
1836
1837 * trans.c (struct stmt_group): Delete field GLOBAL.
1838 (gnat_init_stmt_group): Do not initialize it.
1839 (call_to_gnu): Use save_expr, not protect_multiple_eval.
1840 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
1841 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
1842 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
1843 (start_stmt_group): Likewise.
1844 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
1845
1846 * utils2.c (ggc.h): Include.
1847 (build_call_raise): Call build_int_cst, not build_int_2.
1848
1849 * utils.c (gnat_init_decl_processing): Fix arg to
1850 build_common_tree_nodes.
1851 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
1852 (gnat_define_builtin): Set built_in_decls.
1853 (init_gigi_decls): Call build_int_cst, not build_int_2.
1854
1855 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
1856 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
1857 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
1858 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
1859 SET_TYPE_MODULE): Use them.
1860 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
1861 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
1862 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
1863 SET_TYPE_ADA_SIZE): Likewise.
1864 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
1865 (DECL_CONST_CORRESPONDING_VAR,
1866 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
1867 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
1868 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
1869 (TYPE_RM_SIZE_NUM): New macro.
1870 (TYPE_RM_SIZE): Modified to use above.
1871
1872 * cuintp.c: (build_cst_from_int): New function.
1873 (UI_To_gnu): Use it.
1874
1875 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
1876 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
1877 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
1878 MIN_EXPR for the size, copy it into new.
1879
1880 2004-09-01 Robert Dewar <dewar@gnat.com>
1881
1882 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
1883 packed indexed component where array is an IN OUT formal. This
1884 generated garbage code previously.
1885
1886 * gnat_ugn.texi: Document -fverbose-asm
1887
1888 * gnat-style.texi: Minor updates (note that boolean constants and
1889 variables are joined with AND/OR rather than short circuit forms).
1890
1891 2004-09-01 Ed Schonberg <schonberg@gnat.com>
1892
1893 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
1894 it is an upward conversion of an untagged type with no representation
1895 change.
1896
1897 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
1898
1899 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
1900 System.Partition_Interface.
1901
1902 * checks.adb (Apply_Access_Checks): Do not generate checks when
1903 expander is not active (but check for unset reference to prefix of
1904 dereference).
1905
1906 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
1907 pragma Debug as an if statement with a constant condition, for
1908 consistent treatment of entity references contained within the
1909 enclosed procedure call.
1910
1911 2004-09-01 Vincent Celier <celier@gnat.com>
1912
1913 * bindgen.adb: (Set_EA_Last): New procedure
1914 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
1915 Set_EA_Last.
1916 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
1917 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
1918 linked without errors.
1919 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
1920 ST and EA.
1921 (Gen_Exception_Table_C): Correct same bugs
1922
1923 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
1924
1925 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
1926 on Windows, make sure that the drive letter is in upper case.
1927
1928 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
1929 Windows, when the drive letter is added and Case_Sensitive is True, the
1930 drive letter is forced to upper case.
1931
1932 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
1933 to Options_2 for the call to MLib.Utl.Gcc.
1934
1935 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
1936 directory separator when defining BASE_DIR.
1937
1938 2004-09-01 Pascal Obry <obry@gnat.com>
1939
1940 * gprcmd.adb (Extend): Do not output trailing directory separator. This
1941 is not needed and it confuses Windows GNU/make which does not report
1942 directory terminated by a slash as a directory.
1943 (gprcmd): Idem for "pwd" internal command.
1944
1945 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
1946 target names rewrite to fix regressions with recent version of
1947 GNU/make. Starting with GNU/make 3.80 the pipe character was not
1948 handled properly anymore.
1949
1950 2004-09-01 Andreas Schwab <schwab@suse.de>
1951
1952 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
1953 * raise.c [!IN_RTS]: Undef abort.
1954
1955 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1956
1957 * utils2.c (build_allocator): Use ssize_int.
1958
1959 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
1960
1961 2004-08-27 Andreas Schwab <schwab@suse.de>
1962
1963 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
1964
1965 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1966 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1967
1968 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
1969
1970 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1971
1972 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
1973 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
1974 * utils.c (init_gigi_decls): Likewise.
1975 * utils2.c (build_call_raise, build_allocator): Likewise.
1976
1977 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1978
1979 * utils.c (gnat_init_decl_processing): Adjust
1980 build_common_tree_nodes call.
1981
1982 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
1983
1984 * utils2.c (build_allocator): Use build_int_cst for negative
1985 size types.
1986
1987 2004-08-18 Richard Henderson <rth@redhat.com>
1988
1989 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
1990
1991 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
1992
1993 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
1994 call.s
1995 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
1996 (gnat_to_gnu): Likewise.
1997
1998 2004-08-16 Pascal Obry <obry@gnat.com>
1999
2000 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
2001 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
2002 option and not mdll anymore. Update comment.
2003
2004 2004-08-16 Pascal Obry <obry@gnat.com>
2005
2006 * bld.adb (Put_Include_Project): Properly handle directory separators
2007 on Windows.
2008
2009 2004-08-16 Ed Schonberg <schonberg@gnat.com>
2010
2011 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
2012 decreasing the number of allocated junk nodes while searching for the
2013 appropriate subprogram.
2014
2015 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
2016
2017 * cuintp.c (UI_To_gnu): Use build_int_cst..
2018 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
2019 * utils.c (init_gigi_decls): Likewise.
2020 * utils2.c (build_call_raise): Likewise.
2021
2022 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
2023
2024 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
2025 for a global aliased object with a variable size and an unconstrained
2026 nominal subtype, pretend there is no initializer if the one we have is
2027 incomplete, and avoid referencing an inexistant component in there. The
2028 part we have will be rebuilt anyway and the reference may confuse
2029 further operations.
2030
2031 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
2032
2033 * einfo.ads: Minor reformatting
2034
2035 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
2036 restrictions in the ALI if we only want to warn about violations.
2037
2038 2004-08-13 Vincent Celier <celier@gnat.com>
2039
2040 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
2041 when creating a new Unit_Record in table Units.
2042
2043 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
2044 that are violated, if any.
2045
2046 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
2047 add directory separator if path already ends with a directory separator.
2048
2049 2004-08-13 Ed Schonberg <schonberg@gnat.com>
2050
2051 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
2052 unit, this is an attempt to inline a construct that is not available in
2053 the current restricted mode, so abort rather than trying to continue.
2054
2055 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
2056 discriminants that rename those of the parent, recover names of
2057 original discriminants for the constraint on the full view of the
2058 parent.
2059 (Complete_Private_Subtype): Do not create a subtype declaration if the
2060 subtype is an itype.
2061
2062 * gnat_rm.texi: Added section on implementation of discriminated
2063 records with default values for discriminants.
2064
2065 2004-08-13 Ed Schonberg <schonberg@gnat.com>
2066
2067 PR ada/15601
2068 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
2069 the second operand is overloaded.
2070
2071 2004-08-10 Richard Henderson <rth@redhat.com>
2072
2073 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
2074 add __builtin_alloca.
2075
2076 2004-08-10 Richard Henderson <rth@redhat.com>
2077
2078 * config-lang.in (boot_language): Yes.
2079
2080 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
2081
2082 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
2083 from complaining on potential uninitialized reference.
2084 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
2085 new specification and test explicitly for non-zero return value.
2086
2087 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
2088 returning C.int, to avoid using a derived boolean type.
2089
2090 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
2091 Duplicate_Subexpr_No_Checks in preference to direct use of
2092 Remove_Side_Effects and New_Copy_Tree.
2093 Clear Comes_From_Source on prefix of 'Size attribute reference.
2094
2095 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
2096 g-socthi-vxworks.adb: Change calls to
2097 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
2098 and test explicitly for non-zero return value.
2099
2100 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
2101 (Is_Socket_In_Set): Declare imported function as returning C.int, to
2102 avoid using a derived boolean type.
2103
2104 2004-08-09 Albert Lee <lee@gnat.com>
2105
2106 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
2107
2108 2004-08-09 Pascal Obry <obry@gnat.com>
2109
2110 * gnat_ugn.texi: Document new way to build DLLs on Windows using
2111 GCC's -shared option.
2112
2113 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
2114 Options_2 parameter (options put after object files).
2115
2116 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
2117
2118 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
2119 ignore overflows on low and high bounds of an index to also account for
2120 differences in signedness between sizetype and gnu_index_subtype.
2121 These are as legitimate as the ones caused by a lower TYPE_PRECISION
2122 on sizetype.
2123
2124 2004-08-09 Robert Dewar <dewar@gnat.com>
2125
2126 * s-solita.ads, s-solita.adb: Minor reformatting
2127
2128 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
2129 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
2130 obsolescent section
2131 Add note that No_Implicit_Conditionals does not suppress
2132 run time constraint checks.
2133
2134 * vms_conv.ads: Minor reformatting
2135
2136 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
2137 and necessary for following change).
2138 (Mark): Return new format Mark_Id containing sec stack address
2139 (Release): Use sec stack address from Mark_Id avoiding Self call
2140
2141 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
2142 pointer (cleanup and necessary for following change).
2143 Define Mark_Id as record containing address of secondary stack, that way
2144 Release does not need to find the stack again, decreasing the number of
2145 calls to Self and improving efficiency.
2146
2147 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
2148
2149 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
2150 case variable into the individual case branches when possible.
2151
2152 * sem_ch11.adb: Minor reformatting
2153
2154 * prj.ads: Correct spelling of suffixs
2155
2156 * prj-nmsc.adb: Minor reformatting
2157 Correct spelling suffixs throughout (also in identifiers)
2158
2159 * freeze.adb: Minor spelling correction
2160
2161 * exp_ch2.adb: Cleanups to handling of Current_Value
2162 (no functional effect).
2163
2164 * bld.adb: Correct spelling of suffixs
2165
2166 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
2167
2168 2004-08-09 Ed Schonberg <schonberg@gnat.com>
2169
2170 PR ada/15408
2171
2172 * sem_ch7.adb (Install_Private_Declarations): In the body of the
2173 package or of a child, private entities are both immediately_visible
2174 and not hidden.
2175
2176 2004-08-09 Ed Schonberg <schonberg@gnat.com>
2177
2178 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
2179 there are no range checks on the value of the literal.
2180
2181 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
2182 wrapped is the triggering alternative of an asynchronous select, action
2183 statements mustbe inserted before the select itself.
2184
2185 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
2186 case where the prefix is a protected function call.
2187 (Resolve_Attribute, case 'Access): The attribute reference on a
2188 subprogram is legal in a generic body if the subprogram is declared
2189 elsewhere.
2190
2191 2004-08-09 Vincent Celier <celier@gnat.com>
2192
2193 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
2194 languages, otherwise building the library may fail with unresolved
2195 symbols.
2196 (Compile_Sources): Do not build libraries if -c switch is used
2197
2198 * gnatlink.adb (Process_Args): New switches -M and -Mmap
2199 (Write_Usage): If map file creation is supported, output new switches
2200 -M and -Mmap.
2201 (Gnatlink): When -M is specified, add the necessary switch(es) to the
2202 gcc call, when supported.
2203
2204 * Makefile.in: Added indepsw.o to the object list for gnatlink
2205 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
2206
2207 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
2208 indepsw.adb, indepsw.ads: New files.
2209
2210 2004-08-09 Bernard Banner <banner@gnat.com>
2211
2212 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
2213
2214 * Makefile.in: add section for vxworks x86
2215
2216 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
2217
2218 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
2219 per-object constrained components where the discriminant is of an
2220 Access type.
2221 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
2222 the parent initialization procedure for derived Unchecked_Unions.
2223 Instead, derived Unchecked_Unions build their own initialization
2224 procedure.
2225 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
2226 Check the body of the subprogram for details.
2227 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
2228 functions for derived Unchecked_Union types by introducing a condition.
2229 Allow the creation of TSS equality functions for Unchecked_Unions.
2230 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
2231 Add formal parameter Discr to function signature. Discr is used to
2232 control the generated case statement for Unchecked_Union types.
2233 (Make_Eq_If): Rename formal parameter Node to E in function signature.
2234
2235 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
2236 Unchecked_Unions.
2237 Check the body of the subprogram for details.
2238 (Expand_Composite_Equality): Augment composite type equality to include
2239 correct handling of Unchecked_Union components.
2240 (Expand_N_In): Add condition to detect illegal membership tests when the
2241 subtype mark is a constrained Unchecked_Union and the expression lacks
2242 inferable discriminants, and build a Raise_Program_Error node.
2243 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
2244 to detect types that contain components of unconstrained Unchecked_Union
2245 subtype. Add condition to detect equality between types that have an
2246 unconstrained Unchecked_Union component, and build a Raise_Program_Error
2247 node. Add condition to detect equality between Unchecked_Union types
2248 that lack inferable discriminants, and build a Raise_Program_Error node.
2249 Otherwise build a TSS equality function call.
2250 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
2251 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
2252 with the operand lacking inferable discriminants, and build a Raise_
2253 Program_Error node.
2254 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
2255 composite equality.
2256 (Has_Inferable_Discriminants): Implement new predicate for objects and
2257 expressions of Unchecked_Union type. Check the body of subprogram for
2258 details.
2259 (Has_Unconstrained_UU_Components): Add function
2260 Component_Is_Unconstrained_UU. It is used to detect whether a single
2261 component is of an unconstrained Unchecked_Union subtype. Add function
2262 Variant_Is_Unconstrained_UU. It is used to detect whether a single
2263 component inside a variant is of an unconstrained Unchecked_Union type.
2264
2265 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
2266 inferred discriminant values. Add condition to generate a case
2267 statement with an inferred discriminant as the switch.
2268 (Make_Component_List_Assign): Introduce a Boolean flag that determines
2269 the behaviour of the subprogram in the presence of an Unchecked_Union.
2270 Add condition to trigger the usage of the inferred discriminant value
2271 as the generated case statement switch.
2272 (Make_Field_Assign): Introduce a Boolean flag that determines the
2273 behaviour of the subprogram in the presence of an Unchecked_Union. Add
2274 condition to trigger the usage of the inferred discriminant value as
2275 the right-hand side of the generated assignment.
2276
2277 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
2278 parameter generation when dealing with Unchecked_Unions.
2279
2280 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
2281 checks for Unchecked_Unions.
2282
2283 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
2284
2285 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
2286 Raise_Program_Error nodes for the execution of Read and Write
2287 attributes of Unchecked_Union types and the execution of Input and
2288 Output attributes of Unchecked_Union types that lack default
2289 discriminant values.
2290
2291 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
2292 Unchecked_Union. Add procedure Check_Component. It is used to inspect
2293 per-object constrained components of Unchecked_Unions for being
2294 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
2295 check individual components withing a variant.
2296
2297 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
2298 comparison of Unchecked_Unions.
2299 (Resolve_Equality_OP): Remove guard that prevents equality between
2300 Unchecked_Unions.
2301
2302 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
2303 of component subtypes for Unchecked_Union components.
2304 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
2305 since it is the actual subtype.
2306
2307 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
2308 pass of Unchecked_Union subtypes as generic actuals to formal types
2309 that lack known_discriminant_parts or that are derived Unchecked_Union
2310 types, and do nothing. In any other case, produce an error message.
2311
2312 * sem_ch3.adb (Analyze_Component_Declaration): Add function
2313 Contains_POC. It determines whether a constraint uses the discriminant
2314 of an enclosing record type.
2315 Add condition to detect per-object constrained component and set the
2316 appropriate flag.
2317 (Derived_Type_Declaration): Remove guard that prevents derivation from
2318 Unchecked_Union types.
2319 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
2320 Union subtypes.
2321
2322 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
2323 references to Unchecked_Union discriminants.
2324
2325 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
2326 formal generation when dealing with Unchecked_Unions.
2327 (Set_Actual_Subtypes): Add condition to prevent generation of actual
2328 subtypes for Unchecked_Unions.
2329
2330 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
2331 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
2332 completions of discriminated partial views by Unchecked_Unions and
2333 produce an error message.
2334
2335 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2336
2337 * trans.c (struct stmt_group): New field, GLOBAL.
2338 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
2339 (struct elab_info): New struct.
2340 (elab_info_list, gnu_elab_proc_stack): New variables.
2341 (Compilation_Unit_to_gnu): New procedure.
2342 (gigi): Call it and also handle elaboration procs we've saved.
2343 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
2344 global field from parent.
2345 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
2346 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
2347 (start_stmt_group): Initialize global field from parent.
2348 (add_decl_expr): Set to global for current statement group.
2349 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
2350 post.
2351
2352 * utils.c (global_bindings_p): True when no current_function_decl; no
2353 longer check current_binding_level.
2354
2355 2004-08-09 Ben Brosgol <brosgol@gnat.com>
2356
2357 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
2358 choice.
2359
2360 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
2361
2362 2004-08-06 Andreas Schwab <schwab@suse.de>
2363
2364 * utils.c (gnat_define_builtin): Remove second parameter of
2365 make_decl_rtl.
2366 (begin_subprog_body): Likewise.
2367
2368 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
2369
2370 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
2371 optimization, not supported by the tree-ssa back-end.
2372
2373 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
2374
2375 * s-mastop-irix.adb: Update comments.
2376
2377 * a-except.adb (Exception_Information): Raise Constraint_Error if
2378 exception Id is Null_Id.
2379 This is required behavior, which is more reliably and clearly checked
2380 at the top level interface level.
2381
2382 2004-07-26 Javier Miranda <miranda@gnat.com>
2383
2384 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
2385 call if a component has no default_expression and the box is used.
2386
2387 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
2388 default_expression and you use box, it behaves as if you had declared a
2389 stand-alone object.
2390 (Resolve_Record_Aggregate): If a component has no default_expression and
2391 you use box, it behaves as if you had declared a stand-alone object.
2392
2393 * sem_ch10.adb (Install_Siblings): Do not make visible the private
2394 entities of private-with siblings.
2395
2396 2004-07-26 Ed Schonberg <schonberg@gnat.com>
2397
2398 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
2399 for a component of an itype, set the parent pointer for analysis,
2400 there is no list in which to insert it.
2401
2402 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
2403 bona-fide renamings, not for inherited operations.
2404
2405 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
2406 actual for a formal that is an access parameter, create local
2407 finalization list even if the expression is not an aggregate.
2408
2409 2004-07-26 Ed Schonberg <schonberg@gnat.com>
2410
2411 PR ada/16213
2412 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
2413 Diagnose properly illegal subprogram renamings that are library units.
2414
2415 2004-07-26 Ed Schonberg <schonberg@gnat.com>
2416
2417 PR ada/15588
2418 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
2419 conversion rewritten as an unchecked conversion, check that original
2420 expression is a variable.
2421
2422 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
2423 unchecked_conversion, create new node rather than rewriting in place,
2424 to preserve original construct.
2425
2426 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2427
2428 * gigi.h (gnat_expand_body): Deleted.
2429
2430 * Make-lang.in: (trans.o): Depends on function.h.
2431
2432 * misc.c: (gnat_expand_body): Moved to here.
2433
2434 * trans.c (gnat_expand_body_1): Deleted.
2435 (gnat_expand_body): Moved from here.
2436 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
2437 (add_stmt): Check for marked visited with global_bindings_p.
2438 (gnat_gimplify_expr, case COMPONENT_REF): New case.
2439 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
2440
2441 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
2442 VIEW_CONVERT_EXPR if not operation type.
2443
2444 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
2445 fat pointer.
2446
2447 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
2448 changes: reformatting of negation operators, removing unneeded
2449 inequality comparison with zero, converting equality comparisons with
2450 zero to negations, changing int/0/1 to bool/false/true, replace calls
2451 to gigi_abort with abort, and various other similar changes.
2452
2453 2004-07-26 Vincent Celier <celier@gnat.com>
2454
2455 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
2456 "setup".
2457
2458 * make.adb (Gnatmake): Fail when a library is not present and there is
2459 no object directory.
2460
2461 * mlib-prj.adb (Check_Library): No need to check if the library needs
2462 to be rebuilt if there is no object directory, hence no object files
2463 to build the library.
2464
2465 * opt.ads (Setup_Projects): New Boolean flag.
2466
2467 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
2468 Location.
2469 Create directory when Kind /= "" and in "gnat setup". Report error if
2470 directory cannot be created.
2471 (Ada_Check): Create library interface copy dir if it does not exist
2472 and we are in "gnat setup".
2473 (Find_Sources): No error if in "gnat setup" and no Ada sources were
2474 found.
2475 (Language_Independent_Check): Create object directory, exec directory
2476 and/or library directory if they do not exist and we are in
2477 "gnat setup".
2478
2479 * vms_conv.ads: (Command_Type): New command Setup.
2480
2481 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
2482
2483 * vms_data.ads: Add qualifiers/switches for new built-in command
2484 "setup".
2485
2486 2004-07-25 Richard Henderson <rth@redhat.com>
2487
2488 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
2489 DECL_IGNORED_P on RESULT_DECL.
2490
2491 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
2492
2493 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
2494 allocation and potentially overflowing update with
2495 Tailored_Exception_Information. Use the sec-stack free procedural
2496 interface to output Exception_Information instead.
2497
2498 * a-except.adb (To_Stderr): New subprogram for character, and string
2499 version moved from a-exextr to be visible from other separate units.
2500 (Tailored_Exception_Information): Remove the procedural version,
2501 previously used by the default Last_Chance_Handler and not any more.
2502 Adjust various comments.
2503
2504 * a-exexda.adb: Generalize the exception information procedural
2505 interface, to minimize the use of secondary stack and the need for
2506 local buffers when the info is to be output to stderr:
2507 (Address_Image): Removed.
2508 (Append_Info_Character): New subprogram, checking for overflows and
2509 outputing to stderr if buffer to fill is of length 0.
2510 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
2511 (Append_Info_Address, Append_Info_Exception_Name,
2512 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
2513 Append_Info_Basic_Exception_Traceback,
2514 Append_Info_Exception_Information): New subprograms.
2515 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
2516 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
2517 Exception_Info_Maxlength, Exception_Name_Length,
2518 Exception_Message_Length): New subprograms.
2519 (Exception_Information): Use Append_Info_Exception_Information.
2520 (Tailored_Exception_Information): Use
2521 Append_Info_Basic_Exception_Information.
2522 Export services for the default Last_Chance_Handler.
2523
2524 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
2525 other separate units.
2526
2527 2004-07-20 Vincent Celier <celier@gnat.com>
2528
2529 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
2530
2531 2004-07-20 Ed Schonberg <schonberg@gnat.com>
2532
2533 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
2534 emit itype references for the designated types of component types that
2535 are declared outside of the full record declaration, and that may
2536 denote a partial view of that record type.
2537
2538 2004-07-20 Ed Schonberg <schonberg@gnat.com>
2539
2540 PR ada/15607
2541 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
2542 which is the designated type in an access component declaration, to the
2543 list of incomplete dependents of the parent type, to avoid elaboration
2544 issues with out-of-scope subtypes.
2545 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
2546 full view of the parent.
2547
2548 2004-07-20 Ed Schonberg <schonberg@gnat.com>
2549
2550 PR ada/15610
2551 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
2552 entities that are hidden, such as references to generic actuals
2553 outside an instance.
2554
2555 2004-07-20 Javier Miranda <miranda@gnat.com>
2556
2557 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
2558 support to the new notation.
2559 (Analyze_Selected_Component): Add call to Try_Object_Operation.
2560
2561 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
2562
2563 * s-taprob.adb: Adding the elaboration code required for initializing
2564 the tasking soft links that are common to the full and the restricted
2565 run times.
2566
2567 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
2568 restricted run time has been moved to the package
2569 System.Soft_Links.Tasking.
2570
2571 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
2572 restricted run time has been moved to the package
2573 System.Soft_Links.Tasking.
2574
2575 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
2576
2577 * s-solita.ads, s-solita.adb: New files.
2578
2579 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2580
2581 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
2582 Case_Statement_to_gnu): Split off from gnat_to_gnu.
2583 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
2584 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
2585 Exception_Handler_to_gnu_zcx): Likewise.
2586
2587 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
2588
2589 * gigi.h (builtin_function): Declare.
2590
2591 2004-07-15 Robert Dewar <dewar@gnat.com>
2592
2593 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
2594 reformatting
2595
2596 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
2597 access values as an example of a warning.
2598
2599 * gnat_rm.texi: Document new attribute Has_Access_Values
2600
2601 * gnat-style.texi: Document that box comments belong on nested
2602 subprograms
2603
2604 * sem_util.ads (Has_Access_Values): Improved documentation
2605
2606 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
2607
2608 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
2609 (Process_Interface_Name): Call to this new procedure
2610 (Set_Extended_Import_Export_External_Name): Call to this new procedure
2611
2612 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
2613
2614 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
2615
2616 * einfo.ads: Minor comment typo fixed
2617
2618 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
2619
2620 * snames.adb: Add _atcb.
2621
2622 * snames.ads: Add Name_uATCB.
2623
2624 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
2625 (in the expanded code) when using the restricted run time.
2626
2627 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
2628 a in parameter in order to allow ATCBs to be preallocated (in the
2629 expanded code).
2630
2631 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
2632 order to allow ATCBs to be preallocated. In case of error, the ATCB is
2633 deallocated in System.Tasking.Stages.
2634
2635 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
2636 order to allow ATCBs to be preallocated.
2637
2638 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
2639 here. It was previously done in Initialize_ATCB.
2640
2641 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
2642
2643 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
2644 Restricted run time.
2645
2646 * exp_ch3.adb: When using the Restricted run time, pass the
2647 preallocated Ada_Task_Control_Block when creating a task.
2648
2649 2004-07-15 Ed Schonberg <schonberg@gnat.com>
2650
2651 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
2652 function call that is itself an actual in an enclosing call, diagnose
2653 problem here rather than assuming that resolution will catch it.
2654
2655 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
2656 the local copy of a generic unit for a formal package, and the generic
2657 is a child unit, install private part of ancestors before compiling
2658 private part of spec.
2659
2660 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
2661 use scope entities rather than tree structures, to handle properly
2662 parent units that are instances rewritten as bodies for inlining
2663 purposes.
2664
2665 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
2666 Remove_Parents): Handle properly a parent unit that is an
2667 instantiation, when the unit has been rewritten as a body for inlining
2668 purposes.
2669
2670 * par.adb (Goto_List): Global variable to collect goto statements in a
2671 given unit, for use in detecting natural loops.
2672
2673 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
2674 use in detecting natural loops.
2675
2676 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
2677 backwards goto's, and rewrite as a infinite loop, to improve locality
2678 of temporaries.
2679
2680 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
2681 subcomponent that includes an indexed reference, to prevent the
2682 generation of copies that would miscompile the desired assignment
2683 statement.
2684 (Build_Task_Image_Decls): Add a numeric suffix to
2685 generated name for string variable, to avoid spurious conflicts with
2686 the name of the type of a single protected object.
2687
2688 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
2689 loop with an explicit exit statement, to avoid generating an
2690 out-of-range value with 'Succ leading to spurious constraint_errors
2691 when compiling with -gnatVo.
2692
2693 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
2694
2695 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
2696 might not be analyzed yet, even if its Etype is already set (case of an
2697 unchecked conversion built using Unchecked_Convert_To, for example).
2698 If the prefix has already been analyzed, this will be a nop anyway.
2699
2700 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
2701 controller type, or an assignment of a record type with controlled
2702 components, copy only user data, and leave the finalization chain
2703 pointers untouched.
2704
2705 2004-07-15 Vincent Celier <celier@gnat.com>
2706
2707 * make.adb (Collect_Arguments): Improve error message when attempting
2708 to compile a source not part of any project, when -x is not used.
2709
2710 * prj.ads: (Defined_Variable_Kind): New subtype
2711
2712 * prj-attr.adb (Register_New_Package): Two new procedures to register
2713 a package with or without its attributes.
2714 (Register_New_Attribute): Mew procedure to register a new attribute in a
2715 package.
2716 New attribute oriented subprograms: Attribute_Node_Id_Of,
2717 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
2718 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
2719 Next_Attribute.
2720 New package oriented subprograms: Package_Node_Id_Of,
2721 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
2722
2723 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
2724 type.
2725 (Package_Node_Id): Now a private, self initialized type
2726 (Register_New_Package): New procedure to register a package with its
2727 attributes.
2728 New attribute oriented subprograms: Attribute_Node_Id_Of,
2729 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
2730 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
2731 Next_Attribute.
2732 New package oriented subprograms: Package_Node_Id_Of,
2733 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
2734
2735 * prj-dect.adb (Parse_Attribute_Declaration,
2736 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
2737
2738 * prj-makr.adb (Make): Parse existing project file before creating
2739 other files. Fail if there was an error during parsing.
2740
2741 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
2742 new spec of Prj.Attr.
2743
2744 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
2745 to new spec of Prj.Attr.
2746
2747 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2748
2749 * utils2.c: Fix typo in comment.
2750
2751 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2752
2753 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
2754 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
2755
2756 2004-07-14 Andreas Schwab <schwab@suse.de>
2757
2758 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
2759
2760 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2761
2762 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
2763 object type.
2764 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
2765 TYPE_STUB_DECL.
2766
2767 * misc.c (gnat_types_compatible_p): New function.
2768 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
2769 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
2770
2771 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
2772 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
2773 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
2774 (mark_visited): Don't mark dummy type.
2775 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
2776 parameter, we must remove any LJM building from GNU_NAME.
2777 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
2778 (pos_to_constructor): Use int_const_binop.
2779 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
2780 PARM_DECL.
2781
2782 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
2783 (gnat_pushlevel): Set TREE_USE on BLOCK node.
2784 (gnat_install_builtins): Add __builtin_memset.
2785
2786 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
2787
2788 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
2789 for a renaming, stabilize the initialization expression if we are at a
2790 local level. At the local level, uses of the renaming may be performed
2791 by a direct dereference of the initializing expression, and we don't
2792 want possible variables there to be evaluated for every use.
2793
2794 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
2795 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
2796 them on the way. Account for the fact that we may introduce side
2797 effects in the process.
2798
2799 2004-07-13 Richard Henderson <rth@redhat.com>
2800
2801 * misc.c (default_pass_by_ref): Use pass_by_reference.
2802
2803 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
2804
2805 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
2806 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
2807
2808 2004-07-08 Richard Henderson <rth@redhat.com>
2809
2810 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
2811 commentary.
2812
2813 2004-07-06 Vincent Celier <celier@gnat.com>
2814
2815 * vms_conv.ads: Minor reformatting.
2816 Alphabetical order for enumerated values of type Command_Type, to have
2817 the command in alphabetical order for the usage.
2818
2819 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
2820 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
2821
2822 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
2823
2824 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
2825 (Add_Archive_Path): Only add the global archive if there is one.
2826 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
2827 or not any object file to put in the global archive, and don't build
2828 a global archive if there is none.
2829 (X_Switches): New table
2830 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
2831 in the X_Switches table, if any.
2832 (Initialize): Make sure the X_Switches table is empty
2833 (Scan_Arg): Record -X switches in table X_Switches
2834
2835 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
2836
2837 * make.adb: Minor comment fix
2838
2839 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
2840 invoked with directory information, add the directory in front of the
2841 path.
2842
2843 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
2844 invoked with directory information, add the directory in front of the
2845 path.
2846
2847 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
2848 when Keep_Temporary_Files is False.
2849 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
2850 directory information, add the directory in front of the path.
2851 When not on VMS, handle new switch -dn before the command to set
2852 Keep_Temporary_Files to True.
2853 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
2854 everywhere.
2855
2856 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
2857 invoked with directory information, add the directory in front of the
2858 path.
2859
2860 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
2861
2862 * snames.ads, snames.adb (Name_Stub): New name for the distributed
2863 systems annex.
2864
2865 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
2866 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
2867
2868 * g-socket.adb (To_Timeval): Fix incorrect conversion of
2869 Selector_Duration to Timeval for the case of 0.0.
2870
2871 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
2872 documentation from Evolve_And_Then.
2873
2874 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
2875
2876 * s-taprop-tru64.adb, s-taprop-os2.adb,
2877 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
2878
2879 2004-07-06 Robert Dewar <dewar@gnat.com>
2880
2881 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
2882 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
2883 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
2884 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
2885 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
2886 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
2887 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
2888 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
2889 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
2890 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
2891 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
2892 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
2893 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
2894 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
2895 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
2896 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
2897 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
2898 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
2899 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
2900 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
2901 vms_data.ads: Minor reformatting,
2902 Fix bad box comment format.
2903
2904 * gnat_rm.texi: Fix minor grammatical error
2905
2906 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
2907
2908 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
2909 more cases of discriminated records to be recognized as not needing a
2910 secondary stack.
2911 (Has_Access_Values): New function.
2912
2913 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
2914
2915 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
2916 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
2917 with LRM terminology).
2918 Change terminology in comments primitive type => elementary type.
2919
2920 2004-07-06 Ed Schonberg <schonberg@gnat.com>
2921
2922 PR ada/15602
2923 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
2924 parameters do not impose any requirements on the presence of a body.
2925
2926 2004-07-06 Ed Schonberg <schonberg@gnat.com>
2927
2928 PR ada/15593
2929 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
2930 compilation unit and is in an open scope at the point of instantiation,
2931 assume that a body may be present later.
2932
2933 2004-07-06 Ed Schonberg <schonberg@gnat.com>
2934
2935 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
2936 Improve error message when specified size is not supported.
2937
2938 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
2939 is never a primitive operation.
2940
2941 2004-07-05 Andreas Schwab <schwab@suse.de>
2942
2943 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
2944 RECORD_OR_UNION_CHECK.
2945 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
2946
2947 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
2948
2949 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
2950 dependency on xgnatugn, instead build it via a submake.
2951 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
2952
2953 2004-07-04 Richard Henderson <rth@redhat.com>
2954
2955 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
2956
2957 2004-07-01 Richard Henderson <rth@redhat.com>
2958
2959 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
2960 * utils.c (max_size): Likewise.
2961
2962 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2963
2964 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
2965 and rest_of_type_compilation; add arg to create_*_decl.
2966 (annotate_decl_with_node): Deleted.
2967 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
2968 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
2969 (get_current_block_context, gnat_pushdecl): New declarations.
2970 (gnat_init_stmt_group): Likewise.
2971 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
2972 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
2973 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
2974 (gnat_init): Call gnat_init_stmt_group.
2975 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
2976 (gnu_pending_elaboration_list): Deleted.
2977 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
2978 (gigi): Rearrange initialization calls and move some to last above.
2979 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
2980 Delete calls to add_decl_expr; add arg to create_*_decl.
2981 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
2982 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
2983 begin_subprog_body and call it.
2984 Don't push and pop ggc context.
2985 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
2986 (add_stmt): Remove handling of DECL_EXPR from here.
2987 If not in function, mark visited.
2988 (add_decl_expr): Put global at top level.
2989 Check for cases of DECL_INITIAL we have to handle here.
2990 (process_type): Add extra arg to create_type_decl.
2991 (build_unit_elab): Rework to just gimplify.
2992 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
2993 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
2994 (get_pending_elaborations, pending_elaborations_p): Likewise.
2995 (push_pending_elaborations, pop_pending_elaborations): Likewise.
2996 (get_elaboration_location, insert_elaboration_list): Likewise.
2997 (gnat_binding_level): Renamed from ada_binding_level.
2998 (init_gnat_to_gnu): Don't clear pending_elaborations.
2999 (global_bindings_p): Treat as global if no current_binding_level.
3000 (set_current_block_context): New function.
3001 (gnat_pushdecl): Renamed from pushdecl; major rework.
3002 All callers changed.
3003 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
3004 (finish_record_type): Call call pushdecl for stub decl.
3005 (function_nesting_depth): Deleted.
3006 (begin_subprog_body): Delete obsolete code.
3007 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
3008
3009 2004-06-28 Robert Dewar <dewar@gnat.com>
3010
3011 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3012 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
3013 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
3014 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3015 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
3016
3017 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
3018 deal with problem of inefficient slices on machines with strict
3019 alignment, when the slice is a component of a composite.
3020
3021 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
3022 machines, we need the check there as well.
3023
3024 2004-06-28 Ed Schonberg <schonberg@gnat.com>
3025
3026 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
3027 determine safe copying direction for overlapping slice assignments
3028 when component is controlled.
3029
3030 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
3031 formal derived type in the actual for a formal package are visible in
3032 the enclosing instance.
3033
3034 2004-06-28 Ed Schonberg <schonberg@gnat.com>
3035
3036 PR ada/15600
3037 * sem_util.adb (Trace_Components): Diagnose properly an illegal
3038 circularity involving a private type whose completion includes a
3039 self-referential component.
3040 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
3041 renaming or an instantiation from an implicit derived operation.
3042
3043 2004-06-28 Pascal Obry <obry@gnat.com>
3044
3045 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
3046 DLL.
3047 (Library_File_Name_For): Idem.
3048
3049 2004-06-28 Matthew Gingell <gingell@gnat.com>
3050
3051 * g-traceb.ads: Add explanatory note on the format of addresses
3052 expected by addr2line.
3053
3054 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
3055
3056 * Makefile.in: Force debugging information on s-tasdeb.adb,
3057 a-except.adb and s-assert.adb needed by the debugger.
3058
3059 2004-06-28 Vincent Celier <celier@gnat.com>
3060
3061 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
3062 Need_To_Build_Lib.
3063 (Gnatmake): Ditto.
3064
3065 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
3066
3067 * prj.adb: Minor reformatting
3068 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
3069
3070 * prj.ads: Comment updates
3071 Minor reformatting
3072 (Project_Data): Change Flag1 to Need_To_Build_Lib.
3073 Remove Flag2: not used.
3074
3075 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
3076 declaration.
3077
3078 * gnat_ugn.texi: Put a "null;" declaration in one project file example
3079
3080 * gnat_rm.texi: Document Empty declarations "null;".
3081
3082 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
3083 front of the linker options.
3084 (Link_Foreign): Put the global archives and the libraries in front of
3085 the linker options.
3086
3087 2004-06-28 Javier Miranda <miranda@gnat.com>
3088
3089 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
3090 (RTU_Loaded): Code cleanup
3091 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
3092 withed predefined units.
3093
3094 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
3095 explicitly withed predefined units.
3096 Fix typo in comment
3097
3098 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
3099 explicitly withed predefined units.
3100
3101 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3102
3103 * ada-tree.def (DECL_STMT): Deleted.
3104 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
3105 (DECL_STMT_VAR): Deleted.
3106 * decl.c: add_decl_stmt now add_decl_expr.
3107 * gigi.h: Likewise.
3108 * trans.c: Likewise.
3109 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3110 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
3111 (add_stmt): Only handle padded type here.
3112 (add_stmt_with_node): Allow gnat_node to not be present.
3113 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
3114 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
3115 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
3116 make a SAVE_EXPR for the entire fat pointer.
3117 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
3118 (create_index_type): Make a DECL_EXPR.
3119 (end_subprog_body): Don't call allocate_struct_function here but
3120 do clear cfun.
3121
3122 2004-06-25 Pascal Obry <obry@gnat.com>
3123
3124 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
3125 Relocatable from Build_Dynamic_Library call.
3126
3127 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
3128 Relocatable are now synonym.
3129
3130 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
3131
3132 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
3133 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
3134 call.
3135
3136 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
3137 Lib_Address and Relocatable.
3138 (Default_DLL_Address): Removed.
3139
3140 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3141 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3142 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
3143 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
3144 (Default_DLL_Address): Removed.
3145
3146 * mlib-tgt-mingw.adb: Ditto.
3147 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
3148
3149 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
3150 the initial thread stack size.
3151
3152 * a-strmap.ads: Move package L to private part as it is not used in
3153 the spec. Found while reading code.
3154
3155 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
3156
3157 * tracebak.c: Introduce support for a GCC infrastructure based
3158 implementation of __gnat_backtrace.
3159
3160 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
3161 any more. Use accessors instead. This eases maintenance and relaxes
3162 some alignment constraints.
3163 (_GNAT_Exception structure): Remove the Ada specific fields
3164 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
3165 a-exexpr.adb.
3166 (is_handled_by, __gnat_eh_personality): Replace component references to
3167 exception structure by use of the new accessors.
3168
3169 * init.c (__gnat_initialize): Adjust comments to match the just
3170 reverted meaning of the -static link-time option.
3171
3172 * adaint.c (convert_addresses): Arrange not to define a stub for
3173 mips-irix any more, as we now want to rely on a real version from a
3174 recent libaddr2line.
3175
3176 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
3177 the personality routine can use them and not have to rely on a C
3178 counterpart of the record anymore. This simplifies maintenance and
3179 relaxes the constraint of having Standard'Maximum_Alignment match
3180 BIGGEST_ALIGNMENT.
3181 Update comments, and add a section on the common header alignment issue.
3182
3183 2004-06-25 Geert Bosch <bosch@gnat.com>
3184
3185 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
3186 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
3187
3188 2004-06-25 Robert Dewar <dewar@gnat.com>
3189
3190 * gnat_rm.texi: Fix section on component clauses to indicate that the
3191 restriction on byte boundary placement still applies for bit packed
3192 arrays.
3193 Add comment on stack usage from Initialize_Scalars
3194
3195 * gnat_ugn.texi: Add documentation for -gnatyLnnn
3196
3197 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
3198 limiting nesting level.
3199
3200 * usage.adb: Add line for -gnatyLnnn switch
3201
3202 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
3203 sem_ch13.adb, exp_aggr.adb: Minor reformatting
3204
3205 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
3206 type as well as on the subtype. This corrects a problem in freeze in
3207 setting alignments of atomic types.
3208
3209 * sem_eval.ads: Minor comment typo fixed
3210
3211 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
3212 level. Minor reformatting.
3213
3214 * fname.adb (Is_Predefined_File_Name): Require a letter after the
3215 minus sign. This means that file names like a--b.adb will not be
3216 considered predefined.
3217
3218 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
3219 record Test new flag and give diagnostic for bad component clause.
3220 (Freeze_Entity): Set alignment of array from component alignment in
3221 cases where this is safe to do.
3222
3223 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
3224 arrays.
3225
3226 * cstand.adb: (Create_Standard): Set alignment of String to 1
3227
3228 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
3229
3230 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
3231 code in the common constrained array cases.
3232
3233 * a-storio.adb: Change implementation to avoid possible alignment
3234 problems on machines requiring strict alignment (data should be moved
3235 as type Buffer, not type Elmt).
3236
3237 * checks.adb (Apply_Array_Size_Check): Improve these checks by
3238 killing the overflow checks which we really do not need (64-bits is
3239 enough).
3240
3241 2004-06-25 Vincent Celier <celier@gnat.com>
3242
3243 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
3244 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
3245 inconditionally for the main project.
3246 (Recursive_Add_Archives.Add_Archive_Path): New procedure
3247 (Link_Executables.Check_Time_Stamps): New procedure
3248 (Link_Executables.Link_Foreign): New procedure
3249 Changes made to reduce nesting level of this package
3250 (Check): New procedure
3251 (Add_Switches): When not in quiet output, check that a switch is not
3252 the concatenation of several valid switches. If it is, issue a warning.
3253 (Build_Global_Archive): If the global archive is rebuilt, linking need
3254 to be done.
3255 (Compile_Sources): Rebuilding a library archive does not imply
3256 rebuilding the global archive.
3257 (Build_Global_Archive): New procedure
3258 (Build_Library): New name for Build_Archive, now only for library
3259 project
3260 (Check_Archive_Builder): New procedure
3261 (Create_Global_Archive_Dependency_File): New procedure
3262 (Gprmake): Call Build_Global_Archive before linking
3263 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
3264 throughout.
3265 (Scan_Arg): Display the Copyright notice when -v is used
3266
3267 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
3268 for gnatls.
3269
3270 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
3271 COMPILE.
3272 Add new GNAT LIST qualifier /FILES=
3273 Added qualifier /DIRECTORY= to GNAT METRIC
3274 Added qualifier /FILES= to GNAT METRIC
3275 Added qualifier /FILES to GNAT PRETTY
3276
3277 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
3278 to take into account both versions of the switch.
3279
3280 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
3281 always be the last switch to the gcc driver. Disable switch storing so
3282 that switches automatically added by the gcc driver are not put in the
3283 ALI file.
3284
3285 * prj.adb (Project_Empty): Take into account changes in components of
3286 Project_Data.
3287
3288 * prj.ads (Languages_Processed): New enumaration value All_Languages.
3289
3290 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
3291 used. Split Boolean component Ada_Sources_Present in two Boolean
3292 components Ada_Sources_Present and Other_Sources_Present.
3293 Minor reformatting
3294
3295 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
3296 instead of Sources_Present.
3297 (Set_Ada_Paths.Add.Recursive_Add): Ditto
3298
3299 * prj-nmsc.adb: Minor reformatting
3300 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
3301 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
3302 Check_Ada_Naming_Scheme.
3303 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
3304 throughout.
3305
3306 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
3307 In_Limited.
3308 Make sure that all cycles where there is at least one "limited with"
3309 are detected.
3310 (Parse_Single_Project): New Boolean parameter In_Limited
3311
3312 * prj-proc.adb (Recursive_Check): When Process_Languages is
3313 All_Languages, call first Prj.Nmsc.Ada_Check, then
3314 Prj.Nmsc.Other_Languages_Check.
3315
3316 * prj-proc.adb (Process): Use Ada_Sources_Present or
3317 Other_Sources_Present (instead of Sources_Present) depending on
3318 Process_Languages.
3319
3320 * lang-specs.h: Keep -g and -m switches in the same order, and as the
3321 last switches.
3322
3323 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
3324 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
3325 False.
3326 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
3327 False.
3328
3329 * lib.ads (Disable_Switch_Storing): New procedure.
3330
3331 * make.adb: Modifications to reduce nesting level of this package.
3332 (Check_Standard_Library): New procedure
3333 (Gnatmake.Check_Mains): New procedure
3334 (Gnatmake.Create_Binder_Mapping_File): New procedure
3335 (Compile_Sources.Compile): Add switch -gnatez as the last option
3336 (Display): Never display -gnatez
3337
3338 * Makefile.generic:
3339 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
3340
3341 * gnatcmd.adb (Check_Project): New function
3342 (Process_Link): New procedure to reduce nesting depth
3343 (Check_Files): New procedure to reduce the nesting depth.
3344 For GNAT METRIC, include the inherited sources in extending projects.
3345 (GNATCmd): When GNAT LS is invoked with a project file and no files,
3346 add the list of files from the sources of the project file. If this list
3347 is too long, put it in a temp text files and use switch -files=
3348 (Delete_Temp_Config_Files): Delete the temp text file that contains
3349 a list of source for gnatpp or gnatmetric, if one has been created.
3350 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
3351 in the project file is too large, create a temporary text file that
3352 list them and pass it to the tool with "-files=<temp text file>".
3353 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
3354
3355 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
3356 generated file is in not in Ada.
3357
3358 * gnatls.adb: Remove all parameters And_Save that are no longer used.
3359 (Scan_Ls_Arg): Add processing for -files=
3360 (Usage): Add line for -files=
3361
3362 * g-os_lib.adb (On_Windows): New global constant Boolean flag
3363 (Normalize_Pathname): When on Windows and the path starts with a
3364 directory separator, make sure that the resulting path will start with
3365 a drive letter.
3366
3367 * clean.adb (Clean_Archive): New procedure
3368 (Clean_Project): When there is non-Ada code, delete the global archive,
3369 the archive dependency files, the object files and their dependency
3370 files, if they exist.
3371 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
3372
3373 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
3374
3375 * sinfo.ads: Fix typo in comment.
3376
3377 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
3378 the TSS for remote access-to-subprogram types, since these TSS are
3379 always present once the type has been analyzed.
3380 (RAS_E_Dereference): Same.
3381
3382 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
3383 reference raises Bad_Attribute, mark the reference as analyzed so the
3384 node (and any children resulting from rewrites that could have occurred
3385 during the analysis that ultimately failed) is not analyzed again.
3386
3387 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
3388
3389 * exp_dist.adb: Minor comment fix.
3390
3391 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
3392 type is an anonymous access type, no unchecked deallocation of the
3393 allocated object can occur. If the object is controlled, attach it with
3394 a count of 1. This allows attachment to the Global_Final_List, if
3395 no other relevant list is available.
3396 (Get_Allocator_Final_List): For an anonymous access type that is
3397 the type of a discriminant or record component, the corresponding
3398 finalisation list is the one of the scope of the type.
3399
3400 2004-06-25 Ed Schonberg <schonberg@gnat.com>
3401
3402 * sem_ch3.adb (Replace_Type): When computing the signature of an
3403 inherited subprogram, use the first subtype if the derived type
3404 declaration has no constraint.
3405
3406 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
3407 before applying previous optimization. Minor code cleanup.
3408
3409 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
3410 placed at the beginning of an unpacked record without explicit
3411 alignment, a slice of it will be aligned and does not need a copy when
3412 used as an actual.
3413
3414 2004-06-25 Ed Schonberg <schonberg@gnat.com>
3415
3416 PR ada/15591
3417 PR ada/15592
3418 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
3419 reference is written with expressions mimicking parameters.
3420
3421 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
3422
3423 PR ada/15589
3424 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
3425 STEP 2a. The constraints of a full type declaration of a derived record
3426 type are checked for conformance with those declared in the
3427 corresponding private extension declaration. The message
3428 "not conformant with previous declaration" is emitted if an error is
3429 detected.
3430
3431 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
3432
3433 * g-traceb.ads: Document the need for -E binder switch in the spec.
3434
3435 * g-trasym.ads: Document the need for -E binder switch in the spec.
3436
3437 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
3438
3439 * sem_prag.adb: Add handling of pragma Detect_Blocking.
3440
3441 * snames.h, snames.ads, snames.adb: Add entry for pragma
3442 Detect_Blocking.
3443
3444 * s-rident.ads: Change reference to pragma Detect_Blocking.
3445
3446 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
3447 system.ads.
3448
3449 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
3450 to indicate whether pragma Detect_Blocking is active.
3451
3452 * par-prag.adb: Add entry for pragma Detect_Blocking.
3453
3454 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
3455 of not handling WITH.
3456 Note that this replaces the previous update which was incorrect.
3457
3458 2004-06-25 Javier Miranda <miranda@gnat.com>
3459
3460 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
3461 use-clauses to have a clean environment.
3462
3463 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
3464 the installation of the use-clauses to stablish a clean environment in
3465 case of compilation of a separate unit; otherwise the call to
3466 use_one_package is protected by the barrier Applicable_Use.
3467
3468 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
3469 the installation of the use-clauses to stablish a clean environment in
3470 case of compilation of a separate unit.
3471 (End_Use_Clauses): Minor comment cleanup.
3472
3473 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
3474
3475 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
3476
3477 2004-06-23 Richard Henderson <rth@redhat.com>
3478
3479 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
3480
3481 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3482
3483 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
3484 now bool instead of int.
3485 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
3486 * trans.c (gnu_switch_label_stack): New function.
3487 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
3488 elaboration of renamed entity returns.
3489 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
3490 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
3491 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
3492 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
3493 DECL_SIZE_UNIT and simplify variable-sized case.
3494 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3495 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
3496 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
3497 (build_unit_elab): Disable for now.
3498 * utils.c (mark_visited): New function.
3499 (pushdecl): Walk tree to call it for global decl.
3500 (update_pointer_to): Update all variants of pointer and ref types.
3501 Add arg to COMPONENT_REF.
3502 (convert): Likewise.
3503 Move check for converting between variants lower down.
3504 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
3505 (build_allocator): Don't force type of MODIFY_EXPR.
3506 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
3507 put_var_into_stack.
3508
3509 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3510
3511 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
3512 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
3513 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
3514 subprograms.
3515 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
3516 all callers changed.
3517 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
3518 the way that EXIT_STMT finds the loop label.
3519 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
3520 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
3521 (add_stmt): Use annotate_with_locus insted of setting directly.
3522 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
3523 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
3524 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
3525 (build_vms_descriptor): Add extra args to ARRAY_REF.
3526 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
3527 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
3528 New cases.
3529 (build_binary_op): Don't make explicit CONVERT_EXPR.
3530 Add extra rgs to ARRAY_REF.
3531
3532 2004-06-14 Pascal Obry <obry@gnat.com>
3533
3534 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
3535 Windows. Fix minor typo.
3536
3537 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
3538 which is now supported on Windows. With this implementation using the
3539 Library Project feature is no different on Windows than on UNIX.
3540
3541 2004-06-14 Vincent Celier <celier@gnat.com>
3542
3543 * makegpr.adb (Compile_Sources): Nothing to do when there are no
3544 non-Ada sources.
3545
3546 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
3547
3548 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
3549 found, show the project name and the path of the previously parsed
3550 project file.
3551
3552 2004-06-14 Ed Schonberg <schonberg@gnat.com>
3553
3554 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
3555 array, avoid copying the actual before the call.
3556
3557 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
3558
3559 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
3560 Instead, allocate memory on worst-case alignment assumptions, and then
3561 return an aligned address within the allocated zone.
3562
3563 2004-06-14 Robert Dewar <dewar@gnat.com>
3564
3565 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
3566 elab entities in predefined units in No_Run_Time_Mode.
3567 (Gen_Adainit_C): Same fix
3568 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
3569 units in No_Run_Time_Mode
3570 (Gen_Elab_Calls_C): Same fix
3571
3572 * symbols-vms-alpha.adb: Minor reformatting
3573
3574 * g-debpoo.ads: Minor reformatting
3575
3576 * lib.adb (In_Same_Extended_Unit): Version working on node id's
3577
3578 * lib.ads (In_Same_Extended_Unit): Version working on node id's
3579
3580 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
3581 working on nodes.
3582
3583 * make.adb: Minor reformatting
3584
3585 * par-ch12.adb: Minor reformatting
3586
3587 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
3588
3589 * prj-strt.adb: Minor reformatting
3590
3591 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
3592 be more general.
3593
3594 * sem_attr.adb: Minor reformatting
3595
3596 * sem_ch7.adb: Minor reformatting
3597
3598 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
3599 for type in the same unit as the object declaration.
3600
3601 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
3602 static string expressions and not just string literals.
3603 Minor reformatting
3604 (Set_Warning): Reset restriction warning flag for restriction pragma
3605 Implement pragma Profile_Warnings
3606 Implement pragma Profile (Restricted)
3607 Give obolescent messages for old restrictions and pragmas
3608
3609 * snames.h, snames.ads, snames.adb: Add new entry for pragma
3610 Profile_Warnings.
3611
3612 * s-rident.ads: Add declarations for restrictions required by profile
3613 Restricted and profile Ravenscar.
3614
3615 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
3616
3617 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
3618 configuration pragmas.
3619
3620 2004-06-11 Vincent Celier <celier@gnat.com>
3621
3622 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
3623 gnatsym, when symbol policy is Restricted.
3624
3625 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
3626 gnatsym, when symbol policy is Restricted.
3627
3628 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
3629 read the symbol file.
3630 (Finalize): Fail in symbol policy Restricted if a symbol in the original
3631 symbol file is not in the object files. Do not create a new symbol file
3632 when symbol policy is Restricted.
3633
3634 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
3635 in Scng.
3636
3637 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
3638 Restricted.
3639 (Usage): Line for new switch -R
3640
3641 * make.adb (Initialize): When the platform is not VMS, add the
3642 directory where gnatmake is invoked in the front of the path, if
3643 gnatmake is invoked with directory information. Change the Scan_Args
3644 while loop to a for loop.
3645 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
3646 if Depth is equal or greater than the proposed depth, there is nothing
3647 to do.
3648 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
3649 instead of 0.
3650
3651 * prj.ads: Add new symbol policy Restricted.
3652
3653 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
3654 with the new parameters Check_All_Labels and Case_Location.
3655
3656 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
3657 (Library_Symbol_File needs to be defined).
3658
3659 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
3660 and Case_Location If Check_All_Labels is True, check that all values of
3661 the string type are used, and output warning(s) if they are not.
3662
3663 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
3664 and Case_Location.
3665
3666 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
3667
3668 * gnat_ugn.texi: Update documentation about the library directory in
3669 Library Projects.
3670
3671 * makegpr.adb (Display_Command): In verbose mode, also display the
3672 value of the CPATH env var, when the compiler is gcc.
3673 (Initialize): Change the Scan_Args while loop to a for loop
3674 (Compile_Individual_Sources): Change directory to object directory
3675 before compilations.
3676
3677 * symbols.ads: New symbol policy Restricted.
3678
3679 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
3680
3681 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
3682 is now taken care of internally in the Exception_Propagation package
3683 and does not require clients assistance any more.
3684
3685 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
3686 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
3687 functions. Helpers to maintain a predicate required in the handling of
3688 occurrence transfer between tasks.
3689 This is now handled internally and does not require clients assistance
3690 for the setup/propagate separation anymore.
3691 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
3692 allocation strategy, handle the Setup_And_Not_Propagated predicate and
3693 document.
3694
3695 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
3696 raise_after_setup, now that everything is handled internally within the
3697 setup/propagation engine.
3698
3699 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
3700
3701 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
3702 Add additional conditions for the case of an actual being a simple
3703 name or literal. Improve inlining by preventing the generation
3704 of temporaries with a short lifetime (one use).
3705
3706 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
3707
3708 PR ada/15587
3709
3710 * einfo.ads: Minor comment updates for Has_Completion and
3711 E_Constant list of flags.
3712
3713 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
3714 and constant redeclarations now set the Has_Completion flag of their
3715 defining identifiers.
3716
3717 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
3718 Inspect_Deferred_Constant_Completion.
3719 Used to detect private deferred constants that have not been completed
3720 either by a constant redeclaration or pragma Import. Emits error message
3721 "constant declaration requires initialization expression".
3722
3723 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
3724 completes a deferred constant.
3725
3726 2004-06-11 Geert Bosch <bosch@gnat.com>
3727
3728 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
3729
3730 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
3731 calculating exponent for scaling denormal numbers.
3732 (Leading_Part): Properly raise Constraint_Error for zero or negative
3733 Adjustment.
3734 (Remainder): Properly raise Constraint_Error for zero divisor.
3735
3736 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
3737
3738 * sem_util.adb: Minor reformatting.
3739
3740 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
3741 dereference when accessing the entry parameter record.
3742 (Check_Array_Type): Always check for possible implicit dereference.
3743 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
3744 Abort if a pointer is still present (denoting that an implicit
3745 dereference was left in the tree by the front-end).
3746
3747 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
3748 dereference when accessing the entry parameter record.
3749 (Check_Array_Type): Always check for possible implicit dereference.
3750 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
3751 Abort if a pointer is still present (denoting that an implicit
3752 dereference was left in the tree by the front-end).
3753
3754 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
3755
3756 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
3757 message, like the compiler itself does. Easier to parse the output.
3758
3759 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
3760
3761 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
3762 be base names, and not includes directories.
3763
3764 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
3765
3766 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
3767 so that dependencies are properly taken into account by make.
3768
3769 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
3770
3771 PR ada/15622
3772 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
3773 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
3774
3775 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
3776
3777 * Makefile.in (install-gnatlib): install target-specific run-time files.
3778
3779 * Make-lang.in: Remove obsolete targets.
3780
3781 2004-06-11 Ed Schonberg <schonberg@gnat.com>
3782
3783 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
3784 specification, to catch misuses of program unit names.
3785
3786 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
3787 superfluous conversions in an instance.
3788
3789 2004-06-11 Ed Schonberg <schonberg@gnat.com>
3790
3791 PR ada/15403
3792
3793 * sem_ch12.adb (Save_References): If operator node has been folded to
3794 enumeration literal, associated_node must be discarded.
3795
3796 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
3797
3798 * s-stchop-vxworks.adb: Add required pragma Convention to
3799 Task_Descriptor because it is updated by a C function.
3800
3801 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
3802
3803 PR ada/15568
3804
3805 * Makefile.in: Remove target specific SO_OPT on IRIX
3806
3807 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3808
3809 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
3810 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
3811 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
3812 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
3813 (STMT_STMT, USE_STMT): New statement codes.
3814 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
3815 * ada-tree.h: Reflect above changes.
3816 (struct tree_loop_id): Deleted.
3817 (union lang_tree_node, struct lang_decl, struct lang_type):
3818 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
3819 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
3820 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
3821 (IS_ADA_STMT): New macro.
3822 * decl.c (annotate_decl_with_node): New function.
3823 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
3824 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
3825 Call add_stmt_with_node to do needed assignments.
3826 Add call to update setjmp buffer directly, not via EXPR_STMT.
3827 (maybe_variable): Argment GNAT_NODE deleted.
3828 * gigi.h (maybe_variable): Likewise.
3829 (make_transform, add_stmt_with_node, set_block_for_group): New.
3830 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
3831 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
3832 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
3833 (set_lineno, set_lineno_from_sloc): Likewise.
3834 (record_code_position, insert_code_for): Likewise.
3835 (gnat_poplevel): Now returns void.
3836 (end_subprog_body): Now takes argument.
3837 * misc.c (cgraph.h, tree-inline.h): New includes.
3838 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
3839 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
3840 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
3841 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
3842 (gnat_parse_file): Don't set immediate_size_expand.
3843 Call cgraph functions.
3844 (gnat_expand_expr): Remove most cases.
3845 (record_code_position, insert_code_for): Remove from here.
3846 * trans.c (toplev.h, tree-gimple.h): Now included.
3847 (discard_file_names): Deleted.
3848 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
3849 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
3850 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
3851 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
3852 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
3853 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
3854 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
3855 (set_block_for_group, add_stmt_list): Likewise.
3856 (start_stmt_group): Renamed from start_block_stmt.
3857 (end_stmt_group): Likewise, from end_block_stmt.
3858 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
3859 (gigi): Don't set discard_file_names or call set_lineno.
3860 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
3861 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
3862 Numerous changes throughout to reflect new names and complete
3863 function-at-a-time implementation.
3864 (gnat_expand_stmt): Delete or comment out all cases.
3865 (process_inlined_subprograms): Use add_stmt.
3866 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
3867 call set_lineno; also remove unneeded block handling.
3868 (process_type): Remove unneeded block handling.
3869 (build_unit_elab): Remove calls to deleted functions.
3870 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
3871 (tree-dump.h): Likewise.
3872 (struct ada_binding_level): Add field jmpbuf_decl.
3873 (gnat_define_builtin, gnat_install_builtins): New.
3874 (gnat_gimplify_function, gnat_finalize): Likewise.
3875 (gnat_poplevel): No longer return BLOCK, set it instead.
3876 Remove code dealing with nested functions.
3877 (gnat_init_decl_processing): Also set size_type_node.
3878 Call gnat_install_builtins.
3879 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
3880 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
3881 Remove special-case for "main".
3882 (end_subprog_body): Add arg and rework for tree-ssa.
3883 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
3884 Add case for BOOLEAN_TYPE.
3885 * utils2.c (rtl.h): Now include.
3886 (build_call_raise): Test Debug_Flag_NN directly.
3887 (build_call_alloc_dealloc): Don't use local stack allocation for now.
3888 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
3889 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
3890
3891 2004-06-07 Robert Dewar <dewar@gnat.com>
3892
3893 * a-direct.ads, einfo.ads: Minor comment updates
3894
3895 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
3896 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
3897 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
3898 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
3899 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
3900
3901 * s-interr-sigaction.adb: Remove unreferenced variable
3902 (Attached_Interrupts). Minor reformatting.
3903 Avoid use of variable I (replace by J).
3904
3905 * par-ch10.adb: Fix text of one error message
3906
3907 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
3908 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
3909 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
3910 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
3911 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
3912 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
3913 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
3914 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
3915 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
3916 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
3917 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
3918 2005 support.
3919
3920 2004-06-07 Doug Rupp <rupp@gnat.com>
3921
3922 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
3923
3924 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
3925
3926 * mlib-tgt-vms-ia64.adb: New file.
3927
3928 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
3929 Add mlib-tgt-vms-ia64.adb
3930 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
3931 Move to alpha specific ifeq section.
3932 Add VMS specific versions of symbols.adb
3933 Renaming of 5q vms files.
3934
3935 * 5qsystem.ads renamed to system-vms_64.ads.
3936
3937 2004-06-07 Vincent Celier <celier@gnat.com>
3938
3939 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
3940 explain that when a time of day corresponding to the non existing hour
3941 on the day switching to DST is specified, Split may return a different
3942 value for Seconds.
3943
3944 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
3945 to GNAT PRETTY.
3946
3947 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
3948 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
3949
3950 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
3951 to False.
3952 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
3953 the linking options.
3954 (Build_Library.Check_Libs): On VMS, if there is a dependency on
3955 g-trasym.ads, set Gtrasymobj_Needed to True.
3956
3957 * prj-attr.adb: Add new package Metrics for gnatmetric
3958
3959 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
3960 canonical case to take into account files with upper case characters on
3961 Windows.
3962 (Ada_Check): Load the reference symbol file name in the name buffer to
3963 check it, not the symbol file name.
3964
3965 * snames.ads, snames.adb: Add standard name Metrics (name of project
3966 file package for gnatmetric).
3967
3968 * vms_conv.ads: Add Metric to Comment_Type
3969
3970 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
3971
3972 * vms_data.ads: Add qualifiers for GNAT METRIC
3973
3974 * makegpr.adb (Link_Executables): Take into account the switches
3975 specified in package Linker of the main project.
3976
3977 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
3978
3979 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
3980 the index of the last element is Units.Last, not Units.Table'Last
3981 (which is usually not a valid index within the actually allocated
3982 storage for the table).
3983
3984 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
3985 determines whether to generate a call to a checked storage pool
3986 Dereference action.
3987 Generate such a call only for a dereference that either comes from
3988 source, or is the result of rewriting a dereference that comes from
3989 source.
3990
3991 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
3992
3993 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
3994
3995 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
3996
3997 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
3998 file level, elaborate the stride for inner dimensions in alignment
3999 units, not bytes.
4000
4001 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
4002 in a comment.
4003
4004 2004-06-07 Javier Miranda <miranda@gnat.com>
4005
4006 * exp_ch6.adb: Correct wrong modification in previous patch
4007
4008 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
4009
4010 * g-trasym.ads: Corrected comment to properly reflect level of support
4011 on VMS.
4012
4013 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
4014
4015 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
4016 includes case of a variable referenced on the left hand side of an
4017 assignment, therefore remove redundant code. Variables and prefixes of
4018 indexed or selected components are now marked as referenced on left
4019 hand side. Warnings are now properly emitted when variables or prefixes
4020 are assigned but not read.
4021
4022 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
4023 left hand side referenced variables. Private access types do not
4024 produce the warning "variable ... is assigned but never read".
4025 Add also additional checks to left hand side referenced variables.
4026 Aliased, renamed objects and access types do not produce the warning
4027 "variable ... is assigned but never read" since other entities may read
4028 the memory location.
4029
4030 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
4031
4032 * Makefile.in: In the powerpc/vxworks-specific section, restore
4033 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
4034 by mistake).
4035
4036 2004-06-07 Ed Schonberg <schonberg@gnat.com>
4037
4038 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
4039 predefined operators.
4040 Removes spurious type errors from g-trasym-vms.adb.
4041
4042 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
4043 distinct from the operator appearing in the source, call appropriate
4044 routine to insert conversions when needed, and complete resolution of
4045 node.
4046 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
4047 interpretations for rewritten right operand.
4048 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
4049 the other operand is overloaded and the context is a type conversion.
4050
4051 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4052
4053 * ada-tree.def (BLOCK_STMT): Now has two operands.
4054 (BREAK_STMT): New.
4055
4056 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
4057
4058 * gigi.h: (gnat_poplevel): Now returns a tree.
4059
4060 * trans.c (end_block_stmt): Add arg; all callers changed.
4061 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
4062 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
4063 (add_stmt): Set TREE_TYPE.
4064 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
4065 (gnat_expand_stmt, case BREAK_STMT): New case.
4066
4067 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
4068
4069 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
4070
4071 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
4072 procedure Set_Stack_Size that is not needed.
4073
4074 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
4075
4076 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
4077 used for gnatpp input file and for the files upon which it depends
4078
4079 2004-06-07 Ben Brosgol <brosgol@gnat.com>
4080
4081 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
4082
4083 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
4084
4085 * gnatvsn.ads: Bump version numbers appropriately.
4086 Add new build type.
4087
4088 2004-06-07 Pascal Obry <obry@gnat.com>
4089
4090 * gnat_ugn.texi: Improve comments about imported names and link names
4091 on Windows. Add a note about the requirement to use -k gnatdll's option
4092 when working with a DLL which has stripped stdcall symbols (no @nn
4093 suffix).
4094
4095 2004-05-27 Vincent Celier <celier@gnat.com>
4096
4097 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
4098 COMMENTS_LAYOUT=UNTOUCHED
4099
4100 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
4101 symbols-vms-alpha.adb
4102
4103 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
4104
4105 * sem.ads: Clarify documentation on checks suppression.
4106
4107 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
4108
4109 2004-05-27 Ed Schonberg <schonberg@gnat.com>
4110
4111 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
4112 the case of multiple derivations.
4113 (Is_Object_Reference): For a selected component, verify that the prefix
4114 is itself an object and not a value.
4115
4116 * sem_ch12.adb (Same_Instantiated_Constant): New name for
4117 Same_Instantiated_Entity.
4118 (Same_Instantiated_Variable): Subsidiary to
4119 Check_Formal_Package_Instance, to recognize actuals for in-out generic
4120 formals that are obtained from a previous formal package.
4121 (Instantiate_Subprogram_Body): Emit proper error when
4122 generating code and the proper body of a stub is missing.
4123
4124 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
4125 has a universal interpretation, do the disambiguation here.
4126
4127 * exp_ch4.adb (Expand_N_Type_Conversion,
4128 Expand_N_Unchecked_Type_Conversion): Special handling when target type
4129 is Address, to avoid typing anomalies when Address is a visible integer
4130 type.
4131
4132 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
4133 to determine whether a subprogram should not be marked Pure, even when
4134 declared in a pure package.
4135
4136 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
4137
4138 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
4139
4140 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
4141 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
4142 Update the documentation about the Ravenscar profile, following the
4143 definition found in AI-249.
4144
4145 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
4146 setting the Profile (Ravenscar). This must be done in addition to
4147 setting the required restrictions.
4148
4149 * rtsfind.ads: Add the set of operations defined in package
4150 Ada.Interrupts.
4151
4152 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
4153 restriction.
4154
4155 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
4156
4157 lang-specs.h: Always require -c or -S and always redirect to /dev/null
4158 if -gnatc or -gnats is passed.
4159
4160 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
4161
4162 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
4163 a significant reference. Warnings are now properly emitted when a
4164 discriminated type is not referenced.
4165
4166 * lib-xref.adb (Generate_Reference): A deferred constant completion,
4167 record representation clause or record type discriminant does not
4168 produce a reference to its corresponding entity. Warnings are now
4169 properly emitted when deferred constants and record types are not
4170 referenced.
4171
4172 2004-05-27 Geert Bosch <bosch@gnat.com>
4173
4174 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
4175 Fixes ACATS Annex G tests.
4176
4177 2004-05-27 Robert Dewar <dewar@gnat.com>
4178
4179 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
4180 handling WITH
4181
4182 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
4183
4184 * s-interr.adb (Server_Task): Take into account case of early return
4185 from sigwait under e.g. linux.
4186
4187 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
4188
4189 * gnat_ugn.texi: Add description for the new gnatpp options:
4190 -rnb - replace the original source without creating its backup copy
4191 -c0 - do not format comments
4192
4193 2004-05-24 Geert Bosch <bosch@gnat.com>
4194
4195 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
4196 with 192 bits of precision, sufficient to reduce a double-extended
4197 arguments X with a maximum relative error of T'Machine_Epsilon, for X
4198 in -2.0**32 .. 2.0**32.
4199 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
4200 reduction by the processor, which only uses a 68-bit approximation of
4201 Pi.
4202 (Tan): Always reduce arguments and compute function either using
4203 the processor's fptan instruction, or by dividing sin and cos as needed.
4204
4205 2004-05-24 Doug Rupp <rupp@gnat.com>
4206
4207 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
4208 gcc error on 32/64 bit VMS.
4209
4210 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
4211
4212 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
4213 since this is what we get for stack overflows although not documented
4214 as such.
4215 Document the issues which may require adjustments to our signal
4216 handlers.
4217
4218 2004-05-24 Ed Schonberg <schonberg@gnat.com>
4219
4220 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
4221 enclosing dynamic scope if the instantiation is within a generic unit.
4222
4223 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
4224
4225 * exp_dbug.ads: Fix typo.
4226
4227 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
4228 Rename it to its proper name: system-linux-ia64.ads
4229 (stamp-gnatlib1): Remove extra target specific run time files when
4230 setting up the rts directory.
4231
4232 2004-05-24 Javier Miranda <miranda@gnat.com>
4233
4234 * einfo.ads, einfo.adb (Limited_Views): Removed.
4235 (Limited_View): New attribute that replaces the previous one. It is
4236 now a bona fide package with the limited-view list through the
4237 first_entity and first_private attributes.
4238
4239 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
4240 limited-private-with clause.
4241 (Install_Limited_Withed_Unit): Install the private declarations of a
4242 limited-private-withed package. Update the installation of the shadow
4243 entities according to the new structure (see Build_Limited_Views)
4244 (Build_Limited_Views): Replace the previous implementation of the
4245 limited view by a package entity that references the first shadow
4246 entity plus the first shadow private entity (required for limited-
4247 private-with clause)
4248 (New_Internal_Shadow_Entity): Code cleanup.
4249 (Remove_Limited_With_Clause): Update the implementation to undo the
4250 new work carried out by Build_Limited_Views.
4251 (Build_Chain): Complete documentation.
4252 Replace Ada0Y by Ada 0Y in comments
4253 Minor reformating
4254
4255 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
4256 types the level of accessibility depends on the enclosing type
4257 declaration.
4258
4259 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
4260 entities. Complete documentation of previous change.
4261
4262 2004-05-24 Robert Dewar <dewar@gnat.com>
4263
4264 * namet.adb: Minor reformatting
4265 Avoid use of name I (replace by J)
4266 Minor code restructuring
4267
4268 * sem_ch6.adb: Minor reformatting
4269
4270 * lib-writ.adb: Do not set restriction as active if this is a
4271 Restriction_Warning case.
4272
4273 * sem_prag.adb: Reset restriction warning flag if real pragma
4274 restriction encountered.
4275
4276 * s-htable.adb: Minor reformatting
4277 Change rotate count to 3 in Hash (improves hash for small strings)
4278
4279 * 5qsystem.ads: Add comments for type Address (no literals allowed).
4280
4281 * gnat_ugn.texi: Add new section of documentation "Code Generation
4282 Control", which describes the use of -m switches.
4283
4284 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
4285
4286 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
4287 through the DECL_INITIAL for renamed variables.
4288
4289 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
4290
4291 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
4292
4293 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4294
4295 * exp_dbug.ads: Correct comments concerning handling of overloading,
4296 since we no longer use $ anymore.
4297
4298 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
4299
4300 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
4301 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
4302 with illegal subunits.
4303
4304 2004-05-19 Ed Schonberg <schonberg@gnat.com>
4305
4306 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
4307 body with front-end inlining enabled, check whether an inline pragma
4308 appears immediately after the body and applies to it.
4309
4310 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
4311 enabled and the pragma appears after the body of the subprogram.
4312
4313 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4314
4315 Part of function-at-a-time conversion
4316
4317 * misc.c (adjust_decl_rtl): Deleted.
4318 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
4319 Define.
4320
4321 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
4322 (add_decl_stmt, add_stmt, block_has_vars): New functions.
4323 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
4324
4325 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
4326 when making a decl.
4327 (gnat_to_gnu_entity): Likewise.
4328 Use add_stmt to update setjmp buffer.
4329 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
4330 flush_addressof.
4331 No longer call adjust_decl_rtl.
4332 (DECL_INIT_BY_ASSIGN_P): New macro.
4333 (DECL_STMT_VAR): Likewise.
4334
4335 * trans.c (gigi): Call start_block_stmt to make the outermost
4336 BLOCK_STMT.
4337 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
4338 Call start_block_stmt and end_block_stmt temporarily.
4339 Use gnat_expand_stmt instead of expand_expr_stmt.
4340 (add_decl_stmt): New function.
4341 (tree_transform): Call it.
4342 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
4343 (end_block_stmt): Set type and NULL_STMT.
4344 (gnat_expand_stmt): Make recursize call instead of calling
4345 expand_expr_stmt.
4346 (gnat_expand_stmt, case DECL_STMT): New case.
4347 (set_lineno_from_sloc): Do nothing if global.
4348 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
4349 (start_block_stmt, add_stmt, end_block_stmt): New functions.
4350 (build_block_stmt): Call them.
4351 (gnat_to_code): Don't expand NULL_STMT.
4352 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
4353 args.
4354 (tree_transform): Likewise.
4355 (tree_transform, case N_Null_Statement): Return NULL_STMT.
4356 (gnat_expand_stmt, case NULL_STMT): New case.
4357 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
4358 IF_STMT_TRUE.
4359
4360 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
4361 TREE_ADDRESSABLE.
4362
4363 * utils.c (create_var_decl): Do not call expand_decl or
4364 expand_decl_init.
4365 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
4366 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
4367 here.
4368 (struct e_stack): Add chain_next to GTY.
4369 (struct binding_level): Deleted.
4370 (struct ada_binding_level): New struct.
4371 (free_block_chain): New.
4372 (global_binding_level, clear_binding_level): Deleted.
4373 (global_bindings_p): Rework to see if no chain.
4374 (kept_level_p, set_block): Deleted.
4375 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
4376 new data structure and work directly on BLOCK node.
4377 (gnat_poplevel): Similarly.
4378 (get_decls): Look at BLOCK_VARS.
4379 (insert_block): Work directly on BLOCK node.
4380 (block_has_var): New function.
4381 (pushdecl): Rework for new binding structures.
4382 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
4383 poplevel.
4384 (build_subprog_body): Likewise.
4385 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
4386
4387 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
4388
4389 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
4390 (DECL_STMT_VAR): Likewise.
4391
4392 2004-05-17 Robert Dewar <dewar@gnat.com>
4393
4394 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
4395 procedure
4396
4397 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
4398 of restriction synonyums by using
4399 Restrict.Process_Restriction_Synonyms.
4400
4401 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
4402
4403 * s-restri.ads (Tasking_Allowed): Correct missing comment
4404
4405 * s-rident.ads: Add entries for restriction synonyms
4406
4407 * ali.adb: Fix some problems with badly formatted ALI files that can
4408 result in infinite loops.
4409
4410 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
4411 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
4412 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
4413 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
4414 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
4415 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
4416 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
4417 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
4418 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
4419 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
4420 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
4421 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
4422 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
4423 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
4424 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
4425 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
4426 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
4427 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
4428 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
4429 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
4430 to Task_Id (minor cleanup).
4431
4432 2004-05-17 Vincent Celier <celier@gnat.com>
4433
4434 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
4435 directory separator.
4436
4437 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
4438 project being extended, if Languages is not declared in extending
4439 project.
4440
4441 2004-05-17 Javier Miranda <miranda@gnat.com>
4442
4443 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
4444 limited view of a visible sibling.
4445
4446 2004-05-14 Robert Dewar <dewar@gnat.com>
4447
4448 * gnat_ugn.texi: Minor change to -gnatS documentation
4449
4450 * sprint.adb: Remove some instances of Assert (False) and for this
4451 purpose replace them by output of a ??? string.
4452
4453 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
4454 Assert (False).
4455
4456 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
4457 flag processing. This was suppressing required dependencies in
4458 No_Run_Time mode and is not needed since the binder does not generate
4459 references for things in libgnat anyway.
4460
4461 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
4462 warning.
4463
4464 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
4465
4466 * gnat_ugn.texi: Document AIX-specific issue with initialization of
4467 resolver library.
4468
4469 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
4470 action for the case of an actual parameter in an init proc call.
4471
4472 2004-05-14 Ed Schonberg <schonberg@gnat.com>
4473
4474 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
4475 subtype, check visible entities in base type.
4476
4477 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
4478 actions if the object is a renaming.
4479
4480 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
4481 Check_Formal_Package_Instance, to determine more precisely when the
4482 formal and the actual denote the same entity.
4483
4484 2004-05-14 Javier Miranda <miranda@gnat.com>
4485
4486 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
4487
4488 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
4489 corresponding to a private_with must be removed from visibility; it
4490 will be made visible later, just before we analyze the private part of
4491 the package.
4492 (Check_Private_Child_Unit): Allow private_with clauses in public
4493 siblings.
4494 (Install_Siblings): Make visible the private entities of private-withed
4495 siblings.
4496 (Install_Withed_Unit): Do not install the private withed unit if we
4497 are compiling a package declaration and the Private_With_OK flag was
4498 not set by the caller. These declarations will be installed later,
4499 just before we analyze the private part of the package.
4500
4501 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
4502 during the evaluation of the expression that initializes the object,
4503 decorate it with the expected type to avoid cascade errors.
4504 Code cleanup.
4505
4506 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
4507 subprogram we have to install the private_with clauses after its
4508 specification has been analyzed (as documented in AI-262.TXT).
4509
4510 * sem_ch8.adb (Has_Private_With): New function. Determines if the
4511 current compilation unit has a private with on a given entity.
4512 (Find_Direct_Name): Detect the Beaujolais problem described in
4513 AI-262.TXT
4514
4515 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
4516 provides the functionality of the function Is_Ancestor that was
4517 previously available in sem_ch10. It has been renamed to avoid
4518 overloading.
4519
4520 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
4521
4522 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4523
4524 * utils.c (build_vms_descriptor): Use SImode pointers.
4525
4526 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
4527
4528 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
4529
4530 2004-05-14 GNAT Script <nobody@gnat.com>
4531
4532 * Make-lang.in: Makefile automatically updated
4533
4534 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
4535
4536 Renaming of target specific files for clarity
4537
4538 * Makefile.in: Rename GNAT target specific files.
4539
4540 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
4541 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
4542 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
4543 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
4544 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
4545 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
4546 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
4547 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
4548 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
4549 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
4550 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
4551 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
4552 51osinte.adb, 51osinte.ads, 51system.ads,
4553 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
4554 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
4555 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
4556 56tpopsp.adb, 57system.ads, 58system.ads,
4557 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
4558 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
4559 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
4560 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
4561 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
4562 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
4563 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
4564 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
4565 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
4566 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
4567 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
4568 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
4569 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
4570 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
4571 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
4572 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
4573 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
4574 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
4575 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
4576 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
4577 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
4578 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
4579 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
4580 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
4581 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
4582 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
4583 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
4584 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
4585 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
4586 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
4587 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
4588 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
4589 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
4590 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
4591 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
4592 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
4593 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
4594 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
4595 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
4596 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
4597
4598 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
4599 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
4600 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
4601 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
4602 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
4603 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
4604 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
4605 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
4606 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
4607 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
4608 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
4609 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
4610 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
4611 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
4612 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
4613 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
4614 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
4615 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
4616 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
4617 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
4618 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4619 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
4620 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
4621 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
4622 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
4623 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
4624 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
4625 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
4626 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
4627 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
4628 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
4629 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
4630 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
4631 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
4632 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
4633 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
4634 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
4635 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
4636 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
4637 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
4638 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
4639 s-osinte-vms.ads, s-osinte-vxworks.adb,
4640 s-osinte-vxworks.ads, s-osprim-mingw.adb,
4641 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
4642 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
4643 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
4644 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
4645 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
4646 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
4647 s-stchop-vxworks.adb, s-taprop-dummy.adb,
4648 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4649 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
4650 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
4651 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4652 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
4653 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
4654 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
4655 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
4656 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
4657 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
4658 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
4659 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
4660 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
4661 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
4662 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
4663 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
4664 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
4665 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
4666 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
4667 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
4668 system-irix-o32.ads, system-linux-x86_64.ads,
4669 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
4670 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
4671 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
4672 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
4673 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
4674 system-vxworks-mips.ads, system-vxworks-ppc.ads,
4675 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
4676 above.
4677
4678 2004-05-13 Zack Weinberg <zack@codesourcery.com>
4679
4680 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
4681
4682 2004-05-13 Diego Novillo <dnovillo@redhat.com>
4683
4684 Merge from tree-ssa-20020619-branch.
4685
4686 * config-lang.in (boot_language, build_by_default): Set
4687 to no.
4688 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
4689 (max_size): Add static chain op for call_expr.
4690
4691 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
4692
4693 PR target/15331
4694 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
4695
4696 2004-05-11 Roger Sayle <roger@eyesopen.com>
4697
4698 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
4699 COND_EXPR.
4700
4701 2004-05-10 Doug Rupp <rupp@gnat.com>
4702
4703 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
4704 system.aux_dec.
4705
4706 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
4707
4708 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
4709
4710 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
4711 Fixes undefined symbols in IA64 gnatlib.
4712
4713 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
4714
4715 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
4716 Short_Address). This will be moved to system.auxdec.
4717
4718 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
4719
4720 * sem_util.adb: Replace test for presence of a node that is always
4721 present with a call to Discard_Node.
4722
4723 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
4724 Analyze on the library unit node after generation of distribution stub
4725 constructs. The call was a no-op because Unit_Node has already been
4726 Analyzed, and the tree fragments for the distribution stubs are
4727 analyzed as they are inserted in Exp_Dist.
4728 Update comment regarding to distribution stubs to reflect that we
4729 do not generate stub in separate files anymore.
4730
4731 * einfo.ads: Clarify the fact that a tagged private type has the
4732 E_Record_Type_With_Private Ekind.
4733
4734 * erroutc.adb: Minor reformatting
4735
4736 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
4737 values if line length is increased using -gnatyM (noticed during code
4738 reading).
4739
4740 * eval_fat.adb: Minor reformatting
4741 Put spaces around exponentiation operator
4742
4743 2004-05-10 Ed Schonberg <schonberg@gnat.com>
4744
4745 PR ada/15005
4746 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
4747 has been rewritten as an explicit dereference, retrieve type of
4748 original node to check for possibly unconstrained record type.
4749
4750 2004-05-10 Ed Schonberg <schonberg@gnat.com>
4751
4752 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
4753 overriding, use the operation of the parent unconditionally.
4754
4755 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
4756 operation when either operand is a literal, to avoid further
4757 ambiguities.
4758
4759 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
4760 overridden by a previous explicit declaration, mark the previous entity
4761 as overriding.
4762
4763 * sem_disp.adb (Check_Dispatching_Operation): New predicate
4764 Is_Visibly_Controlled, to determine whether a declaration of a
4765 primitive control operation for a derived type overrides an inherited
4766 one. Add warning if the explicit declaration does not override.
4767
4768 2004-05-10 Vincent Celier <celier@gnat.com>
4769
4770 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
4771 some cases when the sources are no longer present.
4772
4773 * make.adb (Collect_Arguments): Fail if an external source, not part
4774 of any project need to be compiled, when switch -x has not been
4775 specified.
4776
4777 * makeusg.adb: Document new switch -x
4778
4779 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
4780 defaulted to False.
4781
4782 * switch-m.adb (Scan_Make_Switches): New switch -x
4783
4784 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
4785 gnatmake switch -x.
4786
4787 * gnat_ugn.texi: Document new gnatmake switch -x
4788
4789 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
4790
4791 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
4792
4793 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
4794 (process_attributes): Likewise.
4795
4796 2004-05-10 Joel Brobecker <brobecker@gnat.com>
4797
4798 * s-inmaop.ads: Fix spelling mistake in one of the comments.
4799
4800 2004-05-10 Robert Dewar <dewar@gnat.com>
4801
4802 * gnat_ugn.texi: Document that for config pragma files, the maximum
4803 line length is always 32767.
4804
4805 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
4806 literals is now allowed.
4807
4808 * gnat-style.texi: Remove statement about splitting long lines before
4809 an operator rather than after, since we do not follow this rule at all.
4810 Clarify rule (really lack of rule) for spaces around exponentiation
4811
4812 * sem_elim.adb: Allow concatenation of string literals as well as a
4813 single string literal for pragma arguments.
4814
4815 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
4816
4817 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
4818 written for append case.
4819
4820 * frontend.adb: Changes to avoid checking max line length in config
4821 pragma files.
4822
4823 * g-os_lib.ads: Minor reformatting
4824
4825 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
4826 wrong in any case. Instead use standard value. Noticed during code
4827 reading.
4828
4829 * opt.ads (Max_Line_Length): New field, used to implement removal of
4830 limitation on length of lines when scanning config pragma files.
4831
4832 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
4833 makeutl.ads, makeutl.adb: Minor reformatting
4834
4835 * scn.adb: Do not check line length while scanning config pragma files
4836 Do not check line length while scanning out license information
4837
4838 * scng.adb: Changes to avoid line length checks while parsing config
4839 pragma files.
4840
4841 2004-05-10 GNAT Script <nobody@gnat.com>
4842
4843 * Make-lang.in: Makefile automatically updated
4844
4845 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
4846
4847 * osint.adb (Find_Program_Name): Fix handling of VMS version
4848 number.
4849
4850 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
4851
4852 * g-os_lib.ads (Invalid_Time): New constant
4853
4854 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
4855 return OS_Time instead of time_t to match what is imported by Ada.
4856 Now return -1 if the file doesn't exist, instead of a random value
4857
4858 2004-05-05 Robert Dewar <dewar@gnat.com>
4859
4860 * usage.adb: Add line for -gnatR?s switch
4861
4862 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
4863
4864 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
4865 and for Match (Data_First, Data_last)
4866
4867 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
4868 written when we are dealing with multi-unit files.
4869
4870 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
4871
4872 * Makefile.in: Remove unused targets and variables.
4873
4874 2004-05-05 Vincent Celier <celier@gnat.com>
4875
4876 * switch-m.adb: New gnatmake switch -eI
4877
4878 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
4879 of new gnatmake switch -eInnn.
4880
4881 * makegpr.adb: Take into account new parameters Index and Src_Index in
4882 Prj.Util.
4883
4884 * clean.adb: Implement support for multi-unit sources, including new
4885 switch -i.
4886
4887 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
4888 Src_Index.
4889
4890 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
4891 (Extract_From_Q): New out parameter Index
4892 (Mark, Is_Marked): Subprograms moved to Makeutl
4893 (Switches_Of): New parameter Source_Index
4894 (Add_Switch): New parameter Index
4895 (Check): New parameter Source_Index
4896 (Collect_Arguments): New parameter Source_Index
4897 (Collect_Arguments_And_Compile): New parameter Source_Index
4898 (Compile): New parameter Source_Index
4899 Put subprograms in alphabetical order
4900 Add support for multi-source sources, including in project files.
4901
4902 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
4903 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
4904 Make.
4905
4906 * makeusg.adb: New gnatmake switch -eInnn
4907
4908 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
4909 Prj.Util.Value_Of.
4910
4911 * opt.ads (Main_Index): New variable, defaulted to 0.
4912
4913 * osint.ads, osinte.adb (Add_File): New parameter Index
4914 (Current_Source_Index): New function
4915
4916 * prj.adb: Take into account new components Index and Src_Index
4917
4918 * prj.ads (String_Element): New component Index
4919 (Variable_Value): New component Index
4920 (Array_Element): New component Src_Index
4921
4922 * prj-attr.adb: Indicate that optional index may be specified for
4923 attributes Main, Executable, Spec, Body and some of Switches.
4924
4925 * prj-attr.ads (Attribute_Kind): New values for optional indexes
4926 (Attribute_Record): New component Optional_Index
4927
4928 * prj-com.ads (File_Name_Data): New component Index
4929
4930 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
4931
4932 * prj-env.adb (Put): Output optional index
4933
4934 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
4935 attributes Spec and Body.
4936
4937 * prj-nmsc.adb: Process optional indexes
4938
4939 * prj-pp.adb: Ouput "at" for optional indexes
4940
4941 * prj-proc.adb: Take into account optional indexes
4942
4943 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
4944 Optional_Index. For string literal,
4945 process optional index when Optional_Index is True.
4946 (Parse_Expresion): New Boolean parameter Optional_Index
4947
4948 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
4949 (Set_Source_Index_Of): New procedure
4950
4951 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
4952 index.
4953
4954 * prj-util.ads (Executable_Of): New parameter Index
4955 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
4956 New parameter Src_Index, defaulted to 0.
4957
4958 2004-05-05 Ed Schonberg <schonberg@gnat.com>
4959
4960 PR ada/15257
4961 * sem_ch3.adb (Access_Definition): If this is an access parameter
4962 whose designated type is imported through a limited_with clause, do
4963 not add the enclosing subprogram to the list of private dependents of
4964 the type.
4965
4966 2004-05-05 Ed Schonberg <schonberg@gnat.com>
4967
4968 PR ada/15258
4969 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
4970 a limited_with clause, and the other is its non-limited view.
4971
4972 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
4973
4974 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
4975
4976 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
4977 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
4978 Stand.Boolean_Literals to produce references to entities
4979 Standard_False and Standard_True from compile-time computed boolean
4980 values.
4981
4982 * stand.ads (Boolean_Literals): New variable, provides the entity
4983 values for False and True, for use by the expander.
4984
4985 2004-05-05 Doug Rupp <rupp@gnat.com>
4986
4987 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
4988 5vinmaop.adb: Unchecked convert Short_Address vice Address
4989
4990 * adaint.c, raise.c: Caste CRTL function return value
4991 to avoid gcc error on 32/64 bit IVMS.
4992
4993 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
4994 target = IA64/VMS.
4995
4996 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
4997
4998 * 5qsystem.ads (Address): Declare as Long_Integer
4999 (Short_Address): Declare as 32 bit subtype of Address
5000 Declare abstract address operations to avoid gratuitous ambiguities.
5001
5002 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
5003
5004 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
5005 instead of the old Boolean_Entry_Barriers.
5006 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
5007
5008 2004-05-05 GNAT Script <nobody@gnat.com>
5009
5010 * Make-lang.in: Makefile automatically updated
5011
5012 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
5013
5014 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
5015
5016 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
5017
5018 PR ada/15152
5019
5020 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
5021 alone. Replacing object references by literals is inappropriate in a
5022 so low level context.
5023
5024 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
5025
5026 * a-exexpr.adb: Add comments
5027
5028 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5029
5030 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
5031 declare the Ancestor_Tags array in Type_Specific_Data with a small size
5032 without risking a bounds check error when accessing one of its
5033 components.
5034 (Type_Specific_Data): Define Ancestor_Tags as a small array.
5035 This prevents us from hitting a limitation during the debug info
5036 generation when using stabs.
5037
5038 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
5039 small array.
5040 This prevents us from hitting a limitation during the debug info
5041 generation when using stabs.
5042
5043 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
5044
5045 lang-specs.h: Remove -gnatz* from specs.
5046
5047 2004-05-03 Vincent Celier <celier@gnat.com>
5048
5049 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
5050
5051 * Make-lang.in, Makefile.in: Add gprmake
5052
5053 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
5054
5055 * sem_aggr.adb: Fix typo in comment.
5056
5057 2004-05-03 Robert Dewar <dewar@gnat.com>
5058
5059 * make.adb: Minor reformatting
5060
5061 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
5062
5063 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
5064 so that it works when address is not a private type.
5065
5066 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
5067 properly with rewritten unchecked conversions. This prevents
5068 order-of-elaboration issues that can otherwise arise.
5069 (Minimum_Size): Don't check size of access types under VMS
5070
5071 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
5072 interpretations of integer literals as type System.Address.
5073
5074 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
5075 (Is_Descendent_Of): New function
5076
5077 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
5078
5079 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
5080 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
5081 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
5082
5083 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
5084 of the old Max_Entry_Queue_Depth.
5085
5086 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
5087 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
5088 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
5089
5090 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
5091 New entry for proper handling of Max_Entry_Queue_Depth.
5092 New entry for proper handling of No_Dynamic_Interrupts.
5093
5094 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
5095 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
5096 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
5097 the GNAT specific restriction Max_Entry_Queue_Depth.
5098 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
5099 the GNAT specific restriction No_Dynamic_Interrupts.
5100
5101 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
5102 instead of the old Boolean_Entry_Barriers.
5103 Use the new restriction No_Dynamic_Attachment instead of the old
5104 No_Dynamic_Interrupts.
5105
5106 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
5107 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
5108
5109 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
5110 of the old Max_Entry_Queue_Depth.
5111
5112 2004-05-03 GNAT Script <nobody@gnat.com>
5113
5114 * Make-lang.in: Makefile automatically updated
5115
5116 2004-04-29 Ed Schonberg <schonberg@gnat.com>
5117
5118 * checks.adb (Enable_Range_Check): If the prefix of an index component
5119 is an access to an unconstrained array, perform check unconditionally.
5120
5121 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5122
5123 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
5124 Component_Clause.
5125
5126 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
5127
5128 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
5129 alternate stack setting. There was no support for the tasking cases
5130 and the changes eventually caused a number of side-effect failures in
5131 the non-tasking case too.
5132
5133 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
5134
5135 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
5136 -gnats is passed.
5137
5138 2004-04-29 Vincent Celier <celier@gnat.com>
5139
5140 * make.adb (Gnatmake): Increase max size of argument array for
5141 gnatbind for the potential addition of -F.
5142 If there are Stand-Alone Library projects, invoke gnatbind with -F to
5143 be sure that elaboration flags will be checked.
5144
5145 * switch-c.adb: Correct call to Scan_Pos for -gnateI
5146
5147 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
5148
5149 * sem_warn.adb (Check_References): Move '<access-variable> may be
5150 null' warning out of under Warn_On_No_Value_Assigned.
5151
5152 2004-04-29 Ed Falis <falis@gnat.com>
5153
5154 * gnat_ugn.texi: Fixed texi error
5155
5156 2004-04-29 Robert Dewar <dewar@gnat.com>
5157
5158 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
5159 abstract operations if they come from predefined files.
5160
5161 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
5162 Dynamic, not RM).
5163
5164 * s-addope.adb: Correct obvious error in mod function
5165
5166 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
5167
5168 * Makefile.in: Add target pairs for powerpc darwin*
5169 tasking support.
5170
5171 * a-intnam-darwin.ads, s-osinte-darwin.adb,
5172 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
5173
5174 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5175
5176 * Makefile.in: Add target macro definitions for s390*-linux*.
5177 * system-linux-s390.ads: New file.
5178 * system-linux-s390x.ads: New file.
5179
5180 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
5181
5182 * gnat_ugn.texi: Correct argument to @setfilename.
5183
5184 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
5185
5186 * a-exexpr.adb (Unwind_Word): New data type.
5187 (Unwind_Exception): Use it as type of Private1 and Private2.
5188
5189 * raise.c (db_action_for): Fix debug printf.
5190
5191 2004-04-27 Ed Schonberg <schonberg@gnat.com>
5192
5193 * a-wtmoio.ads: Formal type must be a modular type, not a signed
5194 integer type.
5195
5196 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5197
5198 * decl.c (gnat_to_gnu_entity, case object): Call
5199 __builtin_update_setjmp_buf.
5200
5201 * gigi.h (update_setjmp_buf): Deleted.
5202 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
5203
5204 * misc.c: (update_setjmp_buf): Deleted.
5205
5206 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
5207 around block of RTL.
5208
5209 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
5210
5211 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
5212
5213 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
5214 subprogram for which no pragma All_Calls_Remote applies, store the
5215 address of the real subprogram in the underlying record type, so local
5216 dereferences do not go through the PCS.
5217
5218 2004-04-26 Robert Dewar <dewar@gnat.com>
5219
5220 * i-c.ads: Add some type qualifications to avoid ambiguities when
5221 compiling with s-auxdec.ads and a non-private address type.
5222
5223 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
5224
5225 * Makefile.rtl: Fix error in previous check-in:
5226 Add s-addope.o to non tasking object list (rather than tasking object
5227 list).
5228
5229 2004-04-26 Javier Miranda <miranda@gnat.com>
5230
5231 * sem_aggr.adb: Fix typo in comments
5232 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
5233 Required to check the null-exclusion attribute.
5234
5235 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
5236 case of anonymous access types in record and array components. For a
5237 component definition the level is the same of the enclosing composite
5238 type.
5239
5240 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
5241 that are anonymous access types the level of accessibility depends on
5242 the enclosing type declaration. In order to have this information, set
5243 the scope of the anonymous access type to the enclosing record type
5244 declaration.
5245 (Array_Type_Declaration): In case of components that are anonymous
5246 access types the level of accessibility depends on the enclosing type
5247 declaration. In order to have this information, set the scope of the
5248 anonymous access type to the enclosing array type declaration.
5249
5250 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
5251 access type.
5252
5253 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
5254 renaming of anonymous access-to-constant types allowed if and only if
5255 the renamed object is access-to-constant.
5256
5257 * sem_util.adb (Type_Access_Level): In case of anonymous access types
5258 that are component_definition or discriminants of a nonlimited type,
5259 the level is the same as that of the enclosing component type.
5260
5261 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
5262
5263 * sem_elim.adb: Some minor code reorganization from code reading. Fix
5264 misprint in the function name (File_Name_Match).
5265
5266 2004-04-23 Laurent GUERBY <laurent@guerby.net>
5267
5268 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5269 install.
5270
5271 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5272
5273 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
5274
5275 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
5276
5277 * adaint.c (__gnat_try_lock): No longer requires that the parent
5278 directory be writable, the directory itself is enough.
5279 (gnat_is_absolute_path): Change profile, so that the call from
5280 GNAT.OS_Lib can be made more efficient.
5281
5282 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
5283 from GNAT.OS_Lib can be made more efficient.
5284
5285 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
5286 one copy of the file name. Found by code reading.
5287
5288 2004-04-23 Vincent Celier <celier@gnat.com>
5289
5290 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
5291 Correct documentation on gnatmake switches transmitted to the compiler
5292
5293 * ali.ads: Minor comment fix
5294
5295 2004-04-23 Javier Miranda <miranda@gnat.com>
5296
5297 * sem_ch6.adb: (Confirming Types): Code cleanup
5298
5299 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
5300 subprogram types: E_Anonymous_Access_Subprogram_Type and
5301 E_Anonymous_Access_Protected_Subprogram_Type.
5302
5303 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
5304
5305 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
5306 whether a pragma All_Calls_Remote applies to the subprogram on which
5307 'Access is taken.
5308 No functional change is introduced by this revision; the new parameter
5309 will be used to allow calls to local RCI subprograms to be optimized
5310 to not use the PCS in the case where no pragma All_Calls_Remote applies,
5311 as is already done in the PolyORB implementation of the DSA.
5312
5313 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
5314 whether a pragma All_Calls_Remote applies to the subprogram on which
5315 'Access is taken.
5316 No functional change is introduced by this revision; the new parameter
5317 will be used to allow calls to local RCI subprograms to be optimized
5318 to not use the PCS in the case where no pragma All_Calls_Remote applies,
5319 as is already done in the PolyORB implementation of the DSA.
5320
5321 2004-04-23 Robert Dewar <dewar@gnat.com>
5322
5323 * Makefile.rtl: Add entry for s-addope.o in run time library list
5324 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
5325 * s-addope.ads, s-addope.adb: New files.
5326
5327 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
5328 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
5329 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
5330 System.Address to be non-private and signed.
5331
5332 * sem_elim.adb: Minor reformatting (fairly extensive)
5333 Some minor code reorganization from code reading
5334 Add a couple of ??? comments
5335
5336 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5337
5338 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
5339 (tree_transform, case N_If_Statement): Remove non-determinism.
5340
5341 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
5342
5343 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
5344
5345 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
5346 Eliminate' section.
5347
5348 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
5349 no longer used as a parameter name for Eliminate pragma).
5350
5351 2004-04-22 Laurent GUERBY <laurent@guerby.net>
5352
5353 PR optimization/14984
5354 PR optimization/14985
5355 * trans.c (gigi): Fix non determinism leading to bootstrap
5356 comparison failures.
5357
5358 2004-04-21 Pascal Obry <obry@gnat.com>
5359
5360 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
5361 passed to spawnvp() to properly handle program pathname with spaces on
5362 Win32.
5363
5364 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
5365
5366 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
5367 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
5368 unlocked in case of exceptions.
5369
5370 2004-04-21 Joel Brobecker <brobecker@gnat.com>
5371
5372 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
5373 This function does not exist anymore.
5374
5375 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
5376
5377 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
5378
5379 * link.c: Move variables to the __gnat name space.
5380
5381 * Makefile.in: list link.o explicitly when needed.
5382
5383 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
5384
5385 2004-04-21 Javier Miranda <miranda@gnat.com>
5386
5387 * einfo.adb (Original_Access_Type): New subprogram
5388 (Set_Original_Access_Type): New subprogram
5389 (Write_Field21_Name): Write the name of the new field
5390
5391 * einfo.ads (Original_Access_Type): New field present in access to
5392 subprogram types.
5393 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
5394 E_Anonymous_Access_Protected_Subprogram_Type.
5395
5396 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
5397 subprogram types.
5398
5399 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
5400 to anonymous access to subprogram types.
5401
5402 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
5403 to subprogram types.
5404
5405 * sem_ch3.adb (Access_Definition): Complete decoration of entities
5406 corresponding to anonymous access to subprogram types.
5407 (Analyze_Component_Declaration): Add new actual to the call to
5408 subprogram replace_anonymous_access_to_protected_subprogram.
5409 (Array_Type_Declaration): Add new actual to the call to subprogram
5410 replace_anonymous_access_to_protected_subprogram.
5411 (Process_Discriminants): Add new actual to the call to subprogram
5412 replace_anonymous_access_to_protected_subprogram.
5413 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
5414
5415 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
5416 formal.
5417
5418 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
5419 access to subprogram types.
5420
5421 * sem_util.adb (Has_Declarations): Addition of package_specification
5422 nodes.
5423
5424 2004-04-21 Ed Schonberg <schonberg@gnat.com>
5425
5426 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
5427 inlined flags to renamed entity only if in current unit.
5428
5429 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
5430
5431 * s-parint.ads: Add DSA implementation marker.
5432
5433 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
5434 value of System.Partition_Interface.DSA_Implementation to determine
5435 what version of the distributed systems annex is available (no
5436 implementation, GLADE, or PolyORB).
5437
5438 2004-04-21 Joel Brobecker <brobecker@gnat.com>
5439
5440 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
5441
5442 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5443
5444 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
5445 with new type if alias sets differ.
5446 Fixes ACATS c41103b.
5447
5448 2004-04-21 Vincent Celier <celier@gnat.com>
5449
5450 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
5451 Add array Lang_Args for the language specific compiling argument
5452 switches.
5453
5454 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
5455
5456 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
5457
5458 * gnat_rm.texi: Update the descripton of the Eliminate pragma
5459 according to the recent changes in the format of the parameters of the
5460 pragma (replacing Homonym_Number with Source_Location).
5461
5462 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
5463
5464 * 5isystem.ads: Removed, unused.
5465
5466 * gnat_rm.texi: Redo 1.13 change.
5467
5468 2004-04-19 Robert Dewar <dewar@gnat.com>
5469
5470 * s-stoele.ads: Clean up definition of Storage_Offset (the new
5471 definition is cleaner, avoids the kludge of explicit Standard operator
5472 references, and also is consistent with a visible System.Address with
5473 no visible operations.
5474
5475 * s-geveop.adb: Add declarations to avoid assumption of visible
5476 operations on type System.Address (since these might not be available
5477 if Address is a non-private type for which the operations
5478 are made abstract).
5479
5480 * sem_eval.adb: Minor reformatting
5481
5482 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
5483 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
5484 reformatting (new function spec format).
5485
5486 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
5487 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
5488 s-caun64.adb: Add declarations to avoid assumption of visible
5489 operations on type System.Address (since these might not be available
5490 if Address is a non-private type for which the operations are made
5491 abstract).
5492
5493 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
5494
5495 * exp_intr.adb: Minor comment update
5496
5497 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
5498
5499 * 5omastop.adb: Add declarations to avoid assumption of visible
5500 operations on type System.Address (since these might not be available
5501 if Address is a non-private type for which the operations
5502 are made abstract).
5503
5504 2004-04-19 Vincent Celier <celier@gnat.com>
5505
5506 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
5507
5508 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
5509 defaulted to Ada.
5510
5511 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
5512 defaulted to Ada.
5513 Call Check with Process_Languages.
5514 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
5515 with Process_Languages.
5516 (Recursive_Check): New Boolean parameter Process_Languages. Call
5517 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
5518 Process_Languages.
5519
5520 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
5521
5522 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
5523 parameter Ada_Main, defaulted to True.
5524 Check for Ada specific characteristics only when Ada_Main is True.
5525
5526 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
5527
5528 * prj.adb: (Project_Empty): Add new Project_Data components.
5529
5530 * prj.ads: New types and tables for non Ada languages.
5531 (Project_Data): New components Languages, Impl_Suffixes,
5532 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
5533 Include_Path, Include_Data_Set.
5534
5535 * prj-env.ads, prj-env.adb: Minor reformatting
5536
5537 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
5538 Put subprograms in alphabetical order
5539
5540 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
5541 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
5542 Opt.Follow_Links.
5543
5544 * mlib-prj.adb: Back out modification in last version, as they are
5545 incorrect.
5546 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
5547
5548 * make.adb: (Mains): Moved to package Makeutl
5549 (Linker_Opts): Moved to package Makeutl
5550 (Is_External_Assignment): Moved to package Makeutl
5551 (Test_If_Relative_Path): Moved to package Makeutl
5552 (Gnatmake): Move sorting of linker options to function
5553 Makeutl.Linker_Options_Switches.
5554
5555 * makeutl.ads, makeutl.adb: New files.
5556
5557 * Makefile.in: Add makeutl.o to the object files for gnatmake
5558
5559 * makeusg.adb: Add line for new switch -eL.
5560
5561 * gnatls.adb (Image): New function.
5562 (Output_Unit): If in verbose mode, output the list of restrictions
5563 specified by pragmas Restrictions.
5564
5565 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
5566 Text_IO.
5567
5568 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
5569 needed, to put it in the range 1970 (included) - 2026 (excluded).
5570 (Time_Of): Do not shift Unix_Min_Year (1970).
5571 Shift the date by multiple of 56 years, if needed, to put it in the
5572 range 1970 (included) - 2026 (excluded).
5573
5574 * adaint.h, adaint.c (__gnat_set_executable): New function.
5575
5576 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5577
5578 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
5579 and pop GC context.
5580 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
5581 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
5582 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
5583 (tree_transform, case N_Code_Statement): Likewise.
5584 (gnat_expand_stmt, case LABEL_STMT): Don't look at
5585 LABEL_STMT_FIRST_IN_EH.
5586 (gnat_expand_stmt, case ASM_STMT): New case.
5587
5588 * utils2.c (build_unary_op): Properly set TREE_READONLY of
5589 UNCONSTRAINED_ARRAY_REF.
5590
5591 * utils.c (poplevel): Temporarily push/pop GC context around inline
5592 function expansion.
5593
5594 * decl.c (maybe_variable): Properly set TREE_READONLY of
5595 UNCONSTRAINED_ARRAY_REF.
5596 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
5597
5598 * ada-tree.def: (ASM_STMT): New.
5599
5600 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
5601 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
5602 ASM_STMT_INPUT): New.
5603 (ASM_STMT_CLOBBER): Likewise.
5604
5605 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
5606
5607 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
5608 general rcheck mechanism to raise Program_Error for E.4(18), instead
5609 of a custom raiser in System.Partition_Interface.
5610 Part of general cleanup work before PolyORB integration.
5611
5612 * snames.ads, snames.adb: Add new runtime library entities and names
5613 for PolyORB DSA.
5614
5615 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5616 exp_dist.
5617 (Build_Subprogram_Id): New subprogram provided by exp_dist
5618 Code reorganisation in preparation for PolyORB integration.
5619
5620 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5621 exp_dist.
5622 (Build_Subprogram_Id): New subprogram provided by exp_dist
5623
5624 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
5625 actual parameter types for call to dereference of an
5626 access-to-subprogram type.
5627
5628 * rtsfind.ads: Add new runtime library entities and names for PolyORB
5629 DSA.
5630
5631 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
5632 instead, which has the same behaviour here since we never pass it a
5633 NULL pointer.
5634
5635 * link.c (run_path_option, Solaris case): Use -Wl, as for other
5636 platforms.
5637
5638 * Makefile.in: adjust object file lists for gnatlink and gnatmake
5639 to account for new dependency upon Interfaces.C.Strings + link.o
5640 For x86 FreeBSD, use 86numaux.
5641
5642 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
5643 from Mlib.Tgt to Mlib.
5644
5645 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
5646 target-independent.
5647
5648 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
5649 target-specific versions of this subprogram, now implemented as a
5650 target-independent function in Mlib.
5651
5652 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
5653 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
5654 (Linker_Library_Path_Option): Remove target-specific versions of this
5655 subprogram, now implemented as a target-independent function in Mlib.
5656
5657 * atree.adb: (Allocate_Initialize_Node): New subprogram.
5658 Factors out node table slots allocation.
5659 (Fix_Parents): New subprogram.
5660 Encapsulate the pattern of fixing up parent pointers for syntactic
5661 children of a rewritten node.
5662 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
5663 (Rewrite): Use New_Copy when creating saved copy of original node.
5664 (Replace): Use Copy_Node to copy nodes.
5665
5666 2004-04-19 Javier Miranda <miranda@gnat.com>
5667
5668 * sprint.adb (Sprint_Node_Actual): Give support to the new
5669 Access_To_Subprogram node available in Access_Definition nodes. In
5670 addition, give support to the AI-231 node fields: null-exclusion,
5671 all-present, constant-present.
5672
5673 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
5674
5675 * sinfo.ads, sinfo.adb:
5676 New field Access_To_Subprogram_Definition in Access_Definition nodes
5677
5678 * sem_ch6.adb (Process_Formals): Move here the code that creates and
5679 decorates internal subtype declaration corresponding to the
5680 null-excluding formal. This code was previously in Set_Actual_Subtypes.
5681 In addition, carry out some code cleanup on this code. In case of
5682 access to protected subprogram call
5683 Replace_Anonymous_Access_To_Protected_Subprogram.
5684 (Set_Actual_Subtypes): Code cleanup.
5685
5686 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
5687 Find_Type in case of anonymous access renamings. Add warning in case of
5688 null-excluding attribute used in anonymous access renaming.
5689
5690 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
5691 subprogram
5692
5693 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
5694 subprogram.
5695 (Access_Definition): In case of anonymous access to subprograms call
5696 the corresponding semantic routine to decorate the node.
5697 (Access_Subprogram_Declaration): Addition of some comments indicating
5698 some code that probably should be added here. Detected by comparison
5699 with the access_definition subprogram.
5700 (Analyze_Component_Declaration): In case of access to protected
5701 subprogram call Replace_Anonymous_Access_To_Protected.
5702 (Array_Type_Declaration): In case of access to protected subprogram call
5703 Replace_Anonymous_Access_To_Protected_Subprogram.
5704 (Process_Discriminants): In case of access to protected subprogram call
5705 Replace_Anonymous_Access_To_Protected_Subprogram.
5706
5707 * par.adb (P_Access_Definition): New formal that indicates if the
5708 null-exclusion part was present.
5709 (P_Access_Type_Definition): New formal that indicates if the caller has
5710 already parsed the null-excluding part.
5711
5712 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
5713 (P_Identifier_Declarations): Code cleanup and give support to renamings
5714 of anonymous access to subprogram types.
5715 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
5716 (P_Array_Type_Definition): Give support to AI-254.
5717 (P_Component_Items): Give support to AI-254.
5718 (P_Access_Definition): New formal that indicates if the header was
5719 already parsed by the caller.
5720 (P_Access_Type_Definition): New formal that indicates if the caller has
5721 already parsed the null-excluding part.
5722
5723 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
5724 call to P_Access_Definition.
5725
5726 2004-04-19 Geert Bosch <bosch@gnat.com>
5727
5728 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
5729 the delicate semantics of floating-point to integer conversion.
5730 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
5731
5732 * eval_fat.adb (Machine_Mantissa): Moved to spec.
5733 (Machine_Radix): New function.
5734
5735 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
5736 conversion checks.
5737 (Machine_Radix): New function also for use in conversion checks.
5738
5739 2004-04-19 Ed Schonberg <schonberg@gnat.com>
5740
5741 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
5742
5743 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
5744 to decorate the access-to-protected subprogram and the equivalent type.
5745
5746 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
5747 to anonymous access to subprogram types.
5748
5749 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
5750 constant-folding, for legality checks in contexts that require an RM
5751 static expression.
5752
5753 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
5754 temporary but stack checking is not enabled, increment serial number
5755 to so that symbol generation is consistent with and without stack
5756 checking.
5757
5758 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
5759 independent on whether stack checking is enabled, caller must check
5760 the corresponding flag.
5761
5762 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
5763 range checks.
5764 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
5765 parent if it has discriminants.
5766 (Build_Derived_Private_Type): Constructed full view does
5767 not come from source.
5768 (Process_Discriminants): Default discriminants on a tagged type are
5769 legal if this is the internal completion of a private untagged
5770 derivation.
5771
5772 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
5773 no constraint checks, because it corresponds to an existing object.
5774
5775 * sem_prag.adb (Process_Convention): Pragma applies
5776 only to subprograms in the same declarative part, i.e. the same unit,
5777 not the same scope.
5778
5779 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
5780 ignore type mismatch on a numeric conversion if expression comes from
5781 expansion.
5782
5783 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
5784
5785 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
5786 Homonym_Number parameter, add processing for Source_Location parameter
5787 corresponding.
5788 (Check_Eliminated): Remove the check for homonym numbers, add the check
5789 for source location traces.
5790
5791 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
5792 with Arg_Source_Location corresponding to the changes in the format of
5793 the pragma.
5794
5795 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
5796 Eliminate pragma corresponding to the changes in the format of the
5797 pragma: Homonym_Number is replaced with Source_Location, two ways of
5798 distinguishing homonyms are mutially-exclusive.
5799
5800 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5801
5802 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
5803
5804 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
5805 No_Dollar_In_Label, no longer necessary, as it is always True.
5806 (Strip_Suffixes): Likewise.
5807
5808 2004-04-19 Gary Dismukes <dismukes@gnat.com>
5809
5810 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
5811 modulus for compatibility with size clause on targets with 16-bit
5812 Integer.
5813
5814 * layout.adb (Discrimify): In the case of private types, set Vtyp to
5815 full type to fix type mismatches on calls to size functions for
5816 discriminant-dependent array components.
5817
5818 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
5819
5820 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
5821 lib.
5822
5823 2004-04-19 Pascal Obry <obry@gnat.com>
5824
5825 * mdll-utl.adb (Locate): New version is idempotent.
5826
5827 2004-04-17 Laurent Guerby <laurent@guerby.net>
5828
5829 PR ada/14988 (partial)
5830 * impunit.adb: Fix typo.
5831
5832 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
5833
5834 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
5835 and install-rts-cert targets. Remove all gnatlib and gnattools
5836 targets and all other rts-* targets (moved to libada). Remove (now)
5837 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
5838 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
5839
5840 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5841
5842 * trans.c (tree_transform): Shortcut returning error_mark_node for
5843 statements in annotate_only_mode.
5844 (tree_transform, case N_Label, case N_Return_Statement,
5845 N_Goto_Statement): Make statement tree instead of generating code.
5846 (tree_transform, case N_Assignment_Statement): No longer check
5847 type_annotate_only.
5848 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
5849 RETURN_STMT): New.
5850 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
5851 New fcns.
5852 (gnat_to_gnu): Collect any RTL generated and deal with it.
5853 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
5854 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
5855 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
5856
5857 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
5858
5859 * ada-tree.def (EXPR_STMT): Fix typo in name.
5860 (BLOCK_STMT, IF_STMT): New nodes.
5861
5862 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
5863 LABEL_STMT_FIRST_IN_EH): New macros.
5864 (RETURN_STMT_EXPR): Likewise.
5865
5866 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
5867 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
5868
5869 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
5870
5871 * atree.ads: Correct documentation on extended nodes.
5872
5873 * link.c: Set run_path_option for FreeBSD.
5874
5875 2004-04-08 Vincent Celier <celier@gnat.com>
5876
5877 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
5878 one of the ALI file, do not link with DEC lib.
5879
5880 * par.adb Remove the last two characters ("%s" or "%b") when checking
5881 if a language defined unit may be recompiled.
5882
5883 2004-04-08 Ed Schonberg <schonberg@gnat.com>
5884
5885 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
5886 removal of abstract operation leaves no possible interpretation for
5887 expression.
5888
5889 * sem_eval.adb (Eval_Qualified_Expression): Use
5890 Set_Raises_Constraint_Error on node when needed, so that it does not
5891 get optimized away by subsequent optimizations.
5892
5893 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
5894 operands even when they are not wrapped in a type conversion.
5895
5896 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
5897
5898 * sem_prag.adb (Set_Exported): Warn about making static as result of
5899 export only when the export is coming from source. This may be not
5900 be true e.g. on VMS where we expand export pragmas for exception codes
5901 together with imported or exported exceptions, and we don't want the
5902 user to be warned about something he didn't write.
5903
5904 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
5905
5906 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
5907 duplication between normal entities and those declared as renamings.
5908 No functional change.
5909
5910 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
5911 inline functions returning an unconstrained result.
5912
5913 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
5914
5915 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
5916 conform to what other front-ends do.
5917
5918 2004-04-08 Doug Rupp <rupp@gnat.com>
5919
5920 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
5921 libraries.
5922
5923 2004-04-06 Pascal Obry <obry@gnat.com>
5924
5925 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
5926
5927 * osint.adb (Program_Name): Do not look past a directory separator.
5928
5929 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
5930
5931 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
5932
5933 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
5934 requirement for preserving a copy of the original assignment node.
5935
5936 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
5937
5938 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
5939
5940 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
5941 when supported.
5942
5943 2004-04-06 Ed Schonberg <schonberg@gnat.com>
5944
5945 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
5946 operator calls in functional notation, and apply
5947 Universal_Interpretation to operands, not to their type.
5948
5949 2004-04-06 Robert Dewar <dewar@gnat.com>
5950
5951 * 5wdirval.adb: Minor reformatting
5952
5953 2004-04-06 Ed Falis <falis@gnat.com>
5954
5955 * gnat_rm.texi: Improve a reference to the GCC manual
5956
5957 2004-04-05 Vincent Celier <celier@gnat.com>
5958
5959 * adaint.h, adaint.c: Add function __gnat_named_file_length
5960
5961 * impunit.adb: Add Ada.Directories to the list
5962
5963 * Makefile.in: Add VMS and Windows versions of
5964 Ada.Directories.Validity package body.
5965
5966 * Makefile.rtl: Add a-direct and a-dirval
5967
5968 * mlib-tgt.ads: Minor comment update.
5969
5970 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
5971 a-direct.ads, a-direct.adb: New files.
5972
5973 2004-04-05 Vincent Celier <celier@gnat.com>
5974
5975 PR ada/13620
5976 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
5977 just to the compiler.
5978
5979 2004-04-05 Robert Dewar <dewar@gnat.com>
5980
5981 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
5982 returned string is 1.
5983
5984 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
5985
5986 * eval_fat.ads: Minor reformatting
5987
5988 * g-curexc.ads: Document that lower bound of returned string values
5989 is always one.
5990
5991 * gnatlink.adb: Add ??? comment for previous change
5992 (need to document why this is VMS specific)
5993
5994 * s-stoele.ads: Minor reformatting
5995
5996 * tbuild.ads: Minor reformatting throughout (new function specs)
5997
5998 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
5999 after WITH.
6000
6001 * scng.adb: Minor reformatting
6002
6003 2004-04-05 Geert Bosch <bosch@gnat.com>
6004
6005 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
6006 (Leading_Part): Still perform truncation to machine number if the
6007 specified radix_digits is greater or equal to machine_mantissa.
6008
6009 2004-04-05 Javier Miranda <miranda@gnat.com>
6010
6011 * par-ch3.adb: Complete documentation of previous change
6012 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
6013 (aliased must appear before constant).
6014
6015 * par-ch4.adb: Complete documentation of previous change.
6016
6017 * par-ch6.adb: Complete documentation of previous change.
6018
6019 * sinfo.ads: Fix typo in commment.
6020
6021 2004-04-05 Ed Schonberg <schonberg@gnat.com>
6022
6023 * sem_ch3.adb (Inherit_Components): If derived type is private and has
6024 stored discriminants, use its discriminants to constrain parent type,
6025 as is done for non-private derived record types.
6026
6027 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
6028 Ada 2005 AI-310: an abstract non-dispatching operation is not a
6029 candidate interpretation in an overloaded call.
6030
6031 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
6032 expression is Null and target type is not an access type (e.g. a
6033 non-private address type).
6034
6035 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
6036
6037 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
6038 statement whose right-hand side is an inlined call, save a copy of the
6039 original assignment subtree to preserve enough consistency for
6040 Analyze_Assignment to proceed.
6041
6042 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
6043 complete assignment subtree which is now unnecessary, as the expansion
6044 of inlined call has been improved to preserve a consistent assignment
6045 tree. Note_Possible_Modification must be called only
6046 after checks have been applied, or else unnecessary checks will
6047 be generated.
6048
6049 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
6050 of explicit dereferences that do not Come_From_Source:
6051 - be selective on cases where we must go back to the dereferenced
6052 pointer (an assignment to an implicit dereference must not be
6053 recorded as modifying the pointer);
6054 - do not rely on Original_Node being present (Analyze_Assignment
6055 calls Note_Possible_Modification on a copied tree).
6056
6057 * sem_warn.adb (Check_References): When an unset reference to a pointer
6058 that is never assigned is encountered, prefer '<pointer> may be null'
6059 warning over '<pointer> is never assigned a value'.
6060
6061 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
6062
6063 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
6064 the ABI.
6065
6066 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
6067
6068 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
6069 libexc. We currently don't reference anything in this library and
6070 linking it in triggers linker warnings we don't want to see.
6071
6072 * init.c: Update comments.
6073
6074 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6075
6076 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
6077 * utils.c (create_field_decl): Likewise.
6078 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
6079
6080 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
6081
6082 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
6083 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
6084 Add info directory entry and category.
6085
6086 2004-04-02 Jan Hubicka <jh@suse.cz>
6087
6088 * utils.c: Include function.h
6089 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
6090
6091 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
6092
6093 PR ada/14150
6094 * Make-lang.in: Clean up generation of documentation
6095
6096 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
6097
6098 * xgnatug.adb: Removed, replaced by xgnatugn.adb
6099
6100 * xgnatugn.adb: Replaces xgnatug.adb
6101
6102 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
6103
6104 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
6105
6106 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6107 gnat_ug_wnt.texi: Removed.
6108
6109 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
6110
6111 * utils2.c: Update copyright notice.
6112
6113 2004-04-01 Robert Dewar <dewar@gnat.com>
6114
6115 * checks.adb: Minor reformatting throughout
6116 Note that prev checkin added RM reference to alignment warning
6117
6118 2004-04-01 Ed Schonberg <schonberg@gnat.com>
6119
6120 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
6121 non-static when building aggregate for bit-packed array.
6122
6123 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
6124 function call that is itself the actual in a procedure call, build
6125 temporary for it.
6126
6127 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
6128 a string literal, create a temporary for it, constant folding only
6129 handles scalars here.
6130
6131 2004-04-01 Vincent Celier <celier@gnat.com>
6132
6133 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
6134 Error_Msg_SP): New empty procedures to instantiate the Scanner.
6135 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
6136 tokens.
6137 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
6138 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
6139 and get the checksum.
6140
6141 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
6142 already in the Q.
6143 Increase the Marking_Label at the end of the Multiple_Main_Loop,
6144 instead of at the beginning.
6145
6146 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
6147 directly.
6148 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
6149 on VMS.
6150
6151 * osint.ads (Multi_Unit_Index_Character): New Character global variable
6152
6153 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
6154 not '~' directly.
6155
6156 * par.adb: Remove test on file name to detect language defined units.
6157 Add test on unit name, after parsing, to detect language defined units
6158 that are not compiled with -gnatg (except System.RPC and its children)
6159
6160 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
6161 following units without style checking.
6162
6163 * switch-c.adb: Change -gnatC to -gnateI
6164
6165 * usage.adb: Document new switch -gnateInnn
6166
6167 * scng.adb (Accumulate_Token_Checksum): New procedure
6168 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
6169 word or literal number.
6170 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
6171 numbers.
6172
6173 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
6174
6175 * a-tasatt.adb,
6176 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
6177 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
6178 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
6179 5vtpopde.adb: Add missing 'constant' keywords.
6180
6181 2004-04-01 Javier Miranda <miranda@gnat.com>
6182
6183 * par-ch4.adb: (P_Allocator): Code cleanup
6184
6185 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
6186 attribute.
6187
6188 * sinfo.ads: Complete documentation of previous change
6189
6190 2004-04-01 Pascal Obry <obry@gnat.com>
6191
6192 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
6193 only on VMS. This special handling was done because an old GNU/ld bug
6194 on Windows which has been fixed.
6195
6196 2004-04-01 GNAT Script <nobody@gnat.com>
6197
6198 * Make-lang.in: Makefile automatically updated
6199
6200 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6201
6202 * decl.c (gnat_to_gnu_entity, make_type_from_size):
6203 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
6204 * trans.c (tree_transform, convert_with_check): Likewise.
6205 * utils.c (gnat_signed_or_unsigned_type): Likewise.
6206 (build_vms_descriptor, unchecked_convert): Likewise.
6207 * utils2.c (nonbinary_modular_operation): Likewise.
6208
6209 2004-03-29 Javier Miranda <miranda@gnat.com>
6210
6211 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
6212 (Install_Null_Excluding_Check): Local subprogram that determines whether
6213 an access node requires a runtime access check and if so inserts the
6214 appropriate run-time check.
6215 (Apply_Access_Check): Call Install_Null_Excluding check if required
6216 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
6217
6218 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
6219
6220 * einfo.ads: Fix typo in comment
6221
6222 * exp_ch3.adb (Build_Assignment): Generate conversion to the
6223 null-excluding type to force the corresponding run-time check.
6224 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
6225 type to force the corresponding run-time check.
6226
6227 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
6228 the null-excluding type to force the corresponding run-time check.
6229
6230 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
6231 case of access types unless they have the null-excluding attribute.
6232
6233 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
6234 part.
6235
6236 * exp_util.ads: Fix typo in comment
6237
6238 * par.adb (P_Null_Exclusion): New subprogram
6239 (P_Subtype_Indication): New formal that indicates if the null-excluding
6240 part has been scanned-out and it was present
6241
6242 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
6243
6244 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
6245 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
6246 type to force the corresponding run-time check
6247 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
6248 components
6249 (Resolve_Array_Aggregate): Carry out some static checks
6250 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
6251
6252 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
6253 attribute must be set only if specified by means of the null-excluding
6254 part. In addition, we must also propagate the access-constant attribute
6255 if present.
6256 (Access_Subprogram_Declaration, Access_Type_Declaration,
6257 Analyze_Component_Declaration, Analyze_Object_Declaration,
6258 Array_Type_Declaration, Process_Discriminants,
6259 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
6260 and carry out some static checks.
6261 (Build_Derived_Access_Type): Set the null-excluding attribute
6262 (Derived_Type_Declaration, Process_Subtype): Carry out some static
6263 checks.
6264
6265 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
6266
6267 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
6268
6269 * sem_ch6.adb (Process_Formals): Carry out some static checks.
6270 (Set_Actual_Subtypes): Generate null-excluding subtype if the
6271 null-excluding part was present; it is not required to be done here in
6272 case of anonymous access types.
6273 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
6274 value.
6275
6276 * sem_res.adb (Resolve_Actuals): Carry out some static check
6277 (Resolve_Null): Allow null in anonymous access
6278
6279 * sinfo.adb: New subprogram Null_Exclusion_Present
6280 All_Present and Constant_Present available on access_definition nodes
6281
6282 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
6283 object_declaration, derived_type_definition, component_definition,
6284 discriminant_specification, access_to_object_definition,
6285 access_function_definition, allocator, access_procedure_definition,
6286 access_definition, parameter_specification, All_Present and
6287 Constant_Present flags available on access_definition nodes.
6288
6289 2004-03-29 Robert Dewar <dewar@gnat.com>
6290
6291 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
6292 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
6293 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
6294 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
6295 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
6296 sem_prag.adb: Updates to handle multiple units/file
6297
6298 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
6299
6300 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
6301 sem_util.adb: Minor reformatting
6302
6303 * sem_ch12.adb: Add comment for previous change
6304
6305 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
6306
6307 * osint.adb (Executable_Prefix): Set Exec_Name to the current
6308 executable name when not initialized. Otherwise, use its current value.
6309
6310 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
6311 initialize it to another executable name than the current one. This
6312 allows to configure paths for an executable name (gnatmake) different
6313 from the current one (gnatdist).
6314
6315 2004-03-29 Ed Schonberg <schonberg@gnat.com>
6316
6317 * exp_ch6.adb (Expand_Call): A call to a function declared in the
6318 current unit cannot be inlined if it appears in the body of a withed
6319 unit, to avoid order of elaboration problems in gigi.
6320
6321 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
6322 information for protected (wrapper) operation as well, to simplify gdb
6323 use.
6324
6325 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
6326 protected body, indicate that the entity for the generated spec comes
6327 from source, to ensure that references are properly generated for it.
6328 (Build_Body_To_Inline): Do not inline a function that returns a
6329 controlled type.
6330
6331 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
6332 apply convention to homonyms that are declared explicitly.
6333
6334 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
6335 that renames an equality operator and the operands are overloaded,
6336 resolve them with the declared formal types, before rewriting as an
6337 operator.
6338
6339 2004-03-29 GNAT Script <nobody@gnat.com>
6340
6341 * Make-lang.in: Makefile automatically updated
6342
6343 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
6344
6345 * memtrack.adb: Log realloc calls, which are treated as free followed
6346 by alloc.
6347
6348 2004-03-25 Vincent Celier <celier@gnat.com>
6349
6350 * prj-makr.adb (Process_Directories): Detect when a file contains
6351 several units. Do not include such files in the config pragmas or
6352 in the naming scheme.
6353
6354 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
6355 Resolve links only when not in Trusted_Mode.
6356 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
6357 Do not resolve links for the display names.
6358
6359 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
6360 resolve links when computing the display names.
6361
6362 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
6363
6364 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
6365 attribute reference does not denote a subtype, it can be any
6366 expression that has a classwide type, potentially after an implicit
6367 dereference. In particular, the prefix can be a view conversion for
6368 a classwide type (for which Is_Object_Reference holds), but it can
6369 also be a value conversion for an access-to-classwide type. In the
6370 latter case, there is an implicit dereference, and the original node
6371 for the prefix does not verify Is_Object_Reference.
6372
6373 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
6374 conversion of a discriminant-dependent component of a mutable object
6375 is one itself.
6376
6377 2004-03-25 Ed Schonberg <schonberg@gnat.com>
6378
6379 * freeze.adb (Freeze_Entity): When an inherited subprogram is
6380 inherited, has convention C, and has unconstrained array parameters,
6381 place the corresponding warning on the derived type declaration rather
6382 than the original subprogram.
6383
6384 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
6385 indication on renaming declaration, if formal has a box and actual
6386 is absent.
6387
6388 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
6389 determine whether to generate an implicit or explicit reference to
6390 the renamed entity.
6391
6392 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
6393 subprogram renaming comes from a defaulted formal subprogram in an
6394 instance.
6395
6396 2004-03-25 Gary Dismukes <dismukes@gnat.com>
6397
6398 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
6399 value expressions to ensure that calls within a component definition
6400 will be checked (since those are evaluated during the record type's
6401 elaboration).
6402
6403 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
6404
6405 * s-tpobop.adb: Code clean up:
6406 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
6407 code.
6408 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
6409
6410 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
6411
6412 * Makefile.in: Clean up in the ravenscar run time.
6413
6414 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6415
6416 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
6417 of No_Strict_Aliasing to build_pointer_type_for_mode.
6418 * utils.c (update_pointer_to): Walk pointer and ref chains.
6419
6420 2004-03-22 Cyrille Comar <comar@act-europe.fr>
6421
6422 * ali.ads: Fix Comment about Dynamic_Elab.
6423
6424 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
6425 Has_RACW, Is_Generic, etc.)
6426 (Output_Object, Gnatls): Take into account ALI files not attached to
6427 an object.
6428
6429 2004-03-22 Vincent Celier <celier@gnat.com>
6430
6431 * gprep.adb: Change all String_Access to Name_Id
6432 (Is_ASCII_Letter): new function
6433 (Double_File_Name_Buffer): New procedure
6434 (Preprocess_Infile_Name): New procedure
6435 (Process_Files): New procedure
6436 (Gnatprep): Check if output and input are existing directories.
6437 Call Process_Files to do the real job.
6438
6439 2004-03-22 Robert Dewar <dewar@gnat.com>
6440
6441 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
6442 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
6443
6444 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
6445
6446 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
6447 case when the source contains only comments.
6448
6449 2004-03-22 Ed Schonberg <schonberg@gnat.com>
6450
6451 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
6452 declaration for a child subprogram body that acts as a spec, indicate
6453 that the entity in the declaration needs debugging information.
6454
6455 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
6456 full view if the subtype is created for a constrained record component;
6457 gigi has enough information to construct the record, and there is no
6458 place in the tree for the declaration.
6459
6460 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
6461 serial number for the dummy body that is built for analysis, to avoid
6462 inconsistencies in the generation of internal names when compiling
6463 with -gnatN.
6464
6465 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
6466
6467 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
6468 object.
6469
6470 2004-03-22 GNAT Script <nobody@gnat.com>
6471
6472 * Make-lang.in: Makefile automatically updated
6473
6474 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6475
6476 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6477 * trans.c (tree_transform, emit_index_check): Likewise.
6478 * utils.c (build_template): Likewise.
6479 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
6480 (maybe_unconstrained_array, unchecked_convert): Likewise.
6481 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
6482 (build_unary_op): Likewise.
6483 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6484 (fill_vms_descriptor): Likewise.
6485 (build_call_alloc_dealloc): Likewise.
6486 ALIGN is unsigned.
6487 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
6488
6489 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
6490
6491 PR other/14630
6492 * gnat_ug.texi: Add info directory category and entry.
6493 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6494 gnat_ug_wnt.texi: Regenerate.
6495
6496 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
6497
6498 * ada-tree.h: Update copyright notice.
6499 Minor reformatting.
6500
6501 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
6502
6503 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
6504 as regular exception objects and not as mere integers representing the
6505 condition code. The latter approach required some dynamics to mask off
6506 severity bits, which did not fit well into the GCC table based model.
6507 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
6508 exception data objects. We don't it and it would conflict with the other
6509 external symbol we have to generate for such exceptions.
6510
6511 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
6512 the special code for VMS exceptions, since these are now represented
6513 as regular exceptions objects.
6514
6515 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6516
6517 * decl.c (debug_no_type_hash): Remove.
6518 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
6519 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
6520
6521 2004-03-19 Laurent Guerby <laurent@guerby.net>
6522
6523 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
6524 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
6525
6526 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6527
6528 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
6529 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
6530 (TYPE_RM_SIZE_INT): Directly use type.values.
6531 (TREE_LOOP_ID): Clean up check.
6532 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
6533 TYPE_VALUES, not TYPE_FIELDS.
6534 * trans.c (convert_with_check): Delay access of bounds of basetype
6535 until sure is numeric.
6536
6537 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
6538
6539 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
6540
6541 Code clean up:
6542 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
6543 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
6544 Specific.Set instead of direct call to e.g pthread_setspecific.
6545
6546 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
6547
6548 * adaint.c: Update comments.
6549
6550 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
6551 GNATLIB_SHARED for FreeBSD.
6552
6553 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
6554
6555 * init.c [VxWorks]: Do not fix the stack size for the environment task.
6556 When needed (stack checking) the stack size is retrieved
6557 from the VxWorks kernel.
6558
6559 * Makefile.in: Flag -nostdinc is required when building the run time
6560 for avoiding looking for files in the base compiler.
6561 Add the VxWorks specific version of the package body for
6562 System.Stack_checking.Operations (5zstchop.adb).
6563
6564 * Make-lang.in: Add the object file for
6565 System.Stack_Checking.Operations.
6566
6567 * Makefile.rtl: Add object file for the package
6568 System.Stack_Checking.Operations.
6569
6570 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
6571
6572 * s-stache.ads, s-stache.adb: Move the operations related to stack
6573 checking from this package to package System.Stack_Checking.Operations.
6574 This way, stack checking operations are only linked in the final
6575 executable when using the -fstack-check flag.
6576
6577 2004-03-18 Doug Rupp <rupp@gnat.com>
6578
6579 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
6580 Reorganize ifeq's.
6581
6582 * 5qsystem.ads, 5xcrtl.ads: New files.
6583
6584 2004-03-18 Vincent Celier <celier@gnat.com>
6585
6586 * prj.adb (Reset): Reset hash table Files_Htable
6587
6588 * prj-env.adb (Source_Paths, Object_Paths): New tables.
6589 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
6590 the procedures Add_To_Path_File.
6591 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
6592 making sure that each directory is present only once and, for object
6593 dirs, when a directory already present is added, the duplicate is
6594 removed and the directory is always put as the last in the table.
6595 Write the path files at the end of these accumulations.
6596
6597 * prj-nmsc.adb (Record_Source): Add source file name in hash table
6598 Files_Htable for all sources.
6599
6600 * prj-proc.adb (Process): Remove restrictions between not directly
6601 related extending projects.
6602
6603 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
6604
6605 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
6606 (Find_Sources): Minor speed optimization.
6607
6608 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
6609 parameter Trusted_Mode.
6610
6611 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
6612
6613 * scn.adb (Determine_License): Take into account a degenerated case
6614 when the source contains only comments.
6615
6616 2004-03-18 Ed Schonberg <schonberg@gnat.com>
6617
6618 * sem_warn.adb (Check_References): For a warning on a selected
6619 component that does not come from source, locate an uninitialized
6620 component of the record type to produce a more precise error message.
6621
6622 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
6623
6624 * 3zsoccon.ads: Fix multicast options.
6625
6626 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
6627 in the spec.
6628
6629 2004-03-15 Robert Dewar <dewar@gnat.com>
6630
6631 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
6632 pragma used for a private type.
6633
6634 * lib-xref.adb (Generate_Reference): Do not generate warning if
6635 reference is in a different unit from the pragma Unreferenced.
6636
6637 * 5vtpopde.adb: Minor reformatting
6638 Fix casing of To_Task_ID
6639
6640 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
6641 flag if we have an unchecked conversion to an access type in the same
6642 unit.
6643
6644 2004-03-15 Geert Bosch <bosch@gnat.com>
6645
6646 * a-ngcoty.adb (Modulus): In alternate formula for large real or
6647 imaginary parts, use Double precision throughout.
6648
6649 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
6650 we want to be able to compile run-time with -gnata for testing, but
6651 this may also be instantiated in user code that is compiled with -gnata.
6652
6653 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
6654
6655 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
6656 codes. Having a separate type for this is useful to enforce consistency
6657 throughout the various run-time units.
6658 (Exception_Data): Use Exception_Code for Import_Code.
6659
6660 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
6661 Natural and Integer in various places.
6662 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
6663 with the severity bits masked off.
6664 (Register_VMS_Exception): Handle the additional exception data pointer
6665 argument.
6666
6667 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
6668 component, now reflected by an exported accessor.
6669 (is_handled_by): New routine to compute whether the propagated
6670 occurrence matches some handler choice specification. Extracted out of
6671 get_action_description_for, and expanded to take care of the VMS
6672 specifities.
6673 (get_action_description_for): Use is_handled_by instead of an explicit
6674 complex condition to decide if the current choice at hand catches the
6675 propagated occurrence.
6676
6677 * raise.h (Exception_Code): New type for C.
6678
6679 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
6680 System.Standard_Library.Exception_Code, to allow references from the
6681 pragma import/export expander.
6682
6683 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
6684 New accessors to allow easy access to GNAT exception data
6685 characteristics.
6686 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
6687 redundant Handled_By_Others component, helper for the personality
6688 routine which will now be able to call the appropriate exception data
6689 accessor instead.
6690
6691 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
6692 component of Standard_Exception_Type to be the closest possible to
6693 Exception_Code in System.Standard_Library, that we cannot get at this
6694 point. Expand a ??? comment to notify that this type node should
6695 probably be rewritten later on.
6696
6697 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
6698 registration call to include a pointer to the exception object in the
6699 arguments.
6700
6701 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
6702 instead of int and explicit bitmasks.
6703
6704 2004-03-15 Vincent Celier <celier@gnat.com>
6705
6706 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
6707 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
6708
6709 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
6710 longer needed now that it is in the spec of
6711 System.Tasking.Task_Attributes.
6712
6713 * adaint.h, adaint.c: (__gnat_create_output_file): New function
6714
6715 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
6716
6717 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
6718
6719 * make.adb (Gnatmake): Do not check the executable suffix; it is being
6720 taken care of in Scan_Make_Arg.
6721 (Scan_Make_Arg): Add the executable suffix only if the argument
6722 following -o, in canonical case, does not end with the executable
6723 suffix. When in verbose mode and executable file name does not end
6724 with executable suffix, output the executable name, in canonical case.
6725
6726 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
6727 to avoid warnings when instantiating Ada.Task_Attributes.
6728 Minor reformating.
6729
6730 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
6731 in the correct order.
6732
6733 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
6734 redirect standard output and error to a file for the invocation of the
6735 compiler, then read the file.
6736
6737 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
6738 directory, instead of the Value.
6739 (Find_Source_Dirs): Remove useless code & comments.
6740
6741 2004-03-15 Ed Schonberg <schonberg@gnat.com>
6742
6743 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
6744 tagged type is inherited, and the parent operation is not frozen yet,
6745 force generation of a freeze node for the inherited operation, so the
6746 corresponding dispatch entry is properly initialized.
6747 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
6748 when looking for user-defined equality operation.
6749
6750 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
6751 boolean when locating primitive equality of tagged component.
6752
6753 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
6754 bit-aligned field and the right-hand side a string literal, introduce
6755 a temporary before expanding assignment into a loop.
6756
6757 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
6758 priority in full, to ensure that any expanded subepxressions of it are
6759 elaborated in the scope of the init_proc.
6760
6761 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
6762 after object declaration, skipping over code that may have been
6763 generated for validity checks.
6764
6765 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
6766 discriminants, ignore the known discriminants of its full view, if
6767 any, to check legality.
6768
6769 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
6770 component if type has unknown discriminants.
6771 (Analyze_Private_Extension_Declaration): Discriminant constraint is
6772 null if type has unknown discriminants.
6773
6774 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
6775 for end label when present.
6776
6777 * s-fileio.adb (Open): When called with a C_Stream, use given name for
6778 temporary file, rather than an empty string.
6779
6780 2004-03-15 Ed Falis <falis@gnat.com>
6781
6782 * s-thread.adb: Removed, no longer used.
6783
6784 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6785
6786 * decl.c (target.h): Now include.
6787 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
6788 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
6789 (validate_size): For POINTER_TYPE, get smallest size permitted on
6790 machine.
6791
6792 * fe.h: Sort Einfo decls and add Set_Mechanism.
6793
6794 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
6795 (ada/decl.o): Depends on target.h.
6796
6797 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
6798 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
6799
6800 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
6801
6802 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
6803
6804 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
6805 Insert_Dereference_Action when rewriting an implicit dereference into
6806 an explicit one, this will be taken care of during expansion of the
6807 explicit dereference.
6808 (Expand_N_Slice): Same. Always do the rewriting, even for the case
6809 of non-packed slices, since the dereference action generated by
6810 expansion of the explicit dereference is needed in any case.
6811 (Expand_N_Selected_Component): When rewriting an implicit dereference,
6812 analyze and resolve the rewritten explicit dereference so it is seen
6813 by the expander.
6814 (Insert_Dereference_Action): This procedure is now called only for the
6815 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
6816 dereferences that do not come from source (including explicit
6817 dereferences resulting from rewriting implicit ones), but do not
6818 recursively insert a check for the dereference nodes contained within
6819 the check.
6820 (Insert_Dereference_Action): Clarify and correct comment.
6821
6822 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
6823
6824 PR ada/14131
6825 Move language detection to the top level.
6826 * config-lang.in: Build by default.
6827
6828 2004-03-05 Robert Dewar <dewar@gnat.com>
6829
6830 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
6831
6832 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
6833 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
6834 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
6835 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
6836 unchecked conversion to spec to avoid warnings.
6837
6838 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
6839 to Task_ID
6840
6841 * 7stpopsp.adb: Correct casing in To_Task_ID call
6842
6843 * a-strsea.ads, a-strsea.adb: Minor reformatting
6844
6845 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
6846
6847 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
6848 Adjust Max_Msg_Length to be clearly large enough.
6849
6850 * fe.h: Define In_Same_Source_Unit
6851
6852 * osint.adb: Add pragma Warnings Off to suppress warnings
6853 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
6854 aliasing warnings.
6855
6856 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
6857
6858 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
6859
6860 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
6861
6862 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
6863
6864 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
6865
6866 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
6867 node. We now do generate them for gcc back end.
6868
6869 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
6870 warning.
6871
6872 * sinput-c.adb: Fix bad name in header.
6873 Add pragma Warnings Off to suppress aliasing warning.
6874
6875 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
6876
6877 * snames.h, snames.ads, snames.adb: Add entry for pragma
6878 No_Strict_Aliasing.
6879
6880 2004-03-05 Vincent Celier <celier@gnat.com>
6881
6882 * prj-com.ads: Add hash table Files_Htable to check when a file name
6883 is already a source of another project.
6884
6885 * prj-nmsc.adb (Record_Source): Before recording a new source, check
6886 if its file name is not already a source of another project. Report an
6887 error if it is.
6888
6889 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
6890 source file name, call gnatpp with all the sources of the main project.
6891
6892 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
6893 of file names.
6894
6895 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
6896 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
6897 /RUNTIME_SYSTEM=, converted to --RTS=
6898 /NOTABS, converted to -notabs
6899
6900 2004-03-05 Pascal Obry <obry@gnat.com>
6901
6902 * make.adb: Minor reformatting.
6903
6904 2004-03-05 Ed Schonberg <schonberg@gnat.com>
6905
6906 Part of implemention of AI-262.
6907 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
6908
6909 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
6910 procedure.
6911
6912 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
6913 when component type is a partially constrained class-wide subtype.
6914 (Constrain_Discriminated_Type): If parent type has unknown
6915 discriminants, a constraint is illegal, even if full view has
6916 discriminants.
6917 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
6918 with unknown discriminants whose full view is a discriminated record.
6919
6920 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
6921 flag, to handle properly derivations of tagged types with unknown
6922 discriminants.
6923 (Analyze_Package_Spec, Analyze_Package_Body): Install
6924 Private_With_Clauses before analyzing private part or body.
6925
6926 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
6927 Has_Discriminants can be true for a given type (documentation).
6928
6929 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
6930
6931 * s-restri.ads: Fix license (GPL->GMGPL).
6932
6933 * s-tassta.adb: Minor reformatting.
6934
6935 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
6936 by calls to Exit_One_ATC_Level, since additional clean up is performed
6937 by this function.
6938
6939 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
6940 by calls to Exit_One_ATC_Level, since additional clean up is performed
6941 by this function.
6942
6943 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6944
6945 * trans.c: Reflect GCC changes to fix bootstrap problem.
6946 Add warning for suspicious aliasing unchecked conversion.
6947
6948 2004-03-05 GNAT Script <nobody@gnat.com>
6949
6950 * Make-lang.in: Makefile automatically updated
6951
6952 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
6953
6954 * ali.adb (Read_Instantiation_Instance): Do not modify the
6955 current_file_num when reading information about instantiations, since
6956 this corrupts files in later references.
6957
6958 2004-03-02 Vincent Celier <celier@gnat.com>
6959
6960 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
6961 before checking if it is read-only.
6962
6963 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
6964 of SRC_DIRS and eliminate duplicates.
6965
6966 * gprcmd.adb: Replace command "path" with command "path_sep" to return
6967 the path separator.
6968 (Usage): Document path_sep
6969
6970 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
6971 C++ compiler. No need for a script.
6972 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
6973 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
6974 subst.
6975
6976 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
6977 where there are Ada sources.
6978 (Set_Ada_Paths): Only add to the include path the source dirs of project
6979 with Ada sources.
6980 (Add_To_Path): Add the Display_Values of the directories, not their
6981 Values.
6982
6983 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
6984 data.
6985
6986 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
6987 is not No_Name.
6988 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
6989 Value is canonicalized.
6990 (Language_Independent_Check): Do not copy Value to Display_Value when
6991 canonicalizing Value.
6992
6993 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
6994 path to find limited with cycles.
6995 (Parse_Single_Project): Use canonical cased path to find the end of a
6996 with cycle.
6997
6998 2004-03-02 Ed Schonberg <schonberg@gnat.com>
6999
7000 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
7001 and not a child unit.
7002
7003 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
7004 appear in a with_clause.
7005
7006 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
7007 only happen in type_annotate mode, do not try to elaborate it.
7008
7009 * exp_util.adb (Force_Evaluation): If expression is a selected
7010 component on the left of an assignment, use a renaming rather than a
7011 temporary to remove side effects.
7012
7013 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
7014 inlined instance body, which is analyzed before the end of the
7015 enclosing scope.
7016
7017 2004-03-02 Robert Dewar <dewar@gnat.com>
7018
7019 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
7020 sem_ch4.adb: Use new feature for substitution of keywords in VMS
7021
7022 * errout.ads, errout.adb: Implement new circuit for substitution of
7023 keywords in VMS.
7024
7025 * sem_case.adb (Analyze_Choices): Place message properly when case is
7026 a subtype reference rather than an explicit range.
7027
7028 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
7029
7030 2004-03-02 Doug Rupp <rupp@gnat.com>
7031
7032 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
7033
7034 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
7035
7036 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
7037
7038 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7039
7040 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
7041 BLKmode bitfield.
7042
7043 2004-02-25 Robert Dewar <dewar@gnat.com>
7044
7045 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
7046 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
7047 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
7048 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
7049 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
7050 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
7051 the defining instance of the type to avoid aliasing problems.
7052 Fix copyright header. Fix bad comments in package header.
7053
7054 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
7055
7056 2004-02-25 Ed Schonberg <schonberg@gnat.com>
7057
7058 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
7059 rewritten as references when aliased through an address clause.
7060
7061 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
7062 whether call can be interpreted as an indirect call to the result of a
7063 parameterless function call returning an access subprogram.
7064
7065 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
7066
7067 Code clean up:
7068 * exp_ch7.adb (Make_Clean): Remove generation of calls to
7069 Unlock[_Entries], since this is now done by Service_Entries directly.
7070
7071 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
7072
7073 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
7074 Requeue_Call for better code readability. Change spec and update calls:
7075 PO_Service_Entries now unlock the PO on exit.
7076 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
7077 PO_Service_Entries.
7078
7079 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
7080
7081 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
7082
7083 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
7084
7085 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
7086 protected subprogram call and analyzing the result of such expanding
7087 in case when the called protected subprogram is eliminated.
7088
7089 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
7090 names.
7091
7092 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
7093
7094 * Makefile.in: Clean ups.
7095
7096 2004-02-23 Ed Schonberg <schonberg@gnat.com>
7097
7098 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
7099 protected operations if original subprogram is flagged as eliminated.
7100 (Expand_N_Subprogram_Body): For a protected operation, create
7101 discriminals for next operation before checking whether the operation
7102 is eliminated.
7103
7104 * exp_ch9.adb (Expand_N_Protected_Body,
7105 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
7106 for internal protected operations if the original subprogram is
7107 eliminated.
7108
7109 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
7110 declared in a single protected object.
7111
7112 2004-02-23 Vincent Celier <celier@gnat.com>
7113
7114 * prj-attr.adb: Make attribute Builder'Executable an associative array,
7115 case insensitive if file names are case insensitive, instead of a
7116 standard associative array.
7117
7118 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
7119 them as case insensitive on platforms where the file names are case
7120 sensitive.
7121
7122 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
7123 project file has already been parsed that canonical path are compared.
7124
7125 2004-02-23 Robert Dewar <dewar@gnat.com>
7126
7127 * sinput-c.ads: Correct bad unit title in header
7128
7129 * freeze.adb: Minor reformatting
7130
7131 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7132
7133 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
7134 nonaddressable COMPONENT_REF that is removing padding that we are
7135 taking the address of, take the address of the padded record instead
7136 if item is variable size.
7137
7138 2004-02-20 Robert Dewar <dewar@gnat.com>
7139
7140 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
7141
7142 2004-02-20 Ed Schonberg <schonberg@gnat.com>
7143
7144 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
7145 itype references for the constrained designated type of a component
7146 whose base type is already frozen.
7147
7148 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
7149
7150 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
7151 avoid GCC warnings.
7152
7153 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
7154
7155 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
7156 identifier for a phantom package that rewrites the formal package
7157 declaration with a box. The Add semantic decorations for the defining
7158 identifier from the original node (that represents the formal package).
7159
7160 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
7161
7162 * Make-lang.in (ada/stamp-sdefault): Use the top level
7163 move-if-change.
7164
7165 2004-02-19 Richard Henderson <rth@redhat.com>
7166
7167 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
7168
7169 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
7170
7171 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
7172 Scan_ALI can be used for multiple ALI files without reinitializing
7173 between calls.
7174
7175 2004-02-18 Robert Dewar <dewar@gnat.com>
7176
7177 * debug.adb: Minor reformatting.
7178
7179 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7180
7181 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
7182 to zero if there is an address clause.
7183
7184 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
7185
7186 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
7187
7188 2004-02-18 Gary Dismukes <dismukes@gnat.com>
7189
7190 * layout.adb (Layout_Component_List): Revise generation of call to
7191 discriminant-checking function to pass selections of all of the type's
7192 discriminants rather than just the variant-controlling discriminant.
7193
7194 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
7195
7196 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
7197 fail in the current setup and triggers spurious system error messages.
7198 Pretend it occurred and failed instead.
7199
7200 2004-02-18 Vincent Celier <celier@gnat.com>
7201
7202 * bld.adb: Mark FLDFLAGS as saved
7203 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
7204 it is not the root project. Put each directory to be
7205 extended between double quotes to prevent it to be expanded on Windows.
7206 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
7207 the project file. Set them back to their initial values if they have not
7208 been set in the project file.
7209
7210 * gprcmd.adb: (Gprdebug, Debug): New global variables
7211 (Display_Command): New procedure
7212 (Usage): Document new command "linkopts"
7213 Call Display_Command when env var GPRDEBUG has the value "TRUE"
7214 Implement new command "linkopts"
7215 Remove quotes that may be around arguments for "extend"
7216 Always call Normalize_Pathname with arguments formatted for the platform
7217
7218 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
7219 Change @echo to @$(display) in target clean to be able to clean silently
7220
7221 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
7222
7223 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
7224 canonical case.
7225
7226 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
7227 = Extending_All when current project is an extending all project.
7228
7229 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
7230 set to True only for LINK command, after Unix switch -o.
7231 (Process_Arguments): Set Output_File_Expected to True for LINK command
7232 after Unix switch -o. When Output_File_Expected is True, never add an
7233 extension to a file name.
7234
7235 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
7236 option file name, only to the --for-linker= switch.
7237 (Option_File_Name): If option file name do not end with ".opt", append
7238 "/OPTIONS".
7239
7240 2004-02-18 GNAT Script <nobody@gnat.com>
7241
7242 * Make-lang.in: Makefile automatically updated
7243
7244 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
7245
7246 * Make-lang.in (stamp-sdefault): Do not depend on
7247 move-if-change.
7248
7249 2004-02-12 Zack Weinberg <zack@codesourcery.com>
7250
7251 * config-lang.in: Disable Ada by default until probe logic for
7252 a bootstrap Ada compiler can be moved to the top level configure
7253 script.
7254
7255 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
7256
7257 * decl.c (components_to_record): Don't claim that the internal fields
7258 we make to hold the variant parts are semantically addressable, because
7259 they are not.
7260
7261 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
7262 adjust the comment describing the modular type form when we can use it.
7263 (Install_PAT): Account for the Esiz renaming.
7264
7265 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
7266 sc_onstack context indication before raising the exception to which
7267 the signal is mapped. Allows better handling of later signals possibly
7268 triggered by the resumed user code if the exception is handled.
7269
7270 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
7271
7272 * 5zinit.adb: Removed, no longer used.
7273
7274 2004-02-12 Robert Dewar <dewar@gnat.com>
7275
7276 * ali.adb: Remove separating space between parameters on R line. Makes
7277 format consistent with format used by the binder for Set_Globals call.
7278
7279 * atree.ads, atree.adb: Minor reformatting (new function header format)
7280
7281 * bindgen.adb: Add Run-Time Globals documentation section containing
7282 detailed documentation of the globals passed from the binder file to
7283 the run time.
7284
7285 * gnatls.adb: Minor reformatting
7286
7287 * init.c (__gnat_set_globals): Add note pointing to documentation in
7288 bindgen.
7289
7290 * lib-writ.ads, lib-writ.adb: Remove separating space between
7291 parameters on R line.
7292 Makes format consistent with format used by the binder for Set_Globals
7293 call.
7294
7295 * osint.ads: Add 2004 to copyright notice
7296 Minor reformatting
7297
7298 * snames.ads: Correct capitalization of FIFO_Within_Priorities
7299 Noticed during code reading, documentation issue only
7300
7301 * usage.adb: Remove junk line for obsolete C switch
7302 Noticed during code reading
7303
7304 2004-02-12 Vincent Celier <celier@gnat.com>
7305
7306 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
7307 extend for each directory, so that multiple /** directories are
7308 extended individually.
7309 (Recursive_Process): Set the default for LANGUAGES to ada
7310
7311 * gprcmd.adb: Define new command "ignore", to do nothing.
7312 Implement new comment "path".
7313
7314 * Makefile.generic: Suppress output when SILENT is set
7315 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
7316 used, so that the correct compiler is invoked.
7317 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
7318 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
7319
7320 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
7321
7322 * Makefile.in: Clean ups and remove obsolete targets.
7323
7324 2004-02-12 Ed Schonberg <schonberg@gnat.com>
7325
7326 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
7327 predicate declared in exp_util.
7328
7329 * exp_util.adb: Add comments.
7330
7331 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
7332 visibility before compiling context of the subunit.
7333
7334 * sem_res.adb (Check_Parameterless_Call): If the context expects a
7335 value but the name is a procedure, do not attempt to analyze as a call,
7336 in order to obtain more telling diagnostics.
7337
7338 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
7339 'Access on parameterless function calls.
7340 (Normalize_Actuals): For a parameterless function call with missing
7341 actuals, defer diagnostic until resolution of enclosing call.
7342
7343 * sem_util.adb (Wrong_Type): If the context type is an access to
7344 subprogram and the expression is a procedure name, suggest a missing
7345 'attribute.
7346
7347 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
7348 Nathanael Nerode <neroden@gcc.gnu.org>
7349
7350 PR ada/6637, PR ada/5911
7351 Merge with libada-branch:
7352 * config-lang.in: Build libada only when ada is built.
7353
7354 2004-02-09 Ed Schonberg <schonberg@gnat.com>
7355
7356 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
7357 for a tagged type, verify that both formals have the same type.
7358
7359 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
7360 temporary when the formal is an in-parameter and the actual a possibly
7361 unaligned slice.
7362
7363 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
7364 when expansion is disabled, to ensure proper name capture with
7365 overloaded literals. Condition can be of any boolean type, resolve
7366 accordingly.
7367
7368 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
7369 renaming is for a formal subprogram with a default operator name, and
7370 there is a usable operator that is visible at the point of
7371 instantiation.
7372
7373 2004-02-09 Robert Dewar <dewar@gnat.com>
7374
7375 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
7376 rewrite to ignore errors in ali files, intended to allow tools downward
7377 compatibility with new versions of ali files.
7378
7379 * ali.ads: Add new parameter Ignore_Errors
7380
7381 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
7382 duplicating the error message giving the file with restrictions.
7383
7384 * debug.adb: Add debug flag I for gnatbind
7385
7386 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
7387 operators for the case where the operator is a defining operator.
7388
7389 * exp_ch3.adb: Minor reformatting (new function spec format).
7390
7391 * exp_ch4.adb: Add comment for previous change, and make minor
7392 adjustment to loop to always check for improper loop termination.
7393 Minor reformatting throughout (new function spec format).
7394
7395 * gnatbind.adb: Implement -di debug flag for gnatbind
7396
7397 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
7398
7399 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
7400
7401 * lib-load.adb: Fix bad assertion.
7402 Found by testing and code reading.
7403 Minor reformatting.
7404
7405 * lib-load.ads: Minor reformatting.
7406
7407 * lib-writ.adb: There is only one R line now.
7408
7409 * lib-writ.ads: Add documentation on making downward compatible changes
7410 to ali files so old tools work with new ali files.
7411 There is only one R line now.
7412 Add documentation on format incompatibilities (with special GPS note)
7413
7414 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
7415
7416 * par-load.adb: Minor reformatting
7417
7418 * sem_ch8.adb: Fix to error message from last update
7419 Minor reformatting and restructuring of code from last update
7420
7421 * par-prag.adb, snames.adb, snames.ads, snames.h,
7422 sem_prag.adb: Implement pragma Profile.
7423
7424 * stylesw.adb: Implement -gnatyN switch to turn off all style check
7425 options.
7426
7427 * usage.adb: Add line for -gnatyN switch
7428
7429 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
7430
7431 2004-02-09 Albert Lee <lee@gnat.com>
7432
7433 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
7434
7435 2004-02-09 Ed Schonberg <schonberg@gnat.com>
7436
7437 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
7438 slices.
7439
7440 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
7441 is nested in an instance that is not frozen yet, to avoid
7442 order-of-elaboration problems in gigi.
7443
7444 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
7445 body the attribute is legal.
7446
7447 2004-02-09 Robert Dewar <dewar@gnat.com>
7448
7449 * s-rident.ads: Minor comment correction
7450
7451 * targparm.adb: Remove dependence on uintp completely. There was
7452 always a bug in Make in that it called Targparm before initializing
7453 the Uint package. The old code appeared to get away with this, but
7454 the new code did not! This caused an assertion error in gnatmake.
7455
7456 * targparm.ads: Fix bad comment, restriction pragmas with parameters
7457 are indeed fully supported.
7458
7459 2004-02-06 Alan Modra <amodra@bigpond.net.au>
7460
7461 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
7462
7463 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7464
7465 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
7466 with targetm.calls.promote_prototypes.
7467
7468 2004-02-04 Robert Dewar <dewar@gnat.com>
7469
7470 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
7471 ali.ads, gprcmd.adb: Minor reformatting
7472
7473 * bindgen.adb: Output restrictions string for new style restrictions
7474 handling
7475
7476 * impunit.adb: Add s-rident.ads (System.Rident) and
7477 s-restri (System.Restrictions)
7478
7479 * lib-writ.adb: Fix bug in writing restrictions string (last few
7480 entries wrong)
7481
7482 * s-restri.ads, s-restri.adb: Change name Restrictions to
7483 Run_Time_Restrictions to avoid conflict with package name.
7484 Add circuit to read and acquire run time restrictions.
7485
7486 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
7487
7488 * restrict.ads, restrict.adb: Use the new restriction
7489 No_Task_Attributes_Package instead of the old No_Task_Attributes.
7490
7491 * sem_prag.adb: No_Task_Attributes is a synonym of
7492 No_Task_Attributes_Package.
7493
7494 * snames.ads, snames.adb: New entry for proper handling of
7495 No_Task_Attributes.
7496
7497 * s-rident.ads: Adding restriction No_Task_Attributes_Package
7498 (AI-00249) that supersedes the GNAT specific restriction
7499 No_Task_Attributes.
7500
7501 2004-02-04 Ed Schonberg <schonberg@gnat.com>
7502
7503 * sem_prag.adb:
7504 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
7505 body, an identifier may be wrapped in an unchecked conversion.
7506
7507 2004-02-04 Vincent Celier <celier@gnat.com>
7508
7509 * lib-writ.ads: Comment update for the W lines
7510
7511 * bld.adb: (Expression): An empty string list is static
7512
7513 * fname-uf.adb: Minor comment update
7514
7515 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
7516
7517 * gnatbind.adb: Initialize Cumulative_Restrictions with the
7518 restrictions on the target.
7519
7520 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7521
7522 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
7523 gen_rtx.
7524
7525 2004-02-02 Arnaud Charlet <charlet@gnat.com>
7526
7527 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
7528
7529 2004-02-02 Vincent Celier <celier@gnat.com>
7530
7531 * gprcmd.adb (Check_Args): If condition is false, print the invoked
7532 comment before the usage.
7533 Gprcmd: Fail when command is not recognized.
7534 (Usage): Document command "prefix"
7535
7536 * g-md5.adb (Digest): Process last block.
7537 (Update): Do not process last block. Store remaining characters and
7538 length in Context.
7539
7540 * g-md5.ads (Update): Document that several call to update are
7541 equivalent to one call with the concatenated string.
7542 (Context): Add fields to allow new Update behaviour.
7543
7544 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
7545 defaulted to False.
7546 When May_Fail is True and no existing file can be found, return No_File.
7547
7548 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
7549 functions.
7550
7551 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
7552 spec file name instead on the W line.
7553
7554 2004-02-02 Robert Dewar <dewar@gnat.com>
7555
7556 * ali.adb: Read and acquire info from new format restrictions lines
7557
7558 * bcheck.adb: Add circuits for checking restrictions with parameters
7559
7560 * bindgen.adb: Output dummy restrictions data
7561 To be changed later
7562
7563 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
7564 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
7565 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
7566 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
7567 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
7568
7569 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
7570 the warning message on access to possibly uninitialized variable S)
7571 Minor changes for new restrictions handling.
7572
7573 * gnatbind.adb: Minor reformatting
7574 Minor changes for new restrictions handling
7575 Move circuit for -r processing here from bcheck (cleaner)
7576
7577 * gnatcmd.adb, gnatlink.adb: Minor reformatting
7578
7579 * lib-writ.adb: Output new format restrictions lines
7580
7581 * lib-writ.ads: Document new R format lines for new restrictions
7582 handling.
7583
7584 * s-restri.ads/adb: New files
7585
7586 * Makefile.rtl: Add entry for s-restri.ads/adb
7587
7588 * par-ch3.adb: Fix bad error messages starting with upper case letter
7589 Minor reformatting
7590
7591 * restrict.adb: Major rewrite throughout for new restrictions handling
7592 Major point is to handle restrictions with parameters
7593
7594 * restrict.ads: Major changes in interface to handle restrictions with
7595 parameters. Also generally simplifies setting of restrictions.
7596
7597 * snames.ads/adb: New entry for proper handling of No_Requeue
7598
7599 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
7600 restriction counting.
7601 Other minor changes for new restrictions handling
7602
7603 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
7604 Restriction_Warnings now allows full parameter notation
7605 Major rewrite of Restrictions for new restrictions handling
7606
7607 2004-02-02 Javier Miranda <miranda@gnat.com>
7608
7609 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
7610 syntax rule for object renaming declarations.
7611 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
7612 component definitions.
7613
7614 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
7615 components.
7616 (Array_Type_Declaration): Give support to access components. In addition
7617 it was also modified to reflect the name of the object in anonymous
7618 array types. The old code did not take into account that it is possible
7619 to have an unconstrained anonymous array with an initial value.
7620 (Check_Or_Process_Discriminants): Allow access discriminant in
7621 non-limited types.
7622 (Process_Discriminants): Allow access discriminant in non-limited types
7623 Initialize the new Access_Definition field in N_Object_Renaming_Decl
7624 node. Change Ada0Y to Ada 0Y in comments
7625
7626 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
7627 equality operators.
7628 Change Ada0Y to Ada 0Y in comments
7629
7630 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
7631 renamings Change Ada0Y to Ada 0Y in comments
7632
7633 * sem_type.adb (Find_Unique_Type): Give support to the equality
7634 operators for universal access types
7635 Change Ada0Y to Ada 0Y in comments
7636
7637 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
7638
7639 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
7640 field.
7641 (N_Object_Renaming_Declaration): Addition of Access_Definition field
7642 Change Ada0Y to Ada 0Y in comments
7643
7644 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
7645 component definition and object renaming nodes
7646 Change Ada0Y to Ada 0Y in comments
7647
7648 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
7649
7650 * restrict.adb: Use the new restriction identifier
7651 No_Requeue_Statements instead of the old No_Requeue for defining the
7652 restricted profile.
7653
7654 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
7655 No_Requeue_Statements.
7656
7657 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
7658 that supersedes the GNAT specific restriction No_Requeue. The later is
7659 kept for backward compatibility.
7660
7661 2004-02-02 Ed Schonberg <schonberg@gnat.com>
7662
7663 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
7664 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
7665 pragma and fix incorrect ones.
7666
7667 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
7668 warning if the pragma is redundant.
7669
7670 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
7671
7672 * 5staprop.adb: Add missing 'constant' keywords.
7673
7674 * Makefile.in: use consistent value for SYMLIB on
7675 platforms where libaddr2line is supported.
7676
7677 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7678
7679 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
7680 annotating types.
7681
7682 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
7683
7684 * init.c (__gnat_install_handler): Setup an alternate stack for signal
7685 handlers in the environment thread. This allows proper propagation of
7686 an exception on stack overflows in this thread even when the builtin
7687 ABI stack-checking scheme is used without support for a stack reserve
7688 region.
7689
7690 * utils.c (create_field_decl): Augment the head comment about bitfield
7691 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
7692 here, because the former is not accurate enough at this point.
7693 Let finish_record_type decide instead.
7694 Don't make a bitfield if the field is to be addressable.
7695 Always set a size for the field if the record is packed, to ensure the
7696 checks for bitfield creation are triggered.
7697 (finish_record_type): During last pass over the fields, clear
7698 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
7699 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
7700 from DECL_BIT_FIELD.
7701
7702 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
7703
7704 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
7705 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
7706 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
7707
7708 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7709
7710 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
7711
7712 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
7713 (ZCX_By_Default): Likewise.
7714 (Front_End_ZCX_Support): Likewise.
7715
7716 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
7717 (Initialize_Lock): Mark Level unreferenced.
7718 (Sleep): Mark Reason unreferenced.
7719 (Timed_Sleep): Likewise.
7720 (Wakeup): Likewise.
7721 (Exit_Task): Use Result.
7722 (Check_No_Locks): Mark Self_ID unreferenced.
7723
7724 * 5gtasinf.adb (New_Sproc): Make Attr constant.
7725 (Bound_Thread_Attributes): Make Sproc constant.
7726 (New_Bound_Thread_Attributes): Likewise.
7727
7728 2004-01-26 Ed Schonberg <schonberg@gnat.com>
7729
7730 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
7731 one-dimensional array an slice assignments, when component type is
7732 controlled.
7733
7734 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
7735 component type is controlled, and control_actions are in effect, use
7736 TSS procedure rather than generating inline code.
7737
7738 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
7739 arrays with controlled components.
7740
7741 2004-01-26 Vincent Celier <celier@gnat.com>
7742
7743 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
7744 command line for the non VMS case.
7745
7746 * gnatlink.adb (Process_Binder_File): When building object file, if
7747 GNU linker is used, put all object paths between quotes, to prevent ld
7748 error when there are unusual characters (such as '!') in the paths.
7749
7750 * Makefile.generic: When there are sources in Ada and the main is in
7751 C/C++, invoke gnatmake with -B, instead of -z.
7752
7753 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
7754 from VMS_Conversion.
7755 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
7756 specification of argument file on the command line.
7757
7758 2004-01-26 Bernard Banner <banner@gnat.com>
7759
7760 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
7761
7762 2004-01-26 Ed Schonberg <schonberg@gnat.com>
7763
7764 * snames.adb: Update copyright notice.
7765 Add info on slice assignment for controlled arrays.
7766
7767 2004-01-23 Robert Dewar <dewar@gnat.com>
7768
7769 * exp_aggr.adb: Minor reformatting
7770
7771 * exp_ch9.adb: Minor code clean up
7772 Minor reformatting
7773 Fix bad character in comment
7774
7775 PR ada/13471
7776 * targparm.adb (Get_Target_Parameters): Give clean abort error on
7777 unexpected end of file, along with more detailed message.
7778
7779 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7780
7781 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
7782 PAT.
7783
7784 * decl.c (copy_alias_set): New function.
7785 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
7786
7787 2004-01-23 Doug Rupp <rupp@gnat.com>
7788
7789 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
7790 lib$${file} in case subsequent character is not a separator.
7791
7792 2004-01-23 Vincent Celier <celier@gnat.com>
7793
7794 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
7795 when the GCC version is at least 3.
7796
7797 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
7798 Remove all "Opt.", to prepare for opt split
7799
7800 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
7801 Extends_All. Set to True when the project parsed is an extending all
7802 project. Fails for importing an extending all project only when the
7803 imported project is an extending all project.
7804 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
7805 depending on the value of Extends_All returned.
7806
7807 * prj-proc.adb (Process): Check that no project shares its object
7808 directory with a project that extends it, directly or indirectly,
7809 including a virtual project.
7810 Check that no project extended by another project shares its object
7811 directory with another also extended project.
7812
7813 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
7814 Kind = N_With_Clause
7815
7816 * prj-tree.ads: Minor reformatting
7817 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
7818
7819 2004-01-23 Ed Schonberg <schonberg@gnat.com>
7820
7821 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
7822 applies to a type with an incomplete view, use full view in Name of
7823 clause, for consistency with uses of Get_Attribute_Definition_Clause.
7824
7825 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
7826
7827 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
7828 SCHED_RR, since other values are not supported by this policy.
7829 (Initialize): Move initialization of mutex attribute to package
7830 elaboration, to prevent early access to this variable.
7831
7832 * Makefile.in: Remove mention of Makefile.adalib, unused.
7833
7834 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
7835 1ssecsta.ads: Removed, unused.
7836
7837 2004-01-21 Javier Miranda <miranda@gnat.com>
7838
7839 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
7840 entity if already built in the current scope.
7841
7842 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
7843 reminder in internal scopes. Required for nested limited aggregates.
7844
7845 2004-01-21 Doug Rupp <rupp@gnat.com>
7846
7847 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
7848 VMS. Replace all occurences of libgnat- and libgnarl- with
7849 libgnat$(hyphen) and libgnarl$(hyphen).
7850 Fixed shared library build problem on VMS.
7851
7852 2004-01-21 Robert Dewar <dewar@gnat.com>
7853
7854 * mlib-prj.adb: Minor reformatting
7855
7856 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
7857
7858 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
7859 'constant' keywords for declaration of pointers that are not modified.
7860
7861 * exp_pakd.adb: Fix English in comment.
7862
7863 2004-01-21 Ed Schonberg <schonberg@gnat.com>
7864
7865 PR ada/10889
7866 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
7867 copy all attributes of the parent, including the foreign language
7868 convention.
7869
7870 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
7871
7872 PR ada/10565
7873 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
7874 for 'delay until' statement.
7875
7876 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
7877
7878 * Make-lang.in: Replace $(docdir) with doc.
7879 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
7880 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
7881 to use consistent MAKEINFO rule.
7882 (ada.man, ada.srcman): Dummy entry.
7883 (ADA_INFOFILES): Define.
7884 (ada.info, ada.srcinfo): New rules.
7885
7886 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
7887
7888 * utils.c: Update copyright notice, missed in previous change.
7889
7890 2004-01-19 Vincent Celier <celier@gnat.com>
7891
7892 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
7893 args if Bind is True. Set First_ALI, if not already done.
7894 (Build_Library): For Stand Alone Libraries, extract from one ALI file
7895 an eventual --RTS switch, for gnatbind, and all backend switches +
7896 --RTS, for linking.
7897
7898 2004-01-19 Robert Dewar <dewar@gnat.com>
7899
7900 * sem_attr.adb, memtrack.adb: Minor reformatting
7901
7902 2004-01-19 Ed Schonberg <schonberg@gnat.com>
7903
7904 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
7905 that rename enumeration literals. This is properly done in sem_eval.
7906
7907 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
7908 to functions that rename enumeration literals.
7909
7910 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
7911 functions that rename enumeration literals.
7912
7913 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
7914
7915 * Make-lang.in (utils.o): Depend on target.h.
7916 * utils.c: Include target.h.
7917 (process_attributes): Use targetm.have_named_sections instead
7918 of ASM_OUTPUT_SECTION_NAME.
7919
7920 2004-01-16 Andreas Jaeger <aj@suse.de>
7921
7922 * Makefile.in: Add $(DESTDIR).
7923
7924 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
7925
7926 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
7927 also when not defining if a Size clause applies. That information is
7928 not to be ignored.
7929
7930 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
7931
7932 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
7933 symbolic links for the shared gnat run time when needed.
7934
7935 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
7936
7937 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
7938 for writing, and terminate with an error message if not.
7939
7940 2004-01-15 Ed Schonberg <schonberg@gnat.com>
7941
7942 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
7943 warning on an access to subprogram in an instance, when the target
7944 type is declared in the same generic unit.
7945 (Eval_Attribute): If 'access is known to fail accessibility check,
7946 rewrite as a raise statement.
7947
7948 2004-01-15 GNAT Script <nobody@gnat.com>
7949
7950 * Make-lang.in: Makefile automatically updated
7951
7952 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
7953
7954 * Make-lang.in (ada.srcextra): Dummy entry.
7955
7956 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
7957
7958 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
7959
7960 2004-01-13 Ed Schonberg <schonberg@gnat.com>
7961
7962 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
7963 components that are initialized with aggregates.
7964
7965 2004-01-13 Vincent Celier <celier@gnat.com>
7966
7967 * gnatlink.adb (Process_Binder_File): To find directory of shared
7968 libgcc, if "gcc-lib" is not a subdirectory, look for the last
7969 subdirectory "lib" in the path of the shared libgnat or libgnarl.
7970
7971 * make.adb (Gnatmake): If GCC version is at least 3, link with
7972 -shared-libgcc, when there is at least one shared library project.
7973
7974 * opt.ads (GCC_Version): New integer constant.
7975
7976 * adaint.c (get_gcc_version): New function.
7977
7978 2004-01-13 Robert Dewar <dewar@gnat.com>
7979
7980 * sem_dist.adb, sem_res.adb, sem_util.adb,
7981 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
7982 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
7983
7984 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
7985
7986 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
7987 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
7988 declarations.
7989
7990 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
7991
7992 * misc.c: Remove trailing spaces.
7993 Update copyright notice missed in previous change.
7994
7995 PR ada/13572
7996 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
7997 prefix/share/make
7998
7999 * Makefile.generic: Update copyright.
8000 Add license notice.
8001
8002 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
8003 of prefix/share/make.
8004
8005 * Makefile.prolog: Update copyright.
8006 Add license notice.
8007
8008 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
8009
8010 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
8011 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
8012 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
8013 instead of String.
8014
8015 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
8016 signature.
8017
8018 2004-01-12 Javier Miranda <miranda@gnat.com>
8019
8020 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
8021 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
8022 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
8023 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
8024 Component_Definition node.
8025
8026 2004-01-12 Ed Falis <falis@gnat.com>
8027
8028 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
8029
8030 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
8031
8032 * link.c: Change default libgnat kind to STATIC for FreeBSD.
8033
8034 2004-01-12 Bernard Banner <banner@gnat.com>
8035
8036 * Makefile.in: map 86numaux to a-numaux for x86_64
8037
8038 2004-01-12 Ed Schonberg <schonberg@gnat.com>
8039
8040 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
8041 generated to rename a generic actual, go to the actual itself, the
8042 subtype is not a user-visible entity.
8043
8044 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
8045 part is a private subtype, reset the visibility of its full view, if
8046 any, to be consistent.
8047
8048 PR ada/13417
8049 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
8050 to use a generic package G as a formal package for another generic
8051 declared within G.
8052
8053 2004-01-12 Robert Dewar <dewar@gnat.com>
8054
8055 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
8056
8057 * usage.adb: Remove mention of obsolete -gnatwb switch
8058 Noticed during code reading
8059
8060 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
8061
8062 * 1ssecsta.adb: Minor changes for -gnatwa warnings
8063
8064 2004-01-12 GNAT Script <nobody@gnat.com>
8065
8066 * Make-lang.in: Makefile automatically updated
8067
8068 2004-01-09 Mark Mitchell <mark@codesourcery.com>
8069
8070 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
8071
8072 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8073
8074 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
8075
8076 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
8077
8078 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
8079 Update comment and copyright date.
8080 * stamp-xgnatug: Delete.
8081
8082 2004-01-05 Robert Dewar <dewar@gnat.com>
8083
8084 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
8085 be modified by the binder generated main program if the -D switch is
8086 used.
8087
8088 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
8089 imported functions (since now we expect this to be done for imported
8090 functions)
8091
8092 * 5vtaprop.adb: Add several ??? for sections requiring more comments
8093 Minor reformatting throughout
8094
8095 * 5zinit.adb: Minor reformatting
8096 Add 2004 to copyright date
8097 Minor changes to avoid -gnatwa warnings
8098 Correct some instances of using OR instead of OR ELSE (noted while
8099 doing reformatting)
8100
8101 * sprint.adb: Minor updates to avoid -gnatwa warnings
8102
8103 * s-secsta.ads, s-secsta.adb:
8104 (SS_Get_Max): New function to obtain high water mark for ss stack
8105 Default_Secondary_Stack is not a constant since it may be modified by
8106 the binder generated main program if the -D switch is used.
8107
8108 * switch-b.adb: New -Dnnn switch for binder
8109
8110 * switch-c.adb:
8111 Make -gnatg imply all warnings currently in -gnatwa
8112
8113 * vms_conv.adb: Minor reformatting
8114 Add 2004 to copyright notice
8115 Add 2004 to printed copyright notice
8116
8117 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
8118 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
8119 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
8120 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
8121 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
8122 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
8123 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
8124 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
8125 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
8126 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
8127 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
8128 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
8129 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
8130 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
8131 checks.adb, clean.adb, cstand.adb, einfo.ads,
8132 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
8133 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
8134 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
8135 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
8136 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
8137 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
8138 Minor reformatting and code clean ups.
8139 Minor changes to prevent -gnatwa warnings
8140
8141 * ali.adb: Minor reformatting and cleanup of code
8142 Acquire new SS indication of secondary stack use from ali files
8143
8144 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
8145 (since now we expect this to be done for imported functions)
8146
8147 * bindgen.adb: Generate call to modify default secondary stack size if
8148 -Dnnn switch given
8149
8150 * bindusg.adb: Add line for new -D switch
8151
8152 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
8153 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
8154 Add circuitry for both records and arrays to avoid gigi
8155 processing if the type involved has non-bit-aligned components
8156
8157 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
8158 N_String_Literal node always references an E_String_Literal_Subtype
8159 entity. This may not be true in the future.
8160 (Possible_Bit_Aligned_Component): Move processing of
8161 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
8162
8163 * exp_ch6.adb (Expand_Thread_Body): Pick up
8164 Default_Secondary_Stack_Size as variable so that we get value modified
8165 by possible -Dnnn binder parameter.
8166
8167 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
8168 (Type_May_Have_Bit_Aligned_Components): New function.
8169
8170 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
8171 (Type_May_Have_Bit_Aligned_Components): New function.
8172
8173 * fe.h: (Set_Identifier_Casing): Fix prototype.
8174 Add declaration for Sem_Elim.Eliminate_Error_Msg.
8175 Minor reformatting.
8176
8177 * freeze.adb (Freeze_Entity): Add RM reference to error message about
8178 importing constant atomic/volatile objects.
8179 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
8180 unless explicit Pure_Function pragma given, to avoid insidious bug of
8181 call to non-pure imported function getting eliminated.
8182
8183 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
8184 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
8185 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
8186 Add 2004 to printed copyright notice
8187
8188 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
8189 stack used.
8190
8191 * Makefile.rtl: Add entry for g-sestin.o
8192 g-sestin.ads: New file.
8193
8194 * mdll.adb: Minor changes to avoid -gnatwa warnings
8195
8196 * mlib-tgt.adb: Minor reformatting
8197
8198 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
8199 New switch Sec_Stack_Used (GNAT, GNATBIND)
8200 Make Default_Secondary_Stack_Size a variable instead of a constant,
8201 so that it can be modified by the new -Dnnn bind switch.
8202
8203 * rtsfind.adb (Load_Fail): Give full error message in configurable
8204 run-time mode if all_errors mode is set. This was not done in the case
8205 of a file not found, which was an oversight.
8206 Note if secondary stack unit is used by compiler.
8207
8208 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
8209 ineffective elaborate all pragmas on non-visible packages (this
8210 happened when a renamed subprogram was called). Now the elaborate all
8211 always goes on the package containing the renaming rather than the one
8212 containing the renamed subprogram.
8213
8214 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
8215 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
8216
8217 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
8218 has an Etype that references an E_String_Literal.
8219 (Eval_String_Literal): Avoid assumption that N_String_Literal node
8220 always references an E_String_Literal_Subtype entity. This may not
8221 be true in the future.
8222
8223 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
8224 pragma location.
8225
8226 * sem_res.adb (Resolve): Specialize msg for function name used in proc
8227 call.
8228
8229 2004-01-05 Ed Falis <falis@gnat.com>
8230
8231 * g-debuti.adb: Replaced direct boolean operator with short-circuit
8232 form.
8233
8234 2004-01-05 Vincent Celier <celier@gnat.com>
8235
8236 * bld.adb: Minor comment updates
8237 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
8238 of Item_Name).
8239
8240 * make.adb (Gnatmake): Special process for files to compile/check when
8241 -B is specified. Fail when there are only foreign mains in attribute
8242 Main of the project file and -B is not specified. Do not skip bind/link
8243 steps when -B is specified.
8244
8245 * makeusg.adb: Document new switch -B
8246
8247 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
8248
8249 * switch-m.adb: (Scan_Make_Switches): Process -B switch
8250
8251 * vms_data.ads: Add new GNAT PRETTY qualifier
8252 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
8253
8254 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8255
8256 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
8257 case.
8258
8259 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
8260 Set_Identifier_Casing.
8261
8262 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
8263 has size that overflows.
8264
8265 2004-01-05 Gary Dismukes <dismukes@gnat.com>
8266
8267 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
8268 -gnatwa warning on static condition.
8269
8270 2004-01-05 Doug Rupp <rupp@gnat.com>
8271
8272 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
8273
8274 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
8275
8276 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
8277 all attributes, including read-only attribute.
8278
8279 2004-01-05 Pascal Obry <obry@gnat.com>
8280
8281 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
8282 library naming scheme.
8283
8284 * mlib-prj.adb (Build_Library): Generate different names for the static
8285 or dynamic version of the GNAT runtime. This is needed to support the
8286 new shared library naming scheme.
8287 (Process_Binder_File): Add detection of shared library in binder file
8288 based on the new naming scheme.
8289
8290 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
8291 scheme for the shared runtime libraries.
8292
8293 * Makefile.in:
8294 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
8295 scheme.
8296 (install-gnatlib): Do not create symlinks for shared libraries.
8297 (gnatlib-shared-default): Idem.
8298 (gnatlib-shared-dual-win32): New target. Not used for now as the
8299 auto-import feature does not support arrays/records.
8300 (gnatlib-shared-win32): Do not create copy for the shared libraries.
8301 (gnatlib-shared-vms): Fix shared runtime libraries names.
8302
8303 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
8304 dependent runtime shared library name.
8305
8306 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
8307
8308 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
8309 than the object.
8310
8311 2004-01-05 Ed Schonberg <schonberg@gnat.com>
8312
8313 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
8314 protected objects when allocator has a subtype indication, not a
8315 qualified expression. Note that qualified expressions may have to be
8316 checked when limited aggregates are implemented.
8317
8318 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
8319 pure, emit warning.
8320 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
8321 subprogram is imported, remove warning.
8322
8323 2004-01-05 Geert Bosch <bosch@gnat.com>
8324
8325 * s-poosiz.adb: Update copyright notice.
8326 (Allocate): Use Task_Lock to protect against concurrent access.
8327 (Deallocate): Likewise.
8328
8329 2004-01-05 Joel Brobecker <brobecker@gnat.com>
8330
8331 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
8332 comment.
8333
8334 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
8335
8336 * gnat_ug.texi: Force a CVS commit by updating copyright.
8337 * gnat_ug_vxw.texi: Regenerate.
8338 * gnat_ug_wnt.texi: Regenerate.
8339 * gnat_ug_vms.texi: Regenerate.
8340 * gnat_ug_unx.texi: Regenerate.
8341
8342 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
8343
8344 * trans.c: Remove uses of "register" specifier in
8345 declarations of local variables.
8346
8347 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
8348
8349 * stamp-xgnatug: New stamp file.
8350 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
8351 (ada/doctools/xgnatug): Add $(build_exeext).
8352 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
8353 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
8354
8355 2003-12-17 Ed Falis <falis@gnat.com>
8356
8357 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
8358 eliminate warning.
8359
8360 * a-exextr.adb: Add context clause for
8361 Ada.Exceptions.Last_Chance_Handler.
8362
8363 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
8364
8365 * cstand.adb (Create_Standard): Change the way how the declaration of
8366 the Duration type is created (making it the same way as it is for all
8367 the other standard types).
8368
8369 2003-12-17 Robert Dewar <dewar@gnat.com>
8370
8371 * s-crtl.ads: Fix header format
8372 Change Pure to Preelaborate
8373
8374 2003-12-17 Ed Schonberg <schonberg@gnat.com>
8375
8376 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
8377 the expression type only if it is declared in the current unit.
8378
8379 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
8380 are universal and already analyzed, as can occur in constrained
8381 subcomponents that depend on discriminants, when one constraint is a
8382 subtype mark.
8383
8384 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
8385 type Any_Fixed is legal as the argument of a conversion, if only one
8386 fixed-point type is in context.
8387
8388 2003-12-17 GNAT Script <nobody@gnat.com>
8389
8390 * Make-lang.in: Makefile automatically updated
8391
8392 2003-12-15 Robert Dewar <dewar@gnat.com>
8393
8394 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
8395 sec stack size.
8396
8397 2003-12-15 Vincent Celier <celier@gnat.com>
8398
8399 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
8400 (Gnatchop): Do not set failure status when reporting the number of
8401 warnings.
8402
8403 2003-12-15 Doug Rupp <rupp@gnat.com>
8404
8405 * s-ctrl.ads: New file.
8406
8407 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
8408
8409 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
8410 (GNATBIND_OBJS): Add ada/s-crtl.o.
8411
8412 * Makefile.in [VMS]: Clean up ifeq rules.
8413
8414 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
8415 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
8416 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
8417 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
8418 s-tasdeb.adb: Update copyright.
8419 Import System.CRTL.
8420 Make minor modifications to use System.CRTL declared functions instead
8421 of importing locally.
8422
8423 2003-12-15 GNAT Script <nobody@gnat.com>
8424
8425 * Make-lang.in: Makefile automatically updated
8426
8427 2003-12-11 Ed Falis <falis@gnat.com>
8428
8429 * 5zinit.adb: Clean up.
8430
8431 * 5zintman.adb (Notify_Exception): replaced case statement with a call
8432 to __gnat_map_signal, imported from init.c to support
8433 signal -> exception mappings that depend on the vxWorks version.
8434
8435 * init.c:
8436 Created and exported __gnat_map_signal to support signal -> exception
8437 mapping that is dependent on the VxWorks version.
8438 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
8439
8440 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
8441
8442 * 5wosinte.ads: Link with -mthreads switch.
8443
8444 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
8445
8446 * init.c (__gnat_install_handler [NetBSD]): Set
8447 __gnat_handler_installed, as done on all other platforms.
8448 Remove duplicated code.
8449
8450 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
8451
8452 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
8453
8454 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
8455
8456 * sinfo.ads: Fix inconsistent example code in comment.
8457
8458 2003-12-11 Robert Dewar <dewar@gnat.com>
8459
8460 * a-tiinau.adb: Add a couple of comments
8461
8462 * sem_ch3.adb: Minor reformatting
8463
8464 * sem_prag.adb:
8465 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
8466 Minor reformatting throughout
8467
8468 2003-12-11 Ed Schonberg <schonberg@gnat.com>
8469
8470 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
8471 bounds of a loop, create a separate block in order to generate proper
8472 cleanup actions to prevent memory leaks.
8473
8474 * sem_res.adb (Resolve_Call): After a call to
8475 Establish_Transient_Scope, the call may be rewritten and relocated, in
8476 which case no further processing is needed.
8477
8478 * sem_util.adb: (Wrong_Type): Refine previous fix.
8479 Fixes ACATS regressions.
8480
8481 PR ada/13353
8482
8483 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
8484 be inlined.
8485
8486 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
8487
8488 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
8489 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
8490 obsolete files.
8491
8492 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
8493 (rts-zfp): Ditto.
8494
8495 2003-12-08 Robert Dewar <dewar@gnat.com>
8496
8497 * 7sintman.adb: Minor reformatting
8498
8499 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
8500 standard linker options to get standard libraries linked. We now plan
8501 to provide dummy versions of these libraries to match the appropriate
8502 configurable run-time (e.g. if a library is not needed at all, provide
8503 a dummy empty library).
8504
8505 * targparm.ads: Configurable_Run_Time mode no longer affects linker
8506 options (-L parameters and standard libraries). What we plan to do is
8507 to provide dummy libraries where the libraries are not required.
8508
8509 * gnatbind.adb: Minor comment improvement
8510
8511 2003-12-08 Javier Miranda <miranda@gnat.com>
8512
8513 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
8514 aggregate in the parent. Otherwise constants with limited aggregates
8515 are not supported. Add new formal to pass the component type (Ctype).
8516 It is required to call the corresponding IP subprogram in case of
8517 default initialized components.
8518 (Gen_Assign): In case of default-initialized component, generate a
8519 call to the IP subprogram associated with the component.
8520 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
8521 of aggregate with default initialized components.
8522 (Has_Default_Init_Comps): Improve implementation to recursively check
8523 all the present expressions.
8524
8525 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
8526 to indicate that the initialization call corresponds to a
8527 default-initialized component of an aggregate.
8528 In case of default initialized aggregate with tasks this parameter is
8529 used to generate a null string (this is just a workaround that must be
8530 improved later). In case of discriminants, this parameter is used to
8531 generate a selected component node that gives access to the discriminant
8532 value.
8533
8534 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
8535 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
8536 allocated aggregates with default-initialized components.
8537
8538 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
8539 the box notation is used in positional aggregates.
8540
8541 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
8542
8543 * lib.ads: Fix typo in comment
8544
8545 2003-12-08 Vincent Celier <celier@gnat.com>
8546
8547 * prj.adb (Project_Empty): New component Unkept_Comments
8548 (Scan): Remove procedure; moved to Prj.Err.
8549
8550 * prj.ads (Project_Data): New Boolean component Unkept_Comments
8551 (Scan): Remove procedure; moved to Prj.Err.
8552
8553 * prj-dect.adb: Manage comments for the different declarations.
8554
8555 * prj-part.adb (With_Record): New component Node
8556 (Parse): New Boolean parameter Store_Comments, defaulted to False.
8557 Set the scanner to return ends of line and comments as tokens, if
8558 Store_Comments is True.
8559 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
8560 comments are associated with these nodes. Store the node IDs in the
8561 With_Records.
8562 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
8563 With_Records.
8564 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
8565 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
8566 current project. Call Tree.Restore afterwards. Set the various nodes
8567 for comment storage (Next_End, End_Of_Line, Previous_Line,
8568 Previous_End).
8569
8570 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
8571 defaulted to False.
8572
8573 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
8574 to False. When Truncated is True, truncate the string, never go to the
8575 next line.
8576 (Write_End_Of_Line_Comment): New procedure
8577 (Print): Process comments for nodes N_With_Clause,
8578 N_Package_Declaration, N_String_Type_Declaration,
8579 N_Attribute_Declaration, N_Typed_Variable_Declaration,
8580 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
8581 Process nodes N_Comment.
8582
8583 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
8584 without comments and there are some comments, set the flag
8585 Unkept_Comments to True.
8586 (Scan): If there are comments, set the flag Unkept_Comments to True and
8587 clear the comments.
8588 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
8589 (Next_End_Nodes: New table
8590 (Comment_Zones_Of): New function
8591 (Scan): New procedure; moved from Prj. Accumulate comments in the
8592 Comments table and set end of line comments, comments after, after end
8593 and before end.
8594 (Add_Comments): New procedure
8595 (Save, Restore, Seset_State): New procedures
8596 (There_Are_Unkept_Comments): New function
8597 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
8598 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
8599 procedures.
8600 (First_Comment_After, First_Comment_After_End): New functions
8601 (First_Comment_Before, First_Comment_Before_End): New functions
8602 (Next_Comment): New function
8603 (End_Of_Line_Comment, Follows_Empty_Line,
8604 Is_Followed_By_Empty_Line): New functions
8605 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
8606 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
8607 (Set_Next_Comment): New procedure
8608 (Default_Project_Node): Associate comment before if the node can store
8609 comments.
8610
8611 * scans.ads (Token_Type): New enumeration value Tok_Comment
8612 (Comment_Id): New global variable
8613
8614 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
8615 defaulted to False.
8616 (Scan): Store position of start of comment. If comments are tokens, set
8617 Comment_Id and set Token to Tok_Comment when scanning a comment.
8618 (Set_Comment_As_Token): New procedure
8619
8620 * sinput-p.adb: Update Copyright notice
8621 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
8622 that no longer exists.
8623
8624 2003-12-08 Javier Miranda <miranda@gnat.com>
8625
8626 * sem_aggr.adb: Add dependence on Exp_Tss package
8627 Correct typo in comment
8628 (Resolve_Aggregate): In case of array aggregates set the estimated
8629 type of the aggregate before calling resolve. This is needed to know
8630 the name of the corresponding IP in case of limited array aggregates.
8631 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
8632 in case of default initialized array components.
8633
8634 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
8635 types. Required to give support to limited aggregates in generic
8636 formals.
8637
8638 2003-12-08 Ed Schonberg <schonberg@gnat.com>
8639
8640 * sem_ch3.adb (Check_Initialization): For legality purposes, an
8641 inlined body functions like an instantiation.
8642 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
8643 until bounds are analyzed, to diagnose premature use of type.
8644
8645 * sem_util.adb (Wrong_Type): Improve error message when the type of
8646 the expression is used prematurely.
8647
8648 2003-12-08 GNAT Script <nobody@gnat.com>
8649
8650 * Make-lang.in: Makefile automatically updated
8651
8652 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
8653
8654 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
8655 they are automatically generated by Make-lang.in and cause nothing but
8656 maintenance troubles.
8657
8658 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
8659
8660 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
8661 version of this unit).
8662
8663 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
8664
8665 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
8666 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
8667 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
8668 the body of System.Interrupt_Management common to several targets.
8669 Update copyright notice when appropriate.
8670
8671 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
8672 constant.
8673
8674 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
8675 to ensure that the kernel fills in the interrupted context structure
8676 before calling a signal handler, which is necessary to be able to
8677 unwind past it. Update the copyright notice.
8678
8679 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
8680
8681 * a-elchha.ads: New file.
8682
8683 * a-elchha.adb: New default last chance handler. Contents taken from
8684 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
8685
8686 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
8687 is moved to a-elchha.adb to provide a target-independent default last
8688 chance handler.
8689
8690 * Makefile.rtl: Add a-elchha.o
8691
8692 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
8693
8694 2003-12-05 Ed Schonberg <schonberg@gnat.com>
8695
8696 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
8697 declared in an instance, do not inline the call if the instance is not
8698 frozen yet, to prevent order of elaboration problems.
8699
8700 * sem_prag.adb: Add comments for previous fix.
8701
8702 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
8703
8704 * g-table.adb: Use the right variable in Set_Item.
8705 Update copyright notice.
8706
8707 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
8708
8709 * Makefile.in: Remove unused rules.
8710
8711 2003-12-05 Vincent Celier <celier@gnat.com>
8712
8713 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
8714 -nostdlib. Not needed here after all.
8715
8716 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
8717
8718 PR ada/11724
8719
8720 * adaint.h, adaint.c, g-os_lib.ads:
8721 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
8722 on some platforms (including FreeBSD), it is a 64 bit value.
8723 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
8724
8725 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
8726
8727 * gnatvsn.ads (Library_Version): Now contain only the relevant
8728 version info.
8729 (Verbose_Library_Version): New constant.
8730
8731 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
8732 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
8733 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
8734
8735 * gnatlbr.adb: Clean up: replace Library_Version by
8736 Verbose_Library_Version.
8737
8738 * make.adb, lib-writ.adb, exp_attr.adb:
8739 Clean up: replace Library_Version by Verbose_Library_Version.
8740
8741 * 5lintman.adb: Removed.
8742
8743 * Makefile.in:
8744 Update and simplify computation of LIBRARY_VERSION.
8745 Fix computation of GSMATCH_VERSION.
8746 5lintman.adb is no longer used: replaced by 7sintman.adb.
8747
8748 2003-12-03 Robert Dewar <dewar@gnat.com>
8749
8750 * exp_ch5.adb:
8751 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
8752 name. Modified to consider small non-bit-packed arrays as troublesome
8753 and in need of component-by-component assigment expansion.
8754
8755 2003-12-03 Vincent Celier <celier@gnat.com>
8756
8757 * lang-specs.h: Process nostdlib as nostdinc
8758
8759 * back_end.adb: Update Copyright notice
8760 (Scan_Compiler_Arguments): Process -nostdlib directly.
8761
8762 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
8763
8764 * Makefile.in:
8765 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
8766 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
8767 included in HIE_NONE_TARGET_PAIRS.
8768
8769 2003-12-03 Ed Schonberg <schonberg@gnat.com>
8770
8771 * sem_attr.adb:
8772 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
8773 is legal in an instance, because legality is cheched in the template.
8774
8775 * sem_prag.adb:
8776 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
8777 appplied to an unchecked conversion of a formal parameter.
8778
8779 * sem_warn.adb:
8780 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
8781 variables.
8782
8783 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
8784
8785 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
8786 routines. The second one is new functionality to deal with backtracing
8787 through signal handlers.
8788 (unwind): Split into the two separate subroutines above.
8789 Update the documentation, and deal properly with sizeof (REG) different
8790 from sizeof (void*).
8791
8792 2003-12-01 Nicolas Setton <setton@act-europe.fr>
8793
8794 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
8795 so that the debugger can reliably access the value of the parameter,
8796 and therefore is able to display the exception name when an exception
8797 breakpoint is reached.
8798
8799 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
8800
8801 * fmap.adb: Fix typo in warning message.
8802
8803 * g-socket.ads, g-socket.adb: Make Free a visible instance of
8804 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
8805
8806 2003-12-01 Vincent Celier <celier@gnat.com>
8807
8808 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
8809 ther is no Afile.
8810 (Build_Library): Get the switches only if Default_Switches is declared
8811 in package Binder.
8812
8813 2003-12-01 Ed Schonberg <schonberg@gnat.com>
8814
8815 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
8816 actuals that are indexed components, reanalyze actual to ensure that
8817 packed array references are properly expanded.
8818
8819 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
8820 attempted assignment to a discriminant.
8821
8822 2003-12-01 Robert Dewar <dewar@gnat.com>
8823
8824 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
8825 reformatting.
8826
8827 * switch-c.adb: Minor reformatting of comments
8828
8829 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
8830
8831 * Makefile.in: Clean ups.
8832
8833 2003-12-01 GNAT Script <nobody@gnat.com>
8834
8835 * Make-lang.in: Makefile automatically updated
8836
8837 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
8838
8839 * 5wsystem.ads: Disable zero cost exception, not ready yet.
8840
8841 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
8842
8843 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
8844 to force serialization.
8845
8846 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
8847
8848 * g-socket.ads, g-socket.adb:
8849 Clarify documentation of function Stream. Introduce a Free procedure
8850 to release the returned Stream once it becomes unused.
8851
8852 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
8853
8854 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
8855
8856 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
8857 since NT 4 cannot handle timeout values that are too large,
8858 e.g. DWORD'Last - 1.
8859
8860 2003-11-26 Ed Schonberg <schonberg@gnat.com>
8861
8862 * exp_ch4.adb:
8863 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
8864 in procedure calls and whose expansion must be deferred.
8865
8866 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
8867 is in exp_ch4.
8868
8869 * sem_ch3.adb:
8870 (Build_Derived_Array_Type): Create operator for unconstrained type
8871 if ancestor is unconstrained.
8872
8873 2003-11-26 Vincent Celier <celier@gnat.com>
8874
8875 * make.adb (Project_Object_Directory): New global variable
8876 (Change_To_Object_Directory): New procedure
8877 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
8878 of Change_Dir directly. Do not change working directory to object
8879 directory of main project after each compilation.
8880 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
8881 directly.
8882 Change to object directory of main project before binding step.
8883 (Initialize): Initialize Project_Object_Directory to No_Project
8884
8885 * mlib-prj.adb:
8886 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
8887 binding a Stand-Alone Library.
8888
8889 * output.adb: Update Copyright notice
8890 (Write_Char): Output buffer when full
8891
8892 2003-11-26 Robert Dewar <dewar@gnat.com>
8893
8894 * sem_ch13.adb: (Check_Size): Reset size if size is too small
8895
8896 * sem_ch13.ads:
8897 (Check_Size): Fix documentation to include bit-packed array case
8898
8899 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
8900
8901 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
8902
8903 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
8904
8905 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
8906
8907 PR ada/13142
8908 * utils.c (init_gigi_decls): Change name of built-in setjmp to
8909 __builtin_setjmp, since this is apparently needed by recent
8910 non Ada changes.
8911
8912 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8913
8914 * adadecode.c: Only include ctype.h if not IN_GCC.
8915 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
8916
8917 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
8918
8919 * Makefile.in:
8920 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
8921 signals and interrupts.
8922
8923 * 5zintman.ads: New File.
8924
8925 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
8926 add exception signals to the set of unmasked signals.
8927
8928 * 5ztaprop.adb:
8929 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
8930 between signals and interrupts.
8931 Add to Unblocked_Signal_Mask the set of signals that are in
8932 Keep_Unmasked.
8933
8934 * 7sinmaop.adb:
8935 Adding a check to see whether the Interrupt_ID we want to unmask is in
8936 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
8937 reason is that the index type of the Keep_Unmasked array is not always
8938 Interrupt_ID; it may be a subtype of Interrupt_ID.
8939
8940 2003-11-24 Gary Dismukes <dismukes@gnat.com>
8941
8942 * exp_util.adb:
8943 (Remove_Side_Effects): Condition constantness of object created for a
8944 an unchecked type conversion on the constantness of the expression
8945 to ensure the correct value for 'Constrained when passing components
8946 of view-converted class-wide objects.
8947
8948 2003-11-24 Robert Dewar <dewar@gnat.com>
8949
8950 * par-load.adb (Load): Improve handling of misspelled and missing units
8951 Removes several cases of compilation abandoned messages
8952
8953 * lib.adb: (Remove_Unit): New procedure
8954
8955 * lib.ads: (Remove_Unit): New procedure
8956
8957 * lib-load.adb: Minor reformatting
8958
8959 2003-11-24 Vincent Celier <celier@gnat.com>
8960
8961 * make.adb:
8962 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
8963 (Marking_Label): Label to mark processed source files. Incremented for
8964 each executable.
8965 (Gnatmake): Increase Marking_Labet for each executable
8966 (Is_Marked): Compare against marking label
8967 (Mark): Mark with marking label
8968
8969 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
8970
8971 * s-thread.ads:
8972 Move the declaration of the TSD for System.Threads to System.Soft_Links.
8973 Add some comments.
8974
8975 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
8976 (rts-cert): build a single relocatable object for the run-time lib.
8977 Fix perms.
8978
8979 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
8980
8981 * Make-lang.in:
8982 Use gnatls rather than gcc to obtain the location of GNAT RTL for
8983 crosstools build.
8984
8985 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
8986
8987 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
8988 can not use it as before (that is, as a variable) when dumping it into
8989 the tree file. Add a local variable to store the result of this
8990 function and to be used as the string to be written into the tree.
8991
8992 * scn.adb (Initialize_Scanner): Add comments explaining the recent
8993 changes.
8994
8995 * sinput.adb (Source_First, Source_Last): In case of
8996 Internal_Source_File, replace returning attributes of
8997 Internal_Source_Ptr (which is wrong) with returning attributes of
8998 Internal_Source.
8999
9000 2003-11-24 Ed Schonberg <schonberg@gnat.com>
9001
9002 * sem_ch3.adb:
9003 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
9004 used for implicit concatenation operators.
9005 Code cleanup.
9006
9007 * sem_elab.adb:
9008 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
9009 task bodies that are in the scope of a Suppress pragma.
9010 (Check_A Call): Use the flag to prevent spurious elaboration checks.
9011
9012 * sinfo.ads, sinfo.adb:
9013 New flag No_Elaboration_Check on function/procedure calls, to properly
9014 suppress checks on calls in task bodies that are within a local suppress
9015 pragma.
9016
9017 * exp_ch4.adb:
9018 (Expand_Concatenate_Other): Use the proper integer type for the
9019 expression for the upper bound, to avoid universal_integer computations
9020 when possible.
9021
9022 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
9023
9024 * .cvsignore: Delete.
9025
9026 2003-11-21 Andreas Schwab <schwab@suse.de>
9027
9028 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
9029
9030 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
9031
9032 * 5wsystem.ads: Enable zero cost exception.
9033
9034 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
9035
9036 * 5ztiitho.adb: Remove an unreferenced variable.
9037
9038 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
9039
9040 * adaint.c: For FreeBSD, use mkstemp.
9041
9042 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
9043
9044 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
9045
9046 2003-11-21 Robert Dewar <dewar@gnat.com>
9047
9048 * bld.adb: Remove useless USE of gnatvsn
9049
9050 * gnatchop.adb: Minor reformatting
9051 Clean up version handling to be more consistent
9052
9053 * gnatxref.adb: Minor reformatting
9054
9055 * gprcmd.adb: Minor reformatting
9056 Fix output of copyright to be more consistent with other tools
9057
9058 2003-11-21 Vincent Celier <celier@gnat.com>
9059
9060 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
9061
9062 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
9063
9064 * atree.adb (Initialize): Add initializations for global variables
9065 used in New_Copy_Tree.
9066
9067 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
9068 Internal_Source_File as the actual).
9069 Put the set of statements creating Any_Character before the set of
9070 statements creating Any_Array to have Any_Character fully initialized
9071 when it is used in creating Any_Array.
9072
9073 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
9074 not call Scan in case if the actual is Internal_Source_File
9075 Add 2003 to copyright note.
9076
9077 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
9078 processing Internal_Source_File.
9079
9080 * types.ads: Add the constant Internal_Source_File representing the
9081 source buffer for artificial source-code-like strings created within
9082 the compiler (the definition of Source_File_Index is changed).
9083
9084 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
9085
9086 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
9087 56system.ads: New file, FreeBSD version.
9088
9089 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
9090
9091 * Make-lang.in (ada.extraclean): Delete.
9092
9093 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
9094
9095 * gnatmem.adb: Clean up verbose output.
9096
9097 * gprcmd.adb: Change copyright to FSF.
9098
9099 2003-11-19 Vincent Celier <celier@gnat.com>
9100
9101 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
9102 and Version (ignored).
9103
9104 * symbols.ads: (Policy): New type
9105 (Initialize): New parameter Reference, Symbol_Policy and
9106 Library_Version.
9107 Remove parameter Force.
9108 Minor reformatting.
9109
9110 * snames.ads, snames.adbadb: New standard names
9111 Library_Reference_Symbol_File and Library_Symbol_Policy
9112
9113 * mlib-prj.adb:
9114 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
9115 project.
9116
9117 * mlib-tgt.adb:
9118 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
9119
9120 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
9121
9122 * prj.adb: (Project_Empty): New component Symbol_Data
9123
9124 * prj.ads: (Policy, Symbol_Record): New types
9125 (Project_Data): New component Symbol_Data
9126
9127 * prj-attr.adb:
9128 New attributes Library_Symbol_File, Library_Symbol_Policy and
9129 Library_Reference_Symbol_File.
9130
9131 * prj-nmsc.adb:
9132 (Ada_Check): When project is a Stand-Alone library project, process
9133 attribute Library_Symbol_File, Library_Symbol_Policy and
9134 Library_Reference_Symbol_File.
9135
9136 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9137 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
9138 5sml-tgt.adb (Build_Dynamic_Library): New parameter
9139 Symbol_Data (ignored).
9140
9141 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
9142 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
9143 functions Option_File_Name and Version_String. Set new options of
9144 gnatsym related to symbol file, symbol policy and reference symbol
9145 file.
9146
9147 * 5vsymbol.adb:
9148 Extensive modifications to take into account the reference symbol file,
9149 the symbol policy, the library version and to put in the symbol file the
9150 minor and major IDs.
9151
9152 * bld.adb (Process_Declarative_Items): Put second argument of
9153 gprcmd to_absolute between single quotes, to avoid problems with
9154 Windows.
9155
9156 * bld-io.adb: Update Copyright notice.
9157 (Flush): Remove last character of a line, if it is a back slash, to
9158 avoid make problems.
9159
9160 * gnatsym.adb:
9161 Implement new scheme with reference symbol file and symbol policy.
9162
9163 * g-os_lib.ads: (Is_Directory): Clarify comment
9164
9165 2003-11-19 Robert Dewar <dewar@gnat.com>
9166
9167 * atree.adb: Move New_Copy_Tree global variables to head of package
9168
9169 * errout.adb: Minor reformatting
9170
9171 2003-11-19 Javier Miranda <miranda@gnat.com>
9172
9173 * sem_ch4.adb: (Diagnose_Call): Improve error message.
9174 Add reference to Ada0Y (AI-50217)
9175
9176 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
9177 sem_util.adb: Add reference to AI-50217
9178
9179 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
9180
9181 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
9182
9183 * sem_aggr.adb: Complete documentation of AI-287 changes
9184
9185 * par-ch4.adb: Document previous changes.
9186
9187 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
9188 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
9189 Ada0Y (AI-50217)
9190
9191 * exp_aggr.adb: Add references to AI-287 in previous changes
9192
9193 2003-11-19 Ed Schonberg <schonberg@gnat.com>
9194
9195 * exp_ch6.adb:
9196 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
9197 in the rewriting is the result of an inlined call.
9198
9199 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
9200 parameter is a type conversion, use original node to construct the
9201 post-call assignment, because expression may have been rewritten, e.g.
9202 if it is a packed array.
9203
9204 * sem_attr.adb:
9205 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
9206 body, just as it is in an instance.
9207 Categorization routines
9208
9209 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
9210 Instantiate_Object): Set proper sloc reference for message on missing
9211 actual.
9212
9213 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
9214
9215 * Makefile.in: Add FreeBSD libgnat pairs.
9216
9217 * usage.adb: Fix typo in usage message.
9218
9219 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
9220
9221 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
9222 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
9223 pragma Thread_Body.
9224 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
9225
9226 * s-thread.adb: This file is now a dummy implementation of
9227 System.Thread.
9228
9229 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
9230
9231 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
9232
9233 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
9234
9235 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
9236 instanciation references in the parent type description.
9237
9238 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9239
9240 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
9241
9242 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
9243 TYPE_PRECISION directly from esize.
9244
9245 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
9246
9247 * cstreams.c:
9248 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
9249
9250 * init.c: Initialization routines for FreeBSD
9251
9252 * link.c: Link info for FreeBSD
9253
9254 * sysdep.c: Add the case of FreeBSD
9255
9256 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
9257
9258 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
9259 already called in System.Threads.
9260
9261 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
9262 environment task, as it has been moved to System.Threads.Initialization.
9263
9264 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
9265
9266 * adaint.c (__gnatlib_install_locks): Only reference
9267 __gnat_install_locks on VMS, since other platforms can avoid using
9268 --enable-threads=gnat
9269
9270 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9271
9272 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
9273
9274 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
9275 TYPE_PACKED_ARRAY_TYPE_P.
9276 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
9277
9278 Part of PR ada/12806
9279 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
9280 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
9281
9282 2003-11-17 Vincent Celier <celier@gnat.com>
9283
9284 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
9285 to False.
9286 Do not set exit status to Failure when Warning is True.
9287 (Gnatchop): Make errors "no compilation units found" and
9288 "no source files written" warnings only.
9289
9290 * make.adb (Gnatmake): When using a project file, set
9291 Look_In_Primary_Dir to False.
9292 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
9293 and Local_Configuration_Pragmas in the project where they are declared
9294 not an extending project which might have inherited them.
9295
9296 * osint.adb (Locate_File): If Name is already an absolute path, do not
9297 look for a directory.
9298
9299 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
9300 -gnats (Check_Syntax) is used, issue only a warning, not an error.
9301
9302 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
9303 in objects of type Variable_Value.
9304
9305 * prj.ads: (Variable_Value): New component Project
9306
9307 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
9308 is in a project extended by Project.
9309
9310 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
9311 Project of Variable_Values to this new parameter value.
9312 (Expression): Set component Project of Variable_Values.
9313 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
9314 Set the component Project in array elements.
9315
9316 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
9317
9318 * errout.adb: (Initialize): Add initialization for error nodes.
9319
9320 * sem_ch12.adb (Initialize): Add missing initializations for
9321 Exchanged_Views and Hidden_Entities.
9322
9323 2003-11-17 Ed Schonberg <schonberg@gnat.com>
9324
9325 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
9326 already instantiated tree for use in subsequent inlining.
9327 (Analyze_Associations, Instantiate_Formal_Subprogram,
9328 Instantiate_Object): improve error message for mismatch in
9329 instantiations.
9330
9331 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
9332 instantiations of subprograms declared in instances.
9333
9334 2003-11-17 Javier Miranda <miranda@gnat.com>
9335
9336 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
9337 executed only under the Extensions_Allowed flag.
9338
9339 2003-11-17 Robert Dewar <dewar@gnat.com>
9340
9341 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
9342 zeroes suppressed.
9343 (Address_Image): Fix bug of returning 0x instead of 0x0
9344 Minor reformatting (function specs).
9345
9346 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
9347 (missed case of 33-63)
9348
9349 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
9350
9351 * s-thread.adb: Add comments for pragma Restriction
9352
9353 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
9354 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
9355
9356 2003-11-17 Ed Falis <falis@gnat.com>
9357
9358 * s-thread.adb: Added No_Tasking restriction for this implementation.
9359
9360 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
9361
9362 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
9363 instanciation references in the parent type description.
9364
9365 2003-11-17 GNAT Script <nobody@gnat.com>
9366
9367 * Make-lang.in: Makefile automatically updated
9368
9369 2003-11-16 Jason Merrill <jason@redhat.com>
9370
9371 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
9372 and TAGS files that include them for each front end.
9373
9374 2003-11-14 Andreas Jaeger <aj@suse.de>
9375
9376 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
9377 is the canonical version.
9378 * misc.c (gnat_handle_option): Likewise.
9379
9380 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
9381
9382 * 5nsystem.ads: New file for x86_64-linux-gnu.
9383
9384 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
9385
9386 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
9387
9388 * comperr.adb: Fix logic in previous change.
9389
9390 2003-11-13 Vincent Celier <celier@gnat.com>
9391
9392 * 5bml-tgt.adb (Build_Dynamic_Library): Use
9393 Osint.Include_Dir_Default_Prefix instead of
9394 Sdefault.Include_Dir_Default_Name.
9395
9396 * gnatlbr.adb: Update Copyright notice
9397 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
9398 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
9399 instead of Sdefault.Object_Dir_Default_Name
9400
9401 * gnatlink.adb:
9402 (Process_Binder_File): Never suppress the option following -Xlinker
9403
9404 * mdll-utl.adb:
9405 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
9406 Sdefault.Object_Dir_Default_Name.
9407
9408 * osint.ads, osint.adb:
9409 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
9410 Minor reformatting.
9411
9412 * vms_conv.ads: Minor reformating
9413 Remove GNAT STANDARD and GNAT PSTA
9414
9415 * vms_conv.adb:
9416 Allow GNAT MAKE to have several files on the command line.
9417 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
9418 Sdefault.Object_Dir_Default_Name.
9419 Minor Reformating
9420 Remove data for GNAT STANDARD
9421
9422 * vms_data.ads:
9423 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
9424 Remove data for GNAT STANDARD
9425 Remove options and documentation for -gnatwb/-gnatwB: these warning
9426 options no longer exist.
9427
9428 2003-11-13 Ed Falis <falis@gnat.com>
9429
9430 * 5zthrini.adb: (Init_RTS): Made visible
9431
9432 * 5zthrini.adb:
9433 (Register): Removed unnecessary call to taskVarGet that checked whether
9434 an ATSD was already set as a task var for the argument thread.
9435
9436 * s-thread.adb:
9437 Updated comment to reflect that this is a VxWorks version
9438 Added context clause for System.Threads.Initialization
9439 Added call to System.Threads.Initialization.Init_RTS
9440
9441 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
9442
9443 * 5zthrini.adb:
9444 (Init_RTS): New procedure, for the initialization of the run-time lib.
9445
9446 * s-thread.adb:
9447 Remove dependancy on System.Init, so that this file can be used in the
9448 AE653 sequential run-time lib.
9449
9450 2003-11-13 Robert Dewar <dewar@gnat.com>
9451
9452 * bindgen.adb: Minor reformatting
9453
9454 2003-11-13 Ed Schonberg <schonberg@gnat.com>
9455
9456 * checks.adb:
9457 (Apply_Discriminant_Check): Do no apply check if target type is derived
9458 from source type with no applicable constraint.
9459
9460 * lib-writ.adb:
9461 (Ensure_System_Dependency): Do not apply the style checks that may have
9462 been specified for the main unit.
9463
9464 * sem_ch8.adb:
9465 (Find_Selected_Component): Further improvement in error message, with
9466 RM reference.
9467
9468 * sem_res.adb:
9469 (Resolve): Handle properly the case of an illegal overloaded protected
9470 procedure.
9471
9472 2003-11-13 Javier Miranda <miranda@gnat.com>
9473
9474 * exp_aggr.adb:
9475 (Has_Default_Init_Comps): New function to check the presence of
9476 default initialization in an aggregate.
9477 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
9478 extension aggregate of a limited record. In addition, a new formal
9479 was added to do not initialize the record controller (if any) during
9480 this recursive expansion of ancestors.
9481 (Init_Controller): Add support for limited record components.
9482 (Expand_Record_Aggregate): In case of default initialized components
9483 convert the aggregate into a set of assignments.
9484
9485 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
9486 describing the new syntax.
9487 Nothing else needed to be done because this subprogram delegates part of
9488 its work to P_Precord_Or_Array_Component_Association.
9489 (P_Record_Or_Array_Component_Association): Give support to the new
9490 syntax for default initialization of components.
9491
9492 * sem_aggr.adb:
9493 (Resolve_Aggregate): Relax the strictness of the frontend in case of
9494 limited aggregates.
9495 (Resolve_Record_Aggregate): Give support to default initialized
9496 components.
9497 (Get_Value): In case of default initialized components, duplicate
9498 the corresponding default expression (from the record type
9499 declaration). In case of default initialization in the *others*
9500 choice, do not check that all components have the same type.
9501 (Resolve_Extension_Aggregate): Give support to limited extension
9502 aggregates.
9503
9504 * sem_ch3.adb:
9505 (Check_Initialization): Relax the strictness of the front-end in case
9506 of aggregate and extension aggregates. This test is now done in
9507 Get_Value in a per-component manner.
9508
9509 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
9510 expression corresponds to a limited aggregate. This test is now done
9511 in Get_Value.
9512
9513 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
9514 Box_Present flag.
9515
9516 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
9517 present in an N_Component_Association node
9518
9519 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
9520
9521 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
9522 type-conformant entry only if they are homographs.
9523
9524 2003-11-13 GNAT Script <nobody@gnat.com>
9525
9526 * Make-lang.in: Makefile automatically updated
9527
9528 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9529
9530 * adadecode.c: Use <> form of include for ctype.h.
9531 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
9532
9533 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9534
9535 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
9536 Works around PR middle-end/6552.
9537
9538 2003-11-10 Ed Falis <falis@gnat.com>
9539
9540 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
9541
9542 * 5zinit.adb: (Install_Handler): Moved back to spec
9543 (Install_Signal_Handlers): Deleted
9544
9545 * 5zthrini.adb: Added context clause for System.Storage_Elements
9546 (Register): Only handles creation of taskVar; initialization moved to
9547 Thread_Body_Enter.
9548 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
9549 Added declaration of environment task secondary stack and
9550 initialization.
9551
9552 * s-thread.adb: Implement bodies for thread body processing
9553
9554 * s-thread.ads:
9555 Added comment identifying supported targets for pragma Thread_Body.
9556
9557 2003-11-10 Pascal Obry <obry@gnat.com>
9558
9559 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
9560 GNAT_MAX_PATH_LEN.
9561
9562 * s-fileio.adb:
9563 (Open): Properly check for string length before copying into the buffer.
9564 Raises Name_Error if buffer is too small. Note that this was a potential
9565 buffer overflow.
9566
9567 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
9568
9569 * bindgen.adb, comperr.adb: Code clean ups.
9570 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
9571
9572 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
9573
9574 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
9575
9576 2003-11-10 Vincent Celier <celier@gnat.com>
9577
9578 * gprcmd.adb:
9579 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
9580 installation.
9581
9582 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
9583
9584 * prj.adb: (Project_Empty): Add new boolean component Virtual
9585
9586 * prj.ads: (Virtual_Prefix): New constant string
9587 (Project_Data): New boolean component Virtual
9588
9589 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
9590 a library project is extended by a virtual extending project.
9591
9592 * prj-part.adb:
9593 Modifications throughout to implement extending-all project, including:
9594 (Virtual_Hash, Processed_Hash): New hash tables
9595 (Create_Virtual_Extending_Project): New procedure
9596 (Look_For_Virtual_Projects_For): New procedure
9597
9598 * prj-proc.adb:
9599 (Process): After checking the projects, if main project is an
9600 extending-all project, set the object directory of all virtual extending
9601 project to the object directory of the main project.
9602 Adjust error message when a virtual extending project has the same
9603 object directory as an project being extended.
9604 (Recursive_Process): If name starts with the virtual prefix, set Virtual
9605 to True in the project data.
9606
9607 * prj-tree.adb:
9608 (Default_Project_Node): Add new boolean component Extending_All
9609 (Is_Extending_All): New function
9610 (Set_Is_Extending_All): New procedure
9611
9612 * prj-tree.ads: (Is_Extending_All): New function
9613 (Set_Is_Extending_All): New procedure
9614 (Project_Node_Record): New boolean component Extending_All
9615
9616 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
9617
9618 * vms_data.ads:
9619 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
9620
9621 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
9622 "gprcmd prefix" to define it.
9623
9624 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
9625
9626 * einfo.ads: Fix a typo and remove an extraneous word in comments.
9627
9628 * lib-load.adb:
9629 (Create_Dummy_Package_Unit): Set the scope of the entity for the
9630 created dummy package to Standard_Standard, not to itself, to
9631 defend other parts of the front-end against encoutering a cycle in
9632 the scope chain.
9633
9634 * sem_ch10.adb:
9635 (Analyze_With_Clause): When setting the entities for the successive
9636 N_Expanded_Names that constitute the name of a child unit, do not
9637 attempt to go further than Standard_Standard in the chain of scopes.
9638 This case arises from the placeholder units created by
9639 Create_Dummy_Package_Unit in the case of a with_clause for a
9640 nonexistent child unit.
9641
9642 2003-11-10 Ed Schonberg <schonberg@gnat.com>
9643
9644 * exp_ch6.adb:
9645 (Expand_Thread_Body): Place subprogram on scope stack, so that new
9646 declarations are given the proper scope.
9647
9648 * sem_ch13.adb:
9649 (Check_Expr_Constants): Reject an expression that contains a constant
9650 created during expansion, and that appears after the object to which
9651 the address clause applies.
9652
9653 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
9654 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
9655 that uses 'Range of a function call with controlled components, so
9656 that the function result can be finalized before starting the loop.
9657
9658 * sem_ch8.adb:
9659 (Find_Selected_Component): Improve error message when prefix is
9660 an implicit dereference of an incomplete type.
9661
9662 2003-11-10 Robert Dewar <dewar@gnat.com>
9663
9664 * opt.ads: New Print_Standard flag for -gnatS switch
9665
9666 * sem_ch13.adb: Remove some additional checks for unaligned arrays
9667
9668 * cstand.adb (Create_Standard): Print out package standard if -gnatS
9669 switch set
9670
9671 * debug.adb: Update doc for -gnatds to discuss relationship with new
9672 -gnatS flag
9673
9674 * sinfo.adb: Add new field Entity_Or_Associated_Node
9675
9676 * sinfo.ads: Add new field Entity_Or_Associated_Node
9677 Update documentation for Associated_Node and Entity fields to clarify
9678 relationship and usage.
9679
9680 * sprint.adb:
9681 (Write_Id): Properly process Associated_Node field in generic template
9682
9683 * switch-c.adb:
9684 Recognize new -gnatS switch for printing package Standard
9685 This replaces gnatpsta
9686
9687 * usage.adb:
9688 Add line for new -gnatS switch for printing package Standard
9689 This replaces gnatpsta
9690
9691 2003-11-10 Andreas Jaeger <aj@suse.de>
9692
9693 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
9694 integer.
9695
9696 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9697
9698 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
9699 by gnat1.
9700
9701 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9702
9703 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
9704 no longer needed.
9705
9706 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
9707
9708 * sysdep.c: Add handling of cygwin.
9709
9710 2003-11-10 GNAT Script <nobody@gnat.com>
9711
9712 * Make-lang.in: Makefile automatically updated
9713
9714 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
9715
9716 PR 12950
9717 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
9718 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
9719 Replace GNAT_ROOT by GCC_ROOT.
9720
9721 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
9722
9723 2003-11-06 Zack Weinberg <zack@codesourcery.com>
9724
9725 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
9726 and update for changed meaning of GET_MODE_BITSIZE.
9727
9728 2003-11-04 Doug Rupp <rupp@gnat.com>
9729
9730 * sysdep.c: Problem discovered during IA64 VMS port.
9731 [VMS] #include <unixio.h> to get proper prototypes.
9732
9733 * adaint.c:
9734 Issues discovered/problems fixed during IA64 VMS port.
9735 [VMS] #define _POSIX_EXIT for proper semantics.
9736 [VMS] #include <unixio.h> for proper prototypes.
9737 [VMS] (fork): #define IA64 version.
9738 (__gnat_os_exit): Remove unnecessary VMS specific code.
9739
9740 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9741
9742 Part of PR ada/12806
9743
9744 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
9745 tree, not integer.
9746
9747 * decl.c:
9748 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
9749 not integer.
9750
9751 * targtyps.c, decl.c, misc.c,
9752 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
9753 routines to work around change in FP sizing semantics in GCC.
9754
9755 * utils.c:
9756 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
9757
9758 * gigi.h: (enumerate_modes): New function.
9759
9760 * Make-lang.in: (ada/misc.o): Add real.h.
9761
9762 * misc.c: (enumerate_modes): New function.
9763
9764 2003-11-04 Robert Dewar <dewar@gnat.com>
9765
9766 * 3vtrasym.adb: Minor reformatting
9767 Use terminology encoded/decoded name, rather than C++ specific notion
9768 of mangling (this is the terminology used throughout GNAT).
9769
9770 * einfo.h: Regenerated
9771
9772 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
9773
9774 * exp_ch6.adb:
9775 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
9776
9777 * par-prag.adb: Add dummy entry for Thread_Body pragma
9778
9779 * rtsfind.ads:
9780 Add entries for System.Threads entities for thread body processing
9781
9782 * sem_attr.adb:
9783 (Analyze_Pragma, Access attributes): Check these are not applied to a
9784 thread body, since this is not permitted
9785
9786 * sem_prag.adb: Add processing for Thread_Body pragma.
9787 Minor comment fix.
9788
9789 * sem_res.adb:
9790 (Resolve_Call): Check for incorrect attempt to call a thread body
9791 procedure with a direct call.
9792
9793 * snames.ads, snames.adb: Add entry for Thread_Body pragma
9794 Add names associated with thread body expansion
9795
9796 * snames.h: Add entry for Thread_Body pragma
9797
9798 * s-thread.adb: Add entries for thread body processing
9799 These are dummy bodies so far
9800
9801 * s-thread.ads: Add documentation on thread body handling.
9802 Add entries for thread body processing.
9803
9804 2003-11-04 Javier Miranda <miranda@gnat.com>
9805
9806 * sem_ch10.adb:
9807 (Build_Limited_Views): Return after posting an error in case of limited
9808 with_clause on subprograms, generics, instances or generic renamings
9809 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
9810 on subprograms, generics, instances or generic renamings
9811
9812 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
9813
9814 * raise.c (setup_to_install): Correct mistake in last revision; two
9815 arguments out of order.
9816
9817 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
9818 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
9819 notice, missed in previous change.
9820 Remove trailing blanks and other style errors introduced in previous
9821 change.
9822
9823 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
9824
9825 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
9826 rid of the wrapper for a LJM type, ensuring we don't do that if the
9827 field is addressable. This avoids potential low level type view
9828 mismatches later on, for instance in a by-reference argument passing
9829 process.
9830
9831 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9832
9833 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
9834 aligned at byte boundary.
9835
9836 2003-11-04 Joel Brobecker <brobecker@gnat.com>
9837
9838 * decl.c (components_to_record): Do not delete the empty variants from
9839 the end of the union type.
9840
9841 2003-11-04 Ed Schonberg <schonberg@gnat.com>
9842
9843 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
9844 operation for a derived type, an explicit declaration may use a local
9845 subtype of Boolean.
9846
9847 2003-11-04 Vincent Celier <celier@gnat.com>
9848
9849 * make.adb (Gnatmake): Allow main sources on the command line with a
9850 library project when it is only for compilation (no binding or
9851 linking).
9852
9853 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9854
9855 * Makefile.in: Remove many duplicate variables.
9856
9857 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
9858
9859 * Make-lang.in (dvi): Move targets to $(docobjdir).
9860 (gnat_ug_vms.dvi): Simplify rule and adjust target.
9861 (gnat_ug_wnt.dvi): Likewise.
9862 (gnat_ug_unx.dvi): Likewise.
9863 (gnat_ug_vxw.dvi): Likewise.
9864 (gnat_rm.dvi): Likewise.
9865 (gnat-style.dvi): Likewise.
9866
9867 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
9868
9869 * gigi.h: Missed commit from update for C90.
9870
9871 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
9872
9873 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
9874
9875 2003-10-31 Andreas Schwab <schwab@suse.de>
9876
9877 * raise.c (get_action_description_for): Fix typo in last change.
9878
9879 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
9880
9881 PR ada/12761
9882 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
9883 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
9884
9885 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
9886
9887 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
9888 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
9889 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
9890 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
9891 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
9892
9893 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
9894
9895 * 3vtrasym.adb:
9896 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
9897 numbers when symbol name is too long.
9898
9899 2003-10-30 Ed Falis <falis@gnat.com>
9900
9901 * g-signal.ads, g-signal.adb: New files
9902
9903 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
9904
9905 * Makefile.rtl: Introduce GNAT.Signals
9906
9907 2003-10-30 Robert Dewar <dewar@gnat.com>
9908
9909 * freeze.adb: Minor reformatting
9910
9911 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
9912
9913 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
9914 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
9915 New handling of Id_Check parameter to improve recognition of keywords
9916 used as identifiers.
9917 Update copyright notice to include 2003
9918
9919 2003-10-29 Robert Dewar <dewar@gnat.com>
9920
9921 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
9922 sem_ch10.adb: Minor reformatting
9923
9924 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
9925 (Expand_Assign_Record): Test right hand side for bit unaligned as well
9926
9927 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
9928
9929 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
9930 Support for TBK$SYMBOLIZE-based symbolic traceback.
9931
9932 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
9933
9934 * exp_disp.adb:
9935 Revert previous change, that did not work well when pragma No_Run_Time
9936 was used in conjunction with a run-time other than ZFP.
9937
9938 2003-10-29 Vincent Celier <celier@gnat.com>
9939
9940 * make.adb:
9941 (Gnatmake): When there are no Ada mains in attribute Main, disable the
9942 bind and link steps only is switch -z is not used.
9943
9944 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
9945
9946 * Makefile.generic: Remove duplicated setting of CC.
9947
9948 * Makefile.prolog: Set CC to gcc by default, to override make's
9949 default (cc).
9950
9951 * einfo.h: Regenerated.
9952
9953 2003-10-29 Ed Schonberg <schonberg@gnat.com>
9954
9955 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
9956 current body, after compiling subunit.
9957
9958 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
9959 when in deleted code, because gigi needs properly ordered freeze
9960 actions to annotate types.
9961
9962 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
9963 prevent the premature freezing of record type that contains
9964 subcomponents with a private type that does not yet have a completion.
9965
9966 2003-10-29 Javier Miranda <miranda@gnat.com>
9967
9968 * sem_ch12.adb:
9969 (Analyze_Package_Instantiation): Check that instances can not be used in
9970 limited with_clauses.
9971
9972 * sem_ch8.adb:
9973 (Analyze_Package_Renaming): Check that limited withed packages cannot
9974 be renamed. Improve text on error messages related to limited
9975 with_clauses.
9976
9977 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
9978
9979 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
9980 Update copyright notice.
9981
9982 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
9983 (Install_Limited_Context_Clauses): New subprogram that isolates all the
9984 checks required for limited context_clauses and installs the limited
9985 view.
9986 (Install_Limited_Withed_Unit): Complete its documentation.
9987 (Analyze_Context): Check that limited with_clauses are only allowed in
9988 package specs.
9989 (Install_Context): Call Install_Limited_Context_Clauses after the
9990 parents have been installed.
9991 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
9992 package as 'From_With_Type'; this mark indicates that the limited view
9993 is installed. Used to check bad usages of limited with_clauses.
9994 (Build_Limited_Views): Do not add shadow entities to the scope's list
9995 of entities. Do not add real entities to the Non_Limited_Views chain.
9996 Improve error notification.
9997 (Remove_Context_Clauses): Remove context clauses in two phases:
9998 limited views first and regular views later (to maintain the
9999 stack model).
10000 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
10001 its visible entities.
10002
10003 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
10004
10005 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
10006 with any type that Is_Fixed_Point_Type.
10007
10008 * sinfo.ads: Fix documentation for Associated_Node attribute.
10009
10010 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
10011
10012 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
10013 both '-gnatc' and '-gnatt' are specified.
10014
10015 * atree.adb (Initialize): Add initialization for Node_Count (set to
10016 zero).
10017
10018 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10019
10020 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
10021 do not consider as Pure.
10022
10023 Part of implementation of function-at-a-time:
10024
10025 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
10026 (tree_transform): Add new argument to build_component_ref.
10027 (tree_transform, case N_Assignment_Statement): Make and return an
10028 EXPR_STMT.
10029 (tree_transform): If result IS_STMT, set flags and return it.
10030 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
10031
10032 * utils2.c (build_simple_component_ref, build_component_ref): Add new
10033 arg, NO_FOLD_P.
10034 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
10035 (build_allocator): Likewise.
10036
10037 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
10038 Add new arg to build_component_ref.
10039 (maybe_unconstrained_array, unchecked_convert): Likewise.
10040
10041 * ada-tree.def (EXPR_STMT): New code.
10042
10043 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
10044
10045 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
10046 build_component_ref calls.
10047
10048 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
10049
10050 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
10051 (build_component_ref): Add new argument, NO_FOLD_P.
10052
10053 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
10054
10055 * Makefile.generic: Add missing substitution on object_deps handling.
10056
10057 PR ada/5909:
10058 * Make-lang.in (check-ada): Enable ACATS test suite.
10059
10060 2003-10-27 Robert Dewar <dewar@gnat.com>
10061
10062 * exp_ch3.adb:
10063 (Freeze_Array_Type): We do not need an initialization routine for types
10064 derived from String or Wide_String. They should be treated the same
10065 as String and Wide_String themselves. This caused problems with the
10066 use of Initialize_Scalars.
10067
10068 * exp_ch5.adb:
10069 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
10070 composites. This allows use of component clauses that are not byte
10071 aligned.
10072
10073 * sem_prag.adb:
10074 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
10075 is an attempt to pack an array of atomic objects.
10076
10077 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
10078
10079 2003-10-27 Pascal Obry <obry@gnat.com>
10080
10081 * g-dirope.adb:
10082 (Basename): Check for drive letters in a pathname only on DOS based OS.
10083
10084 2003-10-27 Vincent Celier <celier@gnat.com>
10085
10086 * make.adb:
10087 (Gnatmake): When unable to change dir to the object dir, display the
10088 content of the parent dir of the obj dir, to try to understand why this
10089 happens.
10090
10091 2003-10-27 GNAT Script <nobody@gnat.com>
10092
10093 * Make-lang.in: Makefile automatically updated
10094
10095 2003-10-27 Ed Schonberg <schonberg@gnat.com>
10096
10097 * sem_ch12.adb:
10098 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
10099 should not be done in Save/Restore_Scope_Stack, because it is performed
10100 locally.
10101
10102 * sem_ch8.adb:
10103 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
10104 whether use clauses should be removed/restored.
10105
10106 * sem_ch8.ads:
10107 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
10108 whether use clauses should be removed/restored.
10109
10110 2003-10-26 Andreas Jaeger <aj@suse.de>
10111
10112 * Makefile.in: Remove duplicated lines.
10113
10114 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
10115
10116 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
10117 minimize the differences with ACT tree.
10118
10119 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
10120 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
10121 Gnatvsn.Gnat_Static_Version_String to reduce differences between
10122 ACT and FSF trees.
10123
10124 2003-10-24 Pascal Obry <obry@gnat.com>
10125
10126 * adadecode.c (ostrcpy): New function.
10127 (__gnat_decode): Use ostrcpy of strcpy.
10128 (has_prefix): Set first parameter a const.
10129 (has_suffix): Set first parameter a const.
10130 Update copyright notice. Fix source name in header.
10131 Removes a trailing space.
10132 PR ada/12014.
10133
10134 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
10135
10136 * exp_disp.adb:
10137 Remove the test against being in No_Run_Time_Mode before generating a
10138 call to Register_Tag. It is redundant with the test against the
10139 availability of the function Register_Tag.
10140
10141 2003-10-24 Vincent Celier <celier@gnat.com>
10142
10143 * g-catiio.adb: (Month_Name): Correct spelling of February
10144
10145 * make.adb: (Mains): New package
10146 (Initialize): Call Mains.Delete
10147 (Gnatmake): Check that each main on the command line is a source of a
10148 project file and, if there are several mains, each of them is a source
10149 of the same project file.
10150 (Gnatmake): When a foreign language is specified in attribute Languages,
10151 no main is specified on the command line and attribute Mains is not
10152 empty, only build the Ada main. If there is no Ada main, just compile
10153 the Ada sources and their closure.
10154 (Gnatmake): If a main is specified on the command line with directory
10155 information, check that the source exists and, if it does, that the path
10156 is the actual path of a source of a project.
10157
10158 * prj-env.adb:
10159 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
10160 Full_Path is True, return the full path instead of the simple file name.
10161 (Project_Of): New function
10162
10163 * prj-env.ads:
10164 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
10165 defaulted to False.
10166 (Project_Of): New function
10167
10168 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
10169
10170 * Makefile.generic:
10171 Ensure objects of main project are always checked and rebuilt if needed.
10172 Set CC to gcc by default.
10173 Prepare new handling of link by creating a global archive (not activated
10174 yet).
10175
10176 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
10177 stringt.h: Update copyright notice. Remove trailing blanks.
10178 Fix source name in header.
10179
10180 2003-10-24 Robert Dewar <dewar@gnat.com>
10181
10182 * sem_ch12.adb: Minor reformatting
10183
10184 * sem_ch3.adb:
10185 Minor reformatting (including new function return style throughout)
10186
10187 * sem_ch3.ads:
10188 Minor reformatting (including new function return style throughout)
10189
10190 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
10191
10192 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
10193 stringt.h: Update copyright notice. Remove trailing blanks.
10194 Fix source name in header.
10195
10196 2003-10-24 GNAT Script <nobody@gnat.com>
10197
10198 * Make-lang.in: Makefile automatically updated
10199
10200 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
10201
10202 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
10203 stringt.h: Convert to ISO C90 declarations and definitions.
10204
10205 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
10206
10207 PR ada/11978:
10208 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
10209 External_Tag attribute definition clauses.
10210
10211 2003-10-23 Ed Schonberg <schonberg@gnat.com>
10212
10213 PR ada/7613:
10214 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
10215 child unit, generate a fully qualified name to avoid spurious errors
10216 when the context contains renamings of different child units with
10217 the same simple name.
10218
10219 * exp_dbug.ads: Add documentation on name qualification for renamings
10220 of child units.
10221
10222 2003-10-23 Robert Dewar <dewar@gnat.com>
10223
10224 * g-regpat.ads, g-regpat.adb: Minor reformatting
10225
10226 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
10227
10228 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
10229
10230 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10231
10232 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
10233 Machine call.
10234
10235 * urealp.h: (Machine): Update to proper definition.
10236
10237 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
10238
10239 * init.c, adaint.c: Minor reformatting.
10240
10241 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
10242
10243 * adaint.c (w32_epoch_offset): Define static const at file level.
10244 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
10245 rather than t_create, t_access in call to GetFileTime. Use union
10246 to convert between FILETIME and unsigned long long.
10247 (__gnat_file_time_name): Test for invalid file handle.
10248 (__gnat_set_filetime_name): Support win32 targets using
10249 w32api SetFileTime.
10250
10251 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
10252
10253 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
10254
10255 * ctrl_c.c (__gnat_int_handler): Remove declaration.
10256
10257 * decl.c (creat_concat_name): Const-ify prefix.
10258
10259 * adaint.c: Include ctype.h if __MINGW32__.
10260 (__gnat_readlink): Mark arguments as possibly unused.
10261 (__gnat_symlink): Likewise.
10262 (__gnat_is_symbolic_link): Likewise.
10263 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
10264 declaration
10265 (__gnat_file_time_name): Don't declare struct stat statbuf when
10266 not needed.
10267 (__gnat_is_absolute_path): Add parenthesis around condition of
10268 'if' statement to avoid warning.
10269 (__gnat_plist_init): Specify void as parameter.
10270 (plist_enter): Likewise.
10271 (plist_leave): Likewise.
10272 (remove_handle): Make static. Initialize prev.
10273
10274 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
10275
10276 * Makefile.in: Disable build of gnatpsta. PR ada/10110.
10277 * cstreams.c (__gnat_full_name): Minor improvements and clean up
10278 of previous change.
10279
10280 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10281
10282 * tracebak.c (MAX): Avoid redefinition warning.
10283
10284 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
10285 Change msg to const char *.
10286 (__gnat_install_handler): Remove ss, unused.
10287 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
10288 to const char *.
10289 * cstreams.c (__gnat_full_name): Declare p only when used.
10290 (__gnat_full_name) [sgi] Return buffer.
10291
10292 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
10293
10294 * mingw32.h: New file.
10295 * gnat_wrapper.adb: New file.
10296
10297 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
10298
10299 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
10300 string match a pre compiled regular expression (the corresponding
10301 version of the function working on a raw regular expression)
10302 Fix typos in various comments
10303 Update copyright notice in spec
10304
10305 2003-10-21 Gary Dismukes <dismukes@gnat.com>
10306
10307 * exp_ch3.adb:
10308 (Component_Needs_Simple_Initialization): Return False when the type is a
10309 packed bit array. Revise spec comments to document this case.
10310
10311 * exp_prag.adb:
10312 (Expand_Pragma_Import): Set any expression on the imported object to
10313 empty to avoid initializing imported objects (in particular this
10314 covers the case of zero-initialization of bit arrays).
10315 Update copyright notice.
10316
10317 2003-10-21 Ed Schonberg <schonberg@gnat.com>
10318
10319 * sem_ch12.adb:
10320 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
10321 a subunit is missing.
10322 (Instantiate_Subprogram_Body): If body of function is missing, set type
10323 of return expression explicitly in dummy body, to prevent cascaded
10324 errors when a subunit is missing.
10325 Fixes PR 5677.
10326
10327 * sem_ch3.adb:
10328 (Access_Subprogram_Declaration): Verify that return type is valid.
10329 Fixes PR 8693.
10330
10331 * sem_elab.adb:
10332 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
10333 generic.
10334 Fixes PR 12318.
10335
10336 * sem_util.adb:
10337 (Corresponding_Discriminant): If the scope of the discriminant is a
10338 private type without discriminant, use its full view.
10339 Fixes PR 8247.
10340
10341 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
10342
10343 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
10344 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
10345 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
10346 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
10347 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
10348 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
10349 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
10350 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
10351 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
10352 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
10353 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
10354 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
10355 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
10356 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
10357 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
10358 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
10359 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
10360 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
10361 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
10362 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
10363 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
10364 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
10365 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
10366 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
10367 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
10368 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
10369 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
10370 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
10371 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
10372 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
10373 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
10374 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10375 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
10376 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
10377 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
10378 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
10379 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
10380 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
10381 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
10382 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
10383 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
10384 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
10385 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
10386 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
10387 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
10388 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
10389 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
10390 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
10391 vms_conv.ads, vms_conv.adb, vms_data.ads,
10392 vxaddr2line.adb: Files added. Merge with ACT tree.
10393
10394 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
10395 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
10396 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
10397 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
10398 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
10399 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
10400 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
10401 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
10402 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
10403 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
10404
10405 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
10406 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
10407 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
10408 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
10409 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
10410 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
10411 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
10412 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
10413 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
10414 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
10415 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
10416 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
10417 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
10418 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
10419 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
10420 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
10421 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
10422 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10423 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
10424 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
10425 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
10426 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
10427 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
10428 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
10429 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
10430 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
10431 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
10432 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
10433 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
10434 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
10435 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
10436 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
10437 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
10438 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
10439 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
10440 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
10441 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
10442 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
10443 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
10444 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
10445 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
10446 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
10447 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
10448 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
10449 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
10450 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
10451 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
10452 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
10453 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
10454 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
10455 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
10456 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
10457 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
10458 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
10459 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
10460 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
10461 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
10462 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
10463 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
10464 checks.adb, checks.ads, cio.c, comperr.adb,
10465 comperr.ads, csets.adb, cstand.adb, cstreams.c,
10466 debug_a.adb, debug_a.ads, debug.adb, decl.c,
10467 einfo.adb, einfo.ads, errout.adb, errout.ads,
10468 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
10469 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
10470 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
10471 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
10472 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
10473 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
10474 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
10475 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
10476 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
10477 fe.h, fmap.adb, fmap.ads, fname.adb,
10478 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
10479 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
10480 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
10481 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10482 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10483 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10484 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
10485 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
10486 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
10487 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
10488 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
10489 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
10490 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
10491 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
10492 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
10493 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
10494 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
10495 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
10496 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
10497 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
10498 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
10499 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
10500 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
10501 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
10502 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
10503 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
10504 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
10505 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
10506 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
10507 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
10508 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
10509 layout.adb, lib.adb, lib.ads, lib-list.adb,
10510 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
10511 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
10512 link.c, live.adb, make.adb, make.ads,
10513 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
10514 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10515 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
10516 misc.c, mkdir.c, mlib.adb, mlib.ads,
10517 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
10518 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
10519 namet.adb, namet.ads, namet.h, nlists.ads,
10520 nlists.h, nmake.adt, opt.adb, opt.ads,
10521 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
10522 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
10523 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
10524 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
10525 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
10526 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
10527 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
10528 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
10529 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10530 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10531 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10532 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10533 prj-util.adb, prj-util.ads, raise.c, raise.h,
10534 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
10535 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
10536 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
10537 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
10538 scans.ads, scn.adb, scn.ads, s-crc32.adb,
10539 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
10540 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
10541 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10542 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
10543 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
10544 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10545 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10546 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
10547 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
10548 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
10549 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
10550 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
10551 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
10552 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
10553 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
10554 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
10555 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
10556 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
10557 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
10558 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
10559 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
10560 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
10561 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
10562 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
10563 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
10564 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
10565 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
10566 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
10567 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
10568 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
10569 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
10570 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
10571 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
10572 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
10573 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
10574 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
10575 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
10576 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
10577 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
10578 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
10579 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
10580 stringt.adb, stringt.ads, stringt.h, style.ads,
10581 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
10582 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
10583 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
10584 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
10585 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
10586 table.adb, table.ads, targparm.adb, targparm.ads,
10587 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
10588 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
10589 ttypes.ads, types.ads, types.h, uintp.adb,
10590 uintp.ads, uintp.h, uname.adb, urealp.adb,
10591 urealp.ads, urealp.h, usage.adb, utils2.c,
10592 utils.c, validsw.adb, validsw.ads, widechar.adb,
10593 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
10594 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
10595 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
10596 gnatvsn.ads: Merge with ACT tree.
10597
10598 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
10599
10600 2003-10-20 Mark Mitchell <mark@codesourcery.com>
10601
10602 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
10603 (gnat_ug_vmx.info): Likewise.
10604 (gnat_ug_vxw.info): Likewise.
10605 (gnat_ug_wnt.info): Likewise.
10606 (gnat_rm.info): Likewise.
10607 (gnat-style.info): Likewise.
10608
10609 * Make-lang.in (ada.install-info): Remove target.
10610 (info): New target.
10611 (install-info): Likewise.
10612 (gnat_ug_unx.info): Simplify rule.
10613 (gnat_ug_vmx.info): Likewise.
10614 (gnat_ug_vxw.info): Likewise.
10615 (gnat_ug_wnt.info): Likewise.
10616 (gnat_rm.info): Likewise.
10617 (gnat-style.info): Likewise.
10618
10619 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
10620
10621 * Make-lang.in: Replace uses of $(target_alias) with
10622 $(target_noncanonical).
10623 * ada/Makefile.in: Remove unused mention of $(target_alias).
10624
10625 2003-10-06 Mark Mitchell <mark@codesourcery.com>
10626
10627 * Make-lang.in (ada.info): Replace with ...
10628 (info): ... this.
10629 (ada.dvi): Replace with ...
10630 (dvi): ... this.
10631
10632 2003-09-29 Zack Weinberg <zack@codesourcery.com>
10633
10634 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
10635 initialize dconstp5 and dconstmp5.
10636
10637 2003-09-28 Richard Henderson <rth@redhat.com>
10638
10639 * trans.c (tree_transform): Update call to expand_asm_operands.
10640
10641 2003-09-21 Richard Henderson <rth@redhat.com>
10642
10643 * trans.c, utils.c: Revert.
10644
10645 2003-09-21 Richard Henderson <rth@redhat.com>
10646
10647 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
10648 change to const.
10649
10650 2003-09-04 Michael Matz <matz@suse.de>
10651
10652 * misc.c: Include "target.h".
10653 * Make-lang.in (misc.o): Add dependency on target.h.
10654
10655 2003-09-03 DJ Delorie <dj@redhat.com>
10656
10657 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
10658 hook.
10659
10660 2003-08-30 Zack Weinberg <zack@codesourcery.com>
10661
10662 * Makefile.in: Update substitutions to match changes to
10663 configure. Use include directives instead of @-insertions
10664 to read in host and target fragments. Add a rule to
10665 regenerate ada/Makefile.
10666
10667 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
10668
10669 * lang-options.h: Remove.
10670 * lang.opt: Add help text.
10671
10672 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
10673
10674 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
10675 calls.
10676
10677 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
10678
10679 * misc.c (gnat_handle_option): Don't handle filenames.
10680
10681 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
10682
10683 * Make-lang.in: Replace PWD with PWD_COMMAND.
10684 * Makefile.adalib: Likewise.
10685 * Makefile.in: Likewise.
10686
10687 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
10688
10689 * misc.c (gnat_argv): Revert last change.
10690 (gnat_handle_option, gnat_init_options): Copy arguments.
10691
10692 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
10693
10694 * misc.c (gnat_argv): Make const.
10695
10696 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
10697
10698 * misc.c (save_argc, save_argv): Keep non-static!
10699
10700 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
10701
10702 * misc.c (save_argc, save_argv): Make static.
10703 (gnat_init_options): New prototype.
10704 (gnat_init_options): Update.
10705
10706 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
10707
10708 * gnat_ug.texi: Remove unlikely characters from @vars.
10709 * gnat_ug_vms.texi: Regenerate.
10710
10711 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
10712
10713 * misc.c (record_code_position): Adjust emit_note call.
10714
10715 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
10716
10717 * misc.c (gnat_handle_option): Don't check for missing arguments.
10718
10719 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
10720
10721 * utils.c (end_subprog_body): Adjust expand_function_end call.
10722
10723 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
10724
10725 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
10726 Bind_Main_Program.
10727
10728 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
10729
10730 * lang.opt: Declare Ada.
10731 * misc.c (gnat_init_options): Update.
10732
10733 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
10734
10735 * utils.c (begin_subprog_body): Adjust init_function_start call.
10736
10737 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
10738
10739 * Make-lang.in: Update to use options.c and options.h.
10740 * misc.c: Include options.h not aoptions.h.
10741 (gnat_handle_option): Abort on unrecognized switch.
10742 (gnat_init_options): Request Ada switches.
10743
10744 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
10745
10746 * lang.opt: Add -Wall.
10747 * misc.c (gnat_handle_option): Handle it.
10748
10749 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
10750
10751 * misc.c (gnat_handle_option): Fix warnings.
10752
10753 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
10754
10755 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
10756
10757 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
10758
10759 * Make-lang.in: Update to handle command-line options.
10760 * lang.opt: New file.
10761 * misc.c: Include aoptions.h.
10762 (cl_options_count, cl_options): Remove.
10763 (gnat_handle_option): New.
10764 (gnat_decode_option): Remove.
10765 (LANG_HOOKS_DECODE_OPTION): Remove.
10766 (LANG_HOOKS_HANDLE_OPTION): Override.
10767
10768 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
10769
10770 * init.c, misc.c, trans.c, utils.c: Remove dead code.
10771
10772 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
10773
10774 * Makefile.in: Replace "host_canonical" with "host" for autoconf
10775 substitution.
10776
10777 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
10778
10779 * Make-lang.in: Update.
10780 * misc.c: Include opts.h. Define cl_options_count and cl_options.
10781
10782 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
10783
10784 * misc.c (gnat_init_options): Update.
10785
10786 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
10787
10788 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
10789 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
10790 __attribute__ ((__unused__)).
10791
10792 2003-06-05 Jan Hubicka <jh@suse.cz>
10793
10794 * Make-lang.in: Add support for stageprofile and stagefeedback
10795
10796 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
10797
10798 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
10799 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
10800
10801 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
10802
10803 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
10804 Remove non-VMS directive.
10805 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
10806 alternatives.
10807 (Examples of gnatls Usage): Remove VMS alternative.
10808
10809 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
10810
10811 PR ada/9953:
10812 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
10813 and turn ZCX_By_Default back to False since the underlying support
10814 is not quite there yet.
10815
10816 2003-06-01 Andreas Jaeger <aj@suse.de>
10817
10818 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
10819 and ROUND_TYPE_SIZE_UNIT.
10820
10821 2003-05-22 Geert Bosch <bosch@gnat.com>
10822
10823 * gnat_rm.texi : Remove reference to Ada Core Technologies.
10824
10825 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
10826
10827 * trans.c (tree_transform): Use location_t and input_location
10828 directly.
10829 (build_unit_elab): Likewise.
10830 * utils.c (create_label_decl): Likewise.
10831
10832 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
10833
10834 * trans.c (tree_transform, build_unit_elab,
10835 set_lineno): Rename lineno to input_line.
10836 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
10837 end_subprog_body): Likewise.
10838 * utils2.c (build_call_raise): Likewise.
10839
10840 2003-05-01 Laurent Guerby <guerby@acm.org>
10841
10842 PR ada/10546
10843 * 5iosinte.ads: Increase pthread_cond_t size to match recent
10844 LinuxThread and NPTL version, merge from ACT.
10845
10846 2003-04-28 Zack Weinberg <zack@codesourcery.com>
10847
10848 * utils.c (convert): No need to clear TREE_CST_RTL.
10849
10850 2003-04-23 Geert Bosch <bosch@gnat.com>
10851
10852 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
10853 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
10854 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
10855 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
10856 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
10857 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
10858 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
10859 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
10860 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
10861 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
10862 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
10863 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
10864 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
10865 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
10866 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
10867 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
10868 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
10869 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
10870 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
10871 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
10872 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
10873 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
10874 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10875 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
10876 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
10877 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
10878 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
10879 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
10880 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
10881 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
10882 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
10883 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
10884 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
10885 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
10886 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
10887 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
10888 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
10889 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
10890 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
10891 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
10892 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
10893 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
10894 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
10895 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
10896 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
10897 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
10898 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
10899 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
10900 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
10901 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
10902 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
10903 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
10904 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
10905 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
10906 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
10907 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
10908 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
10909 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
10910 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
10911 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
10912 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
10913 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
10914 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
10915 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
10916 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
10917 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
10918 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
10919 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
10920 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
10921 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
10922 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
10923 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
10924 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
10925 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
10926 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
10927 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
10928 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
10929 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
10930 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
10931 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
10932 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
10933 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
10934 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
10935 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
10936 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
10937 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
10938 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
10939 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
10940 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
10941 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
10942 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
10943 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
10944 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
10945 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
10946 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
10947 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
10948 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
10949 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
10950 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
10951 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
10952 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
10953 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
10954 ali.adb, ali.ads, alloc.ads, argv.c,
10955 atree.adb, atree.ads, atree.h, aux-io.c,
10956 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
10957 binde.adb, binde.ads, binderr.adb, binderr.ads,
10958 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
10959 butil.adb, butil.ads, cal.c, calendar.ads,
10960 casing.adb, casing.ads, ceinfo.adb, checks.adb,
10961 checks.ads, cio.c, comperr.adb, comperr.ads,
10962 config-lang.in, csets.adb, csets.ads, csinfo.adb,
10963 cstand.adb, cstand.ads, cuintp.c, debug.adb,
10964 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
10965 dec-io.ads, dec.ads, deftarg.c, directio.ads,
10966 einfo.adb, einfo.ads, elists.adb, elists.ads,
10967 elists.h, errno.c, errout.adb, errout.ads,
10968 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
10969 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
10970 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
10971 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
10972 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
10973 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
10974 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
10975 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
10976 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
10977 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
10978 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
10979 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
10980 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
10981 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
10982 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
10983 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
10984 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
10985 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
10986 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
10987 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
10988 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10989 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10990 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10991 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
10992 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
10993 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
10994 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
10995 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
10996 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
10997 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
10998 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
10999 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
11000 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
11001 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
11002 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
11003 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
11004 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
11005 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
11006 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
11007 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
11008 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
11009 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
11010 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
11011 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
11012 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
11013 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
11014 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
11015 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
11016 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
11017 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
11018 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
11019 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
11020 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
11021 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
11022 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
11023 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
11024 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
11025 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
11026 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
11027 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
11028 lib.adb, lib.ads, live.adb, live.ads,
11029 machcode.ads, make.adb, make.ads, makeusg.adb,
11030 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
11031 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
11032 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
11033 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
11034 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
11035 mlib.ads, namet.adb, namet.ads, nlists.adb,
11036 nlists.ads, opt.adb, opt.ads, osint-b.adb,
11037 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
11038 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
11039 osint.ads, output.adb, output.ads, par-ch10.adb,
11040 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
11041 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
11042 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
11043 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
11044 par-tchk.adb, par-util.adb, par.adb, par.ads,
11045 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
11046 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
11047 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
11048 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
11049 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
11050 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
11051 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
11052 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
11053 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
11054 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
11055 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
11056 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
11057 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
11058 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
11059 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
11060 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
11061 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
11062 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
11063 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
11064 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
11065 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
11066 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
11067 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
11068 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
11069 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
11070 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
11071 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
11072 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
11073 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
11074 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
11075 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
11076 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
11077 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
11078 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
11079 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
11080 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
11081 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
11082 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
11083 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
11084 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
11085 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
11086 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
11087 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
11088 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
11089 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
11090 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
11091 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
11092 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
11093 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
11094 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
11095 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
11096 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
11097 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
11098 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
11099 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
11100 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
11101 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
11102 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
11103 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
11104 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
11105 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
11106 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
11107 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
11108 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
11109 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
11110 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
11111 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
11112 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
11113 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
11114 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
11115 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
11116 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
11117 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
11118 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
11119 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
11120 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
11121 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
11122 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
11123 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
11124 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
11125 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
11126 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
11127 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
11128 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11129 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
11130 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
11131 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
11132 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
11133 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
11134 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
11135 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
11136 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
11137 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
11138 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
11139 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
11140 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
11141 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
11142 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
11143 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
11144 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
11145 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
11146 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
11147 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
11148 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
11149 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
11150 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
11151 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
11152 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
11153 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
11154 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
11155 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
11156 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
11157 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
11158 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
11159 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
11160 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
11161 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
11162 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
11163 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
11164 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
11165 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
11166 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
11167 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
11168 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
11169 snames.ads, sprint.adb, sprint.ads, stand.adb,
11170 stand.ads, stringt.adb, stringt.ads, style.adb,
11171 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
11172 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
11173 switch-m.ads, switch.adb, switch.ads, system.ads,
11174 table.adb, table.ads, targparm.adb, targparm.ads,
11175 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
11176 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
11177 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
11178 ttypef.ads, ttypes.ads, types.adb, types.ads,
11179 uintp.adb, uintp.ads, uname.adb, uname.ads,
11180 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
11181 usage.adb, usage.ads, validsw.adb, validsw.ads,
11182 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
11183 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
11184 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
11185 formatting and other trivial changes from ACT.
11186
11187 2003-04-12 Zack Weinberg <zack@codesourcery.com>
11188
11189 * gigi.h, utils2.c (build_constructor):
11190 Rename gnat_build_constructor. Use build_constructor.
11191 * decl.c (gnat_to_gnu_entity)
11192 * trans.c (tree_transform, pos_to_constructor, extract_values)
11193 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
11194 (unchecked_convert)
11195 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
11196 (fill_vms_descriptor):
11197 Update to match.
11198
11199 2003-04-06 Zack Weinberg <zack@codesourcery.com>
11200
11201 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
11202 * misc.c (gnat_tree_size): New function.
11203 (LANG_HOOKS_TREE_SIZE): Override.
11204
11205 2003-04-03 Jason Merrill <jason@redhat.com>
11206
11207 * misc.c (gnat_adjust_rli): #if 0.
11208
11209 2003-03-31 Geert Bosch <bosch@gnat.com>
11210
11211 PR ada/10020
11212 * link.c : Fix misspelled "const" keyword
11213
11214 2003-03-23 Mark Mitchell <mark@codesourcery.com>
11215
11216 PR c++/7086
11217 * utils2.c: Adjust calls to put_var_into_stack.
11218
11219 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
11220
11221 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
11222
11223 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
11224
11225 * misc.c (gnat_init): Update for new prototype.
11226
11227 2003-03-05 Olivier Hainque <hainque@gnat.com>
11228
11229 ada/9961
11230 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
11231 warning, and fix return type for the IN_RTS && !SJLJ case.
11232
11233 2003-03-04 Tom Tromey <tromey@redhat.com>
11234
11235 * Make-lang.in (ada.tags): New target.
11236
11237 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
11238
11239 ada/9911
11240 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
11241 wrapper, which name remains constant whatever underlying GCC
11242 scheme.
11243
11244 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
11245 the stable interface needed for a-except.
11246
11247 2003-03-02 Andreas Jaeger <aj@suse.de>
11248
11249 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11250 gnat_ug_wnt.texi: Regenerate.
11251
11252 2003-03-02 Laurent Guerby <guerby@acm.org>
11253
11254 * Makefile.in (install-gnatlib): Match previous change there
11255 so it works.
11256
11257 2003-02-28 Andreas Schwab <schwab@suse.de>
11258
11259 * Make-lang.in (install-gnatlib): Change to ada directory before
11260 running make instead of using ada/Makefile directly.
11261
11262 2003-02-18 Ben Elliston <bje@redhat.com>
11263
11264 Part of fix for PR ada/9406
11265 * gnat_ug.texi (Binder output file): Grammar fix.
11266
11267 2003-02-18 Ben Elliston <bje@redhat.com>
11268
11269 PR other/7350
11270 * 5qtaprop.adb (Sleep): Fix typo in comment.
11271
11272 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
11273
11274 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
11275 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11276 gnat_ug_wnt.texi: Regenerate.
11277
11278 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
11279
11280 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
11281 be created if necessary.
11282 (ada.install-common): Let $(DESTDIR)$(bindir) be created
11283 if necessary. Remove erroneous and redundant gnatchop
11284 installation commands. Test for gnatdll before attempting
11285 to install it.
11286 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
11287 and gnatdll from all plausible locations.
11288
11289 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
11290
11291 * utils2.c (build_unary_op): Don't check flag_volatile.
11292 * gnat_ug.texi: Remove -fvolatile from example.
11293 * gnat_ug_vxw.texi: Likewise.
11294
11295 2003-01-29 Laurent Guerby <guerby@acm.org>
11296
11297 PR ada/8344
11298 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
11299 * Makefile.in: match previous change.
11300 * Make-lang.in: match previous change.
11301
11302 2003-01-29 Joel Sherrill <joel@OARcorp.com>
11303
11304 * 5rosinte.ads: Add SIGXCPU.
11305 * 5rtpopsp.adb: New file.
11306 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
11307 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
11308 specific file 5rtpopsp.adb.
11309 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
11310 is likely needed for all newlib targets.
11311 * init.c: Add RTEMS specific version of __gnat_initialize().
11312
11313 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11314
11315 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
11316
11317 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11318
11319 * init.c (__gnat_error_handler): Make msg const.
11320
11321 * gmem.c (convert_addresses): Move declaration ...
11322 * adaint.h: ... here.
11323 * adaint.c (convert_addresses): Adapt addrs type to match
11324 prototype.
11325
11326 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
11327
11328 2003-01-24 Andreas Schwab <schwab@suse.de>
11329
11330 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
11331 size_t to avoid warning.
11332
11333 2003-01-21 Zack Weinberg <zack@codesourcery.com>
11334
11335 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
11336
11337 2003-01-09 Geoffrey Keating <geoffk@apple.com>
11338
11339 * gnat_rm.texi: Remove RCS version number.
11340
11341 * ada-tree.h (union lang_tree_node): Add chain_next option.
11342
11343 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
11344
11345 * Make-lang.in (ada.install-info, ada.install-common,
11346 ada.uninstall): Prepend $(DESTDIR) to the destination
11347 directory in all (un)installation commands.
11348 * Makefile.in (install-gnatlib, install-rts): Ditto.
11349
11350 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
11351
11352 * gnat_rm.texi, gnat_ug.texi: Use @copying.
11353 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11354 gnat_ug_wnt.texi: Regenerate.
11355
11356 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
11357
11358 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
11359 only.
11360 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
11361 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
11362 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
11363 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
11364 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
11365 $(srcdir)/doc/include/gcc-common.texi.
11366
11367 2002-12-15 Geert Bosch <bosch@gnat.com>
11368
11369 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
11370
11371 2002-12-14 Geert Bosch <bosch@gnat.com>
11372
11373 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
11374 case of a body created for a Renaming_As_Body, on which
11375 conformance checks are not performed. Fixes PR ada/5690.
11376
11377 2002-11-30 Zack Weinberg <zack@codesourcery.com>
11378
11379 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
11380 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
11381 not already included.
11382 * Make-lang.in: Update dependencies.
11383
11384 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
11385 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
11386 solution to buffer overflow bug on GNU/Linux.
11387
11388 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
11389 Closes PR ada/5856 and PR ada/6919 !
11390 * bindgen.adb: Remove all references to Public_Version.
11391 * comperr.adb: Remove all references to Public_Version and
11392 GNATPRO_Version; correct bug reporting instructions.
11393 * comperr.ads: Change to match bug box.
11394 * gnatvsn.ads: Remove all references to Public version and
11395 GNATPRO version.
11396
11397 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
11398 PR ada/6919
11399 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
11400 GNU/Linux.
11401
11402 PR ada/6558
11403 * config-lang.in: Remove diff_excludes.
11404
11405 2002-11-05 Graham Stott <graham.stott@btinternet.com>
11406 PR ada/8358
11407 * trans.c (gnu_pending_elaboration_lists): New GC root.
11408 (build_unit_elab): Use..
11409
11410 2002-10-30 Geert Bosch <bosch@gnat.com>
11411 PR ada/6558
11412 * misc.c : Include optabs.h
11413
11414 * Make-lang.in (misc.o): Add dependency on optabs.h
11415
11416 2002-10-29 Geert Bosch <bosch@gnat.com>
11417 PR ada/6558
11418 * Make-lang.in (gnatbind): Depend on CONFIG_H
11419
11420 2002-10-29 Geert bosch <bosch@gnat.com>
11421 PR ada/6558
11422 * misc.c: Unrevert misc.c (1.13)
11423
11424 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
11425
11426 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
11427 maintainership comments.
11428
11429 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
11430 PR ada/5904
11431 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
11432 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
11433 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
11434 7staprop.adb: Correct statements in comments about
11435 maintainership of GNAT.
11436
11437 PR ada/5904
11438 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
11439 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
11440 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
11441 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
11442 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
11443 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
11444 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
11445 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
11446 comments about maintainership of GNAT.
11447
11448 PR ada/6919 (forward port of patch for PR ada/5904)
11449 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
11450 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
11451 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
11452 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
11453 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
11454 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
11455 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
11456 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
11457 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
11458 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
11459 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
11460 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
11461 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
11462 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
11463 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
11464 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
11465 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
11466 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
11467 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
11468 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
11469 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
11470 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
11471 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
11472 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
11473 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
11474 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
11475 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
11476 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
11477 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
11478 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
11479 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
11480 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
11481 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
11482 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
11483 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
11484 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
11485 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
11486 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
11487 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
11488 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
11489 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
11490 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
11491 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
11492 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
11493 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
11494 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
11495 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
11496 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
11497 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
11498 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
11499 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
11500 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
11501 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
11502 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
11503 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
11504 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
11505 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
11506 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
11507 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
11508 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
11509 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
11510 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
11511 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
11512 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
11513 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
11514 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
11515 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
11516 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
11517 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
11518 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
11519 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
11520 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
11521 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
11522 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
11523 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
11524 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
11525 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
11526 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
11527 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
11528 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
11529 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
11530 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
11531 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
11532 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
11533 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
11534 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
11535 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
11536 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
11537 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
11538 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
11539 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
11540 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
11541 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
11542 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
11543 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
11544 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
11545 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
11546 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
11547 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
11548 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
11549 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
11550 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
11551 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
11552 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
11553 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
11554 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
11555 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
11556 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
11557 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
11558 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
11559 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
11560 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
11561 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
11562 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
11563 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
11564 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
11565 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
11566 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
11567 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
11568 par-endh.adb par-labl.adb par-load.adb par-prag.adb
11569 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
11570 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
11571 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
11572 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
11573 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
11574 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
11575 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
11576 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
11577 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
11578 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
11579 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
11580 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
11581 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
11582 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
11583 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
11584 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
11585 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
11586 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
11587 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
11588 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
11589 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
11590 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
11591 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
11592 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
11593 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
11594 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
11595 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
11596 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
11597 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
11598 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
11599 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
11600 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
11601 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
11602 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
11603 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
11604 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
11605 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
11606 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
11607 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
11608 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
11609 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
11610 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
11611 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
11612 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
11613 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
11614 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
11615 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
11616 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
11617 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
11618 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
11619 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
11620 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
11621 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
11622 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
11623 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
11624 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
11625 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
11626 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
11627 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
11628 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
11629 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
11630 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
11631 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
11632 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
11633 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
11634 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
11635 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
11636 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
11637 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
11638 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
11639 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
11640 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
11641 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
11642 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
11643 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
11644 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
11645 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
11646 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
11647 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
11648 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
11649 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
11650 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
11651 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
11652 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
11653 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
11654 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
11655 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
11656 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
11657 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
11658 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
11659 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
11660 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
11661 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
11662 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
11663 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
11664 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
11665 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
11666 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
11667 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
11668 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
11669 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
11670 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
11671 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
11672 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
11673 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
11674 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
11675 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
11676 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
11677 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
11678 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
11679 stringt.ads stringt.h style.adb style.ads stylesw.adb
11680 stylesw.ads switch.adb switch.ads sysdep.c system.ads
11681 table.adb table.ads targparm.adb targparm.ads targtyps.c
11682 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
11683 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
11684 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
11685 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
11686 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
11687 usage.ads utils.c utils2.c validsw.adb validsw.ads
11688 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
11689 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
11690 xtreeprs.adb: Correct statements in comments about maintainership
11691 of GNAT.
11692
11693 2002-09-23 Zack Weinberg <zack@codesourcery.com>
11694
11695 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
11696 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
11697 * gnatvsn.ads: Gnat_Version_String is now a function.
11698 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
11699 copy the C version_string into a String and return it.
11700 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
11701 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
11702 Remove pragma Ident (Gnat_Version_String). If this was the
11703 sole use of package Gnatvsn, remove the with statement too.
11704 * gnat1drv.adb: Tweak -gnatv output.
11705
11706 2002-09-17 Richard Henderson <rth@redhat.com>
11707
11708 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
11709 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
11710 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
11711 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11712 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
11713 and real_2expN instead of a loop.
11714 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
11715 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
11716
11717 2002-08-25 Andre Leis <a.leis@gmx.net>
11718 David Billinghurst (David.Billinghurst@riotinto.com>
11719
11720 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
11721
11722 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11723
11724 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
11725 Remove $(CONFIG_H) dependency.
11726
11727 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
11728
11729 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
11730
11731 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11732
11733 * adadecode.c (ada_demangle): Use xstrdup in lieu of
11734 xmalloc/strcpy.
11735 * misc.c (gnat_decode_option): Likewise.
11736
11737 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
11738
11739 * make.adb (Add_Switch): Make Generic_Position a procedure. The
11740 function approach did not work well because of a side effect (the
11741 function call could reallocate the table which was being indexed
11742 using its result). Fixes ada/4851. [RESURRECTED]
11743
11744 2002-07-01 Roger Sayle <roger@eyesopen.com>
11745
11746 * ada/utils.c (builtin_function): Accept an additional parameter.
11747
11748 2002-06-28 Andreas Jaeger <aj@suse.de>
11749
11750 PR ada/7144
11751 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
11752 <adi@thur.de>.
11753
11754 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11755
11756 * Makefile.in (SHELL): Set to @SHELL@.
11757
11758 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11759
11760 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
11761 array size calculation.
11762
11763 2002-06-04 Andreas Jaeger <aj@suse.de>
11764
11765 * Make-lang.in (gnatbind): Readd rule that has been lost in last
11766 patch.
11767
11768 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
11769
11770 Merge from pch-branch:
11771
11772 * config-lang.in (gtfiles): Add ada-tree.h.
11773 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
11774 (SET_TYPE_MODULUS): New.
11775 (SET_TYPE_INDEX): New.
11776 (SET_TYPE_DIGITS_VALUE): New.
11777 (SET_TYPE_RM_SIZE): New.
11778 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
11779 (SET_TYPE_ADA_SIZE): New.
11780 (SET_TYPE_ACTUAL_BOUNDS): New.
11781 (SET_DECL_CONST_CORRESPONDING_VAR): New.
11782 (SET_DECL_ORIGINAL_FIELD): New.
11783 (TREE_LOOP_ID): Correct typo.
11784 * decl.c: Use new macros.
11785 * utils.c: Include debug.h, use new macros.
11786 * utils2.c: Use new macros.
11787
11788 * ada-tree.h: Update all macros for new tree description.
11789 (struct tree_loop_id): New.
11790 (union lang_tree_node): New.
11791 (struct lang_decl): New.
11792 (struct lang_type): New.
11793 * misc.c (gnat_mark_tree): Delete.
11794 (LANG_HOOKS_MARK_TREE): Delete.
11795 * trans.c (tree_transform): No longer any need to cast
11796 for TREE_LOOP_ID.
11797
11798 * utils.c (struct language_function): New dummy structure.
11799
11800 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
11801 (misc.o): Likewise.
11802 (utils.o): Likewise; also gtype-ada.h.
11803 * Make-lang.in (gnat1): Add dependency on s-gtype.
11804 (gnatbind): Add dependency on $(CONFIG_H).
11805 * utils.c: Correct last #include.
11806 (stuct e_stack): Remove unnecessary 'static'.
11807 (mark_e_stack): Remove unused prototype.
11808
11809 * scn-nlit.adb: Remove whitespace after version number to
11810 keep lines under 80 chars.
11811 * snames.adb: Likewise.
11812 * treepr.ads: Likewise.
11813
11814 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
11815 (misc.o): Likewise.
11816 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
11817 * config-lang.in (gtfiles): New.
11818 * decl.c: Use gengtype for roots.
11819 * gigi.h: Use gengtype for roots.
11820 * trans.c: Use gengtype for roots.
11821 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
11822
11823 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
11824
11825 * misc.c (gnat_init): Adjust setting of internal_error_function.
11826
11827 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
11828
11829 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
11830 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11831 gnat_ug_wnt.texi: Regenerate.
11832
11833 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
11834
11835 * 5ntaprop.adb (with System.OS_Primitives): Remove.
11836
11837 * cstreams.c (max_path_len): Move from here ...
11838 * adaint.c (__gnat_max_path_len): ... to here.
11839 * adaint.c (__gnat_max_path_len): Declare.
11840 * g-dirope.adb (Max_Path): Adjust.
11841 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
11842 * i-cstrea.ads (max_path_len): Adjust.
11843 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
11844 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
11845
11846 * Makefile.in, Make-lang.in: Documentation is now built in
11847 Make-lang.in. Store Info and generated Texinfo files in the
11848 source directory.
11849 * gnat_ug.texi: Remove CVS keywords, correct version number.
11850 Set file name correctly.
11851
11852 * gnat_ug_*.texi: Add.
11853 * .cvsignore: Ignore generated Texinfo files.
11854
11855 2002-05-30 Zack Weinberg <zack@codesourcery.com>
11856
11857 * ada.h: Add MI guard macro.
11858 (SUBTYPE): Define constants with an anonymous enum, not static
11859 const variables.
11860 (IN): Cast constants to appropriate type before use.
11861
11862 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
11863
11864 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
11865 (experimental)".
11866
11867 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11868
11869 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
11870 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
11871 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
11872 (ALL_ADA_CFLAGS): Likewise.
11873 (ADA_INCLUDES): Likewise.
11874 Adapt for new working dir.
11875 (GNATBIND): Use Makefile.in version.
11876 (.SUFFIXES): Copy from Makefile.in.
11877 (ada-warn): Define.
11878 (.adb.o, .ads.o): Copy from Makefile.in.
11879 Added $(OUTPUT_OPTION).
11880 (GNAT1_C_OBJS): Moved from Makefile.in.
11881 Prefix with ada subdir.
11882 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
11883 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
11884 Adapt for new working dir.
11885 (EXTRA_GNATBIND_OBJS): Likewise.
11886 (ADA_BACKEND): Moved from Makefile.in.
11887 Renamed to avoid conflict with global BACKEND.
11888 Use that one.
11889 (TARGET_ADA_SRCS): Moved from Makefile.in.
11890 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
11891 Use ADA_BACKEND.
11892 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
11893 (ada_extra_files): Moved from Makefile.in.
11894 Prefix with ada subdir.
11895 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
11896 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
11897 (ada/nmake.ads): Likewise.
11898 (update-sources): Moved from Makefile.in.
11899 Prefix with ada subdir.
11900 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
11901 (ADA_TREE_H): Likewise.
11902 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
11903 (ada/memtrack.o): Likewise.
11904 (ada/adadecode.o): Likewise.
11905 Update dependencies.
11906 (ada/adaint.o): New.
11907 (ada/argv.o): Moved from Makefile.in.
11908 Prefix with ada subdir.
11909 Update dependencies.
11910 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
11911 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
11912 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
11913 Prefix with ada subdir.
11914 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
11915 (GNAT DEPENDENCIES): Regenerate.
11916 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
11917 toplevel Makefile.in.
11918 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
11919 (TARGET_ADA_SRCS): Removed.
11920 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
11921 (GNATBIND_OBJS): Likewise.
11922 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
11923 (BACKEND): Removed.
11924 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
11925 (TREE_H): Likewise.
11926 (ada_extra_files): Likewise.
11927 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
11928 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
11929 (update-sources): Likewise.
11930 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
11931 (ADA_TREE_H): Likewise.
11932 (adadecoce.o): Likewise.
11933 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
11934 (GNAT DEPENDENCIES): Likewise.
11935
11936 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11937
11938 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
11939 * Makefile.in: Likewise.
11940
11941 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11942
11943 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
11944 Restore $(CONFIG_H) and prefix.o dependencies.
11945 (ada.stage[1-4]): Depend on stage?-start.
11946
11947 * Makefile.in (b_gnatb.c): Depend on interfac.o.
11948
11949 2002-05-02 Jim Wilson <wilson@redhat.com>
11950
11951 * utils.c (finish_record_type): Change record_size to record_type.
11952
11953 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
11954
11955 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
11956 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
11957 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
11958
11959 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
11960
11961 * misc.c (gnat_parse_file): Update.
11962
11963 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
11964
11965 * misc.c (gnat_init): Don't set lang_attribute_common.
11966
11967 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
11968
11969 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
11970
11971 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
11972
11973 * gnat_ug.texi: New file.
11974
11975 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
11976 instead of gfdl.texi
11977
11978 * xgnatug.adb, ug_words: New files.
11979
11980 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
11981 gnat_rm and gnat-style manuals.
11982
11983 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
11984
11985 * gigi.h (incomplete_type_error): Remove.
11986 * utils.c (incomplete_type_error): Remove.
11987
11988 2002-04-16 Mark Mitchell <mark@codesourcery.com>
11989
11990 * trans.c (tree_transform): Add has_scope argument to
11991 expand_start_stmt_expr.
11992
11993 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
11994
11995 * gigi.h (truthvalue_conversion): Rename.
11996 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
11997 * trans.c (tree_transform): Update.
11998 * utils2.c (truthvalue_conversion): Rename, update.
11999 (build_binary_op, build_unary_op): Update.
12000
12001 2002-04-04 Laurent Guerby <guerby@acm.org>
12002
12003 * make.adb: Implement -margs, remove restriction about file name placement.
12004 * makeusg.adb: Documentation update.
12005 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
12006 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
12007
12008 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
12009
12010 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
12011 (builtin_function): Similarly.
12012
12013 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12014
12015 * decl.c (gnat_to_gnu_entity): Update.
12016 * gigi.h (mark_addressable): Rename.
12017 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12018 * trans.c (tree_transform): Update.
12019 * utils.c (create_var_decl): Update.
12020 * util2.c (build_binary_op, build_unary_op,
12021 fill_vms_descriptor): Update.
12022 (mark_addressable): Rename, update.
12023
12024 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
12025
12026 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
12027 Rename.
12028 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12029 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12030 * trans.c (tree_transform, convert_with_check): Update.
12031 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
12032 Rename.
12033
12034 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
12035
12036 * gigi.h (finish_incomplete_decl): Rename.
12037 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
12038 * utils.c (gnat_init_decl_processing): Don't set hook.
12039 (finish_incomplete_decl): Rename.
12040
12041 2002-03-29 Andreas Schwab <schwab@suse.de>
12042
12043 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
12044 directory.
12045
12046 2001-03-28 Robert Dewar <dewar@gnat.com>
12047
12048 * checks.ads:
12049 (Remove_Checks): New procedure
12050
12051 * checks.adb:
12052 (Remove_Checks): New procedure
12053
12054 * exp_util.adb:
12055 Use new Duplicate_Subexpr functions
12056 (Duplicate_Subexpr_No_Checks): New procedure
12057 (Duplicate_Subexpr_No_Checks_Orig): New procedure
12058 (Duplicate_Subexpr): Restore original form (checks duplicated)
12059 (Duplicate_Subexpr): Call Remove_Checks
12060
12061 * exp_util.ads:
12062 (Duplicate_Subexpr_No_Checks): New procedure
12063 (Duplicate_Subexpr_No_Checks_Orig): New procedure
12064 Add 2002 to copyright notice
12065
12066 * sem_util.adb: Use new Duplicate_Subexpr functions
12067
12068 * sem_eval.adb:
12069 (Eval_Indexed_Component): This is the place to call
12070 Constant_Array_Ref and to replace the value. We simply merge
12071 the code of this function in here, since it is now no longer
12072 used elsewhere. This fixes the problem of the back end not
12073 realizing we were clever enough to see that this was
12074 constant.
12075 (Expr_Val): Remove call to Constant_Array_Ref
12076 (Expr_Rep_Val): Remove call to Constant_Array_Ref
12077 Minor reformatting
12078 (Constant_Array_Ref): Deal with string literals (patch
12079 suggested by Zack Weinberg on the gcc list)
12080
12081 2001-03-28 Ed Schonberg <schonber@gnat.com>
12082
12083 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
12084 Duplicate_Subexpr_Move_Checks.
12085
12086 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
12087 Duplicate_Subexpr_Move_Checks.
12088
12089 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
12090 value of array exists before retrieving it (it may a private
12091 protected component in a function).
12092
12093 2002-03-28 Geert Bosch <bosch@gnat.com>
12094
12095 * prj-pp.adb : New file.
12096
12097 * prj-pp.ads : New file.
12098
12099 2002-03-28 Andreas Jaeger <aj@suse.de>
12100
12101 * Makefile.in (stamp-sdefault): Fix path for Makefile.
12102
12103 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
12104
12105 * misc.c (gnat_expand_expr): Move prototype.
12106
12107 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12108
12109 * misc.c (insert_default_attributes): Remove.
12110
12111 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12112
12113 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12114 (gnat_init): Don't set hook.
12115 (gnat_expand_expr): Fix prototype.
12116
12117 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
12118
12119 * misc.c (ggc_p): Remove.
12120
12121 2002-03-27 Geert Bosch <bosch@gnat.com>
12122
12123 * prj-makr.ads, prj-makr.adb : New files.
12124
12125 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
12126
12127 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
12128 (lang_mark_tree): Make static, rename.
12129
12130 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
12131
12132 * misc.c (maybe_build_cleanup): Remove.
12133
12134 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
12135
12136 * gigi.h (yyparse): Remove.
12137
12138 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
12139
12140 * gnat_rm.texi: Sync with ACT version.
12141 (From Ben Brosgol <brosgol@gnat.com>)
12142
12143 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
12144
12145 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
12146 (gnat_init): Remove old hook.
12147
12148 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
12149
12150 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
12151 (yyparse): Rename gnat_parse_file.
12152
12153 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
12154
12155 Delete all lines containing "$Revision:".
12156 * xeinfo.adb: Don't look for revision numbers.
12157 * xnmake.adb: Likewise.
12158 * xsinfo.adb: Likewise.
12159 * xsnames.adb: Likewise.
12160 * xtreeprs.adb: Likewise.
12161
12162 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12163
12164 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
12165 gnat_tree_code_name): Delete.
12166 (tree_code_type, tree_code_length, tree_code_name): Define.
12167 (gnat_init): Don't try to copy into the various tree_code
12168 arrays.
12169
12170 2002-03-11 Richard Henderson <rth@redhat.com>
12171
12172 * Makefile.in (.NOTPARALLEL): Add fake tag.
12173
12174 2002-03-07 Geert Bosch <bosch@gnat.com>
12175
12176 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
12177 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
12178 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
12179 switch-m.adb, switch-m.ads : New files.
12180
12181 2002-03-07 Geert Bosch <bosch@gnat.com>
12182
12183 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
12184 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
12185 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
12186 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
12187 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
12188 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
12189 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
12190 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
12191 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
12192 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
12193 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
12194 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
12195 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
12196 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
12197 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
12198 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
12199 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
12200 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
12201 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
12202 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
12203 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
12204 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
12205 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
12206 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
12207 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
12208 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
12209 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
12210 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
12211 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
12212 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
12213 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
12214 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
12215 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
12216 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
12217 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
12218 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
12219 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
12220 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
12221 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
12222 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
12223 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
12224 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
12225 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
12226 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
12227 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
12228 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
12229 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
12230 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
12231 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
12232 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
12233 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
12234 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
12235 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
12236 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
12237 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
12238 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
12239 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
12240 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
12241 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
12242 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
12243 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
12244 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
12245 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
12246 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
12247 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
12248 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
12249 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
12250 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
12251 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
12252 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
12253 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
12254 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
12255 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
12256 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
12257 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
12258 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
12259 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
12260 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
12261 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
12262 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
12263 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
12264 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
12265 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
12266 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
12267 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
12268 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
12269 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
12270 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
12271 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
12272 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
12273 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
12274 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
12275 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
12276 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
12277 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
12278 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
12279 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
12280
12281 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
12282 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
12283 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
12284 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
12285
12286 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
12287 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
12288
12289 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
12290 to mdll-fil.ad[bs] and mdll-util.ad[bs]
12291
12292 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
12293 from mdllfile.ad[bs] and mdlltool.ad[bs]
12294
12295 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12296
12297 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
12298 lieu of explicit sizeof/sizeof.
12299
12300 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
12301
12302 * misc.c (copy_lang_decl): Remove.
12303
12304 2002-02-27 Zack Weinberg <zack@codesourcery.com>
12305
12306 * misc.c: Delete traditional-mode-related code copied from the
12307 C front end but not used, or used only to permit the compiler
12308 to link.
12309
12310 2002-02-07 Richard Henderson <rth@redhat.com>
12311
12312 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
12313 * adaint.h (__gnat_to_gm_time): Update prototype.
12314
12315 2002-01-30 Richard Henderson <rth@redhat.com>
12316
12317 * trans.c (tree_transform) [N_Loop_Statement]: Use
12318 expand_exit_loop_top_cond.
12319
12320 2001-12-23 Richard Henderson <rth@redhat.com>
12321
12322 * utils.c (end_subprog_body): Push GC context around
12323 rest_of_compilation for nested functions.
12324
12325 2001-12-23 Richard Henderson <rth@redhat.com>
12326
12327 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
12328
12329 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
12330
12331 * gnat-style.texi (Declarations and Types): Remove ancient style
12332 rule which was mandated by code generation issues.
12333
12334 * gnat-style.texi (header): Add @dircategory, @direntry.
12335 (title page): Remove date.
12336 (general) Add @./@: where approriate, and two spaces after the
12337 full stop at the end of a sentence. Use @samp markup when
12338 referring concrete lexical entities (keywords, attribute names
12339 etc.), and @syntax for ARM grammar elements. Use @r for English
12340 text in comments. Use @emph for emphasis. Change "if-statements"
12341 etc. to "if statements" (without @samp). Break long lines. Make
12342 casing of section names consistent.
12343 (Identifiers): Use @samp markup for variable names.
12344 (Comments): Use @samp markup for comment characters. Line-end
12345 comments may follow any Ada code, not just statements. Fix
12346 misspelling of "Integer" as "integer".
12347 (Loop statements): Do not use variable name "I", use "J".
12348 (Subprogram Declarations): Document alignment.
12349 (Subprogram Bodies, Block statements): Document empty line before
12350 "begin".
12351
12352 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
12353
12354 * make.adb (Add_Switch): Make Generic_Position a procedure. The
12355 function approach did not work well because of a side effect (the
12356 function call could reallocate the table which was being indexed
12357 using its result). Fixes ada/4851.
12358
12359 2001-12-19 Robert Dewar <dewar@gnat.com>
12360
12361 * bindgen.adb: Minor reformatting
12362
12363 * cstand.adb: Minor reformatting
12364
12365 * fmap.adb: Minor reformatting
12366 Change name from Add for Add_To_File_Map (Add is much too generic)
12367 Change Path_Name_Of to Mapped_Path_Name
12368 Change File_Name_Of to Mapped_File_Name
12369 Fix copyright dates in header
12370
12371 * fmap.ads:
12372 Change name from Add for Add_To_File_Map (Add is much too generic)
12373 Change Path_Name_Of to Mapped_Path_Name
12374 Change File_Name_Of to Mapped_File_Name
12375 Fix copyright dates in header
12376
12377 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
12378 Add use clause for Fmap.
12379
12380 * make.adb: Minor reformatting
12381
12382 * osint.adb: Minor reformatting. Change of names in Fmap.
12383 Add use clause for Fmap.
12384
12385 * prj-env.adb: Minor reformatting
12386
12387 * prj-env.ads: Minor reformatting
12388
12389 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
12390 error found (there were odd exceptions to this general rule in
12391 -gnatec/-gnatem processing)
12392
12393 2001-12-19 Olivier Hainque <hainque@gnat.com>
12394
12395 * raise.c (__gnat_eh_personality): Exception handling personality
12396 routine for Ada. Still in rough state, inspired from the C++ version
12397 and still containing a bunch of debugging artifacts.
12398 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
12399 inspired from the C++ library.
12400
12401 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
12402 exception handling integration.
12403
12404 2001-12-19 Arnaud Charlet <charlet@gnat.com>
12405
12406 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
12407 (HIE_SOURCES): Add s-secsta.ad{s,b}.
12408 (HIE_OBJS): Add s-fat*.o
12409 (RAVEN_SOURCES): Remove files that are no longer required. Add
12410 interrupt handling files.
12411 (RAVEN_MOD): Removed, no longer needed.
12412
12413 2001-12-19 Robert Dewar <dewar@gnat.com>
12414
12415 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
12416 Add 2001 to copyright date
12417
12418 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
12419 need to force universal inlining for these cases.
12420
12421 2001-12-19 Arnaud Charlet <charlet@gnat.com>
12422
12423 * s-taprob.adb: Minor clean ups so that this unit can be used in
12424 Ravenscar HI.
12425
12426 * exp_ch7.adb: Allow use of secondary stack in HI mode.
12427 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
12428
12429 2001-12-19 Vincent Celier <celier@gnat.com>
12430
12431 * prj-tree.ads (Project_Node_Record): Add comments for components
12432 Pkg_Id and Case_Insensitive.
12433
12434 2001-12-19 Pascal Obry <obry@gnat.com>
12435
12436 * g-socket.adb: Minor reformatting. Found while reading code.
12437
12438 2001-12-19 Robert Dewar <dewar@gnat.com>
12439
12440 * prj-tree.ads: Minor reformatting
12441
12442 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
12443
12444 * config-lang.in (diff_excludes): Remove.
12445
12446 2001-12-17 Ed Schonberg <schonber@gnat.com>
12447
12448 * sem_res.adb (Resolve_Selected_Component): do not generate a
12449 discriminant check if the selected component is a component of
12450 the argument of an initialization procedure.
12451
12452 * trans.c (tree_transform, case of arithmetic operators): If result
12453 type is private, the gnu_type is the base type of the full view,
12454 given that the full view itself may be a subtype.
12455
12456 2001-12-17 Robert Dewar <dewar@gnat.com>
12457
12458 * sem_res.adb: Minor reformatting
12459
12460 * trans.c (tree_transform, case N_Real_Literal): Add missing third
12461 parameter in call to Machine (unknown horrible effects from this
12462 omission).
12463
12464 * urealp.h: Add definition of Round_Even for call to Machine
12465 Add third parameter for Machine
12466
12467 2001-12-17 Ed Schonberg <schonber@gnat.com>
12468
12469 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
12470 predefined units in No_Run_Time mode.
12471
12472 2001-12-17 Richard Kenner <kenner@gnat.com>
12473
12474 * misc.c (insn-codes.h): Now include.
12475
12476 2001-12-17 Olivier Hainque <hainque@gnat.com>
12477
12478 * a-except.adb: Preparation work for future integration of the GCC 3
12479 exception handling mechanism
12480 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
12481 to factorize previous code sequences and make them externally callable,
12482 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
12483 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
12484 Use the new notification routines.
12485
12486 2001-12-17 Emmanuel Briot <briot@gnat.com>
12487
12488 * prj-tree.ads (First_Choice_Of): Document the when others case
12489
12490 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12491
12492 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
12493 HI-E mode, in order to support Ravenscar profile properly.
12494
12495 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
12496 mode on 32 bits targets.
12497
12498 2001-12-17 Vincent Celier <celier@gnat.com>
12499
12500 * fmap.adb: Initial version.
12501
12502 * fmap.ads: Initial version.
12503
12504 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
12505 If search is successfully done, add to mapping.
12506
12507 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
12508
12509 * make.adb:
12510 (Gnatmake): Add new local variable Mapping_File_Name.
12511 Create mapping file when using project file(s).
12512 Delete mapping file before exiting.
12513
12514 * opt.ads (Mapping_File_Name): New variable
12515
12516 * osint.adb (Find_File): Use path name found in mapping, if any.
12517
12518 * prj-env.adb (Create_Mapping_File): New procedure
12519
12520 * prj-env.ads (Create_Mapping_File): New procedure.
12521
12522 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
12523 (Mapping_File)
12524
12525 * usage.adb: Add entry for new switch -gnatem.
12526
12527 * Makefile.in: Add dependencies for fmap.o.
12528
12529 2001-12-17 Ed Schonberg <schonber@gnat.com>
12530
12531 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
12532 is a package instantiation rewritten as a package body.
12533 (Install_Withed_Unit): Undo previous change, now redundant.
12534
12535 2001-12-17 Gary Dismukes <dismukes@gnat.com>
12536
12537 * layout.adb:
12538 (Compute_Length): Move conversion to Unsigned to callers.
12539 (Get_Max_Size): Convert Len expression to Unsigned after calls to
12540 Compute_Length and Determine_Range.
12541 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
12542 Compute_Length and Determine_Range.
12543 Above changes fix problem with length computation for supernull arrays
12544 where Max (Len, 0) wasn't getting applied due to the Unsigned
12545 conversion used by Compute_Length.
12546
12547 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12548
12549 * rtsfind.ads:
12550 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
12551 System.Secondary_Stack.
12552 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
12553 in HI-E mode.
12554 Remove unused entity RE_Exception_Data.
12555
12556 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
12557
12558 * rident.ads (No_Secondary_Stack): New restriction.
12559
12560 2001-12-17 Joel Brobecker <brobecke@gnat.com>
12561
12562 * gnat_rm.texi: Fix minor typos. Found while reading the section
12563 regarding "Bit_Order Clauses" that was sent to a customer.
12564 Very interesting documentation!
12565
12566 2001-12-17 Robert Dewar <dewar@gnat.com>
12567
12568 * sem_case.adb (Choice_Image): Avoid creating improper character
12569 literal names by using the routine Set_Character_Literal_Name. This
12570 fixes bombs in certain error message cases.
12571
12572 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12573
12574 * a-reatim.adb: Minor reformatting.
12575
12576 2001-12-17 Ed Schonberg <schonber@gnat.com>
12577
12578 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
12579 case where the formal is an extension of another formal in the current
12580 unit or in a parent generic unit.
12581
12582 2001-12-17 Arnaud Charlet <charlet@gnat.com>
12583
12584 * s-tposen.adb: Update comments. Minor reformatting.
12585 Minor code clean up.
12586
12587 * s-tarest.adb: Update comments. Minor code reorganization.
12588
12589 2001-12-17 Gary Dismukes <dismukes@gnat.com>
12590
12591 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
12592 when Java_VM.
12593
12594 2001-12-17 Robert Dewar <dewar@gnat.com>
12595
12596 * exp_attr.adb: Minor reformatting
12597
12598 2001-12-17 Ed Schonberg <schonber@gnat.com>
12599
12600 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
12601 derivations nested within a child unit: verify that the parent
12602 type is declared in an outer scope.
12603
12604 2001-12-17 Robert Dewar <dewar@gnat.com>
12605
12606 * sem_ch12.adb: Minor reformatting
12607
12608 2001-12-17 Ed Schonberg <schonber@gnat.com>
12609
12610 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
12611 warning if current unit is a predefined one, from which bodies may
12612 have been deleted.
12613
12614 2001-12-17 Robert Dewar <dewar@gnat.com>
12615
12616 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
12617 Fix header format. Add 2001 to copyright date.
12618
12619 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
12620 which caused CE during compilation if checks were enabled.
12621
12622 2001-12-17 Vincent Celier <celier@gnat.com>
12623
12624 * make.adb:
12625 (Switches_Of): New function
12626 (Test_If_Relative_Path): New procedure
12627 (Add_Switches): Use new function Switches_Of
12628 (Collect_Arguments_And_Compile): Use new function Switches_Of.
12629 When using a project file, test if there are any relative
12630 search path. Fail if there are any.
12631 (Gnatmake): Only add switches for the primary directory when not using
12632 a project file. When using a project file, change directory to the
12633 object directory of the main project file. When using a project file,
12634 test if there are any relative search path. Fail if there are any.
12635 When using a project file, fail if specified executable is relative
12636 path with directory information, and prepend executable, if not
12637 specified as an absolute path, with the exec directory. Make sure
12638 that only one -o switch is transmitted to the linker.
12639
12640 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
12641
12642 * prj-nmsc.adb:
12643 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
12644 when using a non standard naming scheme.
12645 (Check_Ada_Naming_Scheme): Make sure that error messages
12646 do not raise exceptions.
12647 (Is_Illegal_Append): Return True if there is no dot in the suffix.
12648 (Language_Independent_Check): Check the exec directory.
12649
12650 * prj.adb (Project_Empty): Add new component Exec_Directory
12651
12652 * prj.ads:
12653 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
12654 (Project_Data): Add component Exec_Directory
12655
12656 * snames.adb: Updated to match snames.ads revision 1.215
12657
12658 * snames.ads: Added Exec_Dir
12659
12660 2001-12-17 Robert Dewar <dewar@gnat.com>
12661
12662 * make.adb: Minor reformatting
12663
12664 * prj-nmsc.adb: Minor reformatting
12665
12666 * snames.adb: Updated to match snames.ads
12667
12668 * snames.ads: Alphebetize entries for project file
12669
12670 2001-12-17 Ed Schonberg <schonber@gnat.com>
12671
12672 * trans.c (process_freeze_entity): Do nothing if the entity is a
12673 subprogram that was already elaborated.
12674
12675 2001-12-17 Richard Kenner <kenner@gnat.com>
12676
12677 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
12678 and Esize if object is referenced via pointer.
12679
12680 2001-12-17 Ed Schonberg <schonber@gnat.com>
12681
12682 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
12683 is discrete before analyzing choices.
12684
12685 2001-12-17 Joel Brobecker <brobecke@gnat.com>
12686
12687 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
12688 containing the name of the Ada Main Program. This string is mainly
12689 intended for the debugger.
12690 (Gen_Output_File_C): Do the equivalent change when generating a C file.
12691
12692 2001-12-17 Robert Dewar <dewar@gnat.com>
12693
12694 * ali.adb: Set new Dummy_Entry field in dependency entry
12695
12696 * ali.ads: Add Dummy_Entry field to source dependency table
12697
12698 * bcheck.adb (Check_Consistency): Ignore dummy D lines
12699
12700 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
12701
12702 * lib-writ.ads: Document dummy D lines for missing files.
12703
12704 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
12705
12706 2001-12-17 Robert Dewar <dewar@gnat.com>
12707
12708 * ali.adb: Type reference does not reset current file.
12709
12710 * ali.adb: Recognize and scan renaming reference
12711
12712 * ali.ads: Add spec for storing renaming references.
12713
12714 * lib-xref.ads: Add documentation for handling of renaming references
12715
12716 * lib-xref.adb: Implement output of renaming reference.
12717
12718 * checks.adb:
12719 (Determine_Range): Document local variables
12720 (Determine_Range): Make sure Hbound is initialized. It looks as though
12721 there could be a real problem here with an uninitialized reference
12722 to Hbound, but no actual example of failure has been found.
12723
12724 2001-12-17 Laurent Pautet <pautet@gnat.com>
12725
12726 * g-socket.ads:
12727 Fix comment of Shutdown_Socket and Close_Socket. These functions
12728 should not fail silently because if they are called twice, this
12729 probably means that there is a race condition in the user program.
12730 Anyway, this behaviour is consistent with the rest of this unit.
12731 When an error occurs, an exception is raised with the error message
12732 as exception message.
12733
12734 2001-12-17 Robert Dewar <dewar@gnat.com>
12735
12736 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
12737 that it happens before modification of Sloc values for -gnatD.
12738
12739 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
12740 so that it happens before modification of Sloc values for -gnatD.
12741
12742 * switch.adb: Minor reformatting
12743
12744 2001-12-15 Richard Henderson <rth@redhat.com>
12745
12746 * sem_ch7.adb: Wrap comment.
12747
12748 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
12749
12750 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
12751 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
12752 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
12753 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
12754 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
12755 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
12756 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
12757 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
12758 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
12759 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
12760 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
12761 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
12762 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
12763 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
12764 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
12765 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
12766 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
12767 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
12768 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
12769 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
12770 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
12771 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
12772 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
12773 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
12774 spelling errors.
12775
12776 2001-12-14 Vincent Celier <celier@gnat.com>
12777
12778 * osint.adb(Create_Debug_File): When an object file is specified,
12779 put the .dg file in the same directory as the object file.
12780
12781 2001-12-14 Robert Dewar <dewar@gnat.com>
12782
12783 * osint.adb: Minor reformatting
12784
12785 * lib-xref.adb (Output_Instantiation): New procedure to generate
12786 instantiation references.
12787
12788 * lib-xref.ads: Add documentation of handling of generic references.
12789
12790 * ali.adb (Read_Instantiation_Ref): New procedure to read
12791 instantiation references
12792
12793 * ali.ads: Add spec for storing instantiation references
12794
12795 * bindusg.adb: Minor reformatting
12796
12797 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12798
12799 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12800
12801 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12802
12803 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
12804
12805 * csets.ads:
12806 Fix header format
12807 Add 2001 to copyright date
12808 Add entry for Latin-5 (Cyrillic ISO-8859-5)
12809
12810 2001-12-14 Matt Gingell <gingell@gnat.com>
12811
12812 * adaint.c: mktemp is a macro on Lynx and can not be used as an
12813 expression.
12814
12815 2001-12-14 Richard Kenner <kenner@gnat.com>
12816
12817 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
12818 if operand is CONSTRUCTOR.
12819
12820 2001-12-14 Ed Schonberg <schonber@gnat.com>
12821
12822 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
12823 before emiting check on right-hand side, so that exception information
12824 is correct.
12825
12826 2001-12-14 Richard Kenner <kenner@gnat.com>
12827
12828 * utils.c (create_var_decl): Throw away initializing expression
12829 if just annotating types and non-constant.
12830
12831 2001-12-14 Vincent Celier <celier@gnat.com>
12832
12833 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
12834 Default_Ada_...
12835
12836 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
12837 Remove functions.
12838 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
12839
12840 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
12841 Remove functions.
12842 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
12843
12844 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
12845
12846 * ChangeLog: Remove piece of diff output.
12847
12848 2001-12-14 Geert Bosch <bosch@gnat.com>
12849
12850 * config-lang.in: Update copyright notice
12851
12852 * layout.adb: Remove commented out code.
12853
12854 * mdllfile.ads: Update copyright notice. Fix header format.
12855
12856 * sem_case.ads: Likewise.
12857
12858 * sem_ch3.adb: Minor reformatting.
12859
12860 2001-12-12 Geert Bosch <bosch@gnat.com>
12861
12862 * freeze.ads: Update copyright date.
12863
12864 * g-comlin.ads: Minor reformatting.
12865
12866 * gnat-style.texi: Fix typo.
12867
12868 2001-12-12 Geert Bosch <bosch@gnat.com>
12869
12870 * einfo.h: Regenerate.
12871
12872 2001-12-12 Ed Schonberg <schonber@gnat.com>
12873
12874 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
12875 on known node types, rather than untyped fields. Further cleanups.
12876
12877 2001-12-12 Robert Dewar <dewar@gnat.com>
12878
12879 * sem_ch12.adb:
12880 (Save_Entity_Descendant): Minor comment update.
12881 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
12882 of an N_Attribute_Reference node. As per note below, this does not
12883 eliminate need for Associated_Node in attribute ref nodes.
12884 (Associated_Node): Documentation explicitly mentions attribute
12885 reference nodes, since this field is used in such nodes.
12886
12887 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
12888
12889 2001-12-12 Robert Dewar <dewar@gnat.com>
12890
12891 * s-stalib.adb: Add more comments on with statements being needed
12892
12893 * par-ch12.adb: Minor reformatting
12894
12895 * prj-dect.ads: Fix copyright header
12896
12897 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
12898 inputs fit in 32 bits, but the result still overflows.
12899
12900 * s-fatgen.ads: Minor comment improvement
12901
12902 2001-12-12 Ed Schonberg <schonber@gnat.com>
12903
12904 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
12905 formal derived type, look for an inherited component from the full
12906 view of the parent, if any.
12907
12908 2001-12-12 Robert Dewar <dewar@gnat.com>
12909
12910 * checks.ads (Apply_Alignment_Check): New procedure.
12911
12912 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
12913 ensure that the alignment of objects with address clauses is
12914 appropriate, and raise PE if not.
12915
12916 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
12917 Exp_Pakd.Known_Aligned_Enough
12918
12919 * mdllfile.ads: Minor reformatting
12920
12921 * mlib-fil.ads: Minor reformatting
12922
12923 2001-12-12 Ed Schonberg <schonber@gnat.com>
12924
12925 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
12926 fix to any component reference if enclosing record has non-standard
12927 representation.
12928
12929 2001-12-12 Vincent Celier <celier@gnat.com>
12930
12931 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
12932 Iteration
12933
12934 2001-12-12 Ed Schonberg <schonber@gnat.com>
12935
12936 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
12937 sem_attr.
12938
12939 2001-12-12 Robert Dewar <dewar@gnat.com>
12940
12941 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
12942
12943 2001-12-12 Emmanuel Briot <briot@gnat.com>
12944
12945 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
12946 and it adds dependencies to system.io.
12947
12948 2001-12-12 Pascal Obry <obry@gnat.com>
12949
12950 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
12951 variable name.
12952
12953 2001-12-11 Ed Schonberg <schonber@gnat.com>
12954
12955 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
12956 that is the parent of other generics, the instance body replaces the
12957 instance node. Retrieve the instance of the spec, which is the one
12958 that is visible in clients and within the body.
12959
12960 2001-12-11 Vincent Celier <celier@gnat.com>
12961
12962 * gnatmain.adb: Initial version.
12963
12964 * gnatmain.ads: Initial version.
12965
12966 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
12967
12968 * snames.adb: Updated to match snames.ads.
12969
12970 * snames.ads: Added Gnatstub.
12971
12972 2001-12-11 Vincent Celier <celier@gnat.com>
12973
12974 * prj-attr.adb (Initialization_Data): Change name from
12975 Initialisation_Data.
12976
12977 2001-12-11 Emmanuel Briot <briot@gnat.com>
12978
12979 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
12980 + and * applied to backslashed expressions like \r.
12981
12982 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
12983
12984 * g-os_lib.ads: String_List type added, Argument_List type is now
12985 subtype of String_List.
12986
12987 2001-12-11 Robert Dewar <dewar@gnat.com>
12988
12989 * g-os_lib.ads: Change copyright to FSF
12990 Add comments for String_List type
12991
12992 2001-12-11 Vincent Celier <celier@gnat.com>
12993
12994 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
12995 string to the buffer).
12996
12997 2001-12-11 Ed Schonberg <schonber@gnat.com>
12998
12999 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
13000 sem_attr.
13001
13002 * sem_attr.adb: Simplify previous fix for Address.
13003 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
13004 to avoid anomalies where the bound of the type appears to raise
13005 constraint error.
13006
13007 2001-12-11 Robert Dewar <dewar@gnat.com>
13008
13009 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
13010 handled.
13011
13012 2001-12-11 Ed Schonberg <schonber@gnat.com>
13013
13014 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
13015 renamed unit before checking for recursive instantiations.
13016
13017 2001-12-11 Emmanuel Briot <briot@gnat.com>
13018
13019 * prj.ads: Add comments for some of the fields.
13020
13021 2001-12-11 Robert Dewar <dewar@gnat.com>
13022
13023 * lib-xref.adb (Output_Refs): Don't output type references outside
13024 the main unit if they are not otherwise referenced.
13025
13026 2001-12-11 Ed Schonberg <schonber@gnat.com>
13027
13028 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
13029 code and diagnose additional illegal uses
13030
13031 * sem_util.adb (Is_Object_Reference): An indexed component is an
13032 object only if the prefix is.
13033
13034 2001-12-11 Vincent Celier <celier@gnat.com>
13035
13036 * g-diopit.adb: Initial version.
13037
13038 * g-diopit.ads: Initial version.
13039
13040 * g-dirope.adb:
13041 (Expand_Path): Avoid use of Unbounded_String
13042 (Find, Wildcard_Iterator): Moved to child package Iteration
13043
13044 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
13045
13046 2001-12-11 Robert Dewar <dewar@gnat.com>
13047
13048 * sem_attr.adb: Minor reformatting
13049
13050 2001-12-11 Ed Schonberg <schonber@gnat.com>
13051
13052 * sem_ch3.adb: Clarify some ???.
13053
13054 2001-12-11 Robert Dewar <dewar@gnat.com>
13055
13056 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
13057 Exp_Pakd.Known_Aligned_Enough
13058
13059 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
13060 version is moved to Exp_Ch13.
13061
13062 2001-12-11 Robert Dewar <dewar@gnat.com>
13063
13064 * einfo.ads: Minor reformatting
13065
13066 * exp_ch5.adb: Add comment for previous.change
13067
13068 * ali.adb: New interface for extended typeref stuff.
13069
13070 * ali.ads: New interface for typeref stuff.
13071
13072 * checks.adb (Apply_Alignment_Check): New procedure.
13073
13074 * debug.adb: Add -gnatdM for modified ALI output
13075
13076 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
13077
13078 * lib-xref.adb: Extend generation of <..> notation to cover
13079 subtype/object types. Note that this is a complete rewrite,
13080 getting rid of the very nasty quadratic algorithm previously
13081 used for derived type output.
13082
13083 * lib-xref.ads: Extend description of <..> notation to cover
13084 subtype/object types. Uses {..} for these other cases.
13085 Also use (..) for pointer types.
13086
13087 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
13088
13089 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
13090 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
13091
13092 2001-12-11 Vincent Celier <celier@gnat.com>
13093
13094 * gnatcmd.adb:
13095 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
13096 Changed /BIND_ONLY to /ACTIONS=BIND
13097 Changed /LINK_ONLY to /ACTIONS=LINK
13098
13099 2001-12-11 Ed Schonberg <schonber@gnat.com>
13100
13101 * sem_ch8.adb (Find_Selected_Component): improved search for a
13102 candidate package in case of error.
13103
13104 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
13105 chain back on scope stack before reinstalling use clauses.
13106
13107 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
13108 is enabled, do not kill the code for the condition, to preserve
13109 warning.
13110
13111 2001-12-11 Robert Dewar <dewar@gnat.com>
13112
13113 * checks.adb (Insert_Valid_Check): Apply validity check to expression
13114 of conversion, not to result of conversion.
13115
13116 2001-12-11 Ed Schonberg <schonber@gnat.com>
13117
13118 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
13119 before freezing parent. If the declarations are mutually recursive,
13120 an access to the current record type may be frozen before the
13121 derivation is complete.
13122
13123 2001-12-05 Vincent Celier <celier@gnat.com>
13124
13125 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
13126 -c /COMPILE_ONLY, -l /LINK_ONLY
13127
13128 * opt.ads:
13129 (Bind_Only): New Flag
13130 (Link_Only): New flag
13131
13132 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
13133 and -l (Link_Only)
13134
13135 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
13136
13137 * make.adb:
13138 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
13139 (Gnatmake): Set the step flags. Only perform a step if the
13140 corresponding step flag is True.
13141 (Scan_Make_Arg): Reset the bind and link step flags when -u
13142 or -gnatc has been specified.
13143
13144 2001-12-05 Ed Schonberg <schonber@gnat.com>
13145
13146 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
13147 get bounds from right operand.
13148
13149 * sem_eval.adb: Minor reformatting
13150
13151 * exp_util.adb (Make_Literal_Range): use bound of literal rather
13152 than Index'First, its lower bound may be different from 1.
13153
13154 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
13155 and C48009J
13156
13157 2001-12-05 Vincent Celier <celier@gnat.com>
13158
13159 * prj-nmsc.adb Minor reformatting
13160
13161 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
13162 set and libraries are not supported.
13163
13164 2001-12-05 Ed Schonberg <schonber@gnat.com>
13165
13166 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
13167 private view explicitly, so the back-end can treat as a global
13168 when appropriate.
13169
13170 2001-12-05 Ed Schonberg <schonber@gnat.com>
13171
13172 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
13173 unit, always replace instance node with new body, for ASIS use.
13174
13175 2001-12-05 Vincent Celier <celier@gnat.com>
13176
13177 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
13178 libraries are not supported and both attributes Library_Name and
13179 Library_Dir are specified.
13180
13181 * prj-proc.adb (Expression): Set location of Result to location of
13182 first term.
13183
13184 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
13185 (prj-nmsc is now importing MLib.Tgt)
13186
13187 * prj-proc.adb: Put the change indicated above that was forgotten.
13188
13189 2001-12-05 Robert Dewar <dewar@gnat.com>
13190
13191 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
13192
13193 2001-12-05 Ed Schonberg <schonber@gnat.com>
13194
13195 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
13196 constraint, introduce explicit subtype declaration and derive from it.
13197
13198 * sem_ch3.adb: Minor reformatting
13199
13200 2001-12-05 Robert Dewar <dewar@gnat.com>
13201
13202 * checks.adb (Determine_Range): Increase cache size for checks.
13203 Minor reformatting
13204
13205 * exp_ch6.adb: Minor reformatting
13206 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
13207 a parameter whose root type is System.Address, since treating such
13208 subprograms as pure in the code generator is almost surely a mistake
13209 that will lead to unexpected results.
13210
13211 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
13212 change handling of conversions.
13213
13214 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
13215
13216 2001-12-05 Ed Schonberg <schonber@gnat.com>
13217
13218 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
13219 aggregate with static wrong size, attach generated Raise node to
13220 declaration.
13221
13222 2001-12-05 Robert Dewar <dewar@gnat.com>
13223
13224 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
13225 Fixes compilation abandoned bomb in B24009B.
13226
13227 2001-12-05 Ed Schonberg <schonber@gnat.com>
13228
13229 * sem_ch12.adb:
13230 Document use of Associated_Node on Selected_Components.
13231 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
13232 to clarify use of untyped descendant fields.
13233
13234 2001-12-05 Robert Dewar <dewar@gnat.com>
13235
13236 * prj-dect.ads: Add ??? comment
13237 Add 2001 to copyright notice (was not done in after all)
13238
13239 * prj-part.adb: Minor reformatting. Reword one awkward error message.
13240
13241 * prj.ads: Minor reformatting throughout, and add some ??? comments
13242
13243 * snames.ads: Minor reformatting
13244
13245 2001-12-05 Geert Bosch <bosch@gnat.com>
13246
13247 * snames.adb: Autoupdate
13248
13249 2001-12-05 Vincent Celier <celier@gnat.com>
13250
13251 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
13252
13253 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
13254
13255 * prj-env.adb: Minor comment changes (modifying -> extends).
13256
13257 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
13258
13259 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
13260 Tok_Extends.
13261
13262 * prj.adb (Initialize): Change Modifying to Extends.
13263
13264 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
13265
13266 * prj.ads: Minor comment change (Modifying -> extending).
13267
13268 * snames.ads: Change modifying to extends.
13269
13270 2001-12-05 Robert Dewar <dewar@gnat.com>
13271
13272 * sem_warn.adb: Remove stuff for conditionals, we are not going to
13273 do this after all.
13274
13275 * sem_warn.ads: Remove stuff for conditionals, we are not going to
13276 do this after all. Add 2001 to copyright notice
13277
13278 2001-12-04 Geert Bosch <bosch@gnat.com>
13279
13280 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
13281
13282 2001-12-04 Robert Dewar <dewar@gnat.com>
13283
13284 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
13285 location if we already have errors. Stops some cases of cascaded
13286 errors.
13287
13288 * errout.adb: Improve comment.
13289
13290 2001-12-04 Robert Dewar <dewar@gnat.com>
13291
13292 * sem_ch12.adb:
13293 (Analyze_Formal_Type_Definition): Defend against Error.
13294 (Analyze_Formal_Subprogram): Defend against Error.
13295
13296 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
13297 remove following semicolon if present. Removes cascaded error.
13298
13299 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
13300
13301 * bindgen.adb:
13302 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
13303 exceptions equals 0.
13304 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
13305 Fixes PIWG E tests (which have to be run with -gnatL).
13306
13307 2001-12-04 Robert Dewar <dewar@gnat.com>
13308
13309 * einfo.ads: Minor reformatting
13310
13311 2001-12-04 Ed Schonberg <schonber@gnat.com>
13312
13313 * einfo.ads: Block_Node points to the identifier of the block, not to
13314 the block node itself, to preserve the link when the block is
13315 rewritten, e.g. within an if-statement with a static condition.
13316
13317 * inline.adb (Cleanup_Scopes): recover block statement from block
13318 entity using new meaning of Block_Node.
13319
13320 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
13321 identifier of block node, rather than to node itself.
13322
13323 2001-12-04 Gary Dismukes <dismukes@gnat.com>
13324
13325 * layout.adb:
13326 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
13327 (Discrimify): Go back to setting the Etypes of the selected component
13328 because the Vname component does not exist at this point and will
13329 fail name resolution. Also set Analyzed.
13330 Remove with and use of Sem_Res.
13331
13332 2001-12-04 Arnaud Charlet <charlet@gnat.com>
13333
13334 * Makefile.in: (HIE_SOURCES): add s-fat*.
13335
13336 2001-12-04 Robert Dewar <dewar@gnat.com>
13337
13338 * sem_attr.adb:
13339 (Compile_Time_Known_Attribute): New procedure.
13340 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
13341 proper range check.
13342
13343 2001-12-04 Ed Schonberg <schonber@gnat.com>
13344
13345 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
13346 processing discriminants to diagnose illegal default values.
13347
13348 2001-12-04 Ed Schonberg <schonber@gnat.com>
13349
13350 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
13351 access discriminant within a type extension that constrains its
13352 parent discriminants.
13353
13354 2001-12-04 Ed Schonberg <schonber@gnat.com>
13355
13356 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
13357 is malformed, use instance of Any_Id to allow analysis to proceed.
13358
13359 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
13360 type definition is illegal.
13361 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
13362 misplaced.
13363
13364 2001-12-04 Ed Schonberg <schonber@gnat.com>
13365
13366 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
13367 constants.
13368
13369 2001-12-04 Robert Dewar <dewar@gnat.com>
13370
13371 * errout.adb: Minor reformatting
13372
13373 2001-12-04 Robert Dewar <dewar@gnat.com>
13374
13375 * exp_util.adb: Minor reformatting from last change
13376
13377 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
13378 which is a rewriting of an expression, traverse the original
13379 expression to remove warnings that may have been posted on it.
13380
13381 2001-12-04 Ed Schonberg <schonber@gnat.com>
13382
13383 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
13384 record that has other packed components.
13385
13386 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
13387
13388 * adaint.c: Minor cleanups.
13389
13390 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
13391
13392 * adaint.c: Do not use utime.h on vxworks.
13393
13394 2001-12-04 Arnaud Charlet <charlet@gnat.com>
13395
13396 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
13397 more confusion than it solves.
13398
13399 2001-12-04 Geert bosch <bosch@gnat.com>
13400
13401 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
13402
13403 2001-12-04 Geert Bosch <bosch@gnat.com>
13404
13405 * Makefile.in (update-sources): New target.
13406 For use by gcc_release script.
13407
13408 2001-12-04 Ed Schonberg <schonber@gnat.com>
13409
13410 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
13411 a configuration pragma, it is now legal wherever a pragma can appear.
13412
13413 2001-12-04 Zack Weinberg <zack@codesourcery.com>
13414
13415 * Makefile.in: Don't set ALL. Delete @cross_defines@,
13416 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
13417 is now @CROSS@ -DIN_GCC; update comment.
13418
13419 2001-12-04 Robert Dewar <dewar@gnat.com>
13420
13421 * einfo.adb (Has_Pragma_Pure_Function): New flag.
13422 Fix problem that stopped ceinfo from working
13423
13424 * einfo.ads (Has_Pragma_Pure_Function): New flag.
13425
13426 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
13427
13428 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
13429
13430 * gnatchop.adb:
13431 (File_Time_Stamp): New procedure.
13432 (Preserve_Mode): New boolean.
13433 (Write_Unit): Pass time stamp.
13434 Implement -p switch (preserve time stamps).
13435
13436 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
13437
13438 * gnatchop.adb: Do usage info for -p switch
13439
13440 * adaint.h (__gnat_set_file_time_name): New function
13441
13442 * adaint.c (__gnat_set_file_time_name): Implement
13443
13444 * adaint.h: Fix typo
13445
13446 2001-12-03 Robert Dewar <dewar@gnat.com>
13447
13448 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
13449 have Associated_Node.
13450
13451 2001-12-03 Robert Dewar <dewar@gnat.com>
13452
13453 * prj-proc.adb: Minor reformatting
13454
13455 * make.adb: Minor reformatting
13456
13457 2001-12-03 Geert Bosch <bosch@gnat.com>
13458
13459 * make.adb: Minor reformatting.
13460
13461 2001-12-03 Robert Dewar <dewar@gnat.com>
13462
13463 * sem_ch12.adb: Minor reformatting
13464
13465 2001-12-03 Ed Schonberg <schonber@gnat.com>
13466
13467 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
13468 push Standard on the stack before analyzing the instance body,
13469 in order to have a clean visibility environment.
13470
13471 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
13472
13473 2001-12-03 Ed Schonberg <schonber@gnat.com>
13474
13475 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13476 instantiation of a body that contains an inlined body.
13477
13478 2001-12-03 Ed Schonberg <schonber@gnat.com>
13479
13480 * sem_ch12.adb:
13481 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
13482 to prevent freezing within formal packages.
13483 (Freeze_Subprogram_Body): If body comes from another instance that
13484 appeared before its own body, place freeze node at end of current
13485 declarative part, to prevent a back-end crash.
13486 (Inline_Instance_Body): Handle properly a package instance within
13487 a subprogram instance that is a child unit.
13488
13489 2001-12-01 Graham Stott <grahams@redhat.com>
13490
13491 * Makefile.in (misc.o): Add missing $(srcdir) prefix
13492 and add optabs.h dependency.
13493
13494 * misc.c: Include optabs.h
13495 (gnat_tree_code_type): Make static and const.
13496 (gnat_tree_code_length): Likewise.
13497 (gnat_tree_code_name): Likewise.
13498 (update_setjmp_buf): Obtain operands mode from insn_data.
13499
13500 2001-11-29 Richard Henderson <rth@redhat.com>
13501
13502 * init.c: Remove obsolete dwarf2 frame.h section.
13503
13504 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
13505
13506 * Make-lang.in (ada.generated-manpages): New dummy target.
13507
13508 2001-11-29 Ed Schonberg <schonber@gnat.com>
13509
13510 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
13511 into Command, an array conversion is illegal here. Uncovered by
13512 ACATS B460005.
13513
13514 2001/11/28 Geert Bosch <bosch@gnat.com>
13515
13516 * init.c: Minor whitespace changes.
13517
13518 2001-11-28 Doug Rupp <rupp@gnat.com>
13519
13520 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
13521 signal stack.
13522
13523 2001-11-28 Zack Weinberg <zack@codesourcery.com>
13524
13525 * misc.c (gnat_expand_constant): Move declaration above
13526 definition of lang_hooks.
13527 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
13528 (gnat_init): lang_expand_constant no longer exists.
13529
13530 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
13531 always have vprintf.
13532 (gnat_init): Always call set_internal_error_function.
13533
13534 2001-11-27 Andreas Jaeger <aj@suse.de>
13535
13536 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
13537
13538 2001-11-27 Laurent Guerby <guerby@acm.org>
13539
13540 * Makefile.in: Regenerate Ada dependencies.
13541
13542 2001-11-26 Richard Henderson <rth@redhat.com>
13543
13544 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
13545 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
13546 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
13547
13548 2001-11-25 Laurent Guerby <guerby@acm.org>
13549
13550 * sysdep.c (rts_get_*): Fix style.
13551
13552 2001-11-19 Laurent Guerby <guerby@acm.org>
13553
13554 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
13555 since it is of no apparent use and cause warnings.
13556
13557 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
13558
13559 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
13560 static too.
13561 (gnat_init): Don't return NULL.
13562 (finish_parse): Remove.
13563
13564 2001-11-17 Laurent Guerby <guerby@acm.org>
13565
13566 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
13567 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
13568 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
13569 * lang-spec.h: Add missing struct field to silence warnings.
13570 * sysdep.c (rts_get_*): Provide K&R prototype.
13571 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
13572 * traceback.c (Unlock_Task, Lock_Task): Likewise.
13573 * tracebak.c (__gnat_backtrace): Remove unused variable.
13574 * utils.c (end_subprog_body): Move to K&R style.
13575
13576 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13577
13578 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
13579
13580 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
13581
13582 * misc.c (gnat_init): Change prototype. Include the
13583 functionality of the old init_parse and init_decl_processing.
13584 (gnat_init_decl_processing): New prototype.
13585 (init_parse): Remove.
13586 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
13587
13588 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
13589
13590 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
13591 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
13592 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
13593 set_yydebug): Remove.
13594
13595 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
13596
13597 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
13598 (struct lang_hooks): Constify.
13599 (language_string, lang_identify): Remove.
13600 * utils.c (init_decl_processing): Update.
13601
13602 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
13603
13604 * misc.c: Include langhooks-def.h.
13605 * Makefile.in: Update.
13606
13607 2001-10-30 Robert Dewar <dewar@gnat.com>
13608
13609 * style.adb:
13610 (Check_Identifier): Rewrite circuit to be compatible with use of letters
13611 in the upper half of ASCII.
13612 (Check_Identifier): Minor reformatting
13613
13614 2001-10-30 Geert Bosch <bosch@gnat.com>
13615
13616 * (Associated_Node, Set_Associated_Node): Do not check for
13617 Freeze_Entity.
13618
13619 2001-10-30 Robert Dewar <dewar@gnat.com>
13620
13621 * a-reatim.ads: Minor reformatting
13622
13623 2001-10-30 Robert Dewar <dewar@gnat.com>
13624
13625 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
13626 undocumented declarations.
13627
13628 2001-10-30 Pascal Obry <obry@gnat.com>
13629
13630 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
13631 to the binder and linker.
13632 Minor style fix.
13633
13634 * mdll.ads: Fix layout. Update copyright notice.
13635
13636 * mdll.adb: Fix layout. Update copyright notice.
13637
13638 2001-10-30 Robert Dewar <dewar@gnat.com>
13639
13640 * usage.adb: Minor fix to output for -gnaty.
13641
13642 2001-10-30 Ed Schonberg <schonber@gnat.com>
13643
13644 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
13645 to accommodate all its possible values.
13646
13647 * a-reatim.adb (Split): Special-case handling of Time_Span_First
13648 and of small absolute values of T.
13649
13650 2001-10-30 Richard Kenner <kenner@gnat.com>
13651
13652 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
13653 set_mem_attributes since not needed and wrong if RESULT if a REG;
13654 fixes ACATS failures.
13655
13656 2001-10-30 Geert Bosch <bosch@gnat.com>
13657
13658 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
13659 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
13660
13661 2001-10-30 Robert Dewar <dewar@gnat.com>
13662
13663 * bindusg.adb: Undocument -f switch.
13664
13665 * gnatcmd.adb: Remove /FULL_ELABORATION.
13666
13667 * opt.ads (Force_RM_Elaboration_Order): Document that this is
13668 obsolescent.
13669
13670 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
13671
13672 * gnatbind.adb: Minor update of warning msg.
13673
13674 2001-10-30 Vincent Celier <celier@gnat.com>
13675
13676 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
13677 for project file switches (-P (/PROJECT_FILE=),
13678 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
13679 or MEDIUM or HIGH)
13680
13681 2001-10-30 Geert Bosch <bosch@gnat.com>
13682
13683 * decl.c: Minor whitespace fixes.
13684
13685 2001-10-30 Richard Kenner <kenner@gnat.com>
13686
13687 * utils2.c (build_allocator): Test for SIZE overflow in array case too
13688
13689 2001-10-30 Geert Bosch <bosch@gnat.com>
13690
13691 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
13692 Found due to GCC 3.0 warning of using uninitialized value.
13693
13694 * layout.adb:
13695 (Get_Max_Size): Use variant record for tracking value/expression.
13696 Makes logic clearer and prevents warnings for uninitialized variables.
13697 (Layout_Array_Type): Use variant record for tracking value/expression.
13698 Makes logic clearer and prevents warnings for uninitialized variables.
13699
13700 2001-10-30 Robert Dewar <dewar@gnat.com>
13701
13702 * lib.adb: Minor reformatting
13703
13704 * s-taprop.ads: Minor reformatting
13705
13706 2001-10-29 Laurent Guerby <guerby@acm.org>
13707
13708 * init.c:
13709 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
13710 const.
13711 (_gnat_error_handler): Make MSG const.
13712
13713 2001-10-29 Richard Kenner <kenner@gnat.com>
13714
13715 * sysdep.c: Fix localtime_r problem on LynxOS.
13716 Also remove #elif to avoid warnings.
13717
13718 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
13719 used by this.
13720
13721 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
13722
13723 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
13724
13725 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
13726 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
13727 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
13728 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
13729 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
13730 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
13731 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
13732 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
13733 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
13734 types.ads, urealp.adb: Fix spelling errors.
13735
13736 2001-10-27 Laurent Guerby <guerby@acm.org>
13737
13738 * trans.c (gigi): Fix non determinism leading to bootstrap
13739 comparison failures for debugging information.
13740
13741 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
13742
13743 * gnat_rm.texi: Use @./@: where appropriate.
13744
13745 2001-10-26 Robert Dewar <dewar@gnat.com>
13746
13747 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
13748
13749 2001-10-26 Richard Kenner <kenner@gnat.com>
13750
13751 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
13752
13753 2001-10-26 Richard Kenner <kenner@gnat.com>
13754
13755 * decl.c (validate_size): Modify message for bad size to avoid
13756 implication that compiler is modifying the size.
13757
13758 2001-10-26 Robert Dewar <dewar@gnat.com>
13759
13760 * prj-util.adb: Minor reformatting. Fix bad header format.
13761
13762 2001-10-26 Robert Dewar <dewar@gnat.com>
13763
13764 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
13765
13766 * sinfo.ads: Clarify use of Associated_Node (documentation only).
13767
13768 * sem_ch12.adb: Change Node4 to Associated_Node. Change
13769 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
13770 much more narrowly in places where needed. These are cleanups.
13771
13772 2001-10-26 Joel Brobecker <brobecke@gnat.com>
13773
13774 * 5zosinte.ads (null_pthread): new constant.
13775
13776 * 5ztaprop.adb:
13777 (Initialize_TCB): Initialize thread ID to null, to be able to verify
13778 later that this field has been set.
13779 (Finalize_TCB): ditto.
13780 (Suspend_Task): Verify that the thread ID is not null before using it.
13781 (Resume_Task): ditto.
13782
13783 * s-tasdeb.adb:
13784 (Resume_All_Tasks): Lock the tasks list before using it.
13785 (Suspend_All_Tasks): ditto.
13786
13787 2001-10-26 Richard Kenner <kenner@gnat.com>
13788
13789 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
13790 Make constant variant of designated type for Is_Access_Constant.
13791 Call update_pointer_to with main variant.
13792
13793 * trans.c (process_freeze_entity, process_type):
13794 Call update_pointer_to on main variant.
13795
13796 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
13797 If main variant, update all other variants.
13798
13799 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
13800 TREE_STATIC.
13801
13802 2001-10-26 Robert Dewar <dewar@gnat.com>
13803
13804 * prj-util.adb: Minor reformatting
13805
13806 2001-10-26 Robert Dewar <dewar@gnat.com>
13807
13808 * prj-util.adb: Minor reformatting
13809
13810 2001-10-26 Robert Dewar <dewar@gnat.com>
13811
13812 * prj-attr.adb: Minor reformatting throughout
13813
13814 2001-10-26 Robert Dewar <dewar@gnat.com>
13815
13816 * prj-attr.ads: Minor reformatting
13817 Add ??? comment (this whole spec has almost no comments)
13818
13819 2001-10-26 Vincent Celier <celier@gnat.com>
13820
13821 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
13822 ("//") that precede the drive letter on Interix.
13823
13824 2001-10-26 Geert Bosch <bosch@gnat.com>
13825
13826 * gnat_rm.texi: Add GNAT Reference Manual.
13827
13828 2001-10-25 Robert Dewar <dewar@gnat.com>
13829
13830 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
13831 is Error. Similar change for other renaming cases.
13832
13833 2001-10-25 Robert Dewar <dewar@gnat.com>
13834
13835 * s-atacco.ads: Add pragma Inline_Always for functions.
13836 Fix header format. Add copyright 2001
13837
13838 2001-10-25 Ed Schonberg <schonber@gnat.com>
13839
13840 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
13841 return Error rather than Empty so that analysis can proceed.
13842
13843 2001-10-25 Ed Schonberg <schonber@gnat.com>
13844
13845 * sem_util.adb (Enter_Name): better handling of cascaded error
13846 messages when a unit appears in its own context.
13847
13848 2001-10-25 Ed Schonberg <schonber@gnat.com>
13849
13850 * sem_util.adb (Defining_Entity): in case of error, attach created
13851 entity to specification, so that semantic analysis can proceed.
13852
13853 2001-10-25 Robert Dewar <dewar@gnat.com>
13854
13855 * sem_util.adb
13856 (Defining_Entity): Deal with Error.
13857 (Process_End_Label): Deal with bad end label for.
13858
13859 2001-10-25 Ed Schonberg <schonber@gnat.com>
13860
13861 * sem_elab.adb (Check_A_Call): refine message when call is in an
13862 instance but callee is not declared in the generic unit.
13863
13864 2001-10-25 Ed Schonberg <schonber@gnat.com>
13865
13866 * sem_elab.adb (Check_A_Call): check for renaming before finding the
13867 enclosing unit, which may already be different from the calling unit.
13868
13869 2001-10-25 Geert Bosch <bosch@gnat.com>
13870
13871 * 4gintnam.ads: fix header format.
13872
13873 2001-10-25 Ed Schonberg <schonber@gnat.com>
13874
13875 * sem_res.adb (Resolve_Call): if the call is actually an indexing
13876 operation on the result of a parameterless call, perform elaboration
13877 check after the node has been properly rewritten.
13878
13879 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
13880 inlined within the generic tree, the defining identifier is not a
13881 compilation_unit.
13882
13883 2001-10-25 Ed Schonberg <schonber@gnat.com>
13884
13885 * sem_res.adb (Resolve): special-case resolution of Null in an
13886 instance or an inlined body to avoid view conflicts.
13887
13888 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
13889 compatibility by retrieving the access type of the generic copy.
13890
13891 2001-10-25 Robert Dewar <dewar@gnat.com>
13892
13893 * sem_ch3.adb:
13894 (Analyze_Number_Declaration): Handle error expression.
13895 (Signed_Integer_Type_Declaration): Handle error bound.
13896 (Analyze_Subtype_Indication): Handle error range.
13897
13898 * sem_util.adb (Get_Index_Bounds): Check for Error.
13899
13900 2001-10-25 Robert Dewar <dewar@gnat.com>
13901
13902 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
13903 in no run time mode.
13904
13905 2001-10-25 Pascal Obry <obry@gnat.com>
13906
13907 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
13908 mode case for ALLOC case.
13909
13910 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
13911 all platforms. Improvement of last change.
13912
13913 2001-10-25 Robert Dewar <dewar@gnat.com>
13914
13915 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
13916
13917 2001-10-25 Geert Bosch <bosch@gnat.com>
13918
13919 * osint.adb (Is_Relative): Remove duplicate.
13920
13921 2001-10-25 Pascal Obry <obry@gnat.com>
13922
13923 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
13924 pathnames in UNIX and DOS style with drive letter.
13925 (Is_Relative): new routine.
13926
13927 * osint.adb: Minor reformatting
13928
13929 * osint.adb (Is_Relative): implementation using
13930 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
13931
13932 2001-10-25 Pascal Obry <obry@gnat.com>
13933
13934 * g-dirope.adb (Basename): correctly compute offset between the
13935 original Path and the translated one.
13936
13937 * g-dirope.adb: (Base_Name): add some comments.
13938
13939 2001-10-25 Robert Dewar <dewar@gnat.com>
13940
13941 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
13942 in HIE mode, avoids compilation abandoned message
13943
13944 * exp_imgv.adb: Correct typo in previous change
13945
13946 * exp_imgv.adb: Correct typo in previous change (not my day!)
13947
13948 2001-10-25 Robert Dewar <dewar@gnat.com>
13949
13950 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
13951
13952 2001-10-25 Pascal Obry <obry@gnat.com>
13953
13954 * g-awk.ads: Move all pragma inlines next to the routine
13955 declarations. This is more uniform with other GNAT spec.
13956
13957 2001-10-22 Geert Bosch <bosch@gnat.com>
13958
13959 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
13960
13961 2001-10-19 Geert Bosch <bosch@gnat.com>
13962
13963 * Makefile.in (tools, gnattools): Remove gnatmem.
13964
13965 2001-10-17 Richard Henderson <rth@redhat.com>
13966
13967 * Makefile.in (misc.o): Depend on langhooks.h.
13968 * misc.c: Include it.
13969 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
13970 (LANG_HOOKS_DECODE_OPTION): New.
13971 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
13972
13973 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
13974
13975 * trans.c (tree_transform): Adjust to recent change in
13976 expand_asm_operands to implement named asm operands.
13977
13978 2001-10-11 Ed Schonberg <schonber@gnat.com>
13979
13980 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
13981 renaming of discriminant for mutable record type.
13982
13983 2001-10-11 Robert Dewar <dewar@gnat.com>
13984
13985 * validsw.adb: Properly save -gnatVn status.
13986
13987 2001-10-11 Robert Dewar <dewar@gnat.com>
13988
13989 * usage.adb: Add lines for V switch.
13990
13991 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
13992 (/VALIDITY_CHECKING).
13993
13994 2001-10-11 Ed Schonberg <schonber@gnat.com>
13995
13996 * sem_type.adb (Add_One_Interp): an operator for a type declared in
13997 an extension of System is known to be visible.
13998
13999 2001-10-11 Ed Schonberg <schonber@gnat.com>
14000
14001 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
14002 properly. Fixes regression on ACATS C34005G.
14003
14004 2001-10-11 Robert Dewar <dewar@gnat.com>
14005
14006 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
14007 loop in generic instance, since this is likely not very useful.
14008
14009 2001-10-11 Robert Dewar <dewar@gnat.com>
14010
14011 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
14012 the error message for high integrity mode.
14013
14014 * rtsfind.adb (RTE): Give message if we try to find an entity that
14015 is not available in high integrity mode.
14016
14017 * rtsfind.ads:
14018 (OK_To_Use_In_HIE_Mode): New array.
14019 (RTE): May return Empty in high integrity mode.
14020
14021 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
14022 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
14023
14024 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
14025 unit if not inlined always and in no runtime mode. Fixes problem
14026 caused by new Rtsfind changes.
14027
14028 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
14029 body is deleted.
14030
14031 * rtsfind.adb (RTE): Make sure we do not try to load unit after
14032 giving message for entity not available in high integrity mode.
14033
14034 2001-10-11 Pascal Obry <obry@gnat.com>
14035
14036 * impunit.adb: Add GNAT.CRC32.
14037
14038 2001-10-11 Ed Schonberg <schonber@gnat.com>
14039
14040 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
14041 properly the case where one universal operand in a non-static
14042 exponentiation of a real literal.
14043
14044 2001-10-11 Ed Schonberg <schonber@gnat.com>
14045
14046 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
14047 clause, return the gobal finalization list, for lack of anthing else.
14048
14049 2001-10-11 Ed Schonberg <schonber@gnat.com>
14050
14051 * exp_ch7.adb (Make_Transient_Block): if statement is within
14052 exception handler, always use new transient scope to place Clean
14053 procedure.
14054
14055 2001-10-11 Pascal Obry <obry@gnat.com>
14056
14057 * Makefile.in:
14058 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
14059 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
14060 (GNATLS_RTL_OBJS): add g-crc32.o
14061 (GNATMAKE_RTL_OBJS): add g-crc32.o
14062
14063 * ali-util.adb:
14064 (CRC_Match): new function.
14065 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
14066 instead of the previous simple checksum algorithm.
14067 (Time_Stamp_Mismatch): use CRC_Match for comparison.
14068 (Set_Source_Table): idem.
14069
14070 * ali-util.ads:
14071 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
14072 instead of simple checksum.
14073 (CRC_Match): new function.
14074 (CRC_Error): new constant.
14075
14076 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
14077 a CRC now and not a simple checksum. A CRC uses lower-case hex
14078 letters, fixes ambiguity in parsing.
14079
14080 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
14081 is what this variable will store.
14082
14083 * bcheck.adb: Change reference to chechsum in comments by CRC.
14084 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
14085 rename All_Checksum_Match to All_CRC_Match. Change due to API
14086 renaming since now GNAT does not use a simple checksum but a
14087 CRC using GNAT.CRC32.
14088
14089 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
14090 now and not anymore a simple checksum.
14091
14092 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
14093 places.
14094
14095 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
14096
14097 * scans.adb:
14098 (Restore_Scan_State): rename Checksum to CRC.
14099 (Save_Scan_State): idem.
14100
14101 * scans.ads:
14102 With GNAT.CRC32.
14103 (Checksum): rename to CRC.
14104 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
14105
14106 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
14107 GNAT.CRC32). Update copyright notice.
14108
14109 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
14110 GNAT.CRC32). Update copyright notice.
14111
14112 * scn.adb:
14113 (Accumulate_Checksum): removed.
14114 (Update): new procedure. Add a wide-character into the CRC.
14115
14116 * sinput-l.adb:
14117 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
14118 (Load_File): fix initialization of S (change Source_Checksum to
14119 Source_CRC)
14120
14121 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
14122 Source_CRC in S initialization.
14123
14124 * sinput.adb (Source_Checksum): renamed to Source_CRC.
14125
14126 * sinput.ads (Source_Checksum): renamed to Source_CRC.
14127 Update comments for the CRC.
14128
14129 * types.adb (Hex): Use lowercase for the letter part.
14130
14131 * types.ads (Get_Hex_String): Returns the hexadecimal representation
14132 for a word. This is currently used only for CRC. In previous version,
14133 the checksum was using a representation with all letter being
14134 upper-case. With the new implementation (using CRC) we do not remove
14135 the 32th bit of the CRC, so we can have an upper-case starting letter
14136 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
14137 It is ambigous since the CRC was optional and could be followed by
14138 options like EB, EE. So now this routines uses lower-case letter for
14139 the hexadecimal representation. Strange enough only lower case letters
14140 where checked in Scan_ALI (even if this was not a possible case).
14141
14142 * gnatvsn.ads (Library_Version): changed to 3.15a.
14143
14144 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
14145 for the compiler.
14146
14147 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
14148 for the compiler.
14149
14150 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
14151 Add 2001 to copyright notice
14152 (Accumulate_Checksum): Modify to use System.CRC32.
14153
14154 * ali-util.ads: Redo changes of previous revision to continue to use
14155 the word Checksum. Add 2001 to copyright notice.
14156
14157 * ali.adb: Undo some of previous changes, not needed.
14158 Keep the change for lower case letters in the checksum.
14159
14160 * ali.ads: Undo previous change not needed.
14161
14162 * bcheck.adb: Undo most of previous change, not needed.
14163 But do use Checksums_Match for checksum comparison.
14164
14165 * gnatls.adb: Undo most of previous change, not needed.
14166 But do use Checksums_Match for comparing checksums.
14167
14168 * lib-load.adb: Undo previous change, not needed.
14169
14170 * lib-writ.adb: Undo previous change, not needed.
14171
14172 * lib-writ.ads: Document that checksums use lower case,
14173 not upper case letters.
14174
14175 * scans.adb: Undo previous change, not needed
14176
14177 * scans.ads: Undo previous change, not needed.
14178
14179 * scn-nlit.adb: Undo previous changes, not needed.
14180
14181 * scn-slit.adb: Undo previous change, not needed. Fix header format.
14182
14183 * scn.adb:
14184 (Accumulate_Checksum): Use System.CRC32.
14185 (Initialize_Checksum): New procedure.
14186 Remove other changes of previous revision.
14187
14188 * sinput-p.adb: Undo previous change, not needed.
14189
14190 * sinput.adb: Undo previous change, not needed.
14191
14192 * sinput-l.adb: Undo previous change, not needed.
14193
14194 * sinput.ads: Undo previous change, not needed. Keep only comment
14195 on new checksum algorithm
14196
14197 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
14198 Also remove a-tags and a-stream from GNAT sources.
14199
14200 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
14201
14202 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
14203
14204 2001-10-11 Geert Bosch <bosch@gnat.com>
14205
14206 * einfo.h: Regenerate.
14207
14208 * nmake.ads: Regenerate.
14209
14210 * nmake.adb: Regenerate.
14211
14212 * sinfo.h: Regenerate.
14213
14214 * treeprs.adb: Regenerate.
14215
14216 2001-10-10 Geert Bosch <bosch@gnat.com>
14217
14218 * gnat-style.texi: New file describing coding guidelines for Ada.
14219
14220 2001-10-10 Ed Schonberg <schonber@gnat.com>
14221
14222 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
14223 is Flag174.
14224
14225 2001-10-10 Geert Bosch <bosch@gnat.com>
14226
14227 * snames.ads: Add new names for project facility.
14228
14229 * snames.adb: Update to reflect snames.ads changes.
14230
14231 * snames.h: Update to reflect snames.ads changes.
14232
14233 2001-10-10 Vincent Celier <celier@gnat.com>
14234
14235 * make.adb:
14236 (Add_Switches): reflect the changes for the switches attributes
14237 Default_Switches indexed by the programming language,
14238 Switches indexed by the file name.
14239 (Collect_Arguments_And_Compile): Idem.
14240 Reflect the attribute name changes.
14241
14242 * prj-attr.adb:
14243 (Initialisation_Data): Change the names of some packages and
14244 attributes.
14245 (Initialize): process case insensitive associative arrays.
14246
14247 * prj-attr.ads:
14248 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
14249
14250 * prj-dect.adb:
14251 (Parse_Attribute_Declaration): For case insensitive associative
14252 arrays, set the index string to lower case.
14253
14254 * prj-env.adb:
14255 Reflect the changes of the project attributes.
14256
14257 * prj-nmsc.adb:
14258 Replace Check_Naming_Scheme by Ada_Check and
14259 Language_Independent_Check.
14260
14261 * prj-nmsc.ads:
14262 Replaced Check_Naming_Scheme by 2 procedures:
14263 Ada_Check and Language_Independent_Check.
14264
14265 * prj-proc.adb:
14266 (Process_Declarative_Items): For case-insensitive associative
14267 arrays, set the index string to lower case.
14268 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
14269 Prj.Nmsc.Check_Naming_Scheme.
14270
14271 * prj-tree.adb:
14272 (Case_Insensitive): New function
14273 (Set_Case_Insensitive): New procedure
14274
14275 * prj-tree.ads:
14276 (Case_Insensitive): New function
14277 (Set_Case_Insensitive): New procedure
14278 (Project_Node_Record): New flag Case_Insensitive.
14279
14280 * prj-util.adb:
14281 (Value_Of): new function to get the string value of a single
14282 string variable or attribute.
14283
14284 * prj-util.ads:
14285 (Value_Of): new function to get the string value of a single
14286 string variable or attribute.
14287
14288 * prj.adb:
14289 (Ada_Default_Spec_Suffix): New function
14290 (Ada_Default_Impl_Suffix): New function
14291 Change definitions of several constants to reflect
14292 new components of record types.
14293
14294 * prj.ads:
14295 (Naming_Data): Change several components to reflect new
14296 elements of naming schemes.
14297 (Project_Data): New flags Sources_Present and
14298 Language_Independent_Checked.
14299 (Ada_Default_Spec_Suffix): New function.
14300 (Ada_Default_Impl_Suffix): New function.
14301
14302 * snames.ads:
14303 Modification of predefined names for project manager: added
14304 Implementation, Specification_Exceptions, Implementation_Exceptions,
14305 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
14306 Default_Switches, _Languages, Builder, Cross_Reference,
14307 Finder. Removed Body_Part, Specification_Append, Body_Append,
14308 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
14309 Gnatlink.
14310
14311 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
14312 Add comments.
14313
14314 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
14315 not that it is Nil_Variable_Value.
14316
14317 * prj.ads: Add ??? for uncommented declarations
14318
14319 2001-10-10 Ed Schonberg <schonber@gnat.com>
14320
14321 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
14322 constant, do not indicate possible modification, so that gigi can
14323 treat it as a bona fide constant.
14324
14325 2001-10-10 Robert Dewar <dewar@gnat.com>
14326
14327 * sem_prag.adb: Add processing for pragma External.
14328
14329 * snames.ads: Add entry for pragma External.
14330
14331 * par-prag.adb: Add pragma External.
14332
14333 * snames.adb: Updated to match snames.ads.
14334
14335 2001-10-10 Ed Schonberg <schonber@gnat.com>
14336
14337 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
14338 a dynamic task if the allocator appears in an indexed assignment
14339 or selected component assignment.
14340
14341 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
14342 For a dynamic task in an assignment statement, use target of
14343 assignment to generate meaningful name.
14344
14345 2001-10-10 Ed Schonberg <schonber@gnat.com>
14346
14347 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
14348 a generic package.
14349
14350 * einfo.ads: Body_Entity is also defined for generic package.
14351 Documentation change only
14352
14353 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
14354 others_choice for a discriminated component initialization,
14355 convert discriminant references into the corresponding discriminals.
14356
14357 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
14358 only if original type is private and expression has to be wrapped
14359 in a conversion.
14360
14361 * checks.adb:
14362 (Apply_Constraint_Check): Do not perform length check
14363 if expression is an aggregate with only an others_choice.
14364 (Length_N_Cond): two references to the same in_parameter
14365 (typically the discriminal in an init_proc) denote the same value.
14366 Two useful optimization uncovered by bugfixes above.
14367
14368 2001-10-10 Robert Dewar <dewar@gnat.com>
14369
14370 * xeinfo.adb: Change int to char in translation of enumeration types.
14371 This fixes a problem in the C representation of component alignment.
14372 Add 2001 to copyright notice
14373
14374 2001-10-10 Richard Kenner <kenner@gnat.com>
14375
14376 * decl.c: (validate_size): Do check size of object of integral type
14377 if it is a packed array type.
14378
14379 2001-10-10 Richard Kenner <kenner@gnat.com>
14380
14381 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
14382 VAR_DECL for constant if not Is_Public but -O0.
14383
14384 2001-10-10 Richard Kenner <kenner@gnat.com>
14385
14386 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
14387
14388 2001-10-10 Geert Bosch <bosch@gnat.com>
14389
14390 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
14391 use '/' as switch character, allowing for absolute file names.
14392
14393 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
14394
14395 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
14396 FSF address.
14397
14398 2001-10-08 Geert Bosch <bosch@gnat.com>
14399
14400 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
14401 Automatically build utilities when files need to be regenerated.
14402
14403 2001-10-08 Geert Bosch <bosch@gnat.com>
14404
14405 * xsnames.adb: New utility for updating snames.ads and snames.adb
14406
14407 2001-10-08 Zack Weinberg <zack@codesourcery.com>
14408
14409 * Make-lang.in (ADAFLAGS): Add -W -Wall.
14410 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
14411 (gnat1): Also depend on attribs.o.
14412 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
14413 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
14414 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
14415 (ADAFLAGS): Add -W -Wall.
14416 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
14417 take out CFLAGS.
14418
14419 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
14420 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
14421 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
14422 Use $(ADAC), not $(CC), as compilation command.
14423
14424 (gnattools): Depend directly on tools to build, don't use
14425 recursive make.
14426 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
14427
14428 * einfo.h, sinfo.h: New files (autogenerated).
14429
14430 2001-10-08 Richard Henderson <rth@redhat.com>
14431
14432 * comperr.adb (Abort_In_Progress): New.
14433 (Compiler_Abort): Use it to prevent recursion.
14434
14435 2001-10-08 Robert Dewar <dewar@gnat.com>
14436
14437 * atree.adb: Set Error_Posted in Error node, helps error recovery.
14438
14439 * par-endh.adb (Output_End_Expected): We should also not test
14440 Error_Posted on the Error node, since now it is always set.
14441
14442 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
14443 to help error recovery. Part of general work on 9407-004.
14444
14445 * par.adb: Add ??? for misuse of error
14446
14447 * sem_res.adb:
14448 (Resolve): Defend against Error, fixes 9407-003.
14449 (Resolve_Discrete_Subtype_Indication): Defend against Error.
14450
14451 * sinfo.ads (N_Error): Now has Etype field (which will be set
14452 to Any_Type to help error recovery).
14453
14454 2001-10-08 Richard Kenner (kenner@gnat.com)
14455
14456 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
14457 Consistently set MEM attributes from expression; fixes
14458 bootstrap failure on x86.
14459
14460 2001-10-08 Geert Bosch (bosch@gnat.com)
14461
14462 * 5oosinte.adb: Add 2001 to copyright notice.
14463
14464 2001-10-08 Geert Bosch (bosch@gnat.com)
14465
14466 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
14467
14468 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
14469
14470 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
14471
14472 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
14473
14474 2001-10-05 Geert Bosch (bosch@gnat.com)
14475
14476 * adaint.h: Small formatting fix.
14477
14478 2001-10-04 Geert Bosch <bosch@gnat.com>
14479
14480 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
14481 Arg is int, not FILE *, in dummy version of functions.
14482
14483 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
14484 Arg is int, not FILE *.
14485
14486 2001-10-04 Geert Bosch <bosch@gnat.com>
14487
14488 * 3lsoccon.ads: Added file, missed with initial check ins.
14489
14490 * 4lintnam.ads: Fix header format.
14491 Change Linux to GNU/Linux.
14492
14493 * 5iosinte.adb: Change Linux to GNU/Linux.
14494
14495 * 5iosinte.ads: Change Linux to GNU/Linux.
14496
14497 * 5itaprop.adb: Change Linux to GNU/Linux.
14498
14499 * 5itaspri.ads: Change Linux to GNU/Linux.
14500 Update copyright notice.
14501
14502 * 5lintman.adb: Change Linux to GNU/Linux.
14503
14504 * 5lml-tgt.adb: Change Linux to GNU/Linux.
14505
14506 * 5losinte.ads: Change Linux to GNU/Linux.
14507
14508 * 5lsystem.ads: Change Linux to GNU/Linux.
14509
14510 * 5qosinte.adb: Change Linux to GNU/Linux.
14511
14512 * 5qosinte.ads: Change Linux to GNU/Linux.
14513
14514 * 5qparame.ads: Change Linux to GNU/Linux.
14515
14516 * 5qtaprop.adb: Change Linux to GNU/Linux.
14517
14518 * 5qtaspri.ads: Change Linux to GNU/Linux.
14519 Add 2001 to copyright notice.
14520
14521 * 5vintman.ads: Change Linux to GNU/Linux.
14522 Fix header format. Add 2001 to copyright notice.
14523
14524 * g-soccon.ads: Change Linux to GNU/Linux.
14525
14526 * g-trasym.ads: Change Linux to GNU/Linux.
14527 Add 2001 to copyright notice.
14528
14529 * memtrack.adb: Change Linux to GNU/Linux.
14530
14531 * s-intman.ads: Change Linux to GNU/Linux.
14532 Add 2001 to copyright notice. Fix header format.
14533
14534 * s-stache.adb: Change Linux to GNU/Linux.
14535
14536 * adaint.c: Change Linux to GNU/Linux.
14537
14538 * cio.c: Change Linux to GNU/Linux.
14539
14540 * cstreams.c: Change Linux to GNU/Linux.
14541
14542 * init.c: Change Linux to GNU/Linux.
14543
14544 * gmem.c: Change Linux to GNU/Linux.
14545
14546 * tracebak.c: Change Linux to GNU/Linux.
14547
14548
14549 2001-10-02 Geert Bosch <bosch@gnat.com>
14550
14551 * misc.c (insert_default_attributes): Add dummy version.