OSDN Git Service

666c2c00f2eed4b0dca550533f22a5bb1615061b
[pf3gnuchains/gcc-fork.git] / gcc / ada / ChangeLog
1 2005-01-14  Andrew Pinski  <pinskia@physics.uc.edu>
2
3         * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
4         (GCC_ZCX_Support): Likewise.
5
6 2005-01-11  Bastian Blank  <waldi@debian.org>
7
8         * system-linux-s390.ads: Define Preallocated_Stacks.
9         * system-linux-s390x.ads: Likewise.
10
11 2005-01-04  Arnaud Charlet  <charlet@adacore.com>
12
13         * gnat_ugn.texi: Fix texi errors with null variables.
14
15 2005-01-03  Thomas Quinot  <quinot@adacore.com>
16
17         * gen-soccon.c: New utility program to generate g-soccon.ads
18         automatically.
19
20         * socket.c, gsocket.h: Split inclusion of system header files into a
21         gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
22
23         * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
24         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
25         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
26         g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
27         should not be edited by hand anymore, but should be regenerated using
28         gen-soccon.
29
30 2005-01-03  Robert Dewar  <dewar@adacore.com>
31             Ed Schonberg  <schonberg@adacore.com>
32             Vincent Celier  <celier@adacore.com>
33
34         * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
35         on/off, since this is an obsolescent feature, for which we now generate
36         a warning.
37
38         * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
39         warning mode is set and obsolescent usage of this attribute occurs.
40         (Resolve_Access, case 'Access): Note that GNAT uses the context type to
41         disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
42         predates, and partly motivates, the adoption of the AI.
43         Implement new Ada 2005 attribute Mod
44
45         * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
46         attribute Mod.
47
48         * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
49
50         * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
51         pragma restrictions.
52         New entry for Ada 2005 attribute Mod.
53
54         * par-prag.adb: 
55         Add recognition of new pragma Restrictions No_Dependence
56         Recognize restriction No_Obsolescent_Features at parse time
57
58         * bcheck.adb: Add circuitry for checking for consistency of
59         No_Dependence restrictions.
60
61         * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
62         restrictions.
63
64         * restrict.ads, restrict.adb: Add subprograms to deal with
65         No_Dependence restrictions.
66
67         * rtsfind.adb: Check that implicit with's do not violate No_Dependence
68         restrictions.
69
70         * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
71         sem_attr.adb: Add check for new restriction No_Obsolescent_Features
72
73         * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
74         dummy parameter to scng instantiation.
75         Needed for new restriction No_Obsolescent_Features
76
77         * scn.adb: (Obsolescent_Check): New procedure
78         Needed for new restriction No_Obsolescent_Features
79
80         * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
81         specified by AI-285, needed for implementation of AI-388 (adding greek
82         pi to Ada.Numerics).
83         Add new generic formal to scng, needed for new restriction
84         No_Obsolescent_Features.
85
86         * s-rident.ads: Add new restriction No_Obsolescent_Features.
87
88         * ali.ads, ali.adb: Adjustments for reading new No_Dependence
89         restrictions lines.
90         (Scan_ALI): When finding an unexpected character on an R line, raise
91         exception Bad_R_Line, instead of calling Fatal_Error, so that, when
92         Ignore_Errors is True, default restrictions are set and scanning of the
93         ALI file continues with the next line. Also, when Bad_R_Line is raised
94         and Ignore_Errors is True, skip to the end of le line.
95
96         * sem_ch10.adb: Check that explicit with's do not violate
97         No_Dependence restrictions.
98         (Install_Withed_Unit): Add code to implement AI-377 and diagnose
99         illegal context clauses containing child units of instance.
100
101         * sem_prag.adb: Processing and checking for new No_Dependence
102         restrictions.
103         (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
104         analyze and check the External argument.
105
106         * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
107
108 2005-01-03  Robert Dewar  <dewar@adacore.com>
109
110         * atree.adb: Add a fifth component to entities
111         This allows us to add 32 flags and four new fields
112
113         * atree.ads: Add a fifth component to entities
114         This allows us to add 32 flags and four new fields
115
116         * einfo.ads, einfo.adb: Document new fields and new flags now available
117         Add routines for printing new fields
118
119         * treepr.adb: Call routines to print out additional fields if present
120
121 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
122
123         * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
124         gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
125
126         * Makefile.in: Add support to build shared Ada libraries on solaris x86
127         Remove gpr2make, replaced by gprmake.
128         Remove references to gnatmem and libaddr2line.
129         Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
130         (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
131         Add support for specialized version of Ada.Numerics.Aux for Darwin: use
132         a-numaux-darwin.ads and a-numaux-darwin.adb
133         Enable mlib-tgt-lynxos.adb on lynxos.
134
135         * Make-lang.in: Remove rules for gpr2make.
136         When generating sdefault.adb, do not call Relocate_Path
137         on S3 for function Target_Name, as it is not a path.
138         Remove references to gnatmem and libaddr2line.
139
140         * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
141         files.
142
143 2005-01-03  Samuel Tardieu  <tardieu@adacore.com>
144
145         * checks.adb (Apply_Alignment_Check): Generate a warning if an object
146         address is incompatible with its base type alignment constraints when
147         this can be decided statically.
148
149 2005-01-03  Olivier Hainque  <hainque@adacore.com>
150
151         * decl.c (compatible_signatures_p): New function. The intended purpose
152         is to check if two function signatures for a call-site and a callee are
153         compatible enough for the call to be valid. The underlying purpose is
154         to check if a call to a mapped builtin is using the right interface.
155         The current code actually does not check antyhing - this a placeholder
156         for future refinements.
157         (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
158         builtin calls for convention Intrinsic.
159
160         * gigi.h (builtin_decl_for): Declare (new function).
161
162         * utils.c (gnat_install_builtins): Install the target specific builtins.
163         (builtin_decl_for): New function, provide a dummy body for now.
164
165 2005-01-03  Geert Bosch  <bosch@adacore.com>
166
167         * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
168         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
169         (Pred): Implement in terms of Succ.
170         
171         * trans.c (convert_with_check): Reimplement conversion of float to
172         integer.
173
174 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
175             Vincent Celier  <celier@adacore.com>
176
177         * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
178         bounds can be negative, and must be declared Int, not Nat.
179
180         * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
181         array is checked after using the index in the array.
182
183         * makegpr.adb (Add_Switches): Check if there is a package for the
184         processor. If there is no package, do not look for switches.
185
186 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
187
188         * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
189         generation of predefined stream operations (specs and bodies) should
190         proceed. Under various restrictions these subprograms must not be
191         generated.
192
193 2005-01-03  Thomas Quinot  <quinot@adacore.com>
194
195         * exp_dist.adb: 
196         Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
197         amount of PCS-specific code in RACW stubs generation.
198         (Copy_Specification): Set Etype on copied formal parameter entities, as
199         this information is needed for PolyORB stubs generation.
200         (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
201         variable Dynamic_Async.
202         (Build_Subprogram_Receiving_Stubs): Make PCS-specific
203         (Build_RPC_Receiver_Specification): Make generic again, as recent
204         changes have allowed RPC receivers to have the same profile for both
205         variants of the PCS.
206         Reorganise RPC receiver generation to reduce differences between the
207         structure of GARLIC and PolyORB RPC receivers.
208         (Add_Receiving_Stubs_To_Declarations): Make this subprogram
209         PCS-specific.
210         Simplify elaboration code for RCI packages.
211
212         * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
213         generation to reduce differences between the structure of GARLIC and
214         PolyORB RPC receivers.
215
216         * s-stratt.adb: Fix typo in comment.
217
218 2005-01-03  Thomas Quinot  <quinot@adacore.com>
219
220         * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
221         copied from Make_Init_Call).
222
223         * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
224         reads and assignments on a temporary variable declared with appropriate
225         discriminants.
226
227 2005-01-03  Robert Dewar  <dewar@adacore.com>
228
229         * i-c.adb (To_C): Raise CE if string is null and Append_Null
230
231 2005-01-03  Robert Dewar  <dewar@adacore.com>
232
233         * i-cstrin.adb (Update): Do not append a null in form called with a
234         String. This avoids unintended behavior.
235
236 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
237
238         PR ada/17527
239         * init.c: Fix warnings on Free BSD section.
240
241 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
242
243         PR ada/16949
244         * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
245         xsinfo.adb).
246
247 2005-01-03  Vincent Celier  <celier@adacore.com>
248
249         * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
250         libraries when Unique_Compile is True (-u switch).
251         (Gnatmake): ditto.
252
253 2005-01-03  Robert Dewar  <dewar@adacore.com>
254
255         * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
256         upper case letter or underscore after W, as allowed by spec.
257
258 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
259
260         * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
261         darwin port by using proper type definitions from header files.
262         Use SIGTERM instead of SIGABRT for SIGADAABORT.
263
264 2005-01-03  Robert Dewar  <dewar@adacore.com>
265
266         * par.adb: Enhance error message handling for configuration file
267         pragmas.
268
269 2005-01-03  Robert Dewar  <dewar@adacore.com>
270
271         * s-arit64.adb (Double_Divide): Put back changes that got accidentally
272         removed during the previous update (test properly for case of dividing
273         largest negative number by -1, which generates overflow).
274
275 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
276             Sergey Rybin  <rybin@adacore.com>
277
278         * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
279         to use as the defining identifier for a formal package.
280         (Remove_Parent): If the instance takes place within (an instance of)
281         a sibling, preserve private declarations of common parent.
282
283 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
284
285         * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
286         to determine whether one of the operands is a fixed-point type for
287         which a user-defined multiplication or division operation might be
288         defined.
289
290         * sem_res.adb (Valid_Conversion): The legality rules for conversions
291         of access types are symmetric in Ada 2005: either designated type can
292         be unconstrained.
293
294 2005-01-03  Vincent Celier  <celier@adacore.com>
295
296         * s-fileio.adb (Temp_File_Record): Change length of string component
297         Name from L_tmpnam + 1 to max_path_len + 1.
298
299 2005-01-03  Arnaud Charlet  <charlet@adacore.com>
300
301         * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
302         Self_Id.Deferral_Level = 0.
303         (Do_Pending_Action): Move this function to the spec.
304
305         * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
306         Do_Pending_Action explicitely when needed, in case we're using
307         No_Abort restrictions.
308
309         * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
310         deferral level since it will not get changed by the generated code.
311         Keeping a default value of 1 would prevent some operations (e.g.
312         select or delay) to proceed successfully.
313
314 2005-01-03  Ben Brosgol  <brosgol@adacore.com>
315             Robert Dewar  <dewar@adacore.com>
316             Cyrille Comar  <comar@adacore.com>
317
318         * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
319         porting guide chapter (vms version).
320         Revised doc title (removed "for native platforms") and subtitle.
321         Add discussion on warning flag for obsolescent features. First we
322         note that it applies to obsolete GNAT features, which was previously
323         omitted. Second we contrast the behavior with that of the new
324         Ada 2005 AI-368 restriction No_Obsolescent_Features.
325         Preliminary rewriting of GNAT & libraries chapter in order to take
326         into account default project locations & new project manager
327         capabilities.
328
329 2005-01-03  Robert Dewar  <dewar@adacore.com>
330
331         * cstand.adb (Create_Operators): Clean up format and documentation of
332         unary and binary operator result tables. No change in code, just
333         reformatting and addition of comments.
334
335         * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
336         sem_ch2.adb: Minor reformatting
337
338         * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
339         sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
340         comments for Tree_Read and Tree_Write.
341
342 2005-01-03  Pascal Obry  <obry@adacore.com>
343
344         * exp_attr.ads: Minor reformatting.
345
346 2005-01-03  Romain Berrendonner  <berrendo@adacore.com>
347
348         * comperr.adb (Compiler_Abort): Add specialized message for GAP
349         versions.
350
351 2005-01-03  Ed Schonberg  <schonberg@adacore.com>
352
353         * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
354         whether the ancestor type is private, as may be the case with nested
355         instantiations.
356
357 2004-12-30  Sohail Somani <sohail@sohailsomani.com>
358
359         PR ada/19128
360         * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
361
362 2004-12-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
363
364         * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
365         * utils2.c (build_unary_op): Likewise.
366
367 2004-12-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
368
369         * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
370
371 2004-12-19  Richard Henderson  <rth@redhat.com>
372
373         * trans.c (gigi): Update gimplify_body call.
374
375 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
376
377         * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
378
379 2004-12-07  Ed Falis  <falis@adacore.com>
380
381         * s-intman-vxworks.adb (Notify_Exception): removed useless check for
382         current task being suspended.
383
384         * init.c (__gnat_clear_exception): added to reset VxWorks exception
385         count.
386         (__gnat_map_signal): removed test for current task being suspended.
387
388 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
389
390         * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
391         from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
392         targets (such as AAMP).
393
394 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
395
396         * atree.adb (Visit_Itype): Create a new name for the generated itype,
397         because the back-end may otherwise treat it as a redefinition of the
398         old symbol.
399
400 2004-12-07  Eric Botcazou  <ebotcazou@adacore.com>
401
402         * back_end.adb (Scan_Back_End_Switches): Accept --param.
403
404         * lang-specs.h: Accept --param.
405
406 2004-12-07  Vincent Celier  <celier@adacore.com>
407
408         * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
409         package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
410         Current_Body_Suffix => Ada_Body_Suffix).
411         Take into account Externally_Built attribute.
412
413         * clean.adb (In_Extension_Chain): Always return False when one of the
414         parameter is No_Project.
415         (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
416         Ada_Language_Index).
417         (Gnatclean): Adapt to change in package Prj.Pars (no parameter
418         Process_Languages for procedure Parse).
419
420         * gnatcmd.adb (Carg_Switches): New table.
421         (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
422         Adapt to name changes in package Prj (Current_Spec_Suffix =>
423         Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
424
425         * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
426         Header_Num and function Hash are now declared in package Prj,
427         not Prj.Com.
428
429         * prj.adb (Suffix_Of): New function.
430         (Set (Suffix)): New procedure.
431         (Hash): One function moved from Prj.Com
432         (Is_Present, Language_Processing_Data_Of): New functions
433         (Set): Two new procedures
434         (Add_Language_Name, Display_Language_Name): New procedures
435
436         * prj.ads: (Suffix_Of): New function
437         (Set (Suffix)): New procedure
438         Add several types and tables for multi-language support.
439         (Header_Num): Type moved from Prj.Com
440         (Hash): Two functions moved from Prj.Com
441         (Is_Present, Language_Processing_Data_Of): New functions
442         (Set): Two new procedures
443         (Add_Language_Name, Display_Language_Name): New procedures
444         (Naming): Component name changes:
445         Current_Spec_Suffix => Ada_Spec_Suffix,
446         Current_Body_Suffix => Ada_Body_Suffix. Add new components:
447         Impl_Suffixes, Supp_Suffixes.
448         (Project_Data): New components: Externally_Built, Supp_Languages,
449         First_Language_Processing, Supp_Language_Processing, Default_Linker,
450         Default_Linker_Path.
451
452         * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
453         new package Language_Processing with its attributes (Compiler_Driver,
454         Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
455         Binder_Driver, Default_Linker).
456
457         * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
458         (Header_Num): Type moved to package Prj
459
460         * prj-env.adb: Adapt to name changes in package Prj
461         (Current_Spec_Suffix => Ada_Spec_Suffix,
462         Current_Body_Suffix => Ada_Body_Suffix).
463
464         * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
465         default to the project path, except the "-" is one of the directories
466         in env var ADA_PROJECT_PATH.
467         (Current_Project_Path): Global variable, replacing Project_Path
468         that was in the body of Prj.Part.
469         (Project_Path): New function
470         (Set_Project_Path): New procedure
471         Initialize Current_Project_Path during elaboration of the package
472         Remove dependency on Prj.Com, no longer needed
473
474         * prj-ext.ads (Project_Path): New function
475         (Set_Project_Path): New procedure
476
477         * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
478         suffix is defined for language <lang>.
479         (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
480         accessing directly the components of Naming.
481         (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
482         Reorganise of this package.
483         Break procedure Check in several procedures.
484
485         * prj-nmsc.ads: Replace all procedures (Ada_Check,
486         Other_Languages_Check and Language_Independent_Check) with a single
487         procedure Check.
488
489         * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
490         Process_Languages, no longer needed.
491
492         * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
493         Current_Project_Path.
494         Remove elaboration code, moved to the body of Prj.Ext
495         Use new function Prj.Ext.Project_Path instead of old variable
496         Project_Path.
497         (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
498         When comparing with project paths on the stack, first put the resolved
499         path in canonical case.
500         (Parse_Single_Project): Set the path name of the project file in the
501         tree to the normalized path.
502
503         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
504         parameter Process_Languages, no longer needed.
505         (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
506         Other_Languages_Check.
507
508         * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
509         to store the resolved canonical path of the project file.
510         Remove dependency to Prj.Com, no longer needed
511
512         * prj-util.adb: Adapt to name changes in package Prj
513         (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
514         Ada_Body_Suffix).
515
516         * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
517         Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
518         Externally_Built, Include_Option, Language_Processing.
519
520         * makegpr.adb: Numerous changes due to changes in packages
521         Prj and Prj.Nmsc.
522
523         * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
524         default to the project path, except whe "-" is one of the directories
525         in env var ADA_PROJECT_PATH.
526         (Gnatls): In verbose mode, add the new section "Project Search Path:"
527
528 2004-12-07  Robert Dewar  <dewar@adacore.com>
529
530         * debug.adb: Document that -gnatdA automatically sets -gnatR3m
531
532         * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
533         set -gnatR3m mode.
534
535         * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
536         flag. No longer needed now that we handle this in gnat1drv.adb.
537
538         * repinfo.ads: Minor reformatting
539
540 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
541             Olivier Hainque  <hainque@adacore.com>
542             Eric Botcazou  <ebotcazou@adacore.com>
543
544         * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
545         TYPE_SIZE_UNIT of result type if SIZE is not specified.
546         (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
547         of a bitfield, which we know is useless and causes trouble because of
548         alignment implications.
549
550         * utils.c (create_var_decl): Set DECL_COMMON again on targets without
551         BSS sections.
552         (process_attributes): Clear DECL_COMMON again when a section attribute
553         is present.
554         (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
555         SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
556         (create_field_decl): Special case ADDRESSABLE negative to mean
557         "no bitfield creation", to be used by make_aligning_type. Don't
558         restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
559         fields claimed addressable still have to be bitfields. Use
560         value_factor_p instead of a raw binop construction to check for the
561         position's alignment.
562
563 2004-12-07  Geert Bosch  <bosch@adacore.com>
564
565         * eval_fat.adb: Revert previous change.
566
567 2004-12-07  Thomas Quinot  <quinot@adacore.com>
568             Ed Schonberg  <schonberg@adacore.com>
569
570         * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
571         with an implicit dereference as its prefix, use
572         Insert_Explicit_Dereference instead of merely rewriting the prefix into
573         an explicit dereference. This ensures that a reference to the original
574         prefix is generated, if appropriate.
575
576         * sem_util.adb (Insert_Explicit_Dereference): When an implicit
577         dereference is rewritten to an explicit one, generate a reference to
578         the entity denoted by its prefix using the original prefix node, so
579         the dereference can be properly recorded as a read of the denoted
580         access value, if appropriate.
581
582         * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
583         emitting 'assigned but never read' warning on a variable on the basis
584         that it has an access type.
585         (Check_References): Emit unreferenced warning when the scope is a
586         subprogram body.
587
588 2004-12-07  Robert Dewar  <dewar@adacore.com>
589             Ed Schonberg  <schonberg@adacore.com>
590
591         * exp_ch6.adb (Expand_Call): Add comment on handling of back end
592         intrinsic
593
594         * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
595         leaving call unchanged.
596         This deals with the case where the pragma Import specified
597         an external name, to be handled by the back end.
598
599         * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
600         subprogram which is Imported with convention Intrinsic if an
601         External_Name argument is specified.
602         (Process_Import_Or_Interface): Properly diagnose link name argument.
603         (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
604         with Sem_Ch6.Cannot_Inline.
605         (Process_Inline): Provide separate warning for inapplicable inline
606         pragma.
607         (Cannot_Inline): Reject subprograms that have an at_end handler, so that
608         treatment is uniform on different targets.
609
610 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
611
612         * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
613         construct is rewritten, preserve end label to permit source navigation.
614
615 2004-12-07  Thomas Quinot  <quinot@adacore.com>
616
617         * exp_dist.adb (Specific_Build_General_Calling_Stubs,
618         Specific_Build_Stub_Target): New subprograms.
619         (Build_Subprogram_Calling_Stubs): Make this procedure independent from
620         the PCS implementation used, using the above PCS-customized subprograms.
621         Minor reformatting.
622         (PolyORB_Support.Helpers): New subunit containing supporting subprograms
623         for generation of DSA code targeted to the PolyORB PCS.
624         (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
625         implementation of the partition communication subsystem in ancillary
626         subprograms.
627         (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
628         PolyORB_Support.Build_Stub_Type): New subrograms containing the
629         PCS-specific part of Add_Stub_Type.
630         (Insert_Partition_Check): Use runtime library function to perform
631         E.4(19) check.
632
633         * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
634         (RE_Same_Partition): New entity, from s-parint.
635
636         * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
637
638 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
639
640         * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
641         Output the copyright message on a separate line from the version
642         message.
643
644 2004-12-07  Joel Brobecker  <brobecker@adacore.com>
645
646         * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
647         compile-time warning.
648
649 2004-12-07  Robert Dewar  <dewar@adacore.com>
650
651         * g-regpat.adb: (Match): Change a misuse of or to or else
652
653 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
654
655         * lib-xref.adb:
656         (Generate_Reference): Handle properly a reference to an entry formal,
657          when an accept statement has a pragma Unreferenced for it.
658
659         * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
660         and the Has_Pragma_Unreferenced flag for each formal before analyzing
661         the body, to ensure that warnings are properly emitted for each accept
662         statement of a given task entry.
663
664 2004-12-07  Vasiliy Fofanov  <fofanov@adacore.com>
665
666         * Makefile.in: Add support for foreign threads on VMS.
667
668 2004-12-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
669
670         * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
671         Remove.
672         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
673
674         * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
675
676         * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
677         exception.
678         (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
679
680 2004-12-07  Robert Dewar  <dewar@adacore.com>
681
682         * nlists.adb (Prepend_Debug): Remove parameters and nest within
683         Prepend.
684         (Remove_Next_Debug): Same fix
685
686         * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
687         maintain back pointers now, though we did not used to, and comments
688         were out of date).
689         (Prepend): Remove pragma Inline.
690         (Remove_Next): Same cleanup
691
692 2004-12-07  Thomas Quinot  <quinot@adacore.com>
693
694         * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
695         used to record an implicit dereference as a read operation on its
696         prefix when operating under -gnatc. Necessary to avoid spurious
697         'variable assigned but never read' warnings in that mode.
698         (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
699         is a non-overloaded implicit dereference, call the above subprogram to
700         ensure proper recording of references.
701
702 2004-12-07  Gary Dismukes  <dismukes@adacore.com>
703
704         * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
705         to be resolved later as part of Analyze_Iteration_Scheme's call to
706         Make_Index.
707
708 2004-12-07  Ed Schonberg  <schonberg@adacore.com>
709
710         * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
711         prefix is not a scalar type, place error message on prefix, not on
712         type entity.
713
714 2004-12-07  Bernard Banner  <banner@adacore.com>
715
716         * vxaddr2line.adb: Add support for x86 vxworks
717
718 2004-12-07  Thomas Quinot  <quinot@adacore.com>
719
720         * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
721         documentation of the behaviour of these functions when passed an IP
722         address that has no record in the system hosts database and no reverse
723         record in the DNS.
724
725         * cstand.adb, a-tags.ads: Fix typos in comment.
726
727 2004-12-07  Robert Dewar  <dewar@adacore.com>
728
729         * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
730         exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
731         sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
732         s-poosiz.ads: Minor reformatting
733
734         * make.adb: Minor reformatting
735         Add some ??? comments asking for more comments
736
737         * s-poosiz.adb: Minor reformatting
738         Add comments on alignment requirement
739
740         * sinfo.ads: Remove obsolete comment and fix typo.
741
742 2004-12-07  Vincent Celier  <celier@adacore.com>
743             Sergey Rybin  <rybin@adacore.com>
744
745         * gnat_ugn.texi: Update the section "The GNAT Driver and Project
746         Files" with the new tool and package names.
747         Reformatting to suppress most of the warnings for line too long
748         Document the new section "Project Search Path:" in the output of
749         gnatls -v.
750         Add gnatmetric section
751
752 2004-12-07  Vincent Celier  <celier@adacore.com>
753
754         * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
755         -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
756         and -eit to -ept. Added qualifier
757         /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
758
759 2004-11-27  Andreas Schwab  <schwab@suse.de>
760
761         * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
762
763 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
764
765         * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
766         internal implementation unit GNAT.Sockets.Thin,
767         as their usage for sockets is non-portable (using the read and write
768         functions from the system runtime library is fine on UNIX but won't
769         work under Windows).
770
771         * mingw32.h: Update copyright notice.
772
773 2004-11-25  Arnaud Charlet  <charlet@adacore.com>
774
775         * ada-tree.h: Minor reformatting of previous change to avoid lines
776         longer than 79 characters.
777
778 2004-11-25  Olivier Hainque  <hainque@adacore.com>
779
780         * tb-gcc.c: GCC infrastructure based implementation of
781         __gnat_backtrace.
782
783 2004-11-24  Steven Bosscher  <stevenb@suse.de>
784
785         * misc.c (gnat_post_options): Don't clear
786         flag_inline_functions.
787
788 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
789
790         PR ada/17986
791         * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
792         tree.
793
794 2004-11-21  Andreas Jaeger  <aj@suse.de>
795
796         * stylesw.adb: Change Style_Check_Subprogram_Order to
797         Style_Check_Order_Subprograms.
798
799 2004-11-18  Arnaud Charlet  <charlet@adacore.com>
800
801         * adaint.h, adaint.c
802         (__gnat_portable_spawn): Fix cast of spawnvp third parameter
803         to avoid warnings.
804         Add also a cast to kill another warning.
805         (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
806         parameter with the priority class of the parent process instead of
807         always using the NORMAL_PRIORITY_CLASS.
808         (__gnat_dup): New function.
809         (__gnat_dup2): New function.
810         (__gnat_is_symbolic_link): Enable the effective body of this
811         function when __APPLE__ is defined.
812
813         * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
814         Update comments.
815
816 2004-11-18  Olivier Hainque  <hainque@adacore.com>
817
818         * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
819         address of which may be used to represent "others" and "all others"
820         choices in exception tables, instead of the current harcoded
821         (void *)0 and (void *)1.
822         (Setup_Exception): Do nothing in the GNAT SJLJ case.
823
824         * gigi.h (others_decl, all_others_decl): New decls representing the
825         new Others_Value and All_Others_Value objects.
826         (struct attrib): Rename "arg" component as "args", since GCC expects a
827         list of arguments in there.
828
829         * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
830         corresponding objects exported by a-exexpr, instead of hardcoded dummy
831         addresses.
832
833         * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
834         others_decl and all_others_decl instead of hardcoded dummy addresses
835         to represent "others" and "all others" choices, which is cleaner and
836         more flexible with respect to the possible eh pointer encoding policies.
837
838         * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
839         (process_attributes): Account for the naming change of the "args"
840         attribute list entry component.
841
842         * decl.c (build_attr_list): Rename into prepend_attributes to allow
843         cumulating attributes for different entities into a single list.
844         (gnat_to_gnu_entity): Use prepend_attributes to build the list of
845         attributes for the current entity and propagate first subtype
846         attributes to other subtypes.
847         <E_Procedure>: Attribute arguments are attr->args and not
848         attr->arg any more.
849         (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
850         argument provided, as this is what GCC expects. Use NULL_TREE instead
851         of 0 for trees.
852
853 2004-11-18  Robert Dewar  <dewar@adacore.com>
854
855         * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
856         Minor reformatting througout (including new function specs)
857         Add ??? comments asking for clarification.
858
859 2004-11-18  Thomas Quinot  <quinot@adacore.com>
860
861         * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
862         incomplete duplicate implementation of this subprogram from butil.
863
864 2004-11-18  Thomas Quinot  <quinot@adacore.com>
865
866         * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
867         procedures factors the common processing for building an RPC receiver
868         for an RCI package or an RACW type.
869         Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
870         Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
871         (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
872         in use.
873         (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
874         Add_RACW_Features.
875         (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
876         Add_RAST_Features.
877         (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
878         distribution subprogram identifiers that are either subprogram numbers
879         or strings.
880         (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
881         string distribution identifiers assigned to a given subprogram.
882         (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
883         (Add_RAS_Dereference_TSS): Add comments.
884         (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
885         is not referenced yet because it will be used by the PolyORB DSA
886         implementation.
887         (Insert_Partition_Check): Remove fossile code.
888         (First_RCI_Subprogram_Id): Document this constant.
889         (Add_RAS_Access_TSS): Correct the setting of the Etype of the
890         RAS_Access TSS.
891         (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
892         replaced with calls to Get_Library_Unit_Name_String. Previously there
893         were several instances of the same code in different locations in the
894         compiler; this checkin completes the replacement of all of these
895         instances with calls to a common subprogram.
896         Minor reformatting.
897
898         * sem_dist.adb: Remove comment noting that RPC receiver generation
899         should be disabled for RACWs that implement RASs.
900         (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
901
902         * sem_util.ads, sem_util.adb (Has_Stream): New function
903         (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
904         qualified name of a library unit into the name buffer.
905         (Note_Possible_Modification): Generate a reference only
906         if the context comes from source.
907
908         * snames.ads (PCS_Names): New subtype corresponding to names of
909         supported implementations of the Partition Communication Subsystem
910         (PCS) (i.e. the runtime library support modules for the distributed
911         systems annex).
912
913 2004-11-18  Robert Dewar  <dewar@adacore.com>
914             Ed Schonberg  <schonberg@adacore.com>
915
916         * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
917         (Has_Rep_Pragma): New function
918         (Has_Attribute_Definition_Clause): New function
919         (Record_Rep_Pragma): Moved here from sem_ch13.adb
920         (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
921
922         * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
923
924         * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
925         (Expand_Pragma_Psect_Object): New procedure
926         These procedures contain the revised and cleaned up processing for
927         these two pragmas. This processing was formerly in Sem_Prag, but
928         is more appropriately moved here. The cleanup involves making sure
929         that the pragmas are properly attached to the tree, and that no
930         nodes are improperly shared.
931
932         * sem_prag.adb: Move expansion of Common_Object and Psect_Object
933         pragmas to Exp_Prag, which is more appropriate.
934         Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
935         check for duplicates Remove use of Is_Psected flag, no longer needed.
936         Use new Make_String_Literal function with string.
937
938         * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
939         that are functions return universal values, that have to be converted
940         to the context type.
941         Use new Make_String_Literal function with string.
942         (Get_Stream_Convert_Pragma): New function, replaces the use of
943         Get_Rep_Pragma, which had to be kludged to work in this case.
944
945         * freeze.adb: Use new Has_Rep_Pragma function
946
947         * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
948         function with string.
949         Use new Has_Rep_Pragma function.
950
951         * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
952         string argument.
953
954 2004-11-18  Robert Dewar  <dewar@adacore.com>
955
956         * errout.ads, errout.adb: (First_Sloc): New function
957
958         * par-ch5.adb (P_Condition): Check for redundant parens is now a style
959         check (-gnatyx) instead of being included as a redundant construct
960         warning.
961
962         * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
963         Style_Check_Order_Subprograms.
964
965         * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
966         stylesw.adb: Add Style_Check_Xtra_Parens
967
968         * usage.adb: Add line for -gnatyx (check extra parens)
969
970         * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
971
972 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
973             Robert Dewar  <dewar@adacore.com>
974
975         * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
976         discriminant of a constrained subtype, analyze the copy of the
977         corresponding constraint, because in some cases it may be only
978         partially analyzed.
979         Removes long-lived ??? comments.
980
981         * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
982         handled controlled or secondary-stack expressions within the
983         iteration_scheme of a loop.
984
985         * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
986         bounds that may contain functions calls, to prevent memory leaks when
987         the bound contains a call to a function that uses the secondary stack.
988         (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
989         generate temporaries for loop bounds that might contain function calls
990         that require secondary stack and/or finalization actions.
991
992         * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
993         selected component and the selector is overloadable (not just a
994         function) treat as function call, Analyze_Call will disambiguate if
995         necessary.
996         (Analyze_Selected_Component): Do not generate an actual subtype for the
997         selected component if expansion is disabled. The actual subtype is only
998         needed for constraint checks.
999         (Analyze_Allocator): If restriction No_Streams is set, then do
1000         not permit objects to be declared of a stream type, or of a
1001         composite type containing a stream.
1002
1003         * restrict.ads: Remove the a-stream entry from Unit_Array, since
1004         No_Streams no longer prohibits with'ing this package.
1005
1006         * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
1007         discriminants, but the parent base has unknown discriminants, there is
1008         no discriminant constraint to inherit. Such a discrepancy can arise
1009         when the actual for a formal type with unknown discriminants is a
1010         similar private type whose full view has discriminants.
1011         (Analyze_Object_Declaration): If restriction No_Streams is set, then
1012         do not permit objects to be declared of a stream type, or of a
1013         composite type containing a stream.
1014
1015 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
1016
1017         * exp_dbug.ads: Update documentation to reflect simpler encoding for
1018         protected operations.
1019
1020         * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
1021         generated name, it complicates decoding in gdb and hinders debugging
1022         of protected operations.
1023         (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
1024         flag for the protected entry barrier function.
1025         (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
1026         flag for the protected entry function.
1027
1028 2004-11-18  Nicolas Setton  <setton@adacore.com>
1029
1030         * expect.c: Define __unix__ when __APPLE__ is defined.
1031
1032         * Makefile.in: Inform the value of the variable GMEM_LIB in the
1033         Darwin-specific section.
1034
1035         * lang-specs.h: Change the placement of the %1 marker.
1036         Works around the fact that gcc adds -fPIC by default under Darwin.
1037
1038 2004-11-18  Ed Schonberg  <schonberg@adacore.com>
1039
1040         * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
1041         type of the object with the packed array type, set the Analyzed flag
1042         on the object if it is an entity or simple indexed component, to avoid
1043         spurious type errors.
1044
1045 2004-11-18  Gary Dismukes  <dismukes@adacore.com>
1046
1047         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
1048         gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
1049         separate line from the version message.
1050
1051 2004-11-18  Ed Falis  <falis@adacore.com>
1052
1053         * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
1054         vthreads.
1055         (init_float): Eliminate initialization of floating point status for
1056         AE653. The instructions have no effect for vThreads.
1057
1058 2004-11-18  Vincent Celier  <celier@adacore.com>
1059
1060         * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
1061         gnatbind is invoked with -shared.
1062
1063 2004-11-18  Jose Ruiz  <ruiz@adacore.com>
1064
1065         * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
1066         for Detect_Blocking which is redundant with the check done within the
1067         procedure Protected_Single_Entry_Call.
1068         (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
1069         Detect_Blocking which is redundant with the check done within the
1070         procedure Protected_Single_Entry_Call.
1071
1072 2004-11-18  Vincent Celier  <celier@adacore.com>
1073
1074         * makegpr.adb (Compile): Put the compiling switches (in package
1075         Compiler and on the command line) immediately after "-c", instead of
1076         at the end of the command line invocation of the compiler, when
1077         compiling a non-Ada file.
1078         (Build_Global_Archive): When there is no need to rebuild the archive,
1079         set Global_Archive_Exists, so that the archive is passed to the linker
1080         if one is needed.
1081
1082 2004-11-18  Robert Dewar  <dewar@adacore.com>
1083             Sergey Rybin  <rybin@adacore.com>
1084
1085         * gnat_ugn.texi:
1086         Remove extra paren check from list of checks for redundant constructs
1087         Add documentation of new -gnatyx style check (check extra parens)
1088         Remove paragraph about gnatelim debug options.
1089
1090         * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
1091         objects rather than forbidding dependencies on the package Ada.Streams.
1092
1093         * sinfo.ads: Add ??? note that we should document pragmas passed to
1094         back end.
1095
1096         * g-expect.ads: Fix a few typos in the comments.
1097
1098 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
1099
1100         * misc.c (gnat_handle_option): Use %< and %> for quoting in
1101         warning message.
1102
1103 2004-11-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1104
1105         * a-numaux-x86.adb (Tan): Fix fdivp syntax.
1106
1107 2004-11-07  Andreas Schwab  <schwab@suse.de>
1108
1109         * Makefile.in (install-gnatlib): Remove spurious hyphen.
1110
1111 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
1112
1113         PR ada/18228
1114         * Makefile.in (darwin): Set soext to .dylib.
1115
1116 2004-10-26  Vincent Celier  <celier@gnat.com>
1117             Thomas Quinot   <quinot@act-europe.fr>
1118
1119         * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
1120         (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
1121         there is no use of GNAT.Sockets.Constants.
1122         Remove remaining pragma Import for C_Write
1123         Remove C_Read and C_Write from internal implementation unit
1124         GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
1125         the read and write functions from the system runtime library is fine
1126         on UNIX but won't work under Windows).
1127
1128         * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
1129         (Check_Selector): Use C_Recv instead of C_Read.
1130         Selectors are the GNAT.Sockets abstraction to perform a select()
1131         call on a set of descriptors. To allow abortion of an ongoing
1132         select operation, some data is written to a dedicated socket that
1133         is always monitored.
1134         Under Windows, the write and read library functions cannot operate
1135         on sockets, so we need to use send and recv instead, which is portable
1136         across all supported platforms.
1137
1138         * g-socthi.ads: Remove C_Read and C_Write from internal implementation
1139         unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
1140         (using the read and write functions from the system runtime library is
1141         fine on UNIX but won't work under Windows).
1142
1143 2004-10-26  Nicolas Setton  <setton@act-europe.fr>
1144
1145         * mlib-tgt-darwin.adb: New file.
1146
1147         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1148         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1149         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
1150         mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
1151         subprogram body.
1152
1153         * Makefile.in: Add support for building shared libraries under Darwin.
1154         (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
1155         the low level EH init subprogram to be called from __gnat_initialize.
1156
1157         * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
1158         indicates which options to pass to the archive indexer.
1159
1160         * mlib-utl.adb: Add support for calling ranlib with additional
1161         options. This is needed for instance under Mac OS X.
1162         (Ranlib_Options): New global variable, used to store the potential
1163         options to pass to ranlib.
1164         (Ar): Use Ranlib_Options when spawning ranlib.
1165         (Initialize): Set the value of ranlib option.
1166
1167 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
1168
1169         * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
1170         instead of 8K, to reflect the real potential needs for stack-checking
1171         in the ZCX case.
1172
1173 2004-10-26  Pascal Obry  <obry@gnat.com>
1174
1175         * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
1176
1177         * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
1178         Windows only the initial thread stack size can be set so it is good to
1179         start we a low stack size.
1180         The OS will adjust the size as needed.
1181
1182 2004-10-26  Olivier Hainque  <hainque@act-europe.fr>
1183             Nicolas Setton  <setton@act-europe.fr>
1184
1185         * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
1186         "__unix__" instead of "unix".
1187         The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
1188         sections were just mistakenly ignored. The former is
1189         implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
1190         Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
1191         of hpux. This prevents an unwanted definition of the symbol
1192         convert_addresses in adaint.o.
1193
1194 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
1195
1196         * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
1197         compatibility with type Unwind_Word on 16-bit targets such as AAMP.
1198
1199 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
1200
1201         * a-filico.ads, a-filico.adb: fix incorrect header.
1202
1203 2004-10-26  Javier Miranda  <miranda@gnat.com>
1204
1205         * a-ststio.ads: Fix typo in identifier
1206
1207 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
1208
1209         * sem_ch4.adb: Minor reformatting.
1210
1211 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1212
1213         * checks.adb (Expr_Known_Valid): If floating-point validity checks are
1214         enabled, check the result of unary and binary operations when the
1215         expression is the right-hand side of an assignment.
1216
1217 2004-10-26  Vincent Celier  <celier@gnat.com>
1218
1219         * clean.adb (Delete): Do not output warnings when in quiet output and
1220         not in verbose mode.
1221         (Force_Deletions): New Boolean flag, defaulted to False
1222         (Delete): Only delete a file if it is writable, and when
1223         Force_Deletions is True.
1224         (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
1225         (Usage): Line for new switch -f
1226         (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
1227         own.
1228
1229 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
1230
1231         * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
1232         JM type only if its size matches that of the wrapper.  When a size is
1233         prescribed and the field is not aliased, remove the wrapper of a JM
1234         type only if the size is not greater than that of the packed array.
1235         (gnat_to_gnu_entity): Change the extension of packed array wrappers
1236         from LJM to JM.
1237
1238 2004-10-26  Geert Bosch  <bosch@gnat.com>
1239
1240         * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
1241         (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
1242         (Pred): Implement in terms of Succ.
1243
1244 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1245
1246         * exp_aggr.adb (Safe_Component): An aggregate component that is an
1247         unchecked conversion is safe for in-place use if the expression of the
1248         conversion is safe.
1249         (Expand_Array_Aggregate): An aggregate that initializes an allocator may
1250         be expandable in place even if the aggregate does not come from source.
1251         (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
1252         designated object of an allocator in place, rather than building it
1253         first on the stack. The previous scheme forces a full copy of the array,
1254         and may be altogether unsusable if the size of the array is too large
1255         for stack allocation.
1256
1257 2004-10-26  Robert Dewar  <dewar@gnat.com>
1258
1259         * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
1260         compares if the component is atomic.
1261
1262         * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
1263         array assignment if the component type is atomic.
1264
1265 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1266             Eric Botcazou  <ebotcazou@act-europe.fr>
1267
1268         * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
1269         is aliased and is a by_reference type, do not pass by copy.
1270         (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
1271         detect whether the call is in the right side of an assignment or
1272         the expression of an object declaration.  Recurse on component
1273         association within aggregates.
1274         Call it in the condition that determines whether the temporary is
1275         necessary for correct stack-checking.
1276
1277 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
1278
1279         * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
1280         RACW_Type, used in the PolyORB version.
1281         Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
1282         version and the GARLIC version.
1283
1284         * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
1285         Rename RCI_Info to RCI_Locator for better consistency between the
1286         GARLIC and PolyORB versions of the distributed systems annex.
1287         (DSA_Implementation_Name): This enumeration lists the possible
1288         implementations of the Partition Communication Subsystem for the
1289         Distributed Systems Annex (DSA). The three available implementations
1290         are the dummy stub implementation (No_DSA), and two versions based on
1291         two different distribution runtime libraries: GARLIC and PolyORB. Both
1292         the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
1293         technology.
1294         Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
1295         that organization.
1296
1297         * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
1298         between the GARLIC and PolyORB versions of the distributed systems
1299         annex.
1300         Remove RE_Unbounded_Reclaim_Pool since it is unused.
1301
1302 2004-10-26  Gary Dismukes  <dismukes@gnat.com>
1303
1304         * gnat1drv.adb: Suppress calling the back end when
1305         Frontend_Layout_On_Target is true.
1306
1307 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
1308
1309         * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
1310         Set_Read_Only): New subprograms.
1311         These new routines allow the user to set or unset the Owner execute
1312         and Owner write permission flags on a file.
1313
1314         * makegpr.adb, mlib.adb, mlib-prj.adb: Use
1315         GNAT.OS_Lib.Set_Executable instead of rolling our own.
1316
1317 2004-10-26  Matthew Gingell  <gingell@gnat.com>
1318
1319         * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
1320
1321 2004-10-26  Pascal Obry  <obry@gnat.com>
1322
1323         * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
1324         memory before the faulting page we properly test the process read
1325         access for this address using appropriate Win32 routine.
1326         (HPUX sections): guard with "__hpux__" instead of "hpux".
1327
1328 2004-10-26  Robert Dewar  <dewar@gnat.com>
1329
1330         * lib-xref.adb (Generate_Reference): Don't complain about reference to
1331         entry parameter if pragma Unreferenced set, since we do not properly
1332         handle the case of multiple parameters.
1333
1334 2004-10-26  Vincent Celier  <celier@gnat.com>
1335
1336         * prj-env.adb: (Contains_ALI_Files): New Boolean function
1337         (Ada_Objects_Path.Add): For a library project, add to the object path
1338         the library directory only if there is no object directory or if the
1339         library directory contains ALI files.
1340         (Set_Ada_Paths.Add.Recursive_Add): Ditto
1341
1342 2004-10-26  Vincent Celier  <celier@gnat.com>
1343
1344         * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
1345         extension of library projects.
1346
1347         * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
1348         path defaults to ".:<prefix>/lib/gnat".
1349         (Parse): For an extending all project, allow direct import of a project
1350         that is virtually extended.
1351
1352         * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
1353         the specified name is directly imported, return its ID. Otherwise, if
1354         an extension of this project is imported, return the ID of the
1355         extension.
1356
1357 2004-10-26  Robert Dewar  <dewar@gnat.com>
1358
1359         * s-arit64.adb: (Le3): New function, used by Scaled_Divide
1360         (Sub3): New procedure, used by Scaled_Divide
1361         (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
1362         correct more than one instance of failure to propagate carries
1363         correctly.
1364         (Double_Divide): Handle overflow case of largest negative number
1365         divided by minus one.
1366
1367         * s-arit64.ads (Double_Divide): Document that overflow can occur in
1368         the case of a quotient value out of range.
1369         Fix comments.
1370
1371 2004-10-26  Robert Dewar  <dewar@gnat.com>
1372
1373         * s-bitops.adb (Bit_Eq): Remove redundant check.
1374
1375         * s-bitops.ads: Minor comment updates
1376         Change some occurrences of Address to System.Address
1377
1378         * s-carsi8.ads: Fix minor cut-and-paste error in comments
1379
1380 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1381
1382         * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
1383         accessibility check to prefix that is a protected operation.
1384
1385 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1386
1387         * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
1388         empty, post message on stub.
1389
1390 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1391             Javier Miranda  <miranda@gnat.com>
1392
1393         * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
1394         current instance appears within a unit that is directly in the context
1395         of the main unit.
1396         Used to determine whether the body of the instance should be analyzed
1397         immediately after its spec, to make its subprogram bodies available
1398         for front-end inlining.
1399         (Analyze_Formal_Array_Type): Cleanup condition that checks that range
1400         constraint is not allowed on the component type (AARM 12.5.3(3))
1401
1402 2004-10-26  Cyrille Comar  <comar@act-europe.fr>
1403
1404         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
1405         'Storage_Pool): enhance, document & limit detection of non-sharable
1406         internal pools.
1407
1408         * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
1409
1410         * s-pooglo.ads: Add more documentation now that this pool is properly
1411         documented.
1412
1413 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1414
1415         * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
1416         or protected type with discriminants, do not constrain the
1417         corresponding record type if the subtype declaration has no
1418         discriminant constraints. This can be the case in source code, or in
1419         the subtype declaration created to rename an actual type within an
1420         instantiation.
1421
1422 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1423
1424         * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
1425         different kind of stub (possibly wrong name for file), do not check
1426         for conformance.
1427         (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
1428         includes call to some function that returns an unconstrained type, do
1429         not inline.
1430
1431 2004-10-26  Ed Schonberg  <schonberg@gnat.com>
1432
1433         * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
1434         appear in the code for the main unit. Dependencies among units in the
1435         context of the main unit are established when those other units are
1436         compiled. Otherwise spurious elaboration constraints can generate
1437         incorrect elaboration circularities.
1438
1439 2004-10-26  Thomas Quinot  <quinot@act-europe.fr>
1440             Ed Schonberg   <schonberg@gnat.com>
1441
1442         * sem_util.adb (Is_Aliased_View): Defend against the case where this
1443         subprogram is called with a parameter that is not an object name. This
1444         situation arises for some cases of illegal code, which is diagnosed
1445         later, and in this case it is wrong to call Is_Aliased, as that might
1446         cause a compiler crash.
1447         (Explain_Limited_Type): Refine previous fix to include
1448         inherited components of derived types, to provide complete information.
1449
1450         * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
1451         is the prival for a protected object.
1452         It is necessary to mark this entity as a variable, in addition to
1453         flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
1454         modified to avoid checking the Aliased flag on entities that are not
1455         objects. (Checking that flag for non-objects is erroneous and could
1456         lead to a compiler crash).
1457
1458 2004-10-26  Robert Dewar  <dewar@gnat.com>
1459
1460         * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
1461         X_Frac = 0.5, then we know that the number X must be positive.
1462         (Succ): Remove the same redundant test, and also fix the primary test
1463         to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
1464         Minor reformatting
1465         (Decompose): Add fuller comments to spec
1466
1467 2004-10-26  Pascal Obry  <obry@gnat.com>
1468
1469         * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
1470         validity (process must have read access). Set to 0 in all other cases.
1471         (STOP_FRAME): Now check for ptr validity to avoid a segmentation
1472         violation on Win32.
1473         (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
1474         segmentation violation.
1475
1476 2004-10-26  Eric Botcazou  <ebotcazou@act-europe.fr>
1477
1478         * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
1479         whose type is a constructed subtype of an aliased object with an
1480         unconstrained nominal subtype, convert the actual to the constructed
1481         subtype before taking its address.
1482
1483 2004-10-26  Vincent Celier  <celier@gnat.com>
1484
1485         * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
1486         (Is_Path_Name_Case_Sensitive): New function
1487
1488         * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
1489         (Base_Name, Simple_Name, Current_Directory, Compose,
1490         Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
1491         the result.
1492
1493 2004-10-26  Cyrille Comar    <comar@act-europe.fr>
1494             Vasiliy Fofanov  <fofanov@act-europe.fr>
1495             Vincent Celier   <celier@gnat.com>
1496
1497         * gnat_ugn.texi: Generalize "finding memory problems" section into a
1498         "memory management issues" section and document some of the useful
1499         memory pools provided as part of the GNAT library.
1500         Remove "virtual" from declaration of A::method2 in
1501         the simple example of Ada/C++ mixed system.
1502         Library Projects may be virtually extended: their virtual extensions
1503         are not Library Projects.
1504         Added section on extending project hierarchies.
1505
1506 2004-10-19  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1507
1508         * adaint.c (__gnat_get_libraries_from_registry): Cast value
1509         to LPBYTE.
1510         (__gnat_portable_spawn): Remove const.
1511
1512         * mingw32.h (MAXPATHLEN): Check for previous definition.
1513
1514 2004-10-17  Matthias Klose  <doko@debian.org>
1515
1516         * gnatvsn.ads: Set gnat library version to 4.0.
1517
1518 2004-10-05  Vincent Celier  <celier@gnat.com>
1519
1520         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
1521
1522 2004-10-04  Laurent GUERBY <laurent@guerby.net>
1523
1524         PR ada/15156
1525         * Makefile.in: Define and use RANLIB_FLAGS.
1526
1527 2004-10-04  Pascal Obry  <obry@gnat.com>
1528
1529         * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
1530         other x86 platforms).
1531
1532 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
1533
1534         * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
1535         in general and triggers stack alignment adjustment for thread entry
1536         points on targets where this is necessary.
1537
1538 2004-10-04  Bernard Banner  <banner@gnat.com>
1539
1540         PR ada/13897
1541
1542         * Makefile.in: Add section for powerpc linux
1543         Add variant i-vxwork-x86.ads
1544
1545         * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
1546
1547 2004-10-04  Olivier Hainque  <hainque@act-europe.fr>
1548
1549         * init.c (__gnat_initialize): Call an Ada subprogram to perform the
1550         table registration calls when need be. Ensures no reference to the crt
1551         ctors symbol are issued in the SJLJ case, which avoids possible
1552         undefined symbol errors in the case of modules to be statically linked
1553         with the kernel.
1554
1555 2004-10-04  Javier Miranda  <miranda@gnat.com>
1556
1557         * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
1558         in-line the code corresponding to subprogram Analyze_Actuals. In
1559         addition, analyze the actuals only in case of subprogram call.
1560
1561 2004-10-04  Ed Falis  <falis@gnat.com>
1562
1563         * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
1564
1565 2004-10-04  Sergey Rybin  <rybin@act-europe.fr>
1566
1567         * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
1568         in the documentation.
1569
1570 2004-10-04  Robert Dewar  <dewar@gnat.com>
1571
1572         * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
1573         IF and CASE.
1574         (Analyze_Block_Statement): Add circuitry to detect following dead code
1575         (Check_Unreachable_Code): Handle case of block exit
1576
1577 2004-10-04  Robert Dewar  <dewar@gnat.com>
1578
1579         * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
1580         (XMatchD): Avoid warning for Logic_Error call
1581
1582 2004-10-04  Robert Dewar  <dewar@gnat.com>
1583
1584         * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
1585         consider expressions buried within a procedure actual to be an actual.
1586         This caused some blowups with uses of packed slices within a procedure
1587         actual.
1588
1589 2004-10-04  Robert Dewar  <dewar@gnat.com>
1590
1591         * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
1592         longer need to be initialized to zero.
1593         (Get_Simple_Init_Val): Modular packed arrays no longer need to be
1594         initialized to zero.
1595
1596         * checks.adb (Expr_Known_Valid): Packed arrays are now always
1597         considered valid, even if the representation is modular. That's correct
1598         now that we no longer initialize packed modular arrays to zero.
1599
1600         * exp_dbug.ads: Clarify documentation on handling of PAD and JM
1601         suffixes. These are now documented as the only cases in which the
1602         debugger ignores outer records.
1603         Previously, the spec allowed arbitrary suffixes for this purpose.
1604         Change name of LJM to JM for packed array pad records
1605         Create separate section on packed array handling, and add a whole new
1606         set of comments to this section describing the situation with packed
1607         modular types and justification requirements depending on endianness.
1608
1609 2004-10-04  Robert Dewar  <dewar@gnat.com>
1610
1611         * a-except.adb: Add a comment for last change
1612
1613         * einfo.ads: Minor spelling correction in comment
1614
1615         * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
1616
1617         * sem_ch11.adb: Fix a case of using | instead of \ for continuation
1618         messages.
1619
1620         * sem_util.ads: Minor comment update
1621
1622 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1623
1624         * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
1625         Inline_Always when in Configurable_Run_Time mode.
1626
1627         * sem_prag.adb (Process_Convention): If entity is an inherited
1628         subprogram, apply convention to parent subprogram if in same scope.
1629         (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
1630         when in Configurable_Run_Time mode.
1631
1632 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1633
1634         * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
1635         class_wide type after component list has been inherited.
1636
1637 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1638
1639         * sem_ch12.adb (Check_Generic_Actuals): New predicate
1640         Denotes_Previous_Actual, to handle properly the case of a private
1641         actual that is also the component type of a subsequent array actual.
1642         The visibility status of the first actual is not affected when the
1643         second is installed.
1644         (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
1645         make fully recursive the treatment of formals of packages declared
1646         with a box.
1647         (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
1648         the above on exit from an instantiation.
1649         (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
1650         current instantiation which is now complete.
1651         (Analyze_Package_Instantiation): No instantiated body is needed if the
1652         main unit is generic. Efficient, and avoid anomalies when a instance
1653         appears in a package accessed through rtsfind.
1654
1655 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1656
1657         * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
1658         do not generate a declaration for a temporary if the call is part of a
1659         library-level instantiation.
1660
1661 2004-10-04  Ed Schonberg  <schonberg@gnat.com>
1662
1663         * sem_util.adb (Explain_Limited_Type): Ignore internal components when
1664         searching for a limited component to flag.
1665
1666         * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
1667         expansion of Input, to account for the fact that the implicit call
1668         generated by the attribute reference must freeze the user-defined
1669         stream subprogram. This is only relevant to 'Input, because it can
1670         appear in an object declaration, prior to the body of the subprogram.
1671
1672         * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
1673         expansion can proceed and further errors uncovered.
1674         (Minor clean up): Fix cases of using | instead of \ for continuation
1675         messages.
1676
1677 2004-10-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1678
1679         * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
1680
1681         * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
1682         (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
1683         Use gcc_assert and gcc_unreachable.
1684
1685         * decl.c (gnat_to_gnu_entity, case object): Check and process a
1686         specified alignment before validating size.
1687         (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
1688         stripped-down declaration for the type of the inner field when making
1689         a JM type.
1690
1691         * utils.c (finish_record_type): Do not compute the size in units
1692         incrementally. Instead compute it once for the rep clause case.
1693         Use gcc_assert and gcc_unreachable.
1694
1695 2004-10-04  Vincent Celier  <celier@gnat.com>
1696
1697         * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
1698         in file name.
1699         (Is_Valid_Path_Name): Take '/' as a directory separator.
1700
1701 2004-10-04  Vincent Celier  <celier@gnat.com>
1702
1703         * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
1704         (Extended_Project) only if Extended_Project is defined, to avoid
1705         assertion error.
1706         (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
1707         resolved path.
1708         (Parse_Single_Project): Ditto.
1709
1710         * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
1711         Add_To_Project_Path for virtual projects.
1712
1713 2004-10-04  Vincent Celier  <celier@gnat.com>
1714
1715         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
1716         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
1717         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
1718         mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
1719         parameter Options_2.
1720
1721         * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
1722         Build_Dynamic_Library with an empty Options_2.
1723
1724         * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
1725         default anymore.
1726
1727         * makegpr.adb (Get_Imported_Directories.add): Remove trailing
1728         directory separator, if any.
1729         (Gprmake): Do not allow mains on the command line for library projects.
1730         Do not attempt to link when the project is a library project.
1731         (Library_Opts): New table to store Library_Options.
1732         (Build_Library): If Library_Options is specified, pass these options
1733         when building a shared library.
1734
1735 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
1736
1737         * s-tposen.adb (Service_Entry): The object must be always unlocked at
1738         the end of this procedure now that the unlock operation was inserted
1739         by the expander.
1740
1741 2004-10-04  Jose Ruiz  <ruiz@act-europe.fr>
1742
1743         * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
1744         corresponding to the Preallocated_Stacks flags in System.
1745         (Get_Target_Parameters): Including the processing for
1746         Preallocated_Stacks.
1747
1748         * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
1749         system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
1750         system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
1751         system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
1752         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
1753         system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
1754         system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
1755         system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
1756         system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
1757         system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
1758         system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
1759         used to signal whether the compiler creates the required stacks and
1760         descriptors for the different tasks (when True) or it is done by the
1761         underlying operating system at run time (when False).
1762         It is initially set to False in all targets.
1763
1764         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
1765         if it is supported by the target.
1766         (Make_Task_Create_Call): Pass the stack address if it has been
1767         previously created. Otherwise pass a Null_Address.
1768
1769         * snames.adb: Add _stack.
1770
1771         * snames.ads: Add Name_uStack. Required to allow the expander to
1772         statically allocated task stacks.
1773
1774         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
1775         Stack_Address argument.
1776         Check that its value is equal to Null_Address because this target does
1777         not support the static stack allocation.
1778
1779 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
1780
1781         * usage.adb: Change "pragma inline" to "pragma Inline" in information
1782         and error messages
1783
1784 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
1785
1786         * exp_dist.adb: Split declaration of asynchronous flag out of
1787         Add_RACW_Read_Attribute.
1788         Minor reformatting for better alignment with PolyORB version.
1789         Store the entity for the asynchronous flag of an RACW, rather than the
1790         expression, in the asynchronous flags table. This will allow this flag
1791         to be used in other subprograms beside Add_RACW_Read_Attribute.
1792
1793 2004-10-04  Thomas Quinot  <quinot@act-europe.fr>
1794
1795         * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
1796         g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
1797         g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
1798         g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
1799         g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads:  Add new
1800         sockets constant MSG_NOSIGNAL (Linux-specific).
1801         Add new sockets constant MSG_Forced_Flags, list of flags to be set on
1802         all Send operations.
1803         For Linux, set MSG_NOSIGNAL on all send operations to prevent them
1804         from trigerring SIGPIPE.
1805         Rename components to avoid clash with Ada 2005 possible reserved
1806         word 'interface'.
1807         (Check_Selector): When the select system call returns with an error
1808         condition, propagate Socket_Error to the caller.
1809
1810 2004-10-01  Jan Hubicka  <jh@suse.cz>
1811
1812         * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
1813
1814 2004-09-23  Robert Dewar  <dewar@gnat.com>
1815
1816         PR ada/17540
1817
1818         * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
1819         instead do this at freeze time (we won't do it if there is an address
1820         clause).
1821         Change "pragma inline" to "pragma Inline" in information and error
1822         messages.
1823         Minor reformatting.
1824
1825         * freeze.adb (Check_Address_Clause): Remove previous change, not the
1826         right way of doing things after all.
1827         (Freeze_Entity): For object, set Is_Public for imported entities
1828         unless there is an address clause present.
1829
1830 2004-09-21  Olivier Hainque  <hainque@act-europe.fr>
1831
1832         * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
1833         dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
1834         ensures proper handling of types with rep clauses, which might have
1835         their TYPE_SIZE set already.
1836
1837 2004-09-21  Robert Dewar  <dewar@gnat.com>
1838
1839         * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
1840         packed array types in both little- and big-endian cases. This change
1841         ensures that we no longer count on the unused bits being initialized
1842         for such types (and in particular ensures that equality testing will
1843         only read the relevant bits).
1844         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1845         These changes mean that we no longer need to initialize small packed
1846         arrays.
1847         (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
1848         optimization to an LJM field as to its parent field.
1849
1850         * ada-tree.h, trans.c, utils.c, utils2.c:
1851         Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
1852
1853 2004-09-20  Jan Hubicka  <jh@suse.cz>
1854
1855         * utils.c (gnat_finalize): Remove.
1856         (end_subprog_body): Directly call cgraph_finalize_function;
1857         do not lower the nested functions.
1858
1859 2004-09-20  Robert Dewar  <dewar@gnat.com>
1860
1861         PR ada/17540
1862
1863         * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
1864         if an address clause is present, since that means that the Import
1865         should be ignored.
1866
1867 2004-09-20  Arnaud Charlet  <charlet@act-europe.fr>
1868
1869         * 5tsystem.ads: Removed, no longer used.
1870
1871 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
1872             Zack Weinberg  <zack@codesourcery.com>
1873
1874         * ada-tree.def: Use tree_code_class enumeration constants
1875         instead of code letters.
1876         * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
1877         Update for new tree-class enumeration constants.
1878
1879 2004-09-17  Vincent Celier  <celier@gnat.com>
1880
1881         * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
1882         capabilities of the general project manager.
1883
1884 2004-09-09  Vincent Celier  <celier@gnat.com>
1885
1886         * a-direct.ads: Add pragma Ada_05
1887         (Directory_Entry_Type): Give default value to component Kind to avoid
1888         not initialized warnings.
1889
1890         * a-direct.adb (Current_Directory): Remove directory separator at the
1891         end.
1892         (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
1893         an existing directory.
1894         (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
1895         (Size (String)): Function C_Size returns Long_Integer, not File_Size.
1896         Convert the result to File_Size.
1897
1898         * prj.ads: (Project_Error): New exception
1899
1900         * prj-attr.adb: Except in procedure Initialize, Fail comes from
1901         Prj.Com, not from Osint.
1902         (Attrs, Package_Attributes): Tables moved to private part of spec
1903         (Add_Attribute, Add_Unknown_Package): Moved to new child package
1904         Prj.Attr.PM.
1905         (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
1906         Prj.Project_Error after call to Fail.
1907         (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
1908         Fail. Check that package name is not already in use.
1909
1910         * prj-attr.ads: Comment updates to indicate that all subprograms may be
1911         used by tools, not only by the project manager, and to indicate that
1912         exception Prj.Prj_Error may be raised in case of problem.
1913         (Add_Unknown_Package, Add_Attribute): Moved to new child package
1914         Prj.Attr.PM.
1915         (Attrs, Package_Attributes): Table instantiations moved from the body to
1916         the private part to be accessible from Prj.Attr.PM body.
1917
1918         * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
1919         from new package Prj.Attr.PM.
1920         (Parse_Attribute_Declaration): Call Add_Attribute from new package
1921         Prj.Attr.PM.
1922
1923         * Makefile.in: Add prj-attr-pm.o to gnatmake object list
1924
1925         * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
1926         instead of Elaboration_Checks).
1927
1928         * a-calend.adb: Minor reformatting
1929
1930 2004-09-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1931
1932         * gigi.h (maybe_pad_type): New declaration.
1933         (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
1934
1935         * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
1936
1937         * cuintp.c: Convert to use buildN.
1938
1939         * decl.c (maybe_pad_type): No longer static.
1940         (gnat_to_gnu_entity, case E_Function): Handle case of returning by
1941         target pointer.
1942         Convert to use buildN.
1943
1944         * trans.c (call_to_gnu): Add arg GNU_TARGET; support
1945         TYPE_RETURNS_BY_TARGET_PTR_P.  All callers changed.
1946         (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
1947         RHS.
1948         (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
1949         (gnat_gimplify_expr, case ADDR_EXPR): New case.
1950         Convert to use buildN.
1951
1952         * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
1953         TREE_READONLY for const.
1954         Convert to use buildN.
1955
1956         * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
1957         (create_var_decl): Refine when TREE_STATIC is set.
1958         Convert to use buildN.
1959
1960 2004-09-09  Gary Dismukes  <dismukes@gnat.com>
1961
1962         * gnat_ugn.texi: Delete text relating to checking of ali and object
1963         consistency.
1964
1965         * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
1966         routines.
1967
1968 2004-09-09  Jose Ruiz  <ruiz@act-europe.fr>
1969
1970         * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
1971         pragmas recognized by GNAT.
1972
1973         * gnat_rm.texi: Document pragma Detect_Blocking.
1974
1975         * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
1976         raise Program_Error if called from a protected operation.
1977
1978         * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
1979         the protected action nesting level.
1980         (Lock_Read_Only): When pragma Detect_Blocking is active increase the
1981         protected action nesting level.
1982         (Unlock): When pragma Detect_Blocking is active decrease the protected
1983         action nesting level.
1984
1985         * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
1986         Protected_Action_Nesting.
1987
1988         * s-taskin.ads: Adding the field Protected_Action_Nesting to the
1989         Common_ATCB record. It contains the dynamic level of protected action
1990         nesting for each task. It is needed for checking whether potentially
1991         blocking operations are called from protected operations.
1992         (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
1993         Detect_Blocking is active or not in the partition.
1994
1995         * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
1996         raise Program_Error if called from a protected operation.
1997         (Task_Entry_Call): When pragma Detect_Blocking is active, raise
1998         Program_Error if called from a protected operation.
1999         (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
2000         Program_Error if called from a protected operation.
2001
2002         * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
2003         raise Program_Error if called from a protected operation.
2004
2005         * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
2006         raise Program_Error if called from a protected operation, and increase
2007         the protected action nesting level.
2008         (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
2009         Program_Error if called from a protected operation, and increase the
2010         protected action nesting level.
2011         (Unlock_Entries): When pragma Detect_Blocking is active decrease the
2012         protected action nesting level.
2013
2014         * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
2015         raise Program_Error if called from a protected operation, and increase
2016         the protected action nesting level.
2017         (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
2018         Program_Error if called from a protected operation, and increase the
2019         protected action nesting level.
2020         (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
2021         raise Program_Error if called from a protected operation.
2022         (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
2023         active, raise Program_Error if called from a protected operation.
2024         (Unlock_Entry): When pragma Detect_Blocking is active decrease the
2025         protected action nesting level.
2026
2027         * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
2028         insertion of the statement raising Program_Error. The run time
2029         contains the required machinery for handling that.
2030
2031         * sem_util.ads: Change comment associated to procedure
2032         Check_Potentially_Blocking_Operation.
2033         This procedure does not insert a call for raising the exception because
2034         that is currently done by the run time.
2035
2036         * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
2037
2038         * init.c: Add the global variable __gl_detect_blocking that indicates
2039         whether pragma Detect_Blocking is active (1) or not (0). Needed for
2040         making the pragma available at run time.
2041         (__gnat_set_globals): Pass and update the detect_blocking parameter.
2042
2043         * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
2044         pragma Detect_Blocking is active.
2045
2046         * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
2047
2048         * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
2049         DB is found in the ali file. Any unit compiled with pragma
2050         Detect_Blocking active forces its effect in the whole partition.
2051
2052         * a-retide.adb (Delay_Until): Raise Program_Error if pragma
2053         Detect_Blocking is active and delay is called from a protected
2054         operation.
2055
2056         * bindgen.adb (Gen_Adainit_Ada): When generating the call to
2057         __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
2058         Detect_Blocking is active (0 otherwise).
2059         (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
2060         as Detect_Blocking parameter if pragma Detect_Blocking is active (0
2061         otherwise).
2062
2063 2004-09-09  Thomas Quinot  <quinot@act-europe.fr>
2064
2065         * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
2066         GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
2067         package.
2068
2069         * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
2070         (Register_Receiving_Stub): Add Subp_Info formal parameter.
2071         Update API in placeholder implemetation of s-parint to reflect changes
2072         in distribution runtime library.
2073
2074         * sem_ch3.adb (Expand_Derived_Record): Rename to
2075         Expand_Record_Extension.
2076
2077         * sem_disp.adb (Check_Controlling_Formals): Improve error message for
2078         primitive operations of potentially distributed object types that have
2079         non-controlling anonymous access formals.
2080
2081         * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
2082         subprogram.
2083         New implementation of expansion for remote access-to-subprogram types,
2084         based on the RACW infrastructure.
2085         This version of sem_dist is compatible with PolyORB/DSA as well as
2086         GLADE.
2087
2088         * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
2089         Asynchrronous that applies to a remote access-to-subprogram type, mark
2090         the underlying RACW type as asynchronous.
2091
2092         * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
2093          __gnat_using_gnu_linker to 1.
2094
2095         * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
2096         g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
2097         GNAT.Perfect_Hash_Generators, and remove the empty
2098         GNAT.Perfect_Hash package.
2099
2100         * atree.adb: Minor reformatting
2101
2102         * exp_ch3.adb (Expand_Derived_Record): Rename to
2103         Expand_Record_Extension.
2104         (Build_Record_Init_Proc.Build_Assignment): The default expression in
2105         a component declaration must remain attached at that point in the
2106         tree so New_Copy_Tree copies it if the enclosing record type is derived.
2107         It is therefore necessary to take a copy of the expression when building
2108         the corresponding assignment statement in the init proc.
2109         As a side effect, in the case of a derived record type, we now see the
2110         original expression, without any rewriting that could have occurred
2111         during expansion of the ancestor type's init proc, and we do not need
2112         to go back to Original_Node.
2113
2114         * exp_ch3.ads (Expand_Derived_Record): Rename to
2115         Expand_Record_Extension.
2116
2117         * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
2118         Returns the RACW type used to implement a remote access-to-subprogram
2119         type.
2120         (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
2121         New subprograms. Used to create a proxy tagged object for a remote
2122         subprogram. The proxy object is used as the designated object
2123         for RAS values on the same partition (unless All_Calls_Remote applies).
2124         (Build_Get_Unique_RP_Call): New subprogram. Build a call to
2125         System.Partition_Interface.Get_Unique_Remote_Pointer.
2126         (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
2127         Renamed from Add_RAS_*_Attribute.
2128         (Add_Receiving_Stubs_To_Declarations): Generate a table of local
2129         subprograms.
2130         New implementation of expansion for remote access-to-subprogram types,
2131         based on the RACW infrastructure.
2132
2133         * exp_dist.ads (Copy_Specification): Update comment to note that this
2134         function can copy the specification from either a subprogram
2135         specification or an access-to-subprogram type definition.
2136
2137 2004-09-09  Ed Schonberg  <schonberg@gnat.com>
2138
2139         * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
2140         in an instance, between an explicit subprogram an one inherited from a
2141         type derived from an actual.
2142
2143         * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
2144         add a polling call if the subprogram is to be inlined by the back-end,
2145         to avoid repeated calls with multiple inlinings.
2146
2147         * checks.adb (Apply_Alignment_Check): If the expression in the address
2148         clause is a call whose name is not a static entity (e.g. a dispatching
2149         call), treat as dynamic.
2150
2151 2004-09-09  Robert Dewar  <dewar@gnat.com>
2152
2153         * g-trasym.ads: Minor reformatting
2154
2155         * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
2156         packed arrays, since unused bits are expected to be zero for a
2157         comparison.
2158
2159 2004-09-09  Eric Botcazou  <ebotcazou@act-europe.fr>
2160
2161         * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
2162         comment.
2163
2164 2004-09-09  Pascal Obry  <obry@gnat.com>
2165
2166         * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
2167         enable map file generation. Add the right option to generate the map
2168         file if Map_File is set to True.
2169
2170         * gnatdll.adb (Gen_Map_File): New variable.
2171         (Syntax): Add info about new -m (Map_File) option.
2172         (Parse_Command_Line): Add support for -m option.
2173         (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
2174         Minor reformatting.
2175
2176 2004-09-09  Laurent Pautet  <pautet@act-europe.fr>
2177
2178         * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
2179         new gnatdist implementation.
2180         Define a subpackage isolating the output routines specific to this
2181         verbose mode.
2182
2183 2004-09-09  Joel Brobecker  <brobecker@gnat.com>
2184
2185         * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
2186
2187         * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
2188
2189 2004-09-09  Cyrille Comar  <comar@act-europe.fr>
2190
2191         * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
2192         internal unit.
2193
2194         * opt.ads: Add Ada_Version_Runtime constant used to decide which
2195         version of the language is used to compile the run time.
2196
2197 2004-09-09  Arnaud Charlet  <charlet@act-europe.fr>
2198
2199         * sem_util.adb (Requires_Transient_Scope): Re-enable handling
2200         of variable length temporaries for function return now that the
2201         back-end and gigi support it.
2202
2203 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2204
2205         * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
2206
2207         * trans.c (struct stmt_group): Delete field GLOBAL.
2208         (gnat_init_stmt_group): Do not initialize it.
2209         (call_to_gnu): Use save_expr, not protect_multiple_eval.
2210         (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
2211         (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
2212         (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
2213         (start_stmt_group): Likewise.
2214         (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
2215
2216         * utils2.c (ggc.h): Include.
2217         (build_call_raise): Call build_int_cst, not build_int_2.
2218
2219         * utils.c (gnat_init_decl_processing): Fix arg to
2220         build_common_tree_nodes.
2221         (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
2222         (gnat_define_builtin): Set built_in_decls.
2223         (init_gigi_decls): Call build_int_cst, not build_int_2.
2224
2225         * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
2226         (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
2227         (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
2228         (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
2229         SET_TYPE_MODULE): Use them.
2230         (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
2231         (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
2232         (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
2233         SET_TYPE_ADA_SIZE): Likewise.
2234         (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
2235         (DECL_CONST_CORRESPONDING_VAR,
2236         SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
2237         (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
2238         (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
2239         (TYPE_RM_SIZE_NUM): New macro.
2240         (TYPE_RM_SIZE): Modified to use above.
2241
2242         * cuintp.c: (build_cst_from_int): New function.
2243         (UI_To_gnu): Use it.
2244
2245         * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
2246         (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
2247         (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
2248         MIN_EXPR for the size, copy it into new.
2249
2250 2004-09-01  Robert Dewar  <dewar@gnat.com>
2251
2252         * exp_ch6.adb (Expand_Call): Properly handle validity checks for
2253         packed indexed component where array is an IN OUT formal. This
2254         generated garbage code previously.
2255
2256         * gnat_ugn.texi: Document -fverbose-asm
2257
2258         * gnat-style.texi: Minor updates (note that boolean constants and
2259         variables are joined with AND/OR rather than short circuit forms).
2260
2261 2004-09-01  Ed Schonberg  <schonberg@gnat.com>
2262
2263         * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
2264         it is an upward conversion of an untagged type with no representation
2265         change.
2266
2267 2004-09-01  Thomas Quinot  <quinot@act-europe.fr>
2268
2269         * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
2270         System.Partition_Interface.
2271
2272         * checks.adb (Apply_Access_Checks): Do not generate checks when
2273         expander is not active (but check for unset reference to prefix of
2274         dereference).
2275
2276         * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
2277         pragma Debug as an if statement with a constant condition, for
2278         consistent treatment of entity references contained within the
2279         enclosed procedure call.
2280
2281 2004-09-01  Vincent Celier  <celier@gnat.com>
2282
2283         * bindgen.adb: (Set_EA_Last): New procedure
2284         (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
2285         Set_EA_Last.
2286         (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
2287         (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
2288         linked without errors.
2289         (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
2290         ST and EA.
2291         (Gen_Exception_Table_C): Correct same bugs
2292
2293         * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
2294
2295         * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
2296         on Windows, make sure that the drive letter is in upper case.
2297
2298         * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
2299         Windows, when the drive letter is added and Case_Sensitive is True, the
2300         drive letter is forced to upper case.
2301
2302         * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
2303         to Options_2 for the call to MLib.Utl.Gcc.
2304
2305         * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
2306         directory separator when defining BASE_DIR.
2307
2308 2004-09-01  Pascal Obry  <obry@gnat.com>
2309
2310         * gprcmd.adb (Extend): Do not output trailing directory separator. This
2311         is not needed and it confuses Windows GNU/make which does not report
2312         directory terminated by a slash as a directory.
2313         (gprcmd): Idem for "pwd" internal command.
2314
2315         * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
2316         target names rewrite to fix regressions with recent version of
2317         GNU/make. Starting with GNU/make 3.80 the pipe character was not
2318         handled properly anymore.
2319
2320 2004-09-01  Andreas Schwab  <schwab@suse.de>
2321
2322         * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
2323         * raise.c [!IN_RTS]: Undef abort.
2324
2325 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
2326
2327         * utils2.c (build_allocator): Use ssize_int.
2328
2329         * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
2330
2331 2004-08-27  Andreas Schwab  <schwab@suse.de>
2332
2333         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
2334
2335 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
2336             Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2337
2338         * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
2339
2340 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
2341
2342         * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
2343         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
2344         * utils.c (init_gigi_decls): Likewise.
2345         * utils2.c (build_call_raise, build_allocator): Likewise.
2346
2347 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
2348
2349         * utils.c (gnat_init_decl_processing): Adjust
2350         build_common_tree_nodes call.
2351
2352 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
2353
2354         * utils2.c (build_allocator): Use build_int_cst for negative
2355         size types.
2356
2357 2004-08-18  Richard Henderson  <rth@redhat.com>
2358
2359         * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
2360
2361 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2362
2363         * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
2364         call.s
2365         * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
2366         (gnat_to_gnu): Likewise.
2367
2368 2004-08-16  Pascal Obry  <obry@gnat.com>
2369
2370         * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
2371         backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
2372         option and not mdll anymore. Update comment.
2373
2374 2004-08-16  Pascal Obry  <obry@gnat.com>
2375
2376         * bld.adb (Put_Include_Project): Properly handle directory separators
2377         on Windows.
2378
2379 2004-08-16  Ed Schonberg  <schonberg@gnat.com>
2380
2381         * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
2382         decreasing the number of allocated junk nodes while searching for the
2383         appropriate subprogram.
2384
2385 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
2386
2387         * cuintp.c (UI_To_gnu): Use build_int_cst..
2388         * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
2389         * utils.c (init_gigi_decls): Likewise.
2390         * utils2.c (build_call_raise): Likewise.
2391
2392 2004-08-13  Olivier Hainque  <hainque@act-europe.fr>
2393
2394         * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
2395         for a global aliased object with a variable size and an unconstrained
2396         nominal subtype, pretend there is no initializer if the one we have is
2397         incomplete, and avoid referencing an inexistant component in there. The
2398         part we have will be rebuilt anyway and the reference may confuse
2399         further operations.
2400
2401 2004-08-13  Thomas Quinot  <quinot@act-europe.fr>
2402
2403         * einfo.ads: Minor reformatting
2404
2405         * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
2406         restrictions in the ALI if we only want to warn about violations.
2407
2408 2004-08-13  Vincent Celier  <celier@gnat.com>
2409
2410         * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
2411         when creating a new Unit_Record in table Units.
2412
2413         * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
2414         that are violated, if any.
2415
2416         * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
2417         add directory separator if path already ends with a directory separator.
2418
2419 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
2420
2421         * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
2422         unit, this is an attempt to inline a construct that is not available in
2423         the current restricted mode, so abort rather than trying to continue.
2424
2425         * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
2426         discriminants that rename those of the parent, recover names of
2427         original discriminants for the constraint on the full view of the
2428         parent.
2429         (Complete_Private_Subtype): Do not create a subtype declaration if the
2430         subtype is an itype.
2431
2432         * gnat_rm.texi: Added section on implementation of discriminated
2433         records with default values for discriminants.
2434
2435 2004-08-13  Ed Schonberg  <schonberg@gnat.com>
2436
2437         PR ada/15601
2438         * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
2439         the second operand is overloaded.
2440
2441 2004-08-10  Richard Henderson  <rth@redhat.com>
2442
2443         * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
2444         add __builtin_alloca.
2445
2446 2004-08-10  Richard Henderson  <rth@redhat.com>
2447
2448         * config-lang.in (boot_language): Yes.
2449
2450 2004-08-09  Thomas Quinot  <quinot@act-europe.fr>
2451
2452         * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
2453         from complaining on potential uninitialized reference.
2454         Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
2455         new specification and test explicitly for non-zero return value.
2456
2457         * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
2458         returning C.int, to avoid using a derived boolean type.
2459
2460         * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
2461         Duplicate_Subexpr_No_Checks in preference to direct use of
2462         Remove_Side_Effects and New_Copy_Tree.
2463         Clear Comes_From_Source on prefix of 'Size attribute reference.
2464
2465         * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
2466         g-socthi-vxworks.adb: Change calls to
2467         GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
2468         and test explicitly for non-zero return value.
2469
2470         * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
2471         (Is_Socket_In_Set): Declare imported function as returning C.int, to
2472         avoid using a derived boolean type.
2473
2474 2004-08-09  Albert Lee  <lee@gnat.com>
2475
2476         * system-irix-n32.ads: Refine tasking priority constants for IRIX.
2477
2478 2004-08-09  Pascal Obry  <obry@gnat.com>
2479
2480         * gnat_ugn.texi: Document new way to build DLLs on Windows using
2481         GCC's -shared option.
2482
2483         * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
2484         Options_2 parameter (options put after object files).
2485
2486 2004-08-09  Olivier Hainque  <hainque@act-europe.fr>
2487
2488         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
2489         ignore overflows on low and high bounds of an index to also account for
2490         differences in signedness between sizetype and gnu_index_subtype.
2491         These are as legitimate as the ones caused by a lower TYPE_PRECISION
2492         on sizetype.
2493
2494 2004-08-09  Robert Dewar  <dewar@gnat.com>
2495
2496         * s-solita.ads, s-solita.adb: Minor reformatting
2497
2498         * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
2499         Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
2500         obsolescent section
2501         Add note that No_Implicit_Conditionals does not suppress
2502         run time constraint checks.
2503
2504         * vms_conv.ads: Minor reformatting
2505
2506         * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
2507         and necessary for following change).
2508         (Mark): Return new format Mark_Id containing sec stack address
2509         (Release): Use sec stack address from Mark_Id avoiding Self call
2510
2511         * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
2512         pointer (cleanup and necessary for following change).
2513         Define Mark_Id as record containing address of secondary stack, that way
2514         Release does not need to find the stack again, decreasing the number of
2515         calls to Self and improving efficiency.
2516
2517         * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
2518
2519         * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
2520         case variable into the individual case branches when possible.
2521
2522         * sem_ch11.adb: Minor reformatting
2523
2524         * prj.ads: Correct spelling of suffixs
2525
2526         * prj-nmsc.adb: Minor reformatting
2527         Correct spelling suffixs throughout (also in identifiers)
2528
2529         * freeze.adb: Minor spelling correction
2530
2531         * exp_ch2.adb: Cleanups to handling of Current_Value
2532         (no functional effect).
2533
2534         * bld.adb: Correct spelling of suffixs
2535
2536         * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
2537
2538 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
2539
2540         PR ada/15408
2541
2542         * sem_ch7.adb (Install_Private_Declarations): In the body of the
2543         package or of a child, private entities are both immediately_visible
2544         and not hidden.
2545
2546 2004-08-09  Ed Schonberg  <schonberg@gnat.com>
2547
2548         * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
2549         there are no range checks on the value of the literal.
2550
2551         * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
2552         wrapped is the triggering alternative of an asynchronous select, action
2553         statements mustbe inserted before the select itself.
2554
2555         * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
2556         case where the prefix is a protected function call.
2557         (Resolve_Attribute, case 'Access): The attribute reference on a
2558         subprogram is legal in a generic body if the subprogram is declared
2559         elsewhere.
2560
2561 2004-08-09  Vincent Celier  <celier@gnat.com>
2562
2563         * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
2564         languages, otherwise building the library may fail with unresolved
2565         symbols.
2566         (Compile_Sources): Do not build libraries if -c switch is used
2567
2568         * gnatlink.adb (Process_Args): New switches -M and -Mmap
2569         (Write_Usage): If map file creation is supported, output new switches
2570         -M and -Mmap.
2571         (Gnatlink): When -M is specified, add the necessary switch(es) to the
2572         gcc call, when supported.
2573
2574         * Makefile.in: Added indepsw.o to the object list for gnatlink
2575         Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
2576
2577         * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
2578         indepsw.adb, indepsw.ads: New files.
2579
2580 2004-08-09  Bernard Banner  <banner@gnat.com>
2581
2582         * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
2583
2584         * Makefile.in: add section for vxworks x86
2585
2586 2004-08-09  Hristian Kirtchev  <kirtchev@gnat.com>
2587
2588         * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
2589         per-object constrained components where the discriminant is of an
2590         Access type.
2591         (Build_Record_Init_Proc): Add condition to prevent the inheritance of
2592         the parent initialization procedure for derived Unchecked_Unions.
2593         Instead, derived Unchecked_Unions build their own initialization
2594         procedure.
2595         (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
2596         Check the body of the subprogram for details.
2597         (Freeze_Record_Type): Prevent the inheritance of discriminant checking
2598         functions for derived Unchecked_Union types by introducing a condition.
2599         Allow the creation of TSS equality functions for Unchecked_Unions.
2600         (Make_Eq_Case): Rename formal parameter Node to E in function signature.
2601         Add formal parameter Discr to function signature. Discr is used to
2602         control the generated case statement for Unchecked_Union types.
2603         (Make_Eq_If): Rename formal parameter Node to E in function signature.
2604
2605         * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
2606         Unchecked_Unions.
2607         Check the body of the subprogram for details.
2608         (Expand_Composite_Equality): Augment composite type equality to include
2609         correct handling of Unchecked_Union components.
2610         (Expand_N_In): Add condition to detect illegal membership tests when the
2611         subtype mark is a constrained Unchecked_Union and the expression lacks
2612         inferable discriminants, and build a Raise_Program_Error node.
2613         (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
2614         to detect types that contain components of unconstrained Unchecked_Union
2615         subtype. Add condition to detect equality between types that have an
2616         unconstrained Unchecked_Union component, and build a Raise_Program_Error
2617         node. Add condition to detect equality between Unchecked_Union types
2618         that lack inferable discriminants, and build a Raise_Program_Error node.
2619         Otherwise build a TSS equality function call.
2620         (Expand_N_Type_Conversion): Add condition to detect illegal conversions
2621         from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
2622         with the operand lacking inferable discriminants, and build a Raise_
2623         Program_Error node.
2624         (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
2625         composite equality.
2626         (Has_Inferable_Discriminants): Implement new predicate for objects and
2627         expressions of Unchecked_Union type. Check the body of subprogram for
2628         details.
2629         (Has_Unconstrained_UU_Components): Add function
2630         Component_Is_Unconstrained_UU. It is used to detect whether a single
2631         component is of an unconstrained Unchecked_Union subtype. Add function
2632         Variant_Is_Unconstrained_UU. It is used to detect whether a single
2633         component inside a variant is of an unconstrained Unchecked_Union type.
2634
2635         * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
2636         inferred discriminant values. Add condition to generate a case
2637         statement with an inferred discriminant as the switch.
2638         (Make_Component_List_Assign): Introduce a Boolean flag that determines
2639         the behaviour of the subprogram in the presence of an Unchecked_Union.
2640         Add condition to trigger the usage of the inferred discriminant value
2641         as the generated case statement switch.
2642         (Make_Field_Assign): Introduce a Boolean flag that determines the
2643         behaviour of the subprogram in the presence of an Unchecked_Union. Add
2644         condition to trigger the usage of the inferred discriminant value as
2645         the right-hand side of the generated assignment.
2646
2647         * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
2648         parameter generation when dealing with Unchecked_Unions.
2649
2650         * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
2651         checks for Unchecked_Unions.
2652
2653         * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
2654
2655         * exp_attr.adb (Expand_N_Attribute_Reference): Produce
2656         Raise_Program_Error nodes for the execution of Read and Write
2657         attributes of Unchecked_Union types and the execution of Input and
2658         Output attributes of Unchecked_Union types that lack default
2659         discriminant values.
2660
2661         * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
2662         Unchecked_Union. Add procedure Check_Component. It is used to inspect
2663         per-object constrained components of Unchecked_Unions for being
2664         Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
2665         check individual components withing a variant.
2666
2667         * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
2668         comparison of Unchecked_Unions.
2669         (Resolve_Equality_OP): Remove guard that prevents equality between
2670         Unchecked_Unions.
2671
2672         * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
2673         of component subtypes for Unchecked_Union components.
2674         (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
2675         since it is the actual subtype.
2676
2677         * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
2678         pass of Unchecked_Union subtypes as generic actuals to formal types
2679         that lack known_discriminant_parts or that are derived Unchecked_Union
2680         types, and do nothing. In any other case, produce an error message.
2681
2682         * sem_ch3.adb (Analyze_Component_Declaration): Add function
2683         Contains_POC. It determines whether a constraint uses the discriminant
2684         of an enclosing record type.
2685         Add condition to detect per-object constrained component and set the
2686         appropriate flag.
2687         (Derived_Type_Declaration): Remove guard that prevents derivation from
2688         Unchecked_Union types.
2689         (Process_Subtype): Remove quard that prevents the creation of Unchecked_
2690         Union subtypes.
2691
2692         * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
2693         references to Unchecked_Union discriminants.
2694
2695         * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
2696         formal generation when dealing with Unchecked_Unions.
2697         (Set_Actual_Subtypes): Add condition to prevent generation of actual
2698         subtypes for Unchecked_Unions.
2699
2700         * sem_ch7.adb (Analyze_Package_Specification): Add procedure
2701         Inspect_Unchecked_Union_Completion. It is used to detect incorrect
2702         completions of discriminated partial views by Unchecked_Unions and
2703         produce an error message.
2704
2705 2004-08-09  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2706
2707         * trans.c (struct stmt_group): New field, GLOBAL.
2708         (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
2709         (struct elab_info): New struct.
2710         (elab_info_list, gnu_elab_proc_stack): New variables.
2711         (Compilation_Unit_to_gnu): New procedure.
2712         (gigi): Call it and also handle elaboration procs we've saved.
2713         (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
2714         global field from parent.
2715         (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
2716         (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
2717         (start_stmt_group): Initialize global field from parent.
2718         (add_decl_expr): Set to global for current statement group.
2719         (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
2720         post.
2721
2722         * utils.c (global_bindings_p): True when no current_function_decl; no
2723         longer check current_binding_level.
2724
2725 2004-08-09  Ben Brosgol  <brosgol@gnat.com>
2726
2727         * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
2728         choice.
2729
2730         * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
2731
2732 2004-08-06  Andreas Schwab  <schwab@suse.de>
2733
2734         * utils.c (gnat_define_builtin): Remove second parameter of
2735         make_decl_rtl.
2736         (begin_subprog_body): Likewise.
2737
2738 2004-07-26  Arnaud Charlet  <charlet@act-europe.fr>
2739
2740         * sem_util.adb (Requires_Transient_Scope): Temporarily disable
2741         optimization, not supported by the tree-ssa back-end.
2742
2743 2004-07-26  Olivier Hainque  <hainque@act-europe.fr>
2744
2745         * s-mastop-irix.adb: Update comments.
2746
2747         * a-except.adb (Exception_Information): Raise Constraint_Error if
2748         exception Id is Null_Id.
2749         This is required behavior, which is more reliably and clearly checked
2750         at the top level interface level.
2751
2752 2004-07-26  Javier Miranda  <miranda@gnat.com>
2753
2754         * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
2755         call if a component has no default_expression and the box is used.
2756
2757         * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
2758         default_expression and you use box, it behaves as if you had declared a
2759         stand-alone object.
2760         (Resolve_Record_Aggregate): If a component has no default_expression and
2761         you use box, it behaves as if you had declared a stand-alone object.
2762
2763         * sem_ch10.adb (Install_Siblings): Do not make visible the private
2764         entities of private-with siblings.
2765
2766 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
2767
2768         * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
2769         for a component of an itype, set the parent pointer for analysis,
2770         there is no list in which to insert it.
2771
2772         * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
2773         bona-fide renamings, not for inherited operations.
2774
2775         * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
2776         actual for a formal that is an access parameter, create local
2777         finalization list even if the expression is not an aggregate.
2778
2779 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
2780
2781         PR ada/16213
2782         * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
2783         Diagnose properly illegal subprogram renamings that are library units.
2784
2785 2004-07-26  Ed Schonberg  <schonberg@gnat.com>
2786
2787         PR ada/15588
2788         * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
2789         conversion rewritten as an unchecked conversion, check that original
2790         expression is a variable.
2791
2792         * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
2793         unchecked_conversion, create new node rather than rewriting in place,
2794         to preserve original construct.
2795
2796 2004-07-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2797
2798         * gigi.h (gnat_expand_body): Deleted.
2799
2800         * Make-lang.in: (trans.o): Depends on function.h.
2801
2802         * misc.c: (gnat_expand_body): Moved to here.
2803
2804         * trans.c (gnat_expand_body_1): Deleted.
2805         (gnat_expand_body): Moved from here.
2806         (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
2807         (add_stmt): Check for marked visited with global_bindings_p.
2808         (gnat_gimplify_expr, case COMPONENT_REF): New case.
2809         (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
2810
2811         * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
2812         VIEW_CONVERT_EXPR if not operation type.
2813
2814         * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
2815         fat pointer.
2816
2817         * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
2818         changes: reformatting of negation operators, removing unneeded
2819         inequality comparison with zero, converting equality comparisons with
2820         zero to negations, changing int/0/1 to bool/false/true, replace calls
2821         to gigi_abort with abort, and various other similar changes.
2822
2823 2004-07-26  Vincent Celier  <celier@gnat.com>
2824
2825         * gnatcmd.adb (GNATCmd): Add processing for new built-in command
2826         "setup".
2827
2828         * make.adb (Gnatmake): Fail when a library is not present and there is
2829         no object directory.
2830
2831         * mlib-prj.adb (Check_Library): No need to check if the library needs
2832         to be rebuilt if there is no object directory, hence no object files
2833         to build the library.
2834
2835         * opt.ads (Setup_Projects): New Boolean flag.
2836
2837         * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
2838         Location.
2839         Create directory when Kind /= "" and in "gnat setup". Report error if
2840         directory cannot be created.
2841         (Ada_Check): Create library interface copy dir if it does not exist
2842         and we are in "gnat setup".
2843         (Find_Sources): No error if in "gnat setup" and no Ada sources were
2844         found.
2845         (Language_Independent_Check): Create object directory, exec directory
2846         and/or library directory if they do not exist and we are in
2847         "gnat setup".
2848
2849         * vms_conv.ads: (Command_Type): New command Setup.
2850
2851         * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
2852
2853         * vms_data.ads: Add qualifiers/switches for new built-in command
2854         "setup".
2855
2856 2004-07-25  Richard Henderson  <rth@redhat.com>
2857
2858         * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
2859         DECL_IGNORED_P on RESULT_DECL.
2860
2861 2004-07-20  Olivier Hainque  <hainque@act-europe.fr>
2862
2863         * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
2864         allocation and potentially overflowing update with
2865         Tailored_Exception_Information. Use the sec-stack free procedural
2866         interface to output Exception_Information instead.
2867
2868         * a-except.adb (To_Stderr): New subprogram for character, and string
2869         version moved from a-exextr to be visible from other separate units.
2870         (Tailored_Exception_Information): Remove the procedural version,
2871         previously used by the default Last_Chance_Handler and not any more.
2872         Adjust various comments.
2873
2874         * a-exexda.adb: Generalize the exception information procedural
2875         interface, to minimize the use of secondary stack and the need for
2876         local buffers when the info is to be output to stderr:
2877         (Address_Image): Removed.
2878         (Append_Info_Character): New subprogram, checking for overflows and
2879         outputing to stderr if buffer to fill is of length 0.
2880         (Append_Info_String): Output to stderr if buffer to fill is of length 0.
2881         (Append_Info_Address, Append_Info_Exception_Name,
2882         Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
2883         Append_Info_Basic_Exception_Traceback,
2884         Append_Info_Exception_Information): New subprograms.
2885         (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
2886         (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
2887         Exception_Info_Maxlength, Exception_Name_Length,
2888         Exception_Message_Length): New subprograms.
2889         (Exception_Information): Use Append_Info_Exception_Information.
2890         (Tailored_Exception_Information): Use
2891         Append_Info_Basic_Exception_Information.
2892         Export services for the default Last_Chance_Handler.
2893
2894         * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
2895         other separate units.
2896
2897 2004-07-20  Vincent Celier  <celier@gnat.com>
2898
2899         * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
2900
2901 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
2902
2903         * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
2904         emit itype references for the designated types of component types that
2905         are declared outside of the full record declaration, and that may
2906         denote a partial view of that record type.
2907
2908 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
2909
2910         PR ada/15607
2911         * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
2912         which is the designated type in an access component declaration, to the
2913         list of incomplete dependents of the parent type, to avoid elaboration
2914         issues with out-of-scope subtypes.
2915         (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
2916         full view of the parent.
2917
2918 2004-07-20  Ed Schonberg  <schonberg@gnat.com>
2919
2920         PR ada/15610
2921         * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
2922         entities that are hidden, such as references to generic actuals
2923         outside an instance.
2924
2925 2004-07-20  Javier Miranda  <miranda@gnat.com>
2926
2927         * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
2928         support to the new notation.
2929         (Analyze_Selected_Component): Add call to Try_Object_Operation.
2930
2931 2004-07-20  Jose Ruiz  <ruiz@act-europe.fr>
2932
2933         * s-taprob.adb: Adding the elaboration code required for initializing
2934         the tasking soft links that are common to the full and the restricted
2935         run times.
2936
2937         * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
2938         restricted run time has been moved to the package
2939         System.Soft_Links.Tasking.
2940
2941         * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
2942         restricted run time has been moved to the package
2943         System.Soft_Links.Tasking.
2944
2945         * Makefile.rtl: Add entry for s-solita.o in run-time library list.
2946
2947         * s-solita.ads, s-solita.adb: New files.
2948
2949 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2950
2951         * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
2952         Case_Statement_to_gnu): Split off from gnat_to_gnu.
2953         (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
2954         Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
2955         Exception_Handler_to_gnu_zcx): Likewise.
2956
2957 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
2958
2959         * gigi.h (builtin_function): Declare.
2960
2961 2004-07-15  Robert Dewar  <dewar@gnat.com>
2962
2963         * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
2964         reformatting
2965
2966         * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
2967         access values as an example of a warning.
2968
2969         * gnat_rm.texi: Document new attribute Has_Access_Values
2970
2971         * gnat-style.texi: Document that box comments belong on nested
2972         subprograms
2973
2974         * sem_util.ads (Has_Access_Values): Improved documentation
2975
2976         * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
2977
2978         * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
2979         (Process_Interface_Name): Call to this new procedure
2980         (Set_Extended_Import_Export_External_Name): Call to this new procedure
2981
2982         * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
2983
2984         * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
2985
2986         * einfo.ads: Minor comment typo fixed
2987
2988 2004-07-15  Jose Ruiz  <ruiz@act-europe.fr>
2989
2990         * snames.adb: Add _atcb.
2991
2992         * snames.ads: Add Name_uATCB.
2993
2994         * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
2995         (in the expanded code) when using the restricted run time.
2996
2997         * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
2998         a in parameter in order to allow ATCBs to be preallocated (in the
2999         expanded code).
3000
3001         * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
3002         order to allow ATCBs to be preallocated. In case of error, the ATCB is
3003         deallocated in System.Tasking.Stages.
3004
3005         * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
3006         order to allow ATCBs to be preallocated.
3007
3008         * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
3009         here. It was previously done in Initialize_ATCB.
3010
3011         * rtsfind.ads: Make the Ada_Task_Control_Block visible.
3012
3013         * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
3014         Restricted run time.
3015
3016         * exp_ch3.adb: When using the Restricted run time, pass the
3017         preallocated Ada_Task_Control_Block when creating a task.
3018
3019 2004-07-15  Ed Schonberg  <schonberg@gnat.com>
3020
3021         * sem_util.adb (Normalize_Actuals): If there are no actuals on a
3022         function call that is itself an actual in an enclosing call, diagnose
3023         problem here rather than assuming that resolution will catch it.
3024
3025         * sem_ch7.adb (Analyze_Package_Specification): If the specification is
3026         the local copy of a generic unit for a formal package, and the generic
3027         is a child unit, install private part of ancestors before compiling
3028         private part of spec.
3029
3030         * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
3031         use scope entities rather than tree structures, to handle properly
3032         parent units that are instances rewritten as bodies for inlining
3033         purposes.
3034
3035         * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
3036         Remove_Parents): Handle properly a parent unit that is an
3037         instantiation, when the unit has been rewritten as a body for inlining
3038         purposes.
3039
3040         * par.adb (Goto_List): Global variable to collect goto statements in a
3041         given unit, for use in detecting natural loops.
3042
3043         * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
3044         use in detecting natural loops.
3045
3046         * par-labl.adb (Find_Natural_Loops): Recognize loops create by
3047         backwards goto's, and rewrite as a infinite loop, to improve locality
3048         of temporaries.
3049
3050         * exp_util.adb (Force_Evaluation): Recognize a left-hand side
3051         subcomponent that includes an indexed reference, to prevent the
3052         generation of copies that would miscompile the desired assignment
3053         statement.
3054         (Build_Task_Image_Decls): Add a numeric suffix to
3055         generated name for string variable, to avoid spurious conflicts with
3056         the name of the type of a single protected object.
3057
3058         * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
3059         loop with an explicit exit statement, to avoid generating an
3060         out-of-range value with 'Succ leading to spurious constraint_errors
3061         when compiling with -gnatVo.
3062
3063 2004-07-15  Thomas Quinot  <quinot@act-europe.fr>
3064
3065         * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
3066         might not be analyzed yet, even if its Etype is already set (case of an
3067         unchecked conversion built using Unchecked_Convert_To, for example).
3068         If the prefix has already been analyzed, this will be a nop anyway.
3069
3070         * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
3071         controller type, or an assignment of a record type with controlled
3072         components, copy only user data, and leave the finalization chain
3073         pointers untouched.
3074
3075 2004-07-15  Vincent Celier  <celier@gnat.com>
3076
3077         * make.adb (Collect_Arguments): Improve error message when attempting
3078         to compile a source not part of any project, when -x is not used.
3079
3080         * prj.ads: (Defined_Variable_Kind): New subtype
3081
3082         * prj-attr.adb (Register_New_Package): Two new procedures to register
3083         a package with or without its attributes.
3084         (Register_New_Attribute): Mew procedure to register a new attribute in a
3085         package.
3086         New attribute oriented subprograms: Attribute_Node_Id_Of,
3087         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
3088         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
3089         Next_Attribute.
3090         New package oriented subprograms: Package_Node_Id_Of,
3091         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
3092
3093         * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
3094         type.
3095         (Package_Node_Id): Now a private, self initialized type
3096         (Register_New_Package): New procedure to register a package with its
3097         attributes.
3098         New attribute oriented subprograms: Attribute_Node_Id_Of,
3099         Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
3100         Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
3101         Next_Attribute.
3102         New package oriented subprograms: Package_Node_Id_Of,
3103         Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
3104
3105         * prj-dect.adb (Parse_Attribute_Declaration,
3106         Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
3107
3108         * prj-makr.adb (Make): Parse existing project file before creating
3109         other files. Fail if there was an error during parsing.
3110
3111         * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
3112         new spec of Prj.Attr.
3113
3114         * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
3115         to new spec of Prj.Attr.
3116
3117 2004-07-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3118
3119         * utils2.c: Fix typo in comment.
3120
3121 2004-07-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3122
3123         * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
3124         * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
3125
3126 2004-07-14  Andreas Schwab  <schwab@suse.de>
3127
3128         * trans.c (gnat_init_stmt_group): Remove duplicate definition.
3129
3130 2004-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3131
3132         * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
3133         object type.
3134         (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
3135         TYPE_STUB_DECL.
3136
3137         * misc.c (gnat_types_compatible_p): New function.
3138         (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
3139         (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
3140
3141         * trans.c (gigi): Move processing of main N_Compilation_Unit here.
3142         (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
3143         (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
3144         (mark_visited): Don't mark dummy type.
3145         (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
3146         parameter, we must remove any LJM building from GNU_NAME.
3147         (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
3148         (pos_to_constructor): Use int_const_binop.
3149         (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
3150         PARM_DECL.
3151
3152         * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
3153         (gnat_pushlevel): Set TREE_USE on BLOCK node.
3154         (gnat_install_builtins): Add __builtin_memset.
3155
3156 2004-07-13  Olivier Hainque  <hainque@act-europe.fr>
3157
3158         * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
3159         for a renaming, stabilize the initialization expression if we are at a
3160         local level.  At the local level, uses of the renaming may be performed
3161         by a direct dereference of the initializing expression, and we don't
3162         want possible variables there to be evaluated for every use.
3163
3164         * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
3165         Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
3166         them on the way.  Account for the fact that we may introduce side
3167         effects in the process.
3168
3169 2004-07-13  Richard Henderson  <rth@redhat.com>
3170
3171         * misc.c (default_pass_by_ref): Use pass_by_reference.
3172
3173 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
3174
3175         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
3176         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
3177
3178 2004-07-08  Richard Henderson  <rth@redhat.com>
3179
3180         * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
3181         commentary.
3182
3183 2004-07-06  Vincent Celier  <celier@gnat.com>
3184
3185         * vms_conv.ads: Minor reformatting.
3186         Alphabetical order for enumerated values of type Command_Type, to have
3187         the command in alphabetical order for the usage.
3188
3189         * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
3190         the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
3191
3192         * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
3193
3194         * makegpr.adb (Global_Archive_Exists): New global Boolean variable
3195         (Add_Archive_Path): Only add the global archive if there is one.
3196         (Build_Global_Archive): Set Global_Archive_Exists depending if there is
3197         or not any object file to put in the global archive, and don't build
3198         a global archive if there is none.
3199         (X_Switches): New table
3200         (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
3201         in the X_Switches table, if any.
3202         (Initialize): Make sure the X_Switches table is empty
3203         (Scan_Arg): Record -X switches in table X_Switches
3204
3205         * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
3206
3207         * make.adb: Minor comment fix
3208
3209         * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
3210         invoked with directory information, add the directory in front of the
3211         path.
3212
3213         * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
3214         invoked with directory information, add the directory in front of the
3215         path.
3216
3217         * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
3218         when Keep_Temporary_Files is False.
3219         (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
3220         directory information, add the directory in front of the path.
3221         When not on VMS, handle new switch -dn before the command to set
3222         Keep_Temporary_Files to True.
3223         (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
3224         everywhere.
3225
3226         * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
3227         invoked with directory information, add the directory in front of the
3228         path.
3229
3230 2004-07-06  Thomas Quinot  <quinot@act-europe.fr>
3231
3232         * snames.ads, snames.adb (Name_Stub): New name for the distributed
3233         systems annex.
3234
3235         * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
3236         New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
3237
3238         * g-socket.adb (To_Timeval): Fix incorrect conversion of
3239         Selector_Duration to Timeval for the case of 0.0.
3240
3241         * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
3242         documentation from Evolve_And_Then.
3243
3244 2004-07-06  Jose Ruiz  <ruiz@act-europe.fr>
3245
3246         * s-taprop-tru64.adb, s-taprop-os2.adb,
3247         s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
3248
3249 2004-07-06  Robert Dewar  <dewar@gnat.com>
3250
3251         * s-osinte-hpux.ads, s-osinte-freebsd.ads,
3252         s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
3253         s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
3254         s-interr-sigaction.adb, s-taprop-irix-athread.adb,
3255         s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
3256         s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
3257         s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
3258         s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
3259         a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
3260         a-tags.ads, bindgen.ads, checks.adb, checks.adb,
3261         csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
3262         exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
3263         g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
3264         i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
3265         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
3266         sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
3267         sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
3268         s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
3269         s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
3270         s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
3271         vms_data.ads: Minor reformatting,
3272         Fix bad box comment format.
3273
3274         * gnat_rm.texi: Fix minor grammatical error
3275
3276         * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
3277
3278         * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
3279         more cases of discriminated records to be recognized as not needing a
3280         secondary stack.
3281         (Has_Access_Values): New function.
3282
3283         * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
3284
3285         * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
3286         Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
3287         with LRM terminology).
3288         Change terminology in comments primitive type => elementary type.
3289
3290 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
3291
3292         PR ada/15602
3293         * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
3294         parameters do not impose any requirements on the presence of a body.
3295
3296 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
3297
3298         PR ada/15593
3299         * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
3300         compilation unit and is in an open scope at the point of instantiation,
3301         assume that a body may be present later.
3302
3303 2004-07-06  Ed Schonberg  <schonberg@gnat.com>
3304
3305         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
3306         Improve error message when specified size is not supported.
3307
3308         * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
3309         is never a primitive operation.
3310
3311 2004-07-05  Andreas Schwab  <schwab@suse.de>
3312
3313         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
3314         RECORD_OR_UNION_CHECK.
3315         (TYPE_CONTAINS_TEMPLATE_P): Likewise.
3316
3317 2004-07-04  Kelley Cook  <kcook@gcc.gnu.org>
3318
3319         * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
3320         dependency on xgnatugn, instead build it via a submake.
3321         (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
3322
3323 2004-07-04  Richard Henderson  <rth@redhat.com>
3324
3325         * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
3326
3327 2004-07-01  Richard Henderson  <rth@redhat.com>
3328
3329         * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
3330         * utils.c (max_size): Likewise.
3331
3332 2004-06-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3333
3334         * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
3335         and rest_of_type_compilation; add arg to create_*_decl.
3336         (annotate_decl_with_node): Deleted.
3337         (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
3338         * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
3339         (get_current_block_context, gnat_pushdecl): New declarations.
3340         (gnat_init_stmt_group): Likewise.
3341         (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
3342         * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
3343         (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
3344         (gnat_init): Call gnat_init_stmt_group.
3345         * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
3346         (gnu_pending_elaboration_list): Deleted.
3347         (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
3348         (gigi): Rearrange initialization calls and move some to last above.
3349         (gnat_to_gnu): If statement and not in procedure, go into elab proc.
3350         Delete calls to add_decl_expr; add arg to create_*_decl.
3351         (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
3352         (gnat_to_gnu, case N_Subprogram_Body): Move some code to
3353         begin_subprog_body and call it.
3354         Don't push and pop ggc context.
3355         (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
3356         (add_stmt): Remove handling of DECL_EXPR from here.
3357         If not in function, mark visited.
3358         (add_decl_expr): Put global at top level.
3359         Check for cases of DECL_INITIAL we have to handle here.
3360         (process_type): Add extra arg to create_type_decl.
3361         (build_unit_elab): Rework to just gimplify.
3362         * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
3363         (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
3364         (get_pending_elaborations, pending_elaborations_p): Likewise.
3365         (push_pending_elaborations, pop_pending_elaborations): Likewise.
3366         (get_elaboration_location, insert_elaboration_list): Likewise.
3367         (gnat_binding_level): Renamed from ada_binding_level.
3368         (init_gnat_to_gnu): Don't clear pending_elaborations.
3369         (global_bindings_p): Treat as global if no current_binding_level.
3370         (set_current_block_context): New function.
3371         (gnat_pushdecl): Renamed from pushdecl; major rework.
3372         All callers changed.
3373         (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
3374         (finish_record_type): Call call pushdecl for stub decl.
3375         (function_nesting_depth): Deleted.
3376         (begin_subprog_body): Delete obsolete code.
3377         * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
3378
3379 2004-06-28  Robert Dewar  <dewar@gnat.com>
3380
3381         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3382         mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
3383         mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
3384         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
3385         a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
3386
3387         * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
3388         deal with problem of inefficient slices on machines with strict
3389         alignment, when the slice is a component of a composite.
3390
3391         * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
3392         machines, we need the check there as well.
3393
3394 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
3395
3396         * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
3397         determine safe copying direction for overlapping slice assignments
3398         when component is controlled.
3399
3400         * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
3401         formal derived type in the actual for a formal package are visible in
3402         the enclosing instance.
3403
3404 2004-06-28  Ed Schonberg  <schonberg@gnat.com>
3405
3406         PR ada/15600
3407         * sem_util.adb (Trace_Components): Diagnose properly an illegal
3408         circularity involving a private type whose completion includes a
3409         self-referential component.
3410         (Enter_Name): Use Is_Inherited_Operation to distinguish a source
3411         renaming or an instantiation from an implicit derived operation.
3412
3413 2004-06-28  Pascal Obry  <obry@gnat.com>
3414
3415         * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
3416         DLL.
3417         (Library_File_Name_For): Idem.
3418
3419 2004-06-28  Matthew Gingell  <gingell@gnat.com>
3420
3421         * g-traceb.ads: Add explanatory note on the format of addresses
3422         expected by addr2line.
3423
3424 2004-06-28  Jerome Guitton  <guitton@act-europe.fr>
3425
3426         * Makefile.in: Force debugging information on s-tasdeb.adb,
3427         a-except.adb and s-assert.adb needed by the debugger.
3428
3429 2004-06-28  Vincent Celier  <celier@gnat.com>
3430
3431         * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
3432         Need_To_Build_Lib.
3433         (Gnatmake): Ditto.
3434
3435         * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
3436
3437         * prj.adb: Minor reformatting
3438         (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
3439
3440         * prj.ads: Comment updates
3441         Minor reformatting
3442         (Project_Data): Change Flag1 to Need_To_Build_Lib.
3443         Remove Flag2: not used.
3444
3445         * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
3446         declaration.
3447
3448         * gnat_ugn.texi: Put a "null;" declaration in one project file example
3449
3450         * gnat_rm.texi: Document Empty declarations "null;".
3451
3452         * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
3453         front of the linker options.
3454         (Link_Foreign): Put the global archives and the libraries in front of
3455         the linker options.
3456
3457 2004-06-28  Javier Miranda  <miranda@gnat.com>
3458
3459         * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
3460         (RTU_Loaded): Code cleanup
3461         (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
3462         withed predefined units.
3463
3464         * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
3465         explicitly withed predefined units.
3466         Fix typo in comment
3467
3468         * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
3469         explicitly withed predefined units.
3470
3471 2004-06-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3472
3473         * ada-tree.def (DECL_STMT): Deleted.
3474         * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
3475         (DECL_STMT_VAR): Deleted.
3476         * decl.c: add_decl_stmt now add_decl_expr.
3477         * gigi.h: Likewise.
3478         * trans.c: Likewise.
3479         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3480         (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
3481         (add_stmt): Only handle padded type here.
3482         (add_stmt_with_node): Allow gnat_node to not be present.
3483         (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
3484         (gnat_gimplify_stmt, case DECL_STMT): Deleted.
3485         (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
3486         make a SAVE_EXPR for the entire fat pointer.
3487         * utils.c (pushdecl): Walk a DECL_EXPR in global case.
3488         (create_index_type): Make a DECL_EXPR.
3489         (end_subprog_body): Don't call allocate_struct_function here but
3490         do clear cfun.
3491
3492 2004-06-25  Pascal Obry  <obry@gnat.com>
3493
3494         * makegpr.adb (Build_Library): Remove parameter Lib_Address and
3495         Relocatable from Build_Dynamic_Library call.
3496
3497         * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
3498         Relocatable are now synonym.
3499
3500         * Makefile.in: Use s-parame-mingw.adb on MingW platform.
3501
3502         * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
3503         Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
3504         call.
3505
3506         * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
3507         Lib_Address and Relocatable.
3508         (Default_DLL_Address): Removed.
3509
3510         * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
3511         mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
3512         mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
3513         (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
3514         (Default_DLL_Address): Removed.
3515
3516         * mlib-tgt-mingw.adb: Ditto.
3517         (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
3518
3519         * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
3520         the initial thread stack size.
3521
3522         * a-strmap.ads: Move package L to private part as it is not used in
3523         the spec. Found while reading code.
3524
3525 2004-06-25  Olivier Hainque  <hainque@act-europe.fr>
3526
3527         * tracebak.c: Introduce support for a GCC infrastructure based
3528         implementation of __gnat_backtrace.
3529
3530         * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
3531         any more. Use accessors instead. This eases maintenance and relaxes
3532         some alignment constraints.
3533         (_GNAT_Exception structure): Remove the Ada specific fields
3534         (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
3535         a-exexpr.adb.
3536         (is_handled_by, __gnat_eh_personality): Replace component references to
3537         exception structure by use of the new accessors.
3538
3539         * init.c (__gnat_initialize): Adjust comments to match the just
3540         reverted meaning of the -static link-time option.
3541
3542         * adaint.c (convert_addresses): Arrange not to define a stub for
3543         mips-irix any more, as we now want to rely on a real version from a
3544         recent libaddr2line.
3545
3546         * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
3547         the personality routine can use them and not have to rely on a C
3548         counterpart of the record anymore. This simplifies maintenance and
3549         relaxes the constraint of having Standard'Maximum_Alignment match
3550         BIGGEST_ALIGNMENT.
3551         Update comments, and add a section on the common header alignment issue.
3552
3553 2004-06-25  Geert Bosch  <bosch@gnat.com>
3554
3555         * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
3556         polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
3557
3558 2004-06-25  Robert Dewar  <dewar@gnat.com>
3559
3560         * gnat_rm.texi: Fix section on component clauses to indicate that the
3561         restriction on byte boundary placement still applies for bit packed
3562         arrays.
3563         Add comment on stack usage from Initialize_Scalars
3564
3565         * gnat_ugn.texi: Add documentation for -gnatyLnnn
3566
3567         * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
3568         limiting nesting level.
3569
3570         * usage.adb: Add line for -gnatyLnnn switch
3571
3572         * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
3573         sem_ch13.adb, exp_aggr.adb: Minor reformatting
3574
3575         * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
3576         type as well as on the subtype. This corrects a problem in freeze in
3577         setting alignments of atomic types.
3578
3579         * sem_eval.ads: Minor comment typo fixed
3580
3581         * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
3582         level.  Minor reformatting.
3583
3584         * fname.adb (Is_Predefined_File_Name): Require a letter after the
3585         minus sign. This means that file names like a--b.adb will not be
3586         considered predefined.
3587
3588         * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
3589         record Test new flag and give diagnostic for bad component clause.
3590         (Freeze_Entity): Set alignment of array from component alignment in
3591         cases where this is safe to do.
3592
3593         * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
3594         arrays.
3595
3596         * cstand.adb: (Create_Standard): Set alignment of String to 1
3597
3598         * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
3599
3600         * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
3601         code in the common constrained array cases.
3602
3603         * a-storio.adb: Change implementation to avoid possible alignment
3604         problems on machines requiring strict alignment (data should be moved
3605         as type Buffer, not type Elmt).
3606
3607         * checks.adb (Apply_Array_Size_Check): Improve these checks by
3608         killing the overflow checks which we really do not need (64-bits is
3609         enough).
3610
3611 2004-06-25  Vincent Celier  <celier@gnat.com>
3612
3613         * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
3614         (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
3615         inconditionally for the main project.
3616         (Recursive_Add_Archives.Add_Archive_Path): New procedure
3617         (Link_Executables.Check_Time_Stamps): New procedure
3618         (Link_Executables.Link_Foreign): New procedure
3619         Changes made to reduce nesting level of this package
3620         (Check): New procedure
3621         (Add_Switches): When not in quiet output, check that a switch is not
3622         the concatenation of several valid switches. If it is, issue a warning.
3623         (Build_Global_Archive): If the global archive is rebuilt, linking need
3624         to be done.
3625         (Compile_Sources): Rebuilding a library archive does not imply
3626         rebuilding the global archive.
3627         (Build_Global_Archive): New procedure
3628         (Build_Library): New name for Build_Archive, now only for library
3629         project
3630         (Check_Archive_Builder): New procedure
3631         (Create_Global_Archive_Dependency_File): New procedure
3632         (Gprmake): Call Build_Global_Archive before linking
3633         * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
3634         throughout.
3635         (Scan_Arg): Display the Copyright notice when -v is used
3636
3637         * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
3638         for gnatls.
3639
3640         * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
3641         COMPILE.
3642         Add new GNAT LIST qualifier /FILES=
3643         Added qualifier /DIRECTORY= to GNAT METRIC
3644         Added qualifier /FILES= to GNAT METRIC
3645         Added qualifier /FILES to GNAT PRETTY
3646
3647         * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
3648         to take into account both versions of the switch.
3649
3650         * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
3651         always be the last switch to the gcc driver. Disable switch storing so
3652         that switches automatically added by the gcc driver are not put in the
3653         ALI file.
3654
3655         * prj.adb (Project_Empty): Take into account changes in components of
3656         Project_Data.
3657
3658         * prj.ads (Languages_Processed): New enumaration value All_Languages.
3659
3660         * prj.ads (Project_Data): Remove component Lib_Elaboration: never
3661         used. Split Boolean component Ada_Sources_Present in two Boolean
3662         components Ada_Sources_Present and Other_Sources_Present.
3663         Minor reformatting
3664
3665         * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
3666         instead of Sources_Present.
3667         (Set_Ada_Paths.Add.Recursive_Add): Ditto
3668
3669         * prj-nmsc.adb: Minor reformatting
3670         (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
3671         (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
3672         Check_Ada_Naming_Scheme.
3673         Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
3674         throughout.
3675
3676         * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
3677         In_Limited.
3678         Make sure that all cycles where there is at least one "limited with"
3679         are detected.
3680         (Parse_Single_Project): New Boolean parameter In_Limited
3681
3682         * prj-proc.adb (Recursive_Check): When Process_Languages is
3683         All_Languages, call first Prj.Nmsc.Ada_Check, then
3684         Prj.Nmsc.Other_Languages_Check.
3685
3686         * prj-proc.adb (Process): Use Ada_Sources_Present or
3687         Other_Sources_Present (instead of Sources_Present) depending on
3688         Process_Languages.
3689
3690         * lang-specs.h: Keep -g and -m switches in the same order, and as the
3691         last switches.
3692
3693         * lib.adb (Switch_Storing_Enabled): New global Boolean flag
3694         (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
3695         False.
3696         (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
3697         False.
3698
3699         * lib.ads (Disable_Switch_Storing): New procedure.
3700
3701         * make.adb: Modifications to reduce nesting level of this package.
3702         (Check_Standard_Library): New procedure
3703         (Gnatmake.Check_Mains): New procedure
3704         (Gnatmake.Create_Binder_Mapping_File): New procedure
3705         (Compile_Sources.Compile): Add switch -gnatez as the last option
3706         (Display): Never display -gnatez
3707
3708         * Makefile.generic:
3709         When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
3710
3711         * gnatcmd.adb (Check_Project): New function
3712         (Process_Link): New procedure to reduce nesting depth
3713         (Check_Files): New procedure to reduce the nesting depth.
3714         For GNAT METRIC, include the inherited sources in extending projects.
3715         (GNATCmd): When GNAT LS is invoked with a project file and no files,
3716         add the list of files from the sources of the project file. If this list
3717         is too long, put it in a temp text files and use switch -files=
3718         (Delete_Temp_Config_Files): Delete the temp text file that contains
3719         a list of source for gnatpp or gnatmetric, if one has been created.
3720         (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
3721         in the project file is too large, create a temporary text file that
3722         list them and pass it to the tool with "-files=<temp text file>".
3723         (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
3724
3725         * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
3726         generated file is in not in Ada.
3727
3728         * gnatls.adb: Remove all parameters And_Save that are no longer used.
3729         (Scan_Ls_Arg): Add processing for -files=
3730         (Usage): Add line for -files=
3731
3732         * g-os_lib.adb (On_Windows): New global constant Boolean flag
3733         (Normalize_Pathname): When on Windows and the path starts with a
3734         directory separator, make sure that the resulting path will start with
3735         a drive letter.
3736
3737         * clean.adb (Clean_Archive): New procedure
3738         (Clean_Project): When there is non-Ada code, delete the global archive,
3739         the archive dependency files, the object files and their dependency
3740         files, if they exist.
3741         (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
3742
3743 2004-06-25  Thomas Quinot  <quinot@act-europe.fr>
3744
3745         * sinfo.ads: Fix typo in comment.
3746
3747         * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
3748         the TSS for remote access-to-subprogram types, since these TSS are
3749         always present once the type has been analyzed.
3750         (RAS_E_Dereference): Same.
3751
3752         * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
3753         reference raises Bad_Attribute, mark the reference as analyzed so the
3754         node (and any children resulting from rewrites that could have occurred
3755         during the analysis that ultimately failed) is not analyzed again.
3756
3757         * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
3758
3759         * exp_dist.adb: Minor comment fix.
3760
3761         * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
3762         type is an anonymous access type, no unchecked deallocation of the
3763         allocated object can occur. If the object is controlled, attach it with
3764         a count of 1. This allows attachment to the Global_Final_List, if
3765         no other relevant list is available.
3766         (Get_Allocator_Final_List): For an anonymous access type that is
3767         the type of a discriminant or record component, the corresponding
3768         finalisation list is the one of the scope of the type.
3769
3770 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
3771
3772         * sem_ch3.adb (Replace_Type): When computing the signature of an
3773         inherited subprogram, use the first subtype if the derived type
3774         declaration has no constraint.
3775
3776         * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
3777         before applying previous optimization. Minor code cleanup.
3778
3779         * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
3780         placed at the beginning of an unpacked record without explicit
3781         alignment, a slice of it will be aligned and does not need a copy when
3782         used as an actual.
3783
3784 2004-06-25  Ed Schonberg  <schonberg@gnat.com>
3785
3786         PR ada/15591
3787         PR ada/15592
3788         * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
3789         reference is written with expressions mimicking parameters.
3790
3791 2004-06-25  Hristian Kirtchev  <kirtchev@gnat.com>
3792
3793         PR ada/15589
3794         * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
3795         STEP 2a. The constraints of a full type declaration of a derived record
3796         type are checked for conformance with those declared in the
3797         corresponding private extension declaration. The message
3798         "not conformant with previous declaration" is emitted if an error is
3799         detected.
3800
3801 2004-06-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
3802
3803         * g-traceb.ads: Document the need for -E binder switch in the spec.
3804
3805         * g-trasym.ads: Document the need for -E binder switch in the spec.
3806
3807 2004-06-25  Jose Ruiz  <ruiz@act-europe.fr>
3808
3809         * sem_prag.adb: Add handling of pragma Detect_Blocking.
3810
3811         * snames.h, snames.ads, snames.adb: Add entry for pragma
3812         Detect_Blocking.
3813
3814         * s-rident.ads: Change reference to pragma Detect_Blocking.
3815
3816         * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
3817         system.ads.
3818
3819         * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
3820         to indicate whether pragma Detect_Blocking is active.
3821
3822         * par-prag.adb: Add entry for pragma Detect_Blocking.
3823
3824         * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
3825         of not handling WITH.
3826         Note that this replaces the previous update which was incorrect.
3827
3828 2004-06-25  Javier Miranda  <miranda@gnat.com>
3829
3830         * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
3831         use-clauses to have a clean environment.
3832
3833         * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
3834         the installation of the use-clauses to stablish a clean environment in
3835         case of compilation of a separate unit; otherwise the call to
3836         use_one_package is protected by the barrier Applicable_Use.
3837
3838         * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
3839         the installation of the use-clauses to stablish a clean environment in
3840         case of compilation of a separate unit.
3841         (End_Use_Clauses): Minor comment cleanup.
3842
3843 2004-06-25  Sergey Rybin  <rybin@act-europe.fr>
3844
3845         * gnat_ugn.texi: Add description of the gnatpp 'files' switch
3846
3847 2004-06-23  Richard Henderson  <rth@redhat.com>
3848
3849         * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
3850
3851 2004-06-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3852
3853         * decl.c (elaborate_expression, elaborate_expression_1): Arguments
3854         now bool instead of int.
3855         (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
3856         * trans.c (gnu_switch_label_stack): New function.
3857         (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
3858         elaboration of renamed entity returns.
3859         (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
3860         (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
3861         (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
3862         (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
3863         DECL_SIZE_UNIT and simplify variable-sized case.
3864         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
3865         Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
3866         (gnat_stabilize_reference): Add arg to COMPONENT_REF.
3867         (build_unit_elab): Disable for now.
3868         * utils.c (mark_visited): New function.
3869         (pushdecl): Walk tree to call it for global decl.
3870         (update_pointer_to): Update all variants of pointer and ref types.
3871         Add arg to COMPONENT_REF.
3872         (convert): Likewise.
3873         Move check for converting between variants lower down.
3874         * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
3875         (build_allocator): Don't force type of MODIFY_EXPR.
3876         (gnat_mark_addressable, case VAR_DECL): Unconditionally call
3877         put_var_into_stack.
3878
3879 2004-06-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3880
3881         * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
3882         * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
3883         * decl.c (gnat_to_gnu_entity): Also set force_global for imported
3884         subprograms.
3885         * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
3886         all callers changed.
3887         (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
3888         the way that EXIT_STMT finds the loop label.
3889         (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
3890         (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
3891         (add_stmt): Use annotate_with_locus insted of setting directly.
3892         (pos_to_construct): Set TREE_PURPOSE of each entry to index.
3893         (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
3894         * utils.c (gnat_install_builtins): Install __builtin_memcmp.
3895         (build_vms_descriptor): Add extra args to ARRAY_REF.
3896         (convert): Use VIEW_CONVERT_EXPR between aggregate types.
3897         * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
3898         New cases.
3899         (build_binary_op): Don't make explicit CONVERT_EXPR.
3900         Add extra rgs to ARRAY_REF.
3901
3902 2004-06-14  Pascal Obry  <obry@gnat.com>
3903
3904         * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
3905         Windows.  Fix minor typo.
3906
3907         * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
3908         which is now supported on Windows. With this implementation using the
3909         Library Project feature is no different on Windows than on UNIX.
3910
3911 2004-06-14  Vincent Celier  <celier@gnat.com>
3912
3913         * makegpr.adb (Compile_Sources): Nothing to do when there are no
3914         non-Ada sources.
3915
3916         * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
3917
3918         * prj-part.adb (Parse_Single_Project): When a duplicate project name is
3919         found, show the project name and the path of the previously parsed
3920         project file.
3921
3922 2004-06-14  Ed Schonberg  <schonberg@gnat.com>
3923
3924         * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
3925         array, avoid copying the actual before the call.
3926
3927 2004-06-14  Thomas Quinot  <quinot@act-europe.fr>
3928
3929         * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
3930         Instead, allocate memory on worst-case alignment assumptions, and then
3931         return an aligned address within the allocated zone.
3932
3933 2004-06-14  Robert Dewar  <dewar@gnat.com>
3934
3935         * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
3936         elab entities in predefined units in No_Run_Time_Mode.
3937         (Gen_Adainit_C): Same fix
3938         (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
3939         units in No_Run_Time_Mode
3940         (Gen_Elab_Calls_C): Same fix
3941
3942         * symbols-vms-alpha.adb: Minor reformatting
3943
3944         * g-debpoo.ads: Minor reformatting
3945
3946         * lib.adb (In_Same_Extended_Unit): Version working on node id's
3947
3948         * lib.ads (In_Same_Extended_Unit): Version working on node id's
3949
3950         * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
3951         working on nodes.
3952
3953         * make.adb: Minor reformatting
3954
3955         * par-ch12.adb: Minor reformatting
3956
3957         * par-prag.adb: Add dummy entry for pragma Profile_Warnings
3958
3959         * prj-strt.adb: Minor reformatting
3960
3961         * restrict.ads, restrict.adb: Redo handling of profile restrictions to
3962         be more general.
3963
3964         * sem_attr.adb: Minor reformatting
3965
3966         * sem_ch7.adb: Minor reformatting
3967
3968         * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
3969         for type in the same unit as the object declaration.
3970
3971         * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
3972         static string expressions and not just string literals.
3973         Minor reformatting
3974         (Set_Warning): Reset restriction warning flag for restriction pragma
3975         Implement pragma Profile_Warnings
3976         Implement pragma Profile (Restricted)
3977         Give obolescent messages for old restrictions and pragmas
3978
3979         * snames.h, snames.ads, snames.adb: Add new entry for pragma
3980         Profile_Warnings.
3981
3982         * s-rident.ads: Add declarations for restrictions required by profile
3983         Restricted and profile Ravenscar.
3984
3985         * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
3986
3987         * gnat_ugn.texi: Correct some missing entries in the list of GNAT
3988         configuration pragmas.
3989
3990 2004-06-11  Vincent Celier  <celier@gnat.com>
3991
3992         * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
3993         gnatsym, when symbol policy is Restricted.
3994
3995         * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
3996         gnatsym, when symbol policy is Restricted.
3997
3998         * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
3999         read the symbol file.
4000         (Finalize): Fail in symbol policy Restricted if a symbol in the original
4001         symbol file is not in the object files. Do not create a new symbol file
4002         when symbol policy is Restricted.
4003
4004         * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
4005         in Scng.
4006
4007         * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
4008         Restricted.
4009         (Usage): Line for new switch -R
4010
4011         * make.adb (Initialize): When the platform is not VMS, add the
4012         directory where gnatmake is invoked in the front of the path, if
4013         gnatmake is invoked with directory information.  Change the Scan_Args
4014         while loop to a for loop.
4015         (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
4016         if Depth is equal or greater than the proposed depth, there is nothing
4017         to do.
4018         (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
4019         instead of 0.
4020
4021         * prj.ads: Add new symbol policy Restricted.
4022
4023         * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
4024         with the new parameters Check_All_Labels and Case_Location.
4025
4026         * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
4027         (Library_Symbol_File needs to be defined).
4028
4029         * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
4030         and Case_Location If Check_All_Labels is True, check that all values of
4031         the string type are used, and output warning(s) if they are not.
4032
4033         * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
4034         and Case_Location.
4035
4036         * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
4037
4038         * gnat_ugn.texi: Update documentation about the library directory in
4039         Library Projects.
4040
4041         * makegpr.adb (Display_Command): In verbose mode, also display the
4042         value of the CPATH env var, when the compiler is gcc.
4043         (Initialize): Change the Scan_Args while loop to a for loop
4044         (Compile_Individual_Sources): Change directory to object directory
4045         before compilations.
4046
4047         * symbols.ads: New symbol policy Restricted.
4048
4049 2004-06-11  Olivier Hainque  <hainque@act-europe.fr>
4050
4051         * a-except.adb (Raise_After_Setup family): Remove. The responsibility
4052         is now taken care of internally in the Exception_Propagation package
4053         and does not require clients assistance any more.
4054
4055         * a-exexpr.adb (Is_Setup_And_Not_Propagated,
4056         Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
4057         functions. Helpers to maintain a predicate required in the handling of
4058         occurrence transfer between tasks.
4059         This is now handled internally and does not require clients assistance
4060         for the setup/propagate separation anymore.
4061         (Setup_Exception, Propagate_Exception): Simplify the Private_Data
4062         allocation strategy, handle the Setup_And_Not_Propagated predicate and
4063         document.
4064
4065         * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
4066         raise_after_setup, now that everything is handled internally within the
4067         setup/propagation engine.
4068
4069 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
4070
4071         * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
4072         Add additional conditions for the case of an actual being a simple
4073         name or literal. Improve inlining by preventing the generation
4074         of temporaries with a short lifetime (one use).
4075
4076 2004-06-11  Hristian Kirtchev  <kirtchev@gnat.com>
4077
4078         PR ada/15587
4079
4080         * einfo.ads: Minor comment updates for Has_Completion and
4081         E_Constant list of flags.
4082
4083         * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
4084         and constant redeclarations now set the Has_Completion flag of their
4085         defining identifiers.
4086
4087         * sem_ch7.adb (Analyze_Package_Spec): Add procedure
4088         Inspect_Deferred_Constant_Completion.
4089         Used to detect private deferred constants that have not been completed
4090         either by a constant redeclaration or pragma Import. Emits error message
4091         "constant declaration requires initialization expression".
4092
4093         * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
4094         completes a deferred constant.
4095
4096 2004-06-11  Geert Bosch  <bosch@gnat.com>
4097
4098         * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
4099
4100         * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
4101         calculating exponent for scaling denormal numbers.
4102         (Leading_Part): Properly raise Constraint_Error for zero or negative
4103         Adjustment.
4104         (Remainder): Properly raise Constraint_Error for zero divisor.
4105
4106 2004-06-11  Thomas Quinot  <quinot@act-europe.fr>
4107
4108         * sem_util.adb: Minor reformatting.
4109
4110         * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
4111         dereference when accessing the entry parameter record.
4112         (Check_Array_Type): Always check for possible implicit dereference.
4113         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
4114         Abort if a pointer is still present (denoting that an implicit
4115         dereference was left in the tree by the front-end).
4116
4117         * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
4118         dereference when accessing the entry parameter record.
4119         (Check_Array_Type): Always check for possible implicit dereference.
4120         (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
4121         Abort if a pointer is still present (denoting that an implicit
4122         dereference was left in the tree by the front-end).
4123
4124 2004-06-11  Emmanuel Briot  <briot@act-europe.fr>
4125
4126         * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
4127         message, like the compiler itself does. Easier to parse the output.
4128
4129         * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
4130
4131         * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
4132         be base names, and not includes directories.
4133
4134 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
4135
4136         * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
4137         so that dependencies are properly taken into account by make.
4138
4139 2004-06-11  Arnaud Charlet  <charlet@act-europe.fr>
4140
4141         PR ada/15622
4142         * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
4143         exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
4144
4145 2004-06-11  Jerome Guitton  <guitton@act-europe.fr>
4146
4147         * Makefile.in (install-gnatlib): install target-specific run-time files.
4148
4149         * Make-lang.in: Remove obsolete targets.
4150
4151 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
4152
4153         * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
4154         specification, to catch misuses of program unit names.
4155
4156         * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
4157         superfluous conversions in an instance.
4158
4159 2004-06-11  Ed Schonberg  <schonberg@gnat.com>
4160
4161         PR ada/15403
4162
4163         * sem_ch12.adb (Save_References): If operator node has been folded to
4164         enumeration literal, associated_node must be discarded.
4165
4166 2004-06-11  Jose Ruiz  <ruiz@act-europe.fr>
4167
4168         * s-stchop-vxworks.adb: Add required pragma Convention to
4169         Task_Descriptor because it is updated by a C function.
4170
4171 2004-06-08  Arnaud Charlet  <charlet@act-europe.fr>
4172
4173         PR ada/15568
4174
4175         * Makefile.in: Remove target specific SO_OPT on IRIX
4176
4177 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4178
4179         * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
4180         (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
4181         (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
4182         (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
4183         (STMT_STMT, USE_STMT): New statement codes.
4184         (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
4185         * ada-tree.h: Reflect above changes.
4186         (struct tree_loop_id): Deleted.
4187         (union lang_tree_node, struct lang_decl, struct lang_type):
4188         Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
4189         and DECL_LANGUAGE_SPECIFIC to reflect these changes.
4190         (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
4191         (IS_ADA_STMT): New macro.
4192         * decl.c (annotate_decl_with_node): New function.
4193         (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
4194         (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
4195         Call add_stmt_with_node to do needed assignments.
4196         Add call to update setjmp buffer directly, not via EXPR_STMT.
4197         (maybe_variable): Argment GNAT_NODE deleted.
4198         * gigi.h (maybe_variable): Likewise.
4199         (make_transform, add_stmt_with_node, set_block_for_group): New.
4200         (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
4201         (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
4202         (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
4203         (set_lineno, set_lineno_from_sloc): Likewise.
4204         (record_code_position, insert_code_for): Likewise.
4205         (gnat_poplevel): Now returns void.
4206         (end_subprog_body): Now takes argument.
4207         * misc.c (cgraph.h, tree-inline.h): New includes.
4208         (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
4209         (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
4210         (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
4211         (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
4212         (gnat_parse_file): Don't set immediate_size_expand.
4213         Call cgraph functions.
4214         (gnat_expand_expr): Remove most cases.
4215         (record_code_position, insert_code_for): Remove from here.
4216         * trans.c (toplev.h, tree-gimple.h): Now included.
4217         (discard_file_names): Deleted.
4218         (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
4219         (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
4220         (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
4221         (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
4222         (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
4223         (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
4224         (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
4225         (set_block_for_group, add_stmt_list): Likewise.
4226         (start_stmt_group): Renamed from start_block_stmt.
4227         (end_stmt_group): Likewise, from end_block_stmt.
4228         (build_stmt_group): Likewise, from build_block_stmt, also add arg.
4229         (gigi): Don't set discard_file_names or call set_lineno.
4230         Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
4231         (tree_transform): Deleted, now renamed to be gnat_to_gnu.
4232         Numerous changes throughout to reflect new names and complete
4233         function-at-a-time implementation.
4234         (gnat_expand_stmt): Delete or comment out all cases.
4235         (process_inlined_subprograms): Use add_stmt.
4236         (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
4237         call set_lineno; also remove unneeded block handling.
4238         (process_type): Remove unneeded block handling.
4239         (build_unit_elab): Remove calls to deleted functions.
4240         * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
4241         (tree-dump.h): Likewise.
4242         (struct ada_binding_level): Add field jmpbuf_decl.
4243         (gnat_define_builtin, gnat_install_builtins): New.
4244         (gnat_gimplify_function, gnat_finalize): Likewise.
4245         (gnat_poplevel): No longer return BLOCK, set it instead.
4246         Remove code dealing with nested functions.
4247         (gnat_init_decl_processing): Also set size_type_node.
4248         Call gnat_install_builtins.
4249         (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
4250         (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
4251         Remove special-case for "main".
4252         (end_subprog_body): Add arg and rework for tree-ssa.
4253         (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
4254         Add case for BOOLEAN_TYPE.
4255         * utils2.c (rtl.h): Now include.
4256         (build_call_raise): Test Debug_Flag_NN directly.
4257         (build_call_alloc_dealloc): Don't use local stack allocation for now.
4258         (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
4259         (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
4260
4261 2004-06-07  Robert Dewar  <dewar@gnat.com>
4262
4263         * a-direct.ads, einfo.ads: Minor comment updates
4264
4265         * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
4266         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
4267         s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
4268         s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
4269         s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
4270
4271         * s-interr-sigaction.adb: Remove unreferenced variable
4272         (Attached_Interrupts).  Minor reformatting.
4273         Avoid use of variable I (replace by J).
4274
4275         * par-ch10.adb: Fix text of one error message
4276
4277         * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
4278         exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
4279         exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
4280         opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
4281         par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
4282         par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
4283         sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
4284         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4285         sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
4286         sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
4287         snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
4288         2005 support.
4289
4290 2004-06-07  Doug Rupp  <rupp@gnat.com>
4291
4292         * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
4293
4294         * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
4295
4296         * mlib-tgt-vms-ia64.adb: New file.
4297
4298         * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
4299         Add mlib-tgt-vms-ia64.adb
4300         Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
4301         Move to alpha specific ifeq section.
4302         Add VMS specific versions of symbols.adb
4303         Renaming of 5q vms files.
4304
4305         * 5qsystem.ads renamed to system-vms_64.ads.
4306
4307 2004-06-07  Vincent Celier  <celier@gnat.com>
4308
4309         * a-calend.ads: Add a GNAT Note comment after function Time_Of to
4310         explain that when a time of day corresponding to the non existing hour
4311         on the day switching to DST is specified, Split may return a different
4312         value for Seconds.
4313
4314         * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
4315         to GNAT PRETTY.
4316
4317         * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
4318         (Normalize_Pathname): Only resolve VMS logical names when on VMS.
4319
4320         * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
4321         to False.
4322         If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
4323         the linking options.
4324         (Build_Library.Check_Libs): On VMS, if there is a dependency on
4325         g-trasym.ads, set Gtrasymobj_Needed to True.
4326
4327         * prj-attr.adb: Add new package Metrics for gnatmetric
4328
4329         * prj-nmsc.adb (Record_Other_Sources): Put source file names in
4330         canonical case to take into account files with upper case characters on
4331         Windows.
4332         (Ada_Check): Load the reference symbol file name in the name buffer to
4333         check it, not the symbol file name.
4334
4335         * snames.ads, snames.adb: Add standard name Metrics (name of project
4336         file package for gnatmetric).
4337
4338         * vms_conv.ads: Add Metric to Comment_Type
4339
4340         * vms_conv.adb (Initialize): Add component dor Metric in Command_List
4341
4342         * vms_data.ads: Add qualifiers for GNAT METRIC
4343
4344         * makegpr.adb (Link_Executables): Take into account the switches
4345         specified in package Linker of the main project.
4346
4347 2004-06-07  Thomas Quinot  <quinot@act-europe.fr>
4348
4349         * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
4350         the index of the last element is Units.Last, not Units.Table'Last
4351         (which is usually not a valid index within the actually allocated
4352         storage for the table).
4353
4354         * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
4355         determines whether to generate a call to a checked storage pool
4356         Dereference action.
4357         Generate such a call only for a dereference that either comes from
4358         source, or is the result of rewriting a dereference that comes from
4359         source.
4360
4361 2004-06-07  Romain Berrendonner  <berrendo@act-europe.fr>
4362
4363         * bindgen.adb (Gen_Output_File): Add support for GAP builds.
4364
4365 2004-06-07  Eric Botcazou  <ebotcazou@act-europe.fr>
4366
4367         (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
4368         file level, elaborate the stride for inner dimensions in alignment
4369         units, not bytes.
4370
4371         * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
4372         in a comment.
4373
4374 2004-06-07  Javier Miranda  <miranda@gnat.com>
4375
4376         * exp_ch6.adb: Correct wrong modification in previous patch
4377
4378 2004-06-07  Vasiliy Fofanov  <fofanov@act-europe.fr>
4379
4380         * g-trasym.ads: Corrected comment to properly reflect level of support
4381         on VMS.
4382
4383 2004-06-07  Hristian Kirtchev  <kirtchev@gnat.com>
4384
4385         * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
4386         includes case of a variable referenced on the left hand side of an
4387         assignment, therefore remove redundant code. Variables and prefixes of
4388         indexed or selected components are now marked as referenced on left
4389         hand side. Warnings are now properly emitted when variables or prefixes
4390         are assigned but not read.
4391
4392         * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
4393         left hand side referenced variables. Private access types do not
4394         produce the warning "variable ... is assigned but never read".
4395         Add also additional checks to left hand side referenced variables.
4396         Aliased, renamed objects and access types do not produce the warning
4397         "variable ... is assigned but never read" since other entities may read
4398         the memory location.
4399
4400 2004-06-07  Jerome Guitton  <guitton@act-europe.fr>
4401
4402         * Makefile.in: In the powerpc/vxworks-specific section, restore
4403         EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
4404         by mistake).
4405
4406 2004-06-07  Ed Schonberg  <schonberg@gnat.com>
4407
4408         * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
4409         predefined operators.
4410         Removes spurious type errors from g-trasym-vms.adb.
4411
4412         * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
4413         distinct from the operator appearing in the source, call appropriate
4414         routine to insert conversions when needed, and complete resolution of
4415         node.
4416         (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
4417         interpretations for rewritten right operand.
4418         (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
4419         the other operand is overloaded and the context is a type conversion.
4420
4421 2004-06-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4422
4423         * ada-tree.def (BLOCK_STMT): Now has two operands.
4424         (BREAK_STMT): New.
4425
4426         * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
4427
4428         * gigi.h: (gnat_poplevel): Now returns a tree.
4429
4430         * trans.c (end_block_stmt): Add arg; all callers changed.
4431         (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
4432         (start_block_stmt): Clear BLOCK_STMT_BLOCK.
4433         (add_stmt): Set TREE_TYPE.
4434         (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
4435         (gnat_expand_stmt, case BREAK_STMT): New case.
4436
4437         * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
4438
4439 2004-06-07  Jose Ruiz  <ruiz@act-europe.fr>
4440
4441         * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
4442         procedure Set_Stack_Size that is not needed.
4443
4444 2004-06-07  Sergey Rybin  <rybin@act-europe.fr>
4445
4446         * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
4447         used for gnatpp input file and for the files upon which it depends
4448
4449 2004-06-07  Ben Brosgol  <brosgol@gnat.com>
4450
4451         * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
4452
4453 2004-06-07  Arnaud Charlet  <charlet@act-europe.fr>
4454
4455         * gnatvsn.ads: Bump version numbers appropriately.
4456         Add new build type.
4457
4458 2004-06-07  Pascal Obry  <obry@gnat.com>
4459
4460         * gnat_ugn.texi: Improve comments about imported names and link names
4461         on Windows. Add a note about the requirement to use -k gnatdll's option
4462         when working with a DLL which has stripped stdcall symbols (no @nn
4463         suffix).
4464
4465 2004-05-27  Vincent Celier  <celier@gnat.com>
4466
4467         * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
4468         COMMENTS_LAYOUT=UNTOUCHED
4469
4470         * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
4471         symbols-vms-alpha.adb
4472
4473 2004-05-27  Thomas Quinot  <quinot@act-europe.fr>
4474
4475         * sem.ads: Clarify documentation on checks suppression.
4476
4477         * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
4478
4479 2004-05-27  Ed Schonberg  <schonberg@gnat.com>
4480
4481         * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
4482         the case of multiple derivations.
4483         (Is_Object_Reference): For a selected component, verify that the prefix
4484         is itself an object and not a value.
4485
4486         * sem_ch12.adb (Same_Instantiated_Constant): New name for
4487         Same_Instantiated_Entity.
4488         (Same_Instantiated_Variable): Subsidiary to
4489         Check_Formal_Package_Instance, to recognize actuals for in-out generic
4490         formals that are obtained from a previous formal package.
4491         (Instantiate_Subprogram_Body): Emit proper error when
4492         generating code and the proper body of a stub is missing.
4493
4494         * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
4495         has a universal interpretation, do the disambiguation here.
4496
4497         * exp_ch4.adb (Expand_N_Type_Conversion,
4498         Expand_N_Unchecked_Type_Conversion): Special handling when target type
4499         is Address, to avoid typing anomalies when Address is a visible integer
4500         type.
4501
4502         * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
4503         to determine whether a subprogram should not be marked Pure, even when
4504         declared in a pure package.
4505
4506 2004-05-27  Jose Ruiz  <ruiz@act-europe.fr>
4507
4508         * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
4509
4510         * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
4511         Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
4512         Update the documentation about the Ravenscar profile, following the
4513         definition found in AI-249.
4514
4515         * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
4516         setting the Profile (Ravenscar). This must be done in addition to
4517         setting the required restrictions.
4518
4519         * rtsfind.ads: Add the set of operations defined in package
4520         Ada.Interrupts.
4521
4522         * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
4523         restriction.
4524
4525 2004-05-27  Eric Botcazou  <ebotcazou@act-europe.fr>
4526
4527         lang-specs.h: Always require -c or -S and always redirect to /dev/null
4528         if -gnatc or -gnats is passed.
4529
4530 2004-05-27  Hristian Kirtchev  <kirtchev@gnat.com>
4531
4532         * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
4533         a significant reference. Warnings are now properly emitted when a
4534         discriminated type is not referenced.
4535
4536         * lib-xref.adb (Generate_Reference): A deferred constant completion,
4537         record representation clause or record type discriminant does not
4538         produce a reference to its corresponding entity. Warnings are now
4539         properly emitted when deferred constants and record types are not
4540         referenced.
4541
4542 2004-05-27  Geert Bosch  <bosch@gnat.com>
4543
4544         * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
4545         Fixes ACATS Annex G tests.
4546
4547 2004-05-27  Robert Dewar  <dewar@gnat.com>
4548
4549         * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
4550         handling WITH
4551
4552 2004-05-27  Arnaud Charlet  <charlet@act-europe.fr>
4553
4554         * s-interr.adb (Server_Task): Take into account case of early return
4555         from sigwait under e.g. linux.
4556
4557 2004-05-27  Sergey Rybin  <rybin@act-europe.fr>
4558
4559         * gnat_ugn.texi: Add description for the new gnatpp options:
4560          -rnb - replace the original source without creating its backup copy
4561          -c0 - do not format comments
4562
4563 2004-05-24  Geert Bosch  <bosch@gnat.com>
4564
4565         * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
4566         with 192 bits of precision, sufficient to reduce a double-extended
4567         arguments X with a maximum relative error of T'Machine_Epsilon, for X
4568         in -2.0**32 .. 2.0**32.
4569         (Cos, Sin):  Always reduce arguments of 1/4 Pi or larger, to prevent
4570         reduction by the processor, which only uses a 68-bit approximation of
4571         Pi.
4572         (Tan): Always reduce arguments and compute function either using
4573         the processor's fptan instruction, or by dividing sin and cos as needed.
4574
4575 2004-05-24  Doug Rupp  <rupp@gnat.com>
4576
4577         * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
4578         gcc error on 32/64 bit VMS.
4579
4580 2004-05-24  Olivier Hainque  <hainque@act-europe.fr>
4581
4582         * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
4583         since this is what we get for stack overflows although not documented
4584         as such.
4585         Document the issues which may require adjustments to our signal
4586         handlers.
4587
4588 2004-05-24  Ed Schonberg  <schonberg@gnat.com>
4589
4590         * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
4591         enclosing dynamic scope if the instantiation is within a generic unit.
4592
4593 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
4594
4595         * exp_dbug.ads: Fix typo.
4596
4597         * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
4598         Rename it to its proper name: system-linux-ia64.ads
4599         (stamp-gnatlib1): Remove extra target specific run time files when
4600         setting up the rts directory.
4601
4602 2004-05-24  Javier Miranda  <miranda@gnat.com>
4603
4604         * einfo.ads, einfo.adb (Limited_Views): Removed.
4605         (Limited_View): New attribute that replaces the previous one. It is
4606         now a bona fide package with the limited-view list through the
4607         first_entity and first_private attributes.
4608
4609         * sem_ch10.adb (Install_Private_With_Clauses): Give support to
4610         limited-private-with clause.
4611         (Install_Limited_Withed_Unit): Install the private declarations of a
4612         limited-private-withed package. Update the installation of the shadow
4613         entities according to the new structure (see Build_Limited_Views)
4614         (Build_Limited_Views): Replace the previous implementation of the
4615         limited view by a package entity that references the first shadow
4616         entity plus the first shadow private entity (required for limited-
4617         private-with clause)
4618         (New_Internal_Shadow_Entity): Code cleanup.
4619         (Remove_Limited_With_Clause): Update the implementation to undo the
4620         new work carried out by Build_Limited_Views.
4621         (Build_Chain): Complete documentation.
4622         Replace Ada0Y by Ada 0Y in comments
4623         Minor reformating
4624
4625         * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
4626         types the level of accessibility depends on the enclosing type
4627         declaration.
4628
4629         * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
4630         entities. Complete documentation of previous change.
4631
4632 2004-05-24  Robert Dewar  <dewar@gnat.com>
4633
4634         * namet.adb: Minor reformatting
4635         Avoid use of name I (replace by J)
4636         Minor code restructuring
4637
4638         * sem_ch6.adb: Minor reformatting
4639
4640         * lib-writ.adb: Do not set restriction as active if this is a
4641         Restriction_Warning case.
4642
4643         * sem_prag.adb: Reset restriction warning flag if real pragma
4644         restriction encountered.
4645
4646         * s-htable.adb: Minor reformatting
4647         Change rotate count to 3 in Hash (improves hash for small strings)
4648
4649         * 5qsystem.ads: Add comments for type Address (no literals allowed).
4650
4651         * gnat_ugn.texi: Add new section of documentation "Code Generation
4652         Control", which describes the use of -m switches.
4653
4654 2004-05-24  Eric Botcazou  <ebotcazou@act-europe.fr>
4655
4656         trans.c (tree_transform) <N_Identifier>: Do the dereference directly
4657         through the DECL_INITIAL for renamed variables.
4658
4659 2004-05-24  Arnaud Charlet  <charlet@act-europe.fr>
4660
4661         * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
4662
4663 2004-05-19  Joel Brobecker  <brobecker@gnat.com>
4664
4665         * exp_dbug.ads: Correct comments concerning handling of overloading,
4666         since we no longer use $ anymore.
4667
4668 2004-05-19  Sergey Rybin  <rybin@act-europe.fr>
4669
4670         * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
4671         ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
4672         with illegal subunits.
4673
4674 2004-05-19  Ed Schonberg  <schonberg@gnat.com>
4675
4676         * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
4677         body with front-end inlining enabled, check whether an inline pragma
4678         appears immediately after the body and applies to it.
4679
4680         * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
4681         enabled and the pragma appears after the body of the subprogram.
4682
4683 2004-05-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4684
4685         Part of function-at-a-time conversion
4686
4687         * misc.c (adjust_decl_rtl): Deleted.
4688         (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
4689         Define.
4690
4691         * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
4692         (add_decl_stmt, add_stmt, block_has_vars): New functions.
4693         (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
4694
4695         * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
4696         when making a decl.
4697         (gnat_to_gnu_entity): Likewise.
4698         Use add_stmt to update setjmp buffer.
4699         Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
4700         flush_addressof.
4701         No longer call adjust_decl_rtl.
4702         (DECL_INIT_BY_ASSIGN_P): New macro.
4703         (DECL_STMT_VAR): Likewise.
4704
4705         * trans.c (gigi): Call start_block_stmt to make the outermost
4706         BLOCK_STMT.
4707         (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
4708         Call start_block_stmt and end_block_stmt temporarily.
4709         Use gnat_expand_stmt instead of expand_expr_stmt.
4710         (add_decl_stmt): New function.
4711         (tree_transform): Call it.
4712         (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
4713         (end_block_stmt): Set type and NULL_STMT.
4714         (gnat_expand_stmt): Make recursize call instead of calling
4715         expand_expr_stmt.
4716         (gnat_expand_stmt, case DECL_STMT): New case.
4717         (set_lineno_from_sloc): Do nothing if global.
4718         (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
4719         (start_block_stmt, add_stmt, end_block_stmt): New functions.
4720         (build_block_stmt): Call them.
4721         (gnat_to_code): Don't expand NULL_STMT.
4722         (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
4723         args.
4724         (tree_transform): Likewise.
4725         (tree_transform, case N_Null_Statement): Return NULL_STMT.
4726         (gnat_expand_stmt, case NULL_STMT): New case.
4727         (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
4728         IF_STMT_TRUE.
4729
4730         * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
4731         TREE_ADDRESSABLE.
4732
4733         * utils.c (create_var_decl): Do not call expand_decl or
4734         expand_decl_init.
4735         Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
4736         Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
4737         here.
4738         (struct e_stack): Add chain_next to GTY.
4739         (struct binding_level): Deleted.
4740         (struct ada_binding_level): New struct.
4741         (free_block_chain): New.
4742         (global_binding_level, clear_binding_level): Deleted.
4743         (global_bindings_p): Rework to see if no chain.
4744         (kept_level_p, set_block): Deleted.
4745         (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
4746         new data structure and work directly on BLOCK node.
4747         (gnat_poplevel): Similarly.
4748         (get_decls): Look at BLOCK_VARS.
4749         (insert_block): Work directly on BLOCK node.
4750         (block_has_var): New function.
4751         (pushdecl): Rework for new binding structures.
4752         (gnat_init_decl_processing): Rename and rework calls to pushlevel and
4753         poplevel.
4754         (build_subprog_body): Likewise.
4755         (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
4756
4757         * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
4758
4759         * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
4760         (DECL_STMT_VAR): Likewise.
4761
4762 2004-05-17  Robert Dewar  <dewar@gnat.com>
4763
4764         * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
4765         procedure
4766
4767         * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
4768         of restriction synonyums by using
4769         Restrict.Process_Restriction_Synonyms.
4770
4771         * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
4772
4773         * s-restri.ads (Tasking_Allowed): Correct missing comment
4774
4775         * s-rident.ads: Add entries for restriction synonyms
4776
4777         * ali.adb: Fix some problems with badly formatted ALI files that can
4778         result in infinite loops.
4779
4780         * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
4781         s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
4782         s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
4783         s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
4784         s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
4785         s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
4786         s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
4787         s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
4788         s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
4789         a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
4790         exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
4791         s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
4792         s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
4793         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
4794         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
4795         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
4796         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
4797         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
4798         s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
4799         s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
4800         to Task_Id (minor cleanup).
4801
4802 2004-05-17  Vincent Celier  <celier@gnat.com>
4803
4804         * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
4805         directory separator.
4806
4807         * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
4808         project being extended, if Languages is not declared in extending
4809         project.
4810
4811 2004-05-17  Javier Miranda  <miranda@gnat.com>
4812
4813         * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
4814         limited view of a visible sibling.
4815
4816 2004-05-14  Robert Dewar  <dewar@gnat.com>
4817
4818         * gnat_ugn.texi: Minor change to -gnatS documentation
4819
4820         * sprint.adb: Remove some instances of Assert (False) and for this
4821         purpose replace them by output of a ??? string.
4822
4823         * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
4824         Assert (False).
4825
4826         * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
4827         flag processing. This was suppressing required dependencies in
4828         No_Run_Time mode and is not needed since the binder does not generate
4829         references for things in libgnat anyway.
4830
4831         * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
4832         warning.
4833
4834 2004-05-14  Thomas Quinot  <quinot@act-europe.fr>
4835
4836         * gnat_ugn.texi: Document AIX-specific issue with initialization of
4837         resolver library.
4838
4839         * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
4840         action for the case of an actual parameter in an init proc call.
4841
4842 2004-05-14  Ed Schonberg  <schonberg@gnat.com>
4843
4844         * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
4845         subtype, check visible entities in base type.
4846
4847         * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
4848         actions if the object is a renaming.
4849
4850         * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
4851         Check_Formal_Package_Instance, to determine more precisely when the
4852         formal and the actual denote the same entity.
4853
4854 2004-05-14  Javier Miranda  <miranda@gnat.com>
4855
4856         * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
4857
4858         * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
4859         corresponding to a private_with must be removed from visibility; it
4860         will be made visible later, just before we analyze the private part of
4861         the package.
4862         (Check_Private_Child_Unit): Allow private_with clauses in public
4863         siblings.
4864         (Install_Siblings): Make visible the private entities of private-withed
4865         siblings.
4866         (Install_Withed_Unit): Do not install the private withed unit if we
4867         are compiling a package declaration and the Private_With_OK flag was
4868         not set by the caller. These declarations will be installed later,
4869         just before we analyze the private part of the package.
4870
4871         * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
4872         during the evaluation of the expression that initializes the object,
4873         decorate it with the expected type to avoid cascade errors.
4874         Code cleanup.
4875
4876         * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
4877         subprogram we have to install the private_with clauses after its
4878         specification has been analyzed (as documented in AI-262.TXT).
4879
4880         * sem_ch8.adb (Has_Private_With): New function. Determines if the
4881         current compilation unit has a private with on a given entity.
4882         (Find_Direct_Name): Detect the Beaujolais problem described in
4883         AI-262.TXT
4884
4885         * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
4886         provides the functionality of the function Is_Ancestor that was
4887         previously available in sem_ch10. It has been renamed to avoid
4888         overloading.
4889
4890         * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
4891
4892 2004-05-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4893
4894         * utils.c (build_vms_descriptor): Use SImode pointers.
4895
4896 2004-05-14  Vasiliy Fofanov  <fofanov@act-europe.fr>
4897
4898         * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
4899
4900 2004-05-14  GNAT Script  <nobody@gnat.com>
4901
4902         * Make-lang.in: Makefile automatically updated
4903
4904 2004-05-14  Arnaud Charlet  <charlet@act-europe.fr>
4905
4906         Renaming of target specific files for clarity
4907
4908         * Makefile.in: Rename GNAT target specific files.
4909
4910         * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
4911         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
4912         3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
4913         3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
4914         3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
4915         3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
4916         42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
4917         4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
4918         4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
4919         4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
4920         4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
4921         4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
4922         51osinte.adb, 51osinte.ads, 51system.ads,
4923         52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
4924         55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
4925         56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
4926         56tpopsp.adb, 57system.ads, 58system.ads,
4927         5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
4928         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
4929         5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
4930         5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
4931         5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
4932         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
4933         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
4934         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
4935         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
4936         5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
4937         5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
4938         5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
4939         5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
4940         5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
4941         5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
4942         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
4943         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
4944         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
4945         5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
4946         5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
4947         5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
4948         5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
4949         5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
4950         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
4951         5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
4952         5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
4953         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
4954         5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
4955         5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
4956         5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
4957         5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
4958         5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
4959         5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
4960         5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
4961         5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
4962         5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
4963         7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
4964         7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
4965         7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
4966         7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
4967
4968         * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
4969         a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
4970         a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
4971         a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
4972         a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
4973         a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
4974         a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
4975         a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
4976         a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
4977         a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
4978         g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
4979         g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
4980         g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
4981         g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
4982         g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
4983         g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
4984         g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
4985         g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
4986         interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
4987         mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
4988         mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4989         mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
4990         s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
4991         s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
4992         s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
4993         s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
4994         s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
4995         s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
4996         s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
4997         s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
4998         s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
4999         s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
5000         s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
5001         s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
5002         s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
5003         s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
5004         s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
5005         s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
5006         s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
5007         s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
5008         s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
5009         s-osinte-vms.ads, s-osinte-vxworks.adb,
5010         s-osinte-vxworks.ads, s-osprim-mingw.adb,
5011         s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
5012         s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
5013         s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
5014         s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
5015         s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
5016         s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
5017         s-stchop-vxworks.adb, s-taprop-dummy.adb,
5018         s-taprop-hpux-dce.adb, s-taprop-irix.adb,
5019         s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
5020         s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
5021         s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
5022         s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
5023         s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
5024         s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
5025         s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
5026         s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
5027         s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
5028         s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
5029         s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
5030         s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
5031         s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
5032         s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
5033         s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
5034         s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
5035         s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
5036         symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
5037         system-hpux.ads, system-interix.ads, system-irix-n32.ads,
5038         system-irix-o32.ads, system-linux-x86_64.ads,
5039         system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
5040         system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
5041         system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
5042         system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
5043         system-vxworks-alpha.ads, system-vxworks-m68k.ads,
5044         system-vxworks-mips.ads, system-vxworks-ppc.ads,
5045         system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
5046         above.
5047
5048 2004-05-13  Zack Weinberg  <zack@codesourcery.com>
5049
5050         * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
5051
5052 2004-05-13  Diego Novillo  <dnovillo@redhat.com>
5053
5054         Merge from tree-ssa-20020619-branch.
5055
5056         * config-lang.in (boot_language, build_by_default): Set
5057         to no.
5058         * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
5059         (max_size): Add static chain op for call_expr.
5060
5061 2004-05-12  Richard Sandiford  <rsandifo@redhat.com>
5062
5063         PR target/15331
5064         * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
5065
5066 2004-05-11  Roger Sayle  <roger@eyesopen.com>
5067
5068         * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
5069         COND_EXPR.
5070
5071 2004-05-10  Doug Rupp  <rupp@gnat.com>
5072
5073         * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
5074         system.aux_dec.
5075
5076         * s-auxdec.ads: Add Short_Address subtype (moved here from System).
5077
5078         * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
5079
5080         * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
5081         Fixes undefined symbols in IA64 gnatlib.
5082
5083         * 5vinmaop.adb: Reference s-auxdec for Short_Address.
5084
5085         * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
5086         Short_Address). This will be moved to system.auxdec.
5087
5088 2004-05-10  Thomas Quinot  <quinot@act-europe.fr>
5089
5090         * sem_util.adb: Replace test for presence of a node that is always
5091         present with a call to Discard_Node.
5092
5093         * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
5094         Analyze on the library unit node after generation of distribution stub
5095         constructs.  The call was a no-op because Unit_Node has already been
5096         Analyzed, and the tree fragments for the distribution stubs are
5097         analyzed as they are inserted in Exp_Dist.
5098         Update comment regarding to distribution stubs to reflect that we
5099         do not generate stub in separate files anymore.
5100
5101         * einfo.ads: Clarify the fact that a tagged private type has the
5102         E_Record_Type_With_Private Ekind.
5103
5104         * erroutc.adb: Minor reformatting
5105
5106         * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
5107         values if line length is increased using -gnatyM (noticed during code
5108         reading).
5109
5110         * eval_fat.adb: Minor reformatting
5111         Put spaces around exponentiation operator
5112
5113 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
5114
5115         PR ada/15005
5116         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
5117         has been rewritten as an explicit dereference, retrieve type of
5118         original node to check for possibly unconstrained record type.
5119
5120 2004-05-10  Ed Schonberg  <schonberg@gnat.com>
5121
5122         * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
5123         overriding, use the operation of the parent unconditionally.
5124
5125         * sem_ch4.adb (Remove_Address_Interpretations): Remove address
5126         operation when either operand is a literal, to avoid further
5127         ambiguities.
5128
5129         * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
5130         overridden by a previous explicit declaration, mark the previous entity
5131         as overriding.
5132
5133         * sem_disp.adb (Check_Dispatching_Operation): New predicate
5134         Is_Visibly_Controlled, to determine whether a declaration of a
5135         primitive control operation for a derived type overrides an inherited
5136         one. Add warning if the explicit declaration does not override.
5137
5138 2004-05-10  Vincent Celier  <celier@gnat.com>
5139
5140         * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
5141         some cases when the sources are no longer present.
5142
5143         * make.adb (Collect_Arguments): Fail if an external source, not part
5144         of any project need to be compiled, when switch -x has not been
5145         specified.
5146
5147         * makeusg.adb: Document new switch -x
5148
5149         * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
5150         defaulted to False.
5151
5152         * switch-m.adb (Scan_Make_Switches): New switch -x
5153
5154         * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
5155         gnatmake switch -x.
5156
5157         * gnat_ugn.texi: Document new gnatmake switch -x
5158
5159 2004-05-10  Eric Botcazou  <ebotcazou@act-europe.fr>
5160
5161         * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
5162
5163         * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
5164         (process_attributes): Likewise.
5165
5166 2004-05-10  Joel Brobecker  <brobecker@gnat.com>
5167
5168         * s-inmaop.ads: Fix spelling mistake in one of the comments.
5169
5170 2004-05-10  Robert Dewar  <dewar@gnat.com>
5171
5172         * gnat_ugn.texi: Document that for config pragma files, the maximum
5173         line length is always 32767.
5174
5175         * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
5176         literals is now allowed.
5177
5178         * gnat-style.texi: Remove statement about splitting long lines before
5179         an operator rather than after, since we do not follow this rule at all.
5180         Clarify rule (really lack of rule) for spaces around exponentiation
5181
5182         * sem_elim.adb: Allow concatenation of string literals as well as a
5183         single string literal for pragma arguments.
5184
5185         * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
5186
5187         * a-textio.adb (Terminate_Line): Do not add line feed if nothing
5188         written for append case.
5189
5190         * frontend.adb: Changes to avoid checking max line length in config
5191         pragma files.
5192
5193         * g-os_lib.ads: Minor reformatting
5194
5195         * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
5196         wrong in any case. Instead use standard value. Noticed during code
5197         reading.
5198
5199         * opt.ads (Max_Line_Length): New field, used to implement removal of
5200         limitation on length of lines when scanning config pragma files.
5201
5202         * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
5203         makeutl.ads, makeutl.adb: Minor reformatting
5204
5205         * scn.adb: Do not check line length while scanning config pragma files
5206         Do not check line length while scanning out license information
5207
5208         * scng.adb: Changes to avoid line length checks while parsing config
5209         pragma files.
5210
5211 2004-05-10  GNAT Script  <nobody@gnat.com>
5212
5213         * Make-lang.in: Makefile automatically updated
5214
5215 2004-05-05  Arnaud Charlet  <charlet@act-europe.fr>
5216
5217         * osint.adb (Find_Program_Name): Fix handling of VMS version
5218         number.
5219
5220 2004-05-05  Emmanuel Briot  <briot@act-europe.fr>
5221
5222         * g-os_lib.ads (Invalid_Time): New constant
5223
5224         * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
5225         return OS_Time instead of time_t to match what is imported by Ada.
5226         Now return -1 if the file doesn't exist, instead of a random value
5227
5228 2004-05-05  Robert Dewar  <dewar@gnat.com>
5229
5230         * usage.adb: Add line for -gnatR?s switch
5231
5232         * sem_ch13.adb, exp_ch2.adb: Minor reformatting
5233
5234         * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
5235         and for Match (Data_First, Data_last)
5236
5237         * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
5238         written when we are dealing with multi-unit files.
5239
5240 2004-05-05  Jerome Guitton  <guitton@act-europe.fr>
5241
5242         * Makefile.in: Remove unused targets and variables.
5243
5244 2004-05-05  Vincent Celier  <celier@gnat.com>
5245
5246         * switch-m.adb: New gnatmake switch -eI
5247
5248         * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
5249         of new gnatmake switch -eInnn.
5250
5251         * makegpr.adb: Take into account new parameters Index and Src_Index in
5252         Prj.Util.
5253
5254         * clean.adb: Implement support for multi-unit sources, including new
5255         switch -i.
5256
5257         * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
5258         Src_Index.
5259
5260         * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
5261         (Extract_From_Q): New out parameter Index
5262         (Mark, Is_Marked): Subprograms moved to Makeutl
5263         (Switches_Of): New parameter Source_Index
5264         (Add_Switch): New parameter Index
5265         (Check): New parameter Source_Index
5266         (Collect_Arguments): New parameter Source_Index
5267         (Collect_Arguments_And_Compile): New parameter Source_Index
5268         (Compile): New parameter Source_Index
5269         Put subprograms in alphabetical order
5270         Add support for multi-source sources, including in project files.
5271
5272         * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
5273         (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
5274         Make.
5275
5276         * makeusg.adb: New gnatmake switch -eInnn
5277
5278         * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
5279         Prj.Util.Value_Of.
5280
5281         * opt.ads (Main_Index): New variable, defaulted to 0.
5282
5283         * osint.ads, osinte.adb (Add_File): New parameter Index
5284         (Current_Source_Index): New function
5285
5286         * prj.adb: Take into account new components Index and Src_Index
5287
5288         * prj.ads (String_Element): New component Index
5289         (Variable_Value): New component Index
5290         (Array_Element): New component Src_Index
5291
5292         * prj-attr.adb: Indicate that optional index may be specified for
5293         attributes Main, Executable, Spec, Body and some of Switches.
5294
5295         * prj-attr.ads (Attribute_Kind): New values for optional indexes
5296         (Attribute_Record): New component Optional_Index
5297
5298         * prj-com.ads (File_Name_Data): New component Index
5299
5300         * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
5301
5302         * prj-env.adb (Put): Output optional index
5303
5304         * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
5305         attributes Spec and Body.
5306
5307         * prj-nmsc.adb: Process optional indexes
5308
5309         * prj-pp.adb: Ouput "at" for optional indexes
5310
5311         * prj-proc.adb: Take into account optional indexes
5312
5313         * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
5314         Optional_Index. For string literal,
5315         process optional index when Optional_Index is True.
5316         (Parse_Expresion): New Boolean parameter Optional_Index
5317
5318         * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
5319         (Set_Source_Index_Of): New procedure
5320
5321         * prj-util.adb (Executable_Of, Value_Of): Take into account optional
5322         index.
5323
5324         * prj-util.ads (Executable_Of): New parameter Index
5325         (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
5326         New parameter Src_Index, defaulted to 0.
5327
5328 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
5329
5330         PR ada/15257
5331         * sem_ch3.adb (Access_Definition): If this is an access parameter
5332         whose designated type is imported through a limited_with clause, do
5333         not add the enclosing subprogram to the list of private dependents of
5334         the type.
5335
5336 2004-05-05  Ed Schonberg  <schonberg@gnat.com>
5337
5338         PR ada/15258
5339         * sem_ch6.adb (Base_Types_Match): True if one type is imported through
5340         a limited_with clause, and the other is its non-limited view.
5341
5342 2004-05-05  Thomas Quinot  <quinot@act-europe.fr>
5343
5344         * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
5345
5346         * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
5347         exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
5348         Stand.Boolean_Literals to produce references to entities
5349         Standard_False and Standard_True from compile-time computed boolean
5350         values.
5351
5352         * stand.ads (Boolean_Literals): New variable, provides the entity
5353         values for False and True, for use by the expander.
5354
5355 2004-05-05  Doug Rupp  <rupp@gnat.com>
5356
5357         * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
5358         5vinmaop.adb: Unchecked convert Short_Address vice Address
5359
5360         * adaint.c, raise.c: Caste CRTL function return value
5361         to avoid gcc error on 32/64 bit IVMS.
5362
5363         * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
5364         target = IA64/VMS.
5365
5366         * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
5367
5368         * 5qsystem.ads (Address): Declare as Long_Integer
5369         (Short_Address): Declare as 32 bit subtype of Address
5370         Declare  abstract address operations to avoid gratuitous ambiguities.
5371
5372 2004-05-05  Jose Ruiz  <ruiz@act-europe.fr>
5373
5374         * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
5375         instead of the old Boolean_Entry_Barriers.
5376         Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
5377
5378 2004-05-05  GNAT Script  <nobody@gnat.com>
5379
5380         * Make-lang.in: Makefile automatically updated
5381
5382 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
5383
5384         * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
5385
5386 2004-05-03  Olivier Hainque  <hainque@act-europe.fr>
5387
5388         PR ada/15152
5389
5390         * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
5391         alone. Replacing object references by literals is inappropriate in a
5392         so low level context.
5393
5394 2004-05-03  Arnaud Charlet  <charlet@act-europe.fr>
5395
5396         * a-exexpr.adb: Add comments
5397
5398 2004-05-03  Joel Brobecker  <brobecker@gnat.com>
5399
5400         * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
5401         declare the Ancestor_Tags array in Type_Specific_Data with a small size
5402         without risking a bounds check error when accessing one of its
5403         components.
5404         (Type_Specific_Data): Define Ancestor_Tags as a small array.
5405         This prevents us from hitting a limitation during the debug info
5406         generation when using stabs.
5407
5408         * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
5409         small array.
5410         This prevents us from hitting a limitation during the debug info
5411         generation when using stabs.
5412
5413 2004-05-03  Eric Botcazou  <ebotcazou@act-europe.fr>
5414
5415         lang-specs.h: Remove -gnatz* from specs.
5416
5417 2004-05-03  Vincent Celier  <celier@gnat.com>
5418
5419         * gprmake.adb, makegpr.ads, makegpr.adb: New files.
5420
5421         * Make-lang.in, Makefile.in: Add gprmake
5422
5423 2004-05-03  Thomas Quinot  <quinot@act-europe.fr>
5424
5425         * sem_aggr.adb: Fix typo in comment.
5426
5427 2004-05-03  Robert Dewar  <dewar@gnat.com>
5428
5429         * make.adb: Minor reformatting
5430
5431         * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
5432
5433         * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
5434         so that it works when address is not a private type.
5435
5436         * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
5437         properly with rewritten unchecked conversions. This prevents
5438         order-of-elaboration issues that can otherwise arise.
5439         (Minimum_Size): Don't check size of access types under VMS
5440
5441         * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
5442         interpretations of integer literals as type System.Address.
5443
5444         * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
5445         (Is_Descendent_Of): New function
5446
5447 2004-05-03  Jose Ruiz  <ruiz@act-europe.fr>
5448
5449         * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
5450         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
5451         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
5452
5453         * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
5454         of the old Max_Entry_Queue_Depth.
5455
5456         * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
5457         Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
5458         No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
5459
5460         * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
5461         New entry for proper handling of Max_Entry_Queue_Depth.
5462         New entry for proper handling of No_Dynamic_Interrupts.
5463
5464         * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
5465         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
5466         Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
5467         the GNAT specific restriction Max_Entry_Queue_Depth.
5468         Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
5469         the GNAT specific restriction No_Dynamic_Interrupts.
5470
5471         * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
5472         instead of the old Boolean_Entry_Barriers.
5473         Use the new restriction No_Dynamic_Attachment instead of the old
5474         No_Dynamic_Interrupts.
5475
5476         * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
5477         supersedes the GNAT specific restriction Boolean_Entry_Barriers.
5478
5479         * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
5480         of the old Max_Entry_Queue_Depth.
5481
5482 2004-05-03  GNAT Script  <nobody@gnat.com>
5483
5484         * Make-lang.in: Makefile automatically updated
5485
5486 2004-04-29  Ed Schonberg  <schonberg@gnat.com>
5487
5488         * checks.adb (Enable_Range_Check): If the prefix of an index component
5489         is an access to an unconstrained array, perform check unconditionally.
5490
5491 2004-04-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5492
5493         * decl.c (gnat_to_gnu_field): Also call make_packable_type if
5494         Component_Clause.
5495
5496 2004-04-29  Olivier Hainque  <hainque@act-europe.fr>
5497
5498         * init.c (__gnat_install_handler, __gnat_error_handler): Remove
5499         alternate stack setting. There was no support for the tasking cases
5500         and the changes eventually caused a number of side-effect failures in
5501         the non-tasking case too.
5502
5503 2004-04-29  Eric Botcazou  <ebotcazou@act-europe.fr>
5504
5505         lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
5506         -gnats is passed.
5507
5508 2004-04-29  Vincent Celier  <celier@gnat.com>
5509
5510         * make.adb (Gnatmake): Increase max size of argument array for
5511         gnatbind for the potential addition of -F.
5512         If there are Stand-Alone Library projects, invoke gnatbind with -F to
5513         be sure that elaboration flags will be checked.
5514
5515         * switch-c.adb: Correct call to Scan_Pos for -gnateI
5516
5517 2004-04-29  Thomas Quinot  <quinot@act-europe.fr>
5518
5519         * sem_warn.adb (Check_References): Move '<access-variable> may be
5520         null' warning out of under Warn_On_No_Value_Assigned.
5521
5522 2004-04-29  Ed Falis  <falis@gnat.com>
5523
5524         * gnat_ugn.texi: Fixed texi error
5525
5526 2004-04-29  Robert Dewar  <dewar@gnat.com>
5527
5528         * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
5529         abstract operations if they come from predefined files.
5530
5531         * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
5532         Dynamic, not RM).
5533
5534         * s-addope.adb: Correct obvious error in mod function
5535
5536 2004-04-28  Andrew W. Reynolds  <awreynolds@mac.com>
5537
5538         * Makefile.in: Add target pairs for powerpc darwin*
5539         tasking support.
5540
5541         * a-intnam-darwin.ads, s-osinte-darwin.adb,
5542         s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
5543
5544 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5545
5546         * Makefile.in: Add target macro definitions for s390*-linux*.
5547         * system-linux-s390.ads: New file.
5548         * system-linux-s390x.ads: New file.
5549
5550 2004-04-28  Joseph S. Myers  <jsm@polyomino.org.uk>
5551
5552         * gnat_ugn.texi: Correct argument to @setfilename.
5553
5554 2004-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5555
5556         * a-exexpr.adb (Unwind_Word): New data type.
5557         (Unwind_Exception): Use it as type of Private1 and Private2.
5558
5559         * raise.c (db_action_for): Fix debug printf.
5560
5561 2004-04-27  Ed Schonberg  <schonberg@gnat.com>
5562
5563         * a-wtmoio.ads: Formal type must be a modular type, not a signed
5564         integer type.
5565
5566 2004-04-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5567
5568         * decl.c (gnat_to_gnu_entity, case object): Call
5569         __builtin_update_setjmp_buf.
5570
5571         * gigi.h (update_setjmp_buf): Deleted.
5572         (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
5573
5574         * misc.c: (update_setjmp_buf): Deleted.
5575
5576         * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
5577         around block of RTL.
5578
5579         * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
5580
5581 2004-04-26  Thomas Quinot  <quinot@act-europe.fr>
5582
5583         * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
5584         subprogram for which no pragma All_Calls_Remote applies, store the
5585         address of the real subprogram in the underlying record type, so local
5586         dereferences do not go through the PCS.
5587
5588 2004-04-26  Robert Dewar  <dewar@gnat.com>
5589
5590         * i-c.ads: Add some type qualifications to avoid ambiguities when
5591         compiling with s-auxdec.ads and a non-private address type.
5592
5593 2004-04-26  Arnaud Charlet  <charlet@act-europe.fr>
5594
5595         * Makefile.rtl: Fix error in previous check-in:
5596         Add s-addope.o to non tasking object list (rather than tasking object
5597         list).
5598
5599 2004-04-26  Javier Miranda  <miranda@gnat.com>
5600
5601         * sem_aggr.adb: Fix typo in comments
5602         (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
5603         Required to check the null-exclusion attribute.
5604
5605         * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
5606         case of anonymous access types in record and array components. For a
5607         component definition the level is the same of the enclosing composite
5608         type.
5609
5610         * sem_ch3.adb (Analyze_Component_Declaration): In case of components
5611         that are anonymous access types the level of accessibility depends on
5612         the enclosing type declaration. In order to have this information, set
5613         the scope of the anonymous access type to the enclosing record type
5614         declaration.
5615         (Array_Type_Declaration): In case of components that are anonymous
5616         access types the level of accessibility depends on the enclosing type
5617         declaration. In order to have this information, set the scope of the
5618         anonymous access type to the enclosing array type declaration.
5619
5620         * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
5621         access type.
5622
5623         * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
5624         renaming of anonymous access-to-constant types allowed if and only if
5625         the renamed object is access-to-constant.
5626
5627         * sem_util.adb (Type_Access_Level): In case of anonymous access types
5628         that are component_definition or discriminants of a nonlimited type,
5629         the level is the same as that of the enclosing component type.
5630
5631 2004-04-26  Sergey Rybin  <rybin@act-europe.fr>
5632
5633         * sem_elim.adb: Some minor code reorganization from code reading. Fix
5634         misprint in the function name (File_Name_Match).
5635
5636 2004-04-23  Laurent GUERBY <laurent@guerby.net>
5637
5638         * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
5639         install.
5640
5641 2004-04-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5642
5643         * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
5644
5645 2004-04-23  Emmanuel Briot  <briot@act-europe.fr>
5646
5647         * adaint.c (__gnat_try_lock): No longer requires that the parent
5648         directory be writable, the directory itself is enough.
5649         (gnat_is_absolute_path): Change profile, so that the call from
5650         GNAT.OS_Lib can be made more efficient.
5651
5652         * adaint.h (gnat_is_absolute_path): Change profile, so that the call
5653         from GNAT.OS_Lib can be made more efficient.
5654
5655         * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
5656         one copy of the file name. Found by code reading.
5657
5658 2004-04-23  Vincent Celier  <celier@gnat.com>
5659
5660         * gnat_ugn.texi: Add documentation for gnatmake switch -eL
5661         Correct documentation on gnatmake switches transmitted to the compiler
5662
5663         * ali.ads: Minor comment fix
5664
5665 2004-04-23  Javier Miranda  <miranda@gnat.com>
5666
5667         * sem_ch6.adb: (Confirming Types): Code cleanup
5668
5669         * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
5670         subprogram types: E_Anonymous_Access_Subprogram_Type and
5671         E_Anonymous_Access_Protected_Subprogram_Type.
5672
5673 2004-04-23  Thomas Quinot  <quinot@act-europe.fr>
5674
5675         * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
5676         whether a pragma All_Calls_Remote applies to the subprogram on which
5677         'Access is taken.
5678         No functional change is introduced by this revision; the new parameter
5679         will be used to allow calls to local RCI subprograms to be optimized
5680         to not use the PCS in the case where no pragma All_Calls_Remote applies,
5681         as is already done in the PolyORB implementation of the DSA.
5682
5683         * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
5684         whether a pragma All_Calls_Remote applies to the subprogram on which
5685         'Access is taken.
5686         No functional change is introduced by this revision; the new parameter
5687         will be used to allow calls to local RCI subprograms to be optimized
5688         to not use the PCS in the case where no pragma All_Calls_Remote applies,
5689         as is already done in the PolyORB implementation of the DSA.
5690
5691 2004-04-23  Robert Dewar  <dewar@gnat.com>
5692
5693         * Makefile.rtl: Add entry for s-addope.o in run time library list
5694         * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
5695         * s-addope.ads, s-addope.adb: New files.
5696
5697         * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
5698         s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
5699         s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
5700         System.Address to be non-private and signed.
5701
5702         * sem_elim.adb: Minor reformatting (fairly extensive)
5703         Some minor code reorganization from code reading
5704         Add a couple of ??? comments
5705
5706 2004-04-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5707
5708         * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
5709         (tree_transform, case N_If_Statement): Remove non-determinism.
5710
5711         * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
5712
5713 2004-04-23  Sergey Rybin  <rybin@act-europe.fr>
5714
5715         * gnat_rm.texi: Small fixes in the changes made in the 'pragma
5716         Eliminate' section.
5717
5718         * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
5719         no longer used as a parameter name for Eliminate pragma).
5720
5721 2004-04-22  Laurent GUERBY <laurent@guerby.net>
5722
5723         PR optimization/14984
5724         PR optimization/14985
5725         * trans.c (gigi): Fix non determinism leading to bootstrap
5726         comparison failures.
5727
5728 2004-04-21  Pascal Obry  <obry@gnat.com>
5729
5730         * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
5731         passed to spawnvp() to properly handle program pathname with spaces on
5732         Win32.
5733
5734 2004-04-21  Emmanuel Briot  <briot@act-europe.fr>
5735
5736         * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
5737         (Allocate, Deallocate, Free_Physically): Make sure the tasks are
5738         unlocked in case of exceptions.
5739
5740 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
5741
5742         * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
5743         This function does not exist anymore.
5744
5745 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
5746
5747         * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
5748
5749         * link.c: Move variables to the __gnat name space.
5750
5751         * Makefile.in: list link.o explicitly when needed.
5752
5753         * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
5754
5755 2004-04-21  Javier Miranda  <miranda@gnat.com>
5756
5757         * einfo.adb (Original_Access_Type): New subprogram
5758         (Set_Original_Access_Type): New subprogram
5759         (Write_Field21_Name): Write the name of the new field
5760
5761         * einfo.ads (Original_Access_Type): New field present in access to
5762         subprogram types.
5763         Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
5764         E_Anonymous_Access_Protected_Subprogram_Type.
5765
5766         * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
5767         subprogram types.
5768
5769         * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
5770         to anonymous access to subprogram types.
5771
5772         * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
5773         to subprogram types.
5774
5775         * sem_ch3.adb (Access_Definition): Complete decoration of entities
5776         corresponding to anonymous access to subprogram types.
5777         (Analyze_Component_Declaration): Add new actual to the call to
5778         subprogram replace_anonymous_access_to_protected_subprogram.
5779         (Array_Type_Declaration): Add new actual to the call to subprogram
5780         replace_anonymous_access_to_protected_subprogram.
5781         (Process_Discriminants): Add new actual to the call to subprogram
5782         replace_anonymous_access_to_protected_subprogram.
5783         (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
5784
5785         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
5786         formal.
5787
5788         * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
5789         access to subprogram types.
5790
5791         * sem_util.adb (Has_Declarations): Addition of package_specification
5792         nodes.
5793
5794 2004-04-21  Ed Schonberg  <schonberg@gnat.com>
5795
5796         * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
5797         inlined flags to renamed entity only if in current unit.
5798
5799 2004-04-21  Thomas Quinot  <quinot@act-europe.fr>
5800
5801         * s-parint.ads: Add DSA implementation marker.
5802
5803         * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
5804         value of System.Partition_Interface.DSA_Implementation to determine
5805         what version of the distributed systems annex is available (no
5806         implementation, GLADE, or PolyORB).
5807
5808 2004-04-21  Joel Brobecker  <brobecker@gnat.com>
5809
5810         * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
5811
5812 2004-04-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5813
5814         * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
5815         with new type if alias sets differ.
5816         Fixes ACATS c41103b.
5817
5818 2004-04-21  Vincent Celier  <celier@gnat.com>
5819
5820         * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
5821         Add array Lang_Args for the language specific compiling argument
5822         switches.
5823
5824         * gnat_ugn.texi: Explain in more details when a library is rebuilt.
5825
5826 2004-04-21  Sergey Rybin  <rybin@act-europe.fr>
5827
5828         * gnat_rm.texi: Update the descripton of the Eliminate pragma
5829         according to the recent changes in the format of the parameters of the
5830         pragma (replacing Homonym_Number with Source_Location).
5831
5832 2004-04-19  Arnaud Charlet  <charlet@act-europe.fr>
5833
5834         * 5isystem.ads: Removed, unused.
5835
5836         * gnat_rm.texi: Redo 1.13 change.
5837
5838 2004-04-19  Robert Dewar  <dewar@gnat.com>
5839
5840         * s-stoele.ads: Clean up definition of Storage_Offset (the new
5841         definition is cleaner, avoids the kludge of explicit Standard operator
5842         references, and also is consistent with a visible System.Address with
5843         no visible operations.
5844
5845         * s-geveop.adb: Add declarations to avoid assumption of visible
5846         operations on type System.Address (since these might not be available
5847         if Address is a non-private type for which the operations
5848         are made abstract).
5849
5850         * sem_eval.adb: Minor reformatting
5851
5852         * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
5853         s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
5854         reformatting (new function spec format).
5855
5856         * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
5857         s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
5858         s-caun64.adb: Add declarations to avoid assumption of visible
5859         operations on type System.Address (since these might not be available
5860         if Address is a non-private type for which the operations are made
5861         abstract).
5862
5863         * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
5864
5865         * exp_intr.adb: Minor comment update
5866
5867         * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
5868
5869         * 5omastop.adb: Add declarations to avoid assumption of visible
5870         operations on type System.Address (since these might not be available
5871         if Address is a non-private type for which the operations
5872         are made abstract).
5873
5874 2004-04-19  Vincent Celier  <celier@gnat.com>
5875
5876         * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
5877
5878         * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
5879         defaulted to Ada.
5880
5881         * prj-proc.adb (Process): New Boolean parameter Process_Languages,
5882         defaulted to Ada.
5883         Call Check with Process_Languages.
5884         (Check): New Boolean parameter Process_Languages. Call Recursive_Check
5885         with Process_Languages.
5886         (Recursive_Check): New Boolean parameter Process_Languages. Call
5887         Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
5888         Process_Languages.
5889
5890         * prj-proc.ads (Process): New Boolean parameter Process_Languages,
5891
5892         * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
5893         parameter Ada_Main, defaulted to True.
5894         Check for Ada specific characteristics only when Ada_Main is True.
5895
5896         * opt.ads: (Follow_Links): New Boolean flag for gnatmake
5897
5898         * prj.adb: (Project_Empty): Add new Project_Data components.
5899
5900         * prj.ads: New types and tables for non Ada languages.
5901         (Project_Data): New components Languages, Impl_Suffixes,
5902         First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
5903         Include_Path, Include_Data_Set.
5904
5905         * prj-env.ads, prj-env.adb: Minor reformatting
5906
5907         * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
5908         Put subprograms in alphabetical order
5909
5910         * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
5911         defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
5912         Opt.Follow_Links.
5913
5914         * mlib-prj.adb: Back out modification in last version, as they are
5915         incorrect.
5916         (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
5917
5918         * make.adb: (Mains): Moved to package Makeutl
5919         (Linker_Opts): Moved to package Makeutl
5920         (Is_External_Assignment): Moved to package Makeutl
5921         (Test_If_Relative_Path): Moved to package Makeutl
5922         (Gnatmake): Move sorting of linker options to function
5923         Makeutl.Linker_Options_Switches.
5924
5925         * makeutl.ads, makeutl.adb: New files.
5926
5927         * Makefile.in: Add makeutl.o to the object files for gnatmake
5928
5929         * makeusg.adb: Add line for new switch -eL.
5930
5931         * gnatls.adb (Image): New function.
5932         (Output_Unit): If in verbose mode, output the list of restrictions
5933         specified by pragmas Restrictions.
5934
5935         * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
5936         Text_IO.
5937
5938         * a-calend.adb (Split): Shift the date by multiple of 56 years, if
5939         needed, to put it in the range 1970 (included) - 2026 (excluded).
5940         (Time_Of): Do not shift Unix_Min_Year (1970).
5941         Shift the date by multiple of 56 years, if needed, to put it in the
5942         range 1970 (included) - 2026 (excluded).
5943
5944         * adaint.h, adaint.c (__gnat_set_executable): New function.
5945
5946 2004-04-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5947
5948         * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
5949         and pop GC context.
5950         (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
5951         (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
5952         (tree_transform, case N_Procedure_Call_Statement): Build a tree.
5953         (tree_transform, case N_Code_Statement): Likewise.
5954         (gnat_expand_stmt, case LABEL_STMT): Don't look at
5955         LABEL_STMT_FIRST_IN_EH.
5956         (gnat_expand_stmt, case ASM_STMT): New case.
5957
5958         * utils2.c (build_unary_op): Properly set TREE_READONLY of
5959         UNCONSTRAINED_ARRAY_REF.
5960
5961         * utils.c (poplevel): Temporarily push/pop GC context around inline
5962         function expansion.
5963
5964         * decl.c (maybe_variable): Properly set TREE_READONLY of
5965         UNCONSTRAINED_ARRAY_REF.
5966         (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
5967
5968         * ada-tree.def: (ASM_STMT): New.
5969
5970         * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
5971         (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
5972         ASM_STMT_INPUT): New.
5973         (ASM_STMT_CLOBBER): Likewise.
5974
5975 2004-04-19  Thomas Quinot  <quinot@act-europe.fr>
5976
5977         * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
5978         general rcheck mechanism to raise Program_Error for E.4(18), instead
5979         of a custom raiser in System.Partition_Interface.
5980         Part of general cleanup work before PolyORB integration.
5981
5982         * snames.ads, snames.adb: Add new runtime library entities and names
5983         for PolyORB DSA.
5984
5985         * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5986         exp_dist.
5987         (Build_Subprogram_Id): New subprogram provided by exp_dist
5988         Code reorganisation in preparation for PolyORB integration.
5989
5990         * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
5991         exp_dist.
5992         (Build_Subprogram_Id): New subprogram provided by exp_dist
5993
5994         * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
5995         actual parameter types for call to dereference of an
5996         access-to-subprogram type.
5997
5998         * rtsfind.ads: Add new runtime library entities and names for PolyORB
5999         DSA.
6000
6001         * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
6002         instead, which has the same behaviour here since we never pass it a
6003         NULL pointer.
6004
6005         * link.c (run_path_option, Solaris case): Use -Wl, as for other
6006         platforms.
6007
6008         * Makefile.in: adjust object file lists for gnatlink and gnatmake
6009         to account for new dependency upon Interfaces.C.Strings + link.o
6010         For x86 FreeBSD, use 86numaux.
6011
6012         * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
6013         from Mlib.Tgt to Mlib.
6014
6015         * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
6016         target-independent.
6017
6018         * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
6019         target-specific versions of this subprogram, now implemented as a
6020         target-independent function in Mlib.
6021
6022         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
6023         5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
6024         (Linker_Library_Path_Option): Remove target-specific versions of this
6025         subprogram, now implemented as a target-independent function in Mlib.
6026
6027         * atree.adb: (Allocate_Initialize_Node): New subprogram.
6028         Factors out node table slots allocation.
6029         (Fix_Parents): New subprogram.
6030         Encapsulate the pattern of fixing up parent pointers for syntactic
6031         children of a rewritten node.
6032         (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
6033         (Rewrite): Use New_Copy when creating saved copy of original node.
6034         (Replace): Use Copy_Node to copy nodes.
6035
6036 2004-04-19  Javier Miranda  <miranda@gnat.com>
6037
6038         * sprint.adb (Sprint_Node_Actual): Give support to the new
6039         Access_To_Subprogram node available in Access_Definition nodes. In
6040         addition, give support to the AI-231 node fields: null-exclusion,
6041         all-present, constant-present.
6042
6043         * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
6044
6045         * sinfo.ads, sinfo.adb:
6046         New field Access_To_Subprogram_Definition in Access_Definition nodes
6047
6048         * sem_ch6.adb (Process_Formals): Move here the code that creates and
6049         decorates internal subtype declaration corresponding to the
6050         null-excluding formal. This code was previously in Set_Actual_Subtypes.
6051         In addition, carry out some code cleanup on this code. In case of
6052         access to protected subprogram call
6053         Replace_Anonymous_Access_To_Protected_Subprogram.
6054         (Set_Actual_Subtypes): Code cleanup.
6055
6056         * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
6057         Find_Type in case of anonymous access renamings. Add warning in case of
6058         null-excluding attribute used in anonymous access renaming.
6059
6060         * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
6061         subprogram
6062
6063         * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
6064         subprogram.
6065         (Access_Definition): In case of anonymous access to subprograms call
6066         the corresponding semantic routine to decorate the node.
6067         (Access_Subprogram_Declaration): Addition of some comments indicating
6068         some code that probably should be added here. Detected by comparison
6069         with the access_definition subprogram.
6070         (Analyze_Component_Declaration): In case of access to protected
6071         subprogram call Replace_Anonymous_Access_To_Protected.
6072         (Array_Type_Declaration): In case of access to protected subprogram call
6073         Replace_Anonymous_Access_To_Protected_Subprogram.
6074         (Process_Discriminants): In case of access to protected subprogram call
6075         Replace_Anonymous_Access_To_Protected_Subprogram.
6076
6077         * par.adb (P_Access_Definition): New formal that indicates if the
6078         null-exclusion part was present.
6079         (P_Access_Type_Definition): New formal that indicates if the caller has
6080         already parsed the null-excluding part.
6081
6082         * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
6083         (P_Identifier_Declarations): Code cleanup and give support to renamings
6084         of anonymous access to subprogram types.
6085         (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
6086         (P_Array_Type_Definition): Give support to AI-254.
6087         (P_Component_Items): Give support to AI-254.
6088         (P_Access_Definition): New formal that indicates if the header was
6089         already parsed by the caller.
6090         (P_Access_Type_Definition): New formal that indicates if the caller has
6091         already parsed the null-excluding part.
6092
6093         * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
6094         call to P_Access_Definition.
6095
6096 2004-04-19  Geert Bosch  <bosch@gnat.com>
6097
6098         * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
6099         the delicate semantics of floating-point to integer conversion.
6100         (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
6101
6102         * eval_fat.adb (Machine_Mantissa): Moved to spec.
6103         (Machine_Radix): New function.
6104
6105         * eval_fat.ads (Machine_Mantissa): Moved from body for use in
6106         conversion checks.
6107         (Machine_Radix): New function also for use in conversion checks.
6108
6109 2004-04-19  Ed Schonberg  <schonberg@gnat.com>
6110
6111         * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
6112
6113         * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
6114         to decorate the access-to-protected subprogram and the equivalent type.
6115
6116         * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
6117         to anonymous access to subprogram types.
6118
6119         * exp_ch4.adb (Expand_N_In): Preserve Static flag before
6120         constant-folding, for legality checks in contexts that require an RM
6121         static expression.
6122
6123         * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
6124         temporary but stack checking is not enabled, increment serial number
6125         to so that symbol generation is consistent with and without stack
6126         checking.
6127
6128         * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
6129         independent on whether stack checking is enabled, caller must check
6130         the corresponding flag.
6131
6132         * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
6133         range checks.
6134         (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
6135         parent if it has discriminants.
6136         (Build_Derived_Private_Type): Constructed full view does
6137         not come from source.
6138         (Process_Discriminants): Default discriminants on a tagged type are
6139         legal if this is the internal completion of a private untagged
6140         derivation.
6141
6142         * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
6143         no constraint checks, because it corresponds to an existing object.
6144
6145         * sem_prag.adb (Process_Convention): Pragma applies
6146         only to subprograms in the same declarative part, i.e. the same unit,
6147         not the same scope.
6148
6149         * sem_res.adb (Valid_Conversion): In an instance or inlined body,
6150         ignore type mismatch on a numeric conversion if expression comes from
6151         expansion.
6152
6153 2004-04-19  Sergey Rybin  <rybin@act-europe.fr>
6154
6155         * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
6156         Homonym_Number parameter, add processing for Source_Location parameter
6157         corresponding.
6158         (Check_Eliminated): Remove the check for homonym numbers, add the check
6159         for source location traces.
6160
6161         * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
6162         with Arg_Source_Location corresponding to the changes in the format of
6163         the pragma.
6164
6165         * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
6166         Eliminate pragma corresponding to the changes in the format of the
6167         pragma: Homonym_Number is replaced with Source_Location, two ways of
6168         distinguishing homonyms are mutially-exclusive.
6169
6170 2004-04-19  Joel Brobecker  <brobecker@gnat.com>
6171
6172         * get_targ.ads (Get_No_Dollar_In_Label): Remove.
6173
6174         * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
6175         No_Dollar_In_Label, no longer necessary, as it is always True.
6176         (Strip_Suffixes): Likewise.
6177
6178 2004-04-19  Gary Dismukes  <dismukes@gnat.com>
6179
6180         * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
6181         modulus for compatibility with size clause on targets with 16-bit
6182         Integer.
6183
6184         * layout.adb (Discrimify): In the case of private types, set Vtyp to
6185         full type to fix type mismatches on calls to size functions for
6186         discriminant-dependent array components.
6187
6188 2004-04-19  Jerome Guitton  <guitton@act-europe.fr>
6189
6190         * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
6191         lib.
6192
6193 2004-04-19  Pascal Obry  <obry@gnat.com>
6194
6195         * mdll-utl.adb (Locate): New version is idempotent.
6196
6197 2004-04-17  Laurent Guerby <laurent@guerby.net>
6198
6199         PR ada/14988 (partial)
6200         * impunit.adb: Fix typo.
6201
6202 2004-04-14  Nathanael Nerode  <neroden@gcc.gnu.org>
6203
6204         * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
6205         and install-rts-cert targets.  Remove all gnatlib and gnattools
6206         targets and all other rts-* targets (moved to libada).  Remove (now)
6207         unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
6208         TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
6209
6210 2004-04-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6211
6212         * trans.c (tree_transform): Shortcut returning error_mark_node for
6213         statements in annotate_only_mode.
6214         (tree_transform, case N_Label, case N_Return_Statement,
6215         N_Goto_Statement): Make statement tree instead of generating code.
6216         (tree_transform, case N_Assignment_Statement): No longer check
6217         type_annotate_only.
6218         (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
6219         RETURN_STMT): New.
6220         (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
6221         New fcns.
6222         (gnat_to_gnu): Collect any RTL generated and deal with it.
6223         (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
6224         (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
6225         (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
6226
6227         * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
6228
6229         * ada-tree.def (EXPR_STMT): Fix typo in name.
6230         (BLOCK_STMT, IF_STMT): New nodes.
6231
6232         * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
6233         LABEL_STMT_FIRST_IN_EH): New macros.
6234         (RETURN_STMT_EXPR): Likewise.
6235
6236         * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
6237         IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
6238
6239 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
6240
6241         * atree.ads: Correct documentation on extended nodes.
6242
6243         * link.c: Set run_path_option for FreeBSD.
6244
6245 2004-04-08  Vincent Celier  <celier@gnat.com>
6246
6247         * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
6248         one of the ALI file, do not link with DEC lib.
6249
6250         * par.adb Remove the last two characters ("%s" or "%b") when checking
6251         if a language defined unit may be recompiled.
6252
6253 2004-04-08  Ed Schonberg  <schonberg@gnat.com>
6254
6255         * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
6256         removal of abstract operation leaves no possible interpretation for
6257         expression.
6258
6259         * sem_eval.adb (Eval_Qualified_Expression): Use
6260         Set_Raises_Constraint_Error on node when needed, so that it does not
6261         get optimized away by subsequent optimizations.
6262
6263         * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
6264         operands even when they are not wrapped in a type conversion.
6265
6266 2004-04-08  Olivier Hainque  <hainque@act-europe.fr>
6267
6268         * sem_prag.adb (Set_Exported): Warn about making static as result of
6269         export only when the export is coming from source. This may be not
6270         be true e.g. on VMS where we expand export pragmas for exception codes
6271         together with imported or exported exceptions, and we don't want the
6272         user to be warned about something he didn't write.
6273
6274 2004-04-08  Thomas Quinot  <quinot@act-europe.fr>
6275
6276         * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
6277         duplication between normal entities and those declared as renamings.
6278         No functional change.
6279
6280         * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
6281         inline functions returning an unconstrained result.
6282
6283 2004-04-08  Eric Botcazou  <ebotcazou@act-europe.fr>
6284
6285         * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
6286         conform to what other front-ends do.
6287
6288 2004-04-08  Doug Rupp  <rupp@gnat.com>
6289
6290         * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
6291         libraries.
6292
6293 2004-04-06  Pascal Obry  <obry@gnat.com>
6294
6295         * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
6296
6297         * osint.adb (Program_Name): Do not look past a directory separator.
6298
6299 2004-04-06  Thomas Quinot  <quinot@act-europe.fr>
6300
6301         * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
6302
6303         * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
6304         requirement for preserving a copy of the original assignment node.
6305
6306         * sinfo.ads: Update comment (Original_Tree -> Original_Node).
6307
6308 2004-04-06  Olivier Hainque  <hainque@act-europe.fr>
6309
6310         (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
6311         when supported.
6312
6313 2004-04-06  Ed Schonberg  <schonberg@gnat.com>
6314
6315         * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
6316         operator calls in functional notation, and apply
6317         Universal_Interpretation to operands, not to their type.
6318
6319 2004-04-06  Robert Dewar  <dewar@gnat.com>
6320
6321         * 5wdirval.adb: Minor reformatting
6322
6323 2004-04-06  Ed Falis  <falis@gnat.com>
6324
6325         * gnat_rm.texi: Improve a reference to the GCC manual
6326
6327 2004-04-05  Vincent Celier  <celier@gnat.com>
6328
6329         * adaint.h, adaint.c: Add function __gnat_named_file_length
6330
6331         * impunit.adb: Add Ada.Directories to the list
6332
6333         * Makefile.in: Add VMS and Windows versions of
6334         Ada.Directories.Validity package body.
6335
6336         * Makefile.rtl: Add a-direct and a-dirval
6337
6338         * mlib-tgt.ads: Minor comment update.
6339
6340         * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
6341         a-direct.ads, a-direct.adb: New files.
6342
6343 2004-04-05  Vincent Celier  <celier@gnat.com>
6344
6345         PR ada/13620
6346         * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
6347         just to the compiler.
6348
6349 2004-04-05  Robert Dewar  <dewar@gnat.com>
6350
6351         * a-except.adb (Exception_Name_Simple): Make sure lower bound of
6352         returned string is 1.
6353
6354         * ali-util.adb: Use proper specific form for Warnings (Off, entity)
6355
6356         * eval_fat.ads: Minor reformatting
6357
6358         * g-curexc.ads: Document that lower bound of returned string values
6359         is always one.
6360
6361         * gnatlink.adb: Add ??? comment for previous change
6362         (need to document why this is VMS specific)
6363
6364         * s-stoele.ads: Minor reformatting
6365
6366         * tbuild.ads: Minor reformatting throughout (new function specs)
6367
6368         * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
6369         after WITH.
6370
6371         * scng.adb: Minor reformatting
6372
6373 2004-04-05  Geert Bosch  <bosch@gnat.com>
6374
6375         * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
6376         (Leading_Part): Still perform truncation to machine number if the
6377         specified radix_digits is greater or equal to machine_mantissa.
6378
6379 2004-04-05  Javier Miranda  <miranda@gnat.com>
6380
6381         * par-ch3.adb: Complete documentation of previous change
6382         Correct wrong syntax documentation of the OBJECT_DECLARATION rule
6383         (aliased must appear before constant).
6384
6385         * par-ch4.adb: Complete documentation of previous change.
6386
6387         * par-ch6.adb: Complete documentation of previous change.
6388
6389         * sinfo.ads: Fix typo in commment.
6390
6391 2004-04-05  Ed Schonberg  <schonberg@gnat.com>
6392
6393         * sem_ch3.adb (Inherit_Components): If derived type is private and has
6394         stored discriminants, use its discriminants to constrain parent type,
6395         as is done for non-private derived record types.
6396
6397         * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
6398         Ada 2005 AI-310: an abstract non-dispatching operation is not a
6399         candidate interpretation in an overloaded call.
6400
6401         * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
6402         expression is Null and target type is not an access type (e.g. a
6403         non-private address type).
6404
6405 2004-04-05  Thomas Quinot  <quinot@act-europe.fr>
6406
6407         * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
6408         statement whose right-hand side is an inlined call, save a copy of the
6409         original assignment subtree to preserve enough consistency for
6410         Analyze_Assignment to proceed.
6411
6412         * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
6413         complete assignment subtree which is now unnecessary, as the expansion
6414         of inlined call has been improved to preserve a consistent assignment
6415         tree.  Note_Possible_Modification must be called only
6416         after checks have been applied, or else unnecessary checks will
6417         be generated.
6418
6419         * sem_util.adb (Note_Possible_Modification): Reorganise the handling
6420         of explicit dereferences that do not Come_From_Source:
6421          - be selective on cases where we must go back to the dereferenced
6422            pointer (an assignment to an implicit dereference must not be
6423            recorded as modifying the pointer);
6424          - do not rely on Original_Node being present (Analyze_Assignment
6425            calls Note_Possible_Modification on a copied tree).
6426
6427         * sem_warn.adb (Check_References): When an unset reference to a pointer
6428         that is never assigned is encountered, prefer '<pointer> may be null'
6429         warning over '<pointer> is never assigned a value'.
6430
6431 2004-04-05  Ramon Fernandez  <fernandez@gnat.com>
6432
6433         * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
6434         the ABI.
6435
6436 2004-04-05  Olivier Hainque  <hainque@act-europe.fr>
6437
6438         * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
6439         libexc. We currently don't reference anything in this library and
6440         linking it in triggers linker warnings we don't want to see.
6441
6442         * init.c: Update comments.
6443
6444 2004-04-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6445
6446         * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
6447         * utils.c (create_field_decl): Likewise.
6448         * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
6449
6450 2004-04-02  Arnaud Charlet  <charlet@act-europe.fr>
6451
6452         * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
6453         Replace ifinfo by ifnottex, to make makeinfo --html happy again.
6454         Add info directory entry and category.
6455
6456 2004-04-02  Jan Hubicka  <jh@suse.cz>
6457
6458         * utils.c: Include function.h
6459         (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
6460
6461 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
6462
6463         PR ada/14150
6464         * Make-lang.in: Clean up generation of documentation
6465
6466         * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
6467
6468         * xgnatug.adb: Removed, replaced by xgnatugn.adb
6469
6470         * xgnatugn.adb: Replaces xgnatug.adb
6471
6472         * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
6473
6474         * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
6475
6476         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6477         gnat_ug_wnt.texi: Removed.
6478
6479 2004-04-01  Arnaud Charlet  <charlet@act-europe.fr>
6480
6481         * utils2.c: Update copyright notice.
6482
6483 2004-04-01  Robert Dewar  <dewar@gnat.com>
6484
6485         * checks.adb: Minor reformatting throughout
6486         Note that prev checkin added RM reference to alignment warning
6487
6488 2004-04-01  Ed Schonberg  <schonberg@gnat.com>
6489
6490         * exp_aggr.adb (Get_Component_Val): Treat a string literal as
6491         non-static when building aggregate for bit-packed array.
6492
6493         * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
6494         function call that is itself the actual in a procedure call, build
6495         temporary for it.
6496
6497         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
6498         a string literal, create a temporary for it, constant folding only
6499         handles scalars here.
6500
6501 2004-04-01  Vincent Celier  <celier@gnat.com>
6502
6503         * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
6504         Error_Msg_SP): New empty procedures to instantiate the Scanner.
6505         (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
6506         tokens.
6507         (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
6508         (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
6509         and get the checksum.
6510
6511         * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
6512         already in the Q.
6513         Increase the Marking_Label at the end of the Multiple_Main_Loop,
6514         instead of at the beginning.
6515
6516         * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
6517         directly.
6518         (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
6519         on VMS.
6520
6521         * osint.ads (Multi_Unit_Index_Character): New Character global variable
6522
6523         * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
6524         not '~' directly.
6525
6526         * par.adb: Remove test on file name to detect language defined units.
6527         Add test on unit name, after parsing, to detect language defined units
6528         that are not compiled with -gnatg (except System.RPC and its children)
6529
6530         * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
6531         following units without style checking.
6532
6533         * switch-c.adb: Change -gnatC to -gnateI
6534
6535         * usage.adb: Document new switch -gnateInnn
6536
6537         * scng.adb (Accumulate_Token_Checksum): New procedure
6538         (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
6539         word or literal number.
6540         (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
6541         numbers.
6542
6543 2004-04-01  Thomas Quinot  <quinot@act-europe.fr>
6544
6545         * a-tasatt.adb,
6546         g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
6547         switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
6548         5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
6549         5vtpopde.adb: Add missing 'constant' keywords.
6550
6551 2004-04-01  Javier Miranda  <miranda@gnat.com>
6552
6553         * par-ch4.adb: (P_Allocator): Code cleanup
6554
6555         * sem_ch3.adb (Access_Definition): Properly set the null-excluding
6556         attribute.
6557
6558         * sinfo.ads: Complete documentation of previous change
6559
6560 2004-04-01  Pascal Obry  <obry@gnat.com>
6561
6562         * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
6563         only on VMS.  This special handling was done because an old GNU/ld bug
6564         on Windows which has been fixed.
6565
6566 2004-04-01  GNAT Script  <nobody@gnat.com>
6567
6568         * Make-lang.in: Makefile automatically updated
6569
6570 2004-03-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6571
6572         * decl.c (gnat_to_gnu_entity, make_type_from_size):
6573         Use TYPE_UNSIGNED, not TREE_UNSIGNED.
6574         * trans.c (tree_transform, convert_with_check): Likewise.
6575         * utils.c (gnat_signed_or_unsigned_type): Likewise.
6576         (build_vms_descriptor, unchecked_convert): Likewise.
6577         * utils2.c (nonbinary_modular_operation): Likewise.
6578
6579 2004-03-29  Javier Miranda  <miranda@gnat.com>
6580
6581         * checks.adb (Null_Exclusion_Static_Checks): New subprogram
6582         (Install_Null_Excluding_Check): Local subprogram that determines whether
6583         an access node requires a runtime access check and if so inserts the
6584         appropriate run-time check.
6585         (Apply_Access_Check): Call Install_Null_Excluding check if required
6586         (Apply_Constraint_Check): Call Install_Null_Excluding check if required
6587
6588         * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
6589
6590         * einfo.ads: Fix typo in comment
6591
6592         * exp_ch3.adb (Build_Assignment): Generate conversion to the
6593         null-excluding type to force the corresponding run-time check.
6594         (Expand_N_Object_Declaration): Generate conversion to the null-excluding
6595         type to force the corresponding run-time check.
6596
6597         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
6598         the null-excluding type to force the corresponding run-time check.
6599
6600         * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
6601         case of access types unless they have the null-excluding attribute.
6602
6603         * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
6604         part.
6605
6606         * exp_util.ads: Fix typo in comment
6607
6608         * par.adb (P_Null_Exclusion): New subprogram
6609         (P_Subtype_Indication): New formal that indicates if the null-excluding
6610         part has been scanned-out and it was present
6611
6612         * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
6613
6614         * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
6615         (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
6616         type to force the corresponding run-time check
6617         (Resolve_Aggregate): Propagate the null-excluding attribute to the array
6618         components
6619         (Resolve_Array_Aggregate): Carry out some static checks
6620         (Resolve_Record_Aggregate.Get_Value): Carry out some static check
6621
6622         * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
6623         attribute must be set only if specified by means of the null-excluding
6624         part. In addition, we must also propagate the access-constant attribute
6625         if present.
6626         (Access_Subprogram_Declaration, Access_Type_Declaration,
6627         Analyze_Component_Declaration, Analyze_Object_Declaration,
6628         Array_Type_Declaration, Process_Discriminants,
6629         Analyze_Subtype_Declaration): Propagate the null-excluding attribute
6630         and carry out some static checks.
6631         (Build_Derived_Access_Type): Set the null-excluding attribute
6632         (Derived_Type_Declaration, Process_Subtype): Carry out some static
6633         checks.
6634
6635         * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
6636
6637         * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
6638
6639         * sem_ch6.adb (Process_Formals): Carry out some static checks.
6640         (Set_Actual_Subtypes): Generate null-excluding subtype if the
6641         null-excluding part was present; it is not required to be done here in
6642         case of anonymous access types.
6643         (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
6644         value.
6645
6646         * sem_res.adb (Resolve_Actuals): Carry out some static check
6647         (Resolve_Null): Allow null in anonymous access
6648
6649         * sinfo.adb: New subprogram Null_Exclusion_Present
6650         All_Present and Constant_Present available on access_definition nodes
6651
6652         * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
6653         object_declaration, derived_type_definition, component_definition,
6654         discriminant_specification, access_to_object_definition,
6655         access_function_definition, allocator, access_procedure_definition,
6656         access_definition, parameter_specification, All_Present and
6657         Constant_Present flags available on access_definition nodes.
6658
6659 2004-03-29  Robert Dewar  <dewar@gnat.com>
6660
6661         * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
6662         gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
6663         opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
6664         par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
6665         sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
6666         sem_prag.adb: Updates to handle multiple units/file
6667
6668         * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
6669
6670         * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
6671         sem_util.adb: Minor reformatting
6672
6673         * sem_ch12.adb: Add comment for previous change
6674
6675 2004-03-29  Laurent Pautet  <pautet@act-europe.fr>
6676
6677         * osint.adb (Executable_Prefix): Set Exec_Name to the current
6678         executable name when not initialized. Otherwise, use its current value.
6679
6680         * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
6681         initialize it to another executable name than the current one. This
6682         allows to configure paths for an executable name (gnatmake) different
6683         from the current one (gnatdist).
6684
6685 2004-03-29  Ed Schonberg  <schonberg@gnat.com>
6686
6687         * exp_ch6.adb (Expand_Call): A call to a function declared in the
6688         current unit cannot be inlined if it appears in the body of a withed
6689         unit, to avoid order of elaboration problems in gigi.
6690
6691         * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
6692         information for protected (wrapper) operation as well, to simplify gdb
6693         use.
6694
6695         * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
6696         protected body, indicate that the entity for the generated spec comes
6697         from source, to ensure that references are properly generated for it.
6698         (Build_Body_To_Inline): Do not inline a function that returns a
6699         controlled type.
6700
6701         * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
6702         apply convention to homonyms that are declared explicitly.
6703
6704         * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
6705         that renames an equality operator and the operands are overloaded,
6706         resolve them with the declared formal types, before rewriting as an
6707         operator.
6708
6709 2004-03-29  GNAT Script  <nobody@gnat.com>
6710
6711         * Make-lang.in: Makefile automatically updated
6712
6713 2004-03-25  Vasiliy Fofanov  <fofanov@act-europe.fr>
6714
6715         * memtrack.adb: Log realloc calls, which are treated as free followed
6716         by alloc.
6717
6718 2004-03-25  Vincent Celier  <celier@gnat.com>
6719
6720         * prj-makr.adb (Process_Directories): Detect when a file contains
6721         several units. Do not include such files in the config pragmas or
6722         in the naming scheme.
6723
6724         * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
6725         Resolve links only when not in Trusted_Mode.
6726         (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
6727         Do not resolve links for the display names.
6728
6729         * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
6730         resolve links when computing the display names.
6731
6732 2004-03-25  Thomas Quinot  <quinot@act-europe.fr>
6733
6734         * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
6735         attribute reference does not denote a subtype, it can be any
6736         expression that has a classwide type, potentially after an implicit
6737         dereference.  In particular, the prefix can be a view conversion for
6738         a classwide type (for which Is_Object_Reference holds), but it can
6739         also be a value conversion for an access-to-classwide type. In the
6740         latter case, there is an implicit dereference, and the original node
6741         for the prefix does not verify Is_Object_Reference.
6742
6743         * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
6744         conversion of a discriminant-dependent component of a mutable object
6745         is one itself.
6746
6747 2004-03-25  Ed Schonberg  <schonberg@gnat.com>
6748
6749         * freeze.adb (Freeze_Entity): When an inherited subprogram is
6750         inherited, has convention C, and has unconstrained array parameters,
6751         place the corresponding warning on the derived type declaration rather
6752         than the original subprogram.
6753
6754         * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
6755         indication on renaming declaration, if formal has a box and actual
6756         is absent.
6757
6758         * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
6759         determine whether to generate an implicit or explicit reference to
6760         the renamed entity.
6761
6762         * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
6763         subprogram renaming comes from a defaulted formal subprogram in an
6764         instance.
6765
6766 2004-03-25  Gary Dismukes  <dismukes@gnat.com>
6767
6768         * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
6769         value expressions to ensure that calls within a component definition
6770         will be checked (since those are evaluated during the record type's
6771         elaboration).
6772
6773 2004-03-25  Arnaud Charlet  <charlet@act-europe.fr>
6774
6775         * s-tpobop.adb: Code clean up:
6776         (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
6777         code.
6778         (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
6779
6780 2004-03-25  Jose Ruiz  <ruiz@act-europe.fr>
6781
6782         * Makefile.in: Clean up in the ravenscar run time.
6783
6784 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6785
6786         * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
6787         of No_Strict_Aliasing to build_pointer_type_for_mode.
6788         * utils.c (update_pointer_to): Walk pointer and ref chains.
6789
6790 2004-03-22  Cyrille Comar  <comar@act-europe.fr>
6791
6792         * ali.ads: Fix Comment about Dynamic_Elab.
6793
6794         * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
6795         Has_RACW, Is_Generic, etc.)
6796         (Output_Object, Gnatls): Take into account ALI files not attached to
6797         an object.
6798
6799 2004-03-22  Vincent Celier  <celier@gnat.com>
6800
6801         * gprep.adb: Change all String_Access to Name_Id
6802         (Is_ASCII_Letter): new function
6803         (Double_File_Name_Buffer): New procedure
6804         (Preprocess_Infile_Name): New procedure
6805         (Process_Files): New procedure
6806         (Gnatprep): Check if output and input are existing directories.
6807         Call Process_Files to do the real job.
6808
6809 2004-03-22  Robert Dewar  <dewar@gnat.com>
6810
6811         * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
6812         s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
6813
6814 2004-03-22  Sergey Rybin  <rybin@act-europe.fr>
6815
6816         * scn.adb (Contains): Add check for EOF, is needed for a degenerated
6817         case when the source contains only comments.
6818
6819 2004-03-22  Ed Schonberg  <schonberg@gnat.com>
6820
6821         * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
6822         declaration for a child subprogram body that acts as a spec, indicate
6823         that the entity in the declaration needs debugging information.
6824
6825         * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
6826         full view if the subtype is created for a constrained record component;
6827         gigi has enough information to construct the record, and there is no
6828         place in the tree for the declaration.
6829
6830         * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
6831         serial number for the dummy body that is built for analysis, to avoid
6832         inconsistencies in the generation of internal names when compiling
6833         with -gnatN.
6834
6835 2004-03-22  Thomas Quinot  <quinot@act-europe.fr>
6836
6837         * sem_util.adb (Is_Object_Reference): A view conversion denotes an
6838         object.
6839
6840 2004-03-22  GNAT Script  <nobody@gnat.com>
6841
6842         * Make-lang.in: Makefile automatically updated
6843
6844 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6845
6846         * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6847         * trans.c (tree_transform, emit_index_check): Likewise.
6848         * utils.c (build_template): Likewise.
6849         (max_size, convert): Remove handling of WITH_RECORD_EXPR.
6850         (maybe_unconstrained_array, unchecked_convert): Likewise.
6851         * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
6852         (build_unary_op): Likewise.
6853         (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
6854         (fill_vms_descriptor): Likewise.
6855         (build_call_alloc_dealloc): Likewise.
6856         ALIGN is unsigned.
6857         * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
6858
6859 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
6860
6861         PR other/14630
6862         * gnat_ug.texi: Add info directory category and entry.
6863         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
6864         gnat_ug_wnt.texi: Regenerate.
6865
6866 2004-03-19  Arnaud Charlet  <charlet@act-europe.fr>
6867
6868         * ada-tree.h: Update copyright notice.
6869         Minor reformatting.
6870
6871 2004-03-19  Olivier Hainque  <hainque@act-europe.fr>
6872
6873         * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
6874         as regular exception objects and not as mere integers representing the
6875         condition code.  The latter approach required some dynamics to mask off
6876         severity bits, which did not fit well into the GCC table based model.
6877         (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
6878         exception data objects. We don't it and it would conflict with the other
6879         external symbol we have to generate for such exceptions.
6880
6881         * trans.c (tree_transform, case N_Exception_Handler): Remove part of
6882         the special code for VMS exceptions, since these are now represented
6883         as regular exceptions objects.
6884
6885 2004-03-19 Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6886
6887         * decl.c (debug_no_type_hash): Remove.
6888         (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
6889         * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
6890
6891 2004-03-19  Laurent Guerby <laurent@guerby.net>
6892
6893         * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
6894         aggregate, allows bootstrap from 3.3 on powerpc-darwin.
6895
6896 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6897
6898         * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
6899         (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
6900         (TYPE_RM_SIZE_INT): Directly use type.values.
6901         (TREE_LOOP_ID): Clean up check.
6902         * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
6903         TYPE_VALUES, not TYPE_FIELDS.
6904         * trans.c (convert_with_check): Delay access of bounds of basetype
6905         until sure is numeric.
6906
6907 2004-03-18  Arnaud Charlet  <charlet@act-europe.fr>
6908
6909         * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
6910
6911         Code clean up:
6912         * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
6913         5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
6914         Specific.Set instead of direct call to e.g pthread_setspecific.
6915
6916 2004-03-18  Thomas Quinot  <quinot@act-europe.fr>
6917
6918         * adaint.c: Update comments.
6919
6920         * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
6921         GNATLIB_SHARED for FreeBSD.
6922
6923 2004-03-18  Jose Ruiz  <ruiz@act-europe.fr>
6924
6925         * init.c [VxWorks]: Do not fix the stack size for the environment task.
6926         When needed (stack checking) the stack size is retrieved
6927         from the VxWorks kernel.
6928
6929         * Makefile.in: Flag -nostdinc is required when building the run time
6930         for avoiding looking for files in the base compiler.
6931         Add the VxWorks specific version of the package body for
6932         System.Stack_checking.Operations (5zstchop.adb).
6933
6934         * Make-lang.in: Add the object file for
6935         System.Stack_Checking.Operations.
6936
6937         * Makefile.rtl: Add object file for the package
6938         System.Stack_Checking.Operations.
6939
6940         * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
6941
6942         * s-stache.ads, s-stache.adb: Move the operations related to stack
6943         checking from this package to package System.Stack_Checking.Operations.
6944         This way, stack checking operations are only linked in the final
6945         executable when using the -fstack-check flag.
6946
6947 2004-03-18  Doug Rupp  <rupp@gnat.com>
6948
6949         * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
6950         Reorganize ifeq's.
6951
6952         * 5qsystem.ads, 5xcrtl.ads: New files.
6953
6954 2004-03-18  Vincent Celier  <celier@gnat.com>
6955
6956         * prj.adb (Reset): Reset hash table Files_Htable
6957
6958         * prj-env.adb (Source_Paths, Object_Paths): New tables.
6959         (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
6960         the procedures Add_To_Path_File.
6961         (Set_Ada_Paths): Accumulate source and object dirs in the tables,
6962         making sure that each directory is present only once and, for object
6963         dirs, when a directory already present is added, the duplicate is
6964         removed and the directory is always put as the last in the table.
6965         Write the path files at the end of these accumulations.
6966
6967         * prj-nmsc.adb (Record_Source): Add source file name in hash table
6968         Files_Htable for all sources.
6969
6970         * prj-proc.adb (Process): Remove restrictions between not directly
6971         related extending projects.
6972
6973 2004-03-18  Emmanuel Briot  <briot@act-europe.fr>
6974
6975         * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
6976         (Find_Sources): Minor speed optimization.
6977
6978         * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
6979         parameter Trusted_Mode.
6980
6981 2004-03-18  Sergey Rybin  <rybin@act-europe.fr>
6982
6983         * scn.adb (Determine_License): Take into account a degenerated case
6984         when the source contains only comments.
6985
6986 2004-03-18  Ed Schonberg  <schonberg@gnat.com>
6987
6988         * sem_warn.adb (Check_References): For a warning on a selected
6989         component that does not come from source, locate an uninitialized
6990         component of the record type to produce a more precise error message.
6991
6992 2004-03-15  Jerome Guitton  <guitton@act-europe.fr>
6993
6994         * 3zsoccon.ads: Fix multicast options.
6995
6996         * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
6997         in the spec.
6998
6999 2004-03-15  Robert Dewar  <dewar@gnat.com>
7000
7001         * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
7002         pragma used for a private type.
7003
7004         * lib-xref.adb (Generate_Reference): Do not generate warning if
7005         reference is in a different unit from the pragma Unreferenced.
7006
7007         * 5vtpopde.adb: Minor reformatting
7008         Fix casing of To_Task_ID
7009
7010         * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
7011         flag if we have an unchecked conversion to an access type in the same
7012         unit.
7013
7014 2004-03-15  Geert Bosch  <bosch@gnat.com>
7015
7016         * a-ngcoty.adb (Modulus): In alternate formula for large real or
7017         imaginary parts, use Double precision throughout.
7018
7019         * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
7020         we want to be able to compile run-time with -gnata for testing, but
7021         this may also be instantiated in user code that is compiled with -gnata.
7022
7023 2004-03-15  Olivier Hainque  <hainque@act-europe.fr>
7024
7025         * s-stalib.ads (Exception_Code): New type, to represent Import/Export
7026         codes. Having a separate type for this is useful to enforce consistency
7027         throughout the various run-time units.
7028         (Exception_Data): Use Exception_Code for Import_Code.
7029
7030         * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
7031         Natural and Integer in various places.
7032         (Register_VMS_Exception): Use Base_Code_In to compute the exception code
7033         with the severity bits masked off.
7034         (Register_VMS_Exception): Handle the additional exception data pointer
7035         argument.
7036
7037         * raise.c (_GNAT_Exception structure): Remove the handled_by_others
7038         component, now reflected by an exported accessor.
7039         (is_handled_by): New routine to compute whether the propagated
7040         occurrence matches some handler choice specification. Extracted out of
7041         get_action_description_for, and expanded to take care of the VMS
7042         specifities.
7043         (get_action_description_for): Use is_handled_by instead of an explicit
7044         complex condition to decide if the current choice at hand catches the
7045         propagated occurrence.
7046
7047         * raise.h (Exception_Code): New type for C.
7048
7049         * rtsfind.ads (RE_Id, RE_Unit_Table): Add
7050         System.Standard_Library.Exception_Code, to allow references from the
7051         pragma import/export expander.
7052
7053         * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
7054         New accessors to allow easy access to GNAT exception data
7055         characteristics.
7056         (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
7057         redundant Handled_By_Others component, helper for the personality
7058         routine which will now be able to call the appropriate exception data
7059         accessor instead.
7060
7061         * cstand.adb (Create_Standard): Adjust the type of the Import_Code
7062         component of Standard_Exception_Type to be the closest possible to
7063         Exception_Code in System.Standard_Library, that we cannot get at this
7064         point. Expand a ??? comment to notify that this type node should
7065         probably be rewritten later on.
7066
7067         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
7068         registration call to include a pointer to the exception object in the
7069         arguments.
7070
7071         * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
7072         instead of int and explicit bitmasks.
7073
7074 2004-03-15  Vincent Celier  <celier@gnat.com>
7075
7076         * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
7077         equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
7078
7079         * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
7080         longer needed now that it is in the spec of
7081         System.Tasking.Task_Attributes.
7082
7083         * adaint.h, adaint.c: (__gnat_create_output_file): New function
7084
7085         * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
7086
7087         * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
7088
7089         * make.adb (Gnatmake): Do not check the executable suffix; it is being
7090         taken care of in Scan_Make_Arg.
7091         (Scan_Make_Arg): Add the executable suffix only if the argument
7092         following -o, in canonical case, does not end with the executable
7093         suffix.  When in verbose mode and executable file name does not end
7094         with executable suffix, output the executable name, in canonical case.
7095
7096         * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
7097         to avoid warnings when instantiating Ada.Task_Attributes.
7098         Minor reformating.
7099
7100         * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
7101         in the correct order.
7102
7103         * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
7104         redirect standard output and error to a file for the invocation of the
7105         compiler, then read the file.
7106
7107         * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
7108         directory, instead of the Value.
7109         (Find_Source_Dirs): Remove useless code & comments.
7110
7111 2004-03-15  Ed Schonberg  <schonberg@gnat.com>
7112
7113         * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
7114         tagged type is inherited, and the parent operation is not frozen yet,
7115         force generation of a freeze node for the inherited operation, so the
7116         corresponding dispatch entry is properly initialized.
7117         (Make_Predefined_Primitive_Specs): Check that return type is Boolean
7118         when looking for user-defined equality operation.
7119
7120         * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
7121         boolean when locating primitive equality of tagged component.
7122
7123         * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
7124         bit-aligned field and the right-hand side a string literal, introduce
7125         a temporary before expanding assignment into a loop.
7126
7127         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
7128         priority in full, to ensure that any expanded subepxressions of it are
7129         elaborated in the scope of the init_proc.
7130
7131         * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
7132         after object declaration, skipping over code that may have been
7133         generated for validity checks.
7134
7135         * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
7136         discriminants, ignore the known discriminants of its full view, if
7137         any, to check legality.
7138
7139         * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
7140         component if type has unknown discriminants.
7141         (Analyze_Private_Extension_Declaration): Discriminant constraint is
7142         null if type has unknown discriminants.
7143
7144         * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
7145         for end label when present.
7146
7147         * s-fileio.adb (Open): When called with a C_Stream, use given name for
7148         temporary file, rather than an empty string.
7149
7150 2004-03-15  Ed Falis  <falis@gnat.com>
7151
7152         * s-thread.adb: Removed, no longer used.
7153
7154 2004-03-15  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7155
7156         * decl.c (target.h): Now include.
7157         (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
7158         in new build_pointer_from_mode calls for non-fat/non-thin pointer.
7159         (validate_size): For POINTER_TYPE, get smallest size permitted on
7160         machine.
7161
7162         * fe.h: Sort Einfo decls and add Set_Mechanism.
7163
7164         * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
7165         (ada/decl.o): Depends on target.h.
7166
7167         * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
7168         FUNCTION_BOUNDARY; always use TYPE_ALIGN.
7169
7170 2004-03-15  Thomas Quinot  <quinot@act-europe.fr>
7171
7172         * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
7173
7174         * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
7175         Insert_Dereference_Action when rewriting an implicit dereference into
7176         an explicit one, this will be taken care of during expansion of the
7177         explicit dereference.
7178         (Expand_N_Slice): Same. Always do the rewriting, even for the case
7179         of non-packed slices, since the dereference action generated by
7180         expansion of the explicit dereference is needed in any case.
7181         (Expand_N_Selected_Component): When rewriting an implicit dereference,
7182         analyze and resolve the rewritten explicit dereference so it is seen
7183         by the expander.
7184         (Insert_Dereference_Action): This procedure is now called only for the
7185         expansion of an N_Explcit_Dereference_Node. Do insert a check even for
7186         dereferences that do not come from source (including explicit
7187         dereferences resulting from rewriting implicit ones), but do not
7188         recursively insert a check for the dereference nodes contained within
7189         the check.
7190         (Insert_Dereference_Action): Clarify and correct comment.
7191
7192 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
7193
7194         PR ada/14131
7195         Move language detection to the top level.
7196         * config-lang.in: Build by default.
7197
7198 2004-03-05  Robert Dewar  <dewar@gnat.com>
7199
7200         * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
7201
7202         * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
7203         i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
7204         5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
7205         5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
7206         unchecked conversion to spec to avoid warnings.
7207
7208         * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
7209         to Task_ID
7210
7211         * 7stpopsp.adb: Correct casing in To_Task_ID call
7212
7213         * a-strsea.ads, a-strsea.adb: Minor reformatting
7214
7215         * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
7216
7217         * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
7218         Adjust Max_Msg_Length to be clearly large enough.
7219
7220         * fe.h: Define In_Same_Source_Unit
7221
7222         * osint.adb: Add pragma Warnings Off to suppress warnings
7223         * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
7224         aliasing warnings.
7225
7226         * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
7227
7228         * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
7229
7230         * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
7231
7232         * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
7233
7234         * sem_prag.adb: Implement pragma No_Strict_Aliasing.
7235
7236         * sinfo.ads: Remove obsolete comment on validate unchecked conversion
7237         node. We now do generate them for gcc back end.
7238
7239         * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
7240         warning.
7241
7242         * sinput-c.adb: Fix bad name in header.
7243         Add pragma Warnings Off to suppress aliasing warning.
7244
7245         * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
7246
7247         * snames.h, snames.ads, snames.adb: Add entry for pragma
7248         No_Strict_Aliasing.
7249
7250 2004-03-05  Vincent Celier  <celier@gnat.com>
7251
7252         * prj-com.ads: Add hash table Files_Htable to check when a file name
7253         is already a source of another project.
7254
7255         * prj-nmsc.adb (Record_Source): Before recording a new source, check
7256         if its file name is not already a source of another project. Report an
7257         error if it is.
7258
7259         * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
7260         source file name, call gnatpp with all the sources of the main project.
7261
7262         * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
7263         of file names.
7264
7265         * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
7266         NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
7267         /RUNTIME_SYSTEM=, converted to --RTS=
7268         /NOTABS, converted to -notabs
7269
7270 2004-03-05  Pascal Obry  <obry@gnat.com>
7271
7272         * make.adb: Minor reformatting.
7273
7274 2004-03-05  Ed Schonberg  <schonberg@gnat.com>
7275
7276         Part of implemention of AI-262.
7277         * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
7278
7279         * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
7280         procedure.
7281
7282         * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
7283         when component type is a partially constrained class-wide subtype.
7284         (Constrain_Discriminated_Type): If parent type has unknown
7285         discriminants, a constraint is illegal, even if full view has
7286         discriminants.
7287         (Build_Derived_Record_Type): Inherit discriminants when deriving a type
7288         with unknown discriminants whose full view is a discriminated record.
7289
7290         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
7291         flag, to handle properly derivations of tagged types with unknown
7292         discriminants.
7293         (Analyze_Package_Spec, Analyze_Package_Body): Install
7294         Private_With_Clauses before analyzing private part or body.
7295
7296         * einfo.ads: Indicate that both Has_Unknown_Discriminants and
7297         Has_Discriminants can be true for a given type (documentation).
7298
7299 2004-03-05  Arnaud Charlet  <charlet@act-europe.fr>
7300
7301         * s-restri.ads: Fix license (GPL->GMGPL).
7302
7303         * s-tassta.adb: Minor reformatting.
7304
7305         * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
7306         by calls to Exit_One_ATC_Level, since additional clean up is performed
7307         by this function.
7308
7309         * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
7310         by calls to Exit_One_ATC_Level, since additional clean up is performed
7311         by this function.
7312
7313 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7314
7315         * trans.c: Reflect GCC changes to fix bootstrap problem.
7316         Add warning for suspicious aliasing unchecked conversion.
7317
7318 2004-03-05  GNAT Script  <nobody@gnat.com>
7319
7320         * Make-lang.in: Makefile automatically updated
7321
7322 2004-03-02  Emmanuel Briot  <briot@act-europe.fr>
7323
7324         * ali.adb (Read_Instantiation_Instance): Do not modify the
7325         current_file_num when reading information about instantiations, since
7326         this corrupts files in later references.
7327
7328 2004-03-02  Vincent Celier  <celier@gnat.com>
7329
7330         * bcheck.adb (Check_Consistency): Get the full path of an ALI file
7331         before checking if it is read-only.
7332
7333         * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
7334         of SRC_DIRS and eliminate duplicates.
7335
7336         * gprcmd.adb: Replace command "path" with command "path_sep" to return
7337         the path separator.
7338         (Usage): Document path_sep
7339
7340         * Makefile.generic: For Ada and GNU C++ cases, link directly with the
7341         C++ compiler. No need for a script.
7342         Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
7343         Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
7344         subst.
7345
7346         * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
7347         where there are Ada sources.
7348         (Set_Ada_Paths): Only add to the include path the source dirs of project
7349         with Ada sources.
7350         (Add_To_Path): Add the Display_Values of the directories, not their
7351         Values.
7352
7353         * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
7354         data.
7355
7356         * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
7357         is not No_Name.
7358         (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
7359         Value is canonicalized.
7360         (Language_Independent_Check): Do not copy Value to Display_Value when
7361         canonicalizing Value.
7362
7363         * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
7364         path to find limited with cycles.
7365         (Parse_Single_Project): Use canonical cased path to find the end of a
7366         with cycle.
7367
7368 2004-03-02  Ed Schonberg  <schonberg@gnat.com>
7369
7370         * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
7371         and not a child unit.
7372
7373         * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
7374         appear in a with_clause.
7375
7376         * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
7377         only happen in type_annotate mode, do not try to elaborate it.
7378
7379         * exp_util.adb (Force_Evaluation): If expression is a selected
7380         component on the left of an assignment, use a renaming rather than a
7381         temporary to remove side effects.
7382
7383         * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
7384         inlined instance body, which is analyzed before the end of the
7385         enclosing scope.
7386
7387 2004-03-02  Robert Dewar  <dewar@gnat.com>
7388
7389         * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
7390         sem_ch4.adb: Use new feature for substitution of keywords in VMS
7391
7392         * errout.ads, errout.adb: Implement new circuit for substitution of
7393         keywords in VMS.
7394
7395         * sem_case.adb (Analyze_Choices): Place message properly when case is
7396         a subtype reference rather than an explicit range.
7397
7398         * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
7399
7400 2004-03-02  Doug Rupp  <rupp@gnat.com>
7401
7402         * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
7403
7404 2004-03-02  Thomas Quinot  <quinot@act-europe.fr>
7405
7406         * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
7407
7408 2004-03-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7409
7410         * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
7411         BLKmode bitfield.
7412
7413 2004-02-25  Robert Dewar  <dewar@gnat.com>
7414
7415         * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
7416         55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
7417         5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
7418         5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
7419         5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
7420         5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
7421         the defining instance of the type to avoid aliasing problems.
7422         Fix copyright header.  Fix bad comments in package header.
7423
7424         * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
7425
7426 2004-02-25  Ed Schonberg  <schonberg@gnat.com>
7427
7428         * exp_ch2.adb (Param_Entity): Handle properly formals that have been
7429         rewritten as references when aliased through an address clause.
7430
7431         * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
7432         whether call can be interpreted as an indirect call to the result of a
7433         parameterless function call returning an access subprogram.
7434
7435 2004-02-25  Arnaud Charlet  <charlet@act-europe.fr>
7436
7437         Code clean up:
7438         * exp_ch7.adb (Make_Clean): Remove generation of calls to
7439         Unlock[_Entries], since this is now done by Service_Entries directly.
7440
7441         * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
7442
7443         * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
7444         Requeue_Call for better code readability. Change spec and update calls:
7445         PO_Service_Entries now unlock the PO on exit.
7446         (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
7447         PO_Service_Entries.
7448
7449         * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
7450
7451         * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
7452
7453 2004-02-25  Sergey Rybin  <rybin@act-europe.fr>
7454
7455         * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
7456         protected subprogram call and analyzing the result of such expanding
7457         in case when the called protected subprogram is eliminated.
7458
7459         * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
7460         names.
7461
7462 2004-02-25  Jerome Guitton  <guitton@act-europe.fr>
7463
7464         * Makefile.in: Clean ups.
7465
7466 2004-02-23  Ed Schonberg  <schonberg@gnat.com>
7467
7468         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
7469         protected operations if original subprogram is flagged as eliminated.
7470         (Expand_N_Subprogram_Body): For a protected operation, create
7471         discriminals for next operation before checking whether the operation
7472         is eliminated.
7473
7474         * exp_ch9.adb (Expand_N_Protected_Body,
7475         Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
7476         for internal protected operations if the original subprogram is
7477         eliminated.
7478
7479         * sem_elim.adb (Check_Eliminated): Handle properly protected operations
7480         declared in a single protected object.
7481
7482 2004-02-23  Vincent Celier  <celier@gnat.com>
7483
7484         * prj-attr.adb: Make attribute Builder'Executable an associative array,
7485         case insensitive if file names are case insensitive, instead of a
7486         standard associative array.
7487
7488         * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
7489         them as case insensitive on platforms where the file names are case
7490         sensitive.
7491
7492         * prj-part.adb (Parse_Single_Project): Make sure, when checking if
7493         project file has already been parsed that canonical path are compared.
7494
7495 2004-02-23  Robert Dewar  <dewar@gnat.com>
7496
7497         * sinput-c.ads: Correct bad unit title in header
7498
7499         * freeze.adb: Minor reformatting
7500
7501 2004-02-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7502
7503         * trans.c (tree_transform, case N_Procedure_Call_Statement): For
7504         nonaddressable COMPONENT_REF that is removing padding that we are
7505         taking the address of, take the address of the padded record instead
7506         if item is variable size.
7507
7508 2004-02-20  Robert Dewar  <dewar@gnat.com>
7509
7510         * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
7511
7512 2004-02-20  Ed Schonberg  <schonberg@gnat.com>
7513
7514         * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
7515         itype references for the constrained designated type of a component
7516         whose base type is already frozen.
7517
7518 2004-02-20  Arnaud Charlet  <charlet@act-europe.fr>
7519
7520         * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
7521         avoid GCC warnings.
7522
7523 2004-02-20  Sergey Rybin  <rybin@act-europe.fr>
7524
7525         * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
7526         identifier for a phantom package that rewrites the formal package
7527         declaration with a box. The Add semantic decorations for the defining
7528         identifier from the original node (that represents the formal package).
7529
7530 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
7531
7532         * Make-lang.in (ada/stamp-sdefault): Use the top level
7533         move-if-change.
7534
7535 2004-02-19  Richard Henderson  <rth@redhat.com>
7536
7537         * misc.c (record_code_position): Add third build arg for RTL_EXPR.
7538
7539 2004-02-18  Emmanuel Briot  <briot@act-europe.fr>
7540
7541         * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
7542         Scan_ALI can be used for multiple ALI files without reinitializing
7543         between calls.
7544
7545 2004-02-18  Robert Dewar  <dewar@gnat.com>
7546
7547         * debug.adb: Minor reformatting.
7548
7549 2004-02-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7550
7551         * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
7552         to zero if there is an address clause.
7553
7554 2004-02-18  Thomas Quinot  <quinot@act-europe.fr>
7555
7556         * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
7557
7558 2004-02-18  Gary Dismukes  <dismukes@gnat.com>
7559
7560         * layout.adb (Layout_Component_List): Revise generation of call to
7561         discriminant-checking function to pass selections of all of the type's
7562         discriminants rather than just the variant-controlling discriminant.
7563
7564 2004-02-18  Olivier Hainque  <hainque@act-europe.fr>
7565
7566         * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
7567         fail in the current setup and triggers spurious system error messages.
7568         Pretend it occurred and failed instead.
7569
7570 2004-02-18  Vincent Celier  <celier@gnat.com>
7571
7572         * bld.adb: Mark FLDFLAGS as saved
7573         (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
7574         it is not the root project.  Put each directory to be
7575         extended between double quotes to prevent it to be expanded on Windows.
7576         (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
7577         the project file. Set them back to their initial values if they have not
7578         been set in the project file.
7579
7580         * gprcmd.adb: (Gprdebug, Debug): New global variables
7581         (Display_Command): New procedure
7582         (Usage): Document new command "linkopts"
7583         Call Display_Command when env var GPRDEBUG has the value "TRUE"
7584         Implement new command "linkopts"
7585         Remove quotes that may be around arguments for "extend"
7586         Always call Normalize_Pathname with arguments formatted for the platform
7587
7588         * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
7589         Change @echo to @$(display) in target clean to be able to clean silently
7590
7591         * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
7592
7593         * prj-part.adb (Project_Path_Name_Of): Do not put final result in
7594         canonical case.
7595
7596         * prj-part.adb (Parse_Single_Project): Always call with From_Extended
7597         = Extending_All when current project is an extending all project.
7598
7599         * vms_conv.adb (Output_File_Expected): New Boolean global variable,
7600         set to True only for LINK command, after Unix switch -o.
7601         (Process_Arguments): Set Output_File_Expected to True for LINK command
7602         after Unix switch -o. When Output_File_Expected is True, never add an
7603         extension to a file name.
7604
7605         * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
7606         option file name, only to the --for-linker= switch.
7607         (Option_File_Name): If option file name do not end with ".opt", append
7608         "/OPTIONS".
7609
7610 2004-02-18  GNAT Script  <nobody@gnat.com>
7611
7612         * Make-lang.in: Makefile automatically updated
7613
7614 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
7615
7616         * Make-lang.in (stamp-sdefault): Do not depend on
7617         move-if-change.
7618
7619 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
7620
7621         * config-lang.in: Disable Ada by default until probe logic for
7622         a bootstrap Ada compiler can be moved to the top level configure
7623         script.
7624
7625 2004-02-12  Olivier Hainque  <hainque@act-europe.fr>
7626
7627         * decl.c (components_to_record): Don't claim that the internal fields
7628         we make to hold the variant parts are semantically addressable, because
7629         they are not.
7630
7631         * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
7632         adjust the comment describing the modular type form when we can use it.
7633         (Install_PAT): Account for the Esiz renaming.
7634
7635         * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
7636         sc_onstack context indication before raising the exception to which
7637         the signal is mapped. Allows better handling of later signals possibly
7638         triggered by the resumed user code if the exception is handled.
7639
7640 2004-02-12  Arnaud Charlet  <charlet@act-europe.fr>
7641
7642         * 5zinit.adb: Removed, no longer used.
7643
7644 2004-02-12  Robert Dewar  <dewar@gnat.com>
7645
7646         * ali.adb: Remove separating space between parameters on R line. Makes
7647         format consistent with format used by the binder for Set_Globals call.
7648
7649         * atree.ads, atree.adb: Minor reformatting (new function header format)
7650
7651         * bindgen.adb: Add Run-Time Globals documentation section containing
7652         detailed documentation of the globals passed from the binder file to
7653         the run time.
7654
7655         * gnatls.adb: Minor reformatting
7656
7657         * init.c (__gnat_set_globals): Add note pointing to documentation in
7658         bindgen.
7659
7660         * lib-writ.ads, lib-writ.adb: Remove separating space between
7661         parameters on R line.
7662         Makes format consistent with format used by the binder for Set_Globals
7663         call.
7664
7665         * osint.ads: Add 2004 to copyright notice
7666         Minor reformatting
7667
7668         * snames.ads: Correct capitalization of FIFO_Within_Priorities
7669         Noticed during code reading, documentation issue only
7670
7671         * usage.adb: Remove junk line for obsolete C switch
7672         Noticed during code reading
7673
7674 2004-02-12  Vincent Celier  <celier@gnat.com>
7675
7676         * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
7677         extend for each directory, so that multiple /** directories are
7678         extended individually.
7679         (Recursive_Process): Set the default for LANGUAGES to ada
7680
7681         * gprcmd.adb: Define new command "ignore", to do nothing.
7682         Implement new comment "path".
7683
7684         * Makefile.generic: Suppress output when SILENT is set
7685         Make sure that when compiler for C/C++ is gcc, the correct -x switch is
7686         used, so that the correct compiler is invoked.
7687         When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
7688         CXX_INCLUDE_PATH, to avoid failure with too long command lines.
7689
7690 2004-02-12  Jerome Guitton  <guitton@act-europe.fr>
7691
7692         * Makefile.in: Clean ups and remove obsolete targets.
7693
7694 2004-02-12  Ed Schonberg  <schonberg@gnat.com>
7695
7696         * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
7697         predicate declared in exp_util.
7698
7699         * exp_util.adb: Add comments.
7700
7701         * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
7702         visibility before compiling context of the subunit.
7703
7704         * sem_res.adb (Check_Parameterless_Call): If the context expects a
7705         value but the name is a procedure, do not attempt to analyze as a call,
7706         in order to obtain more telling diagnostics.
7707
7708         * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
7709         'Access on parameterless function calls.
7710         (Normalize_Actuals): For a parameterless function call with missing
7711         actuals, defer diagnostic until resolution of enclosing call.
7712
7713         * sem_util.adb (Wrong_Type): If the context type is an access to
7714         subprogram and the expression is a procedure name, suggest a missing
7715         'attribute.
7716
7717 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>,
7718             Nathanael Nerode  <neroden@gcc.gnu.org>
7719
7720         PR ada/6637, PR ada/5911
7721         Merge with libada-branch:
7722         * config-lang.in: Build libada only when ada is built.
7723
7724 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
7725
7726         * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
7727         for a tagged type, verify that both formals have the same type.
7728
7729         * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
7730         temporary when the formal is an in-parameter and the actual a possibly
7731         unaligned slice.
7732
7733         * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
7734         when expansion is disabled, to ensure proper name capture with
7735         overloaded literals.  Condition can be of any boolean type, resolve
7736         accordingly.
7737
7738         * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
7739         renaming is for a formal subprogram with a default operator name, and
7740         there is a usable operator that is visible at the point of
7741         instantiation.
7742
7743 2004-02-09  Robert Dewar  <dewar@gnat.com>
7744
7745         * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
7746         rewrite to ignore errors in ali files, intended to allow tools downward
7747         compatibility with new versions of ali files.
7748
7749         * ali.ads: Add new parameter Ignore_Errors
7750
7751         * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
7752         duplicating the error message giving the file with restrictions.
7753
7754         * debug.adb: Add debug flag I for gnatbind
7755
7756         * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
7757         operators for the case where the operator is a defining operator.
7758
7759         * exp_ch3.adb: Minor reformatting (new function spec format).
7760
7761         * exp_ch4.adb: Add comment for previous change, and make minor
7762         adjustment to loop to always check for improper loop termination.
7763         Minor reformatting throughout (new function spec format).
7764
7765         * gnatbind.adb: Implement -di debug flag for gnatbind
7766
7767         * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
7768
7769         * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
7770
7771         * lib-load.adb: Fix bad assertion.
7772         Found by testing and code reading.
7773         Minor reformatting.
7774
7775         * lib-load.ads: Minor reformatting.
7776
7777         * lib-writ.adb: There is only one R line now.
7778
7779         * lib-writ.ads: Add documentation on making downward compatible changes
7780         to ali files so old tools work with new ali files.
7781         There is only one R line now.
7782         Add documentation on format incompatibilities (with special GPS note)
7783
7784         * namet.ads, namet.adb: (Is_Operator_Name): New procedure
7785
7786         * par-load.adb: Minor reformatting
7787
7788         * sem_ch8.adb: Fix to error message from last update
7789         Minor reformatting and restructuring of code from last update
7790
7791         * par-prag.adb, snames.adb, snames.ads, snames.h,
7792         sem_prag.adb: Implement pragma Profile.
7793
7794         * stylesw.adb: Implement -gnatyN switch to turn off all style check
7795         options.
7796
7797         * usage.adb: Add line for -gnatyN switch
7798
7799         * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
7800
7801 2004-02-09  Albert Lee  <lee@gnat.com>
7802
7803         * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
7804
7805 2004-02-09  Ed Schonberg  <schonberg@gnat.com>
7806
7807         * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
7808         slices.
7809
7810         * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
7811         is nested in an instance that is not frozen yet, to avoid
7812         order-of-elaboration problems in gigi.
7813
7814         * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
7815         body the attribute is legal.
7816
7817 2004-02-09  Robert Dewar  <dewar@gnat.com>
7818
7819         * s-rident.ads: Minor comment correction
7820
7821         * targparm.adb: Remove dependence on uintp completely. There was
7822         always a bug in Make in that it called Targparm before initializing
7823         the Uint package. The old code appeared to get away with this, but
7824         the new code did not! This caused an assertion error in gnatmake.
7825
7826         * targparm.ads: Fix bad comment, restriction pragmas with parameters
7827         are indeed fully supported.
7828
7829 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
7830
7831         * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
7832
7833 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
7834
7835         * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
7836         with targetm.calls.promote_prototypes.
7837
7838 2004-02-04  Robert Dewar  <dewar@gnat.com>
7839
7840         * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
7841         ali.ads, gprcmd.adb: Minor reformatting
7842
7843         * bindgen.adb: Output restrictions string for new style restrictions
7844         handling
7845
7846         * impunit.adb: Add s-rident.ads (System.Rident) and
7847         s-restri (System.Restrictions)
7848
7849         * lib-writ.adb: Fix bug in writing restrictions string (last few
7850         entries wrong)
7851
7852         * s-restri.ads, s-restri.adb: Change name Restrictions to
7853         Run_Time_Restrictions to avoid conflict with package name.
7854         Add circuit to read and acquire run time restrictions.
7855
7856 2004-02-04  Jose Ruiz  <ruiz@act-europe.fr>
7857
7858         * restrict.ads, restrict.adb: Use the new restriction
7859         No_Task_Attributes_Package instead of the old No_Task_Attributes.
7860
7861         * sem_prag.adb: No_Task_Attributes is a synonym of
7862         No_Task_Attributes_Package.
7863
7864         * snames.ads, snames.adb: New entry for proper handling of
7865         No_Task_Attributes.
7866
7867         * s-rident.ads: Adding restriction No_Task_Attributes_Package
7868         (AI-00249) that supersedes the GNAT specific restriction
7869         No_Task_Attributes.
7870
7871 2004-02-04  Ed Schonberg  <schonberg@gnat.com>
7872
7873         * sem_prag.adb:
7874         (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
7875          body, an identifier may be wrapped in an unchecked conversion.
7876
7877 2004-02-04  Vincent Celier  <celier@gnat.com>
7878
7879         * lib-writ.ads: Comment update for the W lines
7880
7881         * bld.adb: (Expression): An empty string list is static
7882
7883         * fname-uf.adb: Minor comment update
7884
7885         * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
7886
7887         * gnatbind.adb: Initialize Cumulative_Restrictions with the
7888         restrictions on the target.
7889
7890 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
7891
7892         * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
7893         gen_rtx.
7894
7895 2004-02-02  Arnaud Charlet  <charlet@gnat.com>
7896
7897         * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
7898
7899 2004-02-02  Vincent Celier  <celier@gnat.com>
7900
7901         * gprcmd.adb (Check_Args): If condition is false, print the invoked
7902         comment before the usage.
7903         Gprcmd: Fail when command is not recognized.
7904         (Usage): Document command "prefix"
7905
7906         * g-md5.adb (Digest): Process last block.
7907         (Update): Do not process last block. Store remaining characters and
7908         length in Context.
7909
7910         * g-md5.ads (Update): Document that several call to update are
7911         equivalent to one call with the concatenated string.
7912         (Context): Add fields to allow new Update behaviour.
7913
7914         * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
7915         defaulted to False.
7916         When May_Fail is True and no existing file can be found, return No_File.
7917
7918         * 6vcstrea.adb: Inlined functions are now wrappers to implementation
7919         functions.
7920
7921         * lib-writ.adb (Write_With_Lines): When body file does not exist, use
7922         spec file name instead on the W line.
7923
7924 2004-02-02  Robert Dewar  <dewar@gnat.com>
7925
7926         * ali.adb: Read and acquire info from new format restrictions lines
7927
7928         * bcheck.adb: Add circuits for checking restrictions with parameters
7929
7930         * bindgen.adb: Output dummy restrictions data
7931         To be changed later
7932
7933         * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
7934         exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
7935         freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
7936         sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
7937         sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
7938
7939         * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
7940         the warning message on access to possibly uninitialized variable S)
7941         Minor changes for new restrictions handling.
7942
7943         * gnatbind.adb: Minor reformatting
7944         Minor changes for new restrictions handling
7945         Move circuit for -r processing here from bcheck (cleaner)
7946
7947         * gnatcmd.adb, gnatlink.adb: Minor reformatting
7948
7949         * lib-writ.adb: Output new format restrictions lines
7950
7951         * lib-writ.ads: Document new R format lines for new restrictions
7952         handling.
7953
7954         * s-restri.ads/adb: New files
7955
7956         * Makefile.rtl: Add entry for s-restri.ads/adb
7957
7958         * par-ch3.adb: Fix bad error messages starting with upper case letter
7959         Minor reformatting
7960
7961         * restrict.adb: Major rewrite throughout for new restrictions handling
7962         Major point is to handle restrictions with parameters
7963
7964         * restrict.ads: Major changes in interface to handle restrictions with
7965         parameters. Also generally simplifies setting of restrictions.
7966
7967         * snames.ads/adb: New entry for proper handling of No_Requeue
7968
7969         * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
7970         restriction counting.
7971         Other minor changes for new restrictions handling
7972
7973         * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
7974         Restriction_Warnings now allows full parameter notation
7975         Major rewrite of Restrictions for new restrictions handling
7976
7977 2004-02-02  Javier Miranda  <miranda@gnat.com>
7978
7979         * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
7980         syntax rule for object renaming declarations.
7981         (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
7982         component definitions.
7983
7984         * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
7985         components.
7986         (Array_Type_Declaration): Give support to access components. In addition
7987         it was also modified to reflect the name of the object in anonymous
7988         array types. The old code did not take into account that it is possible
7989         to have an unconstrained anonymous array with an initial value.
7990         (Check_Or_Process_Discriminants): Allow access discriminant in
7991         non-limited types.
7992         (Process_Discriminants): Allow access discriminant in non-limited types
7993         Initialize the new Access_Definition field in N_Object_Renaming_Decl
7994         node.  Change Ada0Y to Ada 0Y in comments
7995
7996         * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
7997         equality operators.
7998         Change Ada0Y to Ada 0Y in comments
7999
8000         * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
8001         renamings Change Ada0Y to Ada 0Y in comments
8002
8003         * sem_type.adb (Find_Unique_Type): Give support to the equality
8004         operators for universal access types
8005         Change Ada0Y to Ada 0Y in comments
8006
8007         * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
8008
8009         * sinfo.ads (N_Component_Definition): Addition of Access_Definition
8010         field.
8011         (N_Object_Renaming_Declaration): Addition of Access_Definition field
8012         Change Ada0Y to Ada 0Y in comments
8013
8014         * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
8015         component definition and object renaming nodes
8016         Change Ada0Y to Ada 0Y in comments
8017
8018 2004-02-02  Jose Ruiz  <ruiz@act-europe.fr>
8019
8020         * restrict.adb: Use the new restriction identifier
8021         No_Requeue_Statements instead of the old No_Requeue for defining the
8022         restricted profile.
8023
8024         * sem_ch9.adb (Analyze_Requeue): Check the new restriction
8025         No_Requeue_Statements.
8026
8027         * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
8028         that supersedes the GNAT specific restriction No_Requeue. The later is
8029         kept for backward compatibility.
8030
8031 2004-02-02  Ed Schonberg  <schonberg@gnat.com>
8032
8033         * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
8034         5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
8035         pragma and fix incorrect ones.
8036
8037         * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
8038         warning if the pragma is redundant.
8039
8040 2004-02-02  Thomas Quinot  <quinot@act-europe.fr>
8041
8042         * 5staprop.adb: Add missing 'constant' keywords.
8043
8044         * Makefile.in: use consistent value for SYMLIB on
8045         platforms where libaddr2line is supported.
8046
8047 2004-02-02  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8048
8049         * utils.c (end_subprog_body): Do not call rest_of_compilation if just
8050         annotating types.
8051
8052 2004-02-02  Olivier Hainque  <hainque@act-europe.fr>
8053
8054         * init.c (__gnat_install_handler): Setup an alternate stack for signal
8055         handlers in the environment thread. This allows proper propagation of
8056         an exception on stack overflows in this thread even when the builtin
8057         ABI stack-checking scheme is used without support for a stack reserve
8058         region.
8059
8060         * utils.c (create_field_decl): Augment the head comment about bitfield
8061         creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
8062         here, because the former is not accurate enough at this point.
8063         Let finish_record_type decide instead.
8064         Don't make a bitfield if the field is to be addressable.
8065         Always set a size for the field if the record is packed, to ensure the
8066         checks for bitfield creation are triggered.
8067         (finish_record_type): During last pass over the fields, clear
8068         DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
8069         not covered by the calls to layout_decl.  Adjust DECL_NONADDRESSABLE_P
8070         from DECL_BIT_FIELD.
8071
8072 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
8073
8074         * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
8075         (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
8076         (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
8077
8078 2004-01-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8079
8080         * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
8081
8082         * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
8083         (ZCX_By_Default): Likewise.
8084         (Front_End_ZCX_Support): Likewise.
8085
8086         * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
8087         (Initialize_Lock): Mark Level unreferenced.
8088         (Sleep): Mark Reason unreferenced.
8089         (Timed_Sleep): Likewise.
8090         (Wakeup): Likewise.
8091         (Exit_Task): Use Result.
8092         (Check_No_Locks): Mark Self_ID unreferenced.
8093
8094         * 5gtasinf.adb (New_Sproc): Make Attr constant.
8095         (Bound_Thread_Attributes): Make Sproc constant.
8096         (New_Bound_Thread_Attributes): Likewise.
8097
8098 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
8099
8100         * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
8101         one-dimensional array an slice assignments, when component type is
8102         controlled.
8103
8104         * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
8105         component type is controlled, and control_actions are in effect, use
8106         TSS procedure rather than generating inline code.
8107
8108         * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
8109         arrays with controlled components.
8110
8111 2004-01-26  Vincent Celier  <celier@gnat.com>
8112
8113         * gnatcmd.adb (GNATCmd): Add specification of argument file on the
8114         command line for the non VMS case.
8115
8116         * gnatlink.adb (Process_Binder_File): When building object file, if
8117         GNU linker is used, put all object paths between quotes, to prevent ld
8118         error when there are unusual characters (such as '!') in the paths.
8119
8120         * Makefile.generic: When there are sources in Ada and the main is in
8121         C/C++, invoke gnatmake with -B, instead of -z.
8122
8123         * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
8124         from VMS_Conversion.
8125         (Process_Argument): New procedure, extracted from VMS_Conversion. Add
8126         specification of argument file on the command line.
8127
8128 2004-01-26  Bernard Banner  <banner@gnat.com>
8129
8130         * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
8131
8132 2004-01-26  Ed Schonberg  <schonberg@gnat.com>
8133
8134         * snames.adb: Update copyright notice.
8135         Add info on slice assignment for controlled arrays.
8136
8137 2004-01-23  Robert Dewar  <dewar@gnat.com>
8138
8139         * exp_aggr.adb: Minor reformatting
8140
8141         * exp_ch9.adb: Minor code clean up
8142         Minor reformatting
8143         Fix bad character in comment
8144
8145         PR ada/13471
8146         * targparm.adb (Get_Target_Parameters): Give clean abort error on
8147         unexpected end of file, along with more detailed message.
8148
8149 2004-01-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8150
8151         * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
8152         PAT.
8153
8154         * decl.c (copy_alias_set): New function.
8155         (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
8156
8157 2004-01-23  Doug Rupp  <rupp@gnat.com>
8158
8159         * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
8160         lib$${file} in case subsequent character is not a separator.
8161
8162 2004-01-23  Vincent Celier  <celier@gnat.com>
8163
8164         * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
8165         when the GCC version is at least 3.
8166
8167         * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
8168         Remove all "Opt.", to prepare for opt split
8169
8170         * prj-part.adb (Parse_Single_Project): New Boolean out parameter
8171         Extends_All. Set to True when the project parsed is an extending all
8172         project. Fails for importing an extending all project only when the
8173         imported project is an extending all project.
8174         (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
8175         depending on the value of Extends_All returned.
8176
8177         * prj-proc.adb (Process): Check that no project shares its object
8178         directory with a project that extends it, directly or indirectly,
8179         including a virtual project.
8180         Check that no project extended by another project shares its object
8181         directory with another also extended project.
8182
8183         * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
8184         Kind = N_With_Clause
8185
8186         * prj-tree.ads: Minor reformatting
8187         Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
8188
8189 2004-01-23  Ed Schonberg  <schonberg@gnat.com>
8190
8191         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
8192         applies to a type with an incomplete view, use full view in Name of
8193         clause, for consistency with uses of Get_Attribute_Definition_Clause.
8194
8195 2004-01-23  Arnaud Charlet  <charlet@act-europe.fr>
8196
8197         * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
8198         SCHED_RR, since other values are not supported by this policy.
8199         (Initialize): Move initialization of mutex attribute to package
8200         elaboration, to prevent early access to this variable.
8201
8202         * Makefile.in: Remove mention of Makefile.adalib, unused.
8203
8204         * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
8205         1ssecsta.ads: Removed, unused.
8206
8207 2004-01-21  Javier Miranda  <miranda@gnat.com>
8208
8209         * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
8210         entity if already built in the current scope.
8211
8212         * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
8213         reminder in internal scopes. Required for nested limited aggregates.
8214
8215 2004-01-21  Doug Rupp  <rupp@gnat.com>
8216
8217         * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
8218         VMS. Replace all occurences of libgnat- and libgnarl- with
8219         libgnat$(hyphen) and libgnarl$(hyphen).
8220         Fixed shared library build problem on VMS.
8221
8222 2004-01-21  Robert Dewar  <dewar@gnat.com>
8223
8224         * mlib-prj.adb: Minor reformatting
8225
8226 2004-01-21  Thomas Quinot  <quinot@act-europe.fr>
8227
8228         * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
8229         'constant' keywords for declaration of pointers that are not modified.
8230
8231         * exp_pakd.adb: Fix English in comment.
8232
8233 2004-01-21  Ed Schonberg  <schonberg@gnat.com>
8234
8235         PR ada/10889
8236         * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
8237         copy all attributes of the parent, including the foreign language
8238         convention.
8239
8240 2004-01-21  Sergey Rybin  <rybin@act-europe.fr>
8241
8242         PR ada/10565
8243         * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
8244         for 'delay until' statement.
8245
8246 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
8247
8248         * Make-lang.in: Replace $(docdir) with doc.
8249         (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
8250         doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
8251         to use consistent MAKEINFO rule.
8252         (ada.man, ada.srcman): Dummy entry.
8253         (ADA_INFOFILES): Define.
8254         (ada.info, ada.srcinfo): New rules.
8255
8256 2004-01-19  Arnaud Charlet  <charlet@act-europe.fr>
8257
8258         * utils.c: Update copyright notice, missed in previous change.
8259
8260 2004-01-19  Vincent Celier  <celier@gnat.com>
8261
8262         * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
8263         args if Bind is True. Set First_ALI, if not already done.
8264         (Build_Library): For Stand Alone Libraries, extract from one ALI file
8265         an eventual --RTS switch, for gnatbind, and all backend switches +
8266         --RTS, for linking.
8267
8268 2004-01-19  Robert Dewar  <dewar@gnat.com>
8269
8270         * sem_attr.adb, memtrack.adb: Minor reformatting
8271
8272 2004-01-19  Ed Schonberg  <schonberg@gnat.com>
8273
8274         * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
8275         that rename enumeration literals. This is properly done in sem_eval.
8276
8277         * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
8278         to functions that rename enumeration literals.
8279
8280         * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
8281         functions that rename enumeration literals.
8282
8283 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
8284
8285         * Make-lang.in (utils.o): Depend on target.h.
8286         * utils.c: Include target.h.
8287         (process_attributes): Use targetm.have_named_sections instead
8288         of ASM_OUTPUT_SECTION_NAME.
8289
8290 2004-01-16  Andreas Jaeger  <aj@suse.de>
8291
8292         * Makefile.in: Add $(DESTDIR).
8293
8294 2004-01-15  Olivier Hainque  <hainque@act-europe.fr>
8295
8296         * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
8297         also when not defining if a Size clause applies. That information is
8298         not to be ignored.
8299
8300 2004-01-15  Arnaud Charlet  <charlet@act-europe.fr>
8301
8302         * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
8303         symbolic links for the shared gnat run time when needed.
8304
8305 2004-01-15  Vasiliy Fofanov  <fofanov@act-europe.fr>
8306
8307         * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
8308         for writing, and terminate with an error message if not.
8309
8310 2004-01-15  Ed Schonberg  <schonberg@gnat.com>
8311
8312         * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
8313         warning on an access to subprogram in an instance, when the target
8314         type is declared in the same generic unit.
8315         (Eval_Attribute): If 'access is known to fail accessibility check,
8316         rewrite as a raise statement.
8317
8318 2004-01-15  GNAT Script  <nobody@gnat.com>
8319
8320         * Make-lang.in: Makefile automatically updated
8321
8322 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
8323
8324         * Make-lang.in (ada.srcextra): Dummy entry.
8325
8326 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
8327
8328         * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
8329
8330 2004-01-13  Ed Schonberg  <schonberg@gnat.com>
8331
8332         * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
8333         components that are initialized with aggregates.
8334
8335 2004-01-13  Vincent Celier  <celier@gnat.com>
8336
8337         * gnatlink.adb (Process_Binder_File): To find directory of shared
8338         libgcc, if "gcc-lib" is not a subdirectory, look for the last
8339         subdirectory "lib" in the path of the shared libgnat or libgnarl.
8340
8341         * make.adb (Gnatmake): If GCC version is at least 3, link with
8342         -shared-libgcc, when there is at least one shared library project.
8343
8344         * opt.ads (GCC_Version): New integer constant.
8345
8346         * adaint.c (get_gcc_version): New function.
8347
8348 2004-01-13  Robert Dewar  <dewar@gnat.com>
8349
8350         * sem_dist.adb, sem_res.adb, sem_util.adb,
8351         sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
8352         exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
8353
8354 2004-01-13  Thomas Quinot  <quinot@act-europe.fr>
8355
8356         * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
8357         g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
8358         declarations.
8359
8360 2004-01-12  Arnaud Charlet  <charlet@act-europe.fr>
8361
8362         * misc.c: Remove trailing spaces.
8363         Update copyright notice missed in previous change.
8364
8365         PR ada/13572
8366         * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
8367         prefix/share/make
8368
8369         * Makefile.generic: Update copyright.
8370         Add license notice.
8371
8372         * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
8373         of prefix/share/make.
8374
8375         * Makefile.prolog: Update copyright.
8376         Add license notice.
8377
8378 2004-01-12  Laurent Pautet  <pautet@act-europe.fr>
8379
8380         * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
8381         3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
8382         g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
8383         instead of String.
8384
8385         * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
8386         signature.
8387
8388 2004-01-12  Javier Miranda  <miranda@gnat.com>
8389
8390         * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
8391         exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
8392         sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
8393         sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
8394         Component_Definition node.
8395
8396 2004-01-12  Ed Falis  <falis@gnat.com>
8397
8398         * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
8399
8400 2004-01-12  Thomas Quinot  <quinot@act-europe.fr>
8401
8402         * link.c: Change default libgnat kind to STATIC for FreeBSD.
8403
8404 2004-01-12  Bernard Banner  <banner@gnat.com>
8405
8406         * Makefile.in: map 86numaux to a-numaux for x86_64
8407
8408 2004-01-12  Ed Schonberg  <schonberg@gnat.com>
8409
8410         * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
8411         generated to rename a generic actual, go to the actual itself, the
8412         subtype is not a user-visible entity.
8413
8414         * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
8415         part is a private subtype, reset the visibility of its full view, if
8416         any, to be consistent.
8417
8418         PR ada/13417
8419         * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
8420         to use a generic package G as a formal package for another generic
8421         declared within G.
8422
8423 2004-01-12  Robert Dewar  <dewar@gnat.com>
8424
8425         * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
8426
8427         * usage.adb: Remove mention of obsolete -gnatwb switch
8428         Noticed during code reading
8429
8430 2004-01-12  Jerome Guitton  <guitton@act-europe.fr>
8431
8432         * 1ssecsta.adb: Minor changes for -gnatwa warnings
8433
8434 2004-01-12  GNAT Script  <nobody@gnat.com>
8435
8436         * Make-lang.in: Makefile automatically updated
8437
8438 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
8439
8440         * misc.c (gnat_expand_expr): Add alt_rtl parameter.
8441
8442 2004-01-07  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8443
8444         * link.c [sgi] (shared_libgnat_default): Change to STATIC.
8445
8446 2004-01-05  Kelley Cook  <kcook@gcc.gnu.org>
8447
8448         * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
8449         Update comment and copyright date.
8450         * stamp-xgnatug: Delete.
8451
8452 2004-01-05  Robert Dewar  <dewar@gnat.com>
8453
8454         * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
8455         be modified by the binder generated main program if the -D switch is
8456         used.
8457
8458         * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
8459         imported functions (since now we expect this to be done for imported
8460         functions)
8461
8462         * 5vtaprop.adb: Add several ??? for sections requiring more comments
8463         Minor reformatting throughout
8464
8465         * 5zinit.adb: Minor reformatting
8466         Add 2004 to copyright date
8467         Minor changes to avoid -gnatwa warnings
8468         Correct some instances of using OR instead of OR ELSE (noted while
8469         doing reformatting)
8470
8471         * sprint.adb: Minor updates to avoid -gnatwa warnings
8472
8473         * s-secsta.ads, s-secsta.adb:
8474         (SS_Get_Max): New function to obtain high water mark for ss stack
8475         Default_Secondary_Stack is not a constant since it may be modified by
8476         the binder generated main program if the -D switch is used.
8477
8478         * switch-b.adb: New -Dnnn switch for binder
8479
8480         * switch-c.adb:
8481         Make -gnatg imply all warnings currently in -gnatwa
8482
8483         * vms_conv.adb: Minor reformatting
8484         Add 2004 to copyright notice
8485         Add 2004 to printed copyright notice
8486
8487         * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
8488         3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
8489         5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
8490         5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
8491         5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
8492         5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
8493         5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
8494         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
8495         5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
8496         5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
8497         6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
8498         vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
8499         xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
8500         sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
8501         checks.adb, clean.adb, cstand.adb, einfo.ads,
8502         einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
8503         exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
8504         prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
8505         sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
8506         g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
8507         lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
8508         Minor reformatting and code clean ups.
8509         Minor changes to prevent -gnatwa warnings
8510
8511         * ali.adb: Minor reformatting and cleanup of code
8512         Acquire new SS indication of secondary stack use from ali files
8513
8514         * a-numaux.ads: Add Pure_Function pragmas for all imported functions
8515         (since now we expect this to be done for imported functions)
8516
8517         * bindgen.adb: Generate call to modify default secondary stack size if
8518         -Dnnn switch given
8519
8520         * bindusg.adb: Add line for new -D switch
8521
8522         * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
8523         replacement name for Type_May_Have_Non_Bit_Aligned_Components!
8524         Add circuitry for both records and arrays to avoid gigi
8525         processing if the type involved has non-bit-aligned components
8526
8527         * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
8528         N_String_Literal node always references an E_String_Literal_Subtype
8529         entity. This may not be true in the future.
8530         (Possible_Bit_Aligned_Component): Move processing of
8531         Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
8532
8533         * exp_ch6.adb (Expand_Thread_Body): Pick up
8534         Default_Secondary_Stack_Size as variable so that we get value modified
8535         by possible -Dnnn binder parameter.
8536
8537         * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
8538         (Type_May_Have_Bit_Aligned_Components): New function.
8539
8540         * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
8541         (Type_May_Have_Bit_Aligned_Components): New function.
8542
8543         * fe.h: (Set_Identifier_Casing): Fix prototype.
8544         Add declaration for Sem_Elim.Eliminate_Error_Msg.
8545         Minor reformatting.
8546
8547         * freeze.adb (Freeze_Entity): Add RM reference to error message about
8548         importing constant atomic/volatile objects.
8549         (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
8550         unless explicit Pure_Function pragma given, to avoid insidious bug of
8551         call to non-pure imported function getting eliminated.
8552
8553         * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
8554         gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
8555         gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
8556         Add 2004 to printed copyright notice
8557
8558         * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
8559         stack used.
8560
8561         * Makefile.rtl: Add entry for g-sestin.o
8562         g-sestin.ads: New file.
8563
8564         * mdll.adb: Minor changes to avoid -gnatwa warnings
8565
8566         * mlib-tgt.adb: Minor reformatting
8567
8568         * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
8569         New switch Sec_Stack_Used (GNAT, GNATBIND)
8570         Make Default_Secondary_Stack_Size a variable instead of a constant,
8571         so that it can be modified by the new -Dnnn bind switch.
8572
8573         * rtsfind.adb (Load_Fail): Give full error message in configurable
8574         run-time mode if all_errors mode is set. This was not done in the case
8575         of a file not found, which was an oversight.
8576         Note if secondary stack unit is used by compiler.
8577
8578         * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
8579         ineffective elaborate all pragmas on non-visible packages (this
8580         happened when a renamed subprogram was called). Now the elaborate all
8581         always goes on the package containing the renaming rather than the one
8582         containing the renamed subprogram.
8583
8584         * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
8585         (Process_Eliminate_Pragma): Add parameter to capture pragma location.
8586
8587         * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
8588         has an Etype that references an E_String_Literal.
8589         (Eval_String_Literal): Avoid assumption that N_String_Literal node
8590         always references an E_String_Literal_Subtype entity. This may not
8591         be true in the future.
8592
8593         * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
8594         pragma location.
8595
8596         * sem_res.adb (Resolve): Specialize msg for function name used in proc
8597         call.
8598
8599 2004-01-05  Ed Falis  <falis@gnat.com>
8600
8601         * g-debuti.adb: Replaced direct boolean operator with short-circuit
8602         form.
8603
8604 2004-01-05  Vincent Celier  <celier@gnat.com>
8605
8606         * bld.adb: Minor comment updates
8607         (Process_Declarative_Items): Correct incorrect name (Index_Name instead
8608         of Item_Name).
8609
8610         * make.adb (Gnatmake): Special process for files to compile/check when
8611         -B is specified. Fail when there are only foreign mains in attribute
8612         Main of the project file and -B is not specified. Do not skip bind/link
8613         steps when -B is specified.
8614
8615         * makeusg.adb: Document new switch -B
8616
8617         * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
8618
8619         * switch-m.adb: (Scan_Make_Switches): Process -B switch
8620
8621         * vms_data.ads: Add new GNAT PRETTY qualifier
8622         /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
8623
8624 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8625
8626         * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
8627         case.
8628
8629         * misc.c (gnat_printable_name): If VERBOSITY is 2, call
8630         Set_Identifier_Casing.
8631
8632         * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
8633         has size that overflows.
8634
8635 2004-01-05  Gary Dismukes  <dismukes@gnat.com>
8636
8637         * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
8638         -gnatwa warning on static condition.
8639
8640 2004-01-05  Doug Rupp  <rupp@gnat.com>
8641
8642         * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
8643
8644 2004-01-05  Arnaud Charlet  <charlet@act-europe.fr>
8645
8646         * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
8647         all attributes, including read-only attribute.
8648
8649 2004-01-05  Pascal Obry  <obry@gnat.com>
8650
8651         * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
8652         library naming scheme.
8653
8654         * mlib-prj.adb (Build_Library): Generate different names for the static
8655         or dynamic version of the GNAT runtime. This is needed to support the
8656         new shared library naming scheme.
8657         (Process_Binder_File): Add detection of shared library in binder file
8658         based on the new naming scheme.
8659
8660         * gnatlink.adb (Process_Binder_File): Properly detect the new naming
8661         scheme for the shared runtime libraries.
8662
8663         * Makefile.in:
8664         (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
8665         scheme.
8666         (install-gnatlib): Do not create symlinks for shared libraries.
8667         (gnatlib-shared-default): Idem.
8668         (gnatlib-shared-dual-win32): New target. Not used for now as the
8669         auto-import feature does not support arrays/records.
8670         (gnatlib-shared-win32): Do not create copy for the shared libraries.
8671         (gnatlib-shared-vms): Fix shared runtime libraries names.
8672
8673         * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
8674         dependent runtime shared library name.
8675
8676 2004-01-05  Vasiliy Fofanov  <fofanov@act-europe.fr>
8677
8678         * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
8679         than the object.
8680
8681 2004-01-05  Ed Schonberg  <schonberg@gnat.com>
8682
8683         * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
8684         protected objects when allocator has a subtype indication, not a
8685         qualified expression. Note that qualified expressions may have to be
8686         checked when limited aggregates are implemented.
8687
8688         * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
8689         pure, emit warning.
8690         (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
8691         subprogram is imported, remove warning.
8692
8693 2004-01-05  Geert Bosch  <bosch@gnat.com>
8694
8695         * s-poosiz.adb: Update copyright notice.
8696         (Allocate): Use Task_Lock to protect against concurrent access.
8697         (Deallocate): Likewise.
8698
8699 2004-01-05  Joel Brobecker  <brobecker@gnat.com>
8700
8701         * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
8702         comment.
8703
8704 2003-12-23  Kelley Cook  <kcook@gcc.gnu.org>
8705
8706         * gnat_ug.texi: Force a CVS commit by updating copyright.
8707         * gnat_ug_vxw.texi: Regenerate.
8708         * gnat_ug_wnt.texi: Regenerate.
8709         * gnat_ug_vms.texi: Regenerate.
8710         * gnat_ug_unx.texi: Regenerate.
8711
8712 2003-12-20  Kazu Hirata  <kazu@cs.umass.edu>
8713
8714         * trans.c: Remove uses of "register" specifier in
8715         declarations of local variables.
8716
8717 2003-12-18  Kelley Cook  <kcook@gcc.gnu.org>
8718
8719         * stamp-xgnatug: New stamp file.
8720         * Make-lang.in (stamp-xgnatug):  New stamp file and comment.
8721         (ada/doctools/xgnatug): Add $(build_exeext).
8722         (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
8723         ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
8724
8725 2003-12-17  Ed Falis  <falis@gnat.com>
8726
8727         * a-elchha.adb (Tailored_Exception_Information): made Info constant to
8728         eliminate warning.
8729
8730         * a-exextr.adb: Add context clause for
8731         Ada.Exceptions.Last_Chance_Handler.
8732
8733 2003-12-17  Sergey Rybin  <rybin@act-europe.fr>
8734
8735         * cstand.adb (Create_Standard): Change the way how the declaration of
8736         the Duration type is created (making it the same way as it is for all
8737         the other standard types).
8738
8739 2003-12-17  Robert Dewar  <dewar@gnat.com>
8740
8741         * s-crtl.ads: Fix header format
8742         Change Pure to Preelaborate
8743
8744 2003-12-17  Ed Schonberg  <schonberg@gnat.com>
8745
8746         * checks.adb (Selected_Length_Checks): Generate an Itype reference for
8747         the expression type only if it is declared in the current unit.
8748
8749         * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
8750         are universal and already analyzed, as can occur in constrained
8751         subcomponents that depend on discriminants, when one constraint is a
8752         subtype mark.
8753
8754         * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
8755         type Any_Fixed is legal as the argument of a conversion, if only one
8756         fixed-point type is in context.
8757
8758 2003-12-17  GNAT Script  <nobody@gnat.com>
8759
8760         * Make-lang.in: Makefile automatically updated
8761
8762 2003-12-15  Robert Dewar  <dewar@gnat.com>
8763
8764         * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
8765         sec stack size.
8766
8767 2003-12-15  Vincent Celier  <celier@gnat.com>
8768
8769         * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
8770         (Gnatchop): Do not set failure status when reporting the number of
8771         warnings.
8772
8773 2003-12-15  Doug Rupp  <rupp@gnat.com>
8774
8775         * s-ctrl.ads: New file.
8776
8777         * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
8778
8779         * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
8780         (GNATBIND_OBJS): Add ada/s-crtl.o.
8781
8782         * Makefile.in [VMS]: Clean up ifeq rules.
8783
8784         * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
8785         a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
8786         g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
8787         s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
8788         s-tasdeb.adb: Update copyright.
8789         Import System.CRTL.
8790         Make minor modifications to use System.CRTL declared functions instead
8791         of importing locally.
8792
8793 2003-12-15  GNAT Script  <nobody@gnat.com>
8794
8795         * Make-lang.in: Makefile automatically updated
8796
8797 2003-12-11  Ed Falis  <falis@gnat.com>
8798
8799         * 5zinit.adb: Clean up.
8800
8801         * 5zintman.adb (Notify_Exception): replaced case statement with a call
8802         to __gnat_map_signal, imported from init.c to support
8803         signal -> exception mappings that depend on the vxWorks version.
8804
8805         * init.c:
8806         Created and exported __gnat_map_signal to support signal -> exception
8807         mapping that is dependent on the VxWorks version.
8808         Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
8809
8810 2003-12-11  Vasiliy Fofanv  <fofanov@act-europe.fr>
8811
8812         * 5wosinte.ads: Link with -mthreads switch.
8813
8814 2003-12-11  Arnaud Charlet  <charlet@act-europe.fr>
8815
8816         * init.c (__gnat_install_handler [NetBSD]): Set
8817         __gnat_handler_installed, as done on all other platforms.
8818         Remove duplicated code.
8819
8820 2003-12-11  Jerome Guitton  <guitton@act-europe.fr>
8821
8822         * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
8823
8824 2003-12-11  Thomas Quinot  <quinot@act-europe.fr>
8825
8826         * sinfo.ads: Fix inconsistent example code in comment.
8827
8828 2003-12-11  Robert Dewar  <dewar@gnat.com>
8829
8830         * a-tiinau.adb: Add a couple of comments
8831
8832         * sem_ch3.adb: Minor reformatting
8833
8834         * sem_prag.adb:
8835         Fix bad prototype of Same_Base_Type in body (code reading cleanup)
8836         Minor reformatting throughout
8837
8838 2003-12-11  Ed Schonberg  <schonberg@gnat.com>
8839
8840         * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
8841         bounds of a loop, create a separate block in order to generate proper
8842         cleanup actions to prevent memory leaks.
8843
8844         * sem_res.adb (Resolve_Call): After a call to
8845         Establish_Transient_Scope, the call may be rewritten and relocated, in
8846         which case no further processing is needed.
8847
8848         * sem_util.adb: (Wrong_Type): Refine previous fix.
8849          Fixes ACATS regressions.
8850
8851         PR ada/13353
8852
8853         * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
8854         be inlined.
8855
8856 2003-12-08  Jerome Guitton  <guitton@act-europe.fr>
8857
8858         * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
8859         i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
8860         obsolete files.
8861
8862         * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
8863         (rts-zfp): Ditto.
8864
8865 2003-12-08  Robert Dewar  <dewar@gnat.com>
8866
8867         * 7sintman.adb: Minor reformatting
8868
8869         * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
8870         standard linker options to get standard libraries linked. We now plan
8871         to provide dummy versions of these libraries to match the appropriate
8872         configurable run-time (e.g. if a library is not needed at all, provide
8873         a dummy empty library).
8874
8875         * targparm.ads: Configurable_Run_Time mode no longer affects linker
8876         options (-L parameters and standard libraries). What we plan to do is
8877         to provide dummy libraries where the libraries are not required.
8878
8879         * gnatbind.adb: Minor comment improvement
8880
8881 2003-12-08  Javier Miranda  <miranda@gnat.com>
8882
8883         * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
8884         aggregate in the parent. Otherwise constants with limited aggregates
8885         are not supported. Add new formal to pass the component type (Ctype).
8886         It is required to call the corresponding IP subprogram in case of
8887         default initialized components.
8888         (Gen_Assign): In case of default-initialized component, generate a
8889         call to the IP subprogram associated with the component.
8890         (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
8891         of aggregate with default initialized components.
8892         (Has_Default_Init_Comps): Improve implementation to recursively check
8893         all the present expressions.
8894
8895         * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
8896         to indicate that the initialization call corresponds to a
8897         default-initialized component of an aggregate.
8898         In case of default initialized aggregate with tasks this parameter is
8899         used to generate a null string (this is just a workaround that must be
8900         improved later). In case of discriminants, this parameter is used to
8901         generate a selected component node that gives access to the discriminant
8902         value.
8903
8904         * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
8905         subprogram, based on Build_Task_Allocate_Block, but adapted to expand
8906         allocated aggregates with default-initialized components.
8907
8908         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
8909         the box notation is used in positional aggregates.
8910
8911 2003-12-08  Samuel Tardieu  <tardieu@act-europe.fr>
8912
8913         * lib.ads: Fix typo in comment
8914
8915 2003-12-08  Vincent Celier  <celier@gnat.com>
8916
8917         * prj.adb (Project_Empty): New component Unkept_Comments
8918         (Scan): Remove procedure; moved to Prj.Err.
8919
8920         * prj.ads (Project_Data): New Boolean component Unkept_Comments
8921         (Scan): Remove procedure; moved to Prj.Err.
8922
8923         * prj-dect.adb: Manage comments for the different declarations.
8924
8925         * prj-part.adb (With_Record): New component Node
8926         (Parse): New Boolean parameter Store_Comments, defaulted to False.
8927         Set the scanner to return ends of line and comments as tokens, if
8928         Store_Comments is True.
8929         (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
8930         comments are associated with these nodes. Store the node IDs in the
8931         With_Records.
8932         (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
8933         With_Records.
8934         (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
8935         the N_Project node. Call Tree.Save and Tree.Reset before scanning the
8936         current project. Call Tree.Restore afterwards. Set the various nodes
8937         for comment storage (Next_End, End_Of_Line, Previous_Line,
8938         Previous_End).
8939
8940         * prj-part.ads (Parse): New Boolean parameter Store_Comments,
8941         defaulted to False.
8942
8943         * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
8944         to False. When Truncated is True, truncate the string, never go to the
8945         next line.
8946         (Write_End_Of_Line_Comment): New procedure
8947         (Print): Process comments for nodes N_With_Clause,
8948         N_Package_Declaration, N_String_Type_Declaration,
8949         N_Attribute_Declaration, N_Typed_Variable_Declaration,
8950         N_Variable_Declaration, N_Case_Construction, N_Case_Item.
8951         Process nodes N_Comment.
8952
8953         * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
8954         without comments and there are some comments, set the flag
8955         Unkept_Comments to True.
8956         (Scan): If there are comments, set the flag Unkept_Comments to True and
8957         clear the comments.
8958         (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
8959         (Next_End_Nodes: New table
8960         (Comment_Zones_Of): New function
8961         (Scan): New procedure; moved from Prj. Accumulate comments in the
8962         Comments table and set end of line comments, comments after, after end
8963         and before end.
8964         (Add_Comments): New procedure
8965         (Save, Restore, Seset_State): New procedures
8966         (There_Are_Unkept_Comments): New function
8967         (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
8968         (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
8969         procedures.
8970         (First_Comment_After, First_Comment_After_End): New functions
8971         (First_Comment_Before, First_Comment_Before_End): New functions
8972         (Next_Comment): New function
8973         (End_Of_Line_Comment, Follows_Empty_Line,
8974         Is_Followed_By_Empty_Line): New functions
8975         (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
8976         (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
8977         (Set_Next_Comment): New procedure
8978         (Default_Project_Node): Associate comment before if the node can store
8979         comments.
8980
8981         * scans.ads (Token_Type): New enumeration value Tok_Comment
8982         (Comment_Id): New global variable
8983
8984         * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
8985         defaulted to False.
8986         (Scan): Store position of start of comment. If comments are tokens, set
8987         Comment_Id and set Token to Tok_Comment when scanning a comment.
8988         (Set_Comment_As_Token): New procedure
8989
8990         * sinput-p.adb: Update Copyright notice
8991         (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
8992         that no longer exists.
8993
8994 2003-12-08  Javier Miranda  <miranda@gnat.com>
8995
8996         * sem_aggr.adb: Add dependence on Exp_Tss package
8997         Correct typo in comment
8998         (Resolve_Aggregate): In case of array aggregates set the estimated
8999         type of the aggregate before calling resolve. This is needed to know
9000         the name of the corresponding IP in case of limited array aggregates.
9001         (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
9002         in case of default initialized array components.
9003
9004         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
9005         types. Required to give support to limited aggregates in generic
9006         formals.
9007
9008 2003-12-08  Ed Schonberg  <schonberg@gnat.com>
9009
9010         * sem_ch3.adb (Check_Initialization): For legality purposes, an
9011         inlined body functions like an instantiation.
9012         (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
9013         until bounds are analyzed, to diagnose premature use of type.
9014
9015         * sem_util.adb (Wrong_Type): Improve error message when the type of
9016         the expression is used prematurely.
9017
9018 2003-12-08  GNAT Script  <nobody@gnat.com>
9019
9020         * Make-lang.in: Makefile automatically updated
9021
9022 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
9023
9024         * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
9025         they are automatically generated by Make-lang.in and cause nothing but
9026         maintenance troubles.
9027
9028 2003-12-05  Thomas Quinot  <quinot@act-europe.fr>
9029
9030         * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
9031         version of this unit).
9032
9033 2003-12-05  Olivier Hainque  <hainque@act-europe.fr>
9034
9035         * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
9036         5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
9037         5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
9038         the body of System.Interrupt_Management common to several targets.
9039         Update copyright notice when appropriate.
9040
9041         * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
9042         constant.
9043
9044         * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
9045         to ensure that the kernel fills in the interrupted context structure
9046         before calling a signal handler, which is necessary to be able to
9047         unwind past it. Update the copyright notice.
9048
9049 2003-12-05  Jerome Guitton  <guitton@act-europe.fr>
9050
9051         * a-elchha.ads: New file.
9052
9053         * a-elchha.adb: New default last chance handler. Contents taken from
9054         Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
9055
9056         * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
9057         is moved to a-elchha.adb to provide a target-independent default last
9058         chance handler.
9059
9060         * Makefile.rtl: Add a-elchha.o
9061
9062         * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
9063
9064 2003-12-05  Ed Schonberg  <schonberg@gnat.com>
9065
9066         * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
9067         declared in an instance, do not inline the call if the instance is not
9068         frozen yet, to prevent order of elaboration problems.
9069
9070         * sem_prag.adb: Add comments for previous fix.
9071
9072 2003-12-05  Samuel Tardieu  <tardieu@act-europe.fr>
9073
9074         * g-table.adb: Use the right variable in Set_Item.
9075         Update copyright notice.
9076
9077 2003-12-05  Arnaud Charlet  <charlet@act-europe.fr>
9078
9079         * Makefile.in: Remove unused rules.
9080
9081 2003-12-05  Vincent Celier  <celier@gnat.com>
9082
9083         * switch-c.adb (Scan_Front_End_Switches): Remove processing of
9084         -nostdlib. Not needed here after all.
9085
9086 2003-12-03  Thomas Quinot  <quinot@act-europe.fr>
9087
9088         PR ada/11724
9089
9090         * adaint.h, adaint.c, g-os_lib.ads:
9091         Do not assume that the offset argument to lseek(2) is a 32 bit integer,
9092         on some platforms (including FreeBSD), it is a 64 bit value.
9093         Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
9094
9095 2003-12-03  Arnaud Charlet  <charlet@act-europe.fr>
9096
9097         * gnatvsn.ads (Library_Version): Now contain only the relevant
9098         version info.
9099         (Verbose_Library_Version): New constant.
9100
9101         * g-spipat.adb, g-awk.adb, g-debpoo.adb,
9102         g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
9103         s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
9104
9105         * gnatlbr.adb: Clean up: replace Library_Version by
9106         Verbose_Library_Version.
9107
9108         * make.adb, lib-writ.adb, exp_attr.adb:
9109         Clean up: replace Library_Version by Verbose_Library_Version.
9110
9111         * 5lintman.adb: Removed.
9112
9113         * Makefile.in:
9114         Update and simplify computation of LIBRARY_VERSION.
9115         Fix computation of GSMATCH_VERSION.
9116         5lintman.adb is no longer used: replaced by 7sintman.adb.
9117
9118 2003-12-03  Robert Dewar  <dewar@gnat.com>
9119
9120         * exp_ch5.adb:
9121         (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
9122         name. Modified to consider small non-bit-packed arrays as troublesome
9123         and in need of component-by-component assigment expansion.
9124
9125 2003-12-03  Vincent Celier  <celier@gnat.com>
9126
9127         * lang-specs.h: Process nostdlib as nostdinc
9128
9129         * back_end.adb: Update Copyright notice
9130         (Scan_Compiler_Arguments): Process -nostdlib directly.
9131
9132 2003-12-03  Jose Ruiz  <ruiz@act-europe.fr>
9133
9134         * Makefile.in:
9135         When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
9136         redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
9137         included in HIE_NONE_TARGET_PAIRS.
9138
9139 2003-12-03  Ed Schonberg  <schonberg@gnat.com>
9140
9141         * sem_attr.adb:
9142         (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
9143         is legal in an instance, because legality is cheched in the template.
9144
9145         * sem_prag.adb:
9146         (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
9147         appplied to an unchecked conversion of a formal parameter.
9148
9149         * sem_warn.adb:
9150         (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
9151         variables.
9152
9153 2003-12-03  Olivier Hainque  <hainque@act-europe.fr>
9154
9155         * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
9156         routines. The second one is new functionality to deal with backtracing
9157         through signal handlers.
9158         (unwind): Split into the two separate subroutines above.
9159         Update the documentation, and deal properly with sizeof (REG) different
9160         from sizeof (void*).
9161
9162 2003-12-01  Nicolas Setton  <setton@act-europe.fr>
9163
9164         * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
9165         so that the debugger can reliably access the value of the parameter,
9166         and therefore is able to display the exception name when an exception
9167         breakpoint is reached.
9168
9169 2003-12-01  Thomas Quinot  <quinot@act-europe.fr>
9170
9171         * fmap.adb: Fix typo in warning message.
9172
9173         * g-socket.ads, g-socket.adb: Make Free a visible instance of
9174         Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
9175
9176 2003-12-01  Vincent Celier  <celier@gnat.com>
9177
9178         * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
9179         ther is no Afile.
9180         (Build_Library): Get the switches only if Default_Switches is declared
9181         in package Binder.
9182
9183 2003-12-01  Ed Schonberg  <schonberg@gnat.com>
9184
9185         * exp_ch6.adb (Expand_Actuals): When applying validity checks to
9186         actuals that are indexed components, reanalyze actual to ensure that
9187         packed array references are properly expanded.
9188
9189         * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
9190         attempted assignment to a discriminant.
9191
9192 2003-12-01  Robert Dewar  <dewar@gnat.com>
9193
9194         * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
9195         reformatting.
9196
9197         * switch-c.adb: Minor reformatting of comments
9198
9199 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
9200
9201         * Makefile.in: Clean ups.
9202
9203 2003-12-01  GNAT Script  <nobody@gnat.com>
9204
9205         * Make-lang.in: Makefile automatically updated
9206
9207 2003-12-01  Arnaud Charlet  <charlet@act-europe.fr>
9208
9209         * 5wsystem.ads: Disable zero cost exception, not ready yet.
9210
9211 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
9212
9213         * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
9214         to force serialization.
9215
9216 2003-11-26  Thomas Quinot  <quinot@act-europe.fr>
9217
9218         * g-socket.ads, g-socket.adb:
9219         Clarify documentation of function Stream. Introduce a Free procedure
9220         to release the returned Stream once it becomes unused.
9221
9222         * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
9223
9224 2003-11-26  Arnaud Charlet  <charlet@act-europe.fr>
9225
9226         (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
9227         since NT 4 cannot handle timeout values that are too large,
9228         e.g. DWORD'Last - 1.
9229
9230 2003-11-26  Ed Schonberg  <schonberg@gnat.com>
9231
9232         * exp_ch4.adb:
9233         (Expand_N_Slice): Recognize all cases of slices that appear as actuals
9234         in procedure calls and whose expansion must be deferred.
9235
9236         * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
9237         is in exp_ch4.
9238
9239         * sem_ch3.adb:
9240         (Build_Derived_Array_Type): Create operator for unconstrained type
9241         if ancestor is unconstrained.
9242
9243 2003-11-26  Vincent Celier  <celier@gnat.com>
9244
9245         * make.adb (Project_Object_Directory): New global variable
9246         (Change_To_Object_Directory): New procedure
9247         (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
9248         of Change_Dir directly. Do not change working directory to object
9249         directory of main project after each compilation.
9250         (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
9251         directly.
9252         Change to object directory of main project before binding step.
9253         (Initialize): Initialize Project_Object_Directory to No_Project
9254
9255         * mlib-prj.adb:
9256         (Build_Library): Take into account Builder'Default_Switches ("Ada") when
9257         binding a Stand-Alone Library.
9258
9259         * output.adb: Update Copyright notice
9260         (Write_Char): Output buffer when full
9261
9262 2003-11-26  Robert Dewar  <dewar@gnat.com>
9263
9264         * sem_ch13.adb: (Check_Size): Reset size if size is too small
9265
9266         * sem_ch13.ads:
9267         (Check_Size): Fix documentation to include bit-packed array case
9268
9269         * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
9270
9271         * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
9272
9273         * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
9274
9275 2003-11-24  Arnaud Charlet <charlet@act-europe.fr>
9276
9277         PR ada/13142
9278         * utils.c (init_gigi_decls): Change name of built-in setjmp to
9279         __builtin_setjmp, since this is apparently needed by recent
9280         non Ada changes.
9281
9282 2003-11-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9283
9284         * adadecode.c: Only include ctype.h if not IN_GCC.
9285         (__gnat_decode): Use ISDIGIT from safe-ctype.h.
9286
9287 2003-11-24  Jose Ruiz  <ruiz@act-europe.fr>
9288
9289         * Makefile.in:
9290         Use 5zintman.ads for VxWorks targets. This file avoid confusion between
9291         signals and interrupts.
9292
9293         * 5zintman.ads: New File.
9294
9295         * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
9296         add exception signals to the set of unmasked signals.
9297
9298         * 5ztaprop.adb:
9299         Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
9300         between signals and interrupts.
9301         Add to Unblocked_Signal_Mask the set of signals that are in
9302         Keep_Unmasked.
9303
9304         * 7sinmaop.adb:
9305         Adding a check to see whether the Interrupt_ID we want to unmask is in
9306         the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
9307         reason is that the index type of the Keep_Unmasked array is not always
9308         Interrupt_ID; it may be a subtype of Interrupt_ID.
9309
9310 2003-11-24  Gary Dismukes  <dismukes@gnat.com>
9311
9312         * exp_util.adb:
9313         (Remove_Side_Effects): Condition constantness of object created for a
9314          an unchecked type conversion on the constantness of the expression
9315          to ensure the correct value for 'Constrained when passing components
9316          of view-converted class-wide objects.
9317
9318 2003-11-24  Robert Dewar  <dewar@gnat.com>
9319
9320         * par-load.adb (Load): Improve handling of misspelled and missing units
9321         Removes several cases of compilation abandoned messages
9322
9323         * lib.adb: (Remove_Unit): New procedure
9324
9325         * lib.ads: (Remove_Unit): New procedure
9326
9327         * lib-load.adb: Minor reformatting
9328
9329 2003-11-24  Vincent Celier  <celier@gnat.com>
9330
9331         * make.adb:
9332         (Gnatmake, Initialize): Call Usage instead of Makeusg directly
9333         (Marking_Label): Label to mark processed source files. Incremented for
9334         each executable.
9335         (Gnatmake): Increase Marking_Labet for each executable
9336         (Is_Marked): Compare against marking label
9337         (Mark): Mark with marking label
9338
9339 2003-11-24  Jerome Guitton  <guitton@act-europe.fr>
9340
9341         * s-thread.ads:
9342         Move the declaration of the TSD for System.Threads to System.Soft_Links.
9343         Add some comments.
9344
9345         * Makefile.in: Added target pair for s-thread.adb for cert runtime.
9346         (rts-cert): build a single relocatable object for the run-time lib.
9347         Fix perms.
9348
9349 2003-11-24  Vasiliy Fofanov  <fofanov@act-europe.fr>
9350
9351         * Make-lang.in:
9352         Use gnatls rather than gcc to obtain the location of GNAT RTL for
9353         crosstools build.
9354
9355 2003-11-24  Sergey Rybin  <rybin@act-europe.fr>
9356
9357         * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
9358         can not use it as before (that is, as a variable) when dumping it into
9359         the tree file. Add a local variable to store the result of this
9360         function and to be used as the string to be written into the tree.
9361
9362         * scn.adb (Initialize_Scanner): Add comments explaining the recent
9363         changes.
9364
9365         * sinput.adb (Source_First, Source_Last): In case of
9366         Internal_Source_File, replace returning attributes of
9367         Internal_Source_Ptr (which is wrong) with returning attributes of
9368         Internal_Source.
9369
9370 2003-11-24  Ed Schonberg  <schonberg@gnat.com>
9371
9372         * sem_ch3.adb:
9373         (New_Concatenation_Op): Proper name for New_Binary_Operator, only
9374         used for implicit concatenation operators.
9375         Code cleanup.
9376
9377         * sem_elab.adb:
9378         (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
9379         task bodies that are in the scope of a Suppress pragma.
9380         (Check_A Call): Use the flag to prevent spurious elaboration checks.
9381
9382         * sinfo.ads, sinfo.adb:
9383         New flag No_Elaboration_Check on function/procedure calls, to properly
9384         suppress checks on calls in task bodies that are within a local suppress
9385         pragma.
9386
9387         * exp_ch4.adb:
9388         (Expand_Concatenate_Other): Use the proper integer type for the
9389         expression for the upper bound, to avoid universal_integer computations
9390         when possible.
9391
9392 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
9393
9394         * .cvsignore: Delete.
9395
9396 2003-11-21  Andreas Schwab  <schwab@suse.de>
9397
9398         * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
9399
9400 2003-11-21  Vasiliy Fofanov  <fofanov@act-europe.fr>
9401
9402         * 5wsystem.ads: Enable zero cost exception.
9403
9404 2003-11-21  Jerome Guitton  <guitton@act-europe.fr>
9405
9406         * 5ztiitho.adb: Remove an unreferenced variable.
9407
9408 2003-11-21  Thomas Quinot  <quinot@act-europe.fr>
9409
9410         * adaint.c: For FreeBSD, use mkstemp.
9411
9412 2003-11-21  Arnaud Charlet  <charlet@act-europe.fr>
9413
9414         * gnatlbr.adb: Now reference Gnat_Static_Version_String.
9415
9416 2003-11-21  Robert Dewar  <dewar@gnat.com>
9417
9418         * bld.adb: Remove useless USE of gnatvsn
9419
9420         * gnatchop.adb: Minor reformatting
9421         Clean up version handling to be more consistent
9422
9423         * gnatxref.adb: Minor reformatting
9424
9425         * gprcmd.adb: Minor reformatting
9426         Fix output of copyright to be more consistent with other tools
9427
9428 2003-11-21  Vincent Celier  <celier@gnat.com>
9429
9430         * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
9431
9432 2003-11-21  Sergey Rybin  <rybin@act-europe.fr>
9433
9434         * atree.adb (Initialize): Add initializations for global variables
9435         used in New_Copy_Tree.
9436
9437         * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
9438         Internal_Source_File as the actual).
9439         Put the set of statements creating Any_Character before the set of
9440         statements creating Any_Array to have Any_Character fully initialized
9441         when it is used in creating Any_Array.
9442
9443         * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
9444         not call Scan in case if the actual is Internal_Source_File
9445         Add 2003 to copyright note.
9446
9447         * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
9448         processing Internal_Source_File.
9449
9450         * types.ads: Add the constant Internal_Source_File representing the
9451         source buffer for artificial source-code-like strings created within
9452         the compiler (the definition of Source_File_Index is changed).
9453
9454 2003-11-20  Arnaud Charlet  <charlet@act-europe.fr>
9455
9456         * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
9457         56system.ads: New file, FreeBSD version.
9458
9459 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
9460
9461         * Make-lang.in (ada.extraclean): Delete.
9462
9463 2003-11-19  Arnaud Charlet  <charlet@act-europe.fr>
9464
9465         * gnatmem.adb: Clean up verbose output.
9466
9467         * gprcmd.adb: Change copyright to FSF.
9468
9469 2003-11-19  Vincent Celier  <celier@gnat.com>
9470
9471         * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
9472         and Version (ignored).
9473
9474         * symbols.ads: (Policy): New type
9475         (Initialize): New parameter Reference, Symbol_Policy and
9476         Library_Version.
9477         Remove parameter Force.
9478         Minor reformatting.
9479
9480         * snames.ads, snames.adbadb: New standard names
9481         Library_Reference_Symbol_File and Library_Symbol_Policy
9482
9483         * mlib-prj.adb:
9484         (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
9485         project.
9486
9487         * mlib-tgt.adb:
9488         (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
9489
9490         * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
9491
9492         * prj.adb: (Project_Empty): New component Symbol_Data
9493
9494         * prj.ads: (Policy, Symbol_Record): New types
9495         (Project_Data): New component Symbol_Data
9496
9497         * prj-attr.adb:
9498         New attributes Library_Symbol_File, Library_Symbol_Policy and
9499         Library_Reference_Symbol_File.
9500
9501         * prj-nmsc.adb:
9502         (Ada_Check): When project is a Stand-Alone library project, process
9503         attribute Library_Symbol_File, Library_Symbol_Policy and
9504         Library_Reference_Symbol_File.
9505
9506         * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
9507         5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
9508         5sml-tgt.adb (Build_Dynamic_Library): New parameter
9509         Symbol_Data (ignored).
9510
9511         * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
9512         (Build_Dynamic_Library): New parameter Symbol_Data. New internal
9513         functions Option_File_Name and Version_String. Set new options of
9514         gnatsym related to symbol file, symbol policy and reference symbol
9515         file.
9516
9517         * 5vsymbol.adb:
9518         Extensive modifications to take into account the reference symbol file,
9519         the symbol policy, the library version and to put in the symbol file the
9520         minor and major IDs.
9521
9522         * bld.adb (Process_Declarative_Items): Put second argument of
9523         gprcmd to_absolute between single quotes, to avoid problems with
9524         Windows.
9525
9526         * bld-io.adb: Update Copyright notice.
9527         (Flush): Remove last character of a line, if it is a back slash, to
9528         avoid make problems.
9529
9530         * gnatsym.adb:
9531         Implement new scheme with reference symbol file and symbol policy.
9532
9533         * g-os_lib.ads: (Is_Directory): Clarify comment
9534
9535 2003-11-19  Robert Dewar  <dewar@gnat.com>
9536
9537         * atree.adb: Move New_Copy_Tree global variables to head of package
9538
9539         * errout.adb: Minor reformatting
9540
9541 2003-11-19  Javier Miranda  <miranda@gnat.com>
9542
9543         * sem_ch4.adb: (Diagnose_Call): Improve error message.
9544         Add reference to Ada0Y (AI-50217)
9545
9546         * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
9547         sem_util.adb: Add reference to AI-50217
9548
9549         * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
9550
9551         * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
9552
9553         * sem_aggr.adb: Complete documentation of AI-287 changes
9554
9555         * par-ch4.adb: Document previous changes.
9556
9557         * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
9558         sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
9559         Ada0Y (AI-50217)
9560
9561         * exp_aggr.adb: Add references to AI-287 in previous changes
9562
9563 2003-11-19  Ed Schonberg  <schonberg@gnat.com>
9564
9565         * exp_ch6.adb:
9566         (Add_Call_By_Copy_Node): Do not original node of rewritten expression
9567         in the rewriting is the result of an inlined call.
9568
9569         * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
9570         parameter is a type conversion, use original node to construct the
9571         post-call assignment, because expression may have been rewritten, e.g.
9572         if it is a packed array.
9573
9574         * sem_attr.adb:
9575         (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
9576         body, just as it is in an instance.
9577         Categorization routines
9578
9579         * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
9580         Instantiate_Object): Set proper sloc reference for message on missing
9581         actual.
9582
9583 2003-11-19  Thomas Quinot  <quinot@act-europe.fr>
9584
9585         * Makefile.in: Add FreeBSD libgnat pairs.
9586
9587         * usage.adb: Fix typo in usage message.
9588
9589 2003-11-19  Jerome Guitton  <guitton@act-europe.fr>
9590
9591         * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
9592         s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
9593         pragma Thread_Body.
9594         Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
9595
9596         * s-thread.adb: This file is now a dummy implementation of
9597         System.Thread.
9598
9599 2003-11-19  Sergey Rybin  <rybin@act-europe.fr>
9600
9601         * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
9602
9603 2003-11-19  Emmanuel Briot  <briot@act-europe.fr>
9604
9605         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
9606         instanciation references in the parent type description.
9607
9608 2003-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9609
9610         * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
9611
9612         * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
9613         TYPE_PRECISION directly from esize.
9614
9615 2003-11-18  Thomas Quinot  <quinot@act-europe.fr>
9616
9617         * cstreams.c:
9618         Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
9619
9620         * init.c: Initialization routines for FreeBSD
9621
9622         * link.c: Link info for FreeBSD
9623
9624         * sysdep.c: Add the case of FreeBSD
9625
9626 2003-11-17  Jerome Guitton  <guitton@act-europe.fr>
9627
9628         * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
9629         already called in System.Threads.
9630
9631         * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
9632         environment task, as it has been moved to System.Threads.Initialization.
9633
9634 2003-11-17  Arnaud Charlet  <charlet@act-europe.fr>
9635
9636         * adaint.c (__gnatlib_install_locks): Only reference
9637         __gnat_install_locks on VMS, since other platforms can avoid using
9638         --enable-threads=gnat
9639
9640 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9641
9642         * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
9643
9644         * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
9645         TYPE_PACKED_ARRAY_TYPE_P.
9646         (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
9647
9648         Part of PR ada/12806
9649         * utils.c (float_type_for_precision): Renamed from float_type_for_size.
9650         Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
9651
9652 2003-11-17  Vincent Celier  <celier@gnat.com>
9653
9654         * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
9655         to False.
9656         Do not set exit status to Failure when Warning is True.
9657         (Gnatchop): Make errors "no compilation units found" and
9658         "no source files written" warnings only.
9659
9660         * make.adb (Gnatmake): When using a project file, set
9661         Look_In_Primary_Dir to False.
9662         (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
9663         and Local_Configuration_Pragmas in the project where they are declared
9664         not an extending project which might have inherited them.
9665
9666         * osint.adb (Locate_File): If Name is already an absolute path, do not
9667         look for a directory.
9668
9669         * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
9670         -gnats (Check_Syntax) is used, issue only a warning, not an error.
9671
9672         * prj.adb (Register_Default_Naming_Scheme): Add new component Project
9673         in objects of type Variable_Value.
9674
9675         * prj.ads: (Variable_Value): New component Project
9676
9677         * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
9678         is in a project extended by Project.
9679
9680         * prj-proc.adb (Add_Attributes): New parameter Project. Set component
9681         Project of Variable_Values to this new parameter value.
9682         (Expression): Set component Project of Variable_Values.
9683         (Process_Declarative_Items): Call Add_Attributes with parameter Project.
9684         Set the component Project in array elements.
9685
9686 2003-11-17  Sergey Rybin  <rybin@act-europe.fr>
9687
9688         * errout.adb: (Initialize): Add initialization for error nodes.
9689
9690         * sem_ch12.adb (Initialize): Add missing initializations for
9691         Exchanged_Views and Hidden_Entities.
9692
9693 2003-11-17  Ed Schonberg  <schonberg@gnat.com>
9694
9695         * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
9696         already instantiated tree for use in subsequent inlining.
9697         (Analyze_Associations, Instantiate_Formal_Subprogram,
9698         Instantiate_Object): improve error message for mismatch in
9699         instantiations.
9700
9701         * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
9702         instantiations of subprograms declared in instances.
9703
9704 2003-11-17  Javier Miranda  <miranda@gnat.com>
9705
9706         * sem_ch4.adb (Analyze_Allocator): Previous modification must be
9707         executed only under the Extensions_Allowed flag.
9708
9709 2003-11-17  Robert Dewar  <dewar@gnat.com>
9710
9711         * a-exexda.adb (Address_Image): Fix documentation to indicate leading
9712         zeroes suppressed.
9713         (Address_Image): Fix bug of returning 0x instead of 0x0
9714         Minor reformatting (function specs).
9715
9716         * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
9717         (missed case of 33-63)
9718
9719         * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
9720
9721         * s-thread.adb: Add comments for pragma Restriction
9722
9723         * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
9724         sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
9725
9726 2003-11-17  Ed Falis  <falis@gnat.com>
9727
9728         * s-thread.adb: Added No_Tasking restriction for this implementation.
9729
9730 2003-11-17  Emmanuel Briot  <briot@act-europe.fr>
9731
9732         * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
9733         instanciation references in the parent type description.
9734
9735 2003-11-17  GNAT Script  <nobody@gnat.com>
9736
9737         * Make-lang.in: Makefile automatically updated
9738
9739 2003-11-16  Jason Merrill  <jason@redhat.com>
9740
9741         * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
9742         and TAGS files that include them for each front end.
9743
9744 2003-11-14  Andreas Jaeger  <aj@suse.de>
9745
9746         * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
9747         is the canonical version.
9748         * misc.c (gnat_handle_option): Likewise.
9749
9750         * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
9751
9752         * 5nsystem.ads: New file for x86_64-linux-gnu.
9753
9754 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
9755
9756         * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
9757
9758         * comperr.adb: Fix logic in previous change.
9759
9760 2003-11-13  Vincent Celier  <celier@gnat.com>
9761
9762         * 5bml-tgt.adb (Build_Dynamic_Library): Use
9763         Osint.Include_Dir_Default_Prefix instead of
9764         Sdefault.Include_Dir_Default_Name.
9765
9766         * gnatlbr.adb: Update Copyright notice
9767         (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
9768         Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
9769         instead of Sdefault.Object_Dir_Default_Name
9770
9771         * gnatlink.adb:
9772         (Process_Binder_File): Never suppress the option following -Xlinker
9773
9774         * mdll-utl.adb:
9775         (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
9776         Sdefault.Object_Dir_Default_Name.
9777
9778         * osint.ads, osint.adb:
9779         (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
9780         Minor reformatting.
9781
9782         * vms_conv.ads: Minor reformating
9783         Remove GNAT STANDARD and GNAT PSTA
9784
9785         * vms_conv.adb:
9786         Allow GNAT MAKE to have several files on the command line.
9787         (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
9788         Sdefault.Object_Dir_Default_Name.
9789         Minor Reformating
9790         Remove data for GNAT STANDARD
9791
9792         * vms_data.ads:
9793         Add new compiler qualifier /PRINT_STANDARD (-gnatS)
9794         Remove data for GNAT STANDARD
9795         Remove options and documentation for -gnatwb/-gnatwB: these warning
9796         options no longer exist.
9797
9798 2003-11-13  Ed Falis  <falis@gnat.com>
9799
9800         * 5zthrini.adb: (Init_RTS): Made visible
9801
9802         * 5zthrini.adb:
9803         (Register): Removed unnecessary call to taskVarGet that checked whether
9804          an ATSD was already set as a task var for the argument thread.
9805
9806         * s-thread.adb:
9807         Updated comment to reflect that this is a VxWorks version
9808         Added context clause for System.Threads.Initialization
9809         Added call to System.Threads.Initialization.Init_RTS
9810
9811 2003-11-13  Jerome Guitton  <guitton@act-europe.fr>
9812
9813         * 5zthrini.adb:
9814         (Init_RTS): New procedure, for the initialization of the run-time lib.
9815
9816         * s-thread.adb:
9817         Remove dependancy on System.Init, so that this file can be used in the
9818         AE653 sequential run-time lib.
9819
9820 2003-11-13  Robert Dewar  <dewar@gnat.com>
9821
9822         * bindgen.adb: Minor reformatting
9823
9824 2003-11-13  Ed Schonberg  <schonberg@gnat.com>
9825
9826         * checks.adb:
9827         (Apply_Discriminant_Check): Do no apply check if target type is derived
9828         from source type with no applicable constraint.
9829
9830         * lib-writ.adb:
9831         (Ensure_System_Dependency): Do not apply the style checks that may have
9832         been specified for the main unit.
9833
9834         * sem_ch8.adb:
9835         (Find_Selected_Component): Further improvement in error message, with
9836         RM reference.
9837
9838         * sem_res.adb:
9839         (Resolve): Handle properly the case of an illegal overloaded protected
9840         procedure.
9841
9842 2003-11-13  Javier Miranda  <miranda@gnat.com>
9843
9844         * exp_aggr.adb:
9845         (Has_Default_Init_Comps): New function to check the presence of
9846         default initialization in an aggregate.
9847         (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
9848         extension aggregate of a limited record. In addition, a new formal
9849         was added to do not initialize the record controller (if any) during
9850         this recursive expansion of ancestors.
9851         (Init_Controller): Add support for limited record components.
9852         (Expand_Record_Aggregate): In case of default initialized components
9853         convert the aggregate into a set of assignments.
9854
9855         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
9856         describing the new syntax.
9857         Nothing else needed to be done because this subprogram delegates part of
9858         its work to P_Precord_Or_Array_Component_Association.
9859         (P_Record_Or_Array_Component_Association): Give support to the new
9860         syntax for default initialization of components.
9861
9862         * sem_aggr.adb:
9863         (Resolve_Aggregate): Relax the strictness of the frontend in case of
9864         limited aggregates.
9865         (Resolve_Record_Aggregate): Give support to default initialized
9866         components.
9867         (Get_Value): In case of default initialized components, duplicate
9868         the corresponding default expression (from the record type
9869         declaration). In case of default initialization in the *others*
9870         choice, do not check that all components have the same type.
9871         (Resolve_Extension_Aggregate): Give support to limited extension
9872         aggregates.
9873
9874         * sem_ch3.adb:
9875         (Check_Initialization): Relax the strictness of the front-end in case
9876         of aggregate and extension aggregates. This test is now done in
9877         Get_Value in a per-component manner.
9878
9879         * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
9880         expression corresponds to a limited aggregate. This test is now done
9881         in Get_Value.
9882
9883         * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
9884         Box_Present flag.
9885
9886         * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
9887         present in an N_Component_Association node
9888
9889 2003-11-13  Thomas Quinot  <quinot@act-europe.fr>
9890
9891         * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
9892         type-conformant entry only if they are homographs.
9893
9894 2003-11-13  GNAT Script  <nobody@gnat.com>
9895
9896         * Make-lang.in: Makefile automatically updated
9897
9898 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9899
9900         * adadecode.c: Use <> form of include for ctype.h.
9901         * sysdep.c [IN_RTS]: Use <> form of include for time.h.
9902
9903 2003-11-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9904
9905         * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
9906         Works around PR middle-end/6552.
9907
9908 2003-11-10  Ed Falis  <falis@gnat.com>
9909
9910         * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
9911
9912         * 5zinit.adb: (Install_Handler): Moved back to spec
9913         (Install_Signal_Handlers): Deleted
9914
9915         * 5zthrini.adb: Added context clause for System.Storage_Elements
9916         (Register): Only handles creation of taskVar; initialization moved to
9917         Thread_Body_Enter.
9918         (Reset_TSD): Deleted; replaced by Thread_Body_Enter
9919         Added declaration of environment task secondary stack and
9920         initialization.
9921
9922         * s-thread.adb: Implement bodies for thread body processing
9923
9924         * s-thread.ads:
9925         Added comment identifying supported targets for pragma Thread_Body.
9926
9927 2003-11-10  Pascal Obry  <obry@gnat.com>
9928
9929         * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
9930         GNAT_MAX_PATH_LEN.
9931
9932         * s-fileio.adb:
9933         (Open): Properly check for string length before copying into the buffer.
9934         Raises Name_Error if buffer is too small. Note that this was a potential
9935         buffer overflow.
9936
9937 2003-11-10  Romain Berrendonner  <berrendo@act-europe.fr>
9938
9939         * bindgen.adb, comperr.adb: Code clean ups.
9940         * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
9941
9942 2003-11-10  Sergey Rybin  <rybin@act-europe.fr>
9943
9944         * gnat1drv.adb: Add call to Sem_Elim.Initialize.
9945
9946 2003-11-10  Vincent Celier  <celier@gnat.com>
9947
9948         * gprcmd.adb:
9949         (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
9950         installation.
9951
9952         * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
9953
9954         * prj.adb: (Project_Empty): Add new boolean component Virtual
9955
9956         * prj.ads: (Virtual_Prefix): New constant string
9957         (Project_Data): New boolean component Virtual
9958
9959         * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
9960         a library project is extended by a virtual extending project.
9961
9962         * prj-part.adb:
9963         Modifications throughout to implement extending-all project, including:
9964         (Virtual_Hash, Processed_Hash): New hash tables
9965         (Create_Virtual_Extending_Project): New procedure
9966         (Look_For_Virtual_Projects_For): New procedure
9967
9968         * prj-proc.adb:
9969         (Process): After checking the projects, if main project is an
9970         extending-all project, set the object directory of all virtual extending
9971         project to the object directory of the main project.
9972         Adjust error message when a virtual extending project has the same
9973         object directory as an project being extended.
9974         (Recursive_Process): If name starts with the virtual prefix, set Virtual
9975         to True in the project data.
9976
9977         * prj-tree.adb:
9978         (Default_Project_Node): Add new boolean component Extending_All
9979         (Is_Extending_All): New function
9980         (Set_Is_Extending_All): New procedure
9981
9982         * prj-tree.ads: (Is_Extending_All): New function
9983         (Set_Is_Extending_All): New procedure
9984         (Project_Node_Record): New boolean component Extending_All
9985
9986         * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
9987
9988         * vms_data.ads:
9989         Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
9990
9991         * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
9992         "gprcmd prefix" to define it.
9993
9994 2003-11-10  Thomas Quinot  <quinot@act-europe.fr>
9995
9996         * einfo.ads: Fix a typo and remove an extraneous word in comments.
9997
9998         * lib-load.adb:
9999         (Create_Dummy_Package_Unit): Set the scope of the entity for the
10000         created dummy package to Standard_Standard, not to itself, to
10001         defend other parts of the front-end against encoutering a cycle in
10002         the scope chain.
10003
10004         * sem_ch10.adb:
10005         (Analyze_With_Clause): When setting the entities for the successive
10006         N_Expanded_Names that constitute the name of a child unit, do not
10007         attempt to go further than Standard_Standard in the chain of scopes.
10008         This case arises from the placeholder units created by
10009         Create_Dummy_Package_Unit in the case of a with_clause for a
10010         nonexistent child unit.
10011
10012 2003-11-10  Ed Schonberg  <schonberg@gnat.com>
10013
10014         * exp_ch6.adb:
10015         (Expand_Thread_Body): Place subprogram on scope stack, so that new
10016         declarations are given the proper scope.
10017
10018         * sem_ch13.adb:
10019         (Check_Expr_Constants): Reject an expression that contains a constant
10020         created during expansion, and that appears after the object to which
10021         the address clause applies.
10022
10023         * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
10024         Analyze_Iteration_Scheme, to rewrite a loop parameter specification
10025         that uses 'Range of a function call with controlled components, so
10026         that the function result can be finalized before starting the loop.
10027
10028         * sem_ch8.adb:
10029         (Find_Selected_Component): Improve error message when prefix is
10030         an implicit dereference of an incomplete type.
10031
10032 2003-11-10  Robert Dewar  <dewar@gnat.com>
10033
10034         * opt.ads: New Print_Standard flag for -gnatS switch
10035
10036         * sem_ch13.adb: Remove some additional checks for unaligned arrays
10037
10038         * cstand.adb (Create_Standard): Print out package standard if -gnatS
10039         switch set
10040
10041         * debug.adb: Update doc for -gnatds to discuss relationship with new
10042         -gnatS flag
10043
10044         * sinfo.adb: Add new field Entity_Or_Associated_Node
10045
10046         * sinfo.ads: Add new field Entity_Or_Associated_Node
10047         Update documentation for Associated_Node and Entity fields to clarify
10048         relationship and usage.
10049
10050         * sprint.adb:
10051         (Write_Id): Properly process Associated_Node field in generic template
10052
10053         * switch-c.adb:
10054         Recognize new -gnatS switch for printing package Standard
10055         This replaces gnatpsta
10056
10057         * usage.adb:
10058         Add line for  new -gnatS switch for printing package Standard
10059         This replaces gnatpsta
10060
10061 2003-11-10  Andreas Jaeger  <aj@suse.de>
10062
10063         * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
10064         integer.
10065
10066 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
10067
10068         * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
10069         by gnat1.
10070
10071 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
10072
10073         * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
10074         no longer needed.
10075
10076         * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
10077
10078         * sysdep.c: Add handling of cygwin.
10079
10080 2003-11-10  GNAT Script  <nobody@gnat.com>
10081
10082         * Make-lang.in: Makefile automatically updated
10083
10084 2003-11-10  Arnaud Charlet  <charlet@act-europe.fr>
10085
10086         PR 12950
10087         * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
10088         functions. Used to handle dynamic prefix relocation, via set_std_prefix.
10089         Replace GNAT_ROOT by GCC_ROOT.
10090
10091         * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
10092
10093 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
10094
10095         * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
10096         and update for changed meaning of GET_MODE_BITSIZE.
10097
10098 2003-11-04  Doug Rupp  <rupp@gnat.com>
10099
10100         * sysdep.c: Problem discovered during IA64 VMS port.
10101         [VMS] #include <unixio.h> to get proper prototypes.
10102
10103         * adaint.c:
10104         Issues discovered/problems fixed during IA64 VMS port.
10105         [VMS] #define _POSIX_EXIT for proper semantics.
10106         [VMS] #include <unixio.h> for proper prototypes.
10107         [VMS] (fork): #define IA64 version.
10108         (__gnat_os_exit): Remove unnecessary VMS specific code.
10109
10110 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10111
10112         Part of PR ada/12806
10113
10114         * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
10115         tree, not integer.
10116
10117         * decl.c:
10118         (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
10119         not integer.
10120
10121         * targtyps.c, decl.c, misc.c,
10122         gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
10123         routines to work around change in FP sizing semantics in GCC.
10124
10125         * utils.c:
10126         (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
10127
10128         * gigi.h: (enumerate_modes): New function.
10129
10130         * Make-lang.in: (ada/misc.o): Add real.h.
10131
10132         * misc.c: (enumerate_modes): New function.
10133
10134 2003-11-04  Robert Dewar  <dewar@gnat.com>
10135
10136         * 3vtrasym.adb: Minor reformatting
10137         Use terminology encoded/decoded name, rather than C++ specific notion
10138         of mangling (this is the terminology used throughout GNAT).
10139
10140         * einfo.h: Regenerated
10141
10142         * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
10143
10144         * exp_ch6.adb:
10145         (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
10146
10147         * par-prag.adb: Add dummy entry for Thread_Body pragma
10148
10149         * rtsfind.ads:
10150         Add entries for System.Threads entities for thread body processing
10151
10152         * sem_attr.adb:
10153         (Analyze_Pragma, Access attributes): Check these are not applied to a
10154         thread body, since this is not permitted
10155
10156         * sem_prag.adb: Add processing for Thread_Body pragma.
10157         Minor comment fix.
10158
10159         * sem_res.adb:
10160         (Resolve_Call): Check for incorrect attempt to call a thread body
10161          procedure with a direct call.
10162
10163         * snames.ads, snames.adb: Add entry for Thread_Body pragma
10164         Add names associated with thread body expansion
10165
10166         * snames.h: Add entry for Thread_Body pragma
10167
10168         * s-thread.adb: Add entries for thread body processing
10169         These are dummy bodies so far
10170
10171         * s-thread.ads: Add documentation on thread body handling.
10172         Add entries for thread body processing.
10173
10174 2003-11-04  Javier Miranda  <miranda@gnat.com>
10175
10176         * sem_ch10.adb:
10177         (Build_Limited_Views): Return after posting an error in case of limited
10178         with_clause on subprograms, generics, instances or generic renamings
10179         (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
10180         on subprograms, generics, instances or generic renamings
10181
10182 2003-11-04  Arnaud Charlet  <charlet@act-europe.fr>
10183
10184         * raise.c (setup_to_install): Correct mistake in last revision; two
10185         arguments out of order.
10186
10187         * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
10188         gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
10189         notice, missed in previous change.
10190         Remove trailing blanks and other style errors introduced in previous
10191         change.
10192
10193 2003-11-04  Olivier Hainque  <hainque@act-europe.fr>
10194
10195         * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
10196         rid of the wrapper for a LJM type, ensuring we don't do that if the
10197         field is addressable.  This avoids potential low level type view
10198         mismatches later on, for instance in a by-reference argument passing
10199         process.
10200
10201 2003-11-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10202
10203         * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
10204         aligned at byte boundary.
10205
10206 2003-11-04  Joel Brobecker  <brobecker@gnat.com>
10207
10208         * decl.c (components_to_record): Do not delete the empty variants from
10209         the end of the union type.
10210
10211 2003-11-04  Ed Schonberg  <schonberg@gnat.com>
10212
10213         * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
10214         operation for a derived type, an explicit declaration may use a local
10215         subtype of Boolean.
10216
10217 2003-11-04  Vincent Celier  <celier@gnat.com>
10218
10219         * make.adb (Gnatmake): Allow main sources on the command line with a
10220         library project when it is only for compilation (no binding or
10221         linking).
10222
10223 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10224
10225         * Makefile.in: Remove many duplicate variables.
10226
10227 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
10228
10229         * Make-lang.in (dvi): Move targets to $(docobjdir).
10230         (gnat_ug_vms.dvi): Simplify rule and adjust target.
10231         (gnat_ug_wnt.dvi): Likewise.
10232         (gnat_ug_unx.dvi): Likewise.
10233         (gnat_ug_vxw.dvi): Likewise.
10234         (gnat_rm.dvi): Likewise.
10235         (gnat-style.dvi): Likewise.
10236
10237 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
10238
10239         * gigi.h: Missed commit from update for C90.
10240
10241 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
10242
10243         * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
10244
10245 2003-10-31  Andreas Schwab  <schwab@suse.de>
10246
10247         * raise.c (get_action_description_for): Fix typo in last change.
10248
10249 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
10250
10251         PR ada/12761
10252         * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
10253         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
10254
10255 2003-10-30  Kelley Cook  <kcook@gcc.gnu.org>
10256
10257         * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
10258         ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
10259         gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
10260         sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
10261         trans.c, utils.c, utils2.c: Convert function prototypes to C90.
10262
10263 2003-10-30  Vasiliy Fofanov  <fofanov@act-europe.fr>
10264
10265         * 3vtrasym.adb:
10266         Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
10267         numbers when symbol name is too long.
10268
10269 2003-10-30  Ed Falis  <falis@gnat.com>
10270
10271         * g-signal.ads, g-signal.adb: New files
10272
10273         * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
10274
10275         * Makefile.rtl: Introduce GNAT.Signals
10276
10277 2003-10-30  Robert Dewar  <dewar@gnat.com>
10278
10279         * freeze.adb: Minor reformatting
10280
10281         * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
10282
10283         * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
10284         par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
10285         New handling of Id_Check parameter to improve recognition of keywords
10286         used as identifiers.
10287         Update copyright notice to include 2003
10288
10289 2003-10-29  Robert Dewar  <dewar@gnat.com>
10290
10291         * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
10292         sem_ch10.adb: Minor reformatting
10293
10294         * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
10295         (Expand_Assign_Record): Test right hand side for bit unaligned as well
10296
10297 2003-10-29  Vasiliy Fofanov  <fofanov@act-europe.fr>
10298
10299         * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
10300         Support for TBK$SYMBOLIZE-based symbolic traceback.
10301
10302 2003-10-29  Jose Ruiz  <ruiz@act-europe.fr>
10303
10304         * exp_disp.adb:
10305         Revert previous change, that did not work well when pragma No_Run_Time
10306         was used in conjunction with a run-time other than ZFP.
10307
10308 2003-10-29  Vincent Celier  <celier@gnat.com>
10309
10310         * make.adb:
10311         (Gnatmake): When there are no Ada mains in attribute Main, disable the
10312          bind and link steps only is switch -z is not used.
10313
10314 2003-10-29  Arnaud Charlet  <charlet@act-europe.fr>
10315
10316         * Makefile.generic: Remove duplicated setting of CC.
10317
10318         * Makefile.prolog: Set CC to gcc by default, to override make's
10319         default (cc).
10320
10321         * einfo.h: Regenerated.
10322
10323 2003-10-29  Ed Schonberg  <schonberg@gnat.com>
10324
10325         * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
10326         current body, after compiling subunit.
10327
10328         * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
10329         when in deleted code, because gigi needs properly ordered freeze
10330         actions to annotate types.
10331
10332         * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
10333         prevent the premature freezing of record type that contains
10334         subcomponents with a private type that does not yet have a completion.
10335
10336 2003-10-29  Javier Miranda  <miranda@gnat.com>
10337
10338         * sem_ch12.adb:
10339         (Analyze_Package_Instantiation): Check that instances can not be used in
10340         limited with_clauses.
10341
10342         * sem_ch8.adb:
10343         (Analyze_Package_Renaming): Check that limited withed packages cannot
10344         be renamed. Improve text on error messages related to limited
10345         with_clauses.
10346
10347         * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
10348
10349         * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
10350         Update copyright notice.
10351
10352         * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
10353         (Install_Limited_Context_Clauses): New subprogram that isolates all the
10354         checks required for limited context_clauses and installs the limited
10355         view.
10356         (Install_Limited_Withed_Unit): Complete its documentation.
10357         (Analyze_Context): Check that limited with_clauses are only allowed in
10358         package specs.
10359         (Install_Context): Call Install_Limited_Context_Clauses after the
10360         parents have been installed.
10361         (Install_Limited_Withed_Unit): Add documentation. Mark the installed
10362         package as 'From_With_Type'; this mark indicates that the limited view
10363         is installed. Used to check bad usages of limited with_clauses.
10364         (Build_Limited_Views): Do not add shadow entities to the scope's list
10365         of entities. Do not add real entities to the Non_Limited_Views chain.
10366         Improve error notification.
10367         (Remove_Context_Clauses): Remove context clauses in two phases:
10368         limited views first and regular views later (to maintain the
10369         stack model).
10370         (Remove_Limited_With_Clause): If the package is analyzed then reinstall
10371         its visible entities.
10372
10373 2003-10-29  Thomas Quinot  <quinot@act-europe.fr>
10374
10375         * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
10376         with any type that Is_Fixed_Point_Type.
10377
10378         * sinfo.ads: Fix documentation for Associated_Node attribute.
10379
10380 2003-10-29  Sergey Rybin  <rybin@act-europe.fr>
10381
10382         * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
10383         both '-gnatc' and '-gnatt' are specified.
10384
10385         * atree.adb (Initialize): Add initialization for Node_Count (set to
10386         zero).
10387
10388 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10389
10390         * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
10391         do not consider as Pure.
10392
10393         Part of implementation of function-at-a-time:
10394
10395         * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
10396         (tree_transform): Add new argument to build_component_ref.
10397         (tree_transform, case N_Assignment_Statement): Make and return an
10398         EXPR_STMT.
10399         (tree_transform): If result IS_STMT, set flags and return it.
10400         (gnat_expand_stmt, set_lineno_from_sloc): New functions.
10401
10402         * utils2.c (build_simple_component_ref, build_component_ref): Add new
10403         arg, NO_FOLD_P.
10404         (build_binary_op, case EQ_EXPR): Pass additional arg to it.
10405         (build_allocator): Likewise.
10406
10407         * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
10408         Add new arg to build_component_ref.
10409         (maybe_unconstrained_array, unchecked_convert): Likewise.
10410
10411         * ada-tree.def (EXPR_STMT): New code.
10412
10413         * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
10414
10415         * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
10416         build_component_ref calls.
10417
10418         * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
10419
10420         * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
10421         (build_component_ref): Add new argument, NO_FOLD_P.
10422
10423 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
10424
10425         * Makefile.generic: Add missing substitution on object_deps handling.
10426
10427         PR ada/5909:
10428         * Make-lang.in (check-ada): Enable ACATS test suite.
10429
10430 2003-10-27  Robert Dewar  <dewar@gnat.com>
10431
10432         * exp_ch3.adb:
10433         (Freeze_Array_Type): We do not need an initialization routine for types
10434         derived from String or Wide_String. They should be treated the same
10435         as String and Wide_String themselves. This caused problems with the
10436         use of Initialize_Scalars.
10437
10438         * exp_ch5.adb:
10439         (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
10440         composites. This allows use of component clauses that are not byte
10441         aligned.
10442
10443         * sem_prag.adb:
10444         (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
10445         is an attempt to pack an array of atomic objects.
10446
10447         * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
10448
10449 2003-10-27  Pascal Obry  <obry@gnat.com>
10450
10451         * g-dirope.adb:
10452         (Basename): Check for drive letters in a pathname only on DOS based OS.
10453
10454 2003-10-27  Vincent Celier  <celier@gnat.com>
10455
10456         * make.adb:
10457         (Gnatmake): When unable to change dir to the object dir, display the
10458         content of the parent dir of the obj dir, to try to understand why this
10459         happens.
10460
10461 2003-10-27  GNAT Script  <nobody@gnat.com>
10462
10463         * Make-lang.in: Makefile automatically updated
10464
10465 2003-10-27  Ed Schonberg  <schonberg@gnat.com>
10466
10467         * sem_ch12.adb:
10468         (Inline_Instance_Body): Indicate that the save/restore of use_clauses
10469         should not be done in Save/Restore_Scope_Stack, because it is performed
10470         locally.
10471
10472         * sem_ch8.adb:
10473         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
10474         whether use clauses should be removed/restored.
10475
10476         * sem_ch8.ads:
10477         (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
10478         whether use clauses should be removed/restored.
10479
10480 2003-10-26  Andreas Jaeger  <aj@suse.de>
10481
10482         * Makefile.in: Remove duplicated lines.
10483
10484 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
10485
10486         * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
10487         minimize the differences with ACT tree.
10488
10489         * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
10490         gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
10491         Gnatvsn.Gnat_Static_Version_String to reduce differences between
10492         ACT and FSF trees.
10493
10494 2003-10-24  Pascal Obry  <obry@gnat.com>
10495
10496         * adadecode.c (ostrcpy): New function.
10497         (__gnat_decode): Use ostrcpy of strcpy.
10498         (has_prefix): Set first parameter a const.
10499         (has_suffix): Set first parameter a const.
10500         Update copyright notice. Fix source name in header.
10501         Removes a trailing space.
10502         PR ada/12014.
10503
10504 2003-10-24  Jose Ruiz  <ruiz@act-europe.fr>
10505
10506         * exp_disp.adb:
10507         Remove the test against being in No_Run_Time_Mode before generating a
10508         call to Register_Tag. It is redundant with the test against the
10509         availability of the function Register_Tag.
10510
10511 2003-10-24  Vincent Celier  <celier@gnat.com>
10512
10513         * g-catiio.adb: (Month_Name): Correct spelling of February
10514
10515         * make.adb: (Mains): New package
10516         (Initialize): Call Mains.Delete
10517         (Gnatmake): Check that each main on the command line is a source of a
10518         project file and, if there are several mains, each of them is a source
10519         of the same project file.
10520         (Gnatmake): When a foreign language is specified in attribute Languages,
10521         no main is specified on the command line and attribute Mains is not
10522         empty, only build the Ada main. If there is no Ada main, just compile
10523         the Ada sources and their closure.
10524         (Gnatmake): If a main is specified on the command line with directory
10525         information, check that the source exists and, if it does, that the path
10526         is the actual path of a source of a project.
10527
10528         * prj-env.adb:
10529         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
10530         Full_Path is True, return the full path instead of the simple file name.
10531         (Project_Of): New function
10532
10533         * prj-env.ads:
10534         (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
10535         defaulted to False.
10536         (Project_Of): New function
10537
10538 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
10539
10540         * Makefile.generic:
10541         Ensure objects of main project are always checked and rebuilt if needed.
10542         Set CC to gcc by default.
10543         Prepare new handling of link by creating a global archive (not activated
10544         yet).
10545
10546         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
10547         stringt.h: Update copyright notice. Remove trailing blanks.
10548         Fix source name in header.
10549
10550 2003-10-24  Robert Dewar  <dewar@gnat.com>
10551
10552         * sem_ch12.adb: Minor reformatting
10553
10554         * sem_ch3.adb:
10555         Minor reformatting (including new function return style throughout)
10556
10557         * sem_ch3.ads:
10558         Minor reformatting (including new function return style throughout)
10559
10560 2003-10-24  Arnaud Charlet  <charlet@act-europe.fr>
10561
10562         * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
10563         stringt.h: Update copyright notice. Remove trailing blanks.
10564         Fix source name in header.
10565
10566 2003-10-24  GNAT Script  <nobody@gnat.com>
10567
10568         * Make-lang.in: Makefile automatically updated
10569
10570 2003-10-23  Nathanael Nerode  <neroden@gcc.gnu.org>
10571
10572         * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
10573         stringt.h: Convert to ISO C90 declarations and definitions.
10574
10575 2003-10-23  Thomas Quinot  <quinot@act-europe.fr>
10576
10577         PR ada/11978:
10578         * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
10579         External_Tag attribute definition clauses.
10580
10581 2003-10-23  Ed Schonberg  <schonberg@gnat.com>
10582
10583         PR ada/7613:
10584         * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
10585         child unit, generate a fully qualified name to avoid spurious errors
10586         when the context contains renamings of different child units with
10587         the same simple name.
10588
10589         * exp_dbug.ads: Add documentation on name qualification for renamings
10590         of child units.
10591
10592 2003-10-23  Robert Dewar  <dewar@gnat.com>
10593
10594         * g-regpat.ads, g-regpat.adb: Minor reformatting
10595
10596 2003-10-23  Jose Ruiz  <ruiz@act-europe.fr>
10597
10598         * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
10599
10600 2003-10-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10601
10602         * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
10603         Machine call.
10604
10605         * urealp.h: (Machine): Update to proper definition.
10606
10607 2003-10-23  Arnaud Charlet  <charlet@act-europe.fr>
10608
10609         * init.c, adaint.c: Minor reformatting.
10610
10611 2003-10-23  Danny Smith  <dannysmith@users.sourceforge.net>
10612
10613         * adaint.c (w32_epoch_offset): Define static const at file level.
10614         (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
10615         rather than t_create, t_access in call to GetFileTime. Use union
10616         to convert between FILETIME and  unsigned long long.
10617         (__gnat_file_time_name): Test for invalid file handle.
10618         (__gnat_set_filetime_name): Support win32 targets using
10619         w32api SetFileTime.
10620
10621 2003-10-22  Danny Smith  <dannysmith@users.sourceforge.net>
10622
10623         * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
10624
10625         * ctrl_c.c (__gnat_int_handler): Remove declaration.
10626
10627         * decl.c (creat_concat_name):  Const-ify prefix.
10628
10629         * adaint.c: Include ctype.h if __MINGW32__.
10630         (__gnat_readlink): Mark arguments as possibly unused.
10631         (__gnat_symlink): Likewise.
10632         (__gnat_is_symbolic_link): Likewise.
10633         (__gnat_portable_spawn): Likewise.  Cast last arg of spawnvp to match
10634         declaration
10635         (__gnat_file_time_name): Don't declare struct stat statbuf when
10636         not needed.
10637         (__gnat_is_absolute_path): Add parenthesis around condition of
10638         'if' statement to avoid warning.
10639         (__gnat_plist_init): Specify void as parameter.
10640         (plist_enter): Likewise.
10641         (plist_leave): Likewise.
10642         (remove_handle): Make static. Initialize prev.
10643
10644 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
10645
10646         * Makefile.in: Disable build of gnatpsta. PR ada/10110.
10647         * cstreams.c (__gnat_full_name): Minor improvements and clean up
10648         of previous change.
10649
10650 2003-10-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10651
10652         * tracebak.c (MAX): Avoid redefinition warning.
10653
10654         * init.c [sgi] (__gnat_error_handler): Remove i, unused.
10655         Change msg to const char *.
10656         (__gnat_install_handler): Remove ss, unused.
10657         [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
10658         to const char *.
10659         * cstreams.c (__gnat_full_name): Declare p only when used.
10660         (__gnat_full_name) [sgi] Return buffer.
10661
10662 2003-10-22  Arnaud Charlet  <charlet@act-europe.fr>
10663
10664         * mingw32.h: New file.
10665         * gnat_wrapper.adb: New file.
10666
10667 2003-10-22  Jerome Roussel  <roussel@act-europe.fr>
10668
10669         * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
10670         string match a pre compiled regular expression (the corresponding
10671         version of the function working on a raw regular expression)
10672         Fix typos in various comments
10673         Update copyright notice in spec
10674
10675 2003-10-21  Gary Dismukes  <dismukes@gnat.com>
10676
10677         * exp_ch3.adb:
10678         (Component_Needs_Simple_Initialization): Return False when the type is a
10679         packed bit array. Revise spec comments to document this case.
10680
10681         * exp_prag.adb:
10682         (Expand_Pragma_Import): Set any expression on the imported object to
10683         empty to avoid initializing imported objects (in particular this
10684         covers the case of zero-initialization of bit arrays).
10685         Update copyright notice.
10686
10687 2003-10-21  Ed Schonberg  <schonberg@gnat.com>
10688
10689         * sem_ch12.adb:
10690         (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
10691         a subunit is missing.
10692         (Instantiate_Subprogram_Body): If body of function is missing, set type
10693         of return expression explicitly in dummy body, to prevent cascaded
10694         errors when a subunit is missing.
10695         Fixes PR 5677.
10696
10697         * sem_ch3.adb:
10698         (Access_Subprogram_Declaration): Verify that return type is valid.
10699         Fixes PR 8693.
10700
10701         * sem_elab.adb:
10702         (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
10703         generic.
10704         Fixes PR 12318.
10705
10706         * sem_util.adb:
10707         (Corresponding_Discriminant): If the scope of the discriminant is a
10708         private type without discriminant, use its full view.
10709         Fixes PR 8247.
10710
10711 2003-10-21  Arnaud Charlet  <charlet@act-europe.fr>
10712
10713         * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
10714         3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
10715         3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
10716         55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
10717         56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
10718         59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
10719         5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
10720         5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
10721         5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
10722         5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
10723         5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
10724         5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
10725         5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
10726         5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
10727         7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
10728         a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
10729         a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
10730         a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
10731         bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
10732         erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
10733         err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
10734         g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
10735         g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
10736         g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
10737         g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
10738         g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
10739         g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
10740         gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
10741         g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
10742         g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
10743         i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
10744         prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
10745         prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
10746         s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
10747         s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
10748         s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
10749         s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
10750         s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
10751         s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
10752         s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
10753         s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
10754         socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
10755         s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
10756         s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
10757         s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
10758         styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
10759         s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
10760         tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
10761         vms_conv.ads, vms_conv.adb, vms_data.ads,
10762         vxaddr2line.adb: Files added. Merge with ACT tree.
10763
10764         * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
10765         5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
10766         5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
10767         5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
10768         g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
10769         s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
10770         s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
10771         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
10772         s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
10773         s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
10774
10775         * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
10776         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
10777         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
10778         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
10779         4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
10780         4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
10781         4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
10782         4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
10783         51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
10784         53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
10785         5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
10786         5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
10787         5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
10788         5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
10789         5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
10790         5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
10791         5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
10792         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
10793         5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
10794         5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
10795         5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
10796         5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
10797         5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
10798         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
10799         5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
10800         5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
10801         5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
10802         5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
10803         5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
10804         5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
10805         5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
10806         5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
10807         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
10808         5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
10809         6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
10810         7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
10811         7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
10812         a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
10813         a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
10814         a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
10815         a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
10816         a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
10817         ali.adb, ali.ads, ali-util.adb, ali-util.ads,
10818         a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
10819         a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
10820         a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
10821         a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
10822         a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
10823         a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
10824         a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
10825         a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
10826         a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
10827         a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
10828         a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
10829         a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
10830         atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
10831         a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
10832         a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
10833         bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
10834         checks.adb, checks.ads, cio.c, comperr.adb,
10835         comperr.ads, csets.adb, cstand.adb, cstreams.c,
10836         debug_a.adb, debug_a.ads, debug.adb, decl.c,
10837         einfo.adb, einfo.ads, errout.adb, errout.ads,
10838         eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
10839         expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
10840         exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
10841         exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
10842         exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
10843         exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
10844         exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
10845         exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
10846         exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
10847         fe.h, fmap.adb, fmap.ads, fname.adb,
10848         fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
10849         freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
10850         g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
10851         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
10852         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
10853         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
10854         g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
10855         g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
10856         g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
10857         g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
10858         g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
10859         g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
10860         g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
10861         g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
10862         gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
10863         gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
10864         gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
10865         gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
10866         gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
10867         g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
10868         g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
10869         g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
10870         g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
10871         g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
10872         g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
10873         g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
10874         g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
10875         i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
10876         i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
10877         inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
10878         itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
10879         layout.adb, lib.adb, lib.ads, lib-list.adb,
10880         lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
10881         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
10882         link.c, live.adb, make.adb, make.ads,
10883         Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
10884         mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
10885         mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
10886         misc.c, mkdir.c, mlib.adb, mlib.ads,
10887         mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
10888         mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
10889         namet.adb, namet.ads, namet.h, nlists.ads,
10890         nlists.h, nmake.adt, opt.adb, opt.ads,
10891         osint.adb, osint.ads, osint-b.adb, osint-c.adb,
10892         par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
10893         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
10894         par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
10895         par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
10896         prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
10897         prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
10898         prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
10899         prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
10900         prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
10901         prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
10902         prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
10903         prj-util.adb, prj-util.ads, raise.c, raise.h,
10904         repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
10905         rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
10906         s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
10907         s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
10908         scans.ads, scn.adb, scn.ads, s-crc32.adb,
10909         s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
10910         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
10911         sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
10912         sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
10913         sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
10914         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
10915         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
10916         sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
10917         sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
10918         sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
10919         sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
10920         sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
10921         s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
10922         s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
10923         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
10924         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
10925         s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
10926         s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
10927         s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
10928         sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
10929         sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
10930         sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
10931         s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
10932         s-memory.adb, s-memory.ads, snames.adb, snames.ads,
10933         snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
10934         s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
10935         s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
10936         s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
10937         s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
10938         s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
10939         s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
10940         s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
10941         s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
10942         s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
10943         s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
10944         s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
10945         s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
10946         s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
10947         s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
10948         s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
10949         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
10950         stringt.adb, stringt.ads, stringt.h, style.ads,
10951         stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
10952         s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
10953         s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
10954         switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
10955         s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
10956         table.adb, table.ads, targparm.adb, targparm.ads,
10957         targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
10958         trans.c, tree_io.adb, treepr.adb, treeprs.adt,
10959         ttypes.ads, types.ads, types.h, uintp.adb,
10960         uintp.ads, uintp.h, uname.adb, urealp.adb,
10961         urealp.ads, urealp.h, usage.adb, utils2.c,
10962         utils.c, validsw.adb, validsw.ads, widechar.adb,
10963         xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
10964         xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
10965         einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
10966         gnatvsn.ads: Merge with ACT tree.
10967
10968         * gnatvsn.adb: Rewritten in a simpler and more efficient way.
10969
10970 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
10971
10972         * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
10973         (gnat_ug_vmx.info): Likewise.
10974         (gnat_ug_vxw.info): Likewise.
10975         (gnat_ug_wnt.info): Likewise.
10976         (gnat_rm.info): Likewise.
10977         (gnat-style.info): Likewise.
10978
10979         * Make-lang.in (ada.install-info): Remove target.
10980         (info): New target.
10981         (install-info): Likewise.
10982         (gnat_ug_unx.info): Simplify rule.
10983         (gnat_ug_vmx.info): Likewise.
10984         (gnat_ug_vxw.info): Likewise.
10985         (gnat_ug_wnt.info): Likewise.
10986         (gnat_rm.info): Likewise.
10987         (gnat-style.info): Likewise.
10988
10989 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
10990
10991         * Make-lang.in: Replace uses of $(target_alias) with
10992         $(target_noncanonical).
10993         * ada/Makefile.in: Remove unused mention of $(target_alias).
10994
10995 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
10996
10997         * Make-lang.in (ada.info): Replace with ...
10998         (info): ... this.
10999         (ada.dvi): Replace with ...
11000         (dvi): ... this.
11001
11002 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
11003
11004         * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
11005         initialize dconstp5 and dconstmp5.
11006
11007 2003-09-28  Richard Henderson  <rth@redhat.com>
11008
11009         * trans.c (tree_transform): Update call to expand_asm_operands.
11010
11011 2003-09-21  Richard Henderson  <rth@redhat.com>
11012
11013         * trans.c, utils.c: Revert.
11014
11015 2003-09-21  Richard Henderson  <rth@redhat.com>
11016
11017         * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
11018         change to const.
11019
11020 2003-09-04  Michael Matz  <matz@suse.de>
11021
11022         * misc.c: Include "target.h".
11023         * Make-lang.in (misc.o): Add dependency on target.h.
11024
11025 2003-09-03  DJ Delorie  <dj@redhat.com>
11026
11027         * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
11028         hook.
11029
11030 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
11031
11032         * Makefile.in: Update substitutions to match changes to
11033         configure.  Use include directives instead of @-insertions
11034         to read in host and target fragments.  Add a rule to
11035         regenerate ada/Makefile.
11036
11037 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
11038
11039         * lang-options.h: Remove.
11040         * lang.opt: Add help text.
11041
11042 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
11043
11044         * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
11045         calls.
11046
11047 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
11048
11049         * misc.c (gnat_handle_option): Don't handle filenames.
11050
11051 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
11052
11053         * Make-lang.in: Replace PWD with PWD_COMMAND.
11054         * Makefile.adalib: Likewise.
11055         * Makefile.in: Likewise.
11056
11057 2003-07-04  Matt Kraai  <kraai@alumni.cmu.edu>
11058
11059         * misc.c (gnat_argv): Revert last change.
11060         (gnat_handle_option, gnat_init_options): Copy arguments.
11061
11062 2003-07-03  Neil Booth  <neil@daikokuya.co.uk>
11063
11064         * misc.c (gnat_argv): Make const.
11065
11066 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
11067
11068         * misc.c (save_argc, save_argv): Keep non-static!
11069
11070 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
11071
11072         * misc.c (save_argc, save_argv): Make static.
11073         (gnat_init_options): New prototype.
11074         (gnat_init_options): Update.
11075
11076 2003-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
11077
11078         * gnat_ug.texi: Remove unlikely characters from @vars.
11079         * gnat_ug_vms.texi: Regenerate.
11080
11081 2003-06-27  Nathan Sidwell  <nathan@codesourcery.com>
11082
11083         * misc.c (record_code_position): Adjust emit_note call.
11084
11085 2003-06-26  Neil Booth  <neil@daikokuya.co.uk>
11086
11087         * misc.c (gnat_handle_option): Don't check for missing arguments.
11088
11089 2003-06-20  Nathan Sidwell  <nathan@codesourcery.com>
11090
11091         * utils.c (end_subprog_body): Adjust expand_function_end call.
11092
11093 2003-06-16  Matt Kraai  <kraai@alumni.cmu.edu>
11094
11095         * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
11096         Bind_Main_Program.
11097
11098 2003-06-15  Neil Booth  <neil@daikokuya.co.uk>
11099
11100         * lang.opt: Declare Ada.
11101         * misc.c (gnat_init_options): Update.
11102
11103 2003-06-14  Nathan Sidwell  <nathan@codesourcery.com>
11104
11105         * utils.c (begin_subprog_body): Adjust init_function_start call.
11106
11107 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
11108
11109         * Make-lang.in: Update to use options.c and options.h.
11110         * misc.c: Include options.h not aoptions.h.
11111         (gnat_handle_option): Abort on unrecognized switch.
11112         (gnat_init_options): Request Ada switches.
11113
11114 2003-06-14  Neil Booth  <neil@daikokuya.co.uk>
11115
11116         * lang.opt: Add -Wall.
11117         * misc.c (gnat_handle_option): Handle it.
11118
11119 2003-06-12  Neil Booth  <neil@daikokuya.co.uk>
11120
11121         * misc.c (gnat_handle_option): Fix warnings.
11122
11123 2003-06-11  Matt Kraai  <kraai@alumni.cmu.edu>
11124
11125         * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
11126
11127 2003-06-11  Neil Booth  <neil@daikokuya.co.uk>
11128
11129         * Make-lang.in: Update to handle command-line options.
11130         * lang.opt: New file.
11131         * misc.c: Include aoptions.h.
11132         (cl_options_count, cl_options): Remove.
11133         (gnat_handle_option): New.
11134         (gnat_decode_option): Remove.
11135         (LANG_HOOKS_DECODE_OPTION): Remove.
11136         (LANG_HOOKS_HANDLE_OPTION): Override.
11137
11138 2003-06-10  Nathanael Nerode  <neroden@gcc.gnu.org>
11139
11140         * init.c, misc.c, trans.c, utils.c: Remove dead code.
11141
11142 2003-06-09  Nathanael Nerode  <neroden@gcc.gnu.org>
11143
11144         * Makefile.in: Replace "host_canonical" with "host" for autoconf
11145         substitution.
11146
11147 2003-06-08  Neil Booth  <neil@daikokuya.co.uk>
11148
11149         * Make-lang.in: Update.
11150         * misc.c: Include opts.h. Define cl_options_count and cl_options.
11151
11152 2003-06-07  Neil Booth  <neil@daikokuya.co.uk>
11153
11154         * misc.c (gnat_init_options): Update.
11155
11156 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
11157
11158         * Make-lang.in (ada/b_gnatb.o-warn): Remove.
11159         * bindgen.adb (Gen_Main_C): Mark ensure_reference with
11160         __attribute__ ((__unused__)).
11161
11162 2003-06-05  Jan Hubicka  <jh@suse.cz>
11163
11164         * Make-lang.in:  Add support for stageprofile and stagefeedback
11165
11166 2003-06-05  Matt Kraai  <kraai@alumni.cmu.edu>
11167
11168         * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
11169         (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
11170
11171 2003-06-04  Matt Kraai  <kraai@alumni.cmu.edu>
11172
11173         * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
11174         Remove non-VMS directive.
11175         (Switches for gnatlbr, Optimization Levels): Remove non-VMS
11176         alternatives.
11177         (Examples of gnatls Usage): Remove VMS alternative.
11178
11179 2003-06-04  Olivier Hainque  <hainque@act-europe.fr>
11180
11181         PR ada/9953:
11182         * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
11183         and turn ZCX_By_Default back to False since the underlying support
11184         is not quite there yet.
11185
11186 2003-06-01  Andreas Jaeger  <aj@suse.de>
11187
11188         * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
11189         and ROUND_TYPE_SIZE_UNIT.
11190
11191 2003-05-22   Geert Bosch <bosch@gnat.com>
11192
11193         * gnat_rm.texi : Remove reference to Ada Core Technologies.
11194
11195 2003-05-03  Nathan Sidwell  <nathan@codesourcery.com>
11196
11197         * trans.c (tree_transform): Use location_t and input_location
11198         directly.
11199         (build_unit_elab): Likewise.
11200         * utils.c (create_label_decl): Likewise.
11201
11202 2003-05-01  Nathan Sidwell  <nathan@codesourcery.com>
11203
11204         * trans.c (tree_transform, build_unit_elab,
11205         set_lineno): Rename lineno to input_line.
11206         * utils.c (pushdecl, create_label_decl, begin_subprog_body,
11207         end_subprog_body): Likewise.
11208         * utils2.c (build_call_raise): Likewise.
11209
11210 2003-05-01  Laurent Guerby <guerby@acm.org>
11211
11212         PR ada/10546
11213         * 5iosinte.ads: Increase pthread_cond_t size to match recent
11214         LinuxThread and NPTL version, merge from ACT.
11215
11216 2003-04-28  Zack Weinberg  <zack@codesourcery.com>
11217
11218         * utils.c (convert): No need to clear TREE_CST_RTL.
11219
11220 2003-04-23   Geert Bosch <bosch@gnat.com>
11221
11222         * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
11223         1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
11224         3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
11225         3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
11226         3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
11227         4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
11228         4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
11229         4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
11230         4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
11231         4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
11232         4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
11233         4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
11234         52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
11235         5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
11236         5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
11237         5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
11238         5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
11239         5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
11240         5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
11241         5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
11242         5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
11243         5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
11244         5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
11245         5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
11246         5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
11247         5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
11248         5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
11249         5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
11250         5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
11251         5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
11252         5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
11253         5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
11254         5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
11255         5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
11256         5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
11257         5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
11258         5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
11259         5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
11260         5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
11261         5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
11262         5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
11263         5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
11264         5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
11265         5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
11266         6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
11267         7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
11268         7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
11269         9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
11270         a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
11271         a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
11272         a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
11273         a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
11274         a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
11275         a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
11276         a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
11277         a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
11278         a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
11279         a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
11280         a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
11281         a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
11282         a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
11283         a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
11284         a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
11285         a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
11286         a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
11287         a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
11288         a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
11289         a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
11290         a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
11291         a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
11292         a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
11293         a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
11294         a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
11295         a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
11296         a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
11297         a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
11298         a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
11299         a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
11300         a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
11301         a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
11302         a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
11303         a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
11304         a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
11305         a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
11306         a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
11307         a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
11308         a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
11309         a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
11310         a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
11311         a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
11312         a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
11313         a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
11314         a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
11315         a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
11316         a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
11317         a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
11318         a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
11319         a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
11320         a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
11321         a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
11322         a-wttest.ads, ada-tree.h, ada.ads, ada.h,
11323         adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
11324         ali.adb, ali.ads, alloc.ads, argv.c,
11325         atree.adb, atree.ads, atree.h, aux-io.c,
11326         back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
11327         binde.adb, binde.ads, binderr.adb, binderr.ads,
11328         bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
11329         butil.adb, butil.ads, cal.c, calendar.ads,
11330         casing.adb, casing.ads, ceinfo.adb, checks.adb,
11331         checks.ads, cio.c, comperr.adb, comperr.ads,
11332         config-lang.in, csets.adb, csets.ads, csinfo.adb,
11333         cstand.adb, cstand.ads, cuintp.c, debug.adb,
11334         debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
11335         dec-io.ads, dec.ads, deftarg.c, directio.ads,
11336         einfo.adb, einfo.ads, elists.adb, elists.ads,
11337         elists.h, errno.c, errout.adb, errout.ads,
11338         eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
11339         exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
11340         exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
11341         exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
11342         exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
11343         exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
11344         exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
11345         exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
11346         exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
11347         exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
11348         exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
11349         exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
11350         exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
11351         exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
11352         exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
11353         fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
11354         fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
11355         freeze.adb, freeze.ads, frontend.adb, frontend.ads,
11356         g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
11357         g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
11358         g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
11359         g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
11360         g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
11361         g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
11362         g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
11363         g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
11364         g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
11365         g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
11366         g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
11367         g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
11368         g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
11369         g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
11370         g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
11371         g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
11372         g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
11373         g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
11374         g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
11375         g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
11376         g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
11377         g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
11378         get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
11379         gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
11380         gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
11381         gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
11382         gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
11383         gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
11384         gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
11385         gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
11386         hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
11387         i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
11388         i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
11389         i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
11390         i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
11391         i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
11392         i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
11393         inline.adb, inline.ads, interfac.ads, ioexcept.ads,
11394         itypes.adb, itypes.ads, krunch.adb, krunch.ads,
11395         layout.adb, layout.ads, lib-list.adb, lib-load.adb,
11396         lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
11397         lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
11398         lib.adb, lib.ads, live.adb, live.ads,
11399         machcode.ads, make.adb, make.ads, makeusg.adb,
11400         makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
11401         mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
11402         memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
11403         mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
11404         mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
11405         mlib.ads, namet.adb, namet.ads, nlists.adb,
11406         nlists.ads, opt.adb, opt.ads, osint-b.adb,
11407         osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
11408         osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
11409         osint.ads, output.adb, output.ads, par-ch10.adb,
11410         par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
11411         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
11412         par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
11413         par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
11414         par-tchk.adb, par-util.adb, par.adb, par.ads,
11415         prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
11416         prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
11417         prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
11418         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
11419         prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
11420         prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
11421         prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
11422         prj.adb, prj.ads, repinfo.adb, repinfo.ads,
11423         restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
11424         rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
11425         s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
11426         s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
11427         s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
11428         s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
11429         s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
11430         s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
11431         s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
11432         s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
11433         s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
11434         s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
11435         s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
11436         s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
11437         s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
11438         s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
11439         s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
11440         s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
11441         s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
11442         s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
11443         s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
11444         s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
11445         s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
11446         s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
11447         s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
11448         s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
11449         s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
11450         s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
11451         s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
11452         s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
11453         s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
11454         s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
11455         s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
11456         s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
11457         s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
11458         s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
11459         s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
11460         s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
11461         s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
11462         s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
11463         s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
11464         s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
11465         s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
11466         s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
11467         s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
11468         s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
11469         s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
11470         s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
11471         s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
11472         s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
11473         s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
11474         s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
11475         s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
11476         s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
11477         s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
11478         s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
11479         s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
11480         s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
11481         s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
11482         s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
11483         s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
11484         s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
11485         s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
11486         s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
11487         s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
11488         s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
11489         s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
11490         s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
11491         s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
11492         s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
11493         s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
11494         s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
11495         s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
11496         s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
11497         s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
11498         s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
11499         s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
11500         s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
11501         s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
11502         s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
11503         s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
11504         s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
11505         s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
11506         s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
11507         s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
11508         s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
11509         s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
11510         s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
11511         s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
11512         s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
11513         s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
11514         s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
11515         s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
11516         s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
11517         s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
11518         scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
11519         sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
11520         sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
11521         sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
11522         sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
11523         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
11524         sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
11525         sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
11526         sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
11527         sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
11528         sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
11529         sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
11530         sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
11531         sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
11532         sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
11533         sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
11534         sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
11535         sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
11536         sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
11537         sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
11538         sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
11539         snames.ads, sprint.adb, sprint.ads, stand.adb,
11540         stand.ads, stringt.adb, stringt.ads, style.adb,
11541         style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
11542         switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
11543         switch-m.ads, switch.adb, switch.ads, system.ads,
11544         table.adb, table.ads, targparm.adb, targparm.ads,
11545         tbuild.adb, tbuild.ads, text_io.ads, trans.c,
11546         tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
11547         tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
11548         ttypef.ads, ttypes.ads, types.adb, types.ads,
11549         uintp.adb, uintp.ads, uname.adb, uname.ads,
11550         unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
11551         usage.adb, usage.ads, validsw.adb, validsw.ads,
11552         widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
11553         xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
11554         xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
11555         formatting and other trivial changes from ACT.
11556
11557 2003-04-12  Zack Weinberg  <zack@codesourcery.com>
11558
11559         * gigi.h, utils2.c (build_constructor):
11560         Rename gnat_build_constructor. Use build_constructor.
11561         * decl.c (gnat_to_gnu_entity)
11562         * trans.c (tree_transform, pos_to_constructor, extract_values)
11563         * ada/utils.c (build_template, convert_to_fat_pointer, convert)
11564         (unchecked_convert)
11565         * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
11566         (fill_vms_descriptor):
11567         Update to match.
11568
11569 2003-04-06  Zack Weinberg  <zack@codesourcery.com>
11570
11571         * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
11572         * misc.c (gnat_tree_size): New function.
11573         (LANG_HOOKS_TREE_SIZE): Override.
11574
11575 2003-04-03  Jason Merrill  <jason@redhat.com>
11576
11577         * misc.c (gnat_adjust_rli): #if 0.
11578
11579 2003-03-31   Geert Bosch <bosch@gnat.com>
11580
11581         PR ada/10020
11582         * link.c : Fix misspelled "const" keyword
11583
11584 2003-03-23  Mark Mitchell  <mark@codesourcery.com>
11585
11586         PR c++/7086
11587         * utils2.c: Adjust calls to put_var_into_stack.
11588
11589 2003-03-12  Nathanael Nerode  <neroden@gcc.gnu.org>
11590
11591         * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
11592
11593 2003-03-08  Neil Booth  <neil@daikokuya.co.uk>
11594
11595         * misc.c (gnat_init): Update for new prototype.
11596
11597 2003-03-05  Olivier Hainque  <hainque@gnat.com>
11598
11599         ada/9961
11600         * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
11601         warning, and fix return type for the IN_RTS && !SJLJ case.
11602
11603 2003-03-04  Tom Tromey  <tromey@redhat.com>
11604
11605         * Make-lang.in (ada.tags): New target.
11606
11607 2003-03-04  Olivier Hainque  <hainque@act-europe.fr>
11608
11609         ada/9911
11610         * a-except.adb (Unwind_RaiseException): Import a GNAT specific
11611         wrapper, which name remains constant whatever underlying GCC
11612         scheme.
11613
11614         * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
11615         the stable interface needed for a-except.
11616
11617 2003-03-02  Andreas Jaeger  <aj@suse.de>
11618
11619         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11620         gnat_ug_wnt.texi: Regenerate.
11621
11622 2003-03-02  Laurent Guerby <guerby@acm.org>
11623
11624         * Makefile.in (install-gnatlib): Match previous change there
11625         so it works.
11626
11627 2003-02-28  Andreas Schwab  <schwab@suse.de>
11628
11629         * Make-lang.in (install-gnatlib): Change to ada directory before
11630         running make instead of using ada/Makefile directly.
11631
11632 2003-02-18  Ben Elliston  <bje@redhat.com>
11633
11634         Part of fix for PR ada/9406
11635         * gnat_ug.texi (Binder output file): Grammar fix.
11636
11637 2003-02-18  Ben Elliston  <bje@redhat.com>
11638
11639         PR other/7350
11640         * 5qtaprop.adb (Sleep): Fix typo in comment.
11641
11642 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
11643
11644         * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
11645         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11646         gnat_ug_wnt.texi: Regenerate.
11647
11648 2003-02-03  Christian Cornelssen <ccorn@cs.tu-berlin.de>
11649
11650         * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
11651         be created if necessary.
11652         (ada.install-common): Let $(DESTDIR)$(bindir) be created
11653         if necessary.  Remove erroneous and redundant gnatchop
11654         installation commands.  Test for gnatdll before attempting
11655         to install it.
11656         (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
11657         and gnatdll from all plausible locations.
11658
11659 2003-02-01  Richard Sandiford  <rsandifo@redhat.com>
11660
11661         * utils2.c (build_unary_op): Don't check flag_volatile.
11662         * gnat_ug.texi: Remove -fvolatile from example.
11663         * gnat_ug_vxw.texi: Likewise.
11664
11665 2003-01-29  Laurent Guerby <guerby@acm.org>
11666
11667         PR ada/8344
11668         * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
11669         * Makefile.in: match previous change.
11670         * Make-lang.in: match previous change.
11671
11672 2003-01-29      Joel Sherrill <joel@OARcorp.com>
11673
11674         * 5rosinte.ads: Add SIGXCPU.
11675         * 5rtpopsp.adb: New file.
11676         * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
11677         * Makefile.in: Recognize more RTEMS targets and add the RTEMS
11678         specific file 5rtpopsp.adb.
11679         * adaint.h: Add include of <stdio.h> when target is RTEMS.  This
11680         is likely needed for all newlib targets.
11681         * init.c: Add RTEMS specific version of __gnat_initialize().
11682
11683 2003-01-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11684
11685         * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
11686
11687 2003-01-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11688
11689         * init.c (__gnat_error_handler): Make msg const.
11690
11691         * gmem.c (convert_addresses): Move declaration ...
11692         * adaint.h: ... here.
11693         * adaint.c (convert_addresses): Adapt addrs type to match
11694         prototype.
11695
11696         * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
11697
11698 2003-01-24  Andreas Schwab  <schwab@suse.de>
11699
11700         * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
11701         size_t to avoid warning.
11702
11703 2003-01-21  Zack Weinberg  <zack@codesourcery.com>
11704
11705         * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
11706
11707 2003-01-09  Geoffrey Keating  <geoffk@apple.com>
11708
11709         * gnat_rm.texi: Remove RCS version number.
11710
11711         * ada-tree.h (union lang_tree_node): Add chain_next option.
11712
11713 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
11714
11715         * Make-lang.in (ada.install-info, ada.install-common,
11716         ada.uninstall): Prepend $(DESTDIR) to the destination
11717         directory in all (un)installation commands.
11718         * Makefile.in (install-gnatlib, install-rts): Ditto.
11719
11720 2002-12-28  Joseph S. Myers  <jsm@polyomino.org.uk>
11721
11722         * gnat_rm.texi, gnat_ug.texi: Use @copying.
11723         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
11724         gnat_ug_wnt.texi: Regenerate.
11725
11726 2002-12-23  Joseph S. Myers  <jsm@polyomino.org.uk>
11727
11728         * gnat_rm.texi: Include gcc-common.texi.  Use GCC version number
11729         only.
11730         * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
11731         $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
11732         $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
11733         ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
11734         ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
11735         $(srcdir)/doc/include/gcc-common.texi.
11736
11737 2002-12-15   Geert Bosch <bosch@gnat.com>
11738
11739         * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
11740
11741 2002-12-14   Geert Bosch <bosch@gnat.com>
11742
11743         * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
11744         case of a body created for a Renaming_As_Body, on which
11745         conformance checks are not performed. Fixes PR ada/5690.
11746
11747 2002-11-30  Zack Weinberg  <zack@codesourcery.com>
11748
11749         * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
11750         utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
11751         not already included.
11752         * Make-lang.in: Update dependencies.
11753
11754 2002-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
11755         * adaint.c (__gnat_tmp_name): Better, but good enough for now,
11756         solution to buffer overflow bug on GNU/Linux.
11757
11758 2002-11-14  Nathanael Nerode  <neroden@gcc.gnu.org>
11759         Closes PR ada/5856 and PR ada/6919 !
11760         * bindgen.adb: Remove all references to Public_Version.
11761         * comperr.adb: Remove all references to Public_Version and
11762         GNATPRO_Version; correct bug reporting instructions.
11763         * comperr.ads: Change to match bug box.
11764         * gnatvsn.ads: Remove all references to Public version and
11765         GNATPRO version.
11766
11767 2002-11-13  Nathanael Nerode  <neroden@gcc.gnu.org>
11768         PR ada/6919
11769         * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
11770         GNU/Linux.
11771
11772         PR ada/6558
11773         * config-lang.in: Remove diff_excludes.
11774
11775 2002-11-05  Graham Stott  <graham.stott@btinternet.com>
11776         PR ada/8358
11777         * trans.c (gnu_pending_elaboration_lists): New GC root.
11778         (build_unit_elab): Use..
11779
11780 2002-10-30   Geert Bosch <bosch@gnat.com>
11781         PR ada/6558
11782         * misc.c : Include optabs.h
11783
11784         * Make-lang.in (misc.o): Add dependency on optabs.h
11785
11786 2002-10-29   Geert Bosch <bosch@gnat.com>
11787         PR ada/6558
11788         * Make-lang.in (gnatbind): Depend on CONFIG_H
11789
11790 2002-10-29  Geert bosch  <bosch@gnat.com>
11791         PR ada/6558
11792         * misc.c: Unrevert misc.c (1.13)
11793
11794 2002-10-28  Nathanael Nerode  <neroden@gcc.gnu.org>
11795
11796         * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
11797         maintainership comments.
11798
11799 2002-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
11800         PR ada/5904
11801         * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
11802         5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
11803         5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
11804         7staprop.adb: Correct statements in comments about
11805         maintainership of GNAT.
11806
11807         PR ada/5904
11808         * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
11809         gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
11810         osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
11811         osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
11812         s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
11813         s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
11814         sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
11815         switch-c.ads switch-m.adb switch-m.ads: Correct statements in
11816         comments about maintainership of GNAT.
11817
11818         PR ada/6919 (forward port of patch for PR ada/5904)
11819         * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
11820         4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
11821         4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
11822         4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
11823         4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
11824         4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
11825         4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
11826         52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
11827         5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
11828         5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
11829         5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
11830         5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
11831         5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
11832         5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
11833         5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
11834         5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
11835         5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
11836         5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
11837         5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
11838         5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
11839         5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
11840         5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
11841         5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
11842         5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
11843         5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
11844         5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
11845         5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
11846         5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
11847         7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
11848         a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
11849         a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
11850         a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
11851         a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
11852         a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
11853         a-except.adb a-except.ads a-excpol.adb a-exctra.adb
11854         a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
11855         a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
11856         a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
11857         a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
11858         a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
11859         a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
11860         a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
11861         a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
11862         a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
11863         a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
11864         a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
11865         a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
11866         a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
11867         a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
11868         a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
11869         a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
11870         a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
11871         a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
11872         a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
11873         a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
11874         a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
11875         a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
11876         a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
11877         a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
11878         a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
11879         a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
11880         a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
11881         a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
11882         a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
11883         a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
11884         a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
11885         a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
11886         a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
11887         adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
11888         alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
11889         back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
11890         binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
11891         bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
11892         ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
11893         csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
11894         cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
11895         debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
11896         einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
11897         errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
11898         exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
11899         exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
11900         exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
11901         exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
11902         exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
11903         exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
11904         exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
11905         exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
11906         exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
11907         exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
11908         exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
11909         exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
11910         exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
11911         final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
11912         fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
11913         freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
11914         g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
11915         g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
11916         gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
11917         gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
11918         gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
11919         gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
11920         gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
11921         gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
11922         i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
11923         i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
11924         i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
11925         i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
11926         impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
11927         itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
11928         lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
11929         lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
11930         lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
11931         lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
11932         makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
11933         namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
11934         nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
11935         osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
11936         par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
11937         par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
11938         par-endh.adb par-labl.adb par-load.adb par-prag.adb
11939         par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
11940         prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
11941         prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
11942         prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
11943         prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
11944         prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
11945         prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
11946         repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
11947         rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
11948         s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
11949         s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
11950         s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
11951         s-direio.adb s-direio.ads s-except.ads s-exctab.adb
11952         s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
11953         s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
11954         s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
11955         s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
11956         s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
11957         s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
11958         s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
11959         s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
11960         s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
11961         s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
11962         s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
11963         s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
11964         s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
11965         s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
11966         s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
11967         s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
11968         s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
11969         s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
11970         s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
11971         s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
11972         s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
11973         s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
11974         s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
11975         s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
11976         s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
11977         s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
11978         s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
11979         s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
11980         s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
11981         s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
11982         s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
11983         s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
11984         s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
11985         s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
11986         s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
11987         s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
11988         s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
11989         s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
11990         s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
11991         s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
11992         s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
11993         s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
11994         s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
11995         s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
11996         s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
11997         s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
11998         s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
11999         s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
12000         s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
12001         s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
12002         s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
12003         s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
12004         s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
12005         s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
12006         s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
12007         s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
12008         s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
12009         s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
12010         s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
12011         s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
12012         s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
12013         s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
12014         s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
12015         s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
12016         s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
12017         s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
12018         s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
12019         s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
12020         s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
12021         s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
12022         s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
12023         s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
12024         s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
12025         s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
12026         s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
12027         s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
12028         s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
12029         s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
12030         scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
12031         sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
12032         sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
12033         sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
12034         sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
12035         sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
12036         sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
12037         sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
12038         sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
12039         sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
12040         sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
12041         sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
12042         sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
12043         sem_type.adb sem_type.ads sem_util.adb sem_util.ads
12044         sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
12045         sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
12046         sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
12047         sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
12048         snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
12049         stringt.ads stringt.h style.adb style.ads stylesw.adb
12050         stylesw.ads switch.adb switch.ads sysdep.c system.ads
12051         table.adb table.ads targparm.adb targparm.ads targtyps.c
12052         tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
12053         tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
12054         treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
12055         types.adb types.ads types.h uintp.adb uintp.ads uintp.h
12056         uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
12057         usage.ads utils.c utils2.c validsw.adb validsw.ads
12058         widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
12059         xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
12060         xtreeprs.adb: Correct statements in comments about maintainership
12061         of GNAT.
12062
12063 2002-09-23  Zack Weinberg  <zack@codesourcery.com>
12064
12065         * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
12066         * Makefile.in (TOOLS_LIBS): Add ../../version.o.
12067         * gnatvsn.ads: Gnat_Version_String is now a function.
12068         * gnatvsn.adb: New file.  When asked for Gnat_Version_String,
12069         copy the C version_string into a String and return it.
12070         * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
12071         gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
12072         Remove pragma Ident (Gnat_Version_String).  If this was the
12073         sole use of package Gnatvsn, remove the with statement too.
12074         * gnat1drv.adb: Tweak -gnatv output.
12075
12076 2002-09-17  Richard Henderson  <rth@redhat.com>
12077
12078         * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
12079         * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
12080         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
12081         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
12082         * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
12083         and real_2expN instead of a loop.
12084         * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
12085         (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
12086
12087 2002-08-25  Andre Leis <a.leis@gmx.net>
12088             David Billinghurst (David.Billinghurst@riotinto.com>
12089
12090         * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
12091
12092 2002-08-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12093
12094         * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
12095         Remove $(CONFIG_H) dependency.
12096
12097 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
12098
12099         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
12100
12101 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12102
12103         * adadecode.c (ada_demangle): Use xstrdup in lieu of
12104         xmalloc/strcpy.
12105         * misc.c (gnat_decode_option): Likewise.
12106
12107 2002-07-15  Florian Weimer  <fw@deneb.enyo.de>
12108
12109         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
12110         function approach did not work well because of a side effect (the
12111         function call could reallocate the table which was being indexed
12112         using its result). Fixes ada/4851. [RESURRECTED]
12113
12114 2002-07-01  Roger Sayle  <roger@eyesopen.com>
12115
12116         * ada/utils.c (builtin_function): Accept an additional parameter.
12117
12118 2002-06-28  Andreas Jaeger  <aj@suse.de>
12119
12120         PR ada/7144
12121         * Makefile.in: Fix typo in comment, patch by Adrian Knoth
12122         <adi@thur.de>.
12123
12124 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12125
12126         * Makefile.in (SHELL): Set to @SHELL@.
12127
12128 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12129
12130         * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
12131         array size calculation.
12132
12133 2002-06-04  Andreas Jaeger  <aj@suse.de>
12134
12135         * Make-lang.in (gnatbind): Readd rule that has been lost in last
12136         patch.
12137
12138 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
12139
12140         Merge from pch-branch:
12141
12142         * config-lang.in (gtfiles): Add ada-tree.h.
12143         * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
12144         (SET_TYPE_MODULUS): New.
12145         (SET_TYPE_INDEX): New.
12146         (SET_TYPE_DIGITS_VALUE): New.
12147         (SET_TYPE_RM_SIZE): New.
12148         (SET_TYPE_UNCONSTRAINED_ARRAY): New.
12149         (SET_TYPE_ADA_SIZE): New.
12150         (SET_TYPE_ACTUAL_BOUNDS): New.
12151         (SET_DECL_CONST_CORRESPONDING_VAR): New.
12152         (SET_DECL_ORIGINAL_FIELD): New.
12153         (TREE_LOOP_ID): Correct typo.
12154         * decl.c: Use new macros.
12155         * utils.c: Include debug.h, use new macros.
12156         * utils2.c: Use new macros.
12157
12158         * ada-tree.h: Update all macros for new tree description.
12159         (struct tree_loop_id): New.
12160         (union lang_tree_node): New.
12161         (struct lang_decl): New.
12162         (struct lang_type): New.
12163         * misc.c (gnat_mark_tree): Delete.
12164         (LANG_HOOKS_MARK_TREE): Delete.
12165         * trans.c (tree_transform): No longer any need to cast
12166         for TREE_LOOP_ID.
12167
12168         * utils.c (struct language_function): New dummy structure.
12169
12170         * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
12171         (misc.o): Likewise.
12172         (utils.o): Likewise; also gtype-ada.h.
12173         * Make-lang.in (gnat1): Add dependency on s-gtype.
12174         (gnatbind): Add dependency on $(CONFIG_H).
12175         * utils.c: Correct last #include.
12176         (stuct e_stack): Remove unnecessary 'static'.
12177         (mark_e_stack): Remove unused prototype.
12178
12179         * scn-nlit.adb: Remove whitespace after version number to
12180         keep lines under 80 chars.
12181         * snames.adb: Likewise.
12182         * treepr.ads: Likewise.
12183
12184         * Makefile.in (decl.o): Include gt-ada-<filename>.h.
12185         (misc.o): Likewise.
12186         (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
12187         * config-lang.in (gtfiles): New.
12188         * decl.c: Use gengtype for roots.
12189         * gigi.h: Use gengtype for roots.
12190         * trans.c: Use gengtype for roots.
12191         * utils.c: Use gengtype for roots, marking.  Include gtype-ada.h.
12192
12193 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
12194
12195         * misc.c (gnat_init): Adjust setting of internal_error_function.
12196
12197 2002-06-01  Joseph S. Myers  <jsm28@cam.ac.uk>
12198
12199         * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
12200         * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
12201         gnat_ug_wnt.texi: Regenerate.
12202
12203 2002-05-31  Florian Weimer  <fw@deneb.enyo.de>
12204
12205         * 5ntaprop.adb (with System.OS_Primitives): Remove.
12206
12207         * cstreams.c (max_path_len): Move from here ...
12208         * adaint.c (__gnat_max_path_len): ... to here.
12209         * adaint.c (__gnat_max_path_len): Declare.
12210         * g-dirope.adb (Max_Path): Adjust.
12211         * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
12212         * i-cstrea.ads (max_path_len): Adjust.
12213         * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
12214         * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
12215
12216         * Makefile.in, Make-lang.in: Documentation is now built in
12217         Make-lang.in.  Store Info and generated Texinfo files in the
12218         source directory.
12219         * gnat_ug.texi: Remove CVS keywords, correct version number.
12220         Set file name correctly.
12221
12222         * gnat_ug_*.texi: Add.
12223         * .cvsignore: Ignore generated Texinfo files.
12224
12225 2002-05-30  Zack Weinberg  <zack@codesourcery.com>
12226
12227         * ada.h: Add MI guard macro.
12228         (SUBTYPE): Define constants with an anonymous enum, not static
12229         const variables.
12230         (IN): Cast constants to appropriate type before use.
12231
12232 2002-05-26  Joseph S. Myers  <jsm28@cam.ac.uk>
12233
12234         * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
12235         (experimental)".
12236
12237 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12238
12239         * Make-lang.in (CP, ECHO): Copy from Makefile.in.
12240         (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
12241         (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
12242         (ALL_ADA_CFLAGS): Likewise.
12243         (ADA_INCLUDES): Likewise.
12244         Adapt for new working dir.
12245         (GNATBIND): Use Makefile.in version.
12246         (.SUFFIXES): Copy from Makefile.in.
12247         (ada-warn): Define.
12248         (.adb.o, .ads.o): Copy from Makefile.in.
12249         Added $(OUTPUT_OPTION).
12250         (GNAT1_C_OBJS): Moved from Makefile.in.
12251         Prefix with ada subdir.
12252         (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
12253         (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
12254         Adapt for new working dir.
12255         (EXTRA_GNATBIND_OBJS): Likewise.
12256         (ADA_BACKEND): Moved from Makefile.in.
12257         Renamed to avoid conflict with global BACKEND.
12258         Use that one.
12259         (TARGET_ADA_SRCS): Moved from Makefile.in.
12260         (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
12261         Use ADA_BACKEND.
12262         (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
12263         (ada_extra_files): Moved from Makefile.in.
12264         Prefix with ada subdir.
12265         (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
12266         (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
12267         (ada/nmake.ads): Likewise.
12268         (update-sources): Moved from Makefile.in.
12269         Prefix with ada subdir.
12270         (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
12271         (ADA_TREE_H): Likewise.
12272         (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
12273         (ada/memtrack.o): Likewise.
12274         (ada/adadecode.o): Likewise.
12275         Update dependencies.
12276         (ada/adaint.o): New.
12277         (ada/argv.o): Moved from Makefile.in.
12278         Prefix with ada subdir.
12279         Update dependencies.
12280         (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
12281         (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
12282         (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
12283         Prefix with ada subdir.
12284         (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
12285         (GNAT DEPENDENCIES): Regenerate.
12286         * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
12287         toplevel Makefile.in.
12288         (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
12289         (TARGET_ADA_SRCS): Removed.
12290         (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
12291         (GNATBIND_OBJS): Likewise.
12292         (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
12293         (BACKEND): Removed.
12294         (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
12295         (TREE_H): Likewise.
12296         (ada_extra_files): Likewise.
12297         (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
12298         (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
12299         (update-sources): Likewise.
12300         (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
12301         (ADA_TREE_H): Likewise.
12302         (adadecoce.o): Likewise.
12303         (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
12304         (GNAT DEPENDENCIES): Likewise.
12305
12306 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12307
12308         * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
12309         * Makefile.in: Likewise.
12310
12311 2002-05-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12312
12313         * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
12314         Restore $(CONFIG_H) and prefix.o dependencies.
12315         (ada.stage[1-4]): Depend on stage?-start.
12316
12317         * Makefile.in (b_gnatb.c): Depend on interfac.o.
12318
12319 2002-05-02  Jim Wilson  <wilson@redhat.com>
12320
12321         * utils.c (finish_record_type): Change record_size to record_type.
12322
12323 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12324
12325         * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
12326         (ALL_ADA_CFLAGS): Define.  Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
12327         ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
12328
12329 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
12330
12331         * misc.c (gnat_parse_file): Update.
12332
12333 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12334
12335         * misc.c (gnat_init): Don't set lang_attribute_common.
12336
12337 2002-04-21  Joseph S. Myers  <jsm28@cam.ac.uk>
12338
12339         * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
12340
12341 2002-04-21  Florian Weimer  <fw@deneb.enyo.de>
12342
12343         * gnat_ug.texi: New file.
12344
12345         * gnat_rm.texi: Do not include texiplus.texi.  Include fdl.texi
12346         instead of gfdl.texi
12347
12348         * xgnatug.adb, ug_words: New files.
12349
12350         * Makefile.in (doc, dvi): New targets.  Build gnat_ug_*,
12351         gnat_rm and gnat-style manuals.
12352
12353 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
12354
12355         * gigi.h (incomplete_type_error): Remove.
12356         * utils.c (incomplete_type_error): Remove.
12357
12358 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
12359
12360         * trans.c (tree_transform): Add has_scope argument to
12361         expand_start_stmt_expr.
12362
12363 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12364
12365         * gigi.h (truthvalue_conversion): Rename.
12366         * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
12367         * trans.c (tree_transform): Update.
12368         * utils2.c (truthvalue_conversion): Rename, update.
12369         (build_binary_op, build_unary_op): Update.
12370
12371 2002-04-04  Laurent Guerby  <guerby@acm.org>
12372
12373         * make.adb: Implement -margs, remove restriction about file name placement.
12374         * makeusg.adb: Documentation update.
12375         * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
12376         * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
12377
12378 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12379
12380         * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
12381         (builtin_function): Similarly.
12382
12383 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12384
12385         * decl.c (gnat_to_gnu_entity): Update.
12386         * gigi.h (mark_addressable): Rename.
12387         * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
12388         * trans.c (tree_transform): Update.
12389         * utils.c (create_var_decl): Update.
12390         * util2.c (build_binary_op, build_unary_op,
12391         fill_vms_descriptor): Update.
12392         (mark_addressable): Rename, update.
12393
12394 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
12395
12396         * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
12397         Rename.
12398         * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
12399         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
12400         * trans.c (tree_transform, convert_with_check): Update.
12401         * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
12402         Rename.
12403
12404 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
12405
12406         * gigi.h (finish_incomplete_decl): Rename.
12407         * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
12408         * utils.c (gnat_init_decl_processing): Don't set hook.
12409         (finish_incomplete_decl): Rename.
12410
12411 2002-03-29  Andreas Schwab  <schwab@suse.de>
12412
12413         * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
12414         directory.
12415
12416 2001-03-28  Robert Dewar <dewar@gnat.com>
12417
12418         * checks.ads:
12419         (Remove_Checks): New procedure
12420
12421         * checks.adb:
12422         (Remove_Checks): New procedure
12423
12424         * exp_util.adb:
12425         Use new Duplicate_Subexpr functions
12426         (Duplicate_Subexpr_No_Checks): New procedure
12427         (Duplicate_Subexpr_No_Checks_Orig): New procedure
12428         (Duplicate_Subexpr): Restore original form (checks duplicated)
12429         (Duplicate_Subexpr): Call Remove_Checks
12430
12431         * exp_util.ads:
12432         (Duplicate_Subexpr_No_Checks): New procedure
12433         (Duplicate_Subexpr_No_Checks_Orig): New procedure
12434         Add 2002 to copyright notice
12435
12436         * sem_util.adb: Use new Duplicate_Subexpr functions
12437
12438         * sem_eval.adb:
12439         (Eval_Indexed_Component): This is the place to call
12440         Constant_Array_Ref and to replace the value. We simply merge
12441         the code of this function in here, since it is now no longer
12442         used elsewhere. This fixes the problem of the back end not
12443         realizing we were clever enough to see that this was
12444         constant.
12445         (Expr_Val): Remove call to Constant_Array_Ref
12446         (Expr_Rep_Val): Remove call to Constant_Array_Ref
12447         Minor reformatting
12448         (Constant_Array_Ref): Deal with string literals (patch
12449         suggested by Zack Weinberg on the gcc list)
12450
12451 2001-03-28  Ed Schonberg <schonber@gnat.com>
12452
12453         * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
12454         Duplicate_Subexpr_Move_Checks.
12455
12456         * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
12457         Duplicate_Subexpr_Move_Checks.
12458
12459         * sem_eval.adb: (Constant_Array_Ref): Verify that constant
12460         value of array exists before retrieving it (it may a private
12461         protected component in a function).
12462
12463 2002-03-28   Geert Bosch <bosch@gnat.com>
12464
12465         * prj-pp.adb : New file.
12466
12467         * prj-pp.ads : New file.
12468
12469 2002-03-28  Andreas Jaeger  <aj@suse.de>
12470
12471         * Makefile.in (stamp-sdefault): Fix path for Makefile.
12472
12473 2002-03-28  Neil Booth  <neil@daikokuya.demon.co.uk>
12474
12475         * misc.c (gnat_expand_expr): Move prototype.
12476
12477 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12478
12479         * misc.c (insert_default_attributes): Remove.
12480
12481 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12482
12483         * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
12484         (gnat_init): Don't set hook.
12485         (gnat_expand_expr): Fix prototype.
12486
12487 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
12488
12489         * misc.c (ggc_p): Remove.
12490
12491 2002-03-27  Geert Bosch  <bosch@gnat.com>
12492
12493         * prj-makr.ads, prj-makr.adb : New files.
12494
12495 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12496
12497         * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
12498         (lang_mark_tree): Make static, rename.
12499
12500 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
12501
12502         * misc.c (maybe_build_cleanup): Remove.
12503
12504 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12505
12506         * gigi.h (yyparse): Remove.
12507
12508 2002-03-23  Florian Weimer  <fw@deneb.enyo.de>
12509
12510         * gnat_rm.texi: Sync with ACT version.
12511           (From Ben Brosgol <brosgol@gnat.com>)
12512
12513 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
12514
12515         * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
12516         (gnat_init): Remove old hook.
12517
12518 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
12519
12520         * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
12521         (yyparse): Rename gnat_parse_file.
12522
12523 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
12524
12525         Delete all lines containing "$Revision:".
12526         * xeinfo.adb: Don't look for revision numbers.
12527         * xnmake.adb: Likewise.
12528         * xsinfo.adb: Likewise.
12529         * xsnames.adb: Likewise.
12530         * xtreeprs.adb: Likewise.
12531
12532 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12533
12534         * misc.c (gnat_tree_code_type, gnat_tree_code_length,
12535         gnat_tree_code_name): Delete.
12536         (tree_code_type, tree_code_length, tree_code_name): Define.
12537         (gnat_init): Don't try to copy into the various tree_code
12538         arrays.
12539
12540 2002-03-11  Richard Henderson  <rth@redhat.com>
12541
12542         * Makefile.in (.NOTPARALLEL): Add fake tag.
12543
12544 2002-03-07  Geert Bosch  <bosch@gnat.com>
12545
12546         * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
12547         s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
12548         switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
12549         switch-m.adb, switch-m.ads : New files.
12550
12551 2002-03-07  Geert Bosch  <bosch@gnat.com>
12552
12553         * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
12554         4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
12555         4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
12556         4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
12557         5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
12558         5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
12559         5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
12560         5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
12561         5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
12562         5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
12563         5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
12564         5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
12565         5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
12566         5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
12567         5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
12568         5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
12569         5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
12570         5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
12571         5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
12572         5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
12573         7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
12574         Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
12575         a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
12576         a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
12577         a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
12578         a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
12579         a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
12580         a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
12581         a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
12582         adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
12583         atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
12584         bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
12585         csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
12586         einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
12587         eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
12588         exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
12589         exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
12590         exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
12591         exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
12592         exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
12593         expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
12594         freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
12595         g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
12596         g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
12597         g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
12598         g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
12599         g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
12600         g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
12601         gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
12602         gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
12603         gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
12604         i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
12605         impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
12606         lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
12607         lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
12608         memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
12609         mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
12610         nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
12611         output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
12612         par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
12613         prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
12614         prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
12615         prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
12616         rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
12617         s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
12618         s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
12619         s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
12620         s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
12621         s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
12622         s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
12623         s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
12624         s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
12625         s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
12626         s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
12627         s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
12628         s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
12629         s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
12630         s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
12631         s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
12632         sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
12633         sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
12634         sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
12635         sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
12636         sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
12637         sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
12638         sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
12639         sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
12640         sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
12641         sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
12642         snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
12643         stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
12644         table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
12645         tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
12646         treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
12647         types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
12648         utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
12649         xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
12650
12651         * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
12652         g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
12653         mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
12654         osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
12655
12656         * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
12657         5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
12658
12659         * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
12660         to mdll-fil.ad[bs] and mdll-util.ad[bs]
12661
12662         * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
12663         from mdllfile.ad[bs] and mdlltool.ad[bs]
12664
12665 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12666
12667         * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
12668         lieu of explicit sizeof/sizeof.
12669
12670 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
12671
12672         * misc.c (copy_lang_decl): Remove.
12673
12674 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
12675
12676         * misc.c: Delete traditional-mode-related code copied from the
12677         C front end but not used, or used only to permit the compiler
12678         to link.
12679
12680 2002-02-07  Richard Henderson  <rth@redhat.com>
12681
12682         * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
12683         * adaint.h (__gnat_to_gm_time): Update prototype.
12684
12685 2002-01-30  Richard Henderson  <rth@redhat.com>
12686
12687         * trans.c (tree_transform) [N_Loop_Statement]: Use
12688         expand_exit_loop_top_cond.
12689
12690 2001-12-23  Richard Henderson  <rth@redhat.com>
12691
12692         * utils.c (end_subprog_body): Push GC context around
12693         rest_of_compilation for nested functions.
12694
12695 2001-12-23  Richard Henderson  <rth@redhat.com>
12696
12697         * 5nosinte.ads: Get definition of "int" from Interfaces.C.
12698
12699 2001-12-23  Florian Weimer  <fw@deneb.enyo.de>
12700
12701         * gnat-style.texi (Declarations and Types): Remove ancient style
12702         rule which was mandated by code generation issues.
12703
12704         * gnat-style.texi (header): Add @dircategory, @direntry.
12705         (title page): Remove date.
12706         (general) Add @./@: where approriate, and two spaces after the
12707         full stop at the end of a sentence.  Use @samp markup when
12708         referring concrete lexical entities (keywords, attribute names
12709         etc.), and @syntax for ARM grammar elements. Use @r for English
12710         text in comments.  Use @emph for emphasis.  Change "if-statements"
12711         etc. to "if statements" (without @samp). Break long lines.  Make
12712         casing of section names consistent.
12713         (Identifiers): Use @samp markup for variable names.
12714         (Comments): Use @samp markup for comment characters. Line-end
12715         comments may follow any Ada code, not just statements.  Fix
12716         misspelling of "Integer" as "integer".
12717         (Loop statements): Do not use variable name "I", use "J".
12718         (Subprogram Declarations): Document alignment.
12719         (Subprogram Bodies, Block statements): Document empty line before
12720         "begin".
12721
12722 2001-12-22  Florian Weimer  <fw@deneb.enyo.de>
12723
12724         * make.adb (Add_Switch): Make Generic_Position a procedure.  The
12725         function approach did not work well because of a side effect (the
12726         function call could reallocate the table which was being indexed
12727         using its result). Fixes ada/4851.
12728
12729 2001-12-19  Robert Dewar <dewar@gnat.com>
12730
12731         * bindgen.adb: Minor reformatting
12732
12733         * cstand.adb: Minor reformatting
12734
12735         * fmap.adb: Minor reformatting
12736         Change name from Add for Add_To_File_Map (Add is much too generic)
12737         Change Path_Name_Of to Mapped_Path_Name
12738         Change File_Name_Of to Mapped_File_Name
12739         Fix copyright dates in header
12740
12741         * fmap.ads:
12742         Change name from Add for Add_To_File_Map (Add is much too generic)
12743         Change Path_Name_Of to Mapped_Path_Name
12744         Change File_Name_Of to Mapped_File_Name
12745         Fix copyright dates in header
12746
12747         * fname-uf.adb: Minor reformatting.  New names of stuff in Fmap.
12748         Add use clause for Fmap.
12749
12750         * make.adb: Minor reformatting
12751
12752         * osint.adb: Minor reformatting.  Change of names in Fmap.
12753         Add use clause for Fmap.
12754
12755         * prj-env.adb: Minor reformatting
12756
12757         * prj-env.ads: Minor reformatting
12758
12759         * switch.adb: Minor reformatting.  Do proper raise of Bad_Switch if
12760         error found (there were odd exceptions to this general rule in
12761         -gnatec/-gnatem processing)
12762
12763 2001-12-19  Olivier Hainque <hainque@gnat.com>
12764
12765         * raise.c (__gnat_eh_personality): Exception handling personality
12766         routine for Ada.  Still in rough state, inspired from the C++ version
12767         and still containing a bunch of debugging artifacts.
12768         (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
12769         inspired from the C++ library.
12770
12771         * raise.c (eh_personality): Add comments. Part of work for the GCC 3
12772         exception handling integration.
12773
12774 2001-12-19  Arnaud Charlet <charlet@gnat.com>
12775
12776         * Makefile.in: Remove use of 5smastop.adb which is obsolete.
12777         (HIE_SOURCES): Add s-secsta.ad{s,b}.
12778         (HIE_OBJS): Add s-fat*.o
12779         (RAVEN_SOURCES): Remove files that are no longer required. Add
12780         interrupt handling files.
12781         (RAVEN_MOD): Removed, no longer needed.
12782
12783 2001-12-19  Robert Dewar <dewar@gnat.com>
12784
12785         * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
12786         Add 2001 to copyright date
12787
12788         * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
12789         need to force universal inlining for these cases.
12790
12791 2001-12-19  Arnaud Charlet <charlet@gnat.com>
12792
12793         * s-taprob.adb: Minor clean ups so that this unit can be used in
12794         Ravenscar HI.
12795
12796         * exp_ch7.adb: Allow use of secondary stack in HI mode.
12797         Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
12798
12799 2001-12-19  Vincent Celier <celier@gnat.com>
12800
12801         * prj-tree.ads (Project_Node_Record): Add comments for components
12802         Pkg_Id and Case_Insensitive.
12803
12804 2001-12-19  Pascal Obry <obry@gnat.com>
12805
12806         * g-socket.adb: Minor reformatting. Found while reading code.
12807
12808 2001-12-19  Robert Dewar <dewar@gnat.com>
12809
12810         * prj-tree.ads: Minor reformatting
12811
12812 2001-12-20  Joseph S. Myers  <jsm28@cam.ac.uk>
12813
12814         * config-lang.in (diff_excludes): Remove.
12815
12816 2001-12-17  Ed Schonberg <schonber@gnat.com>
12817
12818         * sem_res.adb (Resolve_Selected_Component): do not generate a
12819         discriminant check if the selected component is a component of
12820         the argument of an initialization procedure.
12821
12822         * trans.c (tree_transform, case of arithmetic operators): If result
12823         type is private, the gnu_type is the base type of the full view,
12824         given that the full view itself may be a subtype.
12825
12826 2001-12-17  Robert Dewar <dewar@gnat.com>
12827
12828         * sem_res.adb: Minor reformatting
12829
12830         * trans.c (tree_transform, case N_Real_Literal): Add missing third
12831         parameter in call to Machine (unknown horrible effects from this
12832         omission).
12833
12834         * urealp.h: Add definition of Round_Even for call to Machine
12835         Add third parameter for Machine
12836
12837 2001-12-17  Ed Schonberg <schonber@gnat.com>
12838
12839         * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
12840         predefined units in No_Run_Time mode.
12841
12842 2001-12-17  Richard Kenner <kenner@gnat.com>
12843
12844         * misc.c (insn-codes.h): Now include.
12845
12846 2001-12-17  Olivier Hainque <hainque@gnat.com>
12847
12848         * a-except.adb: Preparation work for future integration of the GCC 3
12849         exception handling mechanism
12850         (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
12851         to factorize previous code sequences and make them externally callable,
12852         e.g. for the Ada personality routine when the GCC 3 mechanism is used.
12853         (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
12854         Use the new notification routines.
12855
12856 2001-12-17  Emmanuel Briot <briot@gnat.com>
12857
12858         * prj-tree.ads (First_Choice_Of): Document the when others case
12859
12860 2001-12-17  Arnaud Charlet <charlet@gnat.com>
12861
12862         * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
12863         HI-E mode, in order to support Ravenscar profile properly.
12864
12865         * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
12866         mode on 32 bits targets.
12867
12868 2001-12-17  Vincent Celier <celier@gnat.com>
12869
12870         * fmap.adb: Initial version.
12871
12872         * fmap.ads: Initial version.
12873
12874         * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
12875         If search is successfully done, add to mapping.
12876
12877         * frontend.adb: Initialize the mapping if a -gnatem switch was used.
12878
12879         * make.adb:
12880         (Gnatmake): Add new local variable Mapping_File_Name.
12881          Create mapping file when using project file(s).
12882          Delete mapping file before exiting.
12883
12884         * opt.ads (Mapping_File_Name): New variable
12885
12886         * osint.adb (Find_File): Use path name found in mapping, if any.
12887
12888         * prj-env.adb (Create_Mapping_File): New procedure
12889
12890         * prj-env.ads (Create_Mapping_File): New procedure.
12891
12892         * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
12893         (Mapping_File)
12894
12895         * usage.adb: Add entry for new switch -gnatem.
12896
12897         * Makefile.in: Add dependencies for fmap.o.
12898
12899 2001-12-17  Ed Schonberg <schonber@gnat.com>
12900
12901         * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
12902         is a package instantiation rewritten as a package body.
12903         (Install_Withed_Unit): Undo previous change, now redundant.
12904
12905 2001-12-17  Gary Dismukes <dismukes@gnat.com>
12906
12907         * layout.adb:
12908         (Compute_Length): Move conversion to Unsigned to callers.
12909         (Get_Max_Size): Convert Len expression to Unsigned after calls to
12910         Compute_Length and Determine_Range.
12911         (Layout_Array_Type): Convert Len expression to Unsigned after calls to
12912         Compute_Length and Determine_Range.
12913         Above changes fix problem with length computation for supernull arrays
12914         where Max (Len, 0) wasn't getting applied due to the Unsigned
12915         conversion used by Compute_Length.
12916
12917 2001-12-17  Arnaud Charlet <charlet@gnat.com>
12918
12919         * rtsfind.ads:
12920         (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
12921          System.Secondary_Stack.
12922         (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
12923          in HI-E mode.
12924         Remove unused entity RE_Exception_Data.
12925
12926         * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
12927
12928         * rident.ads (No_Secondary_Stack): New restriction.
12929
12930 2001-12-17  Joel Brobecker <brobecke@gnat.com>
12931
12932         * gnat_rm.texi: Fix minor typos. Found while reading the section
12933         regarding "Bit_Order Clauses" that was sent to a customer.
12934         Very interesting documentation!
12935
12936 2001-12-17  Robert Dewar <dewar@gnat.com>
12937
12938         * sem_case.adb (Choice_Image): Avoid creating improper character
12939         literal names by using the routine Set_Character_Literal_Name. This
12940         fixes bombs in certain error message cases.
12941
12942 2001-12-17  Arnaud Charlet <charlet@gnat.com>
12943
12944         * a-reatim.adb: Minor reformatting.
12945
12946 2001-12-17  Ed Schonberg <schonber@gnat.com>
12947
12948         * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
12949         case where the formal is an extension of another formal in the current
12950         unit or in a parent generic unit.
12951
12952 2001-12-17  Arnaud Charlet <charlet@gnat.com>
12953
12954         * s-tposen.adb: Update comments.  Minor reformatting.
12955         Minor code clean up.
12956
12957         * s-tarest.adb: Update comments.  Minor code reorganization.
12958
12959 2001-12-17  Gary Dismukes <dismukes@gnat.com>
12960
12961         * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
12962         when Java_VM.
12963
12964 2001-12-17  Robert Dewar <dewar@gnat.com>
12965
12966         * exp_attr.adb: Minor reformatting
12967
12968 2001-12-17  Ed Schonberg <schonber@gnat.com>
12969
12970         * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
12971         derivations nested within a child unit: verify that the parent
12972         type is declared in an outer scope.
12973
12974 2001-12-17  Robert Dewar <dewar@gnat.com>
12975
12976         * sem_ch12.adb: Minor reformatting
12977
12978 2001-12-17  Ed Schonberg <schonber@gnat.com>
12979
12980         * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
12981         warning if current unit is a predefined one, from which bodies may
12982         have been deleted.
12983
12984 2001-12-17  Robert Dewar <dewar@gnat.com>
12985
12986         * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
12987         Fix header format. Add 2001 to copyright date.
12988
12989         * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
12990         which caused CE during compilation if checks were enabled.
12991
12992 2001-12-17  Vincent Celier <celier@gnat.com>
12993
12994         * make.adb:
12995         (Switches_Of): New function
12996         (Test_If_Relative_Path): New procedure
12997         (Add_Switches): Use new function Switches_Of
12998         (Collect_Arguments_And_Compile): Use new function Switches_Of.
12999         When using a project file, test if there are any relative
13000         search path. Fail if there are any.
13001         (Gnatmake): Only add switches for the primary directory when not using
13002         a project file. When using a project file, change directory to the
13003         object directory of the main project file. When using a project file,
13004         test if there are any relative search path. Fail if there are any.
13005         When using a project file, fail if specified executable is relative
13006         path with directory information, and prepend executable, if not
13007         specified as an absolute path, with the exec directory.  Make sure
13008         that only one -o switch is transmitted to the linker.
13009
13010         * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
13011
13012         * prj-nmsc.adb:
13013         (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
13014         when using a non standard naming scheme.
13015         (Check_Ada_Naming_Scheme): Make sure that error messages
13016         do not raise exceptions.
13017         (Is_Illegal_Append): Return True if there is no dot in the suffix.
13018         (Language_Independent_Check): Check the exec directory.
13019
13020         * prj.adb (Project_Empty): Add new component Exec_Directory
13021
13022         * prj.ads:
13023         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
13024         (Project_Data): Add component Exec_Directory
13025
13026         * snames.adb: Updated to match snames.ads revision 1.215
13027
13028         * snames.ads: Added Exec_Dir
13029
13030 2001-12-17  Robert Dewar <dewar@gnat.com>
13031
13032         * make.adb: Minor reformatting
13033
13034         * prj-nmsc.adb: Minor reformatting
13035
13036         * snames.adb: Updated to match snames.ads
13037
13038         * snames.ads: Alphebetize entries for project file
13039
13040 2001-12-17  Ed Schonberg <schonber@gnat.com>
13041
13042         * trans.c (process_freeze_entity): Do nothing if the entity is a
13043         subprogram that was already elaborated.
13044
13045 2001-12-17  Richard Kenner <kenner@gnat.com>
13046
13047         * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
13048         and Esize if object is referenced via pointer.
13049
13050 2001-12-17  Ed Schonberg <schonber@gnat.com>
13051
13052         * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
13053         is discrete before analyzing choices.
13054
13055 2001-12-17  Joel Brobecker <brobecke@gnat.com>
13056
13057         * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
13058         containing the name of the Ada Main Program. This string is mainly
13059         intended for the debugger.
13060         (Gen_Output_File_C): Do the equivalent change when generating a C file.
13061
13062 2001-12-17  Robert Dewar <dewar@gnat.com>
13063
13064         * ali.adb: Set new Dummy_Entry field in dependency entry
13065
13066         * ali.ads: Add Dummy_Entry field to source dependency table
13067
13068         * bcheck.adb (Check_Consistency): Ignore dummy D lines
13069
13070         * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
13071
13072         * lib-writ.ads: Document dummy D lines for missing files.
13073
13074         * types.ads: (Dummy_Time_Stamp): New value for non-existant files
13075
13076 2001-12-17  Robert Dewar <dewar@gnat.com>
13077
13078         * ali.adb: Type reference does not reset current file.
13079
13080         * ali.adb: Recognize and scan renaming reference
13081
13082         * ali.ads: Add spec for storing renaming references.
13083
13084         * lib-xref.ads: Add documentation for handling of renaming references
13085
13086         * lib-xref.adb: Implement output of renaming reference.
13087
13088         * checks.adb:
13089         (Determine_Range): Document local variables
13090         (Determine_Range): Make sure Hbound is initialized. It looks as though
13091          there could be a real problem here with an uninitialized reference
13092          to Hbound, but no actual example of failure has been found.
13093
13094 2001-12-17  Laurent Pautet <pautet@gnat.com>
13095
13096         * g-socket.ads:
13097         Fix comment of Shutdown_Socket and Close_Socket. These functions
13098         should not fail silently because if they are called twice, this
13099         probably means that there is a race condition in the user program.
13100         Anyway, this behaviour is consistent with the rest of this unit.
13101         When an error occurs, an exception is raised with the error message
13102         as exception message.
13103
13104 2001-12-17  Robert Dewar <dewar@gnat.com>
13105
13106         * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
13107         that it happens before modification of Sloc values for -gnatD.
13108
13109         * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
13110         so that it happens before modification of Sloc values for -gnatD.
13111
13112         * switch.adb: Minor reformatting
13113
13114 2001-12-15  Richard Henderson  <rth@redhat.com>
13115
13116         * sem_ch7.adb: Wrap comment.
13117
13118 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
13119
13120         * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
13121         5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
13122         5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
13123         5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
13124         5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
13125         7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
13126         a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
13127         a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
13128         cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
13129         exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
13130         exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
13131         g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
13132         gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
13133         make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
13134         par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
13135         repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
13136         s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
13137         s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
13138         s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
13139         s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
13140         sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
13141         sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
13142         sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
13143         sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
13144         spelling errors.
13145
13146 2001-12-14  Vincent Celier <celier@gnat.com>
13147
13148         * osint.adb(Create_Debug_File): When an object file is specified,
13149         put the .dg file in the same directory as the object file.
13150
13151 2001-12-14  Robert Dewar <dewar@gnat.com>
13152
13153         * osint.adb: Minor reformatting
13154
13155         * lib-xref.adb (Output_Instantiation): New procedure to generate
13156         instantiation references.
13157
13158         * lib-xref.ads: Add documentation of handling of generic references.
13159
13160         * ali.adb (Read_Instantiation_Ref): New procedure to read
13161         instantiation references
13162
13163         * ali.ads: Add spec for storing instantiation references
13164
13165         * bindusg.adb: Minor reformatting
13166
13167         * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
13168
13169         * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
13170
13171         * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
13172
13173         * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
13174
13175         * csets.ads:
13176         Fix header format
13177         Add 2001 to copyright date
13178         Add entry for Latin-5 (Cyrillic ISO-8859-5)
13179
13180 2001-12-14  Matt Gingell <gingell@gnat.com>
13181
13182         * adaint.c: mktemp is a macro on Lynx and can not be used as an
13183         expression.
13184
13185 2001-12-14  Richard Kenner <kenner@gnat.com>
13186
13187         * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
13188         if operand is CONSTRUCTOR.
13189
13190 2001-12-14  Ed Schonberg <schonber@gnat.com>
13191
13192         * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
13193         before emiting check on right-hand side, so that exception information
13194         is correct.
13195
13196 2001-12-14  Richard Kenner <kenner@gnat.com>
13197
13198         * utils.c (create_var_decl): Throw away initializing expression
13199         if just annotating types and non-constant.
13200
13201 2001-12-14  Vincent Celier <celier@gnat.com>
13202
13203         * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
13204         Default_Ada_...
13205
13206         * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13207         Remove functions.
13208         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
13209
13210         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
13211         Remove functions.
13212         (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
13213
13214 2001-12-16  Joseph S. Myers  <jsm28@cam.ac.uk>
13215
13216         * ChangeLog: Remove piece of diff output.
13217
13218 2001-12-14  Geert Bosch <bosch@gnat.com>
13219
13220         * config-lang.in: Update copyright notice
13221
13222         * layout.adb: Remove commented out code.
13223
13224         * mdllfile.ads: Update copyright notice. Fix header format.
13225
13226         * sem_case.ads: Likewise.
13227
13228         * sem_ch3.adb: Minor reformatting.
13229
13230 2001-12-12  Geert Bosch <bosch@gnat.com>
13231
13232         * freeze.ads: Update copyright date.
13233
13234         * g-comlin.ads: Minor reformatting.
13235
13236         * gnat-style.texi: Fix typo.
13237
13238 2001-12-12  Geert Bosch <bosch@gnat.com>
13239
13240         *  einfo.h: Regenerate.
13241
13242 2001-12-12  Ed Schonberg <schonber@gnat.com>
13243
13244         * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
13245         on known node types, rather than untyped fields. Further cleanups.
13246
13247 2001-12-12  Robert Dewar <dewar@gnat.com>
13248
13249         * sem_ch12.adb:
13250         (Save_Entity_Descendant): Minor comment update.
13251         (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
13252          of an N_Attribute_Reference node. As per note below, this does not
13253         eliminate need for Associated_Node in attribute ref nodes.
13254         (Associated_Node): Documentation explicitly mentions attribute
13255         reference nodes, since this field is used in such nodes.
13256
13257         * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
13258
13259 2001-12-12  Robert Dewar <dewar@gnat.com>
13260
13261         * s-stalib.adb: Add more comments on with statements being needed
13262
13263         * par-ch12.adb: Minor reformatting
13264
13265         * prj-dect.ads: Fix copyright header
13266
13267         * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
13268         inputs fit in 32 bits, but the result still overflows.
13269
13270         * s-fatgen.ads: Minor comment improvement
13271
13272 2001-12-12  Ed Schonberg <schonber@gnat.com>
13273
13274         * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
13275         formal derived type, look for an inherited component from the full
13276         view of the parent, if any.
13277
13278 2001-12-12  Robert Dewar <dewar@gnat.com>
13279
13280         * checks.ads (Apply_Alignment_Check): New procedure.
13281
13282         * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
13283         ensure that the alignment of objects with address clauses is
13284         appropriate, and raise PE if not.
13285
13286         * exp_util.ads (Must_Be_Aligned): Removed, replaced by
13287         Exp_Pakd.Known_Aligned_Enough
13288
13289         * mdllfile.ads: Minor reformatting
13290
13291         * mlib-fil.ads: Minor reformatting
13292
13293 2001-12-12  Ed Schonberg <schonber@gnat.com>
13294
13295         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
13296         fix to any component reference if enclosing record has non-standard
13297         representation.
13298
13299 2001-12-12  Vincent Celier <celier@gnat.com>
13300
13301         * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
13302         Iteration
13303
13304 2001-12-12  Ed Schonberg <schonber@gnat.com>
13305
13306         * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
13307         sem_attr.
13308
13309 2001-12-12  Robert Dewar <dewar@gnat.com>
13310
13311         * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
13312
13313 2001-12-12  Emmanuel Briot <briot@gnat.com>
13314
13315         * g-regexp.adb: Remove all debug code, since it isn't required anymore,
13316         and it adds dependencies to system.io.
13317
13318 2001-12-12  Pascal Obry <obry@gnat.com>
13319
13320         * g-dirope.adb (Expand_Path.Var): Correctly detect end of
13321         variable name.
13322
13323 2001-12-11  Ed Schonberg <schonber@gnat.com>
13324
13325         * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
13326         that is the parent of other generics, the instance body replaces the
13327         instance node.  Retrieve the instance of the spec, which is the one
13328         that is visible in clients and within the body.
13329
13330 2001-12-11  Vincent Celier <celier@gnat.com>
13331
13332         * gnatmain.adb: Initial version.
13333
13334         * gnatmain.ads: Initial version.
13335
13336         * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
13337
13338         * snames.adb: Updated to match snames.ads.
13339
13340         * snames.ads: Added Gnatstub.
13341
13342 2001-12-11  Vincent Celier <celier@gnat.com>
13343
13344         * prj-attr.adb (Initialization_Data): Change name from
13345         Initialisation_Data.
13346
13347 2001-12-11  Emmanuel Briot <briot@gnat.com>
13348
13349         * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
13350         + and * applied to backslashed expressions like \r.
13351
13352 2001-12-11  Vasiliy Fofanov <fofanov@gnat.com>
13353
13354         * g-os_lib.ads: String_List type added, Argument_List type is now
13355         subtype of String_List.
13356
13357 2001-12-11  Robert Dewar <dewar@gnat.com>
13358
13359         * g-os_lib.ads: Change copyright to FSF
13360         Add comments for String_List type
13361
13362 2001-12-11  Vincent Celier <celier@gnat.com>
13363
13364         * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
13365         string to the buffer).
13366
13367 2001-12-11  Ed Schonberg <schonber@gnat.com>
13368
13369         * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
13370         sem_attr.
13371
13372         * sem_attr.adb: Simplify previous fix for Address.
13373         (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
13374         to avoid anomalies where the bound of the type appears to raise
13375         constraint error.
13376
13377 2001-12-11  Robert Dewar <dewar@gnat.com>
13378
13379         * lib-xref.adb (Output_Refs): Make sure pointers are always properly
13380         handled.
13381
13382 2001-12-11  Ed Schonberg <schonber@gnat.com>
13383
13384         * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
13385         renamed unit before checking for recursive instantiations.
13386
13387 2001-12-11  Emmanuel Briot <briot@gnat.com>
13388
13389         * prj.ads: Add comments for some of the fields.
13390
13391 2001-12-11  Robert Dewar <dewar@gnat.com>
13392
13393         * lib-xref.adb (Output_Refs): Don't output type references outside
13394         the main unit if they are not otherwise referenced.
13395
13396 2001-12-11  Ed Schonberg <schonber@gnat.com>
13397
13398         * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
13399         code and diagnose additional illegal uses
13400
13401         * sem_util.adb (Is_Object_Reference): An indexed component is an
13402         object only if the prefix is.
13403
13404 2001-12-11  Vincent Celier <celier@gnat.com>
13405
13406         * g-diopit.adb: Initial version.
13407
13408         * g-diopit.ads: Initial version.
13409
13410         * g-dirope.adb:
13411         (Expand_Path): Avoid use of Unbounded_String
13412         (Find, Wildcard_Iterator): Moved to child package Iteration
13413
13414         * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
13415
13416 2001-12-11  Robert Dewar <dewar@gnat.com>
13417
13418         * sem_attr.adb: Minor reformatting
13419
13420 2001-12-11  Ed Schonberg <schonber@gnat.com>
13421
13422         * sem_ch3.adb: Clarify some ???.
13423
13424 2001-12-11  Robert Dewar <dewar@gnat.com>
13425
13426         * exp_util.adb (Must_Be_Aligned): Removed, replaced by
13427         Exp_Pakd.Known_Aligned_Enough
13428
13429         * sem_ch13.adb (Check_Address_Alignment): Removed, extended
13430         version is moved to Exp_Ch13.
13431
13432 2001-12-11  Robert Dewar <dewar@gnat.com>
13433
13434         * einfo.ads: Minor reformatting
13435
13436         * exp_ch5.adb: Add comment for previous.change
13437
13438         * ali.adb: New interface for extended typeref stuff.
13439
13440         * ali.ads: New interface for typeref stuff.
13441
13442         * checks.adb (Apply_Alignment_Check): New procedure.
13443
13444         * debug.adb: Add -gnatdM for modified ALI output
13445
13446         * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
13447
13448         * lib-xref.adb: Extend generation of <..> notation to cover
13449         subtype/object types. Note that this is a complete rewrite,
13450         getting rid of the very nasty quadratic algorithm previously
13451         used for derived type output.
13452
13453         * lib-xref.ads: Extend description of <..> notation to cover
13454         subtype/object types. Uses {..} for these other cases.
13455         Also use (..) for pointer types.
13456
13457         * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
13458
13459         * exp_pakd.adb: Minor reformatting.  Note that prevous RH should say:
13460         (Known_Aligned_Enough): Replaces Must_Be_Aligned.
13461
13462 2001-12-11  Vincent Celier <celier@gnat.com>
13463
13464         * gnatcmd.adb:
13465         Changed /COMPILE_ONLY to /ACTIONS=COMPILE
13466         Changed /BIND_ONLY to /ACTIONS=BIND
13467         Changed /LINK_ONLY to /ACTIONS=LINK
13468
13469 2001-12-11  Ed Schonberg  <schonber@gnat.com>
13470
13471         * sem_ch8.adb (Find_Selected_Component): improved search for a
13472         candidate package in case of error.
13473
13474         * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
13475         chain back on scope stack before reinstalling use clauses.
13476
13477         * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
13478         is enabled, do not kill the code for the condition, to preserve
13479         warning.
13480
13481 2001-12-11  Robert Dewar <dewar@gnat.com>
13482
13483         * checks.adb (Insert_Valid_Check): Apply validity check to expression
13484         of conversion, not to result of conversion.
13485
13486 2001-12-11  Ed Schonberg <schonber@gnat.com>
13487
13488         * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
13489         before freezing parent. If the declarations are mutually recursive,
13490         an access to the current record type may be frozen before the
13491         derivation is complete.
13492
13493 2001-12-05  Vincent Celier <celier@gnat.com>
13494
13495         * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
13496         -c /COMPILE_ONLY, -l /LINK_ONLY
13497
13498         * opt.ads:
13499         (Bind_Only): New Flag
13500         (Link_Only): New flag
13501
13502         * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
13503         and -l (Link_Only)
13504
13505         * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
13506
13507         * make.adb:
13508         (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
13509         (Gnatmake): Set the step flags. Only perform a step if the
13510         corresponding step flag is True.
13511         (Scan_Make_Arg): Reset the bind and link step flags when -u
13512         or -gnatc has been specified.
13513
13514 2001-12-05  Ed Schonberg <schonber@gnat.com>
13515
13516         * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
13517         get bounds from right operand.
13518
13519         * sem_eval.adb: Minor reformatting
13520
13521         * exp_util.adb (Make_Literal_Range): use bound of literal rather
13522         than Index'First, its lower bound may be different from 1.
13523
13524         * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
13525         and C48009J
13526
13527 2001-12-05  Vincent Celier <celier@gnat.com>
13528
13529         * prj-nmsc.adb Minor reformatting
13530
13531         * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
13532         set and libraries are not supported.
13533
13534 2001-12-05  Ed Schonberg <schonber@gnat.com>
13535
13536         * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
13537         private view explicitly, so the back-end can treat as a global
13538         when appropriate.
13539
13540 2001-12-05  Ed Schonberg <schonber@gnat.com>
13541
13542         * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
13543          unit, always replace instance node with new body, for ASIS use.
13544
13545 2001-12-05  Vincent Celier <celier@gnat.com>
13546
13547         * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
13548         libraries are not supported and both attributes Library_Name and
13549         Library_Dir are specified.
13550
13551         * prj-proc.adb (Expression): Set location of Result to location of
13552         first term.
13553
13554         * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
13555         (prj-nmsc is now importing MLib.Tgt)
13556
13557         * prj-proc.adb: Put the change indicated above that was forgotten.
13558
13559 2001-12-05  Robert Dewar <dewar@gnat.com>
13560
13561         * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
13562
13563 2001-12-05  Ed Schonberg <schonber@gnat.com>
13564
13565         * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
13566         constraint, introduce explicit subtype declaration and derive from it.
13567
13568         * sem_ch3.adb: Minor reformatting
13569
13570 2001-12-05  Robert Dewar <dewar@gnat.com>
13571
13572         * checks.adb (Determine_Range): Increase cache size for checks.
13573         Minor reformatting
13574
13575         * exp_ch6.adb: Minor reformatting
13576         (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
13577         a parameter whose root type is System.Address, since treating such
13578         subprograms as pure in the code generator is almost surely a mistake
13579         that will lead to unexpected results.
13580
13581         * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
13582         change handling of conversions.
13583
13584         * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
13585
13586 2001-12-05  Ed Schonberg <schonber@gnat.com>
13587
13588         * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
13589         aggregate with static wrong size, attach generated Raise node to
13590         declaration.
13591
13592 2001-12-05  Robert Dewar <dewar@gnat.com>
13593
13594         * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
13595         Fixes compilation abandoned bomb in B24009B.
13596
13597 2001-12-05  Ed Schonberg <schonber@gnat.com>
13598
13599         * sem_ch12.adb:
13600         Document use of Associated_Node on Selected_Components.
13601         (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
13602         to clarify use of untyped descendant fields.
13603
13604 2001-12-05  Robert Dewar <dewar@gnat.com>
13605
13606         * prj-dect.ads: Add ??? comment
13607         Add 2001 to copyright notice (was not done in after all)
13608
13609         * prj-part.adb: Minor reformatting. Reword one awkward error message.
13610
13611         * prj.ads: Minor reformatting throughout, and add some ??? comments
13612
13613         * snames.ads: Minor reformatting
13614
13615 2001-12-05  Geert Bosch <bosch@gnat.com>
13616
13617         * snames.adb: Autoupdate
13618
13619 2001-12-05  Vincent Celier <celier@gnat.com>
13620
13621         * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
13622
13623         * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
13624
13625         * prj-env.adb: Minor comment changes (modifying -> extends).
13626
13627         * prj-nmsc.adb: Minor comment changes (modifying -> extends).
13628
13629         * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
13630         Tok_Extends.
13631
13632         * prj.adb (Initialize): Change Modifying to Extends.
13633
13634         * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
13635
13636         * prj.ads: Minor comment change (Modifying -> extending).
13637
13638         * snames.ads: Change modifying to extends.
13639
13640 2001-12-05  Robert Dewar <dewar@gnat.com>
13641
13642         * sem_warn.adb: Remove stuff for conditionals, we are not going to
13643         do this after all.
13644
13645         * sem_warn.ads: Remove stuff for conditionals, we are not going to
13646         do this after all.  Add 2001 to copyright notice
13647
13648 2001-12-04  Geert Bosch <bosch@gnat.com>
13649
13650         *  einfo.h, sinfo.h, treeprs.ads: Regenerate.
13651
13652 2001-12-04  Robert Dewar <dewar@gnat.com>
13653
13654         * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
13655         location if we already have errors. Stops some cases of cascaded
13656         errors.
13657
13658         * errout.adb: Improve comment.
13659
13660 2001-12-04  Robert Dewar <dewar@gnat.com>
13661
13662         * sem_ch12.adb:
13663         (Analyze_Formal_Type_Definition): Defend against Error.
13664         (Analyze_Formal_Subprogram): Defend against Error.
13665
13666         * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
13667         remove following semicolon if present. Removes cascaded error.
13668
13669 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
13670
13671         * bindgen.adb:
13672         (Gen_Exception_Table_Ada): Write "begin" and then return if Num
13673          exceptions equals 0.
13674         (Gen_Exception_Table_C): Return if Num exceptions equals 0.
13675         Fixes PIWG E tests (which have to be run with -gnatL).
13676
13677 2001-12-04  Robert Dewar <dewar@gnat.com>
13678
13679         * einfo.ads: Minor reformatting
13680
13681 2001-12-04  Ed Schonberg <schonber@gnat.com>
13682
13683         * einfo.ads: Block_Node points to the identifier of the block, not to
13684         the block node itself, to preserve the link when the block is
13685         rewritten, e.g. within an if-statement with a static condition.
13686
13687         * inline.adb (Cleanup_Scopes): recover block statement from block
13688         entity using new meaning of Block_Node.
13689
13690         * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
13691         identifier of block node, rather than to node itself.
13692
13693 2001-12-04  Gary Dismukes <dismukes@gnat.com>
13694
13695         * layout.adb:
13696         (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
13697         (Discrimify): Go back to setting the Etypes of the selected component
13698         because the Vname component does not exist at this point and will
13699         fail name resolution. Also set Analyzed.
13700         Remove with and use of Sem_Res.
13701
13702 2001-12-04  Arnaud Charlet <charlet@gnat.com>
13703
13704         * Makefile.in: (HIE_SOURCES): add s-fat*.
13705
13706 2001-12-04  Robert Dewar <dewar@gnat.com>
13707
13708         * sem_attr.adb:
13709         (Compile_Time_Known_Attribute): New procedure.
13710         (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
13711          proper range check.
13712
13713 2001-12-04  Ed Schonberg <schonber@gnat.com>
13714
13715         * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
13716         processing discriminants to diagnose illegal default values.
13717
13718 2001-12-04  Ed Schonberg <schonber@gnat.com>
13719
13720         * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
13721         access discriminant within a type extension that constrains its
13722         parent discriminants.
13723
13724 2001-12-04  Ed Schonberg <schonber@gnat.com>
13725
13726         * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
13727         is malformed, use instance of Any_Id to allow analysis to proceed.
13728
13729         * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
13730         type definition is illegal.
13731         (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
13732         misplaced.
13733
13734 2001-12-04  Ed Schonberg <schonber@gnat.com>
13735
13736         * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
13737         constants.
13738
13739 2001-12-04  Robert Dewar <dewar@gnat.com>
13740
13741         * errout.adb: Minor reformatting
13742
13743 2001-12-04  Robert Dewar <dewar@gnat.com>
13744
13745         * exp_util.adb: Minor reformatting from last change
13746
13747         * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
13748         which is a rewriting of an expression, traverse the original
13749         expression to remove warnings that may have been posted on it.
13750
13751 2001-12-04  Ed Schonberg <schonber@gnat.com>
13752
13753         * exp_util.adb (Must_Be_Aligned): Return false for a component of a
13754         record that has other packed components.
13755
13756 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
13757
13758         * adaint.c: Minor cleanups.
13759
13760 2001-12-04  Douglass B. Rupp <rupp@gnat.com>
13761
13762         * adaint.c: Do not use utime.h on vxworks.
13763
13764 2001-12-04  Arnaud Charlet <charlet@gnat.com>
13765
13766         * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
13767         more confusion than it solves.
13768
13769 2001-12-04  Geert bosch <bosch@gnat.com>
13770
13771         * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
13772
13773 2001-12-04  Geert Bosch  <bosch@gnat.com>
13774
13775         * Makefile.in (update-sources): New target.
13776         For use by gcc_release script.
13777
13778 2001-12-04  Ed Schonberg <schonber@gnat.com>
13779
13780         * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
13781         a configuration pragma, it is now legal wherever a pragma can appear.
13782
13783 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
13784
13785         * Makefile.in: Don't set ALL.  Delete @cross_defines@,
13786         @cross_overrides@, @build_overrides@ stanzas.  INTERNAL_CFLAGS
13787         is now @CROSS@ -DIN_GCC; update comment.
13788
13789 2001-12-04  Robert Dewar <dewar@gnat.com>
13790
13791         * einfo.adb (Has_Pragma_Pure_Function): New flag.
13792         Fix problem that stopped ceinfo from working
13793
13794         * einfo.ads (Has_Pragma_Pure_Function): New flag.
13795
13796         * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
13797
13798 2001-12-04  Douglas B. Rupp <rupp@gnat.com>
13799
13800         * gnatchop.adb:
13801         (File_Time_Stamp): New procedure.
13802         (Preserve_Mode): New boolean.
13803         (Write_Unit): Pass time stamp.
13804         Implement -p switch (preserve time stamps).
13805
13806         * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
13807
13808         * gnatchop.adb: Do usage info for -p switch
13809
13810         * adaint.h (__gnat_set_file_time_name): New function
13811
13812         * adaint.c (__gnat_set_file_time_name): Implement
13813
13814         * adaint.h: Fix typo
13815
13816 2001-12-03  Robert Dewar <dewar@gnat.com>
13817
13818         * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
13819         have Associated_Node.
13820
13821 2001-12-03  Robert Dewar <dewar@gnat.com>
13822
13823         * prj-proc.adb: Minor reformatting
13824
13825         * make.adb: Minor reformatting
13826
13827 2001-12-03  Geert Bosch <bosch@gnat.com>
13828
13829         * make.adb: Minor reformatting.
13830
13831 2001-12-03 Robert Dewar  <dewar@gnat.com>
13832
13833         * sem_ch12.adb: Minor reformatting
13834
13835 2001-12-03  Ed Schonberg <schonber@gnat.com>
13836
13837         * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
13838         push Standard on the stack before analyzing the instance body,
13839         in order to have a clean visibility environment.
13840
13841         * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
13842
13843 2001-12-03  Ed Schonberg <schonber@gnat.com>
13844
13845         * sem_ch12.adb (Instantiate_Package_Body): Protect against double
13846         instantiation of a body that contains an inlined body.
13847
13848 2001-12-03  Ed Schonberg <schonber@gnat.com>
13849
13850         * sem_ch12.adb:
13851         (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
13852         to prevent freezing within formal packages.
13853         (Freeze_Subprogram_Body): If body comes from another instance that
13854         appeared before its own body, place freeze node at end of current
13855         declarative part, to prevent a back-end crash.
13856         (Inline_Instance_Body): Handle properly a package instance within
13857         a subprogram instance that is a child unit.
13858
13859 2001-12-01  Graham Stott  <grahams@redhat.com>
13860
13861         * Makefile.in (misc.o): Add missing $(srcdir) prefix
13862         and add optabs.h dependency.
13863
13864         * misc.c: Include optabs.h
13865         (gnat_tree_code_type): Make static and const.
13866         (gnat_tree_code_length): Likewise.
13867         (gnat_tree_code_name): Likewise.
13868         (update_setjmp_buf): Obtain operands mode from insn_data.
13869
13870 2001-11-29  Richard Henderson  <rth@redhat.com>
13871
13872         * init.c: Remove obsolete dwarf2 frame.h section.
13873
13874 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
13875
13876         * Make-lang.in (ada.generated-manpages): New dummy target.
13877
13878 2001-11-29  Ed Schonberg <schonber@gnat.com>
13879
13880         * g-os_lib.adb (Add_To_Command): use explicit loop to move string
13881         into Command, an array conversion is illegal here. Uncovered by
13882         ACATS B460005.
13883
13884 2001/11/28  Geert Bosch <bosch@gnat.com>
13885
13886         * init.c: Minor whitespace changes.
13887
13888 2001-11-28  Doug Rupp <rupp@gnat.com>
13889
13890         * init.c: (__gnat_install_handler,VMS): Increase size of alternate
13891         signal stack.
13892
13893 2001-11-28  Zack Weinberg  <zack@codesourcery.com>
13894
13895         * misc.c (gnat_expand_constant): Move declaration above
13896         definition of lang_hooks.
13897         (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
13898         (gnat_init): lang_expand_constant no longer exists.
13899
13900         (internal_error_function): Remove #ifdef HAVE_VPRINTF.  We
13901         always have vprintf.
13902         (gnat_init): Always call set_internal_error_function.
13903
13904 2001-11-27  Andreas Jaeger  <aj@suse.de>
13905
13906         * Makefile.in (stamp-tool_src_dir): Use symbolic link.
13907
13908 2001-11-27  Laurent Guerby  <guerby@acm.org>
13909
13910         * Makefile.in: Regenerate Ada dependencies.
13911
13912 2001-11-26  Richard Henderson  <rth@redhat.com>
13913
13914         * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
13915         gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
13916         gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
13917
13918 2001-11-25  Laurent Guerby  <guerby@acm.org>
13919
13920         * sysdep.c (rts_get_*): Fix style.
13921
13922 2001-11-19  Laurent Guerby  <guerby@acm.org>
13923
13924         * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
13925         since it is of no apparent use and cause warnings.
13926
13927 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
13928
13929         * misc.c (gnat_decode_option, gnat_init_options): Make definitions
13930         static too.
13931         (gnat_init): Don't return NULL.
13932         (finish_parse): Remove.
13933
13934 2001-11-17  Laurent Guerby  <guerby@acm.org>
13935
13936         * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
13937         * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
13938         * io-aux.c: Provide K&R prototypes to all functions, reformat code.
13939         * lang-spec.h: Add missing struct field to silence warnings.
13940         * sysdep.c (rts_get_*): Provide K&R prototype.
13941         * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
13942         * traceback.c (Unlock_Task, Lock_Task): Likewise.
13943         * tracebak.c (__gnat_backtrace): Remove unused variable.
13944         * utils.c (end_subprog_body): Move to K&R style.
13945
13946 Thu Nov 15 18:16:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13947
13948         * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
13949
13950 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
13951
13952         * misc.c (gnat_init): Change prototype.  Include the
13953         functionality of the old init_parse and init_decl_processing.
13954         (gnat_init_decl_processing): New prototype.
13955         (init_parse): Remove.
13956         * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
13957
13958 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
13959
13960         * misc.c (gnat_print_decl, gnat_print_type): Renamed.
13961         (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
13962         (print_lang_statistics, lang_print_xnode, print_lang_identifier,
13963         set_yydebug): Remove.
13964
13965 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
13966
13967         * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
13968         (struct lang_hooks): Constify.
13969         (language_string, lang_identify): Remove.
13970         * utils.c (init_decl_processing): Update.
13971
13972 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13973
13974         * misc.c: Include langhooks-def.h.
13975         * Makefile.in: Update.
13976
13977 2001-10-30  Robert Dewar <dewar@gnat.com>
13978
13979         * style.adb:
13980         (Check_Identifier): Rewrite circuit to be compatible with use of letters
13981         in the upper half of ASCII.
13982         (Check_Identifier): Minor reformatting
13983
13984 2001-10-30  Geert Bosch <bosch@gnat.com>
13985
13986         * (Associated_Node, Set_Associated_Node): Do not check for
13987         Freeze_Entity.
13988
13989 2001-10-30  Robert Dewar <dewar@gnat.com>
13990
13991         * a-reatim.ads: Minor reformatting
13992
13993 2001-10-30  Robert Dewar <dewar@gnat.com>
13994
13995         * gnatdll.adb: Minor reformatting throughout. Many ??? added for
13996         undocumented declarations.
13997
13998 2001-10-30  Pascal Obry <obry@gnat.com>
13999
14000         * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
14001         to the binder and linker.
14002         Minor style fix.
14003
14004         * mdll.ads: Fix layout.  Update copyright notice.
14005
14006         * mdll.adb: Fix layout.  Update copyright notice.
14007
14008 2001-10-30  Robert Dewar <dewar@gnat.com>
14009
14010         * usage.adb: Minor fix to output for -gnaty.
14011
14012 2001-10-30  Ed Schonberg <schonber@gnat.com>
14013
14014         * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
14015         to accommodate all its possible values.
14016
14017         * a-reatim.adb (Split): Special-case handling of Time_Span_First
14018         and of small absolute values of T.
14019
14020 2001-10-30  Richard Kenner <kenner@gnat.com>
14021
14022         * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
14023         set_mem_attributes since not needed and wrong if RESULT if a REG;
14024         fixes ACATS failures.
14025
14026 2001-10-30  Geert Bosch <bosch@gnat.com>
14027
14028         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
14029         s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
14030
14031 2001-10-30  Robert Dewar <dewar@gnat.com>
14032
14033         * bindusg.adb: Undocument -f switch.
14034
14035         * gnatcmd.adb: Remove /FULL_ELABORATION.
14036
14037         * opt.ads (Force_RM_Elaboration_Order): Document that this is
14038         obsolescent.
14039
14040         * gnatbind.adb: Output new warning for use of obsolescent -f switch.
14041
14042         * gnatbind.adb: Minor update of warning msg.
14043
14044 2001-10-30  Vincent Celier <celier@gnat.com>
14045
14046         * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
14047         for project file switches (-P (/PROJECT_FILE=),
14048          -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
14049         or MEDIUM or HIGH)
14050
14051 2001-10-30  Geert Bosch <bosch@gnat.com>
14052
14053         * decl.c: Minor whitespace fixes.
14054
14055 2001-10-30  Richard Kenner <kenner@gnat.com>
14056
14057         * utils2.c (build_allocator): Test for SIZE overflow in array case too
14058
14059 2001-10-30  Geert Bosch <bosch@gnat.com>
14060
14061         * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
14062         Found due to GCC 3.0 warning of using uninitialized value.
14063
14064         * layout.adb:
14065         (Get_Max_Size): Use variant record for tracking value/expression.
14066          Makes logic clearer and prevents warnings for uninitialized variables.
14067         (Layout_Array_Type): Use variant record for tracking value/expression.
14068          Makes logic clearer and prevents warnings for uninitialized variables.
14069
14070 2001-10-30  Robert Dewar <dewar@gnat.com>
14071
14072         * lib.adb: Minor reformatting
14073
14074         * s-taprop.ads: Minor reformatting
14075
14076 2001-10-29  Laurent Guerby  <guerby@acm.org>
14077
14078         * init.c:
14079         (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
14080         const.
14081         (_gnat_error_handler): Make MSG const.
14082
14083 2001-10-29  Richard Kenner <kenner@gnat.com>
14084
14085         * sysdep.c: Fix localtime_r problem on LynxOS.
14086         Also remove #elif to avoid warnings.
14087
14088         * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
14089         used by this.
14090
14091         * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
14092
14093 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
14094
14095         * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
14096         exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
14097         g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
14098         g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
14099         layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
14100         s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
14101         sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
14102         sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
14103         sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
14104         types.ads, urealp.adb: Fix spelling errors.
14105
14106 2001-10-27  Laurent Guerby <guerby@acm.org>
14107
14108         * trans.c (gigi): Fix non determinism leading to bootstrap
14109         comparison failures for debugging information.
14110
14111 2001-10-26  Florian Weimer  <fw@deneb.enyo.de>
14112
14113         * gnat_rm.texi: Use @./@: where appropriate.
14114
14115 2001-10-26  Robert Dewar <dewar@gnat.com>
14116
14117         * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
14118
14119 2001-10-26  Richard Kenner <kenner@gnat.com>
14120
14121         * gmem.c (__gnat_gmem_read_next): Properly check for EOF
14122
14123 2001-10-26  Richard Kenner <kenner@gnat.com>
14124
14125         * decl.c (validate_size): Modify message for bad size to avoid
14126         implication that compiler is modifying the size.
14127
14128 2001-10-26  Robert Dewar <dewar@gnat.com>
14129
14130         * prj-util.adb: Minor reformatting. Fix bad header format.
14131
14132 2001-10-26  Robert Dewar <dewar@gnat.com>
14133
14134         * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
14135
14136         * sinfo.ads: Clarify use of Associated_Node (documentation only).
14137
14138         * sem_ch12.adb: Change Node4 to Associated_Node. Change
14139         Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
14140         much more narrowly in places where needed. These are cleanups.
14141
14142 2001-10-26  Joel Brobecker <brobecke@gnat.com>
14143
14144         * 5zosinte.ads (null_pthread): new constant.
14145
14146         * 5ztaprop.adb:
14147         (Initialize_TCB): Initialize thread ID to null, to be able to verify
14148          later that this field has been set.
14149         (Finalize_TCB): ditto.
14150         (Suspend_Task): Verify that the thread ID is not null before using it.
14151         (Resume_Task): ditto.
14152
14153         * s-tasdeb.adb:
14154         (Resume_All_Tasks): Lock the tasks list before using it.
14155         (Suspend_All_Tasks): ditto.
14156
14157 2001-10-26  Richard Kenner <kenner@gnat.com>
14158
14159         * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
14160         Make constant variant of designated type for Is_Access_Constant.
14161         Call update_pointer_to with main variant.
14162
14163         * trans.c (process_freeze_entity, process_type):
14164         Call update_pointer_to on main variant.
14165
14166         * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
14167         If main variant, update all other variants.
14168
14169         * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
14170         TREE_STATIC.
14171
14172 2001-10-26  Robert Dewar <dewar@gnat.com>
14173
14174         * prj-util.adb: Minor reformatting
14175
14176 2001-10-26  Robert Dewar <dewar@gnat.com>
14177
14178         * prj-util.adb: Minor reformatting
14179
14180 2001-10-26  Robert Dewar <dewar@gnat.com>
14181
14182         * prj-attr.adb: Minor reformatting throughout
14183
14184 2001-10-26  Robert Dewar <dewar@gnat.com>
14185
14186         * prj-attr.ads: Minor reformatting
14187         Add ??? comment (this whole spec has almost no comments)
14188
14189 2001-10-26  Vincent Celier <celier@gnat.com>
14190
14191         * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
14192         ("//") that precede the drive letter on Interix.
14193
14194 2001-10-26  Geert Bosch <bosch@gnat.com>
14195
14196         * gnat_rm.texi: Add GNAT Reference Manual.
14197
14198 2001-10-25  Robert Dewar <dewar@gnat.com>
14199
14200         * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
14201         is Error. Similar change for other renaming cases.
14202
14203 2001-10-25  Robert Dewar <dewar@gnat.com>
14204
14205         * s-atacco.ads: Add pragma Inline_Always for functions.
14206         Fix header format. Add copyright 2001
14207
14208 2001-10-25  Ed Schonberg <schonber@gnat.com>
14209
14210         * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
14211         return Error rather than Empty so that analysis can proceed.
14212
14213 2001-10-25  Ed Schonberg <schonber@gnat.com>
14214
14215         * sem_util.adb (Enter_Name): better handling of cascaded error
14216         messages when a unit appears in its own context.
14217
14218 2001-10-25  Ed Schonberg <schonber@gnat.com>
14219
14220         * sem_util.adb (Defining_Entity): in case of error, attach created
14221         entity to specification, so that semantic analysis can proceed.
14222
14223 2001-10-25  Robert Dewar <dewar@gnat.com>
14224
14225         * sem_util.adb
14226         (Defining_Entity): Deal with Error.
14227         (Process_End_Label): Deal with bad end label for.
14228
14229 2001-10-25  Ed Schonberg <schonber@gnat.com>
14230
14231         * sem_elab.adb (Check_A_Call): refine message when call is in an
14232         instance but callee is not declared in the generic unit.
14233
14234 2001-10-25  Ed Schonberg <schonber@gnat.com>
14235
14236         * sem_elab.adb (Check_A_Call): check for renaming before finding the
14237         enclosing unit, which may already be different from the calling unit.
14238
14239 2001-10-25  Geert Bosch <bosch@gnat.com>
14240
14241         * 4gintnam.ads: fix header format.
14242
14243 2001-10-25  Ed Schonberg <schonber@gnat.com>
14244
14245         * sem_res.adb (Resolve_Call): if the call is actually an indexing
14246         operation on the result of a parameterless call, perform elaboration
14247         check after the node has been properly rewritten.
14248
14249         * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
14250         inlined within the generic tree, the defining identifier is not a
14251         compilation_unit.
14252
14253 2001-10-25  Ed Schonberg <schonber@gnat.com>
14254
14255         * sem_res.adb (Resolve): special-case resolution of Null in an
14256          instance or an inlined body to avoid view conflicts.
14257
14258         * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
14259          compatibility by retrieving the access type of the generic copy.
14260
14261 2001-10-25  Robert Dewar <dewar@gnat.com>
14262
14263         * sem_ch3.adb:
14264         (Analyze_Number_Declaration): Handle error expression.
14265         (Signed_Integer_Type_Declaration): Handle error bound.
14266         (Analyze_Subtype_Indication): Handle error range.
14267
14268         * sem_util.adb (Get_Index_Bounds): Check for Error.
14269
14270 2001-10-25  Robert Dewar <dewar@gnat.com>
14271
14272         * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
14273         in no run time mode.
14274
14275 2001-10-25  Pascal Obry <obry@gnat.com>
14276
14277         * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
14278         mode case for ALLOC case.
14279
14280         * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
14281         all platforms. Improvement of last change.
14282
14283 2001-10-25  Robert Dewar <dewar@gnat.com>
14284
14285         * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
14286
14287 2001-10-25  Geert Bosch  <bosch@gnat.com>
14288
14289         * osint.adb (Is_Relative): Remove duplicate.
14290
14291 2001-10-25  Pascal Obry <obry@gnat.com>
14292
14293         * osint.adb (Read_Default_Search_Dirs): correctly detect relative
14294         pathnames in UNIX and DOS style with drive letter.
14295         (Is_Relative): new routine.
14296
14297         * osint.adb: Minor reformatting
14298
14299         * osint.adb (Is_Relative): implementation using
14300         GNAT.OS_Lib.Is_Absolute_Path. Better fix.
14301
14302 2001-10-25  Pascal Obry <obry@gnat.com>
14303
14304         * g-dirope.adb (Basename): correctly compute offset between the
14305         original Path and the translated one.
14306
14307         * g-dirope.adb: (Base_Name): add some comments.
14308
14309 2001-10-25  Robert Dewar <dewar@gnat.com>
14310
14311         * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
14312         in HIE mode, avoids compilation abandoned message
14313
14314         * exp_imgv.adb: Correct typo in previous change
14315
14316         * exp_imgv.adb: Correct typo in previous change (not my day!)
14317
14318 2001-10-25  Robert Dewar <dewar@gnat.com>
14319
14320         * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
14321
14322 2001-10-25  Pascal Obry <obry@gnat.com>
14323
14324         * g-awk.ads: Move all pragma inlines next to the routine
14325          declarations. This is more uniform with other GNAT spec.
14326
14327 2001-10-22  Geert Bosch  <bosch@gnat.com>
14328
14329         * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
14330
14331 2001-10-19  Geert Bosch  <bosch@gnat.com>
14332
14333         * Makefile.in (tools, gnattools): Remove gnatmem.
14334
14335 2001-10-17  Richard Henderson  <rth@redhat.com>
14336
14337         * Makefile.in (misc.o): Depend on langhooks.h.
14338         * misc.c: Include it.
14339         (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
14340         (LANG_HOOKS_DECODE_OPTION): New.
14341         (lang_hooks): Use LANG_HOOKS_INITIALIZER.
14342
14343 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
14344
14345         * trans.c (tree_transform): Adjust to recent change in
14346         expand_asm_operands to implement named asm operands.
14347
14348 2001-10-11  Ed Schonberg  <schonber@gnat.com>
14349
14350         * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
14351         renaming of discriminant for mutable record type.
14352
14353 2001-10-11  Robert Dewar  <dewar@gnat.com>
14354
14355         * validsw.adb: Properly save -gnatVn status.
14356
14357 2001-10-11  Robert Dewar <dewar@gnat.com>
14358
14359         * usage.adb: Add lines for V switch.
14360
14361         * gnatcmd.adb (COMPILE): Revise translations for -gnatV
14362         (/VALIDITY_CHECKING).
14363
14364 2001-10-11  Ed Schonberg <schonber@gnat.com>
14365
14366         * sem_type.adb (Add_One_Interp): an operator for a type declared in
14367         an extension of System is known to be visible.
14368
14369 2001-10-11  Ed Schonberg <schonber@gnat.com>
14370
14371         * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
14372         properly. Fixes regression on ACATS C34005G.
14373
14374 2001-10-11  Robert Dewar <dewar@gnat.com>
14375
14376         * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
14377         loop in generic instance, since this is likely not very useful.
14378
14379 2001-10-11  Robert Dewar <dewar@gnat.com>
14380
14381         * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
14382         the error message for high integrity mode.
14383
14384         * rtsfind.adb (RTE): Give message if we try to find an entity that
14385         is not available in high integrity mode.
14386
14387         * rtsfind.ads:
14388         (OK_To_Use_In_HIE_Mode): New array.
14389         (RTE): May return Empty in high integrity mode.
14390
14391         * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
14392         OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
14393
14394         * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
14395         unit if not inlined always and in no runtime mode. Fixes problem
14396         caused by new Rtsfind changes.
14397
14398         * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
14399         body is deleted.
14400
14401         * rtsfind.adb (RTE): Make sure we do not try to load unit after
14402         giving message for entity not available in high integrity mode.
14403
14404 2001-10-11  Pascal Obry <obry@gnat.com>
14405
14406         * impunit.adb: Add GNAT.CRC32.
14407
14408 2001-10-11  Ed Schonberg <schonber@gnat.com>
14409
14410         * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
14411         properly the case where one universal operand in a non-static
14412         exponentiation of a real literal.
14413
14414 2001-10-11  Ed Schonberg <schonber@gnat.com>
14415
14416         * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
14417         clause, return the gobal finalization list, for lack of anthing else.
14418
14419 2001-10-11  Ed Schonberg <schonber@gnat.com>
14420
14421         * exp_ch7.adb (Make_Transient_Block): if statement is within
14422         exception handler, always use new transient scope to place Clean
14423         procedure.
14424
14425 2001-10-11  Pascal Obry <obry@gnat.com>
14426
14427         * Makefile.in:
14428         (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
14429         (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
14430         (GNATLS_RTL_OBJS): add g-crc32.o
14431         (GNATMAKE_RTL_OBJS): add g-crc32.o
14432
14433         * ali-util.adb:
14434         (CRC_Match): new function.
14435         (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
14436         instead of the previous simple checksum algorithm.
14437         (Time_Stamp_Mismatch): use CRC_Match for comparison.
14438         (Set_Source_Table): idem.
14439
14440         * ali-util.ads:
14441         (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
14442         instead of simple checksum.
14443         (CRC_Match): new function.
14444         (CRC_Error): new constant.
14445
14446         * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
14447         a CRC now and not a simple checksum. A CRC uses lower-case hex
14448         letters, fixes ambiguity in parsing.
14449
14450         * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
14451         is what this variable will store.
14452
14453         * bcheck.adb: Change reference to chechsum in comments by CRC.
14454         (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
14455         rename All_Checksum_Match to All_CRC_Match. Change due to API
14456         renaming since now GNAT does not use a simple checksum but a
14457         CRC using GNAT.CRC32.
14458
14459         * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
14460         now and not anymore a simple checksum.
14461
14462         * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
14463         places.
14464
14465         * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
14466
14467         * scans.adb:
14468         (Restore_Scan_State): rename Checksum to CRC.
14469         (Save_Scan_State): idem.
14470
14471         * scans.ads:
14472         With GNAT.CRC32.
14473         (Checksum): rename to CRC.
14474         (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
14475
14476         * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
14477         GNAT.CRC32).  Update copyright notice.
14478
14479         * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
14480         GNAT.CRC32).  Update copyright notice.
14481
14482         * scn.adb:
14483         (Accumulate_Checksum): removed.
14484         (Update): new procedure. Add a wide-character into the CRC.
14485
14486         * sinput-l.adb:
14487         (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
14488         (Load_File): fix initialization of S (change Source_Checksum to
14489         Source_CRC)
14490
14491         * sinput-p.adb (Load_Project_File): rename Source_Checksum to
14492         Source_CRC in S initialization.
14493
14494         * sinput.adb (Source_Checksum): renamed to Source_CRC.
14495
14496         * sinput.ads (Source_Checksum): renamed to Source_CRC.
14497         Update comments for the CRC.
14498
14499         * types.adb (Hex): Use lowercase for the letter part.
14500
14501         * types.ads (Get_Hex_String): Returns the hexadecimal representation
14502         for a word. This is currently used only for CRC. In previous version,
14503         the checksum was using a representation with all letter being
14504         upper-case. With the new implementation (using CRC) we do not remove
14505         the 32th bit of the CRC, so we can have an upper-case starting letter
14506         in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
14507         It is ambigous since the CRC was optional and could be followed by
14508         options like EB, EE. So now this routines uses lower-case letter for
14509         the hexadecimal representation. Strange enough only lower case letters
14510         where checked in Scan_ALI (even if this was not a possible case).
14511
14512         * gnatvsn.ads (Library_Version): changed to 3.15a.
14513
14514         * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
14515         for the compiler.
14516
14517         * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
14518         for the compiler.
14519
14520         * ali-util.adb: Redo previous change to avoid using word CRC everywhere
14521         Add 2001 to copyright notice
14522         (Accumulate_Checksum): Modify to use System.CRC32.
14523
14524         * ali-util.ads: Redo changes of previous revision to continue to use
14525         the word Checksum. Add 2001 to copyright notice.
14526
14527         * ali.adb: Undo some of previous changes, not needed.
14528         Keep the change for lower case letters in the checksum.
14529
14530         * ali.ads: Undo previous change not needed.
14531
14532         * bcheck.adb: Undo most of previous change, not needed.
14533         But do use Checksums_Match for checksum comparison.
14534
14535         * gnatls.adb: Undo most of previous change, not needed.
14536         But do use Checksums_Match for comparing checksums.
14537
14538         * lib-load.adb: Undo previous change, not needed.
14539
14540         * lib-writ.adb: Undo previous change, not needed.
14541
14542         * lib-writ.ads: Document that checksums use lower case,
14543         not upper case letters.
14544
14545         * scans.adb: Undo previous change, not needed
14546
14547         * scans.ads: Undo previous change, not needed.
14548
14549         * scn-nlit.adb: Undo previous changes, not needed.
14550
14551         * scn-slit.adb: Undo previous change, not needed.  Fix header format.
14552
14553         * scn.adb:
14554         (Accumulate_Checksum): Use System.CRC32.
14555         (Initialize_Checksum): New procedure.
14556         Remove other changes of previous revision.
14557
14558         * sinput-p.adb: Undo previous change, not needed.
14559
14560         * sinput.adb: Undo previous change, not needed.
14561
14562         * sinput-l.adb: Undo previous change, not needed.
14563
14564         * sinput.ads: Undo previous change, not needed.  Keep only comment
14565         on new checksum algorithm
14566
14567         * Makefile.in: Add s-crc32 as needed, remove g-crc32.
14568         Also remove a-tags and a-stream from GNAT sources.
14569
14570         * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
14571
14572         * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
14573
14574 2001-10-11  Geert Bosch  <bosch@gnat.com>
14575
14576         * einfo.h: Regenerate.
14577
14578         * nmake.ads: Regenerate.
14579
14580         * nmake.adb: Regenerate.
14581
14582         * sinfo.h: Regenerate.
14583
14584         * treeprs.adb: Regenerate.
14585
14586 2001-10-10  Geert Bosch  <bosch@gnat.com>
14587
14588         * gnat-style.texi: New file describing coding guidelines for Ada.
14589
14590 2001-10-10  Ed Schonberg <schonber@gnat.com>
14591
14592         * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
14593         is Flag174.
14594
14595 2001-10-10  Geert Bosch  <bosch@gnat.com>
14596
14597         * snames.ads: Add new names for project facility.
14598
14599         * snames.adb: Update to reflect snames.ads changes.
14600
14601         * snames.h: Update to reflect snames.ads changes.
14602
14603 2001-10-10  Vincent Celier <celier@gnat.com>
14604
14605         * make.adb:
14606         (Add_Switches): reflect the changes for the switches attributes
14607         Default_Switches indexed by the programming language,
14608         Switches indexed by the file name.
14609         (Collect_Arguments_And_Compile): Idem.
14610         Reflect the attribute name changes.
14611
14612         * prj-attr.adb:
14613         (Initialisation_Data): Change the names of some packages and
14614         attributes.
14615         (Initialize): process case insensitive associative arrays.
14616
14617         * prj-attr.ads:
14618         (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
14619
14620         * prj-dect.adb:
14621         (Parse_Attribute_Declaration): For case insensitive associative
14622          arrays, set the index string to lower case.
14623
14624         * prj-env.adb:
14625         Reflect the changes of the project attributes.
14626
14627         * prj-nmsc.adb:
14628         Replace Check_Naming_Scheme by Ada_Check and
14629         Language_Independent_Check.
14630
14631         * prj-nmsc.ads:
14632         Replaced Check_Naming_Scheme by 2 procedures:
14633         Ada_Check and Language_Independent_Check.
14634
14635         * prj-proc.adb:
14636         (Process_Declarative_Items): For case-insensitive associative
14637         arrays, set the index string to lower case.
14638         (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
14639         Prj.Nmsc.Check_Naming_Scheme.
14640
14641         * prj-tree.adb:
14642         (Case_Insensitive): New function
14643         (Set_Case_Insensitive): New procedure
14644
14645         * prj-tree.ads:
14646         (Case_Insensitive): New function
14647         (Set_Case_Insensitive): New procedure
14648         (Project_Node_Record): New flag Case_Insensitive.
14649
14650         * prj-util.adb:
14651         (Value_Of): new function to get the string value of a single
14652         string variable or attribute.
14653
14654         * prj-util.ads:
14655         (Value_Of): new function to get the string value of a single
14656         string variable or attribute.
14657
14658         * prj.adb:
14659         (Ada_Default_Spec_Suffix): New function
14660         (Ada_Default_Impl_Suffix): New function
14661         Change definitions of several constants to reflect
14662         new components of record types.
14663
14664         * prj.ads:
14665         (Naming_Data): Change several components to reflect new
14666         elements of naming schemes.
14667         (Project_Data): New flags Sources_Present and
14668         Language_Independent_Checked.
14669         (Ada_Default_Spec_Suffix): New function.
14670         (Ada_Default_Impl_Suffix): New function.
14671
14672         * snames.ads:
14673         Modification of predefined names for project manager: added
14674         Implementation, Specification_Exceptions, Implementation_Exceptions,
14675         Specification_Suffix, Implementation_Suffix, Separate_Suffix,
14676         Default_Switches, _Languages, Builder, Cross_Reference,
14677         Finder. Removed Body_Part, Specification_Append, Body_Append,
14678         Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
14679         Gnatlink.
14680
14681         * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
14682         Add comments.
14683
14684         * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
14685         not that it is Nil_Variable_Value.
14686
14687         * prj.ads: Add ??? for uncommented declarations
14688
14689 2001-10-10  Ed Schonberg <schonber@gnat.com>
14690
14691         * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
14692         constant, do not indicate possible modification, so that gigi can
14693         treat it as a bona fide constant.
14694
14695 2001-10-10  Robert Dewar <dewar@gnat.com>
14696
14697         * sem_prag.adb: Add processing for pragma External.
14698
14699         * snames.ads: Add entry for pragma External.
14700
14701         * par-prag.adb: Add pragma External.
14702
14703         * snames.adb: Updated to match snames.ads.
14704
14705 2001-10-10  Ed Schonberg <schonber@gnat.com>
14706
14707         * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
14708         a dynamic task if the allocator appears in an indexed assignment
14709         or selected component assignment.
14710
14711         * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
14712         For a dynamic task in an assignment statement, use target of
14713         assignment to generate meaningful name.
14714
14715 2001-10-10  Ed Schonberg <schonber@gnat.com>
14716
14717         * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
14718         a generic package.
14719
14720         * einfo.ads: Body_Entity is also defined for generic package.
14721         Documentation change only
14722
14723         * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
14724         others_choice for a discriminated component initialization,
14725         convert discriminant references into the corresponding discriminals.
14726
14727         * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
14728         only if original type is private and expression has to be wrapped
14729         in a conversion.
14730
14731         * checks.adb:
14732         (Apply_Constraint_Check): Do not perform length check
14733         if expression is an aggregate with only an others_choice.
14734         (Length_N_Cond): two references to the same in_parameter
14735         (typically the discriminal in an init_proc) denote the same value.
14736         Two useful optimization uncovered by bugfixes above.
14737
14738 2001-10-10  Robert Dewar <dewar@gnat.com>
14739
14740         * xeinfo.adb: Change int to char in translation of enumeration types.
14741         This fixes a problem in the C representation of component alignment.
14742         Add 2001 to copyright notice
14743
14744 2001-10-10  Richard Kenner <kenner@gnat.com>
14745
14746         * decl.c: (validate_size): Do check size of object of integral type
14747         if it is a packed array type.
14748
14749 2001-10-10  Richard Kenner <kenner@gnat.com>
14750
14751         * decl.c: (gnat_to_gnu_entity, case object): Also materialize
14752         VAR_DECL for constant if not Is_Public but -O0.
14753
14754 2001-10-10  Richard Kenner  <kenner@gnat.com>
14755
14756         * misc.c (struct lang_hooks): Add new initializer to match GCC change.
14757
14758 2001-10-10  Geert Bosch  <bosch@gnat.com>
14759
14760         * xnmake.adb (XNmake): Fix handling of -s/-b options.  No longer
14761         use '/' as switch character, allowing for absolute file names.
14762
14763 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
14764
14765         * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
14766         FSF address.
14767
14768 2001-10-08  Geert Bosch  <bosch@gnat.com>
14769
14770         * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
14771         Automatically build utilities when files need to be regenerated.
14772
14773 2001-10-08  Geert Bosch  <bosch@gnat.com>
14774
14775         * xsnames.adb: New utility for updating snames.ads and snames.adb
14776
14777 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
14778
14779         * Make-lang.in (ADAFLAGS): Add -W -Wall.
14780         (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
14781         (gnat1): Also depend on attribs.o.
14782         (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
14783         * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
14784         (ADAC): Set to @ADAC@ in stage1, $(CC) later.
14785         (ADAFLAGS): Add -W -Wall.
14786         (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
14787         take out CFLAGS.
14788
14789         (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
14790         s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
14791         s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
14792         Use $(ADAC), not $(CC), as compilation command.
14793
14794         (gnattools): Depend directly on tools to build, don't use
14795         recursive make.
14796         (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
14797
14798         * einfo.h, sinfo.h: New files (autogenerated).
14799
14800 2001-10-08  Richard Henderson  <rth@redhat.com>
14801
14802         * comperr.adb (Abort_In_Progress): New.
14803         (Compiler_Abort): Use it to prevent recursion.
14804
14805 2001-10-08  Robert Dewar <dewar@gnat.com>
14806
14807         * atree.adb: Set Error_Posted in Error node, helps error recovery.
14808
14809         * par-endh.adb (Output_End_Expected): We should also not test
14810         Error_Posted on the Error node, since now it is always set.
14811
14812         * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
14813         to help error recovery. Part of general work on 9407-004.
14814
14815         * par.adb: Add ??? for misuse of error
14816
14817         * sem_res.adb:
14818         (Resolve): Defend against Error, fixes 9407-003.
14819         (Resolve_Discrete_Subtype_Indication): Defend against Error.
14820
14821         * sinfo.ads (N_Error): Now has Etype field (which will be set
14822         to Any_Type to help error recovery).
14823
14824 2001-10-08  Richard Kenner (kenner@gnat.com)
14825
14826         * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
14827         Consistently set MEM attributes from expression; fixes
14828         bootstrap failure on x86.
14829
14830 2001-10-08  Geert Bosch  (bosch@gnat.com)
14831
14832         * 5oosinte.adb: Add 2001 to copyright notice.
14833
14834 2001-10-08  Geert Bosch  (bosch@gnat.com)
14835
14836         * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
14837
14838         * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
14839
14840 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
14841
14842         * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
14843
14844 2001-10-05  Geert Bosch  (bosch@gnat.com)
14845
14846         * adaint.h: Small formatting fix.
14847
14848 2001-10-04  Geert Bosch  <bosch@gnat.com>
14849
14850         * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
14851         Arg is int, not FILE *, in dummy version of functions.
14852
14853         * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
14854         Arg is int, not FILE *.
14855
14856 2001-10-04  Geert Bosch  <bosch@gnat.com>
14857
14858         * 3lsoccon.ads: Added file, missed with initial check ins.
14859
14860         * 4lintnam.ads: Fix header format.
14861         Change Linux to GNU/Linux.
14862
14863         * 5iosinte.adb: Change Linux to GNU/Linux.
14864
14865         * 5iosinte.ads: Change Linux to GNU/Linux.
14866
14867         * 5itaprop.adb: Change Linux to GNU/Linux.
14868
14869         * 5itaspri.ads: Change Linux to GNU/Linux.
14870         Update copyright notice.
14871
14872         * 5lintman.adb: Change Linux to GNU/Linux.
14873
14874         * 5lml-tgt.adb: Change Linux to GNU/Linux.
14875
14876         * 5losinte.ads: Change Linux to GNU/Linux.
14877
14878         * 5lsystem.ads: Change Linux to GNU/Linux.
14879
14880         * 5qosinte.adb: Change Linux to GNU/Linux.
14881
14882         * 5qosinte.ads: Change Linux to GNU/Linux.
14883
14884         * 5qparame.ads: Change Linux to GNU/Linux.
14885
14886         * 5qtaprop.adb: Change Linux to GNU/Linux.
14887
14888         * 5qtaspri.ads: Change Linux to GNU/Linux.
14889         Add 2001 to copyright notice.
14890
14891         * 5vintman.ads: Change Linux to GNU/Linux.
14892         Fix header format.  Add 2001 to copyright notice.
14893
14894         * g-soccon.ads: Change Linux to GNU/Linux.
14895
14896         * g-trasym.ads: Change Linux to GNU/Linux.
14897         Add 2001 to copyright notice.
14898
14899         * memtrack.adb: Change Linux to GNU/Linux.
14900
14901         * s-intman.ads: Change Linux to GNU/Linux.
14902         Add 2001 to copyright notice.  Fix header format.
14903
14904         * s-stache.adb: Change Linux to GNU/Linux.
14905
14906         * adaint.c: Change Linux to GNU/Linux.
14907
14908         * cio.c: Change Linux to GNU/Linux.
14909
14910         * cstreams.c: Change Linux to GNU/Linux.
14911
14912         * init.c: Change Linux to GNU/Linux.
14913
14914         * gmem.c: Change Linux to GNU/Linux.
14915
14916         * tracebak.c: Change Linux to GNU/Linux.
14917
14918
14919 2001-10-02  Geert Bosch  <bosch@gnat.com>
14920
14921         * misc.c (insert_default_attributes): Add dummy version.